/* ============================================================================
   HADOX — sitio público
   Identidad heredada de la app (lib/theme.dart): negro café, ROJO = marca y
   acción, DORADO = logro. Tipografía display Space Grotesk autoalojada.
   Sin JavaScript, sin cookies, sin recursos de terceros.
   ========================================================================= */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Paleta oficial HADOX */
  --bg: #0d0a0b;
  --bg-deep: #070506;
  --card: #1a1517;
  --card-hi: #241d20;
  --stroke: #2e272a;
  --stroke-soft: #221c1f;
  --red: #ea0029;
  --red-dark: #a31226;
  --red-tint: #3a0812;
  --red-deep: #2a0910;
  --gold: #f2b643;
  --text: #f7f4f5;
  --dim: #b4abaf;
  --dim-strong: #d6cfd1;

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shell: 74rem;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 1.25rem;
  --radius-sm: 0.7rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--text); text-underline-offset: 0.2em; }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 0.3rem;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}
.shell-wide { width: min(100% - var(--gutter) * 2, 84rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 999;
  padding: 0.8rem 1.1rem;
  border-radius: 0.6rem;
  background: #fff;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 1rem; color: #000; }

/* ── Cabecera ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--stroke-soft);
}

.site-header > .shell-wide {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  min-height: 4.4rem;
  padding-block: 0.55rem;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img { height: 1.55rem; width: auto; }

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  /* En pantallas chicas la barra se desliza: el degradado del borde avisa
     que hay más secciones a la derecha sin necesitar JavaScript. */
  mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
}
@media (min-width: 56rem) { .site-nav { mask-image: none; } }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--dim);
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] { color: #fff; border-bottom-color: var(--red); }

.header-cta { flex: 0 0 auto; }

/* ── Botones ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:hover { background: #ff0b34; color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border-color: var(--stroke);
  color: var(--text);
}
.btn-ghost:hover { background: var(--card-hi); border-color: #4a3d42; color: #fff; }

.btn-sm { padding: 0.58rem 1rem; font-size: 0.9rem; border-radius: 0.6rem; }

/* ── Portada ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 90%;
  z-index: -2;
  background:
    radial-gradient(46rem 30rem at 78% 8%, rgba(234, 0, 41, 0.24), transparent 62%),
    radial-gradient(38rem 26rem at 8% 0%, rgba(163, 18, 38, 0.16), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 82%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim-strong);
}
.eyebrow::before {
  content: '';
  width: 1.6rem;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  font-size: clamp(3rem, 9.2vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero h1 .accent { color: var(--red); display: block; }

.lede {
  margin-top: 1.35rem;
  max-width: 34rem;
  color: var(--dim-strong);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.24rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.1rem;
  color: var(--dim);
  font-size: 0.9rem;
  max-width: 30rem;
}

/* Tira de cifras reales del producto */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.4rem, 4vw, 2.8rem);
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--stroke-soft);
}
.stat-strip div { min-width: 6.5rem; }
.stat-strip b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-strip span {
  display: block;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Tarjeta vertical estilo "presumible" */
.hero-art { position: relative; }

.story-card {
  position: relative;
  /* El lienzo real de HADOX Share es de ancho fijo y sólo se escala: aquí se
     imita con unidades de contenedor para que los ejemplos se comporten igual. */
  container-type: inline-size;
  aspect-ratio: 9 / 16;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: 0 2.2rem 5rem rgba(0, 0, 0, 0.62);
}
.story-card > picture,
.story-card > img { position: absolute; inset: 0; }
.story-card > picture img,
.story-card > img { width: 100%; height: 100%; object-fit: cover; }

/* Red de seguridad: ninguna marca dentro de una plantilla puede crecer más de
   la cuenta, pase lo que pase con las reglas de abajo. */
.story-body img,
.story-body svg { max-height: 6cqw; width: auto; }
.story-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 5, 6, 0.42) 0%, rgba(7, 5, 6, 0) 34%,
      rgba(7, 5, 6, 0.62) 74%, rgba(7, 5, 6, 0.92) 100%);
}

.story-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.15rem 1.25rem 1.3rem;
}

/* ── Ejemplos de las plantillas reales de HADOX Share ─────────────────── */

