/* ==========================================================
   NUMOGRAMA – STYLES.CSS
   ----------------------------------------------------------
   ÍNDICE
   0. Variables y reset
   1. Fondos de grilla
   2. Layout base y elementos comunes
   3. Landing (portada)
   4. Origen / Identidad (mano superior)
   5. Identidad detalle (mano media)
   6. Método–Propósito (mano inferior)
   7. Hiperstición (track horizontal azul)
      7.1 Hero
      7.2 Consola / módulos
      7.3 Mecanismo + caligrama
      7.4 Técnica CCRU + transición azul→blanco
      7.5 ¿Ha sucedido en realidad? (panel blanco)
      7.6 Responsive Hiperstición
   8. Secciones horizontales (comportamiento genérico)
   9. Realidad (primera pantalla blanca) + COVID Scrollytelling
   11. Pandemonio (intro + sistema + demonios + horizontal)
   12. Guerra Lemuriana (slide estático)
   13. Atlantes / Lemurians en COVID (slide estático + viz)
   14. Transiciones de grilla (azul↔blanco, blanco↔azul, azul→más oscuro)
   15. Numograma final (mapa + casos + huella)
   16. Índice lateral (puntos de navegación)
   17. Responsive global (≤ 900px / ≤ 600px)
   18. Fondos ilustrados (GIFs / SVGs de fondo)
   19. Mapa de huella (texto + nodos clicables)
   20. Animaciones on-scroll (fade-in-up)
   21. Snap vertical móvil
   ========================================================== */


/* ==========================================================
   0. VARIABLES Y RESET
   ========================================================== */

/* -------------------------
   VARIABLES BÁSICAS
-------------------------- */

:root {
  --blue-deep: #0042b7;
  --blue-deep-soft: #0b4fd0;
  --blue-deep-darker: #002f88;

  --blue-line: rgba(255, 255, 255, 0.09);
  --blue-strong-line: rgba(255, 255, 255, 0.18);

  --white-bg: #fdfdfd;
  --white-line: rgba(0, 66, 183, 0.09);
  --white-strong-line: rgba(0, 66, 183, 0.16);

  --text-blue: #e8f1ff;
  --text-blue-strong: #ffffff;
  --text-blue-soft: #c7d8ff;
  --text-dark: #0b1c3a;

  --grid-size: 32px;

  --scale-title: 1.8;     /* Títulos */
  --scale-subtitle: 1.5;  /* Subtítulos */
  --scale-body: 1.2;      /* Párrafos */
  --scale-small: 1.1;     /* Notas, labels, bullets */
  --scale-spacing: 1.1;   /* Padding y márgenes generales */
  --scale-sections: 1.1;  /* Altura mínima de las secciones */
  --line-height-body: 1.7;

  --screen-padding-y: 64px;

  /* Colores base para interpolación scroll */
  --bg-white: #fdfdfd;
  --bg-blue-mid: #0f5ad9;
  --bg-blue-deep: #00398f;

  /* Grid sobre fondo claro → grid azul suave */
  --grid-on-white: rgba(0, 66, 183, 0.16);

  /* Grid sobre fondo azul → líneas blancas con soft glow */
  --grid-on-blue: rgba(255, 255, 255, 0.18);

  /* Progreso global de la transición (JS la actualizará de 0 a 1) */
  --bg-progress: 0;

  /* Offset X para que la grid se sincronice con tu scroll horizontal */
  --grid-offset-x: 0px;

  /* Transiciones rápidas genéricas */
  --transition-fast: 0.22s ease-out;
}

/* Reset muy básico */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Space Mono", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text-blue-strong);
  background-color: var(--blue-deep);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

main {
  width: 100%;
}


/* ==========================================================
   1. FONDOS DE GRILLA
   ========================================================== */

.blue-grid {
  background-color: var(--blue-deep);
  background-image:
    linear-gradient(var(--blue-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  position: relative;
}

.blue-grid-dark {
  background-color: var(--blue-deep-darker);
  background-image:
    linear-gradient(var(--blue-strong-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-strong-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  position: relative;
  color: var(--text-blue-strong);
}

.white-grid {
  background-color: var(--white-bg);
  background-image:
    linear-gradient(var(--white-strong-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-strong-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  color: var(--text-dark);
}


/* ==========================================================
   2. LAYOUT BASE Y ELEMENTOS COMUNES
   ========================================================== */

/* Secciones generales */

.screen {
  position: relative;
  min-height: calc(100vh * var(--scale-sections));
  display: flex;
  align-items: stretch;
}

.screen-inner {
  position: relative;
  width: min(1200px, 100% - 40px);
  margin: 0 auto;
  padding: calc(20px * var(--scale-spacing)) 0;
}

/* Sello pequeño “El Numograma…” */

.corner-label {
  position: absolute;
  top: 48px;
  left: 0;
  text-transform: none;
  font-size: calc(11px * var(--scale-small));
  letter-spacing: 0.2em;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 12px;
}

.white-grid .corner-label {
  border-color: rgba(0, 66, 183, 0.4);
  color: var(--text-dark);
}

.corner-small {
  display: block;
}

/* Mano genérica */

.hand-block {
  position: relative;
}

.hand-image {
  max-width: 380px;
  width: 70vw;
}

.hand-image.soft {
  opacity: 0.5;
}

/* Títulos comunes */

.section-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: calc(clamp(40px, 5vw, 56px) * var(--scale-title));
  letter-spacing: 0.12em;
  text-transform: none;
}

/* Dots (paginadores internos antiguos) */

.dots-vertical {
  position: absolute;
  right: 32px;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dots-horizontal {
  position: absolute;
  bottom: 72px;
  right: 120px;
  display: flex;
  gap: 8px;
}

.dots-vertical span,
.dots-horizontal span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-blue-strong);
}


/* ==========================================================
   3. LANDING (PORTADA)
   ========================================================== */

.landing-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  z-index: 2; /* asegúrate de que esté sobre el fondo animado */
}

.title-main {
  text-align: center;
  font-family: "Space Grotesk", system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0.35em;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.6;

  /* Animación de aparición */
  opacity: 0;
  transform: translateY(10px);
  animation: landingFadeIn 0.9s ease-out 0.3s forwards;
}

.title-main span {
  display: block;
}
/* =====================
   LANDING – HERO TITLE
   ===================== */

#landing {
  position: relative;
}

/* Este contenedor se sale de la grilla y ocupa TODO el ancho */
.landing-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);  /* truco para romper el max-width */
  height: 100vh;                   /* ocupa toda la pantalla */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Caja del texto animado */
.marquee {
  position: relative;
  width: 100%;
  height: 2.5em; /* NO crece mucho en alto */
  font-size: clamp(3rem, 9vw, 7rem);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #ffffff;
}

/* Texto que se mueve */
.marquee_text {
  position: absolute;
  white-space: nowrap;
  min-width: 200%;
  animation: marquee-move 25s linear infinite;
}

@keyframes marquee-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Glow suave en los bordes, PEGADO a los lados */
.marquee_blur {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: transparent;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 30%),
    linear-gradient(to left,  rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 30%);
  background-repeat: no-repeat;
  background-size: 5vw 100%, 5vw 100%;
  background-position: left top, right top;
  filter: contrast(8);
  pointer-events: none;
}

.marquee_blur .marquee_text {
  filter: blur(0.08em);
  opacity: 0.6;
}

/* Capa limpia encima para leer bien el texto */
.marquee_clear {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}


/* ==========================================================
   4. ORIGEN / IDENTIDAD – NUEVO LAYOUT
   ========================================================== */

#origen-identidad .screen-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.identity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: calc(40px * var(--scale-spacing));
  align-items: flex-start;
  margin-top: calc(80px * var(--scale-spacing));
}

/* Encabezado: título y bajada */

.identity-header-kicker {
  font-size: calc(11px * var(--scale-small));
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
}

