/* ==========================================================
   IVANA NICOLE · XV AÑOS · DESERT FESTIVAL
   ----------------------------------------------------------
   01 Fuentes y variables     09 Mensaje
   02 Base y utilidades       10 Familia
   03 Revelado de textos      11 Cuenta regresiva
   04 Escenas SVG             12 Ubicación
   05 Botones                 13 Regalos
   06 Efectos de texto        14 Cierre
   07 Entrada (gate)          15 Música, canvas y navegación
   08 Hero                    16 Accesibilidad
   ========================================================== */


/* 01 · FUENTES Y VARIABLES
   ---------------------------------------------------------- */

@font-face {
  font-family: "ChellaType";
  src: url("../assets/fonts/ChellaType-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --terracota: #a54432;
  --rojo: #812e2b;
  --naranja: #e87536;
  --dorado: #f4bd55;
  --crema: #fff5e8;
  --cafe: #241a18;

  --neon-pink: #ff2d7b;
  --neon-orange: #ff6b35;
  --neon-yellow: #ffd700;
  --neon-cyan: #00e5ff;

  --serif: "Bodoni Moda", Georgia, serif;
  --sans: "Outfit", Arial, sans-serif;
  --festival: "ChellaType", Georgia, serif;
  --cormorant: "Cormorant Garamond", Georgia, serif;
  --baskerville: "Libre Baskerville", Georgia, serif;
  --script: "Great Vibes", cursive;

  --pad: clamp(1.25rem, 6vw, 5rem);
  --max: 1080px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Colores del paisaje SVG (.night los sobrescribe) */
  --m1: #a54432;
  --m2: #5a2220;
  --g: #241a18;
  --lamp: #f4bd55;
}


/* 02 · BASE Y UTILIDADES
   ---------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.locked,
html.locked body {
  overflow: hidden;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--cafe);
  color: var(--cafe);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

img,
video,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 4px;
}

.center {
  text-align: center;
}

.in {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.sec {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
  overflow: hidden;
}

.h2 {
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
}

.skip {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 300;
  padding: .7rem 1rem;
  background: var(--dorado);
  color: var(--cafe);
}

.skip:focus {
  left: 0;
}

@media (max-width: 600px) {
  .sec {
    padding-block: 4rem;
  }
}


/* 03 · REVELADO DE TEXTOS
   ---------------------------------------------------------- */

/* Líneas que suben (nombre del hero) — JS añade .go */
.ln {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.ln>span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}

.go .ln>span {
  transform: none;
}

.go .name .ln:nth-child(1)>span {
  transition-delay: .25s;
}

.go .name .ln:nth-child(2)>span {
  transition-delay: .45s;
}

/* Elementos que aparecen al hacer scroll — JS añade .in-view */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.rv.in-view {
  opacity: 1;
  transform: none;
}

.stagger-reveal .rv:nth-child(1) {
  transition-delay: .1s;
}

.stagger-reveal .rv:nth-child(2) {
  transition-delay: .25s;
}

.stagger-reveal .rv:nth-child(3) {
  transition-delay: .4s;
}

.stagger-reveal .rv:nth-child(4) {
  transition-delay: .55s;
}


/* 04 · ESCENAS SVG (gate y cierre)
   ---------------------------------------------------------- */

.m1 {
  fill: var(--m1);
}

.m2 {
  fill: var(--m2);
}

.gr {
  fill: var(--g);
}

.lamp {
  fill: var(--lamp);
}

.ws {
  fill: none;
  stroke: var(--g);
}

.lamp circle {
  animation: twinkle 2.6s ease-in-out infinite;
}

.lamp circle:nth-child(odd) {
  animation-delay: -1.3s;
}

@keyframes twinkle {
  50% {
    opacity: .35;
  }
}

@keyframes glow {
  50% {
    opacity: .5;
  }
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.dusk {
  background: linear-gradient(180deg,
      #2a1717 0%,
      var(--rojo) 30%,
      var(--terracota) 48%,
      var(--naranja) 68%,
      var(--dorado) 100%);
}

.night {
  --m1: #3b1e24;
  --m2: #2a1a1c;
  --g: #150f10;
  --lamp: #f4bd55;
  background: linear-gradient(180deg, #120c12 0%, #241420 45%, var(--rojo) 100%);
}

.sun {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(70vmin, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
      #ffe2a0 0%,
      var(--dorado) 28%,
      rgba(232, 117, 54, .55) 52%,
      transparent 70%);
  transform: translateX(-50%);
  filter: blur(2px);
}

.land {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: max(100%, 900px);
  height: auto;
  transform: translateX(-50%);
}

/* Hilo de luces con curva */
.lights {
  position: absolute;
  inset: 14px 0 auto;
  height: 30px;
  opacity: .9;
  background: radial-gradient(circle, #ffe2a0 0 2.5px, transparent 3.5px) 0 12px / 34px 30px repeat-x;
  animation: glow 3s ease-in-out infinite;
}

.lights::before {
  content: "";
  position: absolute;
  inset: 6px -5% auto;
  height: 28px;
  border-bottom: 1px solid rgba(255, 245, 232, .3);
  border-radius: 50%;
}


/* 05 · BOTONES
   ---------------------------------------------------------- */

/* Botón principal (gate). La clase .neon-btn del HTML ya no hace falta. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  margin-top: 1rem;
  padding: .8rem 1.5rem;
  overflow: hidden;
  border: 1px solid var(--neon-yellow);
  border-radius: 100px;
  background: linear-gradient(135deg, var(--dorado), var(--neon-orange));
  box-shadow: 0 0 15px rgba(255, 215, 0, .3), 0 0 30px rgba(255, 107, 53, .15);
  color: var(--cafe);
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 20px rgba(255, 215, 0, .5),
    0 0 40px rgba(255, 107, 53, .25),
    0 4px 20px rgba(0, 0, 0, .3);
}

.btn:active {
  transform: scale(.97);
}

.btn-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: translateX(-100%);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {

  0%,
  100% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }
}

.pulse {
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 189, 85, .5);
  }

  80%,
  100% {
    box-shadow: 0 0 0 18px rgba(244, 189, 85, 0);
  }
}


/* 06 · EFECTOS DE TEXTO
   ---------------------------------------------------------- */

.neon-flicker {
  animation: neonFlicker 4s ease-in-out infinite;
}

@keyframes neonFlicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    text-shadow:
      0 4px 35px rgba(0, 0, 0, .45),
      0 0 60px rgba(255, 215, 0, .2),
      0 0 90px rgba(255, 107, 53, .1);
  }

  20%,
  24%,
  55% {
    text-shadow:
      0 4px 35px rgba(0, 0, 0, .45),
      0 0 30px rgba(255, 215, 0, .08);
  }
}

/* Glitch: "You are invited to" */
.glitch-text,
.glitch-hero {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-text::before {
  color: var(--neon-pink);
  animation: glitchText 3s infinite;
}

.glitch-text::after {
  color: var(--neon-cyan);
  animation: glitchText 3s infinite .1s;
}

@keyframes glitchText {

  0%,
  90%,
  100% {
    opacity: 0;
    transform: none;
  }

  92% {
    opacity: .6;
    transform: translate(-2px, 1px);
  }

  94% {
    opacity: 0;
    transform: translate(2px, -1px);
  }

  96% {
    opacity: .4;
    transform: translate(1px, 2px);
  }

  98% {
    opacity: 0;
  }
}

/* Glitch: COACHELLA */
.glitch-hero::before,
.glitch-hero::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
}

.glitch-hero::before {
  color: var(--neon-pink);
  animation: heroGlitch 5s infinite;
}

.glitch-hero::after {
  color: var(--neon-cyan);
  animation: heroGlitch 5s infinite .15s;
}

@keyframes heroGlitch {

  0%,
  88%,
  100% {
    opacity: 0;
    clip-path: none;
  }

  89% {
    opacity: .7;
    clip-path: inset(30% 0 40% 0);
    transform: translate(-3px);
  }

  90% {
    opacity: .5;
    clip-path: inset(50% 0 20% 0);
    transform: translate(3px);
  }

  91% {
    opacity: .3;
    clip-path: inset(10% 0 60% 0);
    transform: translate(-2px);
  }

  92% {
    opacity: 0;
  }
}


/* 07 · ENTRADA (GATE)
   ---------------------------------------------------------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--cafe);
  color: var(--crema);
  text-align: center;
  transition:
    opacity 1.2s var(--ease),
    transform 1.4s var(--ease),
    filter 1.2s ease;
}

.gate.open {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(6px);
  pointer-events: none;
}

.gate-in {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: .7rem;
  width: 100%;
  margin-bottom: 12svh;
  padding: 1.5rem;
}

/* Líneas neón decorativas */
.gate-neon-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.gate-neon-lines span {
  position: absolute;
  opacity: .15;
  background: linear-gradient(90deg, transparent, var(--neon-yellow), transparent);
}

.gate-neon-lines span:nth-child(1) {
  top: 15%;
  left: 0;
  right: 0;
  height: 1px;
  animation: neonSlide 4s ease-in-out infinite;
}

.gate-neon-lines span:nth-child(2) {
  bottom: 20%;
  left: 0;
  right: 0;
  height: 1px;
  animation: neonSlide 4s ease-in-out infinite 1s;
}

.gate-neon-lines span:nth-child(3) {
  top: 0;
  bottom: 0;
  left: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--neon-orange), transparent);
  animation: neonSlideV 5s ease-in-out infinite .5s;
}

