/* =============================================================
   ACTO VOLTAJE · WEB v2 · base compartida (borrador de estilo)
   Una sola función: prólogo, tres actos, intermedio y telón.
   Motion: transform / opacity / clip-path. Curvas de Emil Kowalski.
   ============================================================= */

:root {
  /* marca: cuatro trazos */
  --navy: #093160;
  --ink: #04152b;          /* fondo escenario, navy hundido */
  --ink-2: #071f3d;
  --electric: #0F92B2;
  --yellow: #FFB700;
  --teal: #00B497;
  --coral: #FF6B7E;
  --rosa: #FF6B7E;        /* solo atmósfera: auras, telón y el degradado del hero. Texto = un acento (amarillo) */

  --fg: #F4F7FB;
  --fg-2: #B6C8E0;
  --fg-3: #7E95B6;
  --line: rgba(var(--tint), 0.16);

  --display: "Maven Pro", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;

  /* curvas (emil-design-eng) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* forma: interactivo = pill, superficies = 22px */
  --r: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 32px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
.skip { position: fixed; left: 12px; top: 12px; z-index: 400; padding: 10px 16px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform 200ms var(--ease-out); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }

/* grano de película sobre todo el escenario */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- tipografía común ---------- */
.brk { color: var(--yellow); font-weight: 500; letter-spacing: -0.04em; }
.h2 {
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.h2 em, .poster-claim em { font-style: normal; color: var(--yellow); }
/* rosa: solo atmósfera. Un único gesto en texto: el degradado de los orbes */
.glow {
  background: linear-gradient(90deg, var(--yellow) 0%, #F2A07A 55%, var(--rosa) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

/* auras: degradados de la marca que dan aire entre actos */
.aura {
  position: absolute; z-index: 0; pointer-events: none;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  opacity: 0.5;
}
.aura--rosa { background: radial-gradient(circle, rgba(255, 107, 126, 0.42), rgba(242, 160, 122, 0.14) 38%, transparent 66%); }
.aura--teal { background: radial-gradient(circle, rgba(0, 180, 151, 0.36), rgba(15, 146, 178, 0.12) 40%, transparent 66%); }
.aura--yellow { background: radial-gradient(circle, rgba(255, 183, 0, 0.36), rgba(242, 229, 65, 0.1) 40%, transparent 66%); }
.aura--spectrum { background: radial-gradient(circle at 40% 40%, rgba(0, 180, 151, 0.34), transparent 45%), radial-gradient(circle at 62% 62%, rgba(255, 183, 0, 0.3), transparent 45%), radial-gradient(circle at 70% 35%, rgba(255, 107, 126, 0.3), transparent 42%); }
.aura--sunrise { background: radial-gradient(circle at 50% 55%, rgba(255, 183, 0, 0.36), rgba(255, 107, 126, 0.2) 34%, transparent 64%); }
@media (prefers-reduced-motion: no-preference) {
  .aura { animation: drift 22s var(--ease-in-out) infinite alternate; }
  @keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4vw, 3vh, 0) scale(1.08); } }
}
.leit, .acts, .interlude, .telon { position: relative; overflow: clip; }
.leit > .shell, .acts > .shell, .interlude > .shell, .telon > .shell { position: relative; z-index: 1; }
.leit .aura--rosa { right: -28vmax; top: -10vmax; }
.leit .aura--teal { left: -34vmax; bottom: -30vmax; opacity: 0.4; animation-delay: -8s; }
.acts .aura--spectrum { left: -20vmax; top: 30%; opacity: 0.4; }
.interlude .aura--sunrise { left: 50%; top: 50%; margin: -35vmax 0 0 -35vmax; opacity: 0.55; }
.telon .aura--yellow { left: -30vmax; bottom: -40vmax; }
.telon .aura--rosa { right: -34vmax; top: -30vmax; opacity: 0.35; animation-delay: -11s; }
.h2--xl { font-size: clamp(2.2rem, 5.4vw, 4.8rem); max-width: 14ch; }

/* marca de acto: el hilo conductor de toda la página */
.act-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-3);
}
.act-mark b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  background: var(--yellow);
  padding: 4px 12px 5px;
  border-radius: 999px;
  letter-spacing: 0;
}
.act-mark--center { display: flex; justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 14px;
  text-decoration: none;
  color: var(--fg);
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 260ms var(--ease-out), color 200ms ease;
}
.link-arrow i { font-style: normal; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { color: var(--yellow); }
  .link-arrow:hover i { transform: translateX(4px); }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px;
  text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn i { font-style: normal; transition: transform 200ms var(--ease-out); }
.btn:has(.btn-ico) { padding-right: 8px; }
.btn-ico {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(4, 21, 43, 0.12);
  font-size: 15px;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(255, 183, 0, 0.55); }
.btn--ghost { color: var(--fg); box-shadow: inset 0 0 0 1px rgba(var(--tint), 0.35); background: rgba(4, 21, 43, 0.25); backdrop-filter: blur(8px); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #ffc633; }
  .btn--primary:hover .btn-ico { transform: translate(2px, -1px) scale(1.05); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--fg); }
}

