/* =====================================================================
   GEM Ecuador 2025 · Mini-curso interactivo
   Hoja de estilos · Inter + Instrument Serif · paleta navy/cyan/pink
   ===================================================================== */

:root {
  /* paleta */
  --ink: #0a1430;
  --graphite: #1e2a44;
  --muted: #4f5a72;
  --muted-soft: #7e8aa3;
  --line: #e3e7ef;
  --line-soft: #eef0f6;
  --surface: #f6f8fc;
  --surface-2: #eef2fa;
  --white: #ffffff;

  --blue: #2563eb;
  --blue-soft: #eaf2ff;
  --cyan: #5DD3F0;
  --pink: #F5A9B8;
  --magenta: #e8528a;
  --red: #dc2626;
  --green: #059669;
  --green-soft: #effaf3;
  --orange: #f59e0b;
  --violet: #7c3aed;
  --navy: #0a1430;
  --navy-2: #11203f;

  /* sombras */
  --shadow-sm: 0 4px 14px rgba(15, 25, 55, .06);
  --shadow-md: 0 10px 30px rgba(15, 25, 55, .08);
  --shadow-lg: 0 22px 60px rgba(15, 25, 55, .14);
  --shadow-xl: 0 30px 80px rgba(15, 25, 55, .2);

  /* tipografía */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* radios */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  /* easings */
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
}

/* ================================ RESET ================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "ss01", "cv11";
}
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: transparent; /* la aurora fija (#aurora) provee el fondo dinámico */
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, button, textarea, select { font: inherit; color: inherit; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

h1, h2, h3, h4, h5, p, dl, dd { margin: 0; }
ul { margin: 0; padding-left: 1.1em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--navy); color: #fff;
  border-radius: var(--r-md);
  font-weight: 800;
  transform: translateY(-130%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ================================ TIPOGRAFÍA ================================ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  border-radius: 2px;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
h1 em, h2 em, h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--blue);
}

/* ================================ TOPBAR ================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(227, 231, 239, .8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--navy);
}
.brand-text { display: grid; line-height: 1.1; }
.brand-title { font-size: 15px; font-weight: 900; }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--graphite);
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.is-current {
  background: var(--blue-soft);
  color: var(--blue);
}
.nav-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }
.progress-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  flex-wrap: nowrap;
}
#progressText { white-space: nowrap; flex-shrink: 0; }
.progress-label { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.progress-track {
  display: inline-block;
  width: 70px; height: 6px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
#progressFill {
  display: block;
  width: 0%; height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--pink));
  transition: width .45s var(--ease-out);
}

/* ================================ MOBILE NAV ================================ */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 100;
  align-items: center; justify-content: center;
  flex-direction: column;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s var(--ease-out), border-color .2s;
}
.nav-toggle:hover { background: var(--blue-soft); border-color: rgba(37,99,235,.35); }
.nav-toggle:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; }
.nav-toggle > span {
  display: block;
  width: 20px; height: 2px;
  margin: 3px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s, background .2s;
}
.nav-toggle[aria-expanded="true"] > span { background: #fff; }
.nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
/* al abrir el menu, el boton se fija por encima de la capa para que la X (cerrar) sea visible y clicable */
.nav-toggle[aria-expanded="true"] { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); position: fixed; top: 12px; right: 16px; z-index: 130; }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 80px 24px 40px;
  background: rgba(10, 20, 48, .95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .25s var(--ease-out), opacity .2s, visibility 0s linear .25s;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path .35s var(--ease-out), opacity .25s, visibility 0s linear 0s;
}
.nav-overlay-inner {
  display: grid;
  gap: clamp(20px, 4vw, 36px);
  width: min(560px, 88vw);
  text-align: center;
  color: #fff;
}
.nav-overlay-inner .kicker { color: var(--cyan); justify-self: center; margin-bottom: 0; }
.nav-overlay-inner .kicker::before { background: linear-gradient(90deg, var(--cyan), var(--pink)); }