.identity-title-main {
  margin: 10px 0 12px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: calc(clamp(28px, 3.2vw, 34px) * var(--scale-title));
  letter-spacing: 0.1em;
  text-transform: none;
}

.identity-lead {
  font-size: calc(14px * var(--scale-body));
  line-height: var(--line-height-body);
  max-width: 520px;
  margin: 0;
}

/* Bullets con nombres */

.identity-bullets {
  margin: 28px 0 0;
  padding-left: 0;
  list-style: none;
  font-size: calc(12px * var(--scale-body));
  line-height: var(--line-height-body);
}

.identity-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.identity-bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--text-blue-strong);
}

/* Links de nombres propios */

.identity-bullets a,
.identity-main a {
  color: var(--text-blue-strong);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 1px;
}

.identity-bullets a:hover,
.identity-main a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Tarjeta lateral tipo ficha técnica */

.identity-meta-card {
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 16px 18px 18px;
  font-size: calc(11px * var(--scale-small));
  line-height: var(--line-height-body);
  max-width: 320px;
  justify-self: end;
}

.identity-meta-label {
  font-size: calc(10px * var(--scale-small));
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
}

.identity-meta-item {
  margin-top: 6px;
}

.identity-meta-item strong {
  display: block;
}

/* Step hover */

.identity-step {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.identity-step:hover {
  transform: translateX(4px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Cita destacada */

.identity-quote {
  margin-top: 22px;
  font-size: calc(11px * var(--scale-small));
  line-height: var(--line-height-body);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  padding-left: 12px;
  max-width: 360px;
  opacity: 0.9;
}


/* ==========================================================
   5. IDENTIDAD DETALLE – VIRTUAL FUTURES
   ========================================================== */

#identidad-detalle .screen-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.identity-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: calc(40px * var(--scale-spacing));
  margin-top: calc(78px * var(--scale-spacing));
}

/* Pequeño título */

.identity-detail-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: calc(clamp(22px, 2.5vw, 26px) * var(--scale-title));
  letter-spacing: 0.16em;
  margin: 0 0 16px;
}

/* Texto principal */

.identity-main {
  font-size: calc(12px * var(--scale-body));
  line-height: var(--line-height-body);
  max-width: 560px;
}

/* Pasos / cápsulas a la derecha */

.identity-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.identity-step {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.07);
  padding: 12px 14px 14px;
  font-size: calc(11px * var(--scale-small));
  line-height: var(--line-height-body);
  position: relative;
}

.identity-step-tag {
  font-size: calc(10px * var(--scale-small));
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.9;
}

.identity-step-number {
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: calc(10px * var(--scale-small));
  opacity: 0.6;
}


/* ==========================================================
   6. MÉTODO–PROPÓSITO – TEORÍA-FICCIÓN
   ========================================================== */

#metodo .screen-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.method-layout {
  margin-top: calc(80px * var(--scale-spacing));
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: calc(40px * var(--scale-spacing));
}

/* Card principal */

.method-card {
  background: rgba(6, 22, 70, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 18px 20px 20px;
}

.method-header {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
}

.method-tag {
  font-size: calc(11px * var(--scale-small));
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.method-title {
  margin: 10px 0 12px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: calc(clamp(20px, 2.4vw, 24px) * var(--scale-title));
  letter-spacing: 0.12em;
  text-transform: none;
}

.method-body {
  font-size: calc(12px * var(--scale-body));
  line-height: var(--line-height-body);
}

.method-body p {
  margin: 0 0 12px;
}

/* Cita “contaminar” */

.method-quote {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  font-size: calc(11px * var(--scale-small));
  line-height: var(--line-height-body);
}

/* Columna lateral: resumen de teoría-ficción */

.method-side {
  font-size: calc(12px * var(--scale-small));
  line-height: var(--line-height-body);
  max-width: 520px;
  align-self: flex-start;
}

.method-side-label {
  font-size: calc(12px * var(--scale-small));
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.85;
}


/* ==========================================================
   7. HIPERSTICIÓN – TRACK HORIZONTAL AZUL
   ========================================================== */

/* 7.1 PANEL 1 · HERO (TÍTULO GIGANTE) */

.panel-hiper-def .panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

.hiper-hero-inner {
  width: min(1200px, 100% - 64px);
  margin: 0 auto;
  padding: 64px 0;
}

.hiper-hero-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hiper-kicker {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hiper-title-main {
  margin: 8px 0 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 42px);
  letter-spacing: 0.16em;
  text-transform: none;
}

.hiper-title-giant {
  font-size: clamp(62px, 8vw, 120px);
  letter-spacing: 0.30em;
  text-transform: uppercase;
}

.hiper-hero-lead {
  margin-top: 18px;
  max-width: 420px;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.85;
}

/* Slot para animaciones en el hero */

.hiper-anim-slot {
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  padding: 18px 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: center;
  opacity: 0.8;
}

.hiper-anim-slot-small {
  margin-top: 18px;
  font-size: 10px;
}

.hiper-anim-slot-line {
  margin-top: 24px;
}


/* 7.2 PANEL 2 · MÓDULOS TIPO CONSOLA */

.panel-hiper-console .panel-inner {
  width: min(1200px, 100% - 64px);
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
  justify-items: flex-start;
}

.hiper-console-card {
  position: relative;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  box-shadow: none;
  padding: 18px 20px 20px;
  overflow: hidden;
}

/* el cuadro de DEFINICIÓN va más estrecho */
.hiper-console-card--narrow {
  max-width: 430px;
}

/* encabezado tipo barra de comando */

.hiper-console-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: -18px -20px 14px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.4)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hiper-console-play {
  font-size: 9px;
  transform: translateY(-0.5px);
}

.hiper-console-title {
  opacity: 0.9;
}

/* cuerpo de texto */

.hiper-console-body {
  font-size: 14px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hiper-console-body p {
  margin: 0 0 10px;
}

/* cita CCRU dentro del cuadro */

.hiper-def-quote {
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  padding-left: 10px;
  margin: 8px 0 4px;
  font-size: 11px;
  line-height: 1.7;
}

.hiper-def-quote-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 4px;
}

.hiper-def-ref {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.8;
}

/* caligrama */

.hiper-steps-caligrama {
  font-size: 11px;
  line-height: 1.7;
  max-width: 520px;
  font-family: "Space Mono", ui-monospace, monospace;
  margin-top: 8px;
}

.hiper-step-line {
  margin: 0.18rem 0;
  white-space: nowrap;
}

.hiper-step-label {
  font-weight: 700;
}

.hiper-steps-note {
  margin-top: 0.9rem;
  font-size: 10px;
  max-width: 360px;
  opacity: 0.9;
}


/* 7.3 PANEL 3 · MECANISMO + CALIGRAMA */

.panel-hiper-mecanismo .panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: flex-start;
  width: min(1200px, 100% - 64px);
  margin: 0 auto;
  padding: 64px 0;
}

.hiper-mec-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.hiper-mec-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

.hiper-mec-text {
  font-size: 16px;
  line-height: 1.8;
}

.hiper-mec-text p {
  margin: 0 0 12px;
}

/* escalera tipo banda transportadora */

.hiper-step-line:nth-child(1) { margin-left: 0rem; }
.hiper-step-line:nth-child(2) { margin-left: 2.2rem; }
.hiper-step-line:nth-child(3) { margin-left: 4.4rem; }
.hiper-step-line:nth-child(4) { margin-left: 6.6rem; }


/* 7.4 PANEL 4 · TÉCNICA CCRU + EJEMPLO COVID */

.panel-hiper-tecnica {
  position: relative;
  overflow: hidden;
}

.panel-hiper-tecnica .panel-inner {
  width: min(1200px, 100% - 64px);
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: flex-start;
}

/* capa que aclara la cuadrícula azul hasta casi blanco */