/* Igual que en la app: el texto se sostiene con sombra propia, no tapando la
   foto. Marca y Editorial escriben sobre el centro, así que además llevan un
   velo un poco más parejo para que la cifra se lea sobre piel clara. */
.story-body { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.45); }
.tpl-marca::after,
.tpl-editorial::after {
  background:
    radial-gradient(80% 45% at 50% 46%, rgba(7, 5, 6, 0.62), transparent 72%),
    linear-gradient(180deg, rgba(7, 5, 6, 0.5) 0%, rgba(7, 5, 6, 0.12) 30%,
      rgba(7, 5, 6, 0.35) 62%, rgba(7, 5, 6, 0.88) 100%);
}

/* MARCA (PRO): la cifra manda, centrada; dorado cuando es récord. */
.tpl-marca .story-body {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.m-name {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  font-size: 3.4cqw;
}
.m-num {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.95;
  margin-top: 0.15em;
  font-size: 3.6rem;
  font-size: 24cqw;
  text-shadow: 0 0 0.55em rgba(242, 182, 67, 0.4), 0 2px 8px rgba(0, 0, 0, 0.7),
    0 6px 30px rgba(0, 0, 0, 0.6);
}
.m-unit {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-size: 4.4cqw;
}
/* el trofeo escala con la tarjeta, como en el lienzo real */
.m-unit svg { width: 1.15em; height: 1.15em; }
.m-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-size: 3.4cqw;
}
.m-foot img { height: 0.8rem; height: 4cqw; width: auto; opacity: 0.9; }

/* EDITORIAL: una sola cifra, fila fina de datos y logo centrado. */
.tpl-editorial .story-body {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* la app deja Spacer 5 arriba y 7 abajo: el bloque queda por encima del centro */
  padding: 1.3rem 1.2rem 14%;
}
.e-num {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  font-size: 2rem;
  font-size: 13cqw;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7), 0 4px 22px rgba(0, 0, 0, 0.55);
}
.e-label {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.3em;
  font-size: 0.66rem;
  font-size: 3.6cqw;
}
.e-stats { display: flex; gap: 1.4em; margin-top: 1.3em; }
.e-stats b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
  font-size: 0.9rem;
  font-size: 4.9cqw;
}
.e-stats span {
  display: block;
  margin-top: 0.35em;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  font-size: 0.6rem;
  font-size: 3.1cqw;
}
.e-logo { margin-top: 1.5em; text-align: center; }
.e-logo img { display: inline-block; height: 0.85rem; height: 4.4cqw; width: auto; }

/* CLÁSICA: tarjeta oscura con las mejores series de la sesión. */
.tpl-clasica .story-body { padding: 0.9rem; }
.c-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.1rem;
  background: rgba(0, 0, 0, 0.78);
  padding: 0.9em 1em 1em;
}
.c-meta {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.62rem;
  font-size: 3.2cqw;
}
.c-top {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.2em;
  margin: 0.6em 0 0.5em;
  font-size: 0.58rem;
  font-size: 3cqw;
}
.c-ex { margin-bottom: 0.55em; }
.c-ex b {
  display: block;
  font-weight: 700;
  line-height: 1.15;
  font-size: 0.76rem;
  font-size: 4cqw;
}
.c-ex span {
  color: var(--red);
  font-weight: 800;
  font-size: 0.72rem;
  font-size: 3.8cqw;
}
.c-ex span.is-pr { color: var(--gold); }
.c-logo { margin-top: 0.8em; }
.c-logo img { height: 0.8rem; height: 4.2cqw; width: auto; opacity: 0.92; }

/* SUTIL: tipografía delgada, mínima intervención sobre la foto. */
.story-rule { width: 1.4rem; height: 2px; background: var(--red); margin-bottom: 0.7rem; }
.story-title {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: 1.2rem;
  font-size: 7cqw;
}
.story-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.03em;
  font-size: 0.72rem;
  font-size: 3.6cqw;
}
.story-meta img { height: 0.72rem; height: 3.7cqw; width: auto; opacity: 0.9; }