.nav-overlay-links {
  display: grid;
  gap: 6px;
}
.nav-overlay-links a {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: clamp(24px, 6.5vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), color .2s;
}
.nav-overlay-links a:hover,
.nav-overlay-links a:focus-visible {
  color: var(--cyan);
  outline: none;
}
.nav-overlay.is-open .nav-overlay-links a { opacity: 1; transform: translateY(0); }
.nav-overlay.is-open .nav-overlay-links a:nth-child(1) { transition-delay: .08s; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(2) { transition-delay: .14s; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(3) { transition-delay: .20s; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(4) { transition-delay: .26s; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(5) { transition-delay: .32s; }
.nav-overlay.is-open .nav-overlay-links a:nth-child(6) { transition-delay: .38s; }

.nav-overlay-brand {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  color: rgba(255,255,255,.6);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  justify-self: center;
}
.nav-overlay-brand .brand-mark { background: rgba(255,255,255,.06); width: 32px; height: 32px; }

body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nav-overlay,
  .nav-overlay-links a,
  .nav-toggle > span { transition: none !important; }
}

/* ================================ BOTONES ================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
/* beat tactil: press-down al pulsar (respuesta directa, microinteraccion) */
@media (prefers-reduced-motion: no-preference) {
  .button:active { transform: translateY(0) scale(.97); transition-duration: .09s; }
  .welcome-cta:active { transform: scale(.97); transition-duration: .09s; }
  .territory-switcher button:active { transform: scale(.97); }
  .journey-dot:active { transform: scale(.86); }
  .sound-toggle:active { transform: scale(.92); }
  .welcome-reopen:active { transform: scale(.94); }
  .bento-card:active:not(.is-tilting) { transform: scale(.985); transition-duration: .09s; }
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #0a1430 0%, #1d2f5f 100%);
  box-shadow: 0 10px 24px rgba(10, 20, 48, .28);
}
.button.primary:hover {
  background: linear-gradient(135deg, #11203f 0%, #2a437a 100%);
  box-shadow: 0 16px 36px rgba(10, 20, 48, .36);
}
.button.ghost {
  color: var(--navy);
  background: rgba(255,255,255,.7);
  border-color: var(--line);
}
.button.ghost:hover {
  background: #fff;
  border-color: rgba(37,99,235,.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge.soft { background: rgba(255,255,255,.16); color: #fff; }

/* ================================ HERO (DARK) ================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .55fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  padding: clamp(48px, 8vw, 110px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(93,211,240,.18), transparent 55%),
    radial-gradient(100% 80% at 10% 90%, rgba(245,169,184,.16), transparent 55%),
    linear-gradient(180deg, #07102a 0%, #0a1430 50%, #0d1937 100%);
}
.hero .kicker { color: var(--cyan); }
.hero .kicker::before { background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.hero-content h1 { color: #fff; }
.hero .button.ghost {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.hero .button.ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); }
.hero .button.primary {
  background: linear-gradient(135deg, #fff 0%, #e7eefc 100%);
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(7, 16, 42, .42);
}
.hero .button.primary:hover {
  background: linear-gradient(135deg, #fff 0%, #ffffff 100%);
  box-shadow: 0 18px 40px rgba(7, 16, 42, .55);
}
.hero-meta { color: rgba(255,255,255,.7); }
.hero-meta .dot { box-shadow: 0 0 0 4px rgba(5,150,105,.28); }
.scroll-cue { color: rgba(255,255,255,.6); }
.scroll-cue:hover { color: var(--cyan); }
.hero .stat-card {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.hero .stat-card dt { color: rgba(255,255,255,.6); }
.hero .stat-card dd { color: #fff; }
.hero-orbs {
  position: absolute;
  inset: -10% -5% -10% 10%;
  z-index: -1;
  pointer-events: none;
}
.hero-orbs svg { width: 100%; height: 100%; transition: opacity .8s var(--ease-out); }
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: .42;
  mix-blend-mode: screen;
  filter: contrast(1.15) saturate(.85) brightness(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 36%, rgba(0,0,0,1) 72%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 36%, rgba(0,0,0,1) 72%);
}

.hero-content { position: relative; align-self: center; max-width: 760px; }
.hero-title {
  margin: 8px 0 22px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.hero-title-line { display: block; }
.hero-title em {
  display: inline-block;
  background: linear-gradient(90deg, #2563eb, #e8528a 60%, #5DD3F0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-copy {
  max-width: 580px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.hero-copy strong {
  color: #fff;
  font-weight: 900;
  background: linear-gradient(120deg, #ffffff 0%, #d6e6ff 60%, #ffd6e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.stat-card {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.stat-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stat-card dd {
  display: block;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
}

.hero-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.hero-meta .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 4px rgba(5,150,105,.18); }

/* hero side video */
.hero-side {
  position: relative;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.video-card {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--navy);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
}
.video-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(93,211,240,.35), transparent 55%),
    radial-gradient(120% 80% at 90% 100%, rgba(245,169,184,.35), transparent 55%),
    linear-gradient(180deg, #0a1430, #11203f);
}
.video-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  background: rgba(10,20,48,.85);
  transition: opacity .35s var(--ease-out);
}
.video-fallback.is-visible { opacity: 1; }
.video-fallback svg { margin: 0 auto 14px; }
.video-fallback p { margin: 0; font-weight: 800; line-height: 1.4; }
.video-fallback span { color: rgba(255,255,255,.7); font-weight: 600; font-size: 13px; }
.video-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  background: rgba(255,255,255,.04);
}
.video-foot a { color: var(--cyan); font-weight: 800; }
.video-foot a:hover { text-decoration: underline; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.scroll-cue:hover { color: var(--blue); }

/* ================================ SECTION BASE ================================ */
.section {
  position: relative;
  scroll-margin-top: 88px;
  padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 72px);
}
.section-head { max-width: 880px; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}
.section-head h2 em { background: none; -webkit-text-fill-color: initial; color: var(--blue); }

.student-note {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.student-note strong { color: var(--ink); font-weight: 700; }

/* dark sections shared */
.is-dark {
  background: linear-gradient(180deg, #0a1430 0%, #11203f 100%);
  color: #fff;
}
.is-dark h2 { color: #fff; }
.is-dark h2 em { color: var(--cyan); }
.is-dark .kicker { color: var(--cyan); }
.is-dark .student-note { color: rgba(255,255,255,.74); }

/* ================================ FUNNEL ================================ */
.funnel-band {
  background: rgba(246, 248, 252, .46);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.funnel-card {
  padding: 32px;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.funnel-row { margin-bottom: 22px; }
.funnel-row-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.funnel-label { font-weight: 800; color: var(--graphite); font-size: 15px; }
.funnel-value {
  color: var(--blue);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.funnel-row.danger .funnel-value { color: var(--red); }
.funnel-bar {
  height: 22px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.funnel-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 1.2s var(--ease-out);
}
.funnel-row.danger .funnel-bar i {
  background: linear-gradient(90deg, var(--red), #ff9d9d);
}
/* barra sana (TEA): crece suave hasta su ancho */
.funnel-row:not(.danger).in-view .funnel-bar i { width: var(--w); }

/* barra EBO (desplome): sobrepasa hacia el nivel TEA y se derrumba a su 22% real */
.funnel-row.danger.in-view .funnel-bar i {
  animation: barCollapse 1.5s cubic-bezier(.6, .04, .98, .34) both;
}
@keyframes barCollapse {
  0%   { width: 0; filter: none; }
  38%  { width: 92%; background: linear-gradient(90deg, var(--red), #ffb4b4); }
  46%  { width: 96%; box-shadow: inset 0 0 0 0 rgba(220,38,38,0); }
  62%  { width: var(--w); background: linear-gradient(90deg, #9b1c1c, var(--red)); box-shadow: 0 6px 22px rgba(220,38,38,.45); }
  76%  { width: calc(var(--w) - 4px); }
  100% { width: var(--w); background: linear-gradient(90deg, #9b1c1c, var(--red)); box-shadow: 0 4px 16px rgba(220,38,38,.32); }
}
.funnel-foot { margin: 12px 0 0; color: var(--muted); line-height: 1.5; }
.funnel-foot strong { color: var(--ink); }

/* climax del -51%: al entrar la giant-stat, la tarjeta oscurece y el numero crece full-bleed */
.funnel-card {
  transition: background .7s var(--ease-out), border-color .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.funnel-card.is-climax {
  background: radial-gradient(120% 120% at 50% 38%, #16234a 0%, #0a1430 70%);
  border-color: rgba(220, 38, 38, .3);
  box-shadow: 0 30px 80px rgba(10, 20, 48, .5);
}
/* al oscurecer la tarjeta, TODO el texto se vuelve claro y sigue legible (sin escalar el numero) */
.funnel-card.is-climax .funnel-label { color: rgba(255,255,255,.82); transition: color .6s var(--ease-out); }
.funnel-card.is-climax .funnel-value { color: #fff; transition: color .6s var(--ease-out); }
.funnel-card.is-climax .funnel-row.danger .funnel-value { color: #ff8a8a; }
.funnel-card.is-climax .funnel-row { transition: opacity .6s var(--ease-out); opacity: .92; }
.funnel-card.is-climax .giant-stat { position: relative; z-index: 2; }
.funnel-card.is-climax .giant-stat-num {
  transition: text-shadow .8s var(--ease-out);
  text-shadow: 0 0 55px rgba(220, 38, 38, .6), 0 0 16px rgba(220, 38, 38, .55);
}
.funnel-card.is-climax .giant-stat-label { transition: color .6s var(--ease-out); color: rgba(255, 255, 255, .9); }
.funnel-card.is-climax .giant-stat-label em { color: #fff; }
.funnel-card.is-climax .funnel-foot { transition: color .6s var(--ease-out); color: rgba(255, 255, 255, .85); }
.funnel-card.is-climax .funnel-foot em { color: #fff; }
.funnel-card.is-climax .ana-callout-text { color: rgba(255,255,255,.85); }
.funnel-card.is-climax .ana-callout-text strong { color: #fff; }
.funnel-card.is-climax .ana-callout-text em { color: var(--cyan); }
.funnel-card.is-climax .ana-callout-label { color: var(--cyan); }

/* ================================ RUTA ================================ */
.module-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.module-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform .25s var(--ease-out), border-color .2s, box-shadow .2s, background .2s;
}
.module-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px 16px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.module-card:hover, .module-card.active, .module-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.45);
  box-shadow: var(--shadow-lg);
}
.module-card:hover::after, .module-card.active::after { transform: scaleX(1); }
.module-card:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; }

.module-number {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 6px;
  border-radius: 12px;
  color: #fff; font-weight: 900;
  background: var(--blue);
  font-variant-numeric: tabular-nums;
}
.module-card[data-theme="paradoja"] .module-number { background: var(--blue); }
.module-card[data-theme="consolidacion"] .module-number { background: var(--red); }
.module-card[data-theme="futuro"] .module-number { background: var(--violet); }
.module-card[data-theme="accion"] .module-number { background: var(--green); }
.module-card[data-theme="reflexiones"] .module-number { background: var(--orange); }
.module-card[data-theme="metodologia"] .module-number { background: var(--ink); }

.module-card h3 { font-size: 17px; line-height: 1.2; }
.module-card p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.module-card .badge { align-self: start; }

/* module stage panel */
.module-stage { padding-top: 0; padding-bottom: clamp(40px, 6vw, 80px); }
.module-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .55fr);
  gap: 28px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.module-panel h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  margin-bottom: 12px;
}
.module-panel .lead {
  color: var(--graphite);
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.module-panel p { color: var(--muted); }
.challenge-box {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf2ff, #fdeef2);
  color: var(--navy);
  font-weight: 700;
}
.module-takeaway {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(37,99,235,.4);
  background: rgba(255,255,255,.5);
  color: var(--graphite);
}
.module-takeaway strong { color: var(--navy); }

/* mini-quiz */
.mini-quiz {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.mini-quiz h3 { margin-bottom: 12px; font-size: 18px; }
.mini-quiz > p { color: var(--graphite); margin-bottom: 12px; }
.option-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--graphite);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.option:hover { transform: translateX(3px); border-color: rgba(37,99,235,.35); }
.option input { margin-top: 3px; accent-color: var(--blue); }
.option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.feedback { margin: 14px 0 0; font-weight: 800; color: var(--graphite); }
.feedback.good { color: var(--green); }
.feedback.bad { color: var(--red); }

/* ================================ PARADOX (PIN+SCRUB) ================================ */
.paradox-zone {
  background: radial-gradient(60% 60% at 50% 30%, #11203f 0%, #0a1430 100%);
  color: #fff;
  overflow: hidden;
  padding: 0;
}
.paradox-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}
.paradox-stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(60px, 8vh, 120px) clamp(20px, 5vw, 72px);
  gap: 18px;
}
.paradox-stage .kicker { color: var(--cyan); justify-content: center; margin: 0 auto; }
.paradox-stage h2 {
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 920px;
  margin: 0 auto;
}
.paradox-num {
  display: inline-block;
  min-width: 1.2em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}
.paradox-counter {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 1;
  margin: 12px auto;
}
.paradox-ring { width: 100%; height: 100%; }
.paradox-center {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
}
.paradox-center strong {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, #5DD3F0, #F5A9B8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.paradox-center span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
}
.paradox-foot {
  max-width: 640px;
  margin: 4px auto 0;
  color: rgba(255,255,255,.7);
  font-size: clamp(15px, 1.4vw, 18px);
}
.paradox-note {
  max-width: 560px;
  margin: -6px auto 18px;
  color: rgba(255,255,255,.52);
  font-size: 13px;
  line-height: 1.5;
}

/* ================================ DATA LAB ================================ */
.data-lab { position: relative; }
.worm-path {
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  opacity: .65;
  z-index: 0;
}
.worm-path path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.lab-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.lab-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}
.lab-card h3 { font-size: 19px; line-height: 1.25; }
.lab-tag {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lab-foot { margin: auto 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.lab-card--figure { padding: 22px; }
.lab-figure {
  margin: 0;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.lab-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.lab-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ================================ FIGURES GALLERY ================================ */
.figures-zone {
  background: linear-gradient(180deg, #fff, var(--surface));
}
.figures-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.figure-card {
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.figure-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.28);
}
.figure-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--surface-2);
}
.figure-card figcaption {
  display: grid;
  gap: 8px;
  padding: 22px 22px 24px;
}
.figure-card .pill {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.figure-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}
.figure-card p {
  margin: 0;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.5;
}

/* process line */
.process-line { display: grid; gap: 12px; margin-top: 6px; }
.process-node {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
}
.process-node b {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.process-node span { color: var(--graphite); font-weight: 700; font-size: 14px; }

/* metric / barrier bars */
.barrier-list, .compare-bars { display: grid; gap: 12px; margin-top: 4px; }
.metric-bar { display: grid; gap: 6px; }
.metric-bar header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--graphite);
  font-weight: 800;
  font-size: 13px;
}
.metric-bar header strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.metric-bar i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.metric-bar i::before {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--c, var(--blue));
  transition: width 1s var(--ease-out);
}
.metric-bar.in-view i::before { width: var(--w); }

/* sector chart */
.sector-chart { display: grid; gap: 10px; margin-top: 6px; }
.sector-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 10px;
  align-items: center;
}
.sector-row span { color: var(--graphite); font-weight: 700; font-size: 13px; }
.sector-row strong { color: var(--ink); font-weight: 900; font-variant-numeric: tabular-nums; }
.sector-row i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.sector-row i::before {
  content: "";
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transition: width 1.1s var(--ease-out);
  border-radius: inherit;
}
.sector-row.in-view i::before { width: var(--w); }

/* ================================ CICLO (PIN + ROTATE 900°) ================================ */
.cycle-zone {
  padding: 0;
  background: radial-gradient(80% 60% at 50% 30%, #11203f 0%, #07102a 100%);
  color: #fff;
  overflow: hidden;
}
.cycle-wrap {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}
.cycle-stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(60px, 8vh, 120px) clamp(20px, 5vw, 72px);
}
.cycle-content { max-width: 560px; }
.cycle-content .kicker { color: var(--cyan); }
.cycle-content h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  margin-bottom: 18px;
}
.cycle-content h2 em { color: var(--pink); }
.cycle-content p {
  color: rgba(255,255,255,.78);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
}
.cycle-content p strong { color: #fff; }
.cycle-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.cycle-legend li {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 800;
}
.cycle-legend li span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c, #fff);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
.cycle-visual {
  display: grid;
  place-items: center;
  position: relative;
}
.cycle-visual svg {
  width: min(420px, 80vw);
  height: auto;
  position: relative;
  z-index: 1;
  /* disco 3D: inclinado en perspectiva, como un tornamesa */
  transform: perspective(1100px) rotateX(26deg);
  transform-origin: center 56%;
  filter: drop-shadow(0 42px 46px rgba(0,0,0,.6));
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: filter .3s var(--ease-out);
}
/* sombra de piso eliptica que asienta el disco en el espacio */
.cycle-visual::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 3%;
  width: min(330px, 58vw); height: 48px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 72%);
  filter: blur(14px);
  z-index: 0;
  pointer-events: none;
  transition: background .35s var(--ease-out), transform .35s var(--ease-out);
}
#cycleWheel { cursor: grab; }
.cycle-visual.is-dragging #cycleWheel { cursor: grabbing; }
.cycle-visual.is-dragging svg {
  filter:
    drop-shadow(0 42px 46px rgba(0,0,0,.6))
    drop-shadow(0 0 24px rgba(93,211,240,.5));
}
/* giro MUY rapido: aura de velocidad cyan/pink + sombra energizada */
.cycle-visual.is-fast svg {
  filter:
    drop-shadow(0 42px 46px rgba(0,0,0,.6))
    drop-shadow(0 0 40px rgba(93,211,240,.9))
    drop-shadow(0 0 78px rgba(245,169,184,.55));
}
.cycle-visual.is-fast::before {
  background: radial-gradient(ellipse at center, rgba(93,211,240,.55), rgba(245,169,184,.22) 48%, transparent 76%);
  transform: translateX(-50%) scale(1.18);
}
.cycle-sectors { transform-origin: center; }
.cycle-labels { transform-origin: center; }

/* drag cue: "Arrastra para girar" debajo de la rueda */
.cycle-drag-cue {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 1;
  transition: opacity .35s var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.cycle-drag-cue svg { width: 14px; height: 14px; opacity: .9; }
.cycle-visual.is-dragging .cycle-drag-cue,
.cycle-visual.has-interacted .cycle-drag-cue { opacity: 0; }

@media (max-width: 1024px) {
  .cycle-stage { grid-template-columns: 1fr; gap: 24px; padding-top: 60px; height: auto; min-height: 100vh; min-height: 100dvh; }
  .cycle-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-visual svg { width: min(360px, 70vw); }
}
@media (max-width: 700px) {
  .cycle-wrap { min-height: 100vh; min-height: 100dvh; }
  .cycle-stage { padding-top: 40px; }
  .cycle-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-visual svg { width: min(280px, 80vw); }
  .cycle-drag-cue { font-size: 10px; padding: 5px 10px; }
}

/* ================================ ESCENARIOS ================================ */
.scenario-zone {
  background:
    linear-gradient(180deg, rgba(5,150,105,.05), transparent 60%),
    var(--white);
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.scenario-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 320px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.scenario-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(5,150,105,.3);
}
.scenario-card .pill {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.scenario-card h3 { font-size: 19px; line-height: 1.25; }
.scenario-card p { color: var(--graphite); line-height: 1.55; margin: 0; }
.scenario-data {
  width: max-content;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff8e7;
  color: var(--navy);
  font-weight: 900;
  font-size: 13px;
}
.scenario-card details {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.scenario-card summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
  list-style: none;
}
.scenario-card summary::-webkit-details-marker { display: none; }
.scenario-card summary::after {
  content: "↓";
  display: inline-block;
  margin-left: 6px;
  transition: transform .25s;
}
.scenario-card details[open] summary::after { transform: rotate(180deg); }
.scenario-card details p { margin-top: 10px; color: var(--muted); }

/* ================================ DASHBOARDS ================================ */
.dashboard-zone {
  background: linear-gradient(180deg, rgba(255,255,255,.46), rgba(244,248,255,.44));
}
/* ================================ BENTO GRID ================================ */
.bento-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: minmax(280px, auto) minmax(280px, auto);
  grid-template-areas:
    "hero hero medium-a small-a"
    "hero hero medium-b small-b";
}
.bento-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.bento-card:hover,
.bento-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.3);
}
.bento-card:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; }
.bento-card .kicker { margin-bottom: 0; }

/* HERO 2×2 — paradoja */
.bento-card--hero {
  grid-area: hero;
  padding: 32px;
  gap: 18px;
  background: linear-gradient(135deg, #fff 0%, #f9fbff 100%);
}
.bento-card--hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background: radial-gradient(circle at 100% 0%, rgba(93,211,240,.18), transparent 60%);
  pointer-events: none;
}
.bento-card--hero h3 {
  position: relative;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 420px;
}
.bento-hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 6px 0;
}
.bento-hero-stats > div { display: grid; gap: 6px; }
.bento-hero-stats strong {
  color: var(--navy);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: 1;
}
.bento-hero-stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bento-hero-stats .danger strong { color: var(--red); }
.bento-hero-compare {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(37,99,235,.06);
}
.bento-hero-compare-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--graphite);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bento-hero-compare-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  color: var(--graphite);
  font-weight: 700;
}
.bento-hero-compare-row strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.bento-hero-callout {
  position: relative;
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--navy);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.4;
}
.bento-hero-callout .label {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bento-hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* MEDIUM 1×2 — consolidacion, futuro */
.bento-card--medium-a { grid-area: medium-a; }
.bento-card--medium-b { grid-area: medium-b; }
.bento-card--medium h3 { font-size: 18px; line-height: 1.25; }
.bento-medium-list { display: grid; gap: 12px; }
.bento-medium-item { display: grid; gap: 4px; }
.bento-medium-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--graphite);
  font-size: 12.5px;
  font-weight: 800;
}
.bento-medium-item header strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.bento-medium-item i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.bento-medium-item i::before {
  content: "";
  display: block;
  width: 0; height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 1s var(--ease-out);
}
.bento-medium-item.in-view i::before { width: var(--w); }

/* SMALL 1×1 — percepcion, territorio */
.bento-card--small-a { grid-area: small-a; background: var(--surface); }
.bento-card--small-b { grid-area: small-b; background: var(--surface); }
.bento-card--small { padding: 22px; gap: 8px; }
.bento-card--small .bento-small-value {
  color: var(--navy);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1;
  margin-top: 4px;
}
.bento-card--small .bento-small-value.danger { color: var(--red); }
.bento-card--small h3 {
  font-size: 14px;
  line-height: 1.3;
  margin-top: 4px;
  color: var(--graphite);
}
.bento-card--small p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

/* MODAL */
.bento-modal {
  width: min(880px, 92vw);
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-xl);
  color: var(--ink);
}
.bento-modal::backdrop {
  background: rgba(10, 20, 48, .55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.bento-modal-inner {
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px clamp(22px, 4vw, 36px) 32px;
}
.bento-modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  color: var(--graphite);
  z-index: 5;
}
.bento-modal-close:hover { background: var(--blue-soft); color: var(--blue); border-color: rgba(37,99,235,.3); }
.bento-modal[open] { animation: bentoModalIn .25s var(--ease-out); }
@keyframes bentoModalIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive bento */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "hero hero"
      "medium-a medium-b"
      "small-a small-b";
  }
}
@media (max-width: 700px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero" "medium-a" "medium-b" "small-a" "small-b";
  }
  .bento-card--hero { padding: 24px; }
  .bento-hero-stats { gap: 12px; }
  .bento-hero-stats strong { font-size: clamp(30px, 8.5vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  .bento-modal[open] { animation: none; }
}
.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.dashboard-panel-head h3 {
  max-width: 640px;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
}
.small-button { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13px; }

.indicator-explorer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.indicator-tile {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform .22s var(--ease-out), box-shadow .25s, border-color .25s;
}
.indicator-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.3);
  box-shadow: var(--shadow-md);
}
.indicator-tile .tile-tag {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.indicator-tile strong {
  display: block;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
}
.indicator-tile h4 { font-size: 16px; line-height: 1.25; margin: 2px 0 0; }
.indicator-tile i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.indicator-tile i::before {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 1.1s var(--ease-out);
  border-radius: inherit;
}
.indicator-tile.in-view i::before { width: var(--w); }
.indicator-tile p { margin: 0; color: var(--graphite); font-size: 13.5px; line-height: 1.5; }
.indicator-tile small { color: var(--muted); font-size: 12px; }

.comparison-chart {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfcff);
}
.comparison-chart h4 { color: var(--navy); margin-bottom: 12px; font-size: 17px; }
.comparison-row {
  display: grid;
  grid-template-columns: minmax(150px, .6fr) minmax(160px, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--graphite);
  transition: transform .2s;
}
.comparison-row:hover { transform: translateX(3px); }
.comparison-row span { padding-left: 4px; font-weight: 800; font-size: 14px; }
.comparison-row i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.comparison-row i::before {
  content: "";
  display: block;
  width: 0; height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transition: width 1s var(--ease-out);
  border-radius: inherit;
}
.comparison-row.in-view i::before { width: var(--w); }
.comparison-row strong {
  color: var(--ink);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.decision-callout {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(5,150,105,.25);
  border-radius: 18px;
  background: var(--green-soft);
}
.decision-callout .label {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.decision-callout p {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 800;
}

/* ================================ DECISIONES ================================ */
.decision-zone {
  background:
    linear-gradient(180deg, rgba(37,99,235,.04), transparent 35%),
    #fff;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.audience-card {
  display: grid;
  gap: 12px;
  min-height: 320px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s;
}
.audience-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37,99,235,.3);
  box-shadow: var(--shadow-lg);
}
.audience-card .pill { width: max-content; padding: 6px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.audience-card .score {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.audience-card h3 { font-size: 18px; line-height: 1.3; }
.audience-card ul { display: grid; gap: 8px; color: var(--graphite); line-height: 1.5; padding-left: 18px; margin: 4px 0 0; font-size: 14.5px; }

/* policy board */
.policy-board {
  padding: 32px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #0a1430, #11203f);
  color: #fff;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}
.policy-board::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(93,211,240,.25), transparent 65%);
  pointer-events: none;
}
.policy-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 22px;
  position: relative;
}
.policy-head .kicker { color: var(--cyan); }
.policy-head h3 {
  max-width: 760px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  color: #fff;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}
.policy-card {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  transition: transform .25s var(--ease-out), background .25s, border-color .25s;
}
.policy-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.3);
}
.policy-card .num {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.policy-card h4 { color: #fff; font-size: 17px; line-height: 1.25; margin: 0; }
.policy-card p { color: rgba(255,255,255,.78); font-size: 13.5px; line-height: 1.5; margin: 0; }
.policy-card p b { color: var(--cyan); font-weight: 800; }
.policy-card .metric {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
}

/* ================================ TERRITORIO ================================ */
.territory-zone { background: transparent; }
.territory-grid {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 28px;
}
.territory-context, .territory-detail {
  min-height: 440px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.territory-context {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(37,99,235,.08), transparent 50%),
    #fff;
}
.territory-context h3 {
  margin: 14px 0 10px;
  color: var(--navy);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}
.territory-context p { color: var(--graphite); line-height: 1.55; }
.territory-switcher { display: grid; gap: 10px; margin: 22px 0; }
.territory-switcher button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  transition: transform .2s var(--ease-out), border-color .2s, background .2s, box-shadow .2s;
}
.territory-switcher button:hover { transform: translateX(3px); border-color: rgba(37,99,235,.4); }
.territory-switcher button.active {
  border-color: rgba(37,99,235,.55);
  background: var(--blue-soft);
  box-shadow: 0 10px 24px rgba(37,99,235,.12);
}
.territory-switcher span { color: var(--navy); font-weight: 900; font-size: 14px; }
.territory-switcher small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.territory-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff8e7;
  border: 1px solid #f7d996;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}

.territory-detail h3 {
  margin: 14px 0 10px;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.1;
}
.territory-detail p { color: var(--graphite); line-height: 1.55; margin-bottom: 18px; }
.territory-detail .badge { margin-bottom: 8px; }
.confirmed-territory { display: grid; gap: 14px; margin: 18px 0; }
.territory-takeaway {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--green-soft);
  border: 1px solid rgba(5,150,105,.2);
}
.territory-takeaway strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.territory-takeaway p { margin: 0; color: var(--graphite); line-height: 1.55; }

/* ecuador stage */
/* Urbano vs Rural — reemplaza el mapa de regiones */
.urbrural {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(93,211,240,.18), transparent 55%),
    linear-gradient(165deg, #0a1430 0%, #11203f 100%);
  color: #fff;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.urbrural-legend {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.78);
}
.urbrural-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ur-chip { width: 22px; height: 10px; border-radius: 999px; display: inline-block; }
.ur-chip--u { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.ur-chip--r { background: linear-gradient(90deg, #e8528a, var(--pink)); }

.urbrural-rows { display: flex; flex-direction: column; gap: 20px; }
.ur-row { display: flex; flex-direction: column; gap: 8px; }
.ur-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.ur-bar {
  display: flex;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.ur-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  transition: width 1s var(--ease-out);
}
.ur-seg b { font-size: 17px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.ur-seg--u { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.ur-seg--r { background: linear-gradient(90deg, #e8528a, var(--pink)); }
.ur-seg--r b { color: #3a0d1c; }

.urbrural-punch {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.ur-zero {
  flex-shrink: 0;
  font-size: clamp(64px, 10vw, 104px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--pink);
}
.urbrural-punch span {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,.84);
}
.urbrural-punch strong { color: #fff; }

@media (max-width: 640px) {
  .urbrural-punch { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ur-seg b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ur-seg { transition: none; } }

/* ================================ REFLEXIONES ================================ */
.reflections-zone {
  background:
    linear-gradient(180deg, rgba(10,20,48,.04), transparent 30%),
    #fff;
}
.reflection-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.reflection-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s;
}
.reflection-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.25);
  box-shadow: var(--shadow-md);
}
.reflection-card summary {
  display: grid;
  gap: 10px;
  padding: 20px;
  cursor: pointer;
  list-style: none;
}
.reflection-card summary::-webkit-details-marker { display: none; }
.reflection-card .pill {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.reflection-card summary strong { font-size: 18px; line-height: 1.2; color: var(--ink); }
.reflection-card summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  font-size: 22px;
  font-weight: 800;
  color: var(--muted);
  transition: transform .25s;
}
.reflection-card { position: relative; }
.reflection-card[open] summary::after { content: "−"; }
.reflection-card .insight { margin: 0 20px; padding: 0 0 14px; color: var(--graphite); line-height: 1.5; }
.reflection-card .prompt {
  margin: 0 20px 20px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}

/* ================================ GLOBAL ================================ */
.global-zone { background: var(--surface); }
.global-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.global-card p { max-width: 720px; color: var(--graphite); line-height: 1.55; }
.global-meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  padding: 0; margin: 18px 0 0;
  list-style: none;
}
.global-meta li {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.global-meta strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* ================================ EVALUACIÓN ================================ */
.evaluation { background: linear-gradient(180deg, #fff, #f6f8fc); }
.quiz-status {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(180px, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 20px 24px;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.quiz-status-text span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.quiz-status-text strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.quiz-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.quiz-bar b {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--green));
  border-radius: inherit;
  transition: width .4s var(--ease-out);
}

.question-stack { display: grid; gap: 16px; }
.question-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.question-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.question-card fieldset { border: 0; padding: 0; margin: 0; }
.question-card legend {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  padding: 0;
  margin-bottom: 14px;
}
.question-card legend .qnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px; height: 28px;
  margin-right: 10px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.question-card.is-correct {
  border-color: rgba(5,150,105,.55);
  background: linear-gradient(180deg, #fff, #f2fbf7);
}
.question-card.is-incorrect {
  border-color: rgba(220,38,38,.4);
  background: linear-gradient(180deg, #fff, #fff5f5);
}
.question-feedback {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.5;
}

.evaluation-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 20px;
}

.result-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.result-panel[hidden] { display: none; }
.result-arc {
  display: grid;
  place-items: center;
  width: 172px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--green) 0 var(--score), #e8edf5 var(--score) 360deg);
  box-shadow: inset 0 0 0 1px rgba(15,42,68,.06);
  position: relative;
}
.result-arc div {
  display: grid;
  place-items: center;
  width: 116px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,42,68,.08);
}
.result-arc strong { color: var(--navy); font-size: 36px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.result-arc span { color: var(--muted); font-weight: 800; font-size: 13px; }
.result-copy h3 { color: var(--navy); font-size: 24px; margin-bottom: 6px; }
.result-copy p { color: var(--graphite); line-height: 1.55; margin: 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* newsletter */
.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: center;
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(93,211,240,.18), transparent 55%),
    linear-gradient(180deg, #fff, #f4f8ff);
  box-shadow: var(--shadow-md);
}
.newsletter h3 { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
.newsletter p { color: var(--muted); line-height: 1.5; margin: 0; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-form input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-size: 15px;
}
.newsletter-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.14);
}

/* ================================ FOOTER ================================ */
.footer {
  padding: 56px clamp(20px, 5vw, 72px) 40px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.footer-inner { display: grid; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; color: var(--ink); font-size: 16px; }
.footer-brand p { margin: 2px 0 0; font-size: 13.5px; }

/* ================================ LOGO MARQUEE ================================ */
.logo-marquee {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logo-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  animation: logoMarquee 40s linear infinite;
}
.logo-marquee:hover .logo-marquee-track,
.logo-marquee:focus-within .logo-marquee-track { animation-play-state: paused; }
.logo-marquee .uni-card {
  flex: 0 0 auto;
  width: clamp(180px, 22vw, 240px);
}
@keyframes logoMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .logo-marquee-track {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    animation: none;
  }
  .logo-marquee .uni-card[aria-hidden="true"] { display: none; }
}
.uni-card {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
}
.uni-card:hover { transform: translateY(-3px); border-color: rgba(37,99,235,.3); box-shadow: var(--shadow-md); background: #fff; }
.uni-card img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  filter: saturate(.95) contrast(1.02);
}
.uni-card figcaption {
  color: var(--graphite);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.footer-fine { font-size: 12.5px; line-height: 1.6; }

/* ================================ TOASTS ================================ */
.toast-host {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  animation: toastIn .25s var(--ease-out) forwards;
}
.toast.leaving { animation: toastOut .2s var(--ease-out) forwards; }
@keyframes toastIn { to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ================================ NUMBER TICKER ================================ */
.ticker {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ticker-digit {
  position: relative;
  display: inline-block;
  width: 1ch;
  height: 1em;
  overflow: hidden;
  line-height: 1;
}
.ticker-track {
  display: block;
  transform: translateY(0);
  will-change: transform;
}
.ticker.animating .ticker-track {
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.ticker-track > span {
  display: block;
  height: 1em;
  line-height: 1;
  text-align: center;
}
.ticker-static {
  display: inline-block;
  white-space: pre;
  line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { transition: none !important; }
}

/* ================================ SKELETONS ================================ */
.skel {
  position: relative;
  overflow: hidden;
  background: var(--line-soft);
  border-radius: 12px;
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.65) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: skelShimmer 1.4s ease-in-out infinite;
}
@keyframes skelShimmer {
  to { transform: translateX(100%); }
}
.skel-stat     { height: 88px;  border-radius: var(--r-lg); }
.skel-card     { min-height: 220px; border-radius: var(--r-lg); }
.skel-tile     { min-height: 140px; border-radius: var(--r-lg); }
.skel-tab      { height: 56px;  border-radius: 12px; }
.skel-bar      { height: 56px;  border-radius: 12px; }
.skel-question { height: 200px; border-radius: var(--r-xl); }
.skel-row      { height: 36px;  border-radius: 10px; }
.skel-banner   { height: 60px;  border-radius: var(--r-lg); }

/* contexto oscuro: hero, paradox, cycle */
.hero .skel,
.is-dark .skel { background: rgba(255,255,255,.08); }
.hero .skel::after,
.is-dark .skel::after { background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 50%, transparent 100%); }

@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; opacity: 0; }
}

/* ================================ REVEAL ANIMATIONS ================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Entrada cinemática escalonada en los encabezados de sección */
.section-head.reveal .chapter-marker,
.section-head.reveal .kicker,
.section-head.reveal h2,
.section-head.reveal .student-note {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.section-head.reveal.is-in .chapter-marker,
.section-head.reveal.is-in .kicker { opacity: 1; transform: none; transition-delay: .05s; }
.section-head.reveal.is-in h2 { opacity: 1; transform: none; transition-delay: .16s; }
.section-head.reveal.is-in .student-note { opacity: 1; transform: none; transition-delay: .32s; }

/* hero orbs subtle float */
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-20px, 14px, 0) scale(1.04); }
}
.orb-a { animation: orbFloat 9s ease-in-out infinite; }
.orb-b { animation: orbFloat 12s ease-in-out infinite reverse; }
.orb-c { animation: orbFloat 14s ease-in-out infinite; }

/* worm draw animation when in-view (fallback if GSAP fails) */
.worm-path.in-view path {
  animation: wormDraw 2s var(--ease-out) forwards;
}
@keyframes wormDraw {
  to { stroke-dashoffset: 0; }
}

/* ================================ RESPONSIVE ================================ */
@media (max-width: 1200px) {
  .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .hero, .funnel-band, .module-panel, .global-card, .ecuador-stage, .newsletter {
    grid-template-columns: 1fr;
  }
  .hero-side { justify-self: stretch; max-width: none; }
  .scenario-grid, .audience-grid, .reflection-board, .figures-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .territory-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { min-height: auto; padding-top: clamp(48px, 8vw, 80px); padding-bottom: clamp(48px, 8vw, 80px); }
  .scroll-cue { display: none; }
}

@media (max-width: 700px) {
  .topbar { padding: 10px 16px; gap: 12px; }
  .brand-sub { display: none; }
  .progress-pill { padding: 6px 10px; }
  .progress-label { display: none; }
  .progress-track { width: 50px; }

  .hero { padding: 32px 18px 48px; gap: 20px; }
  .hero-title { font-size: clamp(36px, 11vw, 56px); margin-bottom: 16px; }
  .hero-copy { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-side { order: 1; max-width: 100%; }
  .video-frame { aspect-ratio: 16 / 10; }

  .section { padding: 48px 18px; }
  .section-head h2 { font-size: clamp(26px, 7vw, 36px); }

  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-grid { grid-template-columns: 1fr; }
  .scenario-grid, .audience-grid, .reflection-board, .policy-grid, .figures-grid { grid-template-columns: 1fr; }
  .hero-map { opacity: .14; }

  .indicator-explorer { grid-template-columns: 1fr; }
  .comparison-row { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
  .comparison-row span { padding-left: 0; }
  .comparison-row strong { padding-right: 0; }

  .result-panel { grid-template-columns: 1fr; text-align: center; }
  .result-arc { margin: 0 auto; }
  .quiz-status { grid-template-columns: 1fr; }

  .newsletter-form { grid-template-columns: 1fr; }

  .paradox-stage h2 { font-size: clamp(24px, 7.5vw, 34px); }
  .paradox-counter { width: min(260px, 70vw); }
  .paradox-center strong { font-size: clamp(48px, 18vw, 80px); }

  .sector-row { grid-template-columns: 110px 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .section-head.reveal .chapter-marker,
  .section-head.reveal .kicker,
  .section-head.reveal h2,
  .section-head.reveal .student-note { opacity: 1; transform: none; transition: none; }
  .orb-a, .orb-b, .orb-c { animation: none; }
}

/* ============================== WELCOME SCREEN ============================== */
.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  /* `safe center` evita el clip-on-overflow clásico: cuando el contenido es
     más alto que el viewport, alinea al inicio para que sea scrolleable. */
  align-content: safe center;
  justify-content: safe center;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(93,211,240,.18), transparent 55%),
    radial-gradient(120% 80% at 90% 100%, rgba(245,169,184,.20), transparent 55%),
    linear-gradient(180deg, #07102a 0%, #0a1430 50%, #0d1937 100%);
  color: #fff;
  isolation: isolate;
}
.welcome-bg {
  /* fixed (no absolute) para que mapa+orbes no se vayan con el scroll
     interno del overlay cuando el contenido supera el viewport. */
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  perspective: 1300px;
}
.welcome-map {
  position: absolute;
  inset: -10% -6%;
  width: 112%;
  height: 120%;
  object-fit: cover;
  opacity: .2;
  mix-blend-mode: screen;
  filter: saturate(.85) contrast(1.1);
  /* parallax 3D: capa lejana (se mueve poco con el cursor) */
  transform: translate3d(calc(var(--px, 0px) * 0.5), calc(var(--py, 0px) * 0.5), 0) scale(1.07);
}
.welcome-orbs {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  /* parallax 3D: capa media (se mueve más + leve inclinación según el cursor) */
  transform: translate3d(calc(var(--px, 0px) * 1.6), calc(var(--py, 0px) * 1.6), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.wel-orb {
  transform-origin: center;
  animation: welOrbFloat 14s ease-in-out infinite alternate;
}
.wel-orb-b { animation-duration: 18s; animation-delay: -4s; }
.wel-orb-c { animation-duration: 11s; animation-delay: -2s; }

@keyframes welMapDrift {
  0%   { transform: scale(1.04) translate3d(0,0,0); }
  100% { transform: scale(1.08) translate3d(-1%, -1.5%, 0); }
}
@keyframes welOrbFloat {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.06); }
}

.welcome-content {
  position: relative;
  width: min(1100px, 92vw);
  padding: clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
}
.welcome-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,.82);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  animation: welIn .7s var(--ease-out) forwards;
}
.welcome-kicker::before {
  content: "";
  width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  border-radius: 2px;
}
.welcome-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(52px, 9.2vw, 128px);
  line-height: 1.0;
  letter-spacing: -.035em;
  display: flex;
  flex-direction: column;
  gap: .02em;
}
.wel-line { display: block; }
/* cada palabra es un bloque que no se parte a la mitad al envolver */
.wel-word { display: inline-block; white-space: nowrap; }
.welcome-title .wel-line--1 { color: #fff; text-shadow: 0 4px 44px rgba(93,211,240,.35); }
.welcome-title .wel-line--2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  line-height: 1.08;
  padding-bottom: .1em;
  /* gradiente tambien en la linea: asi se ve aunque NO se parta en letras (reduced-motion) */
  background: linear-gradient(135deg, #eafaff 0%, #5DD3F0 48%, #F5A9B8 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
/* cada letra: entrada por opacidad escalonada (sin transform ni filter, que quedan
   libres para el esquive del cursor y el glow del gradiente respectivamente) */
.wel-letter {
  display: inline-block;
  opacity: 0;
  animation: welLetterIn .55s var(--ease-out) forwards;
}
.welcome-title .wel-line--2 .wel-letter {
  background: linear-gradient(135deg, #eafaff 0%, #5DD3F0 48%, #F5A9B8 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(93,211,240,.35));
}
@keyframes welLetterIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.welcome-links {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, .8vw, 10px);
  margin-top: clamp(8px, 1.5vw, 18px);
}
.welcome-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: rgba(255,255,255,.92);
  width: max-content;
  max-width: 100%;
  padding: 4px 0;
  opacity: 0;
  transform: translateY(12px);
  animation: welIn .8s var(--ease-out) forwards;
  transition: color .25s var(--ease-out), transform .25s var(--ease-out);
  position: relative;
}
.welcome-links a span {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(90deg, var(--cyan), var(--pink));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s var(--ease-out);
}
.welcome-links a:hover,
.welcome-links a:focus-visible {
  color: var(--cyan);
  transform: translateX(8px);
  outline: none;
}
.welcome-links a:hover span,
.welcome-links a:focus-visible span {
  background-size: 0 2px;
}
.welcome-links a::after {
  content: "→";
  margin-left: 4px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .42em;
  font-weight: 800;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s var(--ease-out), transform .3s var(--ease-out);
  align-self: center;
}
.welcome-links a:hover::after,
.welcome-links a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}
.welcome-links a:nth-child(1) { animation-delay: .44s; }
.welcome-links a:nth-child(2) { animation-delay: .54s; }
.welcome-links a:nth-child(3) { animation-delay: .64s; }
.welcome-links a:nth-child(4) { animation-delay: .74s; }
.welcome-links a:nth-child(5) { animation-delay: .84s; }
.welcome-links a:nth-child(6) { animation-delay: .94s; }

.welcome-skip {
  align-self: flex-start;
  margin-top: clamp(8px, 1.5vw, 16px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.78);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(10px);
  animation: welIn .7s var(--ease-out) forwards;
  animation-delay: 1.1s;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.welcome-skip:hover,
.welcome-skip:focus-visible {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.32);
  outline: none;
  transform: translateY(-1px);
}
.welcome-skip span { transition: transform .25s var(--ease-out); }
.welcome-skip:hover span { transform: translateX(4px); }

@keyframes welIn {
  to { opacity: 1; transform: translateY(0); }
}

/* salida cinematografica: la bienvenida se ACERCA (zoom) y se desenfoca, como si
   entraras a traves de ella hacia el contenido; un estallido sale del boton pulsado. */
.welcome-screen.is-leaving {
  animation: welWarp .72s cubic-bezier(.6, 0, .78, 0) forwards;
  pointer-events: none;
}
@keyframes welWarp {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  55%  { opacity: .85; }
  100% { opacity: 0; transform: scale(1.45); filter: blur(24px); }
}
/* estallido de energia radial desde el boton (posicion via --bx/--by) */
.welcome-burst {
  position: fixed;
  left: var(--bx, 50%); top: var(--by, 50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(93,211,240,.9) 22%, rgba(245,169,184,.55) 48%, rgba(93,211,240,0) 72%);
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  will-change: transform, opacity;
}
.welcome-screen.is-leaving .welcome-burst {
  animation: welBurst .72s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes welBurst {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: .95; }
  65%  { opacity: .5; }
  100% { transform: translate(-50%, -50%) scale(190); opacity: 0; }
}
/* el contenido "sube" en foco mientras la bienvenida se va (solo opacidad: no rompe pins) */
#contenido.page-enter { animation: pageEnter .9s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes pageEnter { from { opacity: 0; } to { opacity: 1; } }

/* Topbar reopen */
.welcome-reopen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  transition: background .2s var(--ease-out), border-color .2s, color .2s, transform .25s var(--ease-out);
}
.welcome-reopen svg { transition: transform .35s var(--ease-out); }
.welcome-reopen:hover,
.welcome-reopen:focus-visible {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  outline: none;
}
.welcome-reopen:hover svg,
.welcome-reopen:focus-visible svg { transform: rotate(-180deg); }
.welcome-reopen-label { line-height: 1; }
@media (max-width: 720px) {
  .welcome-reopen-label { display: none; }
  .welcome-reopen { width: 36px; padding: 0; }
}

@media (max-width: 720px) {
  .welcome-skip { width: 100%; justify-content: space-between; }
  .welcome-content { gap: clamp(16px, 4vw, 28px); }
  .welcome-reopen { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-kicker,
  .wel-letter,
  .welcome-promise,
  .welcome-cta-row,
  .welcome-cta-hint,
  .welcome-meta {
    opacity: 1; transform: none; animation: none;
  }
  .wel-orb, .welcome-map, .welcome-orbs { animation: none; transform: none; }
  .welcome-screen.is-leaving { animation: none; opacity: 0; }
  .welcome-burst { display: none; }
  #contenido.page-enter { animation: none; }
}

/* Welcome v2 — simple */
.welcome-content--simple {
  max-width: 880px;
  text-align: left;
}
.welcome-promise {
  margin: 16px 0 28px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
  max-width: 620px;
  opacity: 0;
  transform: translateY(10px);
  animation: welIn .8s var(--ease-out) forwards;
  animation-delay: .42s;
}
.welcome-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(10px);
  animation: welIn .8s var(--ease-out) forwards;
  animation-delay: .58s;
}
.welcome-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -.01em;
  transition: transform .25s var(--ease-out), background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.welcome-cta--primary {
  background: linear-gradient(135deg, #5DD3F0 0%, #7fe0f5 45%, #bdeafb 100%);
  color: #06122c;
  box-shadow: 0 14px 34px rgba(93,211,240,.4), inset 0 1px 0 rgba(255,255,255,.55);
}
.welcome-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(93,211,240,.6), inset 0 1px 0 rgba(255,255,255,.6);
}
.welcome-cta-arrow { transition: transform .3s var(--ease-out); }
.welcome-cta--primary:hover .welcome-cta-arrow { transform: translateX(5px); }
/* destello que barre el boton primario al pasar el cursor */
.welcome-cta--primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease-out);
  pointer-events: none;
}
.welcome-cta--primary:hover::after { transform: translateX(130%); }
.welcome-cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(10, 20, 48, .9),
    0 0 0 6px var(--cyan);
}
/* en modo alto contraste / forced-colors el box-shadow desaparece: garantiza un outline real */
@media (forced-colors: active) {
  .welcome-cta:focus-visible { outline: 3px solid Highlight; outline-offset: 3px; }
}
.welcome-cta--ghost {
  background: rgba(255,255,255,.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.welcome-cta--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(93,211,240,.22);
}
.welcome-cta-hint {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  opacity: 0;
  transform: translateY(10px);
  animation: welIn .8s var(--ease-out) forwards;
  animation-delay: .72s;
}
.welcome-cta-hint strong { color: rgba(255,255,255,.9); font-weight: 700; }
.welcome-meta {
  margin-top: 24px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  opacity: 0;
  animation: welIn .8s var(--ease-out) forwards;
  animation-delay: 1.0s;
}

/* Hero duration strip */
.hero-duration {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  color: rgba(255,255,255,.84);
  backdrop-filter: blur(6px);
}
.hero-duration strong { color: #fff; font-weight: 800; }

/* ============================== ANA CHARACTER ============================== */
.ana-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 24px 60px rgba(7, 16, 42, .42),
    inset 0 1px 0 rgba(255,255,255,.18);
  isolation: isolate;
}
.ana-portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #0d1937;
  overflow: hidden;
}
.ana-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ana-body {
  padding: 20px 22px 22px;
  color: #fff;
}
.ana-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ana-kicker::before {
  content: "";
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  border-radius: 2px;
}
.ana-name {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.015em;
  background: linear-gradient(120deg, #fff 0%, #d6e6ff 50%, #F5A9B8 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.ana-desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}
.ana-desc em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  font-size: 1.04em;
}
.ana-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.ana-meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-sm);
}
.ana-meta span {
  color: rgba(255,255,255,.58);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 10.5px;
}
.ana-meta strong {
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

/* Inline Ana callout — usable inside any section */
.ana-callout {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  margin: 18px 0;
  background: linear-gradient(115deg, rgba(93,211,240,.12) 0%, rgba(245,169,184,.07) 55%, rgba(93,211,240,.03) 100%);
  border: 1px solid rgba(93,211,240,.22);
  border-radius: var(--r-md);
}
.ana-callout-avatar {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.ana-callout-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--graphite);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ana-callout-text strong { color: var(--ink); font-weight: 800; }
.ana-callout-text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
  font-size: 1.05em;
}
.ana-callout-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.ana-callout-body { display: block; }

/* Dark sections use lighter Ana variant */
.paradox-zone .ana-callout,
.cycle-zone .ana-callout,
.dashboard-zone .ana-callout {
  background: linear-gradient(115deg, rgba(93,211,240,.18) 0%, rgba(245,169,184,.12) 55%, rgba(255,255,255,.03) 100%);
  border-color: rgba(255,255,255,.2);
}
.paradox-zone .ana-callout-text,
.cycle-zone .ana-callout-text {
  color: rgba(255,255,255,.88);
}
.paradox-zone .ana-callout-text strong,
.cycle-zone .ana-callout-text strong { color: #fff; }
.paradox-zone .ana-callout-text em,
.cycle-zone .ana-callout-text em { color: var(--cyan); }
.paradox-zone .ana-callout-label,
.cycle-zone .ana-callout-label { color: var(--cyan); }

@media (max-width: 720px) {
  .ana-card { max-width: 100%; }
  .ana-portrait { aspect-ratio: 3 / 2; }
  .ana-callout { grid-template-columns: 40px 1fr; padding: 12px 14px; }
  .ana-callout-avatar { width: 40px; height: 40px; font-size: 16px; }
  .ana-callout-text { font-size: 13.5px; }
}

/* ============================== CHAPTER MARKERS ============================== */
.chapter-marker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.chapter-marker::before {
  content: "";
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  border-radius: 2px;
}
.chapter-marker em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-size: 1.5em;
  margin-left: 4px;
}
.paradox-zone .chapter-marker,
.cycle-zone .chapter-marker,
.action-zone .chapter-marker { color: var(--cyan); }
.paradox-zone .chapter-marker em,
.cycle-zone .chapter-marker em,
.action-zone .chapter-marker em { color: #fff; }
/* bandas claras translucidas: azul mas oscuro para contraste AA del eyebrow de 11px */
.diagnosis-zone .chapter-marker,
.dashboard-zone .chapter-marker,
.forgem-zone .chapter-marker { color: #1e40af; }

/* ============================== SOUND TOGGLE ============================== */
.sound-toggle {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 95;
  width: 42px; height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  color: var(--muted);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), background .2s, color .2s, border-color .2s;
}
.sound-toggle:hover { transform: translateY(-2px); color: var(--ink); }
.sound-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sound-toggle .sound-on { display: none; }
.sound-toggle .sound-off { display: block; }
.sound-toggle.is-on {
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: var(--navy);
  border-color: transparent;
}
.sound-toggle.is-on .sound-on { display: block; }
.sound-toggle.is-on .sound-off { display: none; }
@media (max-width: 720px) { .sound-toggle { width: 38px; height: 38px; left: 14px; bottom: 14px; } }
/* en movil los CTA son de ancho completo: el flotante de sonido (realce opcional, OFF por defecto) los taparia, asi que se oculta */
@media (max-width: 640px) { .sound-toggle { display: none; } }

/* ============================== AURORA · fondo dinámico interactivo ============================== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #eaf2ff 0%, transparent 55%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3fb 100%);
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  opacity: .72;
  will-change: transform;
}
.aurora-blob--1 {
  width: 52vw; height: 52vw;
  left: -10vw; top: -8vw;
  background: radial-gradient(circle, rgba(93,211,240,.85), transparent 70%);
  animation: auroraDrift1 26s ease-in-out infinite alternate;
}
.aurora-blob--2 {
  width: 58vw; height: 58vw;
  right: -14vw; top: 16vh;
  background: radial-gradient(circle, rgba(245,169,184,.8), transparent 70%);
  animation: auroraDrift2 32s ease-in-out infinite alternate;
}
.aurora-blob--3 {
  width: 46vw; height: 46vw;
  left: 20vw; bottom: -16vw;
  /* azul mas claro y suave: evita arrastrar el contraste del texto bajo la banda */
  background: radial-gradient(circle, rgba(120,160,240,.34), transparent 70%);
  animation: auroraDrift3 38s ease-in-out infinite alternate;
}
.aurora-cursor {
  position: absolute;
  width: 760px; height: 760px;
  left: var(--ax, 50%); top: var(--ay, 38%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93,211,240,.36), rgba(245,169,184,.17) 42%, transparent 68%);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
  will-change: transform, left, top;
}
.aurora.is-tracking .aurora-cursor { opacity: 1; }

@keyframes auroraDrift1 { to { transform: translate(8vw, 10vh) scale(1.12); } }
@keyframes auroraDrift2 { to { transform: translate(-10vw, 6vh) scale(1.08); } }
@keyframes auroraDrift3 { to { transform: translate(6vw, -8vh) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none; }
  .aurora-cursor { display: none; }
}

/* ============================== GIANT STAT ============================== */
.giant-stat {
  margin: 30px 0 6px;
  text-align: center;
}
.giant-stat-num {
  display: block;
  font-size: clamp(76px, 15vw, 168px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.04em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.giant-stat-num .ticker-static { color: var(--red); }
.giant-stat-label {
  display: block;
  max-width: 34ch;
  margin: 10px auto 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.giant-stat-label em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-size: 1.08em;
}

/* ============================== SCROLL PROGRESS + JOURNEY RAIL ============================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  background: rgba(10, 20, 48, .06);
  pointer-events: none;
}
.scroll-progress #scrollProgressBar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 50%, var(--pink));
  will-change: transform;
}

.journey-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.journey-dot {
  position: relative;
  width: 11px; height: 11px;
  border-radius: 999px;
  background: rgba(10, 20, 48, .18);
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .35s;
}
.journey-dot::before {
  /* área de toque WCAG 2.5.8: 24x24 mínimo, manteniendo el punto visual pequeño */
  content: "";
  position: absolute;
  inset: -7px;
}
.journey-dot:hover { transform: scale(1.35); background: rgba(10,20,48,.4); }
.journey-dot.is-active {
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  transform: scale(1.55);
  box-shadow: 0 0 0 4px rgba(93,211,240,.18);
}
.journey-tip {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 5px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.journey-dot:hover .journey-tip,
.journey-dot:focus-visible .journey-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
.journey-dot:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* sobre secciones oscuras el rail inactivo se aclara */
@media (max-width: 1180px) { .journey-rail { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .journey-dot, .journey-tip { transition: none; }
  .scroll-progress #scrollProgressBar { will-change: auto; }
}

/* ============================== FOCO VISIBLE (a11y global) ============================== */
.sim-option:focus-visible,
.sim-start:focus-visible,
.territory-switcher button:focus-visible,
.scenario-card summary:focus-visible,
.reflection-card summary:focus-visible,
.bento-modal-close:focus-visible,
.module-card:focus-visible,
.bento-card:focus-visible,
[data-scroll-link]:focus-visible,
.sim-result-actions .button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}
.sim-q h3:focus-visible,
.sim-result-title:focus-visible { outline: none; }

/* ============================== 100 PERSONAS ============================== */
.cien-zone {
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(245,169,184,.12), transparent 60%),
    linear-gradient(180deg, #0a1430 0%, #0d1937 100%);
  color: #fff;
}
.cien-zone .section-head h2 { color: #fff; }
.cien-zone .section-head h2 em {
  background: linear-gradient(120deg, #fff 0%, #5DD3F0 55%, #F5A9B8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cien-zone .student-note { color: rgba(255,255,255,.78); }
.cien-stage { max-width: 620px; margin: 32px auto 0; }
.cien-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(6px, 1.4vw, 12px);
  margin-bottom: 26px;
}
.cien-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  transform: scale(.85);
  opacity: .5;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out), background .5s, box-shadow .5s;
  transition-delay: calc(var(--i) * 14ms);
}
/* estado revelado */
.cien-grid.is-revealed .cien-dot--dead {
  opacity: .14;
  transform: scale(.62) translateY(6px);
  background: rgba(255,255,255,.3);
}
.cien-grid.is-revealed .cien-dot--alive {
  opacity: 1;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  /* tras revelarse, los vivos laten/flotan en bucle (los muertos quedan quietos) */
  animation: cienTwinkle 3.4s ease-in-out infinite both;
  animation-delay: calc(0.9s + var(--i) * 28ms);
  will-change: transform;
}
@keyframes cienTwinkle {
  0%, 100% {
    transform: scale(1.05) translateY(0);
    box-shadow: 0 0 12px rgba(93,211,240,.55), 0 0 4px rgba(245,169,184,.45);
  }
  50% {
    transform: scale(1.2) translateY(-3px);
    box-shadow: 0 0 24px rgba(93,211,240,.95), 0 0 9px rgba(245,169,184,.75);
  }
}
.cien-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}
.cien-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.cien-legend .cien-dot {
  width: 14px; height: 14px; aspect-ratio: auto; opacity: 1; transform: none; transition: none;
  display: inline-block;
}
.cien-legend .cien-dot--alive { background: linear-gradient(135deg, var(--cyan), var(--pink)); box-shadow: 0 0 8px rgba(93,211,240,.6); }
.cien-legend .cien-dot--dead { background: rgba(255,255,255,.22); }
@media (prefers-reduced-motion: reduce) {
  .cien-dot { transition: none; transition-delay: 0s; }
  .cien-grid.is-revealed .cien-dot--alive { animation: none; transform: scale(1.05); }
}

/* ============================== SIMULADOR ============================== */
.simulator-zone {
  background:
    radial-gradient(70% 60% at 80% 0%, rgba(93,211,240,.16), transparent 55%),
    radial-gradient(70% 60% at 10% 100%, rgba(245,169,184,.14), transparent 55%),
    linear-gradient(180deg, #07102a 0%, #0a1430 55%, #0d1937 100%);
  color: #fff;
}
.simulator-zone .section-head h2 { color: #fff; }
.simulator-zone .section-head h2 em {
  background: linear-gradient(120deg, #fff 0%, #5DD3F0 55%, #F5A9B8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.simulator-zone .chapter-marker { color: var(--cyan); }
.simulator-zone .chapter-marker em { color: #fff; }
.simulator-zone .student-note { color: rgba(255,255,255,.78); }
.simulator-zone .student-note strong { color: #fff; }

.sim-shell {
  max-width: 760px;
  margin: 32px auto 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 28px 70px rgba(7,16,42,.5), inset 0 1px 0 rgba(255,255,255,.14);
  overflow: hidden;
  min-height: 340px;
}

/* intro */
.sim-intro { display: grid; grid-template-columns: 200px 1fr; gap: 8px; align-items: center; padding: 32px 36px; }
.sim-intro-visual { display: grid; place-items: center; }
.sim-gauge {
  width: 150px; height: 150px; border-radius: 999px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(93,211,240,.18), transparent 70%);
  border: 2px solid rgba(93,211,240,.4);
  position: relative;
}
.sim-gauge span { font-size: 52px; font-weight: 900; color: var(--cyan); letter-spacing: -.03em; }
.sim-gauge small { font-size: 24px; }
.sim-intro-body h3 { margin: 0 0 10px; font-size: 24px; font-weight: 800; color: #fff; }
.sim-intro-body p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.8); }
.sim-intro-body p strong { color: #fff; }
.sim-start { background: linear-gradient(135deg, #fff, #e7eefc); color: var(--navy); }
.sim-mini { margin: 12px 0 0 !important; font-size: 12px; color: rgba(255,255,255,.5) !important; }

/* step */
.sim-step { padding: 28px 36px 34px; }
.sim-hud { margin-bottom: 24px; }
.sim-hud-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sim-hud-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.6); text-transform: uppercase; }
.sim-hud-pct { font-size: 26px; font-weight: 900; color: var(--cyan); font-variant-numeric: tabular-nums; }
.sim-bar { height: 12px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.sim-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: background .3s;
}
.sim-bar i.is-up { background: linear-gradient(90deg, var(--cyan), #34d399); }
.sim-bar i.is-down { background: linear-gradient(90deg, var(--orange), var(--red)); }
.sim-timeline { position: relative; height: 18px; margin-top: 12px; }
.sim-timeline-fill { position: absolute; left: 0; top: 8px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--pink)); border-radius: 2px; transition: width .5s var(--ease-out); }
.sim-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(255,255,255,.12); }
.sim-timeline-label { position: absolute; left: 0; top: 0; font-size: 10.5px; font-weight: 700; color: var(--cyan); }
.sim-timeline-end { position: absolute; right: 0; top: 0; font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.45); }

.sim-q-num { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
.sim-q h3 { margin: 8px 0 6px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #fff; line-height: 1.2; }
.sim-q-context { margin: 0 0 20px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.62); font-style: italic; }
.sim-options { display: flex; flex-direction: column; gap: 12px; }
.sim-option {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  text-align: left; padding: 18px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md);
  color: #fff; font-size: 16px; font-weight: 600;
  transition: transform .2s var(--ease-out), background .2s, border-color .2s;
}
.sim-option:hover:not(:disabled) { transform: translateX(4px); background: rgba(255,255,255,.1); border-color: rgba(93,211,240,.5); }
.sim-option-txt { flex: 1; min-width: 0; }
.sim-option-arrow { color: var(--cyan); font-weight: 800; transition: transform .2s; flex-shrink: 0; }
.sim-option:hover:not(:disabled) .sim-option-arrow { transform: translateX(4px); }
.sim-option:disabled { opacity: .45; }
.sim-option.is-good { opacity: 1; border-color: #34d399; background: rgba(52,211,153,.14); }
.sim-option.is-bad { opacity: 1; border-color: var(--red); background: rgba(220,38,38,.14); }
/* glow que sigue el cursor: la superficie mas clickeada deja de ser la mas plana */
.sim-option { position: relative; }
.sim-option > .sim-option-txt, .sim-option > .sim-option-arrow { position: relative; z-index: 1; }
.sim-option::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(160px circle at var(--bx, 50%) var(--by, 50%), rgba(93,211,240,.22), transparent 60%);
  opacity: 0; transition: opacity .25s; mix-blend-mode: screen;
}
@media (hover: hover) { .sim-option:hover:not(:disabled)::after { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sim-option::after { display: none; } }

/* result */
.sim-result { padding: 40px 36px; text-align: center; }
.sim-result-badge {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 999px;
  display: grid; place-items: center; font-size: 38px; font-weight: 900;
}
.sim-result--win .sim-result-badge { background: rgba(52,211,153,.18); border: 2px solid #34d399; color: #34d399; }
.sim-result--lose .sim-result-badge { background: rgba(245,169,184,.16); border: 2px solid var(--pink); color: var(--pink); }
.sim-result-kicker { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.sim-result-title { margin: 8px 0 18px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: #fff; line-height: 1.15; }
.sim-result-gauge { margin-bottom: 16px; }
.sim-result-gauge strong { display: block; font-size: 72px; font-weight: 900; color: var(--cyan); letter-spacing: -.03em; line-height: 1; }
.sim-result-gauge .sim-gauge-num { font-size: 72px; }
.sim-result-gauge small { font-size: 34px; font-weight: 900; }
/* solo la etiqueta (hijo directo), NO el numero que vive dentro de <strong> */
.sim-result-gauge > span { display: block; margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.6); }
.sim-result-msg { max-width: 520px; margin: 0 auto 12px; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.85); }
.sim-result-cohort { margin: 0 auto 24px; font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--pink); }
.sim-result--win .sim-result-cohort { color: var(--cyan); }
.sim-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sim-result-foot { margin: 22px 0 0; font-size: 11.5px; color: rgba(255,255,255,.45); }

/* ===== simulador v2: etapa, feedback, perfil, decision clave, desglose ===== */
.sim-q-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.sim-q-etapa {
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); padding: 3px 10px; border-radius: 999px;
  background: rgba(93,211,240,.14); border: 1px solid rgba(93,211,240,.3);
}
.sim-option.is-neutral { opacity: 1; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.1); }
/* paso de aprendizaje (feedback) */
.sim-fb-body { padding: 24px 6px 6px; text-align: center; }
.sim-fb-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .03em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.sim-fb-badge b { font-variant-numeric: tabular-nums; }
.sim-feedback--good .sim-fb-badge { background: rgba(52,211,153,.16); color: #34d399; border: 1px solid #34d399; }
.sim-feedback--bad .sim-fb-badge { background: rgba(220,38,38,.16); color: #ff8a8a; border: 1px solid var(--red); }
.sim-feedback--neutral .sim-fb-badge { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.sim-fb-choice { margin: 0 0 10px; font-family: var(--font-serif); font-style: italic; font-size: 19px; color: #fff; }
.sim-fb-text { max-width: 460px; margin: 0 auto 22px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.84); }
.sim-continue { margin: 0 auto; }
/* perfil */
.sim-profile { max-width: 480px; margin: 0 auto 18px; padding: 16px 20px; background: rgba(93,211,240,.08); border: 1px solid rgba(93,211,240,.22); border-radius: var(--r-md); }
.sim-profile-label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
.sim-profile-name { display: block; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.sim-profile p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.72); }
/* decision clave */
.sim-tip { max-width: 520px; margin: 0 auto 16px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.82); }
.sim-tip-label { display: inline-block; font-weight: 800; color: var(--pink); margin-right: 4px; }
.sim-tip b { color: #fff; }
/* proximos pasos */
.sim-next { max-width: 520px; margin: 0 auto 18px; text-align: left; padding: 14px 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); }
.sim-next-label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.sim-next ul { margin: 0; padding-left: 18px; }
.sim-next li { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.85); margin-bottom: 6px; }
/* desglose */
.sim-breakdown { max-width: 520px; margin: 0 auto 18px; text-align: left; }
.sim-breakdown summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--cyan); padding: 8px 0; }
.sim-bd-list { list-style: none; margin: 8px 0 0; padding: 0; }
.sim-bd-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.sim-bd-q { color: rgba(255,255,255,.78); }
.sim-bd-d { font-weight: 800; font-variant-numeric: tabular-nums; }
.sim-bd-row.is-pos .sim-bd-d { color: #34d399; }
.sim-bd-row.is-neg .sim-bd-d { color: #ff8a8a; }
.sim-bd-row.is-zero .sim-bd-d { color: rgba(255,255,255,.5); }

/* ===== graficos de apoyo por pregunta ===== */
.sim-viz { margin: 0 0 20px; }
.sim-viz figcaption { margin-top: 7px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.7); }
.sim-viz figcaption b { color: #fff; font-weight: 800; }
.sim-viz-bartrack, .sim-viz-cbar {
  display: block; position: relative; height: 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); overflow: hidden;
}
.sim-viz-barfill {
  display: block; height: 100%; border-radius: inherit; width: 0;
  animation: simBarGrow .9s .15s cubic-bezier(.22,1,.36,1) forwards;
}
.sim-viz-barfill--cyan { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.sim-viz-barfill--warn { background: linear-gradient(90deg, #fbbf24, #f97316); }
.sim-viz-barfill--bad  { background: linear-gradient(90deg, var(--red), #ff8a8a); }
.sim-viz-barfill--good { background: linear-gradient(90deg, #34d399, var(--cyan)); }
.sim-viz-barfill--muted { background: rgba(255,255,255,.34); }
@keyframes simBarGrow { from { width: 0; } to { width: var(--w); } }
/* comparativa: dos filas */
.sim-viz--compare { display: grid; gap: 9px; }
.sim-viz-crow { display: grid; grid-template-columns: minmax(0,1fr) 2.2fr auto; align-items: center; gap: 10px; }
.sim-viz-clabel { font-size: 12px; color: rgba(255,255,255,.72); }
.sim-viz-crow b { font-size: 13px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
/* ranking: escala con punto al final */
.sim-viz-scale { display: block; position: relative; height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(52,211,153,.5), rgba(220,38,38,.6)); }
.sim-viz-dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--red); transform: translate(-50%,-50%); box-shadow: 0 2px 8px rgba(0,0,0,.4); animation: simDotIn .5s .2s both; }
@keyframes simDotIn { from { transform: translate(-50%,-50%) scale(0); } to { transform: translate(-50%,-50%) scale(1); } }
/* cero rotundo */
.sim-viz--zero { display: flex; align-items: center; gap: 14px; }
.sim-viz--zero b { font-size: 46px; font-weight: 900; color: var(--pink); line-height: 1; letter-spacing: -.03em; }
.sim-viz--zero figcaption { margin: 0; }
/* icono conceptual */
.sim-viz--icon { display: flex; align-items: center; gap: 14px; color: var(--cyan); }
.sim-viz--icon figcaption { margin: 0; }

/* ===== transiciones cinematograficas entre pantallas ===== */
.sim-stage { position: relative; }
/* entrada unificada (feedback / resultado / intro) */
.sim-anim-in { animation: simStepIn .55s cubic-bezier(.16,1,.3,1) both; }
@keyframes simStepIn {
  from { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
/* salida: el contenido se eleva, se desenfoca y se disuelve */
.sim-leaving { animation: simStepOut .32s cubic-bezier(.6,0,.78,0) forwards; pointer-events: none; }
@keyframes simStepOut {
  from { opacity: 1; transform: none; filter: blur(0); }
  to   { opacity: 0; transform: translateY(-26px) scale(.975); filter: blur(9px); }
}
/* armado dramatico de la pregunta: cada parte entra en cascada */
.sim-q .sim-timeline  { animation: simRise .5s .02s cubic-bezier(.16,1,.3,1) both; }
.sim-q .sim-q-meta    { animation: simRise .5s .10s cubic-bezier(.16,1,.3,1) both; }
.sim-q h3             { animation: simRise .58s .17s cubic-bezier(.16,1,.3,1) both; }
.sim-q .sim-q-context { animation: simRise .5s .25s cubic-bezier(.16,1,.3,1) both; }
.sim-q .sim-viz       { animation: simRise .5s .32s cubic-bezier(.16,1,.3,1) both; }
.sim-q .sim-option    { animation: simRise .5s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(.40s + var(--i, 0) * .075s); }
@keyframes simRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
/* tras decidir: la opcion elegida se realza y las demas se atenuan */
.sim-q.is-decided .sim-option { animation: none !important; transition: opacity .3s, filter .3s, transform .3s, box-shadow .3s, border-color .3s, background .3s; }
.sim-q.is-decided .sim-option.is-dim { opacity: .3; filter: blur(.6px); transform: scale(.99); }
.sim-q.is-decided .sim-option.is-chosen { opacity: 1; transform: scale(1.015); }
.sim-q.is-decided .sim-option.is-chosen.is-good { box-shadow: 0 0 0 1px #34d399, 0 12px 32px rgba(52,211,153,.28); }
.sim-q.is-decided .sim-option.is-chosen.is-bad { box-shadow: 0 0 0 1px var(--red), 0 12px 32px rgba(220,38,38,.28); }
.sim-q.is-decided .sim-option.is-chosen.is-neutral { box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 12px 32px rgba(0,0,0,.3); }
/* el indice del HUD late cuando cambia */
.sim-hud-pct { display: inline-block; }
.sim-hud-pct.is-bump { animation: simPctBump .6s ease-out; }
@keyframes simPctBump { 0% { transform: scale(1); } 30% { transform: scale(1.18); } 100% { transform: scale(1); } }
/* descargo del simulador en la intro */
.sim-disclaimer { margin: 0 0 16px !important; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.58) !important; padding: 10px 14px; background: rgba(255,255,255,.04); border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  .sim-option:hover:not(:disabled) { transform: none; }
  .sim-anim-in, .sim-leaving { animation: none; }
  .sim-q .sim-timeline, .sim-q .sim-q-meta, .sim-q h3, .sim-q .sim-q-context,
  .sim-q .sim-viz, .sim-q .sim-option { animation: none; }
  .sim-q.is-decided .sim-option { transition: none; }
  .sim-hud-pct.is-bump { animation: none; }
  .sim-viz-barfill { animation: none; width: var(--w); }
  .sim-viz-dot { animation: none; }
}

@media (max-width: 640px) {
  .sim-intro { grid-template-columns: 1fr; text-align: center; gap: 18px; padding: 28px 22px; }
  .sim-intro-visual { order: -1; }
  .sim-start { width: 100%; justify-content: center; }
  .sim-step { padding: 24px 22px 28px; }
  .sim-result { padding: 32px 22px; }
  .sim-result-actions .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sim-option, .sim-option-arrow, .sim-timeline-fill, .sim-bar i { transition: none; }
}

/* ============================== PARA EL GEM ============================== */
.forgem-zone {
  background: linear-gradient(180deg, #f4f8ff 0%, var(--white) 100%);
  border-top: 1px solid var(--line);
}
.forgem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.forgem-card {
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.forgem-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.forgem-list { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 10px; }
.forgem-list li { font-size: 14.5px; line-height: 1.5; color: var(--graphite); }
.forgem-list strong { color: var(--ink); font-weight: 800; }
.forgem-list code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12.5px;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 5px;
}
.forgem-ejes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.forgem-ejes li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.forgem-ejes li span {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}
.forgem-ejes li em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: .95em;
}

/* Share button (hero) */
.hero .share-btn {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
.hero .share-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.4);
  transform: translateY(-1px);
}

/* Source actions (dual buttons in fuente section) */
.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.footer-fine a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================== AUDIENCIA EXPLÍCITA ============================== */
.audience-zone {
  padding-top: 56px;
  padding-bottom: 24px;
}
.audience-banner {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 26px;
  align-items: center;
  padding: 36px 40px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(93,211,240,.14), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(245,169,184,.12), transparent 55%),
    var(--white);
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: var(--r-xl);
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}
.audience-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--blue), var(--pink));
}
.audience-banner-icon {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.6);
  box-shadow: 0 6px 18px rgba(7,16,42,.25);
}
.audience-banner-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.audience-banner-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}
.audience-banner-h {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.2;
  color: var(--ink);
}
.audience-banner-h em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.04em;
  background: linear-gradient(120deg, var(--blue), var(--cyan) 60%, var(--pink));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding: 0 2px;
}
.audience-banner-p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
@media (max-width: 720px) {
  .audience-banner {
    grid-template-columns: 1fr;
    padding: 22px 20px;
    gap: 16px;
  }
  .audience-banner-icon { width: 52px; height: 52px; }
}

/* ============================== DIAGNÓSTICO (matriz problemas + oportunidades) ============================== */
.diagnosis-zone {
  background: linear-gradient(180deg, rgba(246,248,252,.5) 0%, rgba(255,255,255,.46) 100%);
}
.diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.diagnosis-col {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.diagnosis-col--problems { border-top: 3px solid var(--red); }
.diagnosis-col--opps { border-top: 3px solid var(--green); }
.diagnosis-col-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.diagnosis-col-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}
.diagnosis-tag {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.diagnosis-tag--problem {
  background: linear-gradient(90deg, rgba(220, 38, 38, .14), rgba(245, 158, 11, .10));
  color: var(--red);
}
.diagnosis-tag--opp {
  background: linear-gradient(90deg, rgba(5, 150, 105, .14), rgba(93, 211, 240, .10));
  color: var(--green);
}
.diagnosis-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.diagnosis-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}
.diagnosis-num {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.diagnosis-col--problems .diagnosis-num { color: var(--red); border-color: rgba(220, 38, 38, .24); }
.diagnosis-col--opps .diagnosis-num { color: var(--green); border-color: rgba(5, 150, 105, .24); }
.diagnosis-body strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.diagnosis-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--graphite);
}
.diagnosis-body em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-size: 1.08em;
}

