/* =========================================================
   Noche Mágica — hoja de estilos
   Paleta: azul medianoche, dorado cálido, rojo profundo, blanco nevado.
   ========================================================= */

:root {
  --midnight-900: #0a0e1f;
  --midnight-800: #0e1430;
  --midnight-700: #141c40;
  --midnight-600: #202a56;
  --gold-500: #e6b45f;
  --gold-400: #f0c97e;
  --gold-300: #f6dba3;
  --red-600: #8c2230;
  --red-500: #a8293a;
  --snow-100: #f4efe4;
  --snow-050: #fbf8f1;
  --ink-soft: #c9cde0;

  --bg: var(--midnight-900);
  --surface: var(--midnight-800);
  --surface-raised: var(--midnight-700);
  --text: var(--snow-100);
  --text-muted: var(--ink-soft);
  --accent: var(--gold-500);
  --accent-soft: var(--gold-300);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --tshadow: 0 1px 2px rgba(5, 5, 14, 0.95), 0 3px 14px rgba(5, 5, 14, 0.78),
    0 10px 46px rgba(5, 5, 14, 0.8);

  --radius-md: 14px;
  --radius-lg: 22px;
}

/* ---------- Reset base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ---------- Skip link / accesibilidad ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -120%;
  background: var(--gold-500);
  color: var(--midnight-900);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Fondo ambiente fijo (un solo "mundo") ---------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(
      ellipse 120% 60% at 50% -10%,
      rgba(230, 180, 95, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, var(--midnight-900) 0%, #090c1a 100%);
  pointer-events: none;
}

.ambient-snow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body.paused * ,
body.paused *::before,
body.paused *::after {
  animation-play-state: paused !important;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  pointer-events: none;
}
.site-nav .brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--snow-050);
  text-shadow: var(--tshadow);
  pointer-events: auto;
}
.site-nav .brand strong {
  color: var(--gold-400);
  font-weight: 600;
}
.progress-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--snow-050);
  background: rgba(10, 12, 24, 0.5);
  border: 1px solid rgba(230, 180, 95, 0.25);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}
.progress-pill.visible {
  opacity: 1;
  transform: translateY(0);
}
.progress-pill .progress-track {
  position: relative;
  width: 64px;
  height: 3px;
  background: rgba(244, 239, 228, 0.2);
  border-radius: 3px;
  overflow: hidden;
}
.progress-pill .progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--gold-400);
  border-radius: 3px;
}

/* =========================================================
   HERO — secuencia controlada por scroll
   ========================================================= */
.hero-wrapper {
  position: relative;
  width: 100%;
  /* alto total asignado por JS segun la suma de "vh" de las escenas */
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: #04060f;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.6s var(--ease-soft);
}
.hero-stage.sequence-ready .hero-poster {
  opacity: 0;
}

/* Scrim global, siempre encendido para que ningun frame quede crudo */
.hero-scrim-global {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 120% 90% at 50% 42%,
    rgba(8, 10, 20, 0) 32%,
    rgba(8, 10, 20, 0.6) 100%
  );
}

/* Vineta oscura en bordes */
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 18vw rgba(4, 5, 12, 0.65);
}

/* Anillo de carga */
.load-ring-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s var(--ease-soft);
}
.hero-stage.sequence-ready .load-ring-wrap {
  opacity: 0;
}
.load-ring {
  width: 52px;
  height: 52px;
  color: var(--gold-400);
}
.load-ring circle {
  transition: stroke-dashoffset 0.15s linear;
}
.load-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--snow-050);
  text-shadow: var(--tshadow);
}