.sample-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  padding: 0.24rem 0.6rem;
  border-radius: 0.4rem;
  background: rgba(7, 5, 6, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--dim-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* ── Secciones ────────────────────────────────────────────────────────── */

.section { padding-block: clamp(3.2rem, 8vw, 6rem); }
.section-alt {
  background:
    linear-gradient(180deg, transparent, rgba(42, 9, 16, 0.32) 35%, transparent),
    var(--bg-deep);
  border-block: 1px solid var(--stroke-soft);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  text-transform: uppercase;
}
.section-head p {
  margin-top: 1rem;
  color: var(--dim-strong);
  font-size: clamp(1rem, 0.97rem + 0.3vw, 1.14rem);
}

/* Rejilla de funciones */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: 1rem;
}

.feature-grid.pairs { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 46rem) { .feature-grid.pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.feature {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: #4b3c41; }
.feature h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.feature p { color: var(--dim); font-size: 0.965rem; }
.feature .ico {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.7rem;
  background: var(--red-tint);
  border: 1px solid color-mix(in srgb, var(--red) 34%, transparent);
  color: var(--red);
}
.feature .ico svg { width: 1.4rem; height: 1.4rem; }
.feature.is-gold .ico {
  background: rgba(242, 182, 67, 0.1);
  border-color: color-mix(in srgb, var(--gold) 38%, transparent);
  color: var(--gold);
}

/* Bloque partido: foto + texto */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  align-items: center;
  gap: clamp(1.8rem, 5vw, 3.6rem);
}
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: 0 1.6rem 3.4rem rgba(0, 0, 0, 0.5);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(234, 0, 41, 0.16), transparent 48%),
    linear-gradient(0deg, rgba(7, 5, 6, 0.5), transparent 55%);
}
.split-reverse .split-media { order: 2; }
.split h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.7rem); text-transform: uppercase; }
.split p { margin-top: 1rem; color: var(--dim-strong); }

.ticks { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.ticks li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.6rem;
  color: var(--dim-strong);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 0.18rem;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.ticks.gold li::before { background: var(--gold); }

/* Insignias */
.badge-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (min-width: 34rem) { .badge-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.15rem 0.7rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--card);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.badge-item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.badge-item img { width: 3.9rem; height: auto; }
.badge-item b { font-family: var(--display); font-size: 0.95rem; }
.badge-item span { color: var(--dim); font-size: 0.79rem; line-height: 1.35; }

.levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.6rem;
}
.levels li {
  list-style: none;
  padding: 0.34rem 0.72rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--card);
  color: var(--dim-strong);
  font-size: 0.83rem;
  font-weight: 600;
}
.levels li:last-child { border-color: color-mix(in srgb, var(--gold) 45%, transparent); color: var(--gold); }

/* Galería de presumibles */
.story-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}
.story-row .story-card { box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.5); }
.story-row .story-card:nth-child(2) { transform: translateY(-1.1rem); }

/* Planes */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 1rem;
  align-items: start;
}
.plan {
  padding: 1.7rem 1.6rem 1.8rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--card);
}
.plan-pro {
  border-color: color-mix(in srgb, var(--gold) 42%, transparent);
  background: linear-gradient(180deg, rgba(242, 182, 67, 0.07), var(--card) 55%);
}
.plan h3 {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.plan-pro h3 { color: var(--gold); }
.plan .plan-note {
  margin: 0.5rem 0 1.2rem;
  color: var(--dim);
  font-size: 0.9rem;
}

/* Aviso / nota */
.notice {
  margin-top: 1.8rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--red);
  border-radius: 0.6rem;
  background: var(--card);
  color: var(--dim-strong);
  font-size: 0.95rem;
}
.notice strong { color: #fff; }

/* Llamada final */
.section-cta { padding-top: 0; }

.cta-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: clamp(1rem, 3vw, 1.8rem);
  padding: clamp(2.2rem, 6vw, 4rem);
  text-align: center;
}
.cta-final img.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-final::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 5, 6, 0.82), rgba(7, 5, 6, 0.94)),
    radial-gradient(30rem 18rem at 50% 0%, rgba(234, 0, 41, 0.32), transparent 70%);
}
.cta-final h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  text-transform: uppercase;
}
.cta-final p { margin: 1rem auto 0; max-width: 38rem; color: var(--dim-strong); }
.cta-final .hero-actions { justify-content: center; }