/* ============================== CIERRE (premisa final) ============================== */
.closing-zone {
  background: linear-gradient(180deg, #07102a 0%, #0a1430 60%, #0d1937 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 96px;
}
.closing-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(93,211,240,.22), transparent 60%),
    radial-gradient(60% 60% at 80% 70%, rgba(245,169,184,.22), transparent 60%);
  pointer-events: none;
}
.closing-stage {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.closing-zone .chapter-marker {
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--cyan);
}
.closing-zone .chapter-marker::before {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}
.closing-quote {
  position: relative;
  margin: 0;
  padding: 0;
}
.closing-mark {
  position: absolute;
  top: -96px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: clamp(80px, 12vw, 140px);
  line-height: 1;
  color: rgba(93,211,240,.22);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}
.closing-quote { margin-top: 48px; }
.closing-actions {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}
.closing-restart {
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.85);
  background: transparent;
}
.closing-restart:hover,
.closing-restart:focus-visible {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.closing-quote p {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: #fff;
}
.closing-quote p em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.04em;
  background: linear-gradient(120deg, #ffffff 0%, #d6e6ff 35%, var(--cyan) 65%, var(--pink) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding: 0 2px;
}
.closing-quote p strong {
  font-weight: 800;
  color: #fff;
}
.closing-cite {
  margin: 36px auto 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
}

@media (max-width: 720px) {
  .closing-zone { padding-top: 64px; padding-bottom: 64px; }
  .closing-mark { top: -36px; }
}

/* ============================== TU DECISIÓN ESTA SEMANA ============================== */
.action-zone {
  background: linear-gradient(180deg, #0a1430 0%, #11203f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.action-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(93,211,240,.18), transparent 55%),
    radial-gradient(100% 80% at 10% 90%, rgba(245,169,184,.16), transparent 55%);
  pointer-events: none;
}
.action-zone .section-head { position: relative; z-index: 1; }
.action-zone h2 { color: #fff; }
.action-zone h2 em {
  background: linear-gradient(120deg, #fff 0%, #5DD3F0 50%, #F5A9B8 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.action-zone .student-note { color: rgba(255,255,255,.72); }
.action-zone .student-note strong { color: #fff; }
.action-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.action-grid--primary { grid-template-columns: 1fr; max-width: 980px; }
.action-grid--secondary { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 14px; }
.action-card--primary {
  border-color: rgba(93,211,240,.4);
  background: linear-gradient(135deg, rgba(93,211,240,.12), rgba(245,169,184,.08));
  box-shadow: 0 18px 48px rgba(7,16,42,.4), inset 0 1px 0 rgba(255,255,255,.12);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  padding: clamp(26px, 3vw, 38px);
}
.action-card--primary .action-card-main { display: flex; flex-direction: column; gap: 12px; }
.action-card--primary .action-role { color: var(--cyan); }
.action-card--primary h3 { font-size: clamp(26px, 3vw, 34px); }
.action-lead { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.82); }
.action-card-task {
  align-self: stretch;
  display: flex; flex-direction: column; gap: 8px;
  justify-content: center;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(93,211,240,.16), rgba(245,169,184,.10));
  border: 1px solid rgba(93,211,240,.3);
  border-radius: var(--r-md);
}
.action-task-label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 800; color: var(--cyan);
}
.action-card-task p { margin: 0; font-size: 15px; line-height: 1.55; color: #fff; }
.action-card-task em { font-family: var(--font-serif); font-style: italic; color: var(--cyan); }
@media (max-width: 720px) {
  .action-card--primary { grid-template-columns: 1fr; }
}
.action-others-head {
  position: relative;
  z-index: 1;
  margin: 40px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
}
.action-card--sm { padding: 20px; }
.action-card--sm h3 { font-size: 20px; }
.action-card {
  position: relative;
  padding: 24px 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease-out), background .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.action-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.24);
}
.action-card .action-role {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--cyan);
}
.action-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  color: #fff;
}
.action-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
}
.action-card .action-task {
  margin-top: auto;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(93,211,240,.14), rgba(245,169,184,.10));
  border: 1px solid rgba(93,211,240,.28);
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
}
.action-card .action-task strong {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

/* Decisiones: small upgrade — punchier audience cards */
.audience-card {
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s, background .25s;
}
.audience-card:hover {
  transform: translateY(-3px);
}

/* Newsletter status */
.newsletter-status {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.newsletter-status[data-kind="ok"] { color: var(--green); }
.newsletter-status[data-kind="error"] { color: var(--red); }

/* ============================== OVERDRIVE PASS ============================== */

/* Hero: cursor halo + magnetic primary CTA + deeper orb parallax */
.hero { isolation: isolate; }
.hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  left: var(--mx, -300px);
  top: var(--my, -300px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(93,211,240,.16), rgba(245,169,184,.08) 35%, transparent 60%);
  filter: blur(20px);
  z-index: 0;
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  mix-blend-mode: screen;
}
.hero.has-cursor::after { opacity: 1; }
.hero-content, .hero-side { position: relative; z-index: 1; }

.button.primary {
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out), background .25s, border-color .25s, color .25s;
}
.button.primary.is-magnetic {
  will-change: transform;
}