/* Cue inicial de scroll */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 5vh, 3rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--snow-050);
  text-shadow: var(--tshadow);
  z-index: 5;
  opacity: 1;
  transition: opacity 0.5s var(--ease-soft);
}
.scroll-cue span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue svg {
  width: 20px;
  height: 20px;
  animation: cue-bob 2.1s ease-in-out infinite -0.8s;
}
.hero-stage[data-scrolled="true"] .scroll-cue {
  opacity: 0;
  pointer-events: none;
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ---------- Bandas de texto (captions) ---------- */
.caption-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.band {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  padding: 0 clamp(1.5rem, 7vw, 6rem);
  opacity: 0;
  text-shadow: var(--tshadow);
}
.band::before {
  content: "";
  position: absolute;
  inset: -6%;
  pointer-events: none;
  opacity: calc(0.25 + 0.75 * var(--k, 1));
  background: radial-gradient(
    ellipse 78% 60% at 50% 50%,
    rgba(5, 5, 12, 0.66) 0%,
    rgba(5, 5, 12, 0.42) 46%,
    rgba(5, 5, 12, 0) 76%
  );
}

.band-main {
  top: 0;
  height: 100%;
  align-items: flex-end;
  padding-bottom: clamp(3.5rem, 12vh, 7rem);
}
.band-main .band-inner {
  position: relative;
  max-width: 44ch;
}
.band-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.9rem;
  display: inline-block;
}
.band-title {
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  color: var(--snow-050);
  margin-bottom: 0.9rem;
}
.band-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--snow-100);
  max-width: 38ch;
  font-weight: 400;
}

.band-whisper {
  top: 0;
  height: 100%;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: clamp(5.5rem, 16vh, 8rem);
}
.band-whisper .chip {
  position: relative;
  background: rgba(8, 8, 16, 0.55);
  border: 1px solid rgba(230, 180, 95, 0.28);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--gold-300);
  max-width: 30ch;
  text-align: right;
  text-shadow: 0 1px 3px rgba(5, 5, 10, 0.85);
}

/* Palabras / caracteres partidos para la coreografia de entrada */
.split-word {
  display: inline-block;
  white-space: pre;
}
.split-char {
  display: inline-block;
}

/* --- entrance: drift-down --- */
[data-entrance="drift-down"] .split-word {
  --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.8, 1);
  opacity: var(--kc);
  transform: translateY(calc((1 - var(--kc)) * -22px));
}

/* --- entrance: scatter --- */
[data-entrance="scatter"] .split-char {
  --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.6, 1);
  opacity: var(--kc);
  transform: translate(
      calc((1 - var(--kc)) * var(--jx, 0px)),
      calc((1 - var(--kc)) * var(--jy, 0px))
    )
    rotate(calc((1 - var(--kc)) * var(--jr, 0deg)));
}

/* --- entrance: approach-depth --- */
[data-entrance="approach-depth"] .band-title,
[data-entrance="approach-depth"] .band-sub {
  opacity: var(--k, 0);
  transform: scale(calc(0.88 + 0.12 * var(--k, 0)));
  transform-origin: left center;
}

/* --- entrance: word-punch --- */
[data-entrance="word-punch"] .split-word {
  --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 3, 1);
  opacity: var(--kc);
  transform: scale(calc(0.6 + 0.52 * var(--kc) - 0.12 * var(--kc)));
}

/* --- entrance: blur-sharp --- */
[data-entrance="blur-sharp"] .blur-copy {
  position: absolute;
  inset: 0;
  opacity: calc(1 - var(--k, 0));
  filter: blur(9px);
}
[data-entrance="blur-sharp"] .sharp-copy {
  opacity: var(--k, 0);
}

/* --- entrance: grid-snap --- */
[data-entrance="grid-snap"] .split-char {
  --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.6, 1);
  opacity: var(--kc);
  transform: translateX(calc((1 - var(--kc)) * var(--jx, 18px)));
}

/* --- entrance: rise-settle --- */
[data-entrance="rise-settle"] .split-word {
  --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.8, 1);
  opacity: var(--kc);
  transform: translateY(calc((1 - var(--kc)) * 26px));
}
[data-entrance="rise-settle"] .band-sub {
  --ks: clamp(0, (var(--k, 0) - 0.62) * 4, 1);
  opacity: var(--ks);
  transform: translateY(calc((1 - var(--ks)) * 10px));
}