/* =============================================================
   TELÓN DE APERTURA
   ============================================================= */
.curtain {
  position: fixed; inset: 0; z-index: 250;
  display: grid; grid-template-columns: 1fr 1fr;
  pointer-events: none;
}
.curtain-panel {
  position: relative;
  /* terciopelo: pliegues + caída de luz */
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35), transparent 22%, transparent 70%, rgba(0,0,0,0.45)),
    repeating-linear-gradient(90deg,
      #06234a 0, #0b3466 22px, #0e3c74 34px, #0a2f5c 52px, #051d3f 70px);
  transition: transform 1150ms var(--ease-in-out);
}
.curtain-panel::after { /* fleco dorado */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 3px, transparent 3px 8px);
  mask: linear-gradient(180deg, #000, transparent);
  opacity: 0.8;
}
.curtain-panel--l { box-shadow: inset -30px 0 60px rgba(0,0,0,0.5); }
.curtain-panel--r { box-shadow: inset 30px 0 60px rgba(0,0,0,0.5); }
.curtain-logo {
  position: absolute; left: 50%; top: 50%;
  width: min(280px, 60vw);
  transform: translate(-50%, -50%);
  transition: opacity 260ms ease, transform 400ms var(--ease-out);
}
.is-open .curtain-panel--l { transform: translateX(-101%); }
.is-open .curtain-panel--r { transform: translateX(101%); }
.is-open .curtain-logo { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
.is-open .curtain { visibility: hidden; transition: visibility 0s 1200ms; }
.no-intro .curtain { display: none; }

/* =============================================================
   NAV + PROGRAMA DE MANO
   ============================================================= */
.nav {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 100;
  max-width: 1400px; margin-inline: auto;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: 18px 10px;
  border-radius: 999px;
  transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}
.nav.is-solid {
  background: rgba(4, 21, 43, 0.7);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.08), inset 0 1px 0 rgba(var(--hl), 0.08), 0 20px 40px -24px rgba(1, 8, 20, 0.8);
}
.nav-logo img { height: 30px; width: auto; }
.nav-program {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 16px 0 6px;
  border-radius: 999px;
  background: rgba(var(--tint), 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono); font-size: 12.5px; color: var(--fg-2);
  white-space: nowrap;
}
.nav-program-act {
  background: var(--yellow); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 13px;
  padding: 3px 10px 4px; border-radius: 999px;
}
.nav-program [data-act-num], .nav-program [data-act-name] {
  display: inline-block;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms var(--ease-out);
}
.nav-program.is-swapping [data-act-num],
.nav-program.is-swapping [data-act-name] { opacity: 0; filter: blur(3px); transform: translateY(4px); }

.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.nav-seats { font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); display: inline-flex; align-items: center; gap: 8px; }
.nav-seats i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0, 180, 151, 0.18); }
.nav-menu {
  display: inline-flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 8px 0 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--fg); color: var(--ink); font-weight: 700; font-size: 15px;
  transition: transform 160ms var(--ease-out);
}
.nav-menu:active { transform: scale(0.97); }
.nav-menu-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); display: grid; place-content: center; gap: 4px; }
.nav-menu-icon i { display: block; width: 12px; height: 1.5px; background: var(--fg); transition: transform 240ms var(--ease-out); }
.nav-menu[aria-expanded="true"] .nav-menu-icon i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-menu[aria-expanded="true"] .nav-menu-icon i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.nav-progress {
  position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--coral), var(--electric), var(--teal));
  transform: scaleX(0); transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .nav-progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  .nav { grid-template-columns: auto 1fr auto; gap: 10px; top: 8px; left: 8px; right: 8px; padding-inline: 14px 8px; }
  .nav-logo img { height: 24px; }
  .nav-seats { display: none; }
  .nav-program { justify-self: center; font-size: 11.5px; padding-right: 12px; }
  .nav-menu > span:first-child { display: none; }
  .nav-menu { padding: 0 6px; }
}
@media (max-width: 380px) { .nav-program [data-act-name] { display: none; } }

