/* Intro de cine (generada con Gemini y adaptada). Todas las clases empiezan por "in-". */
body.no-scroll {
  overflow: hidden !important;
  height: 100vh;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 45%, #12261B 0%, #0C1A13 48%, #07110C 100%);
  color: #E6EEDF;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  clip-path: circle(150% at 50% 50%);
  will-change: clip-path, opacity;
}

/* Capas atmosféricas y profundidad */
.in-grain-canvas {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  opacity: 0.065;
  mix-blend-mode: overlay;
  z-index: 40;
  will-change: transform;
}

.in-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 42%, rgba(7, 17, 12, 0.88) 100%);
  z-index: 35;
}

.in-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(230, 238, 223, 0.02) 0px,
    rgba(230, 238, 223, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  z-index: 36;
}

.in-alarm-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(229, 57, 79, 0.55) 0%, rgba(185, 31, 53, 0.85) 100%);
  opacity: 0;
  mix-blend-mode: screen;
  z-index: 30;
  will-change: opacity;
}

.in-spotlight {
  position: absolute;
  top: -15%;
  left: 50%;
  width: 140vmin;
  height: 140vmin;
  background: conic-gradient(
    from 162deg at 50% 0%,
    transparent 0deg,
    rgba(230, 238, 223, 0.03) 10deg,
    rgba(230, 238, 223, 0.11) 18deg,
    rgba(230, 238, 223, 0.03) 26deg,
    transparent 36deg
  );
  filter: blur(18px);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  will-change: transform, opacity;
}

/* Escenas */
.in-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 6vmin;
  z-index: 15;
}

.in-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 5vw, 4rem);
  text-align: center;
  pointer-events: none;
}

/* Escena 1: Expediente y Reloj */
.in-file-tag {
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #4E9A6A;
  margin-bottom: 0.9rem;
  opacity: 0;
}

.in-date {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.6vw, 1.45rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B2C4B1;
  margin-bottom: 0.4rem;
  opacity: 0;
}

.in-clock-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4em 0.9em;
  border: 1px solid rgba(178, 196, 177, 0.18);
  background: rgba(7, 17, 12, 0.65);
  opacity: 0;
}

.in-clock {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 8.5vw, 5.4rem);
  letter-spacing: 0.08em;
  color: #E6EEDF;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  will-change: transform, color, filter;
}

.in-clock.is-strike {
  color: #E5394F;
}

.in-rec-dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: #E5394F;
  margin-right: 0.65em;
  opacity: 0.9;
}

/* Escena 2 & 3: Vitrina, Corazón y Robo */
.in-vitrine-scene {
  z-index: 12;
}

.in-vitrine-rig {
  position: relative;
  width: min(76vmin, 420px);
  height: min(84vmin, 470px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: transform, opacity, filter;
}

.in-vitrine-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.in-hand-group {
  opacity: 0;
}

.in-crack-path {
  stroke: #E6EEDF;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0;
}

.in-glass-shard {
  fill: rgba(230, 238, 223, 0.22);
  stroke: rgba(230, 238, 223, 0.55);
  stroke-width: 1;
  opacity: 0;
}

/* Escena 4 y 5: Tipografía Narrativa */
.in-copy-line {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 4.6vw, 3.35rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: #E6EEDF;
  max-width: 22ch;
  margin: 0 auto;
}

.in-char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.in-word {
  display: inline-block;
  white-space: nowrap;
}

.in-accent-red {
  color: #E5394F;
}

/* Cintas policiales (arriba y abajo, sin tapar el centro).
   La rotación y el desplazamiento los pone GSAP. */
.in-tape-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 22;
  overflow: hidden;
}

.in-tape {
  position: absolute;
  left: -20%;
  width: 140%;
  height: clamp(2.1rem, 4.6vmin, 3.1rem);
  background: repeating-linear-gradient(
    -45deg,
    #E8C547 0px,
    #E8C547 18px,
    #cfa92b 18px,
    #cfa92b 20px
  );
  color: #07110C;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 2px solid #07110C;
  border-bottom: 2px solid #07110C;
  opacity: 0;
  will-change: transform, opacity;
}

.in-tape--top { top: clamp(7%, 11vh, 14%); }
.in-tape--bottom { bottom: clamp(15%, 17vh, 19%); } /* por encima del botón "Saltar intro" */

.in-tape-track {
  display: flex;
  white-space: nowrap;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(0.82rem, 1.9vmin, 1.15rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  will-change: transform;
}

.in-tape-track span {
  padding-right: 1.4em;
}

/* Escena 6: Título Final */
.in-final-scene {
  z-index: 25;
}

.in-dossier-stamp {
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #B2C4B1;
  border: 1px solid rgba(178, 196, 177, 0.35);
  padding: 0.35em 0.9em;
  margin-bottom: clamp(1rem, 2.5vh, 1.6rem);
  opacity: 0;
}

.in-title-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.15rem, 1vh, 0.5rem);
}

.in-title-role {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  letter-spacing: 0.04em;
  color: #E6EEDF;
  line-height: 1.05;
}

.in-title-name-wrap {
  position: relative;
  display: inline-block;
  margin-top: 0.1em;
}

.in-title-name {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(3.6rem, 11.5vw, 7.8rem);
  color: #E5394F;
  line-height: 0.95;
  display: inline-block;
}

.in-name-underline {
  display: block;
  width: 104%;
  height: 14px;
  margin: -0.15em auto 0;
  overflow: visible;
}

.in-from-meta {
  margin-top: clamp(1.4rem, 3.5vh, 2.4rem);
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.6vw, 0.92rem);
  letter-spacing: 0.2em;
  color: #B2C4B1;
  opacity: 0;
}

/* Botón Saltar Intro */
.in-skip-btn {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vh, 2rem);
  z-index: 60;
  font-family: var(--sans);
  font-size: clamp(0.78rem, 1.5vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B2C4B1;
  background: rgba(12, 26, 19, 0.72);
  border: 1px solid rgba(178, 196, 177, 0.28);
  padding: 0.55em 1.05em;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.in-skip-btn:hover,
.in-skip-btn:focus-visible {
  color: #E6EEDF;
  border-color: #E5394F;
  background: rgba(18, 38, 27, 0.92);
  outline: none;
}

@media (max-width: 480px) {
  .in-tape--top { top: 8%; }
  .in-tape--bottom { bottom: 16%; }
}