/* =========================================================
   Secciones bajo el heroe
   ========================================================= */
.page-sections {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--midnight-900) 0%, var(--midnight-800) 100%);
}

.section {
  position: relative;
  padding: clamp(4.5rem, 10vh, 7.5rem) clamp(1.25rem, 6vw, 4rem);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  display: block;
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--snow-050);
  max-width: 24ch;
}

.section-lede {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  max-width: 54ch;
}

/* Entradas por interseccion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.retire > * { transition-delay: 0ms !important; }

/* ---------- Linea dorada que conecta las secciones (elemento firma) ---------- */
.magic-thread {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}
.magic-thread svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.magic-thread path {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  opacity: 0.5;
}
.magic-thread .thread-draw {
  stroke-dasharray: var(--len, 2000);
  stroke-dashoffset: var(--len, 2000);
  opacity: 0.85;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.magic-thread .thread-draw.drawn {
  stroke-dashoffset: 0;
}

/* ---------- Intro ---------- */
.intro-section {
  text-align: center;
}
.intro-section .section-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.intro-section .section-title {
  max-width: none;
}

/* ---------- Pasos "como funciona" ---------- */
.steps-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: rgba(20, 28, 64, 0.45);
  border: 1px solid rgba(230, 180, 95, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
}
.step-card .step-num {
  font-family: var(--font-mono);
  color: var(--gold-400);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.step-card h3 {
  margin-top: 0.6rem;
  font-size: 1.15rem;
  color: var(--snow-050);
}
.step-card p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Formulario de contacto ---------- */
.form-section {
  background: var(--surface);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-form {
  background: rgba(10, 13, 27, 0.55);
  border: 1px solid rgba(230, 180, 95, 0.18);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.field {
  margin-bottom: 1.2rem;
}
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.field input {
  width: 100%;
  background: rgba(244, 239, 228, 0.05);
  border: 1px solid rgba(244, 239, 228, 0.22);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--snow-050);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}
.field input::placeholder {
  color: rgba(244, 239, 228, 0.35);
}
.field input:focus {
  border-color: var(--gold-400);
  background: rgba(244, 239, 228, 0.08);
  outline: none;
}
.field small {
  display: block;
  margin-top: 0.35rem;
  color: rgba(201, 205, 224, 0.75);
  font-size: 0.78rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-shadow: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background 0.35s var(--ease-soft);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--midnight-900);
  box-shadow: 0 10px 30px rgba(230, 180, 95, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(230, 180, 95, 0.35);
}
.btn-secondary {
  background: rgba(244, 239, 228, 0.08);
  color: var(--snow-050);
  border: 1px solid rgba(244, 239, 228, 0.25);
}
.btn-secondary:hover {
  background: rgba(244, 239, 228, 0.14);
}
.btn-block {
  width: 100%;
}
@media (pointer: coarse) {
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gold-300);
  min-height: 1.2em;
}

.contact-aside {
  padding-top: 0.25rem;
}
.contact-aside ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact-aside li {
  display: flex;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact-aside li .dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 10px rgba(230, 180, 95, 0.7);
}

/* ---------- Pago ---------- */
.payment-section {
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(168, 41, 58, 0.18), transparent 60%),
    var(--midnight-900);
}
.payment-card {
  margin-top: 2.5rem;
  background: rgba(14, 18, 40, 0.65);
  border: 1px solid rgba(230, 180, 95, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
.payment-price {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--gold-400);
}
.payment-price span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.payment-list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.payment-list li::before {
  content: "✦";
  color: var(--gold-400);
  margin-right: 0.5rem;
}
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.payment-methods .btn {
  justify-content: space-between;
}
.payment-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(201, 205, 224, 0.7);
  max-width: 60ch;
}

/* ---------- Avatar HeyGen ---------- */
.avatar-section {
  background: var(--surface);
}
.avatar-shell {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 180, 95, 0.2);
  background: rgba(10, 13, 27, 0.6);
  overflow: hidden;
}
.avatar-locked {
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.avatar-locked .lock-icon {
  width: 42px;
  height: 42px;
  color: var(--gold-400);
}
.avatar-locked p {
  color: var(--text-muted);
  max-width: 44ch;
}
#heygen-avatar-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #04060f;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight-900);
  border-top: 1px solid rgba(230, 180, 95, 0.14);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 6vw, 4rem) 2rem;
}
.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--snow-050);
}
.footer-brand p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 34ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.9rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s var(--ease-soft);
}
.footer-col a:hover {
  color: var(--gold-300);
}
.footer-bottom {
  max-width: 1080px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 239, 228, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(201, 205, 224, 0.6);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .contact-layout,
  .payment-card {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .band-main .band-inner {
    max-width: 32ch;
  }
  .band-whisper .chip {
    max-width: 22ch;
  }
}

/* Pantallas bajas: ocultar overlays pequeños que no caben */
@media (max-height: 560px) {
  .scroll-cue,
  .progress-pill {
    display: none;
  }
}

/* =========================================================
   Reduced motion — honrado por completo, en vivo
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
  .magic-thread .thread-draw {
    stroke-dashoffset: 0;
  }
}

.hero-stage.static-mode .hero-canvas {
  display: none;
}
.hero-stage.static-mode .load-ring-wrap,
.hero-stage.static-mode .scroll-cue {
  display: none;
}
.hero-stage.static-mode .band {
  opacity: 1 !important;
}
.hero-stage.static-mode [data-entrance] .split-word,
.hero-stage.static-mode [data-entrance] .split-char,
.hero-stage.static-mode .band-sub,
.hero-stage.static-mode .band-title {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* =========================================================
   Historia estática (prefers-reduced-motion / sin JS)
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.static-story {
  display: none;
}
.static-scene {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(2rem, 8vh, 5rem) clamp(1.25rem, 7vw, 6rem);
  background-size: cover;
  background-position: center;
}
.static-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 20, 0.15) 0%,
    rgba(8, 10, 20, 0.78) 100%
  );
}
.static-scene h2,
.static-scene p {
  position: relative;
  color: var(--snow-050);
  text-shadow: var(--tshadow);
  max-width: 42ch;
}
.static-scene h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 0.6rem;
}
.static-scene p {
  color: var(--text-muted);
}

/* =========================================================
   Momento interactivo: encender el árbol
   ========================================================= */
.tree-interactive {
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 320px;
}
.tree-svg {
  width: 160px;
  height: 176px;
}
.tree-svg polygon {
  fill: #0f3d2a;
  stroke: rgba(230, 180, 95, 0.15);
  stroke-width: 1;
}
.tree-svg .trunk {
  fill: #4a2f1d;
}
.tree-svg .light {
  fill: rgba(230, 180, 95, 0.22);
  transition: fill 0.4s var(--ease-soft), filter 0.4s var(--ease-soft);
}
.tree-interactive[data-lit="true"] .light {
  fill: var(--gold-400);
  filter: drop-shadow(0 0 6px rgba(230, 180, 95, 0.9));
  animation: twinkle 2.6s ease-in-out infinite;
  animation-delay: calc(var(--d) * -0.3s);
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hold-btn {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  border: 1px solid rgba(230, 180, 95, 0.35);
  background: rgba(244, 239, 228, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: none;
}
.hold-fill {
  position: absolute;
  inset: 0;
  background: conic-gradient(var(--gold-400) calc(var(--p, 0) * 360deg), transparent 0deg);
  opacity: 0.85;
  transition: opacity 0.3s var(--ease-soft);
}
.hold-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--snow-050);
  background: var(--midnight-900);
  border-radius: 50%;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0.5rem;
}
.hold-help {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .tree-interactive[data-lit] .light,
  .tree-interactive .light {
    fill: var(--gold-400);
    filter: drop-shadow(0 0 6px rgba(230, 180, 95, 0.9));
  }
  .hold-btn {
    display: none;
  }
}