.gate-neon-lines span:nth-child(4) {
  top: 0;
  bottom: 0;
  right: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--neon-pink), transparent);
  animation: neonSlideV 5s ease-in-out infinite 2s;
}

@keyframes neonSlide {

  0%,
  100% {
    opacity: 0;
    transform: scaleX(.3);
  }

  50% {
    opacity: .2;
    transform: scaleX(1);
  }
}

@keyframes neonSlideV {

  0%,
  100% {
    opacity: 0;
    transform: scaleY(.3);
  }

  50% {
    opacity: .15;
    transform: scaleY(1);
  }
}

.small {
  margin: 0;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.gate-name {
  margin: .3rem 0;
  color: #ffe5bb;
  font-family: var(--festival);
  font-size: clamp(3.5rem, 13vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 4px 35px rgba(0, 0, 0, .45), 0 0 60px rgba(255, 215, 0, .2);
}

.gate-date {
  margin: .5rem 0;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .22em;
}

.hint {
  display: grid;
  justify-items: center;
  gap: .5rem;
  margin: .8rem 0 0;
  font-size: .7rem;
  letter-spacing: .16em;
  opacity: .75;
}

.hint span {
  width: 1px;
  height: 25px;
  background: var(--crema);
  transform-origin: top;
  animation: drop 1.8s ease-in-out infinite;
}

@keyframes drop {
  0% {
    transform: scaleY(0);
  }

  60% {
    transform: scaleY(1);
  }

  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .gate-in {
    margin-bottom: 8svh;
  }
}


/* 08 · HERO
   ---------------------------------------------------------- */

#hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #241714;
  color: #fff0d5;
  text-align: center;
}

/* Marco con brillo animado */
#hero::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 3;
  border: 1px solid rgba(245, 202, 137, .55);
  pointer-events: none;
  animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    border-color: rgba(245, 202, 137, .55);
    box-shadow: inset 0 0 30px rgba(255, 215, 0, .03);
  }

  50% {
    border-color: rgba(255, 215, 0, .8);
    box-shadow: inset 0 0 60px rgba(255, 215, 0, .06);
  }
}

