/* ==========================================================================
   Propiedad Plena — Hoja de estilos de producción
   Diseño A "institucional oscura", aprobado por el cliente.
   Enfoque: primero celular (390 px) y después computador (1440 px).

   Índice
   1. Variables (marca, tipografía, espaciado)
   2. Base
   3. Utilidades y componentes comunes (botones, encabezados, íconos, fotos)
   4. Menú superior y menú para celular
   5. Secciones (en el orden de la página)
   6. Pie de página y botón flotante
   7. Páginas internas (legales y 404)
   8. Entrada de la portada (CSS, se ve desde el primer pintado)
   9. Movimiento y detalles de oficio (tres niveles: sin clase, .puede-cine, .cine)
   10. Movimiento reducido
   ========================================================================== */

/* 0. FUENTES DE RESPALDO ===================================================
   Mientras llegan Spectral y Archivo desde Google Fonts, el navegador usa
   Georgia y Arial ajustadas a sus métricas (medidas con los archivos reales),
   para que el cambio de fuente no mueva el diseño. */
@font-face {
  font-family: 'Spectral Respaldo';
  src: local('Georgia');
  size-adjust: 101.29%;
  ascent-override: 104.55%;
  descent-override: 45.71%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Spectral Respaldo';
  font-style: italic;
  src: local('Georgia Italic'), local('Georgia-Italic');
  size-adjust: 101.29%;
  ascent-override: 104.55%;
  descent-override: 45.71%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Archivo Respaldo';
  src: local('Arial'), local('ArialMT');
  size-adjust: 101.76%;
  ascent-override: 86.28%;
  descent-override: 20.64%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Archivo Respaldo';
  font-weight: 600 700;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 101.76%;
  ascent-override: 86.28%;
  descent-override: 20.64%;
  line-gap-override: 0%;
}

/* 1. VARIABLES ============================================================= */
:root {
  /* Marca (CLAUDE.md) */
  --bg: #0A121B;
  --bg-2: #0E1823;
  --card: #121E2B;
  --line: #1F2E3E;
  --tx: #E8EFF5;
  --mu: #93A6B5;
  --ac: #C0A15E;          /* dorado: botones y acentos */
  --ac-2: #4E9FC9;        /* azul acero: el chulo del logo */
  --casa: #C9D6E2;        /* platino: la casa del logo */

  /* Derivados para estados y zonas puntuales */
  --ac-hover: #CDB273;
  --ac-active: #AD8E4F;
  --ink: #0A121B;
  --footer: #070D14;
  --mu-2: #A9B8C6;        /* texto del llamado final (diseño aprobado) */

  /* Tipografías */
  --ff-serif: 'Spectral', 'Spectral Respaldo', Georgia, 'Times New Roman', serif;
  --ff-sans: 'Archivo', 'Archivo Respaldo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Escala tipográfica fluida: valor mínimo a 390 px, máximo a 1440 px */
  --fs-h1: clamp(2.375rem, 1.6rem + 3.3vw, 4rem);          /* 38 → 64 */
  --fs-h2: clamp(2rem, 1.5rem + 2.1vw, 2.875rem);          /* 32 → 46 */
  --fs-h2-xl: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);        /* 36 → 64: titulares editoriales */
  --fs-h3-lg: clamp(1.5rem, 1.38rem + .5vw, 1.75rem);      /* 24 → 28 */
  --fs-h3: clamp(1.25rem, 1.18rem + .3vw, 1.4375rem);      /* 20 → 23 */
  --fs-lead: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);    /* 17 → 19 */
  --fs-body: clamp(1rem, .97rem + .12vw, 1.0625rem);       /* 16 → 17 */
  --fs-sm: .9375rem;                                       /* 15 */
  --fs-xs: .8125rem;                                       /* 13 */

  /* Espaciado y ritmo vertical */
  --gutter: clamp(20px, 3.8vw, 40px);
  --sec-y: clamp(80px, 7vw + 50px, 152px);     /* aire de cada sección */
  --head-gap: clamp(36px, 3.6vw + 22px, 56px);  /* del encabezado al contenido */
  --nav-h: 64px;

  /* Radios y movimiento */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);      /* entradas: rápidas al inicio, se posan suave */
  --ease-suave: cubic-bezier(.45, 0, .2, 1);     /* trazos y brillos */
  --t: .2s;
}
@media (min-width: 1000px) {
  :root { --nav-h: 78px; }
}

/* 2. BASE ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scroll-padding-top: calc(var(--nav-h) + 8px); /* los anclajes no quedan debajo del menú */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Desplazamiento suave solo para los clics dentro de la página: main.js pone .suave
   después de load. Así, quien entra por un enlace con # (o recarga a media página) llega
   de inmediato y nada interrumpe ese salto a mitad de camino. Sin JavaScript también es
   inmediato. */
html.suave { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* seguro contra scroll horizontal (no rompe el menú fijo) */
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3 {
  font-family: var(--ff-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance; /* reparte las líneas de los títulos y evita palabras huérfanas */
}
h1, h2 { line-height: 1.08; letter-spacing: -.015em; } /* Spectral grande: interlineado ajustado */
p, li { text-wrap: pretty; }
b, strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(192, 161, 94, .35); color: var(--tx); }

/* Enlace para saltar al contenido (teclado y lectores de pantalla) */
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ac); color: var(--ink);
  padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }

