@view-transition {
  navigation: auto;
}

::view-transition-old(site-logo),
::view-transition-new(site-logo) {
  animation: none;
  mix-blend-mode: normal;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
*:focus { outline: none !important; box-shadow: none !important; }
body {
  font-family: 'Oswald', sans-serif;
  overflow: hidden;
  background-color: #F5F5F5;
}

/* ── Canvas orgánico de fondo ── */
#organicCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  display: none;
  transition: opacity 0.6s ease;
}
#organicCanvas.hidden { opacity: 0; }
#redOrganic {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity 1s ease;
}
#redOrganic.active { opacity: 1; }
.red-org-layer { background: transparent !important; }

/* ── Stage: ocupa toda la pantalla, fijo ── */
.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Fondos ── */
.bg { position: absolute; inset: 0; }
#bgGrey {
  background-color: #F5F5F5;
  z-index: 0;
}

/* ── Cuadrícula interactiva ── */
#gridCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#bgRed      { background-color: #be3e35; z-index: 3; opacity: 0; transition: opacity 0.35s ease; }
#bgRedVideo { background: none; z-index: 3; opacity: 0; transition: opacity 0.35s ease; overflow: hidden; }
#l28        { filter: blur(35px); transition: opacity 0.7s ease, filter 0.7s ease; }
#l28.active { filter: blur(0px); }

/* ── Logo ── */
.ct-logo {
  view-transition-name: site-logo;
  position: absolute;
  top: 8vh;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.35s ease, top 0.6s ease, width 0.6s ease, transform 0.6s ease;
}
.ct-logo.visible { opacity: 1; }

.ct-logo img { width: 100%; height: auto; display: block; }

/* Logo centrado en la CTA final */
.ct-logo.logo-cta {
  top: 44%;
  width: 160px;
  transform: translate(-50%, -50%);
}
@media (max-height: 860px) {
  .ct-logo.logo-cta { top: 40%; width: 130px; }
  .cta-question     { top: 60%; }
}

/* ── Capas de texto ── */
.layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 0 5vw;
  opacity: 0;
}
.layer.active { opacity: 1; }

.layer h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  transform: scaleX(0.86);
  transform-origin: center;
  font-size: clamp(2.5rem, 11vw, 10rem);
  white-space: nowrap;
}

.dark-txt  { color: #1a1a1a; }
.white-txt { color: #ffffff; }

/* ── Tachado animado ── */
.strike-wrap {
  position: relative;
  display: inline-block;
}
.strike-line {
  position: absolute;
  left: 0; right: 100%;
  top: 58%;
  height: 10px;
  background: #1a1a1a;
  transform: translateY(-50%) rotate(-2.5deg);
  transform-origin: left center;
  transition: right 0.6s ease;
}
.strike-line.active { right: 0; }

/* ── Controles de navegación (fila inferior) ── */
/* ── Reproductor ── */
.player-wrap {
  position: fixed;
  bottom: 10rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.player-wrap.is-playing {
  bottom: 4.5rem;
}
@media (min-width: 900px) and (max-height: 950px) {
  .player-wrap { bottom: 5rem; }
  .player-wrap.is-playing { bottom: 2rem; }
}

/* Barra de progreso */
.progress-bar {
  width: min(300px, 38vw);
  height: 1.5px;
  background: rgba(0,0,0,0.15);
  border-radius: 1px;
  position: relative;
}

/* Punto-botón integrado: sirve de indicador de progreso Y de play/pause */
.progress-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #be3e35;
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  transition: left 0.15s linear,
              width 0.3s ease,
              height 0.3s ease,
              background 0.25s ease,
              transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  border: none;
  padding: 0;
  outline: none;
}
.progress-dot:active { cursor: grabbing; }
.progress-dot svg {
  width: 13px; height: 13px;
  fill: #ffffff; color: #ffffff;
  flex-shrink: 0;
}
.progress-dot:hover {
  background: #a8342c;
  transform: translate(-50%, -50%) scale(1.18);
}
.progress-dot:active { transform: translate(-50%, -50%) scale(1.06); }

/* Estado reproduciendo: un poco más pequeño y discreto, pause visible */
.progress-dot.playing {
  width: 30px;
  height: 30px;
  background: #be3e35;
}
.progress-dot.playing svg { width: 10px; height: 10px; }
.progress-dot.playing:hover {
  background: #555;
  transform: translate(-50%, -50%) scale(1.18);
}

/* Onda expansiva — activa cuando está en pause */
.progress-dot.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 0.7px solid rgba(0,0,0,0.22);
  animation: btnPulse 3.5s cubic-bezier(0.1, 0.4, 0.3, 1) infinite;
  pointer-events: none;
}
@keyframes btnPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0;   }
}

