/* ==========================================================================
   Gensico — hoja de estilos única · VERSIÓN NOCTURNA
   Sistema de marca: Guía de marca.md

   La marca es blanco y negro con un punto naranja. Esta web usa la mitad
   oscura del sistema: el papel es la tinta de marca (#111111) y la tinta es
   el papel (#F5F4F0). No hay dos temas ni conmutador: la web es oscura.

   Tinta (texto) #F5F4F0 · Papel (fondo) #111111 · Panel #1A1A19
   Texto secundario #C4C3BC · Gris #96968F · Acento #FF4A17

   Regla dura: el acento nunca pasa del 5% de la pieza.
   En toda la web el naranja son tres cosas y ninguna más:
     1. el punto del wordmark
     2. el botón de CTA (hero y cierre)
     3. el marcador del paso 3 de "Cómo funciona"
   Prohibido: degradados, sombras, azul, iconos genéricos, animaciones de entrada.
   ========================================================================== */

/* --- Tipografía autoalojada (sin peticiones a servidores de terceros) ----- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Variables ----------------------------------------------------------- */

:root {
  --papel: #111111;   /* fondo base */
  --panel: #1A1A19;   /* bloques destacados: hero, cierre, pie */
  --tinta: #F5F4F0;   /* texto principal y títulos */
  --texto: #C4C3BC;   /* párrafos de apoyo */
  --gris:  #96968F;   /* etiquetas y datos secundarios */
  --acento: #FF4A17;

  --filete: rgba(245, 244, 240, 0.15);
  --filete-fuerte: rgba(245, 244, 240, 0.34);

  --ancho: 1180px;
  --medida: 66ch;

  --paso: clamp(4rem, 7.5vw, 7rem);

  font-size: 16px;
}

/* --- Base ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: 'Archivo', 'Barlow', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

strong { font-weight: 600; }

::selection { background: var(--acento); color: var(--papel); }

:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.salta-al-contenido {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tinta);
  color: var(--papel);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.salta-al-contenido:focus { left: 0; }

/* --- Wordmark ------------------------------------------------------------ */
/* Los SVG son copia literal de Marca/wordmark-invertido.svg, sin el rectángulo
   de fondo, para que apoye sobre cualquiera de las dos superficies oscuras.
   Nunca se retipografía "Gensico": se usa siempre el archivo (Guía de marca). */

.wordmark { height: 28px; width: auto; }
.wordmark--footer { height: 30px; }

/* --- Botones ------------------------------------------------------------- */

.boton {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  padding: 1.1rem 1.7rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s linear, color 0.15s linear,
    border-color 0.15s linear;
}

/* Botón de acento — solo hero y cierre. El único naranja de superficie. */
.boton--acento {
  background: var(--acento);
  color: #12100E;
}
.boton--acento:hover { background: #FF6338; }

/* Botón de la nav — tinta, no naranja. Está fijo en pantalla todo el scroll:
   en naranja sería el mayor bloque de acento de la página. */
.boton--nav {
  background: var(--tinta);
  color: var(--papel);
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
}
.boton--nav:hover { background: #FFFFFF; }

/* --- 0 · Nav ------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--papel);
  border-bottom: 1px solid var(--filete);
}

.nav__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.nav__marca {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--tinta);
}

/* --- 1 · Hero ------------------------------------------------------------ */

.hero {
  background: var(--panel);
  padding-block: clamp(4.75rem, 11vw, 8.5rem);
}

.hero h1 {
  font-size: clamp(2.35rem, 5.9vw, 4.4rem);
  max-width: 19ch;
  margin-bottom: 1.7rem;
}

.hero__sub {
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.5;
  color: var(--texto);
  max-width: 52ch;
  margin-bottom: 2.6rem;
}

.hero__micro {
  margin-top: 1.6rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gris);
  max-width: 54ch;
}

/* --- Secciones ----------------------------------------------------------- */

.seccion {
  padding-block: var(--paso);
  border-top: 1px solid var(--filete);
}

.seccion--oscura {
  background: var(--panel);
  border-top: 0;
}

.seccion h2 {
  font-size: clamp(1.9rem, 3.9vw, 2.95rem);
  max-width: 22ch;
}

.seccion__intro {
  margin-top: 1.7rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--texto);
  max-width: 64ch;
}

/* Título de bloque dentro de una sección: manda sobre el texto que ordena. */
.subtitulo {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--tinta);
  padding-bottom: 1.1rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--filete-fuerte);
}

/* --- 2 · El problema ----------------------------------------------------- */

.dolores {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.75rem;
  grid-template-columns: repeat(3, 1fr);
}

.dolor__num {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gris);
  padding-bottom: 0.9rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--filete);
}

.dolor h3 {
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.014em;
  margin-bottom: 0.8rem;
}

.dolor p {
  font-size: 1.0625rem;
  line-height: 1.58;
  color: var(--texto);
}

/* --- 3 · Cómo funciona --------------------------------------------------- */

/* Una sola línea de ancho completo: es el resumen del método, no una nota. */
.formula {
  margin-top: 2.4rem;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
  text-wrap: nowrap;
}

.capas {
  list-style: none;
  margin: 3.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--filete);
}

.capa {
  padding: 1.85rem 1.85rem 0 0;
  border-right: 1px solid var(--filete);
}
.capa:last-child { border-right: 0; padding-right: 0; }
.capa:not(:first-child) { padding-left: 1.85rem; }

.capa__marca {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gris);
  margin-bottom: 1rem;
}

/* El punto del paso 3 — uno de los tres naranjas de la web. */
.capa__punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gris);
  flex: none;
}
.capa--eje .capa__punto { background: var(--acento); }
.capa--eje .capa__marca { color: var(--tinta); }