/* Video de fondo (el elemento también lleva la clase .scene) */
#hero .video-scene {
  z-index: -1;
  background: #241714;
}

.scene-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.video-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(24, 12, 12, .35) 0%,
      rgba(24, 12, 12, .05) 28%,
      rgba(24, 12, 12, .18) 52%,
      rgba(20, 9, 10, .78) 100%),
    linear-gradient(90deg,
      rgba(25, 13, 12, .2),
      transparent 25%,
      transparent 75%,
      rgba(25, 13, 12, .2));
}

/* Composición centrada */
.hero-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.festival-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin: 0 0 .5rem;
  color: #f5d5a1;
  font-size: clamp(.58rem, 1.5vw, .72rem);
  font-weight: 500;
  letter-spacing: .23em;
  line-height: 1.5;
  text-shadow: 0 2px 12px #000;
}

.eyebrow-line {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 1px;
  background: #e9b96f;
  animation: eyebrowPulse 2s ease-in-out infinite;
}

@keyframes eyebrowPulse {

  0%,
  100% {
    width: 22px;
    opacity: 1;
  }

  50% {
    width: 40px;
    opacity: .6;
  }
}

/* COACHELLA */
.festival-title {
  margin: 0 0 1.7rem;
  color: #ffe7bd;
  font-family: var(--festival);
  font-size: clamp(3rem, 9vw, 6.3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .035em;
  text-shadow:
    0 3px 16px rgba(0, 0, 0, .8),
    0 0 35px rgba(239, 177, 100, .25),
    0 0 80px rgba(255, 107, 53, .1);
}

/* Nombre */
#hero .name {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: #fff0d5;
  font-family: var(--festival);
  font-size: clamp(4.5rem, 13vw, 8.5rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .01em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .8), 0 0 38px rgba(245, 188, 109, .22);
}

#hero .name .ln {
  display: block;
  padding: .02em .08em;
}

/* MIS XV AÑOS */
.sub {
  margin: 1.1rem 0 0;
  color: #f5cb89;
  font-family: var(--festival);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .035em;
  text-shadow: 0 2px 14px #000;
}

.neon-sub {
  animation: neonSubPulse 3s ease-in-out infinite;
}

@keyframes neonSubPulse {

  0%,
  100% {
    text-shadow: 0 2px 14px #000, 0 0 20px rgba(255, 215, 0, .15);
  }

  50% {
    text-shadow: 0 2px 14px #000, 0 0 40px rgba(255, 215, 0, .3), 0 0 60px rgba(255, 107, 53, .15);
  }
}

/* Fecha */
.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin-top: 1.5rem;
  padding: .65rem 1.25rem;
  border-block: 1px solid rgba(245, 203, 137, .8);
  color: #fff0d5;
  text-align: left;
  text-shadow: 0 2px 12px #000;
}

.date-day {
  font-family: var(--festival);
  font-size: clamp(2.7rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}

.date-details {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-family: var(--festival);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: .08em;
  line-height: 1.25;
}

/* Emojis flotantes */
.floating-emojis {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.float-emoji {
  position: absolute;
  bottom: -50px;
  left: var(--x, 50%);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  opacity: 0;
  animation: floatUp 8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(.5);
  }

  10% {
    opacity: .7;
  }

  90% {
    opacity: .3;
  }

  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(360deg) scale(1);
  }
}

@media (max-width: 600px) {
  #hero::after {
    inset: 9px;
  }

  .hero-in {
    padding: 3.5rem 1rem;
  }

  .scene-video {
    transform: scale(1.06);
  }

  .festival-eyebrow {
    gap: .4rem;
    font-size: .54rem;
    letter-spacing: .16em;
  }

  .eyebrow-line {
    width: 14px;
  }

  .festival-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.6rem, 11.5vw, 4.2rem);
  }

  #hero .name {
    font-size: clamp(3.7rem, 15.5vw, 5.7rem);
  }

  .sub {
    margin-top: .9rem;
    font-size: clamp(1.55rem, 6.8vw, 1.95rem);
  }

  .hero-date {
    gap: .7rem;
    margin-top: 1.2rem;
    padding: .55rem .9rem;
  }

  .date-day {
    font-size: 2.5rem;
  }

  .date-details {
    font-size: .95rem;
    letter-spacing: .05em;
  }
}

/* Móviles de poca altura */
@media (max-height: 700px) {
  .hero-in {
    padding-block: 2.5rem;
  }

  .festival-title {
    margin-bottom: 1rem;
  }

  #hero .name {
    font-size: clamp(3.3rem, 11vh, 5.8rem);
  }

  .sub {
    margin-top: .65rem;
  }

  .hero-date {
    margin-top: .9rem;
  }
}


/* 09 · MENSAJE · UNDER THE DESERT SKY
   ---------------------------------------------------------- */