/* Modo claro (fondos rojo/negro) */
.controls-light .progress-bar {
  background: rgba(255,255,255,0.3);
}
.controls-light .progress-dot {
  background: #ffffff;
}
.controls-light .progress-dot svg { fill: #1a1a1a; color: #1a1a1a; }
.controls-light .progress-dot:hover {
  background: #ffffff;
  transform: translate(-50%, -50%) scale(1.18);
}
.controls-light .progress-dot.playing {
  background: rgba(255,255,255,0.85);
}
.controls-light .progress-dot.playing:hover {
  background: #ffffff;
  transform: translate(-50%, -50%) scale(1.18);
}
.controls-light .progress-dot.pulse::before,
.controls-light .progress-dot.pulse::after {
  border-color: rgba(255,255,255,0.35);
}

/* ── Confetti canvas ── */
#cc {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none; z-index: 200;
}

/* ── Hamburguesa (móvil) ── */
.hamburger {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 800;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: visible;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #555;
  border-radius: 99px;
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.35s ease, background 0.3s ease;
  transform-origin: center;
}
.hamburger.is-open span { background: #fff; }
.hamburger.is-open span:nth-child(1) { width: 32px; transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-open span:nth-child(3) { width: 32px; transform: translateY(-9px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(190, 62, 53, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 18px;
  background: transparent; border: none;
  color: #fff; cursor: pointer; padding: 8px; line-height: 0;
}
.mobile-menu-logo {
  width: 110px;
  display: block;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.mobile-menu-item {
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: transparent; border: none;
  cursor: pointer; padding: 0;
}

@media (max-width: 899px) {
  .hamburger { display: flex; }
  .side-nav   { display: none !important; }
}

/* ── Nav lateral ── */
.side-nav {
  position: fixed;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.nav-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.14), 0 0.5px 1px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: rgba(0,0,0,0.5);
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.nav-dot:hover { background: #2e2e2f; color: #fff; transform: scale(1.08); box-shadow: 0 2px 6px rgba(0,0,0,0.22); }
.nav-dot.active { background: #2e2e2f; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.22); }

/* Tooltip */
.nav-dot {
  position: relative;
}
.nav-dot::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  background: #2e2e2f;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-dot:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
/* Tooltip sobre fondo rojo / oscuro */
.side-nav.light .nav-dot::before {
  background: rgba(255,255,255,0.9);
  color: #1a1a1a;
}
/* Fondo rojo/oscuro: mismos estilos, sin cambios */
.side-nav.light .nav-dot { background: #fff; border: none; color: rgba(0,0,0,0.5); box-shadow: 0 1px 4px rgba(0,0,0,0.14); }
.side-nav.light .nav-dot:hover { background: #2e2e2f; color: #fff; transform: scale(1.08); }
.side-nav.light .nav-dot.active { background: #2e2e2f; color: #fff; }

/* ── Pantallas grandes (1400px+) ── */
@media (min-width: 1400px) {
  .ct-logo { width: 110px; top: 8vh; }
  .layer h1 { font-size: clamp(10rem, 11vw, 13rem); }
  #l1h1 { font-size: clamp(3rem, 14vw, 15rem); }
  .layer .over-text, .over-text { font-size: clamp(7rem, 26vw, 25rem) !important; }
  .side-nav { right: 2.8rem; gap: 16px; }
  .nav-dot { width: 46px; height: 46px; }
  .nav-dot svg { width: 20px; height: 20px; }
  .strike-line { height: 13px; }
}
@media (min-width: 1920px) {
  .ct-logo { width: 130px; top: 8vh; }
  .layer h1 { font-size: clamp(13rem, 11vw, 16rem); }
  #l1h1 { font-size: clamp(3rem, 16vw, 20rem); }
  .layer .over-text, .over-text { font-size: clamp(7rem, 26vw, 25rem) !important; }
  .side-nav { right: 3.5rem; gap: 20px; }
  .nav-dot { width: 54px; height: 54px; }
  .nav-dot svg { width: 24px; height: 24px; }
  .strike-line { height: 16px; }
}

/* ── Escena 6: Periódico ── */
.newspaper-bg {
  position: absolute;
  inset: 0;
  column-count: 6;
  column-gap: 2.5%;
  column-rule: 0.5px solid rgba(0,0,0,0.09);
  overflow: hidden;
  padding: 0.8% 1.2%;
  z-index: 1;
  pointer-events: none;
  color: rgba(20,20,20,0.10);
}

.np-kicker {
  font-family: 'IM Fell English', serif;
  font-size: clamp(0.55rem, 0.75vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}
.np-hl {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
  padding-bottom: 5px;
  margin-bottom: 6px;
}
.np-hl-sm {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(0.75rem, 1.2vw, 1.5rem);
  line-height: 1.1;
  margin-bottom: 4px;
}
.np-intro {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.62rem, 0.95vw, 1.2rem);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.np-body {
  font-family: 'IM Fell English', serif;
  font-size: clamp(0.55rem, 0.78vw, 1rem);
  line-height: 1.28;
  text-align: justify;
  hyphens: auto;
}
.np-dropcap::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 3.8rem);
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin-right: 3px;
  margin-top: 3px;
}
.np-pull {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.65rem, 0.95vw, 1.2rem);
  border-top: 0.5px solid rgba(0,0,0,0.12);
  border-bottom: 0.5px solid rgba(0,0,0,0.12);
  padding: 5px 0;
  margin: 7px 0;
  line-height: 1.2;
}
.np-rule {
  border: none;
  border-top: 0.5px solid rgba(0,0,0,0.1);
  margin: 6px 0;
}
.np-caption {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(0.45rem, 0.6vw, 0.78rem);
  margin-top: 4px;
}

.layer .over-text,
.over-text {
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-weight: 700;
  text-align: center;
  text-transform: none !important;
  line-height: 0.92;
  letter-spacing: -0.02em;
  transform: scaleX(0.9);
  transform-origin: center;
  font-size: clamp(7rem, 26vw, 25rem) !important;
  color: #1a1a1a;
  white-space: nowrap;
}

/* ── Escenas 11-12: Playfair sobre vídeo lavado ── */
.video-white-wash {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.72);
  z-index: 1;
}
.video-dark-wash {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 1;
}
.playfair-big {
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  text-transform: none !important;
  font-size: clamp(2.5rem, 8vw, 10rem) !important;
  line-height: 0.92 !important;
  color: #1a1a1a !important;
  text-align: center !important;
  white-space: normal !important;
  padding: 0 4vw !important;
}
#l11 h1, #l12 h1, #l15 h1 { color: #ffffff !important; }
#l13 h1 {
  position: absolute !important;
  top: 14vh !important;
  left: 50% !important;
  z-index: 2 !important;
  font-size: clamp(1rem, 2vw, 2.4rem) !important;
  color: #1a1a1a !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  animation: l13drift 4s ease-in-out infinite alternate !important;
}
#l14 h1 { color: #1a1a1a !important; text-shadow: none !important; }
#l17 h1 {
  position: absolute !important;
  top: 50% !important;
  left: 5vw !important;
  width: 40vw !important;
  text-align: center !important;
  font-size: clamp(1rem, 2.2vw, 2.8rem) !important;
  white-space: normal !important;
  color: #1a1a1a !important;
  text-shadow: none !important;
  line-height: 1.15 !important;
  z-index: 2 !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  transform: translateY(-50%) !important;
}
@keyframes l17drift {
  0%   { transform: translateY(-50%) translateX(3vw); }
  100% { transform: translateY(-50%) translateX(22vw); }
}
@keyframes l13drift {
  0%   { transform: translateX(calc(-50% - 40px)) scaleX(0.86); }
  100% { transform: translateX(calc(-50% + 40px)) scaleX(0.86); }
}
#l11 h1 { font-size: clamp(3rem, 9vw, 11rem) !important; white-space: nowrap !important; }

/* ── Escena 10: Terminal IA ── */
#l10 {
  background: #080808;
}
.terminal-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6vw;
}
.terminal-line {
  font-family: 'Fira Code', 'Share Tech Mono', monospace;
  font-size: clamp(2rem, 5.2vw, 7rem);
  color: #00e535;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1;
}
.t-bracket { color: #009922; }
.t-tag     { color: #00bb2a; }
.t-cursor  {
  display: inline-block;
  width: 0.52em;
  height: 0.9em;
  background: #00e535;
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: tBlink 1s step-end infinite;
}
@keyframes tBlink {
  50% { opacity: 0; }
}

/* ── Escena 8: O en pequeñito ── */
#l8 h1 {
  font-family: 'Oswald', sans-serif !important;
  font-weight: 600 !important;
  font-size: clamp(0.65rem, 1vw, 1.3rem) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  white-space: nowrap !important;
  color: #1a1a1a !important;
  position: absolute !important;
  left: 50% !important;
  top: 38% !important;
  transform: none !important;
  animation: swim 3.8s ease-in-out infinite !important;
}
@keyframes swim {
  0%   { translate: 0px 0px; }
  15%  { translate: 24px -8px; }
  30%  { translate: 36px 14px; }
  50%  { translate: 18px 32px; }
  65%  { translate: -8px 26px; }
  80%  { translate: -18px 10px; }
  100% { translate: 0px 0px; }
}

/* ── Escena 7: A lo grande ── */
#l7 h1 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
  font-weight: 900 !important;
  font-size: 27vw !important;
  line-height: 0.88 !important;
  letter-spacing: -0.01em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  white-space: normal !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  bottom: auto !important;
  width: 100% !important;
  transform: translate(-50%, -50%) !important;
  transform-origin: center center !important;
  padding: 0 2vw !important;
}

/* ── Escenas con video de fondo ── */
.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-txt {
  position: relative;
  z-index: 2;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  transform: scaleX(0.86);
  transform-origin: left center;
  font-size: clamp(3rem, 11vw, 13rem);
  color: #ffffff;
  white-space: nowrap;
  text-shadow: none;
}

.left-txt {
  position: absolute;
  left: 5vw;
  bottom: calc(4rem + 5rem);
  transform: scaleX(0.86);
  transform-origin: left center;
}

/* ── Texto pequeñito ── */
.small-txt {
  position: absolute;
  z-index: 2;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
  font-size: clamp(1rem, 2.2vw, 2.8rem);
  color: #1a1a1a;
  white-space: nowrap;
  left: 50%;
  top: 50%;
  transform: translate(-10%, -50%);
}

/* ── Escena 9: Layout locución + onda ── */
.loc-layout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
#l9 h1 {
  font-size: clamp(1.8rem, 5.5vw, 6rem);
  white-space: normal;
  line-height: 1.05;
  text-align: center;
  padding: 0 6vw;
  position: relative;
  z-index: 2;
}
.wave-canvas {
  position: relative;
  width: 100vw;
  height: 140px;
  display: block;
  pointer-events: none;
  flex-shrink: 0;
  overflow: hidden;
}

/* ── Escena 9: texto ondulado ── */
#l9 h1 .wave-letter {
  display: inline-block;
  animation: letterWave 2.4s ease-in-out infinite;
  animation-play-state: paused;
}
#l9.wave-active h1 .wave-letter {
  animation-play-state: running;
}
@keyframes letterWave {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ── Escena 18: Fondo oscuro ── */
.dark-layer { background: #1a1a1a; z-index: 6; }
.triple-txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  padding: 0 6vw;
}
.triple-line {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  font-size: clamp(2rem, 5.5vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  transform: scaleX(0.86);
  transform-origin: center;
}
.triple-line--long {
  font-size: clamp(1.1rem, 2.8vw, 3.2rem);
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-top: 0.5rem;
  line-height: 1.2;
}

/* ── Escena 18: contadores ── */
#l18 .triple-line { font-size: clamp(3rem, 7vw, 9rem); }
.stats-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(3rem, 8vw, 9rem);
  margin-top: clamp(1.5rem, 3vw, 3rem);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}
#l18.active .stats-row { opacity: 1; transform: translateY(0); }
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.stat-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(1.68rem, 3.36vw, 4.2rem);
  color: #000000;
  letter-spacing: -0.01em;
  line-height: 1;
  padding-bottom: 0.5rem;
}
.stat-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(0.75rem, 1.1vw, 1.1rem);
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0;
  border-top: 0.5px solid #000000;
  padding-top: 0.45rem;
  width: 100%;
  text-align: center;
}

