/* ============================================================================
   ONIACORE — hoja de marca
   ----------------------------------------------------------------------------
   TODO lo visual del sitio se controla desde el bloque :root de abajo.
   Cuando llegue el manual de marca, cambiás estos valores y el sitio entero
   se reskinea: no hace falta tocar ningún .html.

   SOLO MODO CLARO (2026-09-12). El modo oscuro se quitó a propósito: sin un
   manual de marca no había forma de que la paleta oscura quedara bien, y media
   implementación se ve peor que ninguna. Para reponerlo más adelante, basta
   agregar un bloque @media (prefers-color-scheme: dark) redefiniendo los mismos
   tokens de --acento a --linea.

   TIPOGRAFÍA AUTOALOJADA. Los .woff2 viven en assets/fuentes/ y no se pide nada
   a Google: el sitio no hace ni una petición a terceros, que es lo que la
   política de privacidad afirma.
   ========================================================================== */

/* Space Grotesk — títulos. Variable, un solo archivo cubre 300–700. */
@font-face {
  font-family: "Space Grotesk";
  src: url("fuentes/spacegrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* Inter — texto. Variable, un solo archivo cubre 100–900. */
@font-face {
  font-family: "Inter";
  src: url("fuentes/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- COLORES (cambiar con el manual de marca) --------------------------- */
  --acento:            #0d6e79;   /* color principal de la marca */
  --acento-fuerte:     #0a545d;   /* hover y estados presionados */
  --acento-suave:      #e4f1f3;   /* fondos de apoyo, badges */

  --tinta:             #101c1d;   /* texto principal */
  --tinta-media:       #4a5a5c;   /* texto secundario */
  --tinta-tenue:       #7a8a8c;   /* metadatos, pies */

  --papel:             #ffffff;   /* fondo de tarjetas */
  --papel-alt:         #f5f8f8;   /* fondo de secciones alternas */
  --linea:             #dde6e6;   /* bordes y separadores */

  /* --- TIPOGRAFÍA (cambiar con el manual de marca) ------------------------ */
  --fuente-texto:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
                   Roboto, "Helvetica Neue", Arial, sans-serif;
  --fuente-titulo: "Space Grotesk", "Inter", ui-sans-serif, system-ui,
                   -apple-system, "Segoe UI", Roboto, sans-serif;
  --peso-titulo:   600;

  /* --- FORMA -------------------------------------------------------------- */
  --radio:        12px;
  --radio-chico:  8px;
  --ancho-max:    68rem;
  --sombra:       0 1px 2px rgba(16, 28, 29, .05),
                  0 10px 30px -16px rgba(16, 28, 29, .22);
}

/* ============================================================================
   A partir de acá es estructura. Normalmente no hace falta tocarla.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }

body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--papel-alt);
  font-feature-settings: "cv05" 1, "cv11" 1;  /* Inter: l con cola, a de un piso */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--acento); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--acento-fuerte); }

h1, h2, h3 {
  font-family: var(--fuente-titulo);
  font-weight: var(--peso-titulo);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5.2vw, 3.35rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); letter-spacing: -0.026em; }
h3 { font-size: 1.1rem; letter-spacing: -0.012em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.contenedor { width: 100%; max-width: var(--ancho-max); margin: 0 auto; padding: 0 1.5rem; }

.saltar {
  position: absolute; left: -9999px;
  background: var(--acento); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--radio-chico) 0; z-index: 100;
}
.saltar:focus { left: 0; top: 0; }

/* --- Cabecera --- */
.barra {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--linea);
}
.barra .contenedor {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 70px; flex-wrap: wrap;
}

/* Marca denominativa. Sin logotipo: es texto, así que siempre toma el color
   correcto del tema. Cuando haya logo, reemplazar el <span class="wm"> por
   un <img> y borrar estas reglas. */
.marca { text-decoration: none; display: inline-flex; align-items: center; }
.wm {
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: .16em;
  color: var(--tinta);
}
.marca:hover .wm { color: var(--acento); }

.nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.nav a { color: var(--tinta-media); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--acento); }