/* Paradoja: glow pulse on the ring at mid scrub */
.paradox-ring {
  filter: drop-shadow(0 0 0 rgba(93,211,240,0));
  transition: filter .5s var(--ease-out);
}
.paradox-ring.is-glowing {
  filter:
    drop-shadow(0 0 14px rgba(93,211,240,.55))
    drop-shadow(0 0 36px rgba(245,169,184,.35));
}

/* Ciclo: motion blur trail on needle while rotating fast */
#cycleNeedle {
  transition: filter .25s var(--ease-out);
  transform-origin: 200px 200px;
}
#cycleNeedle.is-spinning {
  filter:
    drop-shadow(0 0 6px rgba(255,255,255,.65))
    drop-shadow(0 0 18px rgba(93,211,240,.45));
}

/* Bento: tilt 3D leve en hero card */
.bento-grid { perspective: 1400px; }
.bento-card {
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .35s, border-color .25s, background .25s;
}
.bento-card.is-tilting {
  transition: transform .12s linear, box-shadow .35s;
}
.bento-card .bento-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--bx, 50%) var(--by, 50%), rgba(255,255,255,.18), transparent 55%);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  border-radius: inherit;
  mix-blend-mode: screen;
  z-index: 1;
}
.bento-card:hover .bento-shine { opacity: 1; }
.bento-card > * { position: relative; z-index: 2; }