/* 3. COMPONENTES COMUNES ================================================== */
.wrap {
  width: 100%;
  max-width: calc(1120px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Secciones: un solo ritmo vertical para toda la página */
.sec { padding-block: var(--sec-y); }
.sec--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Encabezado de sección: antetítulo → título → entrada */
.sec-head { max-width: 820px; margin-bottom: var(--head-gap); }
.sec-head--wide { max-width: 900px; }
.sec-head h2 { font-size: var(--fs-h2); margin-top: 14px; }
.sec-head h2.titulo-xl { font-size: var(--fs-h2-xl); }   /* titulares editoriales (El riesgo) */
.sec-head--wide:has(.titulo-xl) { max-width: 1060px; }
.sec-head .lead { margin-top: 16px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ac);
}
.eyebrow::before { /* línea fina que antecede al antetítulo; en .cine se dibuja al llegar */
  content: ""; flex: none;
  width: 28px; height: 1px;
  background: currentColor;
  transform-origin: left center;
}
.lead { font-size: var(--fs-lead); color: var(--mu); max-width: 720px; }

/* Botones ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ac);
  --btn-tx: var(--ink);
  --btn-bd: var(--ac);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 28px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-tx);
  font-family: var(--ff-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  isolation: isolate;
  transition:
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    color var(--t) var(--ease),
    transform .3s var(--ease-expo);
}
.btn::before { /* resplandor dorado: aparece con opacidad al pasar el mouse */
  content: ""; position: absolute; inset: -1px; z-index: -2;
  border-radius: inherit; pointer-events: none;
  box-shadow: 0 16px 34px -12px rgba(192, 161, 94, .75), 0 0 26px -6px rgba(214, 186, 120, .5);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.btn--ghost::before { display: none; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:focus-visible { outline: 2px solid var(--tx); outline-offset: 3px; border-radius: 999px; }
.btn:active { --btn-bg: var(--ac-active); --btn-bd: var(--ac-active); transform: translateY(0) scale(.985); }

.btn--ghost { --btn-bg: transparent; --btn-tx: var(--tx); --btn-bd: var(--line); }
.btn--ghost:active { --btn-bg: rgba(192, 161, 94, .16); --btn-bd: var(--ac); }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .875rem; }
.btn--sm svg { width: 18px; height: 18px; }
.btn--lg { min-height: 58px; padding: 16px 32px; }

/* El hover solo existe en dispositivos con puntero (evita estados pegados en celular) */
@media (hover: hover) {
  .btn:hover {
    --btn-bg: var(--ac-hover);
    --btn-bd: var(--ac-hover);
    transform: translateY(-2px);
  }
  .btn:hover::before { opacity: 1; }
  .btn--ghost:hover {
    --btn-bg: rgba(192, 161, 94, .08);
    --btn-bd: var(--ac);
    --btn-tx: var(--tx);
  }
  .btn:active { transform: translateY(0) scale(.985); }
}

/* Ícono en recuadro dorado (franja de confianza y tarjetas) ---------------- */
.ic {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--ac) 14%, transparent);
  color: var(--ac);
}
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Caja base ---------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 20px;
}
.card p { font-size: var(--fs-sm); color: var(--mu); line-height: 1.55; }
.card-title { font-size: 1.3125rem; margin-bottom: 10px; }
@media (min-width: 600px) {
  .card { padding: 30px 28px; }
}

/* Tarjetas con ícono (equipo y confianza) ------------------------------------
   Celular: ícono y título en una fila, texto a lo ancho (más legible).
   Desde 600 px: el ícono arriba, como en el diseño aprobado. */
.cards { display: grid; gap: 12px; }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
.feature h3 { font-size: var(--fs-h3); }
.feature p { grid-column: 1 / -1; margin-top: 12px; font-size: var(--fs-sm); color: var(--mu); line-height: 1.55; }

@media (min-width: 600px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .feature { display: block; padding: 28px 26px; }
  .feature h3 { margin: 18px 0 8px; }
  .feature p { margin-top: 0; }
}
/* Equipo (tres tarjetas): en tableta, una columna con el ícono junto al título
   para no dejar una tarjeta sola; desde 860 px, tres columnas iguales. */
@media (min-width: 600px) and (max-width: 859.98px) {
  .cards--3 { grid-template-columns: 1fr; }
  .cards--3 .feature { display: grid; padding: 24px 26px; }
  .cards--3 .feature h3 { margin: 0; }
  .cards--3 .feature p { margin-top: 12px; max-width: 60ch; }
}
@media (min-width: 860px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* Espacios de imagen ----------------------------------------------------------
   Marco con proporción fija y fondo de marca. Desde el 26/11/2026 llevan piezas
   gráficas (.ph--pieza): WebP con recorte propio en celular y JPG de respaldo.
   Si un archivo falta, main.js oculta la imagen rota y queda el fondo de marca. */
.ph {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(78, 159, 201, .10), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(192, 161, 94, .08), transparent 60%),
    var(--card);
}
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  color: transparent; /* oculta el texto alternativo si la imagen falla sin JavaScript */
}
.ph--vacia img { display: none; }
/* Celular: el marco de trabajo-1 pasa a 4:5 para encuadrar el teléfono de la pieza */
@media (max-width: 599.98px) {
  .ph--movil-4x5 { aspect-ratio: 4 / 5; }
}

/* 4. MENÚ SUPERIOR ======================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 18, 27, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h); }

.brand { display: inline-flex; flex: none; border-radius: 6px; text-decoration: none; }
.brand img { height: 38px; width: auto; }
@media (min-width: 1000px) {
  .brand img { height: 44px; }
}

.nav-links { display: none; }
.nav-links a {
  position: relative;
  padding-block: 8px;
  font-size: var(--fs-sm);
  color: var(--mu);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
/* Subrayado dorado: al pasar el mouse y en la sección que se está leyendo */
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: var(--ac);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--tx); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { display: none; }

/* Botón hamburguesa */
.menu-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.menu-toggle:active { background: var(--card); }
.menu-bars { position: relative; width: 20px; height: 12px; }
.menu-bars span {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--tx); border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.menu-bars span:first-child { top: 1px; }
.menu-bars span:last-child { top: 9.5px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { top: 5.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { top: 5.25px; transform: rotate(-45deg); }

@media (hover: hover) {
  .menu-toggle:hover { border-color: var(--ac); }
}
@media (min-width: 600px) {
  .nav-cta { display: inline-flex; }
}
@media (min-width: 1000px) {
  .nav-links { display: flex; gap: 30px; }
  .menu-toggle { display: none; }
}

/* Menú desplegable (celular y tableta) */
.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 45;
  display: flex; flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) calc(110px + env(safe-area-inset-bottom));
  background: var(--bg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
}
.menu.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s;
}
.menu-link {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-serif);
  font-size: 1.625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
.menu-link[aria-current="true"] { color: var(--ac); }
.menu-link:active { color: var(--ac); }
.menu-cta { width: 100%; margin-top: 28px; }
.menu-info { margin-top: 16px; font-size: .875rem; color: var(--mu); text-align: center; }
.menu-info b { color: var(--tx); }
html.menu-abierto { overflow: hidden; }
@media (min-width: 1000px) {
  .menu { display: none; }
}