/* ── Escena 23: WhatsApp ── */
.wa-scene { background: #e8ede3; justify-content: flex-end; padding-right: 12vw; }
.wa-bubble {
  display: flex;
  align-items: center;
  gap: 0.7em;
  background: #d9f7be;
  padding: 1.1em 1.8em;
  border-radius: 18px;
  max-width: 72vw;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: none;
}
.layer.active .wa-bubble {
  animation: waPop 0.22s cubic-bezier(0.18, 0.89, 0.32, 1.1) 0.15s forwards;
}
@keyframes waPop {
  0%   { opacity: 0; transform: translateY(18px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    }
}
.wa-emoji { font-size: clamp(1.8rem, 3.5vw, 4rem); line-height: 1; }
.wa-text {
  font-family: -apple-system, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 3.8rem);
  color: #111;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Escena 19: CTA ── */
.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;
}
.cta-brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  font-size: clamp(2.8rem, 9vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  transform: scaleX(0.86);
  transform-origin: center;
  white-space: nowrap;
}
.cta-question {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  color: #1a1a1a;
  font-size: clamp(0.75rem, 1.4vw, 1.8rem);
  letter-spacing: 0;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translateX(-50%);
  bottom: auto;
}

/* ── Escenas con texto largo sobre fondo gris ── */
.layer.mid-txt h1 {
  font-size: clamp(2.4rem, 8vw, 8.5rem);
  white-space: normal;
  text-align: center;
  line-height: 1.0;
  max-width: 88vw;
}

/* ── Escena 1: tamaño ligeramente mayor que el resto de escenas ── */
#l1h1 { font-size: clamp(3rem, 12.5vw, 10.5rem); }

/* ── Escena 1: modo Playfair (display cursiva, todo minúsculas salvo "Lo") ── */
#l1h1.playfair-mode {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  text-transform: none !important;
}
/* "Historia" → "historia" en modo Playfair */
#l1h1.playfair-mode .strike-wrap { text-transform: lowercase; }