.message-scene {
  --message-cream: #f7f0e4;
  --message-gold: #d6b77a;

  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(80px, 10vw, 130px) 20px;
  overflow: hidden;
  background: #554b46;
}

.message-scene__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.message-scene__background video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.message-scene__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(32, 35, 36, .25) 0%,
      rgba(48, 42, 39, .38) 45%,
      rgba(35, 31, 31, .55) 100%);
}

.message-scene__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.message-card {
  position: relative;
  width: 100%;
  padding: clamp(30px, 6vw, 66px) clamp(22px, 7vw, 76px);
  overflow: hidden;
  border: 1px solid rgba(247, 240, 228, .55);
  border-radius: 3px;
  background: rgba(36, 37, 34, .43);
  box-shadow: 0 25px 80px rgba(0, 0, 0, .18), inset 0 0 45px rgba(255, 255, 255, .025);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  color: var(--message-cream);
  text-align: center;
}

/* Borde interior */
.message-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(214, 183, 122, .35);
  pointer-events: none;
}

.message-card__eyebrow {
  display: block;
  margin-bottom: 19px;
  color: var(--message-gold);
  font-family: "ChellaType", serif;
  font-size: .72rem;
  letter-spacing: .28em;
  line-height: 1.8;
}

.message-card__ornament {
  display: block;
  margin-bottom: 15px;
  color: var(--message-gold);
  font-size: 1.25rem;
}

.message-card__title {
  margin: 0 0 24px;
  color: var(--message-cream);
  font-family: var(--cormorant);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}

.message-card__title em {
  color: var(--message-gold);
  font-weight: 400;
}

.message-card__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 28px;
  color: var(--message-gold);
  font-size: .8rem;
}

.message-card__divider span:first-child,
.message-card__divider span:last-child {
  width: 48px;
  height: 1px;
  background: rgba(214, 183, 122, .65);
}

.message-card .quote {
  max-width: 500px;
  margin: 0 auto 23px;
  color: var(--message-cream);
  font-family: var(--cormorant);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.message-card .lead {
  max-width: 490px;
  margin: 0 auto 17px;
  color: rgba(247, 240, 228, .91);
  font-family: var(--baskerville);
  font-size: clamp(.78rem, 1.5vw, .9rem);
  line-height: 2;
  letter-spacing: .015em;
}

.message-card__signature {
  margin-top: 30px;
}

.message-card__signature>span {
  display: block;
  margin-bottom: 5px;
  color: var(--message-cream);
  font-family: Georgia, serif;
  font-size: 1rem;
  font-style: italic;
}

.message-card .sign {
  margin: 8px 0 0;
  color: #e2c58c;
  font-family: var(--festival);
  font-size: clamp(3.2rem, 8vw, 5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(226, 197, 140, .16);
}

@media (max-width: 600px) {
  .message-scene {
    min-height: auto;
    padding: 75px 18px;
  }

  .message-card {
    padding: 38px 25px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .message-card::before {
    inset: 7px;
  }

  .message-card__eyebrow {
    font-size: .62rem;
    letter-spacing: .2em;
  }

  .message-card__title {
    font-size: clamp(2.55rem, 11vw, 3.5rem);
  }

  .message-card__divider {
    margin-bottom: 23px;
  }

  .message-card .quote {
    font-size: 1.5rem;
  }

  .message-card .lead {
    font-size: .77rem;
    line-height: 1.9;
  }

  .message-card .sign {
    font-size: clamp(3rem, 13vw, 4.2rem);
  }
}


/* 10 · FAMILIA · LINEUP EDITORIAL
   ---------------------------------------------------------- */

.family-poster {
  position: relative;
  isolation: isolate;
  padding: clamp(85px, 10vw, 135px) 22px;
  overflow: hidden;
  background: url("../assets/img/algo.jpg") center / cover no-repeat;
  color: #fff8eb;
}

.family-poster__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
      rgba(24, 19, 24, .65) 0%,
      rgba(31, 21, 24, .40) 45%,
      rgba(24, 16, 19, .76) 100%);
}

.family-poster__content {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
}

.family-poster__eyebrow {
  display: block;
  margin-bottom: 22px;
  color: #f5c77d;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .28em;
}

#t-fam {
  margin: 0 0 42px;
  color: #fff8eb;
  font-family: var(--festival);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  text-shadow: 0 3px 25px rgba(0, 0, 0, .45);
}

.family-poster__group {
  margin: 0 auto;
}

.family-poster__label {
  display: block;
  margin-bottom: 25px;
  color: #f2c982;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .24em;
}

.family-poster__name {
  margin: 0;
  color: #fff8eb;
  font-family: var(--festival);
  font-size: clamp(1.65rem, 4.5vw, 2.7rem);
  font-weight: 400;
  line-height: 1.18;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .6);
}

/* Apellidos en segunda línea */
.family-poster__name span {
  display: block;
  margin-top: 5px;
  color: #f5d7a5;
  font-size: .78em;
}

.family-poster__amp {
  display: block;
  margin: 13px 0;
  color: #f5bd67;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
}

.family-poster__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 38px 0;
  color: #f5c77d;
}

.family-poster__divider::before,
.family-poster__divider::after {
  content: "";
  width: 65px;
  height: 1px;
  background: rgba(245, 199, 125, .65);
}

.family-poster__divider span {
  font-size: 1.15rem;
}

.family-poster__footer {
  margin: 45px 0 0;
  color: #f5d7a5;
  font-size: .62rem;
  letter-spacing: .19em;
  line-height: 2;
}