/* 5. SECCIONES ============================================================ */

/* Portada ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(40px, 5vw + 20px, 96px) clamp(72px, 6vw + 40px, 112px);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.04; margin: 16px 0 22px; }
.hero h1 em { font-style: italic; color: var(--ac); }
.hero .lead { max-width: 600px; }

.ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.price-line { margin-top: 24px; font-size: var(--fs-sm); color: var(--mu); }
.price-line b { color: var(--tx); font-size: 1.0625rem; }

@media (min-width: 480px) {
  .ctas { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}
@media (min-width: 960px) {
  /* Alineado arriba (no centrado): así el certificado no salta si el título
     cambia de alto mientras cargan las fuentes */
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: start; }
}

/* Certificado de muestra: la gráfica del video «Paso a paso» como imagen
   (assets/img/certificado-ejemplo.webp). El rótulo y el sello van en HTML encima. */
.hero-visual { position: relative; width: 100%; max-width: 440px; padding: 8px 0 12px; }
@media (min-width: 960px) {
  .hero-visual { max-width: none; padding: clamp(20px, 2.4vw, 36px) 0 0; }
}
.cert {
  --cert-rot: 0deg;
  --casa: #0A121B;
  position: relative;
  transform: rotate(var(--cert-rot));
}
.cert img {
  display: block; width: 100%; height: auto;
  border-radius: 7px;
  background: #F2EEE6; /* tono del papel mientras carga la imagen */
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .04);
}
.cert-nota { /* rótulo visible y discreto, en el mismo lugar que en el video */
  position: absolute; left: 0; right: 0; top: 96.25%;
  transform: translateY(-50%);
  font-size: 9px; font-weight: 600; letter-spacing: .26em; line-height: 1;
  text-align: center; text-transform: uppercase;
  color: #525D6A; /* cumple AA sobre el tono del papel */
}

/* Sello "Firmado por abogado": se estampa junto a la firma del certificado */
.seal {
  position: absolute; right: -8px; bottom: 9%;
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ac); color: #0A121B;
  font-size: 7px; font-weight: 700; letter-spacing: .1em; line-height: 1.3; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transform: rotate(-10deg);
}
.seal::before { /* anillo interior del sello */
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(10, 18, 27, .28); border-radius: 50%;
}
.seal svg { width: 24px; height: 24px; margin-bottom: 3px; }

@media (min-width: 600px) {
  .cert-nota { font-size: 10px; }
  .seal { right: -26px; width: 104px; height: 104px; font-size: 8.5px; }
  .seal svg { width: 30px; height: 30px; }
}
@media (min-width: 960px) {
  .cert { --cert-rot: 1.2deg; }
  .seal { right: -38px; }
}

/* Franja de confianza ---------------------------------------------------- */
.trust { background: var(--bg-2); border-block: 1px solid var(--line); }
.trust-list { display: grid; }
.trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.trust-item:last-child { border-bottom: 0; }
.trust-item .ic { grid-row: span 2; }
.trust-title { font-family: var(--ff-serif); font-weight: 500; font-size: 1.1875rem; line-height: 1.25; }
.trust-text { margin-top: 4px; font-size: .875rem; line-height: 1.5; color: var(--mu); }

/* Dato destacado: "Más de 350 casos" (primer elemento de la franja, sin ícono) */
.trust-item--dato { display: block; padding: 26px 0 24px; }
.trust-num {
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(2rem, 1.62rem + 1.2vw, 2.5rem);   /* 32 → 40 */
  line-height: 1.05; letter-spacing: -.01em;
  color: var(--ac);
}
.trust-item--dato .trust-text { margin-top: 8px; font-size: .9375rem; }