.capa h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.capa p {
  font-size: 1.0313rem;
  line-height: 1.56;
  color: var(--texto);
}

.cierre-bloque {
  margin-top: 3.25rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--filete);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 66ch;
}

/* --- 4 · Qué esperar ----------------------------------------------------- */

.dos-columnas {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.linea-tiempo {
  list-style: none;
  margin: 0;
  padding: 0;
}

.linea-tiempo li {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.25rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--filete);
}

.linea-tiempo b {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: var(--tinta);
  text-transform: uppercase;
  line-height: 1.45;
  padding-top: 0.15rem;
}

.linea-tiempo span {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--texto);
}

/* Los límites: el titular manda, el matiz va en texto de apoyo. */
.limites ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.limites li {
  font-size: 1.0313rem;
  line-height: 1.58;
  color: var(--texto);
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--filete);
}

.limites strong { color: var(--tinta); font-weight: 600; }

/* --- 5 · Quién --------------------------------------------------------- */

.quien {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.foto {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  border: 1px solid var(--filete);
  object-fit: cover;
}

.quien__texto p {
  font-size: clamp(1.125rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  max-width: 54ch;
}

/* --- 6 · Filtro ---------------------------------------------------------- */

.filtro {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.filtro h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--filete-fuerte);
  margin-bottom: 0;
}

.filtro--no h3 { border-bottom-color: var(--filete); }

.filtro ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.filtro li {
  font-size: 1.0625rem;
  line-height: 1.5;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--filete);
}

.filtro--si li { color: var(--texto); }
.filtro--no li { color: var(--gris); }

/* --- 7 · Agendar --------------------------------------------------------- */

.agendar h2 { max-width: 24ch; }

.agendar__copy {
  margin-top: 1.85rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.58;
  color: var(--texto);
  max-width: 64ch;
}

.agendar__cta { margin-top: 2.6rem; }

/* --- 8 · Dudas ----------------------------------------------------------- */

.dudas {
  margin-top: 3rem;
  border-top: 1px solid var(--filete);
  max-width: 54rem;
}

.duda { border-bottom: 1px solid var(--filete); }

.duda summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.45rem 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.014em;
}

.duda summary::-webkit-details-marker { display: none; }

.duda summary::after {
  content: '+';
  flex: none;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gris);
}

.duda[open] summary::after { content: '–'; }

.duda__cuerpo {
  padding: 0 0 1.6rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  max-width: 64ch;
}

/* --- 9 · Footer ---------------------------------------------------------- */

.footer {
  background: var(--panel);
  color: var(--gris);
  padding-block: 3.5rem 3rem;
  border-top: 1px solid var(--filete);
}

.footer__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.footer__enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9688rem;
}

.footer__enlaces a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.footer__enlaces a:hover {
  color: var(--tinta);
  border-bottom-color: var(--filete);
}

.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filete);
  font-size: 0.875rem;
}

/* --- Páginas legales ----------------------------------------------------- */

.legal { padding-block: clamp(3.5rem, 8vw, 6rem); }

.legal h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.3125rem;
  margin: 2.75rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--filete);
}

.legal h3 {
  font-size: 1.125rem;
  margin: 1.9rem 0 0.6rem;
}

.legal p, .legal li {
  max-width: var(--medida);
  font-size: 1.0625rem;
  color: var(--texto);
}

.legal ul {
  max-width: var(--medida);
  margin: 0 0 1.15em;
  padding-left: 1.15rem;
}

.legal li { margin-bottom: 0.5em; }
.legal li:last-child { margin-bottom: 0; }
.legal li::marker { color: var(--gris); }

/* Ficha de datos identificativos */
.legal__datos {
  max-width: var(--medida);
  margin: 0 0 1.15em;
  border-top: 1px solid var(--filete);
}

.legal__datos > div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) 1fr;
  gap: 0 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--filete);
}

.legal__datos dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
  padding-top: 0.35em;
}

.legal__datos dd {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--tinta);
}

.legal__actualizado {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filete);
  font-size: 0.9375rem;
  color: var(--gris);
}

/* --- Móvil --------------------------------------------------------------- */

@media (max-width: 1024px) {
  .formula { text-wrap: balance; }
}

@media (max-width: 900px) {
  .dolores { grid-template-columns: 1fr; gap: 2.25rem; }
  .capas { grid-template-columns: 1fr; }
  .capa {
    border-right: 0;
    border-bottom: 1px solid var(--filete);
    padding: 1.7rem 0;
  }
  .capa:last-child { border-bottom: 0; }
  .capa:not(:first-child) { padding-left: 0; }
  .dos-columnas { grid-template-columns: 1fr; gap: 3rem; }
  .quien { grid-template-columns: 1fr; }
  .foto { max-width: 440px; }
  .filtro { grid-template-columns: 1fr; gap: 2.5rem; }
  .linea-tiempo li { grid-template-columns: 1fr; gap: 0.35rem; }
  .legal__datos > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer__fila { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .nav__fila { min-height: 64px; }
  .wordmark { height: 24px; }
  .boton { width: 100%; text-align: center; }
  .boton--nav { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* --- Impresión ----------------------------------------------------------- */
/* En papel se imprime en claro: tinta sobre blanco, no un folio negro. */

@media print {
  .nav, .agendar__cta { display: none; }
  body, .hero, .seccion--oscura, .footer {
    background: #FFFFFF;
    color: #111111;
  }
  .hero__sub, .seccion__intro, .dolor p, .capa p, .limites li,
  .linea-tiempo span, .duda__cuerpo, .agendar__copy, .filtro li,
  .legal p, .legal li { color: #333330; }
}