.family-poster__footer span {
  padding: 0 7px;
  color: #f5bd67;
}

@media (max-width: 480px) {
  .family-poster {
    padding: 75px 18px;
  }

  .family-poster__eyebrow {
    font-size: .58rem;
    letter-spacing: .16em;
  }

  #t-fam {
    margin-bottom: 36px;
  }

  .family-poster__label {
    font-size: .58rem;
    letter-spacing: .14em;
  }

  .family-poster__name {
    font-size: clamp(1.45rem, 6vw, 1.8rem);
  }

  .family-poster__divider {
    margin: 30px 0;
  }

  .family-poster__footer {
    font-size: .55rem;
    letter-spacing: .12em;
  }
}


/* 11 · CUENTA REGRESIVA · THE BIG NIGHT
   ---------------------------------------------------------- */

/* La imagen de palmas queda detrás del video como respaldo mientras carga */
.sec-cuenta {
  isolation: isolate;
  background: #1b1015 url("../assets/img/palms.jpg") center bottom / cover no-repeat;
  color: #fffaf0;
}

.cuenta-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.cuenta-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cuenta-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(24, 10, 15, .48), rgba(24, 10, 15, .72)),
    linear-gradient(90deg, rgba(110, 35, 20, .18), rgba(20, 10, 18, .25));
}

#t-cuenta {
  color: #fff;
  font-family: var(--festival);
  letter-spacing: .04em;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .9), 0 4px 18px rgba(0, 0, 0, .65);
}