.panel-hiper-tecnica::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.00) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.45) 75%,
    rgba(255, 255, 255, 0.90) 100%
  );
}

/* el contenido va por encima del velo */

.panel-hiper-tecnica > * {
  position: relative;
  z-index: 1;
}

.hiper-mec-quote-text {
  margin: 8px 0 10px;
  font-style: italic;
  font-size: 11px;
}

.hiper-mec-card {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.12);
  padding: 16px 18px 18px;
  font-size: 14px;
  line-height: 1.8;
  border-radius: 18px;
}

.hiper-card-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.85;
}


/* 7.5 PANEL 5 · ¿Ha sucedido en realidad? (panel blanco) */

.panel-hiper-covid-question {
  position: relative;
  background-color: var(--white-bg);
  background-image:
    linear-gradient(var(--white-strong-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-strong-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  color: var(--text-dark);
}

/* velo blanco que borra la línea de la unión con el panel azul */

.panel-hiper-covid-question::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.90) 0%,
    rgba(255, 255, 255, 0.45) 20%,
    rgba(255, 255, 255, 0.10) 45%,
    rgba(255, 255, 255, 0.00) 65%
  );
}

/* contenido por encima del velo */

.panel-hiper-covid-question > * {
  position: relative;
  z-index: 1;
}

.hiper-realidad-inner {
  width: min(1200px, 100% - 64px);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.realidad-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}

.realidad-question-inline {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(32px, 4.2vw, 46px);
  letter-spacing: 0.16em;
  text-transform: none;
  color: #ffffff;
}

.realidad-answer-inline {
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
  color: #0b1c3a;
  max-width: 220px;
}


/* 7.6 RESPONSIVE HIPERSTICIÓN */

@media (max-width: 900px) {
  .panel-hiper-def .panel-inner,
  .panel-hiper-console .panel-inner,
  .panel-hiper-mecanismo .panel-inner,
  .panel-hiper-tecnica .panel-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }

  .hiper-steps-caligrama {
    max-width: 100%;
  }

  .realidad-header-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .realidad-answer-inline {
    text-align: left;
  }
}

@media (max-width: 600px) {

  .panel-hiper-def .panel-inner {
    justify-content: center;
    text-align: center;
  }

  .hiper-hero-inner {
    padding-inline: 32px;
  }

  .panel-hiper-mecanismo .panel-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .panel-hiper-mecanismo::after {
    content: "ARITMÉTICA";
    position: absolute;
    left: 5vw;
    bottom: 8vh;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 10vw;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.06;
    pointer-events: none;
  }

  .hiper-mec-left,
  .hiper-mec-card {
    max-width: 100%;
  }

  .hiper-step-line:nth-child(1) { margin-left: 0rem; }
  .hiper-step-line:nth-child(2) { margin-left: 1.4rem; }
  .hiper-step-line:nth-child(3) { margin-left: 2.8rem; }
  .hiper-step-line:nth-child(4) { margin-left: 4.2rem; }
}


/* ==========================================================
   8. SECCIONES HORIZONTALES (GENÉRICO)
   ========================================================== */

.horizontal-section {
  position: relative;
  width: 100%;
  background-attachment: fixed;
}

.horizontal-track {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: stretch;
  will-change: transform;
}

/* panel de 100% de ancho */

.horizontal-panel {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
}

.panel-inner {
  width: min(1200px, 100% - 64px);
  margin: 0 auto;
  padding: 36px 0;
  height: 100%;
  position: relative;
}

.realidad-img {
  width: 50%;         /* controlas tamaño */
  max-width: 900px;   /* evita que explote */
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.6));
  margin-left: 10px;  /* separarlo del texto */
  opacity: 0.60;
}

/* ==========================================================
   9. REALIDAD (PRIMERA PANTALLA BLANCA)
   ========================================================== */

.realidad-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.realidad-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.realidad-question {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 60px);
  letter-spacing: 0.14em;
  text-transform: none;
  color: #1050c8;
}

.realidad-answer {
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
}

/* Tarjetas de evento (fechas, noticias, etc.) */

.event-card {
  margin-top: 64px;
  background: rgba(16, 80, 200, 0.08);
  border: 1px solid rgba(16, 80, 200, 0.4);
  padding: 18px 20px;
  max-width: 520px;
}

.event-date {
  font-weight: 700;
  color: #1050c8;
  display: block;
  margin-bottom: 6px;
}

.event-text {
  font-size: 12px;
  line-height: 1.7;
}


/* ==========================================================
   10. COVID – SCROLLYTELLING (FIGURA STICKY + PASOS)
   ========================================================== */

.scrolly-covid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 72px;
  width: min(1400px, 100% - 40px);
  margin: 0 auto;
  padding: 120px 0;
  align-items: flex-start;
}

/* Figura sticky */

.covid-figure {
  position: sticky;
  top: 10vh;
  height: 70vh;
  border: 1px solid rgba(0, 66, 183, 0.35);
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

/* Cada “escena” dentro de la figura */

.covid-figure-frame {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.covid-figure-frame.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

/* Burbujas de texto */

.covid-bubble {
  position: relative;
  padding: 16px 18px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.6;
  background: rgba(232, 241, 255, 0.9);
}

.covid-bubble--left {
  grid-column: 1 / span 7;
  grid-row: 2;
}

.covid-bubble--right {
  grid-column: 6 / span 7;
  grid-row: 2;
}

.covid-bubble--top {
  grid-column: 2 / span 10;
  grid-row: 1;
}

.covid-bubble--bottom {
  grid-column: 3 / span 8;
  grid-row: 1;
}

/* Tarjeta para imagen de escena */

.covid-card-image {
  grid-column: 8 / span 5;
  grid-row: 2;
  border: 1px solid rgba(0, 66, 183, 0.65);
  background: #eaebec;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8f1ff;
}

/* Visualización Observable Covid */

.covid-viz-embed {
  grid-column: 1 / span 12;
  grid-row: 2;
  background: #f8f9fa;
  padding: 8px;
}

.covid-viz-embed::before {
  display: block;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0042b7;
  opacity: 0.7;
  margin-bottom: 4px;
}

.covid-viz-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Variante más grande para estado final */

.covid-viz-embed--full {
  grid-column: 1 / span 9;
  grid-row: 2;
}

/* Columna de pasos */

.scroll-area {
  display: flex;
  flex-direction: column;
  gap: 100vh;
  padding-top: 45vh;
  padding-bottom: 40vh;
}

.step-covid {
  border: 1px solid rgba(0, 66, 183, 0.35);
  background: rgba(255, 255, 255, 0.92);
  padding: 26px 28px;
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.28;
  transform: translateY(26px);
  transition:
    opacity 0.4s ease,
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.step-covid.is-active {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 14px 36px rgba(245, 246, 247, 0.21);
}

/* Responsive COVID */

@media (max-width: 900px) {
  .scrolly-covid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 96px 0;
  }

  .covid-figure {
    top: 6vh;
    height: 56vh;
  }

  .covid-figure-frame {
    inset: 16px;
  }

  .covid-bubble--left,
  .covid-bubble--right,
  .covid-bubble--top,
  .covid-bubble--bottom,
  .covid-viz-embed--full {
    grid-column: 1 / span 12;
  }
}


/* ==========================================================
   11. PANDEMONIO (INTRO VERTICAL)
   ========================================================== */

/* Fusión blanco → azul entre secciones */

/* Fusión blanco → azul entre secciones */

/* Fusión blanco → azul entre secciones (con grilla) */

.pandemonium-intro-fade {
  position: relative;
  /* solapa un poco la sección blanca anterior */
  margin-top: -96px;
  padding-top: calc(var(--screen-padding-y) + 96px);
}

.pandemonium-intro-fade::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 260px;              /* altura del degradé: súbelo si la quieres más larga */
  pointer-events: none;
  z-index: 0;

  /* Capa 1: degradé de blanco opaco a transparente */
  /* Capa 2 y 3: grilla blanca por encima */
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1.0) 0%,
      rgba(255, 255, 255, 0.95) 25%,
      rgba(255, 255, 255, 0.70) 55%,
      rgba(255, 255, 255, 0.0) 100%
    ),
    linear-gradient(var(--white-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-line) 1px, transparent 1px);

  background-size:
    100% 260px,
    var(--grid-size) var(--grid-size),
    var(--grid-size) var(--grid-size);
  background-repeat: no-repeat, repeat, repeat;
}