/* ── Pie ──────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--stroke-soft);
  background: var(--bg-deep);
  padding-block: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--dim);
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.8rem;
}
.site-footer img.footer-logo { height: 1.4rem; width: auto; margin-bottom: 0.9rem; }
.site-footer h3 {
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.42rem; }
.site-footer a { color: var(--dim-strong); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--stroke-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  justify-content: space-between;
  font-size: 0.86rem;
}

/* ── Páginas legales ──────────────────────────────────────────────────── */

.page-head {
  position: relative;
  padding-block: clamp(2.6rem, 6vw, 4.2rem) clamp(1.6rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--stroke-soft);
  background: radial-gradient(38rem 20rem at 12% 0%, rgba(234, 0, 41, 0.16), transparent 62%);
}
.page-head h1 {
  font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.6rem);
  text-transform: uppercase;
}
.page-head .meta {
  margin-top: 1rem;
  color: var(--dim);
  font-size: 0.92rem;
}

.doc {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  padding-block: clamp(2.2rem, 5vw, 3.4rem) clamp(3rem, 7vw, 5rem);
  align-items: start;
}
.doc-nav {
  position: sticky;
  top: 5.5rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.doc-nav h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.75rem;
}
.doc-nav ol { margin: 0; padding: 0; list-style: none; counter-reset: doc; }
.doc-nav li { counter-increment: doc; margin-bottom: 0.4rem; }
.doc-nav a {
  display: block;
  color: var(--dim-strong);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  border-left: 2px solid var(--stroke);
  padding-left: 0.7rem;
}
.doc-nav a:hover { color: #fff; border-left-color: var(--red); }

.doc-body { max-width: 44rem; }
.doc-body section { padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--stroke-soft); }
.doc-body section:last-of-type { border-bottom: 0; }
.doc-body h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.doc-body h2::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--red);
  margin-bottom: 0.85rem;
}
.doc-body p { color: var(--dim-strong); max-width: 68ch; }
.doc-body a { color: #ff6d84; }
.doc-body a:hover { color: #fff; }
.doc-body a.btn { color: #fff; }

.faq { margin-top: 1.4rem; }
.faq details {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--red);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 1.15rem 1.1rem; color: var(--dim-strong); }
.faq details[open] { border-color: #4b3c41; }

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem;
  margin: 1.6rem 0;
}
.card-row .card {
  padding: 1.3rem 1.25rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.card-row .card strong { display: block; font-family: var(--display); margin-bottom: 0.4rem; }
.card-row .card span { color: var(--dim); font-size: 0.94rem; }
.card-row .card .step {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
}

/* ── Adaptación a pantallas chicas ────────────────────────────────────── */

@media (max-width: 62rem) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-nav { position: static; }
  .doc-nav ol { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; }
  .doc-nav li { margin: 0; }
  .doc-nav a { border-left: 0; padding: 0.3rem 0.65rem; border: 1px solid var(--stroke); border-radius: 999px; }
  .doc-nav a:hover { border-color: var(--red); }
}

@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 21rem; margin-inline: auto; width: 100%; }
  .split-reverse .split-media { order: 0; }
  .header-cta { display: none; }
  .story-row .story-card:nth-child(2) { transform: none; }
}

@media (max-width: 30rem) {
  .stat-strip { gap: 1.1rem 1.6rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ── Movimiento ───────────────────────────────────────────────────────── */

/* Las entradas se animan al CARGAR y siempre terminan visibles. No se usan
   animaciones ligadas al scroll: si el navegador no completara el recorrido,
   un bloque podría quedarse invisible, y eso es inaceptable en una página que
   también contiene información legal. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal-up 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
  .reveal:nth-child(2) { animation-delay: 0.07s; }
  .reveal:nth-child(3) { animation-delay: 0.14s; }
  .reveal:nth-child(4) { animation-delay: 0.21s; }
  .reveal:nth-child(5) { animation-delay: 0.28s; }
  .reveal:nth-child(6) { animation-delay: 0.35s; }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(1.2rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .site-nav, .hero::before, .hero::after, .doc-nav { display: none; }
  body { background: #fff; color: #000; }
  .doc-body p { color: #000; }
}
