/* ==========================================================
   Diseño "Gala" · XV años
   telón de terciopelo → escenario con reflector → boleto VIP
   ========================================================== */

:root {
  --vino-950: #12040a;
  --vino-900: #1f060e;
  --vino-800: #300a18;
  --vino-700: #4a0f22;
  --terciopelo: #8c1029;
  --rosa: #f4d7d3;
  --champan: #f6e8d5;
  --texto: #f7e9e4;
  --texto-suave: rgba(247, 233, 228, .72);
  --oro-rosa: linear-gradient(115deg, #9c5b4c 0%, #e2a993 20%, #fbe3d6 35%, #d49a86 52%, #a2604f 68%, #ebbaa5 85%, #b0705e 100%);
  --oro-rosa-plano: #dca08c;

  --script: "Great Vibes", "Snell Roundhand", cursive;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
}

body {
  background-color: var(--vino-900);
  background-image:
    var(--grano),
    radial-gradient(120% 60% at 50% 0%, rgba(140, 16, 41, .35), transparent 65%),
    radial-gradient(90% 60% at 50% 100%, rgba(0, 0, 0, .7), transparent 70%);
  background-attachment: fixed;
  color: var(--texto);
  font-family: var(--serif);
}
.amp { font-family: var(--serif); }

.funcion { width: min(100%, 520px); margin: 0 auto; }

/* ==========================================================
   ESCENARIO
   ========================================================== */

.escena {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + clamp(86px, 15vh, 130px)) 20px calc(env(safe-area-inset-bottom) + 64px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.escena__fondo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(70% 45% at 50% 38%, rgba(120, 30, 50, .45), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, #1a050c 0%, #2b0814 60%, #12040a 100%);
}
.piso {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 26%;
  z-index: -2;
  background:
    radial-gradient(50% 60% at 50% 30%, rgba(255, 220, 200, .16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 60px),
    linear-gradient(180deg, #2a0b12, #12040a);
  transform: perspective(400px) rotateX(55deg);
  transform-origin: bottom;
}

/* Reflector */
.foco {
  position: absolute;
  top: -8%;
  left: 50%;
  width: 150%;
  height: 120%;
  z-index: -1;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: 50% 0;
  background: radial-gradient(ellipse 30% 85% at 50% 0%, rgba(255, 236, 222, .42), rgba(255, 220, 205, .12) 55%, transparent 75%);
  clip-path: polygon(44% 0, 56% 0, 88% 100%, 12% 100%);
  filter: blur(6px);
  opacity: 0;
  transition: opacity 1.4s ease .5s;
  pointer-events: none;
}
.escena.abierta .foco { opacity: 1; animation: barrido 9s 2s ease-in-out infinite; }
@keyframes barrido {
  0%, 100% { transform: translateX(-50%) rotate(-4deg); }
  50%      { transform: translateX(-50%) rotate(4deg); }
}

.idiomas {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 14px);
  right: 16px;
  z-index: 6;
  font-family: var(--caps);
  font-size: .68rem;
  color: var(--rosa);
}

.escena__contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.8svh, 16px);
}
.presenta {
  margin: 0;
  font-family: var(--caps);
  font-size: clamp(.62rem, 2.6vw, .74rem);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

/* Marco de marquesina con focos */
.marquesina {
  position: relative;
  height: min(42svh, 400px);
  aspect-ratio: 3 / 4;
  max-width: 68vw;
  padding: 16px;
  border-radius: 22px;
  background: var(--oro-rosa);
  box-shadow: 0 0 0 1px rgba(255, 230, 220, .3) inset, 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 80px rgba(255, 190, 170, .12);
}
.marquesina__marco {
  position: absolute;
  inset: 16px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--vino-950);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), inset 0 0 30px rgba(0, 0, 0, .6);
}
.marquesina__foto { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.25) saturate(.6); transition: filter 1.8s ease .4s, transform 7s ease; transform: scale(1.06); }
.escena.abierta .marquesina__foto { filter: none; transform: scale(1); }
.marquesina__marco::after {                /* brillo de vidrio */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, .18), transparent 35%);
  pointer-events: none;
}