/* contenido encima del degradé (esto lo dejas como ya estaba) */
.pandemonio-intro-inner,
.pandemonio-intro-inner * {
  position: relative;
  z-index: 1;
}


/* contenido encima del degradé */

.pandemonio-intro-inner,
.pandemonio-intro-inner * {
  position: relative;
  z-index: 1;
}

.pandemonio-intro-inner .corner-label {
  margin-bottom: 2rem;
}

/* HERO CENTRADO */

.pandemonium-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}

.pand-hero-kicker {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.4rem;
}

.pand-hero-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.pand-hero-subtitle {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

/* CUERPO: TEXTO + TARJETAS */

.pandemonium-body {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 3.5rem;
}

.pand-main-text {
  max-width: 46rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.pand-section-label {
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.9rem;
}

.pand-main-text p + p {
  margin-top: 0.8rem;
}

.pand-main-text em {
  font-style: italic;
}

.pand-main-text strong {
  font-weight: 600;
}

/* Tarjetas laterales */

.pand-side-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pand-side-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 1rem 1.2rem;
  background: rgba(3, 20, 70, 0.9);
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.pand-side-card.soft {
  background: rgba(3, 20, 70, 0.7);
}

.pand-side-card h3 {
  margin: 0 0 0.3rem;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.9);
}

.pand-side-card p {
  margin: 0;
}

.pand-side-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.6);
}


/* PANDEMONIUM · BLOQUE SISTEMA + VISOR */

.pand-side-card.intro-card h2 {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
}

.pand-side-card.intro-card p:first-child {
  font-weight: 600;
  opacity: 0.95;
}

.pand-system-block {
  margin-top: 3.5rem;
}

.pand-system-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: stretch;
}

/* Columna izquierda: apila side-cards */

.pand-system-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pand-system-kicker {
  display: block;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
}

.pand-system-title {
  margin: 0.4rem 0 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pand-system-body {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.88rem;
  line-height: 1.8;
}

.pand-system-body p {
  margin: 0 0 0.8rem;
}

.pand-system-body p:last-child {
  margin-bottom: 0;
}

/* Cuadro de visualización */

.pand-system-viz {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pand-system-viz-frame {
  flex: 1;
  min-height: 800px;
  min-width: 500px;
  background: #ffffff;
  border: 1px solid rgba(170, 195, 255, 0.9);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(25, 80, 220, 0.35);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.pand-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pand-system-note {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* CARTOGRAFÍA · TIPOS DE DEMONIOS */

.pand-demons-section {
  margin-top: 1.5rem;
}

.pand-demons-kicker {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

.pand-demons-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-blue-strong, #ffffff);
  margin: 0 0 0.5rem;
}

.pand-demons-note {
  max-width: 52rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.pand-demon-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(6, 22, 70, 0.9);
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pand-demon-card.matrix-card {
  grid-column: 1 / -1;
  padding: 1rem 1rem 1rem;
}

.demon-viz-embed {
  margin-top: 0;
  border: none !important;
  border-radius: 0;
  min-height: 260px;
  padding: 0;
  display: block;
  overflow: visible;
}

/* Nombres desplazándose */

.demon-wall {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding: 1rem 1rem 1rem;
}

.demon-wall-track {
  display: flex;
  gap: 4rem;
  animation: demon-wall-scroll 40s linear infinite;
  will-change: transform;
}

.demon-wall-column {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  column-gap: 2.8rem;
  row-gap: 0.7rem;
}

.demon-name {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
  color: #ffffff;
  white-space: nowrap;
}

.demon-name--highlight {
  color: #050b1a;
  text-shadow: 0 0 18px rgba(255,255,255,0.6);
}

@keyframes demon-wall-scroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* Responsive pandemonium */

@media (max-width: 900px) {
  .pand-system-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pand-system-viz-frame {
    min-height: 260px;
  }
}

@media (max-width: 800px) {
  .demon-wall-column {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    column-gap: 1.4rem;
  }

  .demon-name {
    font-size: 0.9rem;
  }

  .demon-wall {
    padding: 1rem;
  }
}

@media (max-width: 720px) {
  .pandemonium-intro-fade {
    margin-top: -72px;
    padding-top: calc(var(--screen-padding-y) + 72px);
  }

  .pandemonium-body {
    gap: 1.8rem;
  }
}

@media (max-width: 600px) {
  .pandemonium-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .pand-side-cards {
    max-width: 30rem;
  }

  .pand-hero-title {
    font-size: clamp(2.2rem, 4vw, 2.6rem);
  }
}


/* ==========================================================
   PANDÆMONIUM · SECCIÓN HORIZONTAL
   ========================================================== */

.grid-transition-blue-dark {
  position: relative;
}

/* viñeta suave hacia la derecha */

.grid-transition-blue-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    circle at 85% 50%,
    rgba(0, 0, 0, 0.16) 0%,
    rgba(0, 0, 0, 0.06) 35%,
    rgba(0, 0, 0, 0.00) 70%
  );
}

.grid-transition-blue-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--blue-deep-darker);
  background-image:
    linear-gradient(var(--blue-strong-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-strong-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 85%,
    black 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 85%,
    black 100%
  );
  pointer-events: none;
}

/* contenido por encima del velo */

#pandemonio-horizontal .horizontal-panel,
#pandemonio-horizontal .panel-inner {
  position: relative;
  z-index: 1;
}

/* Tamaño paneles internos */

#pandemonio-horizontal .panel-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 6vw;
}

/* PANEL A · ESTRUCTURA */

.panel-estructura .estructura-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.estructura-heading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.estructura-label {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.78;
}