/* --- Secciones --- */
section { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
section.alterna { background: var(--papel); border-block: 1px solid var(--linea); }

.hero { padding-top: clamp(3.5rem, 9vw, 7rem); }
.hero p.entrada { font-size: 1.21rem; line-height: 1.6; color: var(--tinta-media); max-width: 42rem; }

.ojillo {
  display: inline-block; margin-bottom: 1.1rem;
  font-family: var(--fuente-titulo);
  font-size: .76rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--acento); background: var(--acento-suave);
  padding: .34rem .78rem; border-radius: 999px;
}

.acciones { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; margin-top: 1.9rem; }
.bajada { color: var(--tinta-media); max-width: 46rem; }
.sub { margin-top: 2.5rem; }

.rejilla { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

.tarjeta {
  background: var(--papel); border: 1px solid var(--linea);
  border-radius: var(--radio); padding: 1.6rem; box-shadow: var(--sombra);
}
section.alterna .tarjeta { background: var(--papel-alt); box-shadow: none; }
.tarjeta h3 { margin-bottom: .4rem; }
.tarjeta p { color: var(--tinta-media); font-size: .96rem; }

/* --- Botones --- */
.boton {
  display: inline-block; background: var(--acento); color: #fff;
  padding: .78rem 1.45rem; border-radius: var(--radio-chico);
  text-decoration: none; font-weight: 600; font-size: .97rem;
  letter-spacing: -.005em;
  transition: background .15s ease;
}
.boton:hover { background: var(--acento-fuerte); color: #fff; }
.boton-lin { font-weight: 600; font-size: .97rem; text-decoration: none; }
.boton-lin:hover { text-decoration: underline; }

/* --- Pasos numerados --- */
.pasos { list-style: none; counter-reset: paso; padding: 0; margin: 2.1rem 0 0; }
.pasos li {
  counter-increment: paso; position: relative;
  padding-left: 3.5rem; margin-bottom: 1.9rem; max-width: 46rem;
}
.pasos li:last-child { margin-bottom: 0; }
.pasos li::before {
  content: counter(paso);
  position: absolute; left: 0; top: -.15rem;
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acento-suave); color: var(--acento);
  font-family: var(--fuente-titulo); font-weight: 700; font-size: .95rem;
}
.pasos h3 { margin-bottom: .25rem; }
.pasos p { color: var(--tinta-media); font-size: .96rem; margin: 0; }

/* --- Bloque destacado --- */
.destacado {
  background: var(--papel); border: 1px solid var(--linea);
  border-left: 3px solid var(--acento);
  border-radius: var(--radio); padding: 1.8rem; box-shadow: var(--sombra);
  max-width: 52rem;
}
section.alterna .destacado { background: var(--papel-alt); box-shadow: none; }
.destacado .nota { color: var(--tinta-tenue); font-size: .93rem; margin-bottom: 0; }

/* --- Tabla de datos --- */
.datos { border-collapse: collapse; width: 100%; max-width: 34rem; font-size: .96rem; }
.datos th, .datos td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
.datos th { font-weight: 600; color: var(--tinta-media); width: 11rem; padding-right: 1rem; }

/* --- Documento legal --- */
.legal { max-width: 46rem; }
.legal h2 { margin-top: 2.3rem; font-size: 1.28rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.2rem; color: var(--tinta-media); }
.legal li { margin-bottom: .45rem; }
.legal .fecha { color: var(--tinta-tenue); font-size: .9rem; }

.aviso {
  border-left: 3px solid var(--acento); background: var(--acento-suave);
  padding: 1rem 1.2rem; border-radius: 0 var(--radio-chico) var(--radio-chico) 0;
  margin: 1.5rem 0; font-size: .95rem;
}

/* --- Pie --- */
footer {
  background: var(--papel); border-top: 1px solid var(--linea);
  padding: 2.6rem 0; font-size: .9rem; color: var(--tinta-tenue);
}
footer .filas { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
footer strong { color: var(--tinta-media); font-family: var(--fuente-titulo); letter-spacing: .06em; }
footer a { color: var(--tinta-media); text-decoration: none; }
footer a:hover { color: var(--acento); }
footer .enlaces { display: flex; gap: 1.3rem; flex-wrap: wrap; }