/* ---------- menú ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 21, 43, 0.97);
  display: grid; align-content: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  opacity: 0;
  transition: opacity 240ms ease;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu ol { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; }
.menu a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(2.2rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08;
  text-decoration: none;
  transform: translateY(105%);
  transition: transform 520ms var(--ease-out), color 200ms ease;
}
.menu a small { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--yellow); letter-spacing: 0; width: 28px; }
.menu.is-open a { transform: none; }
@media (hover: hover) and (pointer: fine) { .menu a:hover { color: var(--yellow); } }
.menu-foot { font-family: var(--mono); font-size: 14px; color: var(--fg-2); margin-top: 40px; }

/* =============================================================
   PRÓLOGO · ESCENARIO
   ============================================================= */
.hero { padding: calc(var(--nav-h) + 22px) clamp(10px, 1.6vw, 22px) clamp(10px, 1.6vw, 22px); }
.stage {
  position: relative;
  height: calc(100dvh - var(--nav-h) - clamp(14px, 3.2vw, 44px));
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  /* arco de proscenio */
  border-radius: 46% 46% var(--r) var(--r) / 16% 16% var(--r) var(--r);
  background: var(--navy);
}
.stage-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3;
  /* tratamiento v1: mano cian fundida sobre el navy */
  filter: brightness(1.05) contrast(1.1) saturate(0.2) hue-rotate(180deg);
  mix-blend-mode: screen;
  transform: scale(1.04); transition: transform 2400ms var(--ease-out);
}
.is-open .stage-video { transform: scale(1); }
.stage-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 65% 50%, rgba(15, 146, 178, 0) 0%, rgba(9, 49, 96, 0.55) 50%, rgba(9, 49, 96, 0.88) 100%),
    linear-gradient(90deg, rgba(9, 49, 96, 0.95) 0%, rgba(9, 49, 96, 0.55) 45%, rgba(9, 49, 96, 0.25) 100%);
}
.stage-grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(var(--hl), 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--hl), 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: overlay; opacity: 0.5;
}
.stage-orb { position: absolute; z-index: -1; pointer-events: none; background-size: contain; background-repeat: no-repeat; opacity: 0; transition: opacity 1600ms ease 900ms; }
.is-open .stage-orb { opacity: 0.5; }
.stage-orb--spectrum { width: 920px; height: 920px; right: -260px; top: -200px; background-image: url("/assets/orb-spectrum.png"); filter: blur(36px); }
.stage-orb--teal { width: 520px; height: 520px; left: -180px; bottom: -160px; background-image: url("/assets/orb-teal.png"); filter: blur(48px); }
@media (prefers-reduced-motion: no-preference) {
  .stage-orb--spectrum { animation: drift 18s var(--ease-in-out) infinite alternate; }
  .stage-orb--teal { animation: drift 24s var(--ease-in-out) infinite alternate-reverse; }
}
/* foco que sigue al cursor (decorativo, solo puntero fino) */
.stage-spot {
  position: absolute; left: 0; top: 0; z-index: -1;
  width: 1400px; height: 1400px; margin: -700px 0 0 -700px;
  background: radial-gradient(circle at center, rgba(255, 220, 140, 0.16) 0, rgba(255, 220, 140, 0.05) 18%, transparent 38%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
  will-change: transform;
}
.stage.has-spot .stage-spot { opacity: 1; }

.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 clamp(20px, 5vw, 72px) clamp(56px, 8vh, 96px);
}
.hero-title {
  margin: 0 0 22px;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-line > span { display: inline-block; transform: translateY(105%); transition: transform 900ms var(--ease-out); }
.is-open .hero-line > span { transform: none; }
.is-open .hero-line:nth-child(1) > span { transition-delay: 650ms; }
.is-open .hero-line:nth-child(2) > span { transition-delay: 730ms; }
.is-open .hero-line:nth-child(3) > span { transition-delay: 810ms; }
.is-open .hero-lede > span { transition-delay: 840ms; }
.is-open .hero-ctas > span { transition-delay: 920ms; }
.no-intro .hero-line > span { transition-delay: 0ms !important; }

.ink { font-style: normal; position: relative; white-space: nowrap; }
.ink::after { /* trazo amarillo que se dibuja */
  content: ""; position: absolute; left: 0; right: 0.3em; bottom: 0.04em; height: 0.12em;
  background: var(--yellow); border-radius: 99px; z-index: -1;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 700ms var(--ease-in-out) 1250ms;
}
.is-open .ink::after { clip-path: inset(0 0 0 0); }

.hero-lede { font-size: clamp(1rem, 1.25vw, 1.2rem); color: var(--fg-2); max-width: 46ch; margin: 0 0 30px; }
.hero-ctas > span { display: flex; flex-wrap: wrap; gap: 12px; }

/* candilejas */
.footlights {
  position: absolute; left: 6%; right: 6%; bottom: 18px;
  display: flex; justify-content: space-between;
}
.footlights i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ffe7a8;
  box-shadow: 0 0 10px 2px rgba(255, 200, 90, 0.7), 0 -14px 34px 6px rgba(255, 190, 80, 0.16);
  opacity: 0;
  transition: opacity 400ms ease;
}
.is-open .footlights i { opacity: 1; }
.footlights i:nth-child(1) { transition-delay: 1000ms; } .footlights i:nth-child(2) { transition-delay: 1040ms; }
.footlights i:nth-child(3) { transition-delay: 1080ms; } .footlights i:nth-child(4) { transition-delay: 1120ms; }
.footlights i:nth-child(5) { transition-delay: 1160ms; } .footlights i:nth-child(6) { transition-delay: 1200ms; }
.footlights i:nth-child(7) { transition-delay: 1240ms; } .footlights i:nth-child(8) { transition-delay: 1280ms; }
.footlights i:nth-child(9) { transition-delay: 1320ms; } .footlights i:nth-child(10) { transition-delay: 1360ms; }
.footlights i:nth-child(11) { transition-delay: 1400ms; } .footlights i:nth-child(12) { transition-delay: 1440ms; }
.footlights i:nth-child(13) { transition-delay: 1480ms; }