.estructura-title {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.estructura-lead {
  margin: 0;
  max-width: 22rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.estructura-texto {
  max-width: 560px;
  font-size: 0.86rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.estructura-texto p + p {
  margin-top: 0.8rem;
}

.estructura-list {
  margin: 0.7rem 0 0.9rem 1.2rem;
  padding: 0;
  list-style: disc;
  font-size: 0.86rem;
  line-height: 1.7;
}

/* PANEL B · DEMONIOS CIBERNÉTICOS / SISTEMA COVID */

.panel-sistema-covid .sistema-covid-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.pandemonio-card {
  background: rgba(6, 22, 70, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.92);
}

.pandemonio-card .card-body {
  font-size: 0.83rem;
  line-height: 1.8;
}

.covid-question-block {
  font-size: 0.83rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.pandemonio-quote {
  margin: 0.75rem 0;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  line-height: 1.7;
}

.pandemonio-quote.small {
  font-size: 0.78rem;
}

.pandemonio-ref {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  opacity: 0.8;
}

.pandemonio-dimensiones {
  margin: 0.8rem 0 1rem 1.1rem;
  padding: 0;
  font-size: 0.83rem;
  line-height: 1.7;
}

.covid-motores {
  margin: 1.4rem 0 0.4rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.covid-motores span {
  font-size: 1.2em;
}

.covid-ver-ejemplos {
  font-size: 0.83rem;
  line-height: 1.8;
}

/* Responsive Pandemonium horizontal */

@media (max-width: 600px) {
  .panel-estructura .estructura-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .panel-sistema-covid .sistema-covid-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  #pandemonio-horizontal .panel-inner {
    padding: 48px 5vw;
  }

  .estructura-heading {
    text-align: center;
  }

  .estructura-texto {
    max-width: none;
  }
}


/* ==========================================================
   12. GUERRA LEMURIANA – TÍTULO + BLOQUE DE TEXTO
   ========================================================== */

#guerra-lemuriana .screen-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.lemu-hero-static {
  margin: 0 auto 4rem;
  width: min(1200px, 100% - 200px);
}

.lemu-hero-kicker {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #1050c8;
}

.lemu-hero-title {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(3.2rem, 7vw, 5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #1050c8;
}

.lemu-block {
  width: min(1000px, 100% - 200px);
  margin: 0 auto 2.5rem;
}

.lemu-conflict-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 66, 183, 0.5);
  padding: 32px 40px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 1.25rem;
  line-height: 2.2rem;
}

.lemu-conflict-card p {
  margin: 0 0 0.9rem;
}

.lemu-conflict-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .lemu-hero-static {
    width: min(100% - 40px, 720px);
  }

  .lemu-block {
    width: min(100% - 40px, 720px);
  }
}


/* ==========================================================
   13. ATLANTES / LEMURIANS EN COVID (SLIDE ESTÁTICO + VIZ)
   ========================================================== */

#covid-fuerzas .covid-forces-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.covid-forces-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.covid-force-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    background 0.45s ease;
}
.covid-force-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(0, 66, 183, 0.0);
  pointer-events: none;
  transition: border-color 0.45s ease, opacity 0.45s ease;
  opacity: 0;
}
.covid-force-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 14px 32px rgba(0, 66, 183, 0.18),
    0 0 0 1px rgba(0, 66, 183, 0.06);
  border-color: rgba(0, 66, 183, 0.65);
  background: rgba(230, 239, 255, 0.98);
}
.covid-force-card:hover::before {
  border-color: rgba(0, 66, 183, 0.7);
  opacity: 1;
}
.covid-force-title {
  position: relative;
  overflow: hidden;
}


.covid-force-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 66, 183, 0.5);
  background: rgba(0, 66, 183, 0.08);
}

.covid-force-title {
  margin: 0;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 1.1rem;
}

.covid-force-body {
  padding: 16px 18px 18px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Viz embed */

.covid-viz-wrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.covid-viz-box {
  max-width: 960px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

.covid-viz-iframe {
  display: block;
  width: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .covid-forces-grid {
    grid-template-columns: 1fr;
  }

  .covid-viz-box {
    padding: 6px;
  }
}


/* ==========================================================
   14. TRANSICIONES DE GRILLA
   ========================================================== */

/* 14.1 AZUL → BLANCO (vertical) */

.grid-transition {
  position: relative;
  min-height: 45vh;
  background: transparent;
  overflow: hidden;
}

/* Capa blueprint azul (arriba) */

.grid-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--blue-deep);
  background-image:
    linear-gradient(var(--blue-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
}

/* Capa blueprint blanca (abajo) */

.grid-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--white-bg);
  background-image:
    linear-gradient(var(--white-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, black 100%);
}


/* 14.2 BLANCO → AZUL */

.grid-transition-white-blue {
  position: relative;
  min-height: 45vh;
  background: transparent;
  overflow: hidden;
}

/* capa blanca arriba */

.grid-transition-white-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--white-bg);
  background-image:
    linear-gradient(var(--white-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 40%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 40%,
    transparent 100%
  );
}

/* capa azul abajo */

.grid-transition-white-blue::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--blue-deep);
  background-image:
    linear-gradient(var(--blue-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    black 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    black 100%
  );
}

/* Franja pequeña azul sobre blanco */

.transition-top-blue-over-white {
  position: relative;
  overflow: hidden;
}

.transition-top-blue-over-white::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--blue-deep);
  background-image:
    linear-gradient(var(--blue-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: linear-gradient(to bottom, black 0%, transparent 18%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 18%);
  pointer-events: none;
}

/* Franja pequeña blanca sobre azul */

.transition-top-white-over-blue {
  position: relative;
  overflow: hidden;
}

.transition-top-white-over-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: var(--white-bg);
  background-image:
    linear-gradient(var(--white-line) 1px, transparent 1px),
    linear-gradient(100deg, var(--white-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 30%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 30%,
    transparent 100%
  );
}

/* ==========================================================
   15. NUMOGRAMA FINAL (MAPA + CASOS)
   ========================================================== */

.numograma-final-inner {
  min-height: 100vh;
  padding-top: 56px;
  padding-bottom: 64px;
  position: relative;
}

#numograma-mapa {
  position: relative;
  overflow: visible;
}

#numograma-mapa svg .numo-node-active {
  filter: drop-shadow(0 0 16px rgba(190, 242, 255, 0.9));
}

#numogramaSvg .is-highlighted {
  transform-box: fill-box;
  transform-origin: center;
}

#numograma-mapa svg .numo-node-active circle,
#numograma-mapa svg .numo-node-active path {
  stroke-width: 4px;
}

/* Nodo activo · glow exagerado */
#numogramaSvg .is-highlighted {
  transform-box: fill-box;
  transform-origin: center;
}

#numogramaSvg .is-highlighted > g > circle:first-child {
  stroke: #9ef7ff;
  stroke-width: 7px;
  fill-opacity: 1;
  filter:
    drop-shadow(0 0 0px rgba(0,0,0,0))
    drop-shadow(0 0 26px rgba(155,220,255,0.95));
  animation: numo-highlight-pulse 1.6s infinite ease-in-out;
}

/* Pulso del nodo activo */
@keyframes numo-highlight-pulse {
  0% {
    filter:
      drop-shadow(0 0 0px rgba(155,220,255,0))
      drop-shadow(0 0 0px rgba(155,220,255,0));
  }
  50% {
    filter:
      drop-shadow(0 0 10px rgba(0,0,0,0.6))
      drop-shadow(0 0 32px rgba(155,220,255,1));
  }
  100% {
    filter:
      drop-shadow(0 0 0px rgba(155,220,255,0))
      drop-shadow(0 0 0px rgba(155,220,255,0));
  }
}

/* =========================================
   KEYFRAMES GLOWS NUMOGRAMA
   ========================================= */

/* “anillo” girando / respirando (nodos de time & warp) */
@keyframes numo-ring-spin {
  0% {
    filter: drop-shadow(0 0 0px rgba(151,163,255,0));
    stroke-width: 4px;
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(151,163,255,1));
    stroke-width: 7px;
  }
  100% {
    filter: drop-shadow(0 0 0px rgba(151,163,255,0));
    stroke-width: 4px;
  }
}

/* Glow extra para nodos de Plex / Warpplex */
@keyframes numo-plex-glow {
  0% {
    filter: drop-shadow(0 0 0px rgba(0,255,204,0));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(0,255,204,0.95));
  }
  100% {
    filter: drop-shadow(0 0 0px rgba(0,255,204,0));
  }
}

/* Pulso de las líneas aritméticas */
@keyframes numo-pulse {
  0%   { stroke-opacity: 0.4; }
  50%  { stroke-opacity: 1;   }
  100% { stroke-opacity: 0.4; }
}

/* Pequeña vibración horizontal (líneas de flujo) */
@keyframes numo-vibrate {
  0%   { transform: translateX(-0.5px); }
  50%  { transform: translateX(0.5px);  }
  100% { transform: translateX(-0.5px); }
}

/* GRID: IZQ · CENTRO · DER */

.numo-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr) minmax(0, 320px);
  gap: 24px;
  align-items: stretch;
}

/* paneles laterales */

.numo-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* card izquierda sin estilo de tarjeta */

.numo-intro-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
}

.numo-intro-card .card-header {
  display: none;
}

/* 9 grande a la izquierda */

.numograma-number {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 80px;
  margin: 0 0 8px;
  line-height: 0.8;
}

/* Título grande centrado arriba de la sección Numograma */

#numograma-final .numograma-section-title {
  position: relative;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 117px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffffff;
}

/* navegación de modos */

.numo-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