/* Tableta: el dato ocupa una fila completa y debajo van las cuatro garantías en 2 × 2 */
@media (min-width: 600px) {
  .trust-list { grid-template-columns: 1fr 1fr; }
  .trust-item { display: block; padding: 28px 24px; border-bottom: 1px solid var(--line); }
  .trust-item--dato { grid-column: 1 / -1; padding: 28px 0 26px; }
  .trust-item:nth-child(even) { border-right: 1px solid var(--line); padding-left: 0; }
  .trust-item:nth-last-child(-n + 2) { border-bottom: 0; }
  .trust-title { margin: 14px 0 6px; font-size: 1.25rem; }
  .trust-text { margin-top: 0; }
}
/* Computador mediano: el dato arriba y las cuatro garantías en una fila */
@media (min-width: 1000px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .trust-item { padding: 34px 26px; border-bottom: 0; border-right: 1px solid var(--line); }
  .trust-item--dato { padding: 30px 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(even) { padding-left: 26px; }
  .trust-item:nth-child(2) { padding-left: 0; }
  .trust-item:last-child { border-right: 0; }
}
/* Computador amplio: cinco columnas, el dato primero */
@media (min-width: 1180px) {
  .trust-list { grid-template-columns: 1.3fr repeat(4, 1fr); }
  .trust-item { padding: 34px 20px; }
  .trust-item--dato { grid-column: auto; padding: 34px 24px 34px 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .trust-item--dato .trust-num { font-size: 2rem; white-space: nowrap; }   /* "Más de 350 casos" en una línea */
  .trust-item--dato .trust-text { text-wrap: balance; }
  .trust-item:nth-child(2) { padding-left: 20px; }
  .trust-item:nth-child(even) { padding-left: 20px; }
  .trust-title { font-size: 1.125rem; }
}

/* El riesgo ---------------------------------------------------------------- */
.risk-grid { display: grid; gap: 40px; }
.risk-copy p { color: var(--mu); }
.risk-copy p + p { margin-top: 18px; }
.risk-copy strong { color: var(--tx); }
.stat {
  font-family: var(--ff-serif);
  font-size: clamp(4.5rem, 2.2rem + 8vw, 9rem); /* 72 → 144: escala editorial */
  font-weight: 400; line-height: .9; letter-spacing: -.025em;
  color: var(--ac);
  font-variant-numeric: lining-nums tabular-nums;
}
.statnote { max-width: 440px; margin-top: 12px; font-size: var(--fs-sm); color: var(--mu); }

.versus {
  display: grid;
  margin-top: clamp(48px, 4vw + 30px, 72px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.versus-side { padding: 28px 24px; background: var(--card); }
.versus-side--ac { background: color-mix(in srgb, var(--ac) 12%, var(--card)); }
.versus-k { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mu); }
.versus-v { margin: 10px 0 8px; font-family: var(--ff-serif); font-size: clamp(2rem, 1.7rem + 1.2vw, 2.5rem); line-height: 1.1; }
.versus-p { font-size: var(--fs-sm); color: var(--mu); }
.versus-vs {
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--ff-serif); font-style: italic; color: var(--mu);
}
.source { margin-top: 18px; font-size: .78rem; line-height: 1.55; color: var(--mu); }

@media (min-width: 760px) {
  .versus { grid-template-columns: 1fr auto 1fr; }
  .versus-side { padding: 36px; }
  .versus-vs { padding: 0 22px; border-block: 0; border-inline: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .risk-grid { grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
}

/* Video -------------------------------------------------------------------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0E1823, #1A2C3E);
}
.video-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 300px at 30% 30%, rgba(78, 159, 201, .18), transparent 70%);
}
.video-mark { position: absolute; right: 18px; top: 16px; z-index: 1; width: 40px; height: 40px; opacity: .6; }
.video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-frame.tiene-video::after { background: linear-gradient(0deg, rgba(10, 18, 27, .55), rgba(10, 18, 27, .1)); }
.video-play {
  position: relative; z-index: 2;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ac);
  box-shadow: 0 0 0 11px rgba(192, 161, 94, .18);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.video-play svg { width: 28px; height: 28px; fill: #0A121B; margin-left: 4px; }
.video-play:disabled { cursor: default; }
.video-play:focus-visible { outline: 2px solid var(--tx); outline-offset: 6px; border-radius: 50%; }
.video-play:not(:disabled):active { transform: scale(.96); }
@media (hover: hover) {
  .video-play:not(:disabled):hover { background: var(--ac-hover); transform: scale(1.05); box-shadow: 0 0 0 16px rgba(192, 161, 94, .2); }
}
.video-tag {
  position: absolute; left: 18px; bottom: 14px; z-index: 2;
  font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--casa);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* Video propio: póster diferido (no suma al peso inicial) y reproductor nativo al tocar play.
   En celular el marco es vertical (9:16), como el video que se reproduce ahí. */
.video-poster, .video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-poster img { object-fit: cover; object-position: 50% 28%; }
.video-frame:has(.video-poster)::after { /* oscurece abajo para que el rótulo se lea sobre la foto */
  background:
    linear-gradient(0deg, rgba(10, 18, 27, .78) 0%, rgba(10, 18, 27, 0) 32%),
    linear-gradient(0deg, rgba(10, 18, 27, .12), rgba(10, 18, 27, .12));
}
.video-nativo {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  background: #000; object-fit: contain;
}
.reproduciendo .video-play,
.reproduciendo .video-tag,
.reproduciendo .video-mark { visibility: hidden; }
.video-frame:has(.video-poster) .video-mark { display: none; } /* sobre la pared clara de la foto no se distingue */
.video-frame:has(.video-poster) .video-play { /* más abajo, sobre el pecho: deja el rostro despejado */
  position: absolute; left: 50%; top: 68%;
  translate: -50% -50%;
}
@media (max-width: 759.98px) {
  .video-frame:has(.video-poster) { aspect-ratio: 9 / 16; }
}

@media (min-width: 760px) {
  .video-mark { right: 24px; top: 20px; width: 54px; height: 54px; }
  .video-play { width: 96px; height: 96px; box-shadow: 0 0 0 14px rgba(192, 161, 94, .18); }
  .video-play svg { width: 34px; height: 34px; margin-left: 5px; }
  .video-tag { left: 24px; bottom: 20px; font-size: .8125rem; }
}

/* Videos cortos (Reels aprobados): tarjetas verticales 9:16 que solo muestran el póster
   (diferido, como el del video principal) hasta que se tocan. En celular van en una fila
   que se desliza de lado; desde 600 px, dos columnas; desde 1000 px, junto al encabezado. */
.reels-layout { display: grid; gap: 0; }
.reels {
  display: flex; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px;
  scrollbar-width: none;
}
.reels::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 min(70vw, 290px); scroll-snap-align: start; }
.reel-marco {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0E1823, #1A2C3E);
}
.reel-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-marco::after { /* base oscura para que el botón y la duración se lean sobre cualquier póster */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 18, 27, .82) 0%, rgba(10, 18, 27, 0) 30%);
}
.reel .video-play { /* abajo a la izquierda: no tapa la gráfica ni el rostro del póster */
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  width: 54px; height: 54px; box-shadow: 0 0 0 8px rgba(192, 161, 94, .18);
}
.reel .video-play svg { width: 22px; height: 22px; margin-left: 3px; }
.reel-dur {
  position: absolute; left: 84px; bottom: 30px; z-index: 2;
  font-size: var(--fs-xs); letter-spacing: .08em; color: var(--casa);
  font-variant-numeric: tabular-nums;
}
.reproduciendo .reel-dur { visibility: hidden; }
.reel-t { margin-top: 16px; font-family: var(--ff-serif); font-size: var(--fs-h3); line-height: 1.25; color: var(--tx); }
.reel-d { margin-top: 6px; font-size: var(--fs-sm); color: var(--mu); line-height: 1.5; }
@media (min-width: 600px) {
  .reels {
    display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); gap: 28px;
    overflow: visible; margin-inline: 0; padding: 0;
  }
}
@media (min-width: 1000px) {
  .reels-layout { grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; }
  .reels-layout .sec-head { margin-bottom: 0; }
  .reels { grid-template-columns: repeat(2, 280px); }
}

/* Equipo: encabezado con foto ------------------------------------------- */
.split-head { display: grid; gap: 32px; margin-bottom: var(--head-gap); }
.split-head .sec-head { margin-bottom: 0; }
@media (min-width: 900px) {
  .split-head { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 56px; align-items: end; }
}

