:root {
  --paper: #F4F6F5;
  --ink: #1F2733;
  --muted: #5A6472;
  --line: #D8DEE3;
  --surface: #FFFFFF;
  --anil: #3D5AA6;
  --anil-soft: #E4E9F3;
  --grana: #A03A50;
}

[data-theme="oscuro"] {
  --paper: #1B222D;
  --ink: #E9ECEF;
  --muted: #98A3B1;
  --line: #333E4E;
  --surface: #232C39;
  --anil: #8AA3DC;
  --anil-soft: #28344A;
  --grana: #D07A8B;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  transition: background-color .35s ease, color .35s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--anil); color: var(--paper); }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.rise { animation: rise .6s ease both; }
.rise-1 { animation: rise .6s .08s ease both; }
.rise-2 { animation: rise .6s .16s ease both; }

/* --- Fondo: auroras de gran formato + trama de telar + grano --- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-scene .aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .22;
  mix-blend-mode: multiply;
  will-change: transform;
}
[data-theme="oscuro"] .bg-scene .aurora { opacity: .28; mix-blend-mode: screen; }
.aurora-1 {
  width: 72vmax; height: 72vmax; left: -26vmax; top: -34vmax;
  background: radial-gradient(closest-side, var(--anil), transparent 72%);
  animation: aurora-a 46s ease-in-out infinite;
}
.aurora-2 {
  width: 58vmax; height: 58vmax; right: -22vmax; top: -8vmax;
  background: radial-gradient(closest-side, var(--grana), transparent 72%);
  animation: aurora-b 58s ease-in-out infinite;
}
.aurora-3 {
  width: 68vmax; height: 68vmax; left: 8vmax; bottom: -42vmax;
  background: conic-gradient(from 140deg, var(--anil), var(--grana), var(--anil));
  opacity: .14;
  animation: aurora-c 90s linear infinite;
}
[data-theme="oscuro"] .aurora-3 { opacity: .18; }
@keyframes aurora-a { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(9vmax,6vmax) scale(1.14); } }
@keyframes aurora-b { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vmax,8vmax) scale(.9); } }
@keyframes aurora-c { to { transform: rotate(1turn); } }

/* Viñeta de profundidad: oscurece los bordes sin patrones que distraigan */
.bg-scene .depth {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, transparent 55%, rgba(31,39,51,.08) 100%);
}
[data-theme="oscuro"] .bg-scene .depth {
  background: radial-gradient(120% 100% at 50% 0%, transparent 50%, rgba(0,0,0,.4) 100%);
}

/* Grano fotográfico sutil para dar cuerpo a los degradados */
.bg-scene .grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 160px 160px;
  opacity: .05;
}
[data-theme="oscuro"] .bg-scene .grain { opacity: .07; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.footer-brand .name { display: flex; align-items: center; gap: 9px; }
.footer-brand .logo-mark { width: 19px; height: 19px; }

.logo-text {
  font-family: 'Archivo', sans-serif;
  font-stretch: 125%;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .01em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  font-family: 'Spline Sans Mono', monospace;
  font-size: 13px;
  letter-spacing: .04em;
}

nav a.nav-link { color: var(--ink); text-decoration: none; }
nav a.nav-link:hover { color: var(--anil); }

.btn-cta {
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  padding: 10px 18px;
}
.btn-cta:hover { background: var(--anil); color: #fff; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
}
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--anil); }
.lang-switch a.active { color: var(--anil); font-weight: 700; }

.theme-toggle {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 12px;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--anil); color: var(--anil); }

/* Sections */
section { padding: 90px 0; border-bottom: 1px solid var(--line); }

/* Iconos de línea, propios, sin dependencias */
.icon { width: 26px; height: 26px; color: var(--anil); flex-shrink: 0; }