/* Intro vs detalle */

.numo-intro-group {
  position: relative;
}

.numo-detail-wrapper {
  display: none;
  width: 100%;
  height: auto;
  position: relative;
}

.numo-detail-wrapper.is-visible {
  display: block;
  align-items: stretch;
  justify-content: center;
}

/* Layout de casos */

.numo-case-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 320px)
    minmax(0, 800px)
    minmax(0, 280px);
  column-gap: 2.5rem;
  padding: 2.5rem 3rem 3.5rem;
  width: 100%;
  height: auto;
  align-items: flex-start;
}

.numo-detail-text {
  max-width: 380px;
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
}

.numo-case-col {
  color: #fff;
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.numo-case-left {
  max-width: 420px;
}

.numo-case-left-body {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.numo-case-left-body > * + * {
  margin-top: 4rem;
}

.numo-case-left-body .step-numo {
  padding: 1.5rem 1.8rem;
}

.numo-case-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.numo-case-diagram {
  width: 100%;
  max-width: 69rem;
  max-height: 90vh;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.58));
}

.numo-case-right {
  max-width: 420px;
  position: sticky;
  top: 6rem;
  align-self: flex-start;
}

.numo-case-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.numo-case-kicker {
  font-weight: 700;
  margin: 0 0 1rem;
}

.numo-case-subtitle {
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.numo-case-right-body {
  font-family: "Space Mono", monospace;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* centro: marco SVG */

.numo-center {
  border: none;
  border-radius: 0;
  background: radial-gradient(circle at 30% 20%, rgba(90,160,255,0.18), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(140,255,255,0.12), transparent 60%),
              #02051f;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.numo-svg-frame {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.numo-svg-frame > svg {
  width: 100%;
  height: auto;
  display: block;
}

.numo-center::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: soft-light;
  pointer-events: none;
  opacity: 0.6;
}

/* Botones modos Numograma */

.numo-btn {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.24);
  padding: 6px 12px;
  background: rgba(0,0,40,0.8);
  color: var(--text-blue-soft);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.numo-btn:hover {
  background: radial-gradient(circle at top,
    rgba(158,247,255,0.15),
    rgba(0,0,0,0.85));
  box-shadow: 0 0 10px rgba(158,247,255,0.4);
  transform: translateY(-1px);
}

.numo-btn.is-active {
  background: linear-gradient(90deg, #33a4ff, #7ef4ff);
  color: #021544;
  border-color: transparent;
}

/* texto lateral */

.numo-panel-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-blue-soft);
  margin: 0 0 4px;
}

.numo-text {
  flex: 1;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-blue-soft);
  overflow-y: auto;
  max-height: 330px;
  scrollbar-width: thin;
}

.numo-text::-webkit-scrollbar {
  width: 6px;
}

.numo-text::-webkit-scrollbar-thumb {
  background: rgba(151,163,255,0.7);
  border-radius: 999px;
}

.numo-text--right {
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 440px;
  max-height: none;
  margin-left: -12px;
  padding-right: 0;
}

/* scrollytelling numograma */

.scrolly-numo-final {
  display: flex;
  flex-direction: column;
  gap: 60vh;
  margin-top: 1.5rem;
}

.step-numo {
  position: relative;
  padding: 1.1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(253, 249, 235, 0.16);
  background: radial-gradient(circle at top,
    rgba(9, 9, 55, 0.75),
    rgba(0, 0, 15, 0.95));
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  margin-bottom: 40vh;
}

.step-numo::before {
  content: attr(data-step-label);
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(158, 247, 255, 0.86);
  margin-bottom: 0.35rem;
}

.step-numo.is-active {
  border-color: rgba(158, 247, 255, 0.9);
  box-shadow: 0 0 22px rgba(158, 247, 255, 0.45);
}

/* botón “volver a la huella” */

.numo-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fdf9eb;
  cursor: pointer;
}

.numo-back-btn:hover {
  background: rgba(255,255,255,0.06);
}

/* frames fantasma */

.numo-final-frames {
  display: none;
}

/* sticky centro en desktop */

@media (min-width: 900px) {
  .numo-case-center {
    position: sticky;
    top: 10vh;
    align-self: flex-start;
  }

  .numo-case-diagram {
    max-width: 540px;
    max-height: 80vh;
  }
}

/* ==========================
   MODOS (data-numo-mode)
   ========================== */

.numograma-final-inner[data-numo-mode="intro"] svg * {
  opacity: 1;
}

/* TIME-CIRCUIT */

.numograma-final-inner[data-numo-mode="time"] svg * {
  opacity: 0.90;
}

.numograma-final-inner[data-numo-mode="time"] #NODO_1 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="time"] #NODO_2 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="time"] #NODO_4 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="time"] #NODO_5 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="time"] #NODO_7 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="time"] #NODO_8 > g > circle:first-child {
  opacity: 1;
  animation: numo-ring-spin 2.5s infinite;
}

/* conexiones del circuito */

.numograma-final-inner[data-numo-mode="time"] #CONEXION-2-5,
.numograma-final-inner[data-numo-mode="time"] #CONEXION-4-5-1,
.numograma-final-inner[data-numo-mode="time"] #CONEXION-7-2,
.numograma-final-inner[data-numo-mode="time"] #CONEXION-8-1-7 {
  opacity: 1;
  stroke-width: 7px;
  stroke-linecap: round;
  stroke: #9ef7ff;
  filter: drop-shadow(0 0 18px rgba(155,220,255,0.9));
}

/* WARP & PLEX */

.numograma-final-inner[data-numo-mode="warpplex"] svg * {
  opacity: 0.95;
}

.numograma-final-inner[data-numo-mode="warpplex"] #NODO_3 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="warpplex"] #NODO_6 > g > circle:first-child {
  opacity: 1;
  animation: numo-ring-spin 2.4s infinite;
}

.numograma-final-inner[data-numo-mode="warpplex"] #NODO_9 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="warpplex"] #NODO_0 > g > circle:first-child {
  opacity: 1;
  animation:
    numo-ring-spin 3s infinite,
    numo-plex-glow 2.6s infinite;
}

/* ZONAS & SYZYGIES */

.numograma-final-inner[data-numo-mode="zonas"] svg * {
  opacity: 0.90;
}

.numograma-final-inner[data-numo-mode="zonas"] #NODO_0 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="zonas"] #NODO_1 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="zonas"] #NODO_2 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="zonas"] #NODO_3 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="zonas"] #NODO_4 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="zonas"] #NODO_5 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="zonas"] #NODO_6 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="zonas"] #NODO_7 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="zonas"] #NODO_8 > g > circle:first-child,
.numograma-final-inner[data-numo-mode="zonas"] #NODO_9 > g > circle:first-child {
  opacity: 1;
  animation: numo-ring-spin 3s infinite;
}

/* ARITMÉTICA 0–9 */

.numograma-final-inner[data-numo-mode="aritmetica"] svg * {
  opacity: 0.95;
}

.numograma-final-inner[data-numo-mode="aritmetica"] #LINEA-1,
.numograma-final-inner[data-numo-mode="aritmetica"] #LINEA-2,
.numograma-final-inner[data-numo-mode="aritmetica"] #LINEA-3,
.numograma-final-inner[data-numo-mode="aritmetica"] #LINEA-4,
.numograma-final-inner[data-numo-mode="aritmetica"] #LINEA-5,
.numograma-final-inner[data-numo-mode="aritmetica"] #LINEA-6,
.numograma-final-inner[data-numo-mode="aritmetica"] #LINEA-7 {
  opacity: 1;
  stroke-width: 8px;
  stroke: #9ef7ff;
  animation:
    numo-pulse 2s infinite,
    numo-vibrate 0.2s infinite alternate;
}

/* LEMURES / DEMONOLOGÍA */