/* El estudio: dos frentes ------------------------------------------------- */
.fronts { display: grid; border-top: 1px solid var(--line); }
.front { padding: 28px 0; border-bottom: 1px solid var(--line); }
.front:last-child { border-bottom: 0; padding-bottom: 0; }
.front-n { font-family: var(--ff-serif); font-size: clamp(2.75rem, 2.3rem + 1.6vw, 3.625rem); line-height: 1; color: var(--ac); }
.front-k { margin: 14px 0 6px; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mu); }
.front h3 { margin-bottom: 10px; font-size: var(--fs-h3-lg); }
.front p:last-child { font-size: .96875rem; color: var(--mu); }
@media (min-width: 900px) {
  .fronts { grid-template-columns: repeat(2, 1fr); }
  .front h3, .front p:last-child { max-width: 46ch; }
  .front { padding: 36px 30px 0 0; margin-right: 30px; border-bottom: 0; border-right: 1px solid var(--line); }
  .front:last-child { margin-right: 0; border-right: 0; }
}

/* Cómo funciona: pasos ---------------------------------------------------
   Celular: línea de tiempo vertical. Computador: cuatro columnas unidas. */
.steps { display: grid; counter-reset: paso; }
.step { position: relative; padding: 0 0 32px 68px; counter-increment: paso; }
.step::before {
  content: counter(paso);
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--ac);
  background: var(--bg);
  font-family: var(--ff-serif); font-size: 1.375rem; color: var(--ac);
}
.step::after {
  content: ""; position: absolute;
  left: 24px; top: 56px; bottom: 8px; width: 1px;
  background: var(--line);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 { margin: 10px 0 8px; font-size: clamp(1.25rem, 1.2rem + .2vw, 1.375rem); /* 20 → 22, como el diseño aprobado */ }
.step p { font-size: var(--fs-sm); color: var(--mu); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step { padding: 66px 0 0; }
  .step::after { left: 60px; right: -10px; top: 24px; bottom: auto; width: auto; height: 1px; }
  .step h3 { margin-top: 0; }
}

.gallery { display: grid; gap: 12px; margin-top: clamp(40px, 4vw + 24px, 64px); }
@media (min-width: 600px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* Planes ------------------------------------------------------------------- */
.plans { display: grid; gap: 28px; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.plan--hl {
  border-color: transparent; /* el borde lo pinta .plan-borde */
  background: linear-gradient(180deg, rgba(192, 161, 94, .10), var(--card) 40%);
}
.plan-badge {
  position: absolute; top: -13px; left: 24px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ac); color: #0A121B;
  font-size: .71875rem; font-weight: 700; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase;
}
.plan-k { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ac); }
.plan h3 { margin: 10px 0 8px; font-size: var(--fs-h3-lg); }
.plan-for { font-size: .90625rem; color: var(--mu); }
.plan-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 22px;
  font-family: var(--ff-serif); font-size: clamp(2.625rem, 2.4rem + 1vw, 3.125rem); font-weight: 500; line-height: 1;
}
.plan-price small { font-family: var(--ff-sans); font-size: .875rem; color: var(--mu); }
.plan-once { margin: 6px 0 18px; font-size: var(--fs-xs); color: var(--mu); }
.plan-list { margin-bottom: 26px; }
.plan-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line);
  font-size: .90625rem; line-height: 1.5;
}
.plan-list li::before { /* chulo azul acero, como en el logo */
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--ac-2); border-bottom: 2px solid var(--ac-2);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; margin-top: auto; }

@media (min-width: 600px) {
  .plan { padding: 36px 32px 32px; }
  .plan-badge { left: 32px; }
}
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .plan { padding: 36px 28px 30px; }
  .plan-badge { left: 28px; }
}
/* Con subgrid, precio, lista y botón quedan a la misma altura en los tres planes
   (filas: encabezado, precio, "pago único", lista, botón) */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .plan .btn { align-self: end; }
  }
}
@media (min-width: 1100px) {
  .plan { padding: 38px 32px 32px; }
  .plan-badge { left: 32px; }
}

.pay { display: grid; gap: 16px; margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-xs); line-height: 1.3; }
@media (min-width: 900px) {
  .pay { grid-template-columns: 1.3fr 1fr; gap: 22px; }
}

/* Por qué confiar: foto + lista numerada fina ----------------------------- */
.trust-layout { display: grid; gap: 32px; }
.trust-aside .sec-head { margin-bottom: 32px; }
@media (min-width: 600px) and (max-width: 999.98px) {
  .trust-aside .ph { max-width: 640px; }
}
@media (min-width: 1000px) {
  .trust-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: end; }
  .trust-aside .sec-head { margin-bottom: 40px; }
}

/* Preguntas frecuentes (desplegables) ---------------------------------- */
.faq { display: grid; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--ff-serif);
  font-size: clamp(1.1875rem, 1.13rem + .25vw, 1.3125rem);
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--t) var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: 4px; }
.qa-icon {
  position: relative; flex: none;
  width: 30px; height: 30px; margin-top: -1px;
  border: 1px solid var(--line); border-radius: 50%;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.qa-icon::before, .qa-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px;
  background: var(--ac);
  transition: transform .25s var(--ease);
}
.qa-icon::after { transform: rotate(90deg); }
/* Sin JavaScript: <details> nativo. Con JavaScript, main.js abre y cierra con la clase
   .abierta y la altura se anima con grid-template-rows (0fr → 1fr), sin saltos. */