.bombilla {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #8d6a4a, #4a2a1a);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, .4);
}
.encendidas .bombilla { animation: chispa 1.2s steps(1, end) infinite; }
.encendidas .bombilla:nth-child(3n + 1) { animation-delay: -.4s; }
.encendidas .bombilla:nth-child(3n + 2) { animation-delay: -.8s; }
@keyframes chispa {
  0%, 66% {
    background: radial-gradient(circle at 40% 35%, #fffaf0 0 25%, #ffe2a6 45%, #e3a35a 75%);
    box-shadow: 0 0 6px 1px rgba(255, 214, 150, .95), 0 0 16px 3px rgba(255, 180, 110, .45);
  }
  67%, 100% {
    background: radial-gradient(circle at 40% 35%, #a07a52, #5a341f);
    box-shadow: inset 0 -1px 1px rgba(0, 0, 0, .4);
  }
}

.mis-xv {
  margin: 6px 0 0;
  font-family: var(--caps);
  font-size: clamp(.78rem, 3.2vw, .92rem);
  letter-spacing: .5em;
  padding-left: .5em;
  text-transform: uppercase;
  color: var(--oro-rosa-plano);
}
.nombre {
  margin: -4px 0 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.4rem, 16vw, 4.8rem);
  line-height: 1.05;
}
.nombre__txt {
  display: inline-block;
  padding: 0 .2em .12em;
  background: var(--oro-rosa);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6));
  opacity: 0;
  transform: scale(.92);
}
.escena.abierta .nombre__txt {
  animation: entrarNombre 1.6s 1s cubic-bezier(.2, .7, .2, 1) forwards, brillo 5s 2.6s linear infinite;
}
@keyframes entrarNombre {
  0%   { opacity: 0; transform: scale(.92); filter: blur(10px) drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }
  100% { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }
}
@keyframes brillo { to { background-position: -220% 0; } }

.fecha-gala {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--caps);
  font-size: clamp(.62rem, 2.6vw, .74rem);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--texto);
}
.fecha-gala i { font-style: normal; font-size: .5rem; color: var(--oro-rosa-plano); }
.fecha-gala__dia { font-size: 1.5em; color: var(--oro-rosa-plano); }

.presenta, .mis-xv, .fecha-gala { opacity: 0; transition: opacity 1.2s ease; }
.escena.abierta .presenta  { opacity: 1; transition-delay: .6s; }
.escena.abierta .mis-xv    { opacity: 1; transition-delay: 1.2s; }
.escena.abierta .fecha-gala { opacity: 1; transition-delay: 2.2s; }

.desliza {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 20px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--caps);
  font-size: .58rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texto-suave);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s 3s;
  z-index: 3;
}
.desliza i { width: 1px; height: 28px; background: linear-gradient(var(--oro-rosa-plano), transparent); animation: caer 2s ease-in-out infinite; transform-origin: top; }
.escena.abierta .desliza { opacity: 1; pointer-events: auto; }
@keyframes caer { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ==========================================================
   TELÓN
   ========================================================== */

.telon {
  position: absolute;
  inset: 0;
  z-index: 5;
  touch-action: none;
  cursor: grab;
  --p: 0;                                /* 0 = cerrado · 1 = abierto (lo controla el JS al arrastrar) */
}
.telon:active { cursor: grabbing; }
.escena.abierta .telon { pointer-events: none; }

.cortina {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  transform: scaleX(calc(1 - var(--p) * .83));
  transition: transform 1.7s cubic-bezier(.55, .05, .2, 1);
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, .65));
}
.telon.arrastrando .cortina { transition: none; }
.cortina--izq { left: 0;  transform-origin: 0 50%; }
.cortina--der { right: 0; transform-origin: 100% 50%; }
.escena.abierta .cortina { transform: scaleX(.17); }

.cortina__tela {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, .55)),
    radial-gradient(120% 50% at 50% 100%, rgba(0, 0, 0, .35), transparent 60%),
    repeating-linear-gradient(90deg, #45040f 0, #6f0b1e 9px, #a8173a 18px, #c92247 22px, #9a1433 28px, #5e0818 38px, #3a030c 44px),
    #6f0b1e;
}
.cortina__tela::after {                  /* textura de terciopelo */
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grano);
  mix-blend-mode: overlay;
  opacity: .8;
}
.cortina--izq .cortina__tela { box-shadow: inset -24px 0 30px -10px rgba(0, 0, 0, .7); }
.cortina--der .cortina__tela { box-shadow: inset 24px 0 30px -10px rgba(0, 0, 0, .7); }
.cortina__tela::before {                 /* dobladillo dorado */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: var(--oro-rosa);
  opacity: .9;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, .5);
}