@keyframes numo-lemur-glow {
  0%   { filter: drop-shadow(0 0 0px rgba(0,0,0,0)); }
  50%  { filter: drop-shadow(0 0 14px rgba(0,0,0,0.8)); }
  100% { filter: drop-shadow(0 0 0px rgba(0,0,0,0)); }
}

.numograma-final-inner[data-numo-mode="lemures"] svg * {
  opacity: 0.90;
}

.numograma-final-inner[data-numo-mode="lemures"] #INTERACCIONES,
.numograma-final-inner[data-numo-mode="lemures"] #BOLA_1,
.numograma-final-inner[data-numo-mode="lemures"] #BOLA_2,
.numograma-final-inner[data-numo-mode="lemures"] #BOLA_3,
.numograma-final-inner[data-numo-mode="lemures"] #BOLA_4,
.numograma-final-inner[data-numo-mode="lemures"] #BOLA_5,
.numograma-final-inner[data-numo-mode="lemures"] #BOLA_6,
.numograma-final-inner[data-numo-mode="lemures"] #BOLA_7,
.numograma-final-inner[data-numo-mode="lemures"] #BOLA_8,
.numograma-final-inner[data-numo-mode="lemures"] #BOLA_9 {
  opacity: 1;
  animation: numo-lemur-glow 2.4s infinite;
}


/* ==========================================================
   16. ÍNDICE LATERAL (PUNTOS)
   ========================================================== */

.nav-dots {
  position: fixed;
  right: 32px;
  top: 20%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* visible cuando hay scroll */

.nav-dots--visible {
  opacity: 1;
  pointer-events: auto;
}

/* Tema claro: fondos azules (puntos blancos) */

.nav-dots--light .nav-dot {
  border-color: var(--text-blue-strong);
}

.nav-dots--light .nav-dot.nav-dot-active {
  background-color: var(--text-blue-strong);
}

/* Tema oscuro: fondos blancos (puntos azules) */

.nav-dots--dark .nav-dot {
  border-color: #1050c8;
}

.nav-dots--dark .nav-dot.nav-dot-active {
  background-color: #1050c8;
}

/* Botón circular */

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 100px;
  border: 2px solid currentColor;
  background-color: transparent;
  padding: 0;
  cursor: pointer;
  outline: none;
  position: relative;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

/* Punto activo */

.nav-dot.nav-dot-active {
  transform: scale(1.25);
}

/* Tooltip con el subtítulo de la sección */

.nav-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 150%;
  top: 40%;
  transform: translateY(-50%) translateX(-6px);
  padding: 4px 8px;
  font-size: 10px;
  white-space: nowrap;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dot:hover::after,
.nav-dot:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}


/* ==========================================================
   17. RESPONSIVE GLOBAL (≤ 900px / ≤ 600px)
   ========================================================== */

@media (max-width: 600px) {

  .nav-dots {
    right: 16px;
    gap: 8px;
  }

  .identity-layout,
  .identity-detail-layout,
  .method-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 56px;
  }

  .identity-meta-card {
    justify-self: start;
    max-width: 100%;
  }

  .method-side {
    max-width: 100%;
  }

  .corner-label {
    top: 24px;
    left: 16px;
  }

  .hand-block-top,
  .hand-block-middle,
  .hand-block-bottom {
    position: static;
    transform: none;
    margin: 80px auto 0;
    text-align: center;
  }

  .origen-card,
  .identity-text-block,
  .method-card {
    position: static;
    width: 100%;
    margin-top: 32px;
  }

  .dots-vertical,
  .dots-horizontal {
    display: none;
  }

  .hiper-big-word {
    font-size: 18vw;
    bottom: -14%;
  }

  .covid-row {
    grid-template-columns: 1fr;
  }

  .sistema-covid-inner,
  .atlantes-covid-inner {
    grid-template-columns: 1fr;
  }
}

/* Snap vertical + mobile horizontal fallback */

@media (max-width: 900px) {

  body {
    scroll-snap-type: y mandatory;
  }

  .screen,
  .horizontal-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
  }

  .horizontal-track {
    position: static;
    height: auto;
    display: block;
    transform: none !important;
  }

  .horizontal-panel {
    min-width: 100%;
    height: auto;
  }

  .horizontal-section {
    background-attachment: scroll;
  }

  .nav-dots {
    display: none;
  }
}


/* ==========================================================
   18. FONDOS ILUSTRADOS (SVG / PNG / GIF)
   ========================================================== */

/* 18.1 Landing */

#landing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("+");
  background-repeat: no-repeat;
  background-position: right 50% bottom 10%;
  background-size: min(40vw, 520px);
  opacity: 0.24;
}

#landing .screen-inner {
  position: relative;
  z-index: 1;
}

/* 18.2 Origen / Identidad */

#origen-identidad::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("assets/MANO.gif");
  background-repeat: no-repeat;
  background-position: left 110% bottom 15%;
  background-size: min(58vw, 800px);
  opacity: 0.40;
  mix-blend-mode: screen;
}

#origen-identidad .screen-inner {
  position: relative;
  z-index: 1;
}

#identidad-detalle ::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("assets/dibujo_estructura pandem.svg");
  background-repeat: no-repeat;
  background-position: left 200% bottom 70%;
  background-size: min(58vw, 800px);
  opacity: 0.80;
  mix-blend-mode: screen;
}

/* Origen / Hiperstición */
#hipersticion::before {
  content: "";
  position: fixed;              /* se pega al viewport */
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: right 5% center;
  background-size: min(50vw, 600px);
  opacity: 0;                   /* 🔴 oculto por defecto */
  mix-blend-mode: screen;
  transition: opacity 0.4s ease-out;
}

/* cuando la sección está activa en pantalla */
#hipersticion.hiper-bg-visible::before {
  opacity: 0.40;                /* aquí ya se ve */
}

/* Titulo hipersticion */

.bg-hiper-espiral {
  position: absolute;
  top: 10vh;
  right: 6vw;
  width: 320px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.8));
  pointer-events: none;
  z-index: 0;
}

.bg-hiper-espiral.drift {
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(-10px) rotate(-2deg); opacity: 0.10; }
  to   { transform: translateY(10px)  rotate(2deg);  opacity: 0.16; }
}



#origen-hipersticion .screen-inner {
  position: relative;
  z-index: 1;
}

/* Fondo HIPERSTICIÓN (GIF) */

#hipersticion {
  position: relative;
  
}

/* Fondo fijo solo para la sección HIPERSTICIÓN */
#hipersticion::before {
  content: "";
  position: absolute;      /* o absolute */
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("assets/Dibujocorregido.png");
  background-image: url("assets/Dibujocorregido.png");

  background-repeat: repeat;
  background-position: right 5% center;
  background-size: min(50vw, 600px);
  opacity: 0.40;
  mix-blend-mode: screen;
}


/* Cuando la sección está activa, se muestra */
#hipersticion.hiper-bg-visible::before {
  opacity: 1;
}
.hiper-symbol {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  width: min(40vw, 450px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
/* 18.3 Guerra Lemuriana */

#guerra-lemuriana::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("assets/circu.png");
  background-repeat: no-repeat;
   width: 100vw;
  height: 100vh;
  background-position: right 50% bottom 50%;
  background-size: min(45vw, 520px);
  opacity: 0.22;

}

#guerra-lemuriana .screen-inner {
  position: relative;
  z-index: 1;
}
#covid-fuerzas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("assets/dibujo_estructura pandem.svg");
  background-repeat: no-repeat;
   width: 100vw;
  height: 100vh;
  background-position: center center;
  background-size: min(60vw, 600px);
  opacity: 0.32;

}
/* 18.4 Pandemonium intro */

#pandemonio-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("assets/penta.png");
  background-repeat: no-repeat;
   width: 100vw;
  height: 100vh;
  background-position: center top 18%;
  background-size: min(42vw, 480px);
  opacity: 0.40;
}

#pandemonio-intro .screen-inner {
  position: relative;
  z-index: 1;
}