.cd {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.cd>div {
  padding: 1.1rem .25rem;
  border: 1px solid rgba(255, 221, 166, .65);
  border-radius: 14px;
  background: rgba(24, 18, 22, .76);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.cd b {
  display: block;
  color: #ffd18a;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 6vw, 3rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

.cd b.tick {
  animation: tick .4s var(--ease);
}

@keyframes tick {
  from {
    transform: translateY(-20%);
    opacity: .2;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.cd span {
  color: #fff;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .9);
  opacity: .8;
}

.cd-end {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}

@media (max-width: 600px) {
  .cuenta-overlay {
    background: rgba(24, 10, 15, .62);
  }

  .cd {
    gap: .4rem;
  }

  .cd>div {
    padding: .9rem .1rem;
  }

  .cd span {
    font-size: .56rem;
    letter-spacing: .06em;
  }
}


/* 12 · UBICACIÓN · VIDEO A PANTALLA COMPLETA
   Intro y tarjetas comparten el centro; el JS (GSAP) las alterna.
   ---------------------------------------------------------- */

.location-story {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #1c100e;
  color: #fff8ed;
}

.location-story__video,
.location-story__shade {
  position: absolute;
  inset: 0;
}

.location-story__video {
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.location-story__video video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.location-story__shade {
  background: linear-gradient(180deg,
      rgba(17, 9, 10, .30) 0%,
      rgba(17, 9, 10, .42) 45%,
      rgba(17, 9, 10, .68) 100%);
}

/* Contenido subido 8vh para compensar el centrado óptico */
.location-story__content {
  position: absolute;
  inset: -8vh 0 0;
  z-index: 2;
}

.location-story__intro,
.location-step {
  position: absolute;
  inset: 0;
  height: fit-content;
  margin: auto;
  text-align: center;
}

/* Introducción */
.location-story__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
}

.location-eyebrow {
  display: block;
  margin-bottom: 25px;
  color: #f5c58b;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(255, 215, 0, .3);
}

.location-story__intro h2 {
  max-width: 900px;
  margin: 22px auto 16px;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}

.location-story__intro p {
  margin: 0 auto;
  font-family: var(--sans);
  font-size: clamp(.9rem, 2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: .04em;
}

/* Tarjetas (ceremonia / recepción) */
.location-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(760px, calc(100% - 40px));
  max-height: calc(100svh - 48px);
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid rgba(255, 232, 201, .42);
  border-radius: 3px;
  background: rgba(25, 15, 13, .32);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.location-step h3 {
  margin: 22px 0 14px;
  font-family: var(--festival);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: normal;
  line-height: 1.08;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-wrap: balance;
}

.location-step p {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(.95rem, 2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
}

.location-step__time {
  margin: 18px 0 28px;
  color: #f5c58b;
  font-family: var(--sans);
  font-size: 1.1rem;
  letter-spacing: .2em;
}

.location-step a {
  display: inline-block;
  padding: 13px 25px;
  border: 1px solid rgba(255, 248, 237, .8);
  color: #fff8ed;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}

.location-step a:hover {
  background: #fff8ed;
  color: #211713;
}

@media (max-width: 600px) {
  .location-story {
    min-height: 480px;
  }

  .location-step {
    width: calc(100% - 32px);
    padding: 28px 20px;
  }

  .location-step h3 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }
}


/* 13 · REGALOS · A GIFT FROM THE HEART
   ---------------------------------------------------------- */

.gift-experience {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(80px, 10vw, 130px) 22px;
  overflow: hidden;
  background: #4b463b;
}

.gift-experience__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.gift-experience__background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gift-experience__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 30, 25, .35), rgba(28, 30, 25, .58));
}

.gift-experience__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(238, 218, 182, .45);
  background: rgba(35, 35, 29, .32);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.gift-eyebrow {
  color: #e4c995;
}

.gift-title {
  color: #f7f0e4;
}

.gift-title em {
  color: #e4c995;
}

.gift-intro,
.gift-message {
  color: #f7f0e4;
  line-height: 1.9;
}

.gift-message strong {
  color: #e4c995;
}

.gift-signature {
  display: block;
  margin-top: 28px;
  color: #e4c995;
  font-family: "ChellaType", cursive;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.gift-envelope-image {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto;
}

.gift-envelope-image img {
  display: block;
  width: clamp(130px, 24vw, 210px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .25));
  transition: transform .4s ease;
}

@media (hover: hover) {
  .gift-envelope-image img:hover {
    transform: translateY(-5px) rotate(-2deg);
  }
}

@media (max-width: 600px) {
  .gift-experience {
    min-height: auto;
    padding: 75px 18px;
  }

  .gift-experience__content {
    padding: 36px 24px;
  }

  .gift-envelope-image {
    margin: 22px auto;
  }

  .gift-envelope-image img {
    width: 145px;
  }
}


/* 14 · CIERRE · THE NIGHT IS OURS
   ---------------------------------------------------------- */

.close-festival {
  --close-gold: #e9c98b;
  --close-cream: #f7f0e4;
  --close-muted: #c7b9a5;

  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 720px;
  padding: clamp(90px, 12vw, 150px) 24px 34px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #352b35 0%, #171922 45%, #090d13 100%);
  color: var(--close-cream);
  text-align: center;
}

/* Cielo nocturno y paisaje (el elemento también lleva .scene .night) */
.close-festival__scene {
  z-index: -3;
  pointer-events: none;
}

.close-festival__scene .stars {
  position: absolute;
  inset: 0;
  opacity: .8;
  background-image:
    radial-gradient(circle, rgba(255, 239, 202, .9) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, .7) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(233, 201, 139, .6) 1px, transparent 1.5px);
  background-size: 97px 113px, 157px 149px, 211px 183px;
  background-position: 10px 15px, 65px 42px, 110px 80px;
  animation: closeStars 18s ease-in-out infinite alternate;
}

/* ⚠ Hereda height:30px de .lights, así que el degradado solo cubre una franja.
   Si querías que cubra toda la escena, agrega height: 100%. */
.close-festival__scene .lights {
  inset: 0;
  opacity: .65;
  background:
    radial-gradient(ellipse at 12% 66%, rgba(191, 120, 77, .17), transparent 30%),
    radial-gradient(ellipse at 88% 59%, rgba(197, 146, 81, .15), transparent 32%),
    linear-gradient(180deg, transparent 40%, rgba(9, 13, 19, .25) 70%, #090d13 100%);
}

.close-festival__scene .land {
  bottom: -2px;
  width: max(115%, 1100px);
  height: min(47vh, 390px);
  min-height: 240px;
  opacity: .75;
  color: #090d13;
  filter: drop-shadow(0 -12px 30px rgba(213, 155, 89, .08));
}

@keyframes closeStars {
  from {
    opacity: .48;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: .9;
    transform: translate3d(0, -9px, 0);
  }
}

/* Resplandor detrás del contenido */
.close-festival__glow {
  position: absolute;
  top: 8%;
  left: 50%;
  z-index: -2;
  width: min(850px, 110vw);
  height: 600px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse,
      rgba(164, 105, 77, .17) 0%,
      rgba(107, 77, 72, .08) 36%,
      transparent 70%);
  pointer-events: none;
}

.close-festival__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .5rem;
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 2rem var(--pad);
}

.close-festival__eyebrow {
  display: block;
  margin-bottom: 24px;
  color: var(--close-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .38em;
  line-height: 1.8;
}

.close-festival__ornament {
  display: block;
  margin-bottom: 22px;
  color: var(--close-gold);
  font-size: 15px;
  letter-spacing: .3em;
  opacity: .85;
}

.close-festival__title {
  margin: 0;
  color: var(--close-cream);
  font-family: var(--cormorant);
  font-size: clamp(58px, 10vw, 112px);
  font-style: italic;
  font-weight: 400;
  line-height: .83;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 45px rgba(233, 201, 139, .12);
}

.close-festival__title em {
  display: inline-block;
  margin-top: .12em;
  color: var(--close-gold);
  font-family: var(--script);
  font-size: 1.04em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.close-festival__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(240px, 70%);
  margin: 35px auto 25px;
  color: var(--close-gold);
}

.close-festival__rule span {
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 201, 139, .7));
}

.close-festival__rule span:last-child {
  transform: rotate(180deg);
}

.close-festival__rule i {
  font-size: 13px;
  font-style: normal;
}

.close-festival__name {
  margin: 0;
  color: var(--close-cream);
  font-family: "ChellaType", "Great Vibes", cursive;
  font-size: clamp(39px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.close-festival__message {
  margin: 15px 0 30px;
  color: var(--close-muted);
  font-family: var(--cormorant);
  font-size: clamp(18px, 2.5vw, 23px);
  line-height: 1.65;
  letter-spacing: .025em;
}

.close-festival__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto 35px;
}

.close-festival__date-label,
.close-festival__date-caption {
  color: rgba(247, 240, 228, .58);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .3em;
}

.close-festival__date time {
  color: var(--close-gold);
  font-family: var(--cormorant);
  font-size: clamp(25px, 4vw, 34px);
  letter-spacing: .17em;
}

.close-festival__date time i {
  color: rgba(233, 201, 139, .45);
  font-style: normal;
}

/* Botón "Volver al inicio" — ya no depende de .btn .ghost */
.close-festival__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  margin-top: 1rem;
  padding: 12px 23px;
  border: 1px solid rgba(233, 201, 139, .55);
  border-radius: 2px;
  background: rgba(255, 255, 255, .025);
  color: var(--close-cream);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color .3s ease,
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    transform .3s ease;
}

.close-festival__button:hover {
  transform: translateY(-3px);
  border-color: var(--close-gold);
  background: rgba(233, 201, 139, .1);
  color: var(--close-gold);
  box-shadow: 0 0 28px rgba(233, 201, 139, .1);
}

.close-festival__arrow {
  color: var(--close-gold);
  font-size: 17px;
  line-height: 1;
  transition: transform .3s ease;
}

.close-festival__button:hover .close-festival__arrow {
  transform: translateY(-3px);
}

.close-festival__signature {
  margin: 55px 0 0;
  color: rgba(247, 240, 228, .43);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .22em;
}

.close-festival__signature span {
  margin: 0 5px;
  color: var(--close-gold);
}

@media (max-width: 600px) {
  .close-festival {
    min-height: 680px;
    padding: 90px 22px 28px;
  }

  .close-festival__scene .land {
    width: 150%;
    height: 290px;
    opacity: .8;
  }

  .close-festival__eyebrow {
    margin-bottom: 20px;
    font-size: 9px;
    letter-spacing: .28em;
  }

  .close-festival__ornament {
    margin-bottom: 20px;
  }

  .close-festival__title {
    font-size: clamp(54px, 15vw, 78px);
  }

  .close-festival__rule {
    margin-block: 28px 20px;
  }

  .close-festival__message {
    margin-block: 12px 26px;
  }

  .close-festival__signature {
    margin-top: 42px;
    font-size: 7px;
    letter-spacing: .15em;
  }
}


/* 15 · MÚSICA, CANVAS Y NAVEGACIÓN
   ---------------------------------------------------------- */

#dust,
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#dust {
  z-index: 5;
}