/* ── Cursor escena 1 ── */
.l1-cursor {
  display: inline-block;
  width: 3px;
  height: 0.7em;
  background: #1a1a1a;
  vertical-align: baseline;
  margin-left: 4px;
  opacity: 0;
}
.l1-cursor.visible { animation: l1Blink 1s step-end infinite; }
@keyframes l1Blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ── Animaciones sutiles por escena ── */
.layer.active .anim-from-left  { animation: aFromLeft  0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.layer.active .anim-from-right { animation: aFromRight 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.layer.active .anim-rise       { animation: aRise      0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.layer.active .anim-blur-in    { animation: aBlurIn    0.65s ease both; }
.layer.active .anim-pop        { animation: aPop       0.5s  cubic-bezier(0.34, 1.25, 0.64, 1) both; }

@keyframes aFromLeft {
  from { opacity: 0; translate: -48px 0; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes aFromRight {
  from { opacity: 0; translate: 48px 0; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes aRise {
  from { opacity: 0; translate: 0 28px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes aBlurIn {
  from { opacity: 0; filter: blur(14px); translate: 0 10px; }
  to   { opacity: 1; filter: blur(0px);  translate: 0 0; }
}
@keyframes aPop {
  0%   { opacity: 0; translate: 0 24px; }
  55%  { opacity: 1; translate: 0 -7px; }
  100% { opacity: 1; translate: 0 0; }
}

/* Escena 18: entradas escalonadas */
.layer.active .anim-line-1 { animation: aRise 0.5s 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.layer.active .anim-line-2 { animation: aRise 0.5s 0.50s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.layer.active .anim-line-3 { animation: aRise 0.5s 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

/* Escena 19: pregunta con retardo */
.layer.active .anim-cta-q  { animation: aRise 0.55s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

/* Escena 6: "Texto" con entrada elástica */
.layer.active .anim-elastic { animation: aElastic 0.7s cubic-bezier(0.34, 1.65, 0.64, 1) both; }
@keyframes aElastic {
  0%   { opacity: 0; scale: 0.45; }
  100% { opacity: 1; scale: 1; }
}

/* ── Word-punch (escenas "En Coronel Truman...") ── */
.word-punch {
  display: inline-block;
  opacity: 0;
  transform: scale(1.35);
  transform-origin: center center;
  will-change: transform, opacity;
}
.word-punch.hit {
  animation: wordPunch 0.28s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}
@keyframes wordPunch {
  0%   { opacity: 0; transform: scale(1.35); }
  55%  { opacity: 1; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1);    }
}

/* ── Ticker escenas 24/26/25 ── */
#redTicker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 4;
  /* Sin overflow:hidden — el .stage ya recorta el viewport */
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}
#redTicker.active { opacity: 1; }
.ticker-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 7s linear infinite;
  animation-play-state: paused;
}
#redTicker.active .ticker-track {
  animation-play-state: running;
}
.ticker-track span {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 7.5vw, 9rem);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
  line-height: 1;
  transform: scaleX(0.86);
  transform-origin: left center;
  display: inline-block;
}
/*
  Arranca con el texto en el tercio derecho (50vw desde izquierda),
  se desplaza -50% del elemento (= una copia exacta) → bucle seamless.
  La izquierda queda limpia al inicio y el texto entra visiblemente.
*/
@keyframes tickerScroll {
  0%   { transform: translateX(50vw); }
  100% { transform: translateX(calc(50vw - 50%)); }
}

/* ── Modal contacto (home) ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,20,20,0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal {
  background: #fff; border-radius: 10px;
  width: min(560px, 90vw);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  position: relative; padding: 3rem 3.2rem;
}
.contact-modal .modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,0.22); transition: color 0.2s;
}
.contact-modal .modal-close:hover { color: #1a1a1a; }
.contact-title {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  text-transform: uppercase; letter-spacing: -0.02em;
  color: #1a1a1a; text-align: center; margin-bottom: 2rem; line-height: 1;
}
.contact-field { margin-bottom: 0.7rem; }
.contact-field input, .contact-field textarea {
  width: 100%; font-family: 'Oswald', sans-serif;
  font-weight: 500; font-size: 0.92rem;
  letter-spacing: 0; text-transform: uppercase;
  color: #1a1a1a; background: #F0EAEA; border: none;
  padding: 1.3rem 1.5rem; outline: none; resize: none;
  transition: background 0.2s; display: block; box-sizing: border-box;
}
.contact-field input::placeholder, .contact-field textarea::placeholder { color: rgba(0,0,0,0.32); }
.contact-field input:focus, .contact-field textarea:focus { background: #e3ddd6; }
.contact-field textarea { min-height: 150px; }
.contact-submit {
  width: 58%; margin: 1.2rem auto 0;
  padding: 1.2rem 1.5rem; background: #F0EAEA; color: #1a1a1a;
  border: none; font-family: 'Oswald', sans-serif;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer;
  display: block; box-sizing: border-box;
  transition: background 0.25s, color 0.25s;
}
.contact-submit:hover { background: #1a1a1a; color: #fff; }
.contact-submit.sending { opacity: 0.5; pointer-events: none; }
.contact-success {
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; padding: 1rem 0 0.5rem; text-align: center;
}
.contact-success.visible { display: flex; }
.contact-success svg { color: #2a9d8f; }
.contact-success p {
  font-family: 'Oswald', sans-serif; font-weight: 500;
  font-size: 1rem; letter-spacing: 0.06em;
  text-transform: uppercase; line-height: 1.5; color: #1a1a1a;
}