/* Ajustes responsive fondos ilustrados */

@media (max-width: 600px) {
  #landing::before,
  #origen-identidad::before,
  #guerra-lemuriana::before,
  #pandemonio-intro::before,
  #numograma-final::before {
    background-position: center bottom 8%;
    background-size: 70vw;
    opacity: 0.16;
  }
}


/* ==========================================================
   19. MAPA DE HUELLA – TEXTOS Y NODOS
   ========================================================== */

.numo-map-screen-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 96px 24px 64px;
}

/* Contenedor general */

.numo-map-text-container {
  position: relative;
  width: 80vw;
  margin-left: calc(50% - 49vw);
  margin-bottom: 40px;
}

/* TÍTULO CENTRADO */

.numo-map-title {
  margin: 0 auto 24px;
  max-width: 720px;
  text-align: center;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 50px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* COLUMNA DE TEXTO A LA IZQUIERDA */

.numo-map-side-text {
  position: absolute;
  left: 20px;
  top: 0;
  width: 320px;
  text-align: left;
}

/* PÁRRAFOS */

.numo-map-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  display: none;
}

.numo-map-text.is-active {
  display: block;
}

/* Botón de reset */

.map-reset-btn {
  position: relative;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,40,0.7);
  color: #fff;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.map-reset-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.map-reset-btn:hover {
  transform: translateY(-1px);
}

/* Bloque donde está la huella */

.numo-map-svg-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 90px;
}

/* Escenario de huella */

.huella-stage {
  position: relative;
  width: min(680px, 100%);
  aspect-ratio: 3 / 2;
}

.huella-zoom {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.huella-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 1;
}

/* Nodos como botones con SVG encima de la huella */

.huella-node {
  position: absolute;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: transform 0.25s ease;
  opacity: 0.9;
}

.huella-node-icon {
  width: 120px;
  height: 120px;
  display: block;
  pointer-events: none;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.huella-node-label {
  margin-top: 4px;
  white-space: nowrap;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: none;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Hover */

.huella-node:hover {
  opacity: 1;
  transform: scale(1.04);
}

.huella-node:hover .huella-node-icon {
  transform: scale(1.06);
}

.huella-node:hover .huella-node-label {
  opacity: 1;
  transform: translateY(-1px);
}

/* Nodo seleccionado */

.huella-node.is-active {
  opacity: 1;
}

.huella-node.is-active .huella-node-icon {
  transform: scale(1.08);
  opacity: 1;
}

.huella-node.is-active .huella-node-label {
  opacity: 1;
  transform: translateY(-1px);
}

/* EXTRA RESPONSIVE · HUELLAS + CASOS NUMOGRAMA */

@media (max-width: 600px) {

  .huella-row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .numo-map-text-container,
  .numo-map-side-text {
    position: static;
    width: 100%;
    margin: 0;
  }

  .numo-map-text-columns {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .numo-map-svg-wrap {
    max-width: 100%;
  }

  .numo-case-layout {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .numo-case-center {
    justify-content: center;
    max-width: 100%;
  }

  .numo-case-diagram {
    max-width: 100%;
  }
}
/* ==========================================================
   BOTÓN DE REFLEXIÓN FINAL EN LA HUELLA
   ========================================================== */

.huella-reflexion-trigger {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  z-index: 5; /* por encima de la huella */
}

.huella-reflexion-trigger img {
  display: block;
  width: 110px;     /* ajusta según tu icono */
  height: auto;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.45));
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
  opacity: 0.95;
}

.huella-reflexion-trigger:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.7));
  opacity: 1;
}

.huella-reflexion-trigger:active img {
  transform: scale(0.98);
}


/* ==========================================================
   20. ANIMACIONES ON-SCROLL (FADE-IN-UP)
   ========================================================== */

/* Estado base de elementos animables */

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  animation: none !important;
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

/* Cuando entra en pantalla (clase añadida por JS) */

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-delay-1 { transition-delay: 0.12s; }
.fade-delay-2 { transition-delay: 0.24s; }
.fade-delay-3 { transition-delay: 0.36s; }
.fade-delay-4 { transition-delay: 0.48s; }

/* Elementos marcados como estáticos (sin desaparecer) */

.fade-static {
  opacity: 1 !important;
  transform: none !important;
}


/* ==========================================================
   21. CONTROLES GENÉRICOS DE VIZ (OBSERVABLE, ETC.)
   ========================================================== */

.viz-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.viz-embed {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px dashed rgba(16, 80, 200, 0.4);
  background: rgba(255, 255, 255, 0.5);
}

/* ==========================================================
   22. SECCIÓN FINAL – REFLEXIÓN
   ========================================================== */
/* Por defecto, la reflexión final está oculta */
#reflexion-final {
  display: none;
}

.final-title {
  line-height: 1.15;
}

/* Cuando se desbloquea desde la huella */
#reflexion-final.is-unlocked {
  display: block;
}
.reflexion-final-inner {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  position: relative;
}

.reflexion-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
  color: #0b1c3a;
}

.reflexion-kicker {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 0.6rem;
}

.reflexion-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1050c8;
  margin: 0 0 1.6rem;
}

.reflexion-lead {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.98rem;
  line-height: 1.8;
  margin: 0 0 1.6rem;
}

.reflexion-body {
  font-size: 0.95rem;
  line-height: 1.8;
  font-family: "Space Mono", ui-monospace, monospace;
}

.reflexion-body p {
  margin: 0 0 1rem;
}

.reflexion-body p:last-child {
  margin-bottom: 0;
}

.reflexion-note {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  line-height: 1.6;
  font-family: "Space Mono", ui-monospace, monospace;
  opacity: 0.8;
  border-top: 1px solid rgba(16, 80, 200, 0.2);
  padding-top: 0.9rem;
}

/* Ajustes responsive */

@media (max-width: 600px) {
  .reflexion-final-inner {
    padding: 4rem 0 3rem;
  }

  .reflexion-content {
    max-width: 100%;
  }

  .reflexion-title {
    letter-spacing: 0.12em;
  }

  .corner-label {
    top: 24px;
    left: 16px;
  }
}
/* ==========================================================
   21. MODO VERTICAL MÓVIL (OVERRIDE FINAL)
   ========================================================== */

@media (max-width: 900px) {

  /* 1) Horizontal → vertical (anula JS de scroll horizontal) */
  .horizontal-section {
    position: relative;
    height: auto !important;        /* ignora la altura fijada por JS */
    min-height: auto;
    background-attachment: scroll;
  }

  .horizontal-track {
    position: static !important;
    top: auto;
    height: auto !important;
    display: block;
    transform: none !important;     /* anula translateX del JS */
    will-change: auto;
  }

  .horizontal-panel {
    position: relative;
    width: 100%;
    min-width: 100%;
    height: auto;
  }

  .panel-inner {
    height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  /* 2) Secciones en vertical ocupando todo el ancho útil */
  .screen {
    min-height: 100vh;
    align-items: stretch;
  }

  .screen-inner {
    width: min(900px, 100% - 32px);
  }

  /* 3) Scrollytelling COVID en columna (figura arriba, texto abajo) */
  .scrolly-covid {
    display: block;
    width: min(900px, 100% - 32px);
    padding: 64px 0;
  }

  .covid-figure {
    position: relative;
    top: 0;
    height: auto;
    margin-bottom: 32px;
  }

  .covid-figure-frame {
    aspect-ratio: 16 / 9;
  }

  .scroll-area {
    max-width: 100%;
  }

  .step-covid {
    margin-bottom: 32px;
  }

  /* 4) Ocultar navegación lateral con puntos en móvil */
  .nav-dots {
    display: none !important;
  }
}

/* Afinado extra para pantallas muy pequeñas */
@media (max-width: 600px) {
  .screen-inner {
    width: 100%;
    padding-inline: 16px;
  }

  .panel-inner {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}