@media (max-width: 760px) {
  .stage { border-radius: 50% 50% 18px 18px / 9% 9% 18px 18px; min-height: 600px; }
  .hero-copy { padding-bottom: 54px; }
  .hero-title { font-size: clamp(1.9rem, 8.6vw, 3.4rem); letter-spacing: -0.04em; }
  .stage-veil { background: radial-gradient(ellipse at 60% 30%, rgba(15,146,178,0) 0%, rgba(9,49,96,0.5) 55%, rgba(9,49,96,0.9) 100%), linear-gradient(180deg, rgba(9,49,96,0.1) 30%, rgba(9,49,96,0.95) 80%); }
  .stage-orb--spectrum { width: 360px; height: 360px; right: -150px; top: -90px; }
  .stage-orb--teal { width: 320px; height: 320px; left: -150px; bottom: -120px; }
  .is-open .stage-orb { opacity: 0.32; }
  .footlights i:nth-child(even) { display: none; }
  .btn { height: 50px; padding: 0 22px; }
}

/* =============================================================
   ELENCO · logos
   ============================================================= */
.cast { padding: 44px 0 36px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; padding-left: var(--gutter); }
.cast-label { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--fg-3); white-space: nowrap; }
.cast-track-wrap { overflow: hidden; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cast-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: slide 46s linear infinite; }
.cast-track img { height: 30px; width: auto; max-width: 132px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.5; transition: opacity 200ms ease; }
@keyframes slide { to { transform: translateX(calc(-50% - 32px)); } }
@media (hover: hover) and (pointer: fine) {
  .cast-track-wrap:hover .cast-track { animation-play-state: paused; }
  .cast-track img:hover { opacity: 1; }
}
@media (max-width: 760px) { .cast { grid-template-columns: 1fr; gap: 18px; } .cast-track { gap: 44px; } }

/* =============================================================
   ACTO I · LEIT MOTIV (texto que se ilumina al leer)
   ============================================================= */