/* ============================== DELIGHT PASS ============================== */

/* Click ripple on primary buttons */
.button.primary { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.45), rgba(255,255,255,0) 60%);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut .6s var(--ease-out) forwards;
  mix-blend-mode: screen;
}
@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}

/* Number ticker reveal bounce */
.funnel-value.is-revealed,
.hero-stats .stat-num.is-revealed {
  animation: tickerPop .55s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes tickerPop {
  0% { transform: scale(.92); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Scenario card content micro-parallax on hover */
.scenario-card {
  transform-style: preserve-3d;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .25s;
}
.scenario-card > * {
  transition: transform .45s var(--ease-out);
}
.scenario-card:hover > *:nth-child(1) { transform: translateZ(0) translateY(-2px); }
.scenario-card:hover > *:nth-child(2) { transform: translateZ(0) translateY(-4px); }
.scenario-card:hover > *:nth-child(3) { transform: translateZ(0) translateY(-6px); }

/* Interactive cursor cue */
[data-scroll-link], .module-card, .bento-card, .scenario-card, .audience-card, .reflection-card {
  cursor: pointer;
}

@media (prefers-reduced-transparency: reduce) {
  .topbar { background: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-overlay { background: var(--navy); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero .stat-card { background: rgba(255,255,255,.16); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .welcome-screen .welcome-map { opacity: .08; }
  .badge.soft { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after { display: none; }
  .paradox-ring.is-glowing,
  #cycleNeedle.is-spinning { filter: none; }
  .bento-card.is-tilting { transition: none; transform: none !important; }
  .bento-card .bento-shine { display: none; }
  .ripple { display: none; }
  .funnel-value.is-revealed,
  .hero-stats .stat-num.is-revealed { animation: none; }
  .scenario-card:hover > * { transform: none !important; }
}

/* ============================ ENGANCHE · VIDA ============================ */
/* Cifra-héroe del hero: el −51% en el primer pliegue (cambio #1 del audit) */
.hero-bignum {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  margin: 22px 0 18px;
  flex-wrap: wrap;
}
.hero-bignum-num {
  font-size: clamp(64px, 11vw, 132px);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.045em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(220, 38, 38, .28);
  flex-shrink: 0;
}
.hero-bignum-num .ticker-static { color: var(--red); }
.hero-bignum-label {
  max-width: 18ch;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.45;
  color: rgba(255, 255, 255, .82);
}
.hero-bignum-label em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  font-size: 1.1em;
}

/* Golpe de impacto: las cifras-clímax tiemblan una vez al asentarse */
.giant-stat-num.is-impact,
.hero-bignum-num.is-impact { animation: impactShake .55s cubic-bezier(.36,.07,.19,.97) 1; }
@keyframes impactShake {
  0%   { transform: translateX(0); }
  12%  { transform: translateX(-5px) skewX(-2deg); text-shadow: 0 0 30px rgba(220,38,38,.7); }
  26%  { transform: translateX(5px) skewX(2deg); }
  40%  { transform: translateX(-4px); }
  55%  { transform: translateX(4px); }
  70%  { transform: translateX(-2px); }
  85%  { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

/* Scroll cue animado al pie del hero */
.scroll-cue { flex-direction: column; gap: 6px; }
.scroll-cue-arrow { animation: cueBounce 1.7s ease-in-out infinite; }
@keyframes cueBounce {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* Avatar de Ana en los callouts: latido de luz suave */
.ana-callout-avatar { animation: anaAvatarGlow 4.5s ease-in-out infinite; }
@keyframes anaAvatarGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(93, 211, 240, 0); }
  50%      { box-shadow: 0 0 16px 1px rgba(93, 211, 240, .42); }
}
.ana-callout--closing { max-width: 560px; margin: 0 auto 26px; }
/* callouts de Ana sobre secciones OSCURAS: texto claro y legible */
.paradox-zone .ana-callout-text,
.cycle-zone .ana-callout-text,
.closing-zone .ana-callout-text { color: rgba(255,255,255,.86); }
.paradox-zone .ana-callout-text strong,
.cycle-zone .ana-callout-text strong,
.closing-zone .ana-callout-text strong { color: #fff; }
.paradox-zone .ana-callout-text em,
.cycle-zone .ana-callout-text em,
.closing-zone .ana-callout-text em { color: var(--cyan); }
.paradox-zone .ana-callout-label,
.cycle-zone .ana-callout-label,
.closing-zone .ana-callout-label { color: var(--cyan); }

/* El 0% rural late cuando entra a viewport */
.urbrural.is-in .ur-zero { animation: zeroPulse 2.6s ease-in-out infinite; }
@keyframes zeroPulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 0 rgba(245, 169, 184, 0); }
  50%      { transform: scale(1.06); text-shadow: 0 0 26px rgba(245, 169, 184, .6); }
}

/* Puente narrativo entre secciones */
.section-bridge {
  max-width: 44ch;
  margin: clamp(30px, 5vw, 56px) auto 0;
  text-align: center;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.4;
  color: var(--muted);
}
.section-bridge em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

/* Celebración del resultado del simulador */
.sim-result { position: relative; }
.sim-result--win .sim-result-badge { animation: badgePop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
.sim-result--lose .sim-result-badge { animation: badgeShake .5s ease-out both; }
@keyframes badgePop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes badgeShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.sim-confetti { position: absolute; top: 64px; left: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.sim-confetti i {
  position: absolute; left: 0; top: 0;
  width: 9px; height: 9px; border-radius: 2px;
  opacity: 0;
  animation: confettiFall 1.25s ease-out forwards;
}
@keyframes confettiFall {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-arrow,
  .ana-callout-avatar,
  .urbrural.is-in .ur-zero { animation: none; }
  .giant-stat-num.is-impact,
  .hero-bignum-num.is-impact { animation: none; }
  .sim-result--win .sim-result-badge,
  .sim-result--lose .sim-result-badge { animation: none; }
  .sim-confetti { display: none; }
  /* funnel cinematografico: sin movimiento, EBO salta a su 22% real */
  .funnel-row.danger.in-view .funnel-bar i { animation: none; width: var(--w); box-shadow: none; }
  .funnel-card,
  .funnel-card.is-climax .funnel-row,
  .funnel-card.is-climax .funnel-foot,
  .funnel-card.is-climax .ana-callout,
  .funnel-card.is-climax .giant-stat-num,
  .funnel-card.is-climax .giant-stat-label { transition: none; }
}

/* ====== FEATURE B: 100 puntos interactivos (#cien) ====== */
.cien-stage { position: relative; }
.cien-dot[role="button"] { cursor: pointer; }
.cien-dot:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 50%;
}
/* punto muerto enfocado: se hace visible para no enfocar un objetivo invisible */
.cien-grid.is-revealed .cien-dot--dead:focus-visible {
  opacity: 1;
  transform: scale(.95);
  background: rgba(255,255,255,.5);
}
/* movil: gap mas ajustado para mantener un area tactil razonable en 10 columnas */
@media (max-width: 560px) {
  .cien-grid { gap: 5px; }
}
/* Destello al usar Encuentrate */
.cien-grid.is-revealed .cien-dot.is-found {
  animation: cienFound 1.1s var(--ease-out) 1;
  outline: 2px solid #fff;
  outline-offset: 3px;
  z-index: 2;
}
@keyframes cienFound {
  0%   { transform: scale(.85); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  35%  { transform: scale(1.8); box-shadow: 0 0 18px 4px rgba(93,211,240,.85), 0 0 8px 2px rgba(245,169,184,.7); }
  100% { transform: scale(1.15); box-shadow: 0 0 10px 1px rgba(93,211,240,.45); }
}
/* Tooltip flotante */
.cien-tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 10px));
  max-width: min(240px, 78vw);
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(8, 16, 38, .96);
  border: 1px solid rgba(93,211,240,.35);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: opacity .18s var(--ease-out);
}
.cien-tip[data-state="alive"] { border-color: rgba(93,211,240,.6); }
.cien-tip[data-state="dead"]  { border-color: rgba(245,169,184,.5); }
.cien-tip.is-visible { opacity: 1; }
.cien-tip::after {
  content: ""; position: absolute; left: calc(50% + var(--arrow-x, 0px)); bottom: -6px;
  width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
  background: rgba(8, 16, 38, .96);
  border-right: 1px solid rgba(93,211,240,.35);
  border-bottom: 1px solid rgba(93,211,240,.35);
}
/* Controles */
.cien-controls {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 14px 18px;
  margin: 4px 0 14px;
}
.cien-find-btn {
  appearance: none; cursor: pointer;
  border: 1px solid rgba(93,211,240,.55);
  background: linear-gradient(135deg, rgba(93,211,240,.18), rgba(245,169,184,.18));
  color: #fff;
  font: inherit; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 999px;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s;
}
.cien-find-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(93,211,240,.3); }
.cien-find-btn:active { transform: translateY(0); }
.cien-find-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.cien-discovered {
  margin: 0; font-size: 13.5px; font-weight: 600;
  color: rgba(255,255,255,.85);
}
/* Relato */
.cien-story {
  min-height: 2.6em;
  margin: 0 auto 18px;
  max-width: 520px;
  text-align: center;
  font-size: 14.5px; line-height: 1.45;
  color: rgba(255,255,255,.9);
}
.cien-story-hint { color: rgba(255,255,255,.55); font-style: italic; }
.cien-story-tag {
  display: inline-block; margin-right: 6px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.cien-story-tag--alive { background: linear-gradient(135deg, var(--cyan), var(--pink)); color: #07122b; }
.cien-story-tag--dead  { background: rgba(255,255,255,.16); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .cien-tip { transition: none; }
  .cien-find-btn { transition: none; }
  .cien-find-btn:hover { transform: none; }
  .cien-grid.is-revealed .cien-dot.is-found {
    animation: none;
    transform: scale(1.15);
    outline: 2px solid #fff; outline-offset: 3px;
  }
}

/* ===================== FEATURE C: slider "qué pasa si" en #paradoja ===================== */
.paradox-slider {
  width: min(560px, 92vw);
  margin: 10px auto 0;
  display: grid;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
}
.paradox-slider.is-ready {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.paradox-slider-q {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--cyan);
  letter-spacing: -.01em;
}
.paradox-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.paradox-slider-cap {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  min-width: 1.6em;
  text-align: center;
}
.paradox-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  outline: none;
  cursor: pointer;
}
.paradox-range:disabled {
  opacity: .45;
  cursor: default;
}
.paradox-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cyan);
  box-shadow: 0 2px 10px rgba(10,20,48,.5);
  cursor: pointer;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.paradox-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cyan);
  box-shadow: 0 2px 10px rgba(10,20,48,.5);
  cursor: pointer;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.paradox-range:hover:not(:disabled)::-webkit-slider-thumb,
.paradox-range:active:not(:disabled)::-webkit-slider-thumb { transform: scale(1.12); }
.paradox-range:hover:not(:disabled)::-moz-range-thumb,
.paradox-range:active:not(:disabled)::-moz-range-thumb { transform: scale(1.12); }
.paradox-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(93,211,240,.4), 0 2px 10px rgba(10,20,48,.5);
}
.paradox-range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(93,211,240,.4), 0 2px 10px rgba(10,20,48,.5);
}
.paradox-slider-out {
  min-height: 2.6em;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.4;
}
.paradox-slider-out strong { color: var(--cyan); font-weight: 800; }
.paradox-slider-out .gain { color: var(--pink); font-weight: 800; }
/* arco: transición suave SOLO al deslizar (no durante la animación de entrada del pin) */
#paradoxArc.is-sliding {
  transition: stroke-dashoffset .18s var(--ease-out);
}
/* el número central pasa a cyan cuando muestra un escenario hipotético (no el 22 real) */
#paradoxBig.is-whatif { background-image: linear-gradient(135deg, var(--cyan), var(--blue)); filter: drop-shadow(0 0 14px rgba(93,211,240,.4)); }
@media (prefers-reduced-motion: reduce) {
  .paradox-slider {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .paradox-range::-webkit-slider-thumb,
  .paradox-range::-moz-range-thumb { transition: none; }
  #paradoxArc.is-sliding { transition: none; }
}

/* ===================== Transiciones de escena cinematograficas ===================== */
/* Cada seccion entra con un estilo distinto (data-scene). El estado de reposo es comun
   (visible, sin transform/clip); cada estilo define solo su estado de entrada (.is-armed). */
/* estado de reposo (revelado): [data-scene] sube la especificidad por encima de las reglas por-estilo */
.scene[data-scene].is-armed.is-scene-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  filter: none;
  transition:
    transform 1.15s cubic-bezier(.16, 1, .3, 1),
    opacity .9s ease-out,
    clip-path 1.2s cubic-bezier(.16, 1, .3, 1),
    filter .9s ease-out;
}
/* rise: sube y crece */
.scene[data-scene="rise"].is-armed { opacity: 0; transform: translateY(96px) scale(.94); transform-origin: 50% 0; }
/* zoom/dolly: la camara empuja hacia la seccion */
.scene[data-scene="zoom"].is-armed { opacity: 0; transform: scale(.84) translateY(24px); }
/* wipe-up: cortina que sube destapando la seccion */
.scene[data-scene="wipe-up"].is-armed { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(28px); }
/* wipe-side: barrido de izquierda a derecha */
.scene[data-scene="wipe-side"].is-armed { opacity: 0; clip-path: inset(0 100% 0 0); }
/* tilt: despliegue 3D, la seccion se levanta hacia el espectador */
.scene[data-scene="tilt"].is-armed { opacity: 0; transform: perspective(1600px) rotateX(14deg) translateY(72px) scale(.97); transform-origin: 50% 100%; }
/* focus: entra desenfocada y enfoca (cierre cinematografico) */
.scene[data-scene="focus"].is-armed { opacity: 0; filter: blur(18px); transform: scale(.985); }
@media (prefers-reduced-motion: reduce) {
  .scene[data-scene].is-armed,
  .scene[data-scene].is-armed.is-scene-in { opacity: 1; transform: none; clip-path: none; filter: none; transition: none; }
}