.qa-body { display: grid; grid-template-rows: 1fr; }
.qa-in { min-height: 0; overflow: hidden; }
.qa-in p { padding: 0 50px 24px 0; font-size: var(--fs-sm); color: var(--mu); }
.js .qa .qa-body { grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-expo); }
.js .qa.abierta .qa-body { grid-template-rows: 1fr; }
.qa-icon { transition: transform .4s var(--ease-expo), border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.qa[open] .qa-icon,
.js .qa.abierta .qa-icon { transform: rotate(45deg); border-color: var(--ac); background: rgba(192, 161, 94, .1); } /* + → × */
.js .qa[open]:not(.abierta) .qa-icon { transform: none; border-color: var(--line); background: none; }
@media (hover: hover) {
  .qa summary:hover { color: #fff; }
  .qa summary:hover .qa-icon { border-color: var(--ac); }
}
/* Cinco preguntas en una sola lista (sin huecos). En computador, el título queda a la
   izquierda y fijo mientras se recorren las preguntas. */
@media (min-width: 1000px) {
  .faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 72px; align-items: start; }
  .faq-layout .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* Llamado final ------------------------------------------------------------ */
.final {
  position: relative; overflow: hidden;
  padding-block: clamp(96px, 7vw + 70px, 176px);
  background: var(--bg);
  text-align: center;
}
.final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 50% 0%, rgba(192, 161, 94, .18), transparent 70%);
}
.final .wrap { position: relative; }
.final h2 { max-width: 980px; margin: 18px auto 22px; font-size: var(--fs-h2-xl); }
.final .eyebrow { justify-content: center; }
.final-text { max-width: 640px; margin-inline: auto; color: var(--mu-2); }
.final-quote { /* frase del cliente, como cita grande */
  max-width: 760px;
  margin: 40px auto 0;
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.375rem);
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--tx);
  text-wrap: balance;
}
.final-quote .comilla { /* comilla angular decorativa (oculta a lectores de pantalla) */
  display: block;
  height: .5em;
  margin-bottom: .2em;
  font-size: 2.6em; font-style: normal; line-height: .9;
  color: var(--ac);
}
.final .btn { margin-top: 34px; }
.final-wa { margin-top: 22px; font-size: var(--fs-sm); color: var(--mu-2); }
.final-wa b { color: #fff; }

/* 6. PIE DE PÁGINA Y BOTÓN FLOTANTE ===================================== */
.site-footer {
  padding: 60px 0 calc(104px + env(safe-area-inset-bottom)); /* espacio para el botón flotante en celular */
  background: var(--footer);
  color: var(--mu);
  font-size: .875rem;
}
.footer-grid { display: grid; gap: 36px; }
.footer-brand p { max-width: 380px; margin-top: 16px; }
.footer-title {
  margin-bottom: 12px;
  font-family: var(--ff-sans); font-size: .75rem; font-weight: 600; letter-spacing: .2em; line-height: 1.5;
  text-transform: uppercase;
  color: var(--tx);
}
.footer-links a {
  display: inline-block; padding: 5px 0;
  color: var(--mu); text-decoration: none;
  text-underline-offset: 4px;
  transition: color var(--t) var(--ease);
}
.footer-links a:hover { color: var(--tx); text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid #1A2735; font-size: .75rem; line-height: 1.65; color: #6F8091; }
@media (min-width: 760px) {
  .site-footer { padding-bottom: 40px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
}

.wa-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity .22s var(--ease),
    transform .22s var(--ease),
    box-shadow var(--t) var(--ease),
    visibility 0s;
}
/* En la portada, main.js lo muestra solo cuando el botón principal sale de la
   pantalla y lo esconde con el menú abierto. Sin JavaScript siempre se ve. */
.js .wa-float:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:focus-visible { outline: 2px solid var(--tx); outline-offset: 4px; border-radius: 50%; }
.wa-float:active { transform: scale(.95); }
@media (hover: hover) {
  .wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
}
@media (min-width: 760px) {
  .wa-float { right: 26px; bottom: 26px; width: 62px; height: 62px; }
  .wa-float svg { width: 32px; height: 32px; }
}

/* 7. PÁGINAS INTERNAS (legales y 404) =================================== */
.page-main {
  min-height: calc(100vh - var(--nav-h) - 300px);
  padding-block: clamp(64px, 6vw + 40px, 128px);
  background: radial-gradient(900px 500px at 85% 0%, rgba(78, 159, 201, .10), transparent 70%);
}
.page-main h1 { max-width: 820px; margin: 14px 0 18px; font-size: var(--fs-h2-xl); }
.page-main .btn { margin-top: 34px; }

/* Documentos legales (términos y política de datos): texto del equipo jurídico, sin cambios.
   Índice arriba en celular y fijo a la izquierda en computador; líneas de ~70 caracteres. */
.page-doc h1 { font-size: var(--fs-h2); margin-bottom: 0; }
.doc-cabeza { margin-bottom: clamp(32px, 3vw + 20px, 56px); }
.doc { display: grid; gap: 36px; }
.doc-indice {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-2); padding: 20px 22px;
}
.doc-indice-t { font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ac); margin-bottom: 12px; }
.doc-indice ol { display: grid; gap: 4px; }
.doc-indice a {
  display: block; padding: 4px 0;
  font-size: var(--fs-sm); line-height: 1.4; color: var(--mu); text-decoration: none;
  transition: color var(--t) var(--ease);
}
.doc-indice a:hover, .doc-indice a:focus-visible { color: var(--tx); }
.doc-texto { max-width: 70ch; }
.doc-texto h2 {
  font-size: var(--fs-h3-lg); margin: 48px 0 18px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.doc-texto h2:first-child, .doc-vigencia + h2 { margin-top: 0; }
.doc-texto p, .doc-texto li { color: var(--mu-2); line-height: 1.75; }
.doc-texto p { margin-bottom: 16px; }
.doc-texto strong { color: var(--tx); font-weight: 600; }
.doc-texto a { color: var(--ac); text-underline-offset: 3px; }
.doc-texto a:hover { color: var(--ac-hover); }
.doc-vigencia { font-size: var(--fs-sm); color: var(--mu) !important; margin-bottom: 36px !important; }
.doc-lista, .doc-literales { display: grid; gap: 8px; margin: 0 0 18px; }
.doc-lista li { position: relative; padding-left: 20px; }
.doc-lista li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 1px; background: var(--ac); }
.doc-casilla {
  margin: 4px 0 20px; padding: 16px 20px;
  border-left: 2px solid var(--ac); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(192, 161, 94, .07);
}
.doc-casilla p { margin: 0; color: var(--tx); }
@media (min-width: 1000px) {
  .doc { grid-template-columns: 260px minmax(0, 70ch); gap: 72px; align-items: start; }
  .doc-indice { position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* 8. ENTRADA DE LA PORTADA ===============================================
   En CSS, para que se vea desde el primer pintado (sin esperar a GSAP): el
   titular sube línea por línea, el certificado se asienta, se dibujan la firma
   y el chulo de "Viable", y el sello se estampa junto a la firma. */
@keyframes entrada-texto {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes entrada-cert {
  from { opacity: 0; transform: translateY(44px) rotate(calc(var(--cert-rot) + 3deg)) scale(.95); }
  to   { opacity: 1; transform: rotate(var(--cert-rot)); }
}
@keyframes sello { /* se estampa: baja, gira y se asienta (sin rebote) */
  0%   { opacity: 0; transform: scale(1.7) rotate(-28deg); }
  45%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(-10deg); }
}
@keyframes onda { /* onda que deja el sello al estamparse */
  0%   { opacity: .85; transform: scale(.94); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes linea-entra { from { transform: translateY(108%); } to { transform: none; } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes dibuja-linea { from { transform: scaleX(0); } to { transform: none; } }

.hero-copy > :not(.titular) { animation: entrada-texto .9s var(--ease-expo) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(3) { animation-delay: .5s; }
.hero-copy > :nth-child(4) { animation-delay: .62s; }
.hero-copy > :nth-child(5) { animation-delay: .72s; }
.hero .eyebrow::before { animation: dibuja-linea 1s var(--ease-expo) .1s both; }
.titular .linea > span { animation: linea-entra 1.15s var(--ease-expo) both; }
.titular .linea:nth-child(1) > span { animation-delay: .12s; }
.titular .linea:nth-child(2) > span { animation-delay: .21s; }
.titular .linea:nth-child(3) > span { animation-delay: .30s; }
.titular .linea:nth-child(4) > span { animation-delay: .39s; }

.cert { animation: entrada-cert 1.3s var(--ease-expo) .35s both; }
.cert-firma path { animation: trazo 1.1s var(--ease-suave) 1.2s forwards; }
.cert-chulo path { animation: trazo .45s var(--ease-suave) 2.3s forwards; }
.seal { animation: sello .6s var(--ease-expo) 2.6s both; }
.seal::after { animation: onda 1.1s var(--ease-expo) 2.85s forwards; }
/* En celular el certificado queda debajo del primer pantallazo: main.js pausa su
   parte de la animación hasta que entra en pantalla, para que se vea completa. */
.anim-espera .cert,
.anim-espera .seal,
.anim-espera .seal::after,
.anim-espera .cert-trazo path { animation-play-state: paused; }

/* 9. MOVIMIENTO Y DETALLES DE OFICIO (referencia/MEJORA_EXPERIENCIA.md) =====
   Tres niveles, como en la landing de Contentoso:
   · sin clase (sin JavaScript o con movimiento reducido): página completa y fija;
   · .puede-cine (lo decide el <head>): brillos, halos que respiran y contadores;
   · .cine (llegaron GSAP y ScrollTrigger, después de load): escenas con el scroll.
   Ninguna regla esconde contenido que no se vaya a mostrar. Solo se animan
   transform y opacity, más stroke-dashoffset en los trazos SVG. */

/* Grano finísimo en toda la página (SVG en línea, no una imagen) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Portada: dos halos de luz, azul y dorado, que respiran muy lento */
.hero > .wrap { position: relative; }
.hero-fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.halo { position: absolute; border-radius: 50%; }
.halo--azul {
  width: 900px; height: 620px; left: calc(85% - 450px); top: calc(18% - 310px);
  background: radial-gradient(closest-side, rgba(78, 159, 201, .17), rgba(78, 159, 201, 0));
}
.halo--oro {
  width: 760px; height: 520px; left: calc(10% - 380px); top: calc(92% - 260px);
  background: radial-gradient(closest-side, rgba(192, 161, 94, .13), rgba(192, 161, 94, 0));
}
@keyframes respira {
  from { opacity: .7; transform: scale(1); }
  to   { opacity: 1;  transform: scale(1.14) translate3d(-2%, 2%, 0); }
}
.puede-cine .halo--azul { animation: respira 16s ease-in-out infinite alternate; }
.puede-cine .halo--oro  { animation: respira 21s ease-in-out -8s infinite alternate; }

/* Titular por líneas: cada línea es una máscara (con aire para tildes, ¿ y cursiva) */
.titular .linea {
  display: block; overflow: hidden;
  padding: .06em .12em .14em 0; margin: -.06em -.12em -.14em 0;
}
.titular .linea > span { display: block; }
.hero h1 em.linea { font-style: italic; }

/* Certificado: firma y chulo del video que se dibujan, y la onda del sello */
.cert-inclina { position: relative; }
.cert-trazo {
  position: absolute; height: auto; overflow: visible; pointer-events: none;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.cert-trazo path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.cert-firma { left: 7.5%; top: 72%; width: 33.93%; stroke: #1D2833; stroke-width: 2.2; }
.cert-chulo { left: 7.14%; top: 30.12%; width: 4.64%; stroke: #4E9FC9; stroke-width: 2.8; }
.seal::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(214, 186, 120, .8);
  opacity: 0; pointer-events: none;
}

/* Botones principales: brillo diagonal que barre el botón cada 7 s */
.btn-brillo { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.btn-brillo::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%;
  background: linear-gradient(100deg, rgba(255, 249, 232, 0) 0%, rgba(255, 249, 232, .55) 50%, rgba(255, 249, 232, 0) 100%);
  transform: translateX(-150%) skewX(-18deg);
}
@keyframes brillo {
  0%        { transform: translateX(-150%) skewX(-18deg); }
  14%, 100% { transform: translateX(360%) skewX(-18deg); }
}
.puede-cine .btn-brillo::after { animation: brillo 7s var(--ease-suave) 3.4s infinite; }

/* Botón flotante: un anillo que pulsa suave cada pocos segundos */
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; opacity: 0; pointer-events: none;
}
@keyframes anillo {
  0%        { opacity: .6; transform: scale(1); }
  30%, 100% { opacity: 0;  transform: scale(1.65); }
}
.puede-cine .wa-float.is-visible::before { animation: anillo 5.5s ease-out 1.2s infinite; }

/* Carril del botón flotante en celular y tableta: el botón es fijo abajo a la derecha, así
   que toda línea que llegue a esa franja queda tapada en algún momento del scroll. Los
   bloques de texto dejan libre ese carril (las cajas, fotos y tarjetas conservan su ancho).
   --reserva-wa: texto a ancho completo · --reserva-wa-caja: texto dentro de tarjetas. */
@media (max-width: 759.98px) {
  :root { --reserva-wa: 54px; --reserva-wa-caja: 30px; }
  .sec .eyebrow, .sec-head h2, .sec-head .lead, .risk-copy p, .statnote, .source,
  .trust-item .trust-title, .trust-item .trust-text,
  .front h3, .front p, .step h3, .step p, .garantia h3, .garantia p,
  .qa summary, .footer-brand p, .legal,
  .doc-cabeza h1, .doc-texto > h2, .doc-texto > p, .doc-texto > ul { padding-right: var(--reserva-wa); }
  .doc-indice a, .doc-casilla p { padding-right: var(--reserva-wa-caja); }
  .final h2, .final-text, .final-quote, .final-wa { padding-inline: var(--reserva-wa); }   /* centrado: margen simétrico */
  .feature p, .versus-v, .versus-p, .plan h3, .plan-for, .plan-list li,
  .pay .card-title, .pay .card p, .chips { padding-right: var(--reserva-wa-caja); }
}
@media (max-width: 599.98px) {
  :root { --reserva-wa: 44px; --reserva-wa-caja: 24px; }
  /* Botón más compacto y pegado al borde (sigue siendo un blanco táctil cómodo: 50 px) */
  .wa-float {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 50px; height: 50px;
  }
  .wa-float svg { width: 26px; height: 26px; }
}

/* Números que cuentan: cifras tabulares y ancho reservado por main.js (CLS 0) */
.num, [data-contar], .plan-price, .front-n, .garantia-n, .trust-num { font-variant-numeric: lining-nums tabular-nums; }
.num { display: inline-block; text-align: right; }

/* Antetítulos: en .cine la línea se dibuja cuando su sección entra en pantalla */
.cine .sec .eyebrow::before,
.cine .final .eyebrow::before { transform: scaleX(0); transition: transform 1.1s var(--ease-expo) .1s; }
.cine .visto .eyebrow::before { transform: none; }
.final .eyebrow::before { transform-origin: center; }

/* Titulares de sección: líneas con máscara (las arma cine.js y las deshace al terminar) */
.linea-m { display: block; overflow: hidden; padding: .06em .1em .14em 0; margin: -.06em -.1em -.14em 0; }
.linea-m > span { display: block; }
/* Mientras el título está partido se apila en flex: así los márgenes negativos de cada
   línea no se colapsan entre sí y el título mide exactamente lo mismo que su texto
   normal (al devolverlo no se mueve nada: CLS 0). */
.partido { display: flex; flex-direction: column; }

/* Luz suave que sigue al mouse sobre tarjetas y planes (la crea cine.js, solo escritorio) */
.con-luz { position: relative; isolation: isolate; }
.luz { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.luz::after {
  content: ""; position: absolute; left: 0; top: 0;
  width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(192, 161, 94, .14), rgba(192, 161, 94, 0));
  transform: translate3d(var(--lx, -400px), var(--ly, -400px), 0);
  opacity: 0; transition: opacity .45s var(--ease);
}
.con-luz:hover .luz::after { opacity: 1; }

/* Plan exprés: borde dorado (degradado cónico) que gira muy lento */
.plan-borde {
  position: absolute; inset: -1px; z-index: 1;
  border-radius: inherit; padding: 1.5px; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.plan-borde::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 300%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg,
    rgba(192, 161, 94, .4) 0deg, #C0A15E 60deg, #EBD9A6 95deg, #C0A15E 130deg,
    rgba(192, 161, 94, .4) 200deg, rgba(192, 161, 94, .4) 360deg);
}
@keyframes gira { to { transform: rotate(1turn); } }
.puede-cine .plan-borde::before { animation: gira 11s linear infinite; }
.plan-badge { z-index: 2; }

/* El estudio: línea dorada que une los dos frentes y se llena con el scroll (cine.js) */
.fronts { position: relative; }
.fronts-linea {
  position: absolute; left: 0; top: -1px; width: 100%; height: 1px;
  background: var(--ac); transform-origin: left center; transform: scaleX(0); pointer-events: none;
}
@media (max-width: 899.98px) {
  .cine .fronts { padding-left: 24px; border-top: 0; }
  .cine .fronts::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
  .fronts-linea { top: 0; width: 1px; height: 100%; transform-origin: center top; transform: scaleY(0); }
}

/* Cómo funciona: pista y relleno dorado (los crea cine.js); cada paso se enciende al llegar */
.steps { position: relative; }
.pasos-pista, .pasos-relleno { position: absolute; pointer-events: none; z-index: 0; }
.pasos-pista { background: var(--line); }
.pasos-relleno { background: var(--ac); transform-origin: left center; transform: scaleX(0); }
.cine .step { z-index: 1; }
.cine .step::after { display: none; }
/* Apagado: el círculo baja al 30 %; el texto solo al 78 %, para mantener el contraste AA (≥ 4,5:1) */
.cine .step::before { opacity: .3; transition: opacity .6s var(--ease); }
.cine .step > * { opacity: .78; transition: opacity .6s var(--ease); }
.cine .step.encendido::before, .cine .step.encendido > * { opacity: 1; }
.cine .step.encendido::before { box-shadow: 0 0 0 6px rgba(192, 161, 94, .1); }
@media (max-width: 899.98px) {
  .pasos-relleno { transform-origin: center top; transform: scaleY(0); }
}

/* Por qué confiar: lista numerada fina en lugar de tarjetas con ícono */
.garantias { display: grid; border-top: 1px solid var(--line); }
.garantia {
  display: grid; grid-template-columns: 60px 1fr; column-gap: 16px;
  padding: 22px 0 24px; border-bottom: 1px solid var(--line);
}
.garantia-n {
  grid-row: span 2;
  font-family: var(--ff-serif); font-weight: 400;
  font-size: clamp(1.875rem, 1.6rem + 1vw, 2.375rem); line-height: .95; letter-spacing: -.02em;
  color: var(--ac);
}
.garantia h3 { font-size: var(--fs-h3); }
.garantia p { margin-top: 6px; font-size: var(--fs-sm); color: var(--mu); max-width: 44ch; }
@media (min-width: 600px) and (max-width: 999.98px) {
  .garantias { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* Cierre: el ícono del logo, que en .cine se dibuja (casa, alero y chulo) */
.final-logo {
  width: 60px; height: 60px; margin: 0 auto 26px; overflow: visible;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.final-logo .casa, .final-logo .alero { stroke: var(--casa); stroke-width: 2.2; }
.final-logo .chulo { stroke: var(--ac-2); stroke-width: 3.1; }

/* Lenis (solo escritorio): el scroll suave lo maneja la librería */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* 10. MOVIMIENTO REDUCIDO ================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