.leit { padding: clamp(110px, 15vw, 200px) 0 clamp(96px, 12vw, 160px); position: relative; }
.leit::before { /* haz de luz cenital */
  content: ""; position: absolute; inset: 0 auto 0 50%; width: 70vw; transform: translateX(-30%);
  background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(15, 146, 178, 0.18), transparent 70%);
  pointer-events: none;
}
.leit-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; }
.leit-text {
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 40px;
  text-wrap: pretty;
}
.leit-text em { font-style: normal; color: var(--fg); }
.leit-text em.y { color: var(--yellow); }
.lit .w { display: inline; }
@supports (animation-timeline: view()) {
  .lit .w { animation: lit linear both; animation-timeline: view(); animation-range: entry 80% cover 42%; }
  @keyframes lit { from { opacity: 0.14; } to { opacity: 1; } }
}

.puppet { margin: 0; position: relative; }
.bezel {
  padding: 6px;
  border-radius: calc(var(--r) + 6px);
  background: rgba(var(--hl), 0.04);
  box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.08);
}
.puppet { transform-origin: 50% 0%; animation: sway 7s var(--ease-in-out) infinite alternate; }
.puppet img {
  width: 100%; border-radius: var(--r);
  transform-origin: 50% 0%;
  box-shadow: inset 0 1px 1px rgba(var(--hl), 0.15), 0 40px 80px -30px rgba(1, 8, 20, 0.7);
}
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
@media (max-width: 860px) {
  .leit-grid { grid-template-columns: 1fr; }
  .puppet { max-width: 360px; justify-self: center; order: -1; }
}

/* =============================================================
   ACTO II · CARTELES APILADOS
   ============================================================= */