/* Amarres dorados que aparecen al recoger el telón */
.amarre {
  position: absolute;
  top: 58%;
  width: 9.5%;
  height: 12px;
  border-radius: 6px;
  background: var(--oro-rosa);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .6s 1.4s;
  z-index: 2;
}
.amarre::after {                          /* borla */
  content: "";
  position: absolute;
  top: 10px;
  width: 12px;
  height: 30px;
  border-radius: 6px 6px 3px 3px;
  background: repeating-linear-gradient(90deg, #b0705e 0 2px, #f6d4c4 2px 3px), #dca08c;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .5);
}
.amarre--izq { left: 0; }
.amarre--izq::after { right: 4px; }
.amarre--der { right: 0; }
.amarre--der::after { left: 4px; }
.escena.abierta .amarre { opacity: 1; }

/* Cenefa (bambalina superior) */
.cenefa {
  position: absolute;
  top: 0;
  left: -2%;
  right: -2%;
  height: clamp(74px, 13vh, 120px);
  z-index: 3;
  background:
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, .3) 62%, transparent 63%),
    linear-gradient(180deg, #4a0612 0%, #8c1029 40%, #6d0b20 62%, transparent 62.1%),
    radial-gradient(ellipse 50% 100% at 50% 0%, #a9183a 0, #7a0d24 60%, #4a0612 98%, transparent 100%) bottom / 20% 42% repeat-x;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6));
}
.cenefa::before {                         /* galón dorado */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 54%;
  height: 7px;
  background: var(--oro-rosa);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}
.cenefa::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grano);
  mix-blend-mode: overlay;
  opacity: .7;
  pointer-events: none;
}
.borla {
  position: absolute;
  top: 58%;
  width: 10px;
  height: 34px;
  margin-left: -5px;
  border-radius: 5px 5px 2px 2px;
  background: repeating-linear-gradient(90deg, #a2604f 0 2px, #fbe3d6 2px 3px), #dca08c;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .55);
  transform-origin: top center;
  animation: mecer 4s ease-in-out infinite;
}
.borla:nth-child(1) { left: 2%; }
.borla:nth-child(2) { left: 22%; animation-delay: -1s; }
.borla:nth-child(3) { left: 42%; animation-delay: -2s; }
.borla:nth-child(4) { left: 62%; animation-delay: -3s; }
.borla:nth-child(5) { left: 82%; animation-delay: -1.5s; }
@keyframes mecer { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* Aviso central para abrir */
.aviso {
  all: unset;
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  z-index: 4;
  transition: opacity .5s ease;
}
.aviso:focus-visible { outline: 2px solid var(--rosa); outline-offset: 8px; border-radius: 12px; }
.escena.abierta .aviso, .telon.arrastrando .aviso { opacity: 0; }
.medallon {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--oro-rosa);
  color: #5a2a20;
  box-shadow: 0 0 0 4px rgba(60, 10, 20, .6), 0 0 0 5px rgba(240, 190, 170, .6), 0 14px 30px rgba(0, 0, 0, .7);
  animation: latidoMedallon 2.6s ease-in-out infinite;
}
.medallon svg { position: absolute; top: 12px; }
.medallon b { font-family: var(--script); font-weight: 400; font-size: 2.6rem; line-height: 1; margin-top: 16px; color: #4a1a14; }
@keyframes latidoMedallon { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.aviso__texto {
  max-width: 13em;
  font-family: var(--caps);
  font-size: .68rem;
  letter-spacing: .3em;
  line-height: 1.7;
  text-transform: uppercase;
  text-align: center;
  color: var(--rosa);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .8);
}
.aviso__flechas { display: flex; gap: 44px; }
.aviso__flechas i {
  width: 12px;
  height: 12px;
  border-left: 1.5px solid var(--rosa);
  border-bottom: 1.5px solid var(--rosa);
  transform: rotate(45deg);
  animation: flechaIzq 1.6s ease-in-out infinite;
}
.aviso__flechas i + i { transform: rotate(-135deg); animation-name: flechaDer; }
@keyframes flechaIzq { 0%, 100% { transform: translateX(0) rotate(45deg); opacity: .4; } 50% { transform: translateX(-10px) rotate(45deg); opacity: 1; } }
@keyframes flechaDer { 0%, 100% { transform: translateX(0) rotate(-135deg); opacity: .4; } 50% { transform: translateX(10px) rotate(-135deg); opacity: 1; } }

/* ==========================================================
   SECCIONES
   ========================================================== */

.titulo-gala {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 3.2rem);
  line-height: 1.1;
  padding: 0 .1em .1em;
  background: var(--oro-rosa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dedicatoria {
  padding: 96px 30px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dedicatoria__corona { color: var(--oro-rosa-plano); }
.dedicatoria__texto { margin: 18px 0 0; max-width: 23em; font-style: italic; font-size: clamp(1.2rem, 5vw, 1.4rem); line-height: 1.65; }
.familia { margin-top: 36px; }
.familia__t { margin: 18px 0 0; font-family: var(--caps); font-size: .66rem; letter-spacing: .36em; text-transform: uppercase; color: var(--texto-suave); }
.familia__n { margin: 4px 0 0; font-family: var(--script); font-size: 2rem; color: var(--rosa); }

/* Cartelera con focos */
.cartelera-sec { padding: 30px 18px 70px; }
.cartelera {
  position: relative;
  padding: 46px 22px 40px;
  border-radius: 18px;
  text-align: center;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(140, 16, 41, .45), transparent 70%),
    linear-gradient(180deg, #1c0610, #12040a);
  box-shadow: 0 0 0 12px #2a0b15, 0 0 0 13px rgba(220, 160, 140, .55), 0 30px 60px -20px rgba(0, 0, 0, .8);
  margin: 13px;
}
.cartelera .bombilla { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.cartelera__t { margin: 0 0 22px; font-family: var(--caps); font-size: .7rem; letter-spacing: .42em; text-transform: uppercase; color: var(--rosa); }
.cuenta { display: flex; justify-content: center; gap: clamp(6px, 2.4vw, 12px); }
.ficha {
  position: relative;
  width: clamp(60px, 17vw, 74px);
  padding: 12px 0 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #3a0d1a 0 50%, #2b0913 50% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 16px -6px rgba(0, 0, 0, .8);
}
.ficha::after {                             /* línea de la ficha abatible */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  height: 1px;
  background: rgba(0, 0, 0, .6);
}
.ficha__num {
  font-family: var(--caps);
  font-size: clamp(1.5rem, 6.6vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  background: var(--oro-rosa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums lining-nums;
}
.ficha__num.tic { animation: voltear .5s ease; }
@keyframes voltear { 0% { transform: rotateX(90deg); opacity: .3; } 100% { transform: none; opacity: 1; } }
.ficha__lbl { margin-top: 4px; font-family: var(--caps); font-size: .5rem; letter-spacing: .24em; text-transform: uppercase; color: var(--texto-suave); }
.cartelera__hoy { margin: 0; font-family: var(--script); font-size: 2.4rem; color: var(--rosa); }
.cartelera__fecha { margin: 24px 0 20px; font-style: italic; font-size: 1.15rem; color: var(--texto-suave); }

/* Botones */
.btn-gala {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--caps);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s ease, background-color .3s;
}
.btn-gala:active { transform: scale(.97); }
.btn-gala:focus-visible { outline: 2px solid var(--rosa); outline-offset: 3px; }
.btn-gala--linea { border: 1px solid var(--oro-rosa-plano); color: var(--rosa); }
.btn-gala--linea:hover { background: rgba(220, 160, 140, .12); }
.btn-gala--mini { min-height: 44px; margin-top: 12px; padding: 0 20px; border: 1px solid #b0705e; color: #6a2c22; font-size: .6rem; }
.btn-gala--oro { min-height: 54px; padding: 0 34px; background: var(--oro-rosa); background-size: 160% 100%; color: #3a120c; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gala--oro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: destello 3.4s 1s ease-in-out infinite;
}
@keyframes destello { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Programa tipo cartel de teatro */
.programa-sec { padding: 20px 18px 80px; }
.programa {
  position: relative;
  padding: 50px 26px 46px;
  text-align: center;
  color: #3b1a14;
  background-color: var(--champan);
  background-image: var(--grano), var(--fibras);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
}
.programa::before, .programa::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid #b0705e;
}
.programa::before { inset: 10px; }
.programa::after { inset: 15px; border-color: rgba(176, 112, 94, .5); }
.programa__t { margin: 0; font-family: var(--script); font-weight: 400; font-size: 3rem; line-height: 1; color: #6a2c22; }
.programa__orla { display: block; width: 120px; height: 10px; margin: 12px auto 4px; background: radial-gradient(circle, #b0705e 0 2.5px, transparent 3px) center / 10px 10px repeat-x; }
.actos { list-style: none; margin: 18px 0 0; padding: 0; }
.acto { padding: 26px 0; border-top: 1px dashed rgba(176, 112, 94, .55); display: flex; flex-direction: column; align-items: center; }
.acto:first-child { border-top: 0; }
.acto__num { font-family: var(--caps); font-size: .64rem; letter-spacing: .5em; text-transform: uppercase; color: #a2604f; }
.acto__icono { margin: 10px 0 6px; color: #8c4a3c; }
.acto__titulo { margin: 0; font-family: var(--caps); font-weight: 500; font-size: .92rem; letter-spacing: .18em; text-transform: uppercase; }
.acto__hora { margin: 4px 0 2px; font-family: var(--script); font-size: 2rem; color: #8c4a3c; }
.acto__lugar { margin: 0; font-weight: 600; font-size: 1.1rem; }
.acto__dir { margin: 2px 0 0; font-size: .98rem; color: #7a5a52; }

/* Galería tipo carrete */
.galeria-sec { padding: 40px 0 80px; text-align: center; }
.carrete {
  display: flex;
  gap: 18px;
  margin-top: 26px;
  padding: 10px 14% 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carrete::-webkit-scrollbar { display: none; }
.carrete:focus-visible { outline: 1px solid var(--rosa); outline-offset: -4px; }
.carrete__foto {
  flex: 0 0 72%;
  margin: 0;
  padding: 8px;
  border-radius: 14px;
  background: var(--oro-rosa);
  scroll-snap-align: center;
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .8);
}
.carrete__foto img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }

/* Vestimenta */
.vestimenta-sec { padding: 40px 30px 80px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.vestimenta__tipo { margin: 14px 0 4px; font-family: var(--caps); font-size: 1.2rem; letter-spacing: .45em; padding-left: .45em; color: var(--rosa); }
.paleta { list-style: none; display: flex; gap: 12px; margin: 18px 0; padding: 0; }
.paleta li { padding: 3px; border-radius: 50%; border: 1px solid rgba(220, 160, 140, .6); }
.paleta svg { display: block; width: 40px; height: 40px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.vestimenta__nota { margin: 4px 0 0; max-width: 20em; font-style: italic; font-size: 1.08rem; color: var(--texto-suave); }

/* ---------- Boleto VIP ---------- */
.boleto-sec { padding: 40px 16px 80px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.boleto {
  position: relative;
  display: flex;
  width: min(100%, 420px);
  min-height: 190px;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .7));
}
.boleto__cuerpo,
.boleto__talon { position: relative; background: var(--oro-rosa); background-size: 220% 100%; color: #3a120c; }
.boleto__cuerpo {
  flex: 1 1 auto;
  padding: 18px 18px 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border-radius: 14px 0 0 14px;
  -webkit-mask: radial-gradient(circle 11px at 100% 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at 100% 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 11px at 100% 0, transparent 98%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle 11px at 100% 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.boleto__cuerpo::before {                  /* marco interior */
  content: "";
  position: absolute;
  inset: 8px 10px 8px 8px;
  border: 1px solid rgba(90, 30, 20, .35);
  border-radius: 8px;
  pointer-events: none;
}
.boleto__eyebrow { font-family: var(--caps); font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: #6a2c22; }
.boleto__nombre { font-family: var(--script); font-size: 2.6rem; line-height: 1.1; color: #4a1a14; }
.boleto__datos { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 6px 0 0; }
.boleto__dato dt { font-family: var(--caps); font-size: .5rem; letter-spacing: .26em; text-transform: uppercase; color: #8c4a3c; }
.boleto__dato dd { margin: 1px 0 0; font-weight: 600; font-size: 1.02rem; }
.boleto__dato--ancho { flex-basis: 100%; }
.boleto__dato--ancho dd { font-family: var(--script); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }

.boleto__talon {
  flex: 0 0 26%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 0 14px 14px 0;
  cursor: grab;
  touch-action: none;
  transform-origin: 0 100%;
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
  background-position: 100% 0;
  -webkit-mask: radial-gradient(circle 11px at 0 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at 0 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 11px at 0 0, transparent 98%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle 11px at 0 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.boleto__talon::before {                    /* perforación */
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  border-left: 2px dotted rgba(90, 30, 20, .45);
}
.boleto__talon:focus-visible { outline: 2px solid var(--rosa); outline-offset: 4px; }
.boleto__talon.tirando { transition: none; cursor: grabbing; }
.boleto__talon.arrancado {
  transition: transform 1.3s cubic-bezier(.5, 0, .9, .5), opacity 1.3s ease;
  transform: translate(60px, 110vh) rotate(70deg) !important;
  opacity: 0;
  pointer-events: none;
}
.talon__texto { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--caps); font-size: .66rem; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: #4a1a14; }
.talon__codigo { width: 60%; height: 30px; background: repeating-linear-gradient(90deg, #4a1a14 0 2px, transparent 2px 4px, #4a1a14 4px 5px, transparent 5px 8px, #4a1a14 8px 11px, transparent 11px 13px); opacity: .7; }

/* Borde rasgado del cuerpo cuando se arranca el talón */
.boleto.roto .boleto__cuerpo {
  border-radius: 14px 0 0 14px;
  -webkit-mask: linear-gradient(#000, #000) left / calc(100% - 8px) 100% no-repeat,
                conic-gradient(from -135deg at 0 50%, #000 90deg, transparent 0) right / 8px 12px repeat-y;
  mask: linear-gradient(#000, #000) left / calc(100% - 8px) 100% no-repeat,
        conic-gradient(from -135deg at 0 50%, #000 90deg, transparent 0) right / 8px 12px repeat-y;
}

.boleto__hint {
  margin: 22px 0 0;
  font-family: var(--caps);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rosa);
  animation: latido 2.4s ease-in-out infinite;
}
.boleto__hint i { font-style: normal; display: inline-block; animation: empuje 1.4s ease-in-out infinite; }
@keyframes latido { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes empuje { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, 4px); } }
.boleto__gracias { margin-top: 26px; display: flex; flex-direction: column; align-items: center; animation: aparecer .9s cubic-bezier(.2, .7, .2, 1) both; }
.gracias__t { margin: 0 0 18px; font-family: var(--script); font-size: 2.4rem; color: var(--rosa); }
.gracias__antes { margin: 16px 0 0; font-size: .98rem; color: var(--texto-suave); }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } }

/* Pie */
.pie-gala { padding: 40px 24px calc(env(safe-area-inset-bottom) + 60px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.pie-gala__corona { color: var(--oro-rosa-plano); }
.pie-gala__t { margin: 10px 0 0; font-family: var(--caps); font-size: .7rem; letter-spacing: .5em; text-transform: uppercase; color: var(--texto-suave); }
.pie-gala__n { margin: 0; font-family: var(--script); font-size: 3rem; color: var(--rosa); }
.pie-gala__credito { margin: 24px 0 0; font-style: italic; font-size: .85rem; color: var(--texto-suave); }
.pie-gala__marca { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--oro-rosa-plano); }

.btn-musica { background: rgba(31, 6, 14, .9); border: 1px solid var(--oro-rosa-plano); color: var(--rosa); }

@media (max-height: 640px) {
  .marquesina { height: 36svh; }
  .nombre { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cortina { transition-duration: .5s; }
  .foco, .borla, .medallon, .aviso__flechas i, .desliza i, .boleto__hint, .btn-gala--oro::after { animation: none !important; }
  .encendidas .bombilla { animation: none; background: radial-gradient(circle at 40% 35%, #fffaf0 0 25%, #ffe2a6 45%, #e3a35a 75%); }
}