.eyebrow {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

h1, h2, h3 { font-family: 'Archivo', sans-serif; margin: 0; }

/* Hero */
.hero { padding: 110px 0 90px; }
.hero .eyebrow { color: var(--anil); margin-bottom: 28px; }
.hero h1 {
  font-stretch: 125%;
  font-weight: 640;
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -.015em;
  max-width: 19ch;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 48px;
  margin-top: 44px;
  align-items: start;
}
.hero-lead { font-size: 20px; line-height: 1.55; margin: 0; max-width: 52ch; color: var(--ink); }
.hero-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.btn-primary {
  display: inline-block;
  background: var(--anil);
  color: #fff;
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-stretch: 110%;
  font-weight: 600;
  font-size: 17px;
  padding: 16px 28px;
}
.btn-primary:hover { background: var(--grana); color: #fff; }

.hint {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.impact-chip {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--anil);
}
.impact-chip strong { color: var(--anil); font-weight: 600; }

/* CTA intermedio tras una sección */
.section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* CTA fijo al hacer scroll */
.sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-stretch: 110%;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  box-shadow: 0 16px 36px -14px rgba(31,39,51,.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.16,1,.3,1), background-color .25s ease;
}
.sticky-cta.visible { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta:hover { background: var(--anil); color: #fff; }
[data-theme="oscuro"] .sticky-cta { box-shadow: 0 16px 36px -14px rgba(0,0,0,.7); }
@media (max-width: 560px) {
  .sticky-cta { right: 16px; bottom: 16px; font-size: 14px; padding: 12px 18px; }
}

/* Two-column labeled sections */
.labeled-section { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 48px; }

.section-title { font-stretch: 120%; font-weight: 620; font-size: clamp(26px,3vw,38px); line-height: 1.15; margin: 0 0 40px; max-width: 28ch; }
.section-sub { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 44px; max-width: 58ch; }

/* Problema */
.problema-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.problema-card { background: var(--surface); padding: 28px 26px; }
.problema-card .icon { margin-bottom: 18px; }
.problema-card .tag {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--anil);
  margin: 0 0 14px;
}
.problema-card p.body { font-size: 17px; line-height: 1.55; margin: 0; color: var(--ink); }
.problema-close { font-size: 19px; line-height: 1.6; margin: 40px 0 0; max-width: 58ch; }

/* Beneficios (la solución) */
.beneficios-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px 48px; }
.beneficio { display: flex; flex-direction: column; gap: 14px; }
.beneficio .icon { width: 30px; height: 30px; color: var(--grana); }
.beneficio h3 { font-stretch: 115%; font-weight: 620; font-size: 19px; line-height: 1.25; }
.beneficio p { font-size: 16px; line-height: 1.6; margin: 0; color: var(--muted); }

/* Diferenciales (por qué Yuulia) */
.diferenciales { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.diferenciales li {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.diferenciales li:last-child { border-bottom: 1px solid var(--line); }
.diferenciales .icon { margin-top: 2px; }
.diferenciales h3 { font-stretch: 115%; font-weight: 620; font-size: 18px; margin-bottom: 8px; }
.diferenciales p { font-size: 16px; line-height: 1.6; margin: 0; color: var(--muted); }

/* Proceso */
.paso {
  display: grid;
  grid-template-columns: 28px 56px minmax(0,1fr) minmax(0,1.2fr);
  gap: 16px 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.paso .icon { align-self: center; width: 26px; height: 26px; }
.paso .num { font-family: 'Spline Sans Mono', monospace; font-size: 15px; color: var(--grana); }
.paso h3 { font-stretch: 115%; font-weight: 600; font-size: 21px; line-height: 1.25; }
.paso p { font-size: 17px; line-height: 1.6; margin: 0; color: var(--muted); }

/* Sectores */
.sectores-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px 56px; }
.sector { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--anil); padding-top: 20px; }
.sector .icon { color: var(--grana); }
.sector h3 { font-stretch: 115%; font-weight: 620; font-size: 20px; }
.sector p { font-size: 16px; line-height: 1.6; margin: 0; color: var(--muted); }
.sector-link {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 13px;
  color: var(--anil);
  text-decoration: none;
  margin-top: -4px;
}
.sector-link:hover { color: var(--grana); }

/* Cifras de referencia */
.stats-band { background: var(--anil-soft); }
.stats-inner { max-width: 980px; margin: 0 auto; padding: 0 28px; text-align: center; }
.stats-band .eyebrow { color: var(--anil); }
.stats-band .section-title { margin: 0 auto 48px; max-width: 32ch; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; text-align: left; }
.stat-tile { display: flex; flex-direction: column; gap: 12px; }
.stat-tile .icon { color: var(--grana); }
.stat-num { font-family: 'Archivo', sans-serif; font-stretch: 122%; font-weight: 700; font-size: 32px; color: var(--ink); }
.stat-label { font-size: 15px; line-height: 1.5; color: var(--muted); }
.stats-disclaimer {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  max-width: 68ch;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Escenarios */
.escenarios-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
.escenario {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.escenario .tag {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grana);
  margin: 0;
}
.escenario h3 { font-stretch: 115%; font-weight: 620; font-size: 21px; line-height: 1.3; }
.escenario p { font-size: 16px; line-height: 1.6; margin: 0; color: var(--ink); }
.escenario-cifra {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.escenario-cifra .num { font-family: 'Archivo', sans-serif; font-stretch: 120%; font-weight: 700; font-size: 28px; color: var(--anil); }
.escenario-cifra .note { font-family: 'Spline Sans Mono', monospace; font-size: 13px; color: var(--muted); }

/* Preguntas frecuentes */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Archivo', sans-serif;
  font-stretch: 115%;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  transition: color .25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: 'Spline Sans Mono', monospace;
  font-size: 20px;
  color: var(--muted);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--anil); }
.faq-item p { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 62ch; }

/* CTA */
.cta { padding: 110px 0; text-align: center; }
.cta-inner { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cta .eyebrow { color: var(--anil); }
.cta h2 { font-stretch: 122%; font-weight: 640; font-size: clamp(30px,4vw,48px); line-height: 1.1; }
.cta p { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 48ch; }

.btn-dark {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-stretch: 110%;
  font-weight: 600;
  font-size: 18px;
  padding: 18px 36px;
}
.btn-dark:hover { background: var(--anil); color: #fff; }

/* Footer */
footer {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) auto auto auto;
  gap: 40px;
  padding: 48px 0 24px;
  align-items: start;
  border-bottom: none;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand span.name { font-family: 'Archivo', sans-serif; font-stretch: 125%; font-weight: 700; font-size: 19px; }
.footer-brand p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 36ch; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--anil); }
.footer-col .label {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col .muted { color: var(--muted); }
.footer-copy {
  grid-column: 1 / -1;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: 'Spline Sans Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}

/* Enlace "saltar al contenido" — visible solo con foco de teclado */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 1200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* Botón de menú móvil (hamburguesa) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 9px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Página 404 */
.error-404 { padding: 130px 0; text-align: center; border-bottom: none; }
.error-404 .eyebrow { color: var(--grana); margin-bottom: 20px; }
.error-404 .section-title { margin: 0 auto 18px; max-width: 26ch; }
.error-404 .section-sub { margin: 0 auto 40px; }
.error-404-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* Páginas legales: texto largo */
.prose { max-width: 68ch; }
.prose h2 { font-family: 'Archivo', sans-serif; font-stretch: 115%; font-weight: 620; font-size: 22px; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; line-height: 1.7; color: var(--ink); margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 6px; }
.prose a { color: var(--anil); }
.prose code {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 14px;
  background: var(--anil-soft);
  padding: 2px 6px;
}
.prose-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.prose-table th, .prose-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); }
.prose-table th { font-family: 'Spline Sans Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface); }

/* Noticias: listado */
.noticias-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
.noticia-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .15s ease-out, box-shadow .4s ease;
}
.noticia-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px -18px rgba(61,90,166,.35); }
[data-theme="oscuro"] .noticia-card:hover { box-shadow: 0 20px 44px -18px rgba(0,0,0,.6); }
.noticia-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.noticia-card-meta .tag {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--anil);
  margin: 0;
}
.noticia-card-meta time {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.noticia-card h2 { font-family: 'Archivo', sans-serif; font-stretch: 115%; font-weight: 620; font-size: 21px; line-height: 1.3; margin: 0; }
.noticia-card h2 a { color: var(--ink); text-decoration: none; }
.noticia-card h2 a:hover { color: var(--anil); }
.noticia-card-resumen { font-size: 16px; line-height: 1.6; margin: 0; color: var(--muted); flex-grow: 1; }
.noticia-card-fuente {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* Noticias: artículo individual */
.noticia-articulo-fecha {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.noticia-articulo-resumen { font-size: 20px; line-height: 1.6; max-width: 62ch; margin: 24px 0 0; color: var(--ink); }
.noticia-articulo-fuente {
  margin-top: 40px;
  padding: 26px 28px;
  background: var(--anil-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.noticia-articulo-fuente p { margin: 0; font-size: 16px; color: var(--ink); max-width: 40ch; }
.noticia-articulo-otras { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.noticia-articulo-otras .label {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.noticia-articulo-otras ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.noticia-articulo-otras a { font-size: 17px; color: var(--ink); text-decoration: none; }
.noticia-articulo-otras a:hover { color: var(--anil); }

@media (max-width: 640px) {
  .noticias-grid { grid-template-columns: 1fr; }
  .noticia-articulo-fuente { flex-direction: column; align-items: flex-start; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  nav#site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    padding: 104px 32px 40px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .3s ease;
    z-index: 1100;
    overflow-y: auto;
  }
  nav#site-nav.nav-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav#site-nav a.nav-link, nav#site-nav .btn-cta {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  nav#site-nav .btn-cta { text-align: center; margin-top: 16px; border-bottom: none; }
  nav#site-nav .theme-toggle { align-self: flex-start; margin-top: 20px; }
  nav#site-nav .lang-switch { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
}
@media (max-width: 840px) {
  .hero-grid, .labeled-section, .problema-grid, .escenarios-grid { grid-template-columns: 1fr !important; }
  .beneficios-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  section { padding-top: 56px !important; padding-bottom: 56px !important; }
  h1 { font-size: 34px !important; }
}
@media (max-width: 560px) {
  .sectores-grid, .paso, .beneficios-grid, .stats-grid { grid-template-columns: 1fr !important; }
  .paso .icon { margin-bottom: -4px; }
  .diferenciales li { grid-template-columns: 26px minmax(0,1fr) !important; gap: 14px !important; }
  footer { grid-template-columns: 1fr !important; }
  .stat-tile { align-items: center; text-align: center; }
  .stats-grid { text-align: center; }
  .hero { padding: 64px 0 56px !important; }
  .hero .eyebrow { margin-bottom: 20px; }
  .hero-grid { gap: 32px; margin-top: 32px; }
  .hero-lead { font-size: 18px; }
  .hero-actions { align-items: stretch; width: 100%; }
  .btn-primary, .btn-dark { display: block; width: 100%; text-align: center; }
  .section-cta .btn-primary { width: auto; display: inline-block; }
}

/* ============================================================
   ANIMACIÓN Y EFECTOS
   ============================================================ */

/* --- Barra de progreso de scroll --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--anil), var(--grana));
  z-index: 1000;
  transition: width .12s linear;
}

/* --- Titular: revelado palabra a palabra --- */
.word { display: inline-block; overflow: hidden; vertical-align: top; }
.word-inner {
  display: inline-block;
  transform: translateY(112%);
  animation: word-rise .85s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(300ms + var(--i, 0) * 45ms);
}
@keyframes word-rise { to { transform: translateY(0); } }

.accent-text {
  background: linear-gradient(90deg, var(--anil), var(--grana), var(--anil));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 7s ease-in-out infinite;
}
@keyframes gradient-shift { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }

/* .word-inner y .accent-text comparten elemento en el hero: la propiedad
   "animation" es shorthand y una clase pisaría a la otra si no se combinan. */
.word-inner.accent-text {
  animation: word-rise .85s cubic-bezier(.16,1,.3,1) both, gradient-shift 7s ease-in-out infinite;
  animation-delay: calc(300ms + var(--i, 0) * 45ms), 0s;
}

/* --- Revelado en scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Nav: subrayado activo por sección --- */
nav a.nav-link { position: relative; }
nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--anil);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
nav a.nav-link:hover::after,
nav a.nav-link.active::after { transform: scaleX(1); }
nav a.nav-link.active { color: var(--anil); }

/* --- Botones: magnetismo + brillo --- */
.btn-primary, .btn-dark, .btn-cta {
  position: relative;
  transition: transform .25s cubic-bezier(.2,1,.3,1), background-color .25s ease, box-shadow .35s ease, color .25s ease;
}
.btn-primary:hover, .btn-dark:hover { box-shadow: 0 14px 32px -10px rgba(61,90,166,.45); }
[data-theme="oscuro"] .btn-primary:hover, [data-theme="oscuro"] .btn-dark:hover { box-shadow: 0 14px 32px -10px rgba(0,0,0,.55); }

/* --- Tarjetas: profundidad al pasar el ratón --- */
.problema-card, .escenario {
  transition: transform .15s ease-out, box-shadow .45s ease;
}
.problema-card:hover, .escenario:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -18px rgba(61,90,166,.35);
}
[data-theme="oscuro"] .problema-card:hover,
[data-theme="oscuro"] .escenario:hover { box-shadow: 0 20px 44px -18px rgba(0,0,0,.6); }

.sector { transition: border-color .35s ease, transform .35s ease; }
.sector:hover { border-top-color: var(--grana); transform: translateX(4px); }
.sector h3 { transition: color .3s ease; }
.sector:hover h3 { color: var(--anil); }

.paso { transition: padding-left .35s cubic-bezier(.16,1,.3,1); }
.paso:hover { padding-left: 10px; }
.paso .num { display: inline-block; transition: color .3s ease, transform .3s ease; }
.paso:hover .num { color: var(--anil); transform: scale(1.2); }

/* --- Cifras animadas --- */
.count-target { font-variant-numeric: tabular-nums; }

/* --- Sección visual a sangre completa --- */
.visual-break { position: relative; margin: 0 0 90px; padding: 20px 0 0; }
.visual-break-wrap { max-width: 1040px; margin: 0 auto; padding: 0 32px; }
.visual-break-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  border-radius: 10px;
  box-shadow: 0 40px 70px -35px rgba(31,39,51,.45);
}
.visual-break-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
}
.visual-break-caption {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 28px auto 0;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.visual-break-text {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 30px;
  font-size: 19px;
  line-height: 1.6;
  margin: 0;
  box-shadow: 0 24px 54px -22px rgba(31,39,51,.3);
}
.visual-break-credit {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  align-self: flex-start;
  transition: color .25s ease;
}
.visual-break-credit:hover { color: var(--anil); }
.visual-break-transcript { font-family: 'Spline Sans Mono', monospace; font-size: 12px; color: var(--muted); }
.visual-break-transcript summary { cursor: pointer; user-select: none; }
.visual-break-transcript summary:hover { color: var(--anil); }
.visual-break-transcript p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink); font-family: 'Inter', sans-serif; }

@media (max-width: 840px) {
  .visual-break-wrap { padding: 0 20px; }
  .visual-break-media { border-radius: 6px; }
  .visual-break-caption { margin-top: 20px; padding: 0 24px; }
  .visual-break-text { padding: 22px 22px; font-size: 17px; }
}

/* --- Accesibilidad: respeta "reducir movimiento" --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .word-inner { transform: none !important; }
}