.acts { padding: clamp(80px, 10vw, 140px) 0 clamp(56px, 7vw, 100px); }
.acts-head { margin-bottom: clamp(40px, 6vw, 72px); }
.posters { timeline-scope: --p2, --p3; }
.poster {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  height: min(80vh, 740px);
  margin-bottom: 10vh;
}
.poster:nth-child(2) { top: calc(var(--nav-h) + 38px); view-timeline: --p2 block; }
.poster:nth-child(3) { top: calc(var(--nav-h) + 56px); view-timeline: --p3 block; margin-bottom: 0; }
.poster {
  padding: 6px;
  border-radius: calc(var(--r) + 6px);
  background: rgba(var(--hl), 0.04);
  box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.08), 0 -24px 60px -28px rgba(1, 8, 20, 0.8);
  transform-origin: 50% 0%;
}
.poster-inner {
  position: relative; height: 100%;
  border-radius: var(--r); overflow: hidden;
  background: var(--navy);
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(var(--hl), 0.06);
  transform-origin: 50% 0%;
}
@supports (animation-timeline: view()) {
  .poster:nth-child(1) { animation: recede linear both; animation-timeline: --p2; animation-range: entry 0% entry 100%; }
  .poster:nth-child(2) { animation: recede linear both; animation-timeline: --p3; animation-range: entry 0% entry 100%; }
  @keyframes recede { to { transform: scale(0.93); filter: brightness(0.45); } }
}
.poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-inner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4,21,43,0.94) 0%, rgba(4,21,43,0.7) 42%, rgba(4,21,43,0.05) 80%); }
.poster--brand { --c: var(--yellow); }
.poster--media { --c: var(--electric); }
.poster--next  { --c: var(--teal); }
.poster-body {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
  padding: clamp(24px, 4vw, 52px);
}
.poster-head { display: flex; flex-direction: column; align-items: flex-start; height: 100%; }
.poster-top { display: flex; gap: 14px; align-items: center; font-family: var(--mono); font-size: 13px; margin-bottom: auto; padding-bottom: 28px; }
.tag { color: var(--ink); background: var(--c); padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.poster-no { color: var(--fg-2); }
.poster-title {
  margin: 0;
  font-size: clamp(3.2rem, 8.4vw, 8.2rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  font-weight: 900;
  color: var(--c);
}
.poster-claim { font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 18px 0 12px; max-width: 22ch; }
.poster-claim em { color: var(--c); }
.poster-intro { margin: 0 0 22px; color: var(--fg-2); max-width: 42ch; font-size: 16px; }
.poster-list {
  list-style: none; margin: 0; padding: 8px 22px;
  counter-reset: item;
  background: rgba(4, 21, 43, 0.62);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-radius: calc(var(--r) - 6px);
  box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.08);
}
.poster-list li { counter-increment: item; display: grid; grid-template-columns: 34px 1fr; column-gap: 6px; padding: 16px 0; }
.poster-list li + li { box-shadow: 0 -1px 0 var(--line); }
.poster-list li::before { content: "0" counter(item); grid-row: span 2; font-family: var(--mono); font-size: 12.5px; color: var(--c); padding-top: 3px; }
.poster-list b { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.poster-list span { color: var(--fg-2); font-size: 14.5px; line-height: 1.45; margin-top: 4px; }
@media (max-width: 900px) {
  .poster, .poster:nth-child(2), .poster:nth-child(3) { position: relative; top: auto; height: auto; margin-bottom: 20px; }
  .poster { animation: none !important; }
  .poster-img { height: 300px; }
  .poster-inner::before { background: linear-gradient(180deg, rgba(9,49,96,0.1) 0, rgba(9,49,96,0.7) 200px, var(--navy) 300px); }
  .poster-body { grid-template-columns: 1fr; padding-top: 28px; }
  .poster-top { padding-bottom: 120px; }
  .poster-list { padding: 4px 16px; }
}

/* =============================================================
   INTERMEDIO · MARQUESINA DE BOMBILLAS
   ============================================================= */
.interlude { padding: clamp(80px, 12vw, 160px) 0; }
.sign { position: relative; max-width: 1100px; margin: 0 auto; padding: 22px; border-radius: calc(var(--r) + 10px); background: #0a2448; box-shadow: 0 30px 90px -40px rgba(255, 183, 0, 0.35), inset 0 0 0 1px rgba(255, 183, 0, 0.2); }
.sign-bulbs, .sign-bulbs::after {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle, #ffe2a0 0 2.6px, rgba(255, 183, 0, 0.35) 3.4px, transparent 5.5px) 0 0 / 22px 22px;
  /* solo el marco: se recorta el interior */
  mask: linear-gradient(#000 0 0) exclude, linear-gradient(#000 0 0) content-box;
  -webkit-mask: linear-gradient(#000 0 0) xor, linear-gradient(#000 0 0) content-box;
  padding: 18px;
}
.sign-bulbs::after { content: ""; background-position: 11px 11px; opacity: 0.25; }
@media (prefers-reduced-motion: no-preference) {
  .sign.is-in .sign-bulbs { animation: chase 1.1s steps(1) infinite; }
  .sign.is-in .sign-bulbs::after { animation: chase-b 1.1s steps(1) infinite; }
  @keyframes chase { 0% { opacity: 1; } 50% { opacity: 0.3; } }
  @keyframes chase-b { 0% { opacity: 0.25; } 50% { opacity: 1; } }
}
.sign-face {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); border-radius: var(--r);
  margin: 6px;
}
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px); display: grid; gap: 10px; justify-items: center; text-align: center; }
.stat + .stat { box-shadow: -1px 0 0 var(--line); }
.stat-num { font-size: clamp(2.8rem, 5.6vw, 5rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(255, 183, 0, 0.35); }
.stat-label { font-family: var(--mono); font-size: 13px; color: var(--fg-2); }
@media (max-width: 760px) {
  .sign-face { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { box-shadow: 0 -1px 0 var(--line); }
  .stat:nth-child(4) { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
}

/* =============================================================
   ACTO III · ENTRADAS (scroll horizontal)
   ============================================================= */
.works { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 12vw, 160px); }
.works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.works-nav { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(var(--tint), 0.08); box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.round:active { transform: scale(0.94); }
.round:disabled { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .round:not(:disabled):hover { background: var(--yellow); color: var(--ink); } }

.tickets {
  display: flex; gap: 22px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 12px var(--gutter) 28px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}
.tickets::-webkit-scrollbar { display: none; }
.tickets.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.tickets.is-dragging .ticket { pointer-events: none; }
@media (min-width: 1400px) { .tickets { padding-inline: calc((100vw - 1400px) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - 1400px) / 2 + var(--gutter)); } }

.ticket {
  --notch: var(--ink);
  flex: 0 0 auto; width: min(460px, 84vw);
  display: grid; grid-template-columns: 1fr 64px;
  scroll-snap-align: start;
  text-decoration: none;
  border-radius: var(--r);
  background: #0b2a52;
  position: relative;
  transition: transform 300ms var(--ease-out);
  user-select: none;
}
.ticket-main { padding: 12px; border-right: 2px dashed rgba(var(--tint), 0.25); }
.ticket::before, .ticket::after { /* muescas de troquel */
  content: ""; position: absolute; right: 52px; width: 24px; height: 24px; border-radius: 50%; background: var(--page);
}
.ticket::before { top: -12px; } .ticket::after { bottom: -12px; }
.ticket-img { aspect-ratio: 4 / 3; border-radius: calc(var(--r) - 8px); overflow: hidden; }
.ticket-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.ticket-info { padding: 20px 10px 12px; }
.ticket-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--div); }
.ticket h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 8px; line-height: 1.05; }
.ticket p { margin: 0; color: var(--fg-2); font-size: 15.5px; max-width: 34ch; }
.ticket-stub { display: grid; place-items: center; }
.ticket-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--fg-3); white-space: nowrap; }
.ticket--more { grid-template-columns: 1fr; place-items: center; background: transparent; box-shadow: inset 0 0 0 1px var(--line); width: min(260px, 60vw); font-weight: 700; font-size: 18px; }
.ticket--more::before, .ticket--more::after { display: none; }
.ticket--more i { font-style: normal; color: var(--yellow); }
@media (hover: hover) and (pointer: fine) {
  .ticket:hover { transform: translateY(-6px) rotate(-0.6deg); }
  .ticket:hover .ticket-img img { transform: scale(1.04); }
}
@media (max-width: 760px) { .works-nav { display: none; } }