#confetti-canvas {
  z-index: 6;
}

.music {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--dorado);
  border-radius: 50%;
  background: rgba(36, 26, 24, .88);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .2s;
}

.music:active {
  transform: scale(.92);
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.eq i {
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--dorado);
}

.music[aria-pressed="true"] .eq i {
  animation: equalize .8s ease-in-out infinite;
}

.music[aria-pressed="true"] .eq i:nth-child(2) {
  animation-delay: -.25s;
}

.music[aria-pressed="true"] .eq i:nth-child(3) {
  animation-delay: -.5s;
}

@keyframes equalize {
  50% {
    height: 18px;
  }
}

/* Puntos de navegación */
.nav-dots {
  position: fixed;
  top: 50%;
  right: max(14px, env(safe-area-inset-right));
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-50%);
}

/* Sin esto, display:flex ignora el atributo hidden */
.music[hidden],
.nav-dots[hidden] {
  display: none;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(244, 189, 85, .6);
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}

.nav-dot:hover {
  background: rgba(244, 189, 85, .4);
  transform: scale(1.3);
}

.nav-dot.active {
  background: var(--dorado);
  box-shadow: 0 0 8px rgba(244, 189, 85, .5);
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .nav-dots {
    right: 8px;
    gap: 8px;
  }

  .nav-dot {
    width: 8px;
    height: 8px;
  }
}


/* 16 · ACCESIBILIDAD
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  .rv,
  .ln>span {
    opacity: 1;
    transform: none;
  }

  .gate.open {
    transform: none;
    filter: none;
  }
}

/* =====================================================
   INTRO EXPERIENCE · IVANA NICOLE
   Cinematic desert festival
   ===================================================== */

.gate-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 100svh;
  padding: 28px 22px;
  background: #100d12;
  isolation: isolate;
  opacity: 1;
  visibility: visible;
  transition: opacity .8s ease, visibility .8s ease;
}

/* Imagen de portada */
.gate-intro__background {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.gate-intro__background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  animation: introImageReveal 1.8s ease-out both;
}

/* Oscurecimiento para legibilidad */
.gate-intro__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(12, 9, 15, .18) 0%,
      rgba(12, 9, 15, .12) 28%,
      rgba(12, 9, 15, .56) 64%,
      rgba(12, 9, 15, .92) 100%),
    linear-gradient(90deg,
      rgba(12, 9, 15, .2),
      transparent 50%,
      rgba(12, 9, 15, .2));
}

.gate-intro__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 600px);
  text-align: center;
  animation: introContentReveal 1.2s .15s both;
}

.gate-intro__eyebrow {
  color: #f2d6a0;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .38em;
}

.gate-intro__name {
  margin: 22px 0 12px;
  color: #fff7e9;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(47px, 10vw, 82px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-shadow: 0 4px 35px rgba(0, 0, 0, .35);
}

.gate-intro__divider {
  margin: 12px 0 18px;
  color: #edc889;
  font-size: 14px;
  letter-spacing: .2em;
}

.gate-intro__event {
  margin: 0;
  color: #fff7e9;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .38em;
}

.gate-intro__date {
  margin: 17px 0 32px;
  color: #f2d6a0;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  letter-spacing: .25em;
}

.gate-intro__date span {
  padding: 0 7px;
  color: rgba(242, 214, 160, .6);
}

/* Botón principal */
.gate-intro__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  min-width: 255px;
  min-height: 56px;
  padding: 15px 22px;
  border: 1px solid rgba(242, 214, 160, .8);
  border-radius: 2px;
  background: rgba(20, 16, 21, .35);
  color: #fff7e9;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition:
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    transform .3s ease;
}

