/* Play Voyage — base.css — variables, reset, tipografía */

:root {
  --color-bg-principal: #2E1A14;
  --color-superficie: #3C241B;
  --color-acento: #DD7A2E;
  --color-fondo-claro: #F7F3EC;
  --color-texto-claro: #201712;
  --color-texto-oscuro: #F2EAE3;
  --color-advertencia: #B2552A;
  --color-exito: #3A7A4A;
  --fuente-titulos: "Sora", "Segoe UI", sans-serif;
  --fuente-texto: "Source Sans 3", "Segoe UI", sans-serif;
  --radio-borde: 10px;
  --foco-outline: 2px solid #F7F3EC;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--fuente-texto);
  background: var(--color-fondo-claro);
  color: var(--color-texto-claro);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--fuente-titulos);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-texto-claro);
  margin-top: 0;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a {
  color: var(--color-acento);
  text-decoration: underline;
}

a:hover { text-decoration: none; }

img { max-width: 100%; display: block; }

ul, ol { padding-left: 1.25rem; }

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #d8cfc1;
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--color-superficie);
  color: var(--color-texto-oscuro);
}

/* Foco visible accesible en todo elemento interactivo */
a:focus-visible,
button:focus-visible,
input:focus-visible,
label:focus-visible,
[tabindex]:focus-visible {
  outline: var(--foco-outline);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-acento);
  color: #201712;
  padding: 0.6rem 1rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 var(--radio-borde) 0;
}

.skip-link:focus {
  left: 0;
}

/* Oculta el main hasta que el age gate decida (evita parpadeo) */
html.pv-gate-pendiente main,
html.pv-gate-pendiente footer {
  visibility: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