/* =============================================================
   TELÓN · CONTACTO
   ============================================================= */
.telon { padding: clamp(110px, 14vw, 180px) 0; background: var(--navy); }
.telon-stripes { /* rayas rosas de la v1: telón en la parte alta */
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 107, 126, 0.18) 28px 56px);
  opacity: 0.5;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 60%);
}
.telon-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.telon .brk { color: var(--electric); }
.telon-sub { font-size: 1.08rem; color: var(--fg-2); margin: 26px 0 0; }
.telon-sub strong { color: var(--fg); }
.telon-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid rgba(var(--hl), 0.15); max-width: 520px; }
.telon-meta dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
.telon-meta dd { margin: 0; font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.telon-meta a { color: var(--fg); text-decoration-color: var(--yellow); text-underline-offset: 4px; }

.telon-form { position: relative; padding: clamp(24px, 3vw, 34px); background: rgba(var(--hl), 0.04); box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hp { position: absolute; left: -9999px; }
.corner { position: absolute; width: 14px; height: 14px; border: 1px solid var(--yellow); }
.corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.telon-form-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 26px; }
.telon-form-head .ok { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); }
.telon-form-head .ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label, .field legend { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 8px; padding: 0; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(var(--hl), 0.28);
  padding: 10px 0; font: inherit; font-size: 1.05rem; color: var(--fg); border-radius: 0;
  outline: none; transition: border-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(var(--tint), 0.42); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--yellow); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); padding: 8px 12px; box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.22); transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out); }
.pill input:checked + span { background: var(--yellow); color: var(--navy); box-shadow: inset 0 0 0 1px var(--yellow); }
.pill input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.pill:active span { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .pill:hover input:not(:checked) + span { box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.5); color: var(--fg); } }
.btn--block { width: 100%; justify-content: space-between; margin-top: 10px; padding-left: 26px; }
@media (max-width: 900px) { .telon-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } .telon-meta { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer-logo { height: 34px; width: auto; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.footer-links a, .footer-legal a { text-decoration: none; color: var(--fg-2); font-size: 15px; transition: color 200ms ease; }
.footer-legal { display: flex; gap: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }
.footer-legal a { font-size: 12.5px; color: var(--fg-3); }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover, .footer-legal a:hover { color: var(--yellow); } }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; justify-items: start; } .footer-links { justify-content: flex-start; } .footer-legal { flex-wrap: wrap; } }

/* ---------- revelado al entrar en escena ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out), filter 800ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* =============================================================
   MOVIMIENTO REDUCIDO: menos y más suave, no cero
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  .hero-line > span, [data-reveal] { transform: none !important; transition: opacity 300ms ease !important; }
  .hero-line > span { opacity: 1; }
  .stage-video { transform: none; }
  .ink::after { clip-path: none; transition: none; }
  .puppet, .cast-track { animation: none; }
  .cast-track-wrap { overflow-x: auto; }
  .poster, .lit .w, .aura, .stage-orb { animation: none !important; }
  .stage-spot { display: none; }
  .menu a { transform: none; transition: color 200ms ease; }
  .ticket, .ticket-img img { transition: none; }
}