.gate-intro__button:hover {
  transform: translateY(-3px);
  border-color: #f2d6a0;
  background: rgba(242, 214, 160, .13);
  box-shadow: 0 0 32px rgba(242, 214, 160, .15);
}

.gate-intro__button-arrow {
  color: #f2d6a0;
  font-size: 17px;
  transition: transform .3s ease;
}

.gate-intro__button:hover .gate-intro__button-arrow {
  transform: translate(3px, -3px);
}

.gate-intro__hint {
  margin: 25px 0 0;
  color: rgba(255, 247, 233, .62);
  font-family: "Outfit", sans-serif;
  font-size: 8px;
  letter-spacing: .32em;
}

/* Desvanecimiento de portada */
.gate-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Reproductor de la intro */
.intro-player {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050505;
}

.intro-player[hidden] {
  display: none !important;
}

.intro-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #050505;
}

/* Opción para omitir el video */
.intro-player__skip {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 2px;
  background: rgba(10, 10, 10, .42);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.intro-player__skip:hover {
  background: rgba(255, 255, 255, .15);
}

/* Animaciones */
@keyframes introImageReveal {
  from {
    transform: scale(1.09);
    filter: brightness(.7);
  }

  to {
    transform: scale(1.025);
    filter: brightness(1);
  }
}

@keyframes introContentReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Móviles */
@media (max-width: 600px) {
  .gate-intro {
    padding: 24px 20px;
  }

  .gate-intro__background img {
    object-position: center;
  }

  .gate-intro__eyebrow {
    font-size: 9px;
    letter-spacing: .28em;
  }

  .gate-intro__name {
    font-size: clamp(43px, 12vw, 66px);
  }

  .gate-intro__button {
    width: min(100%, 290px);
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .gate-intro__background img,
  .gate-intro__content {
    animation: none;
  }

  .gate-intro,
  .gate-intro__button,
  .gate-intro__button-arrow {
    transition: none;
  }
}

/* INTRO VIDEO — PANTALLA COMPLETA */
.intro-player {
  position: fixed;
  inset: 0;
  z-index: 10001;
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.intro-player[hidden] {
  display: none !important;
}

.intro-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
}


/* ==========================================================
   IVANA NICOLE · INTRO EDITORIAL
   DESERT FESTIVAL / COACHELLA
   ========================================================== */

.gate-intro__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 620px);
  padding: 28px 20px;
  text-align: center;
}

/* Texto superior */
.gate-intro__eyebrow {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.38em;
  line-height: 1.8;
  color: #e8c99b;
  text-transform: uppercase;
}

/* Nombre de la quinceañera */
.gate-intro__name {
  margin: 25px 0 12px;
  font-family: "ChellaType", "Bodoni Moda", serif;
  font-size: clamp(55px, 11vw, 100px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.015em;
  color: #f7eee0;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.20),
    0 8px 35px rgba(0, 0, 0, 0.30);
}

/* Ornamento central */
.gate-intro__divider {
  margin: 12px 0 22px;
  font-family: "Bodoni Moda", serif;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: #d9b781;
  opacity: 0.95;
}

/* Título del evento */
.gate-intro__event {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.42em;
  color: #fff6e9;
  text-transform: uppercase;
}

/* Fecha */
.gate-intro__date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 34px;
  font-family: "Bodoni Moda", serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #e8c99b;
}

.gate-intro__date span {
  color: rgba(232, 201, 155, 0.65);
  font-size: 16px;
}

/* Botón editorial */
.gate-intro__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 265px;
  min-height: 56px;
  padding: 15px 24px;

  border: 1px solid rgba(232, 201, 155, 0.85);
  border-radius: 0;
  background: rgba(25, 22, 20, 0.28);
  color: #fff6e9;

  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;

  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.gate-intro__button:hover {
  background: rgba(232, 201, 155, 0.15);
  border-color: #f4dfbd;
  transform: translateY(-3px);
}

.gate-intro__button-text {
  font: inherit;
  letter-spacing: inherit;
}

.gate-intro__button-arrow {
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: #e8c99b;
  transition: transform 0.35s ease;
}

.gate-intro__button:hover .gate-intro__button-arrow {
  transform: translate(3px, -3px);
}

/* Frase inferior */
.gate-intro__hint {
  margin: 27px 0 0;
  font-family: "Outfit", sans-serif;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.34em;
  color: rgba(255, 246, 233, 0.78);
  text-transform: uppercase;
}

/* Ajustes para móviles */
@media (max-width: 600px) {
  .gate-intro__content {
    padding: 22px 16px;
  }

  .gate-intro__eyebrow {
    font-size: 9px;
    letter-spacing: 0.28em;
  }

  .gate-intro__name {
    margin-top: 22px;
    font-size: clamp(46px, 12vw, 70px);
    line-height: 1.12;
  }

  .gate-intro__divider {
    margin: 10px 0 18px;
  }

  .gate-intro__event {
    font-size: 10px;
    letter-spacing: 0.32em;
  }

  .gate-intro__date {
    margin: 17px 0 29px;
    font-size: 17px;
  }

  .gate-intro__button {
    width: min(100%, 290px);
    min-height: 54px;
    gap: 15px;
    padding: 14px 17px;
    font-size: 9px;
    letter-spacing: 0.15em;
  }

  .gate-intro__hint {
    margin-top: 23px;
    font-size: 7px;
    letter-spacing: 0.27em;
  }
}

@media (prefers-reduced-motion: reduce) {

  .gate-intro__button,
  .gate-intro__button-arrow {
    transition: none;
  }
}