/* ===========================================================
   EXPERIENCIA CINEMATOGRÁFICA · BautistaBallers
   Recorrido scroll-driven: vestuario → túnel → estadio lleno
   =========================================================== */

.cine-body {
  margin: 0;
  background: #05070d;
  overflow-x: hidden;
}

/* Lienzo 3D fijo detrás de todo */
.cine-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}

.cine-fallback {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text);
  z-index: 1;
  padding: 24px;
}
.cine-fallback[hidden] { display: none; }
.cine-fallback a { color: var(--green); }

/* Header transparente sobre la escena */
.cine-header {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.cine-header .brand,
.cine-header .nav-link { color: #fff; }
.cine-header .nav-link:hover { color: var(--green); }

/* ---------- Overlay de texto ---------- */
.cine-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.cine-eyebrow {
  position: absolute;
  top: calc(50% - 165px);
  left: 0; right: 0;
  font-family: var(--font-body);
  letter-spacing: 0.5em;
  font-size: 0.85rem;
  color: var(--green);
  margin: 0;
  text-indent: 0.5em;
  opacity: 0;
}
@media (max-width: 600px) { .cine-eyebrow { top: calc(50% - 110px); } }

/* Cada fase se apila en el mismo punto; el JS controla la opacidad */
.cine-phase {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  will-change: opacity;
}

.cine-title {
  font-family: var(--font-hook);
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.55);
}
.cine-title .title-char { display: inline-block; will-change: transform, opacity; }

.cine-sub {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cine-sub span {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  letter-spacing: 0.08em;
  color: rgba(240,240,240,0.9);
  text-transform: uppercase;
}

/* ---------- HUD: scroll + progreso ---------- */
.cine-hud {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 26px;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.4s ease;
}
.scroll-hint span {
  font-family: var(--font-body);
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  text-indent: 0.3em;
}
.scroll-hint-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

.cine-progress {
  width: min(320px, 60vw);
  height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.cine-progress-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--azul), var(--naranja));
  box-shadow: 0 0 12px rgba(36, 80, 255, 0.8);
  transition: transform 0.1s linear;
}

/* Espaciador que crea la longitud de scroll del recorrido */
.cine-spacer {
  position: relative;
  height: 420vh;
  z-index: 1;
  pointer-events: none;
}

/* ---------- CLÍMAX: contenido opaco que cubre la escena ---------- */
.post-cine {
  position: relative;
  z-index: 5;
  background: var(--bg);
  box-shadow: 0 -40px 80px 40px var(--bg);
}

.quiz-kicker {
  font-family: var(--font-body);
  letter-spacing: 0.4em;
  font-size: 0.85rem;
  color: var(--green);
  text-align: center;
  margin: 0 0 10px;
  text-indent: 0.4em;
}
.quiz-headline {
  font-family: var(--font-hook);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 22px;
  color: #fff;
  text-wrap: balance;
}
.quiz-back {
  text-align: center;
  margin-top: 30px;
}
.quiz-back a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.quiz-back a:hover { color: var(--green); }

/* La sección del quiz respira sobre fondo oscuro */
.post-cine .cta-section { padding-top: 90px; }

/* CTA "Entrena conmigo", modal y formulario -> movidos a styles.css
   (usados en index.html) */

@media (max-width: 600px) {
  .cine-sub span { letter-spacing: 0.05em; }
  .cine-spacer { height: 360vh; }
}
