/* ==========================================================================
   PLANTILLA DE INVITACIÓN DE GALA — ESTILOS PRINCIPALES
   Los colores se inyectan desde config.js en :root para personalización rápida.
   ========================================================================== */

:root {
  --guinda: #7E4D6B;
  --guinda-2: #966281;
  --guinda-osc: #5A334B;
  --noche: #3D2234;
  --noche-2: #522F46;
  --vino: #B37FA0;
  --rosa: #D8B2C8;

  --oro: #C9A461;
  --oro-claro: #E4C98E;
  --oro-vivo: #F8E9C1;
  --oro-osc: #8E6B2D;

  --marfil: #FAF2F6;
  --marfil-2: #F2E4EC;
  --papel: #FFFBFD;
  --tiza: #FDF8FA;
  --tinta: #442538;
  --tinta-suave: #765469;

  --texto: #F9F1F5;
  --texto-suave: #E3CEDB;

  --titulo: 'Cinzel', Georgia, serif;
  --script: 'Corinthia', cursive;
  --plumon: 'Permanent Marker', cursive;
  --sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --pad: 22px;
  --radio: 22px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--noche);
  color: var(--tinta);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  background: var(--noche);
  color: var(--tinta);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.cerrado {
  overflow: hidden;
  height: 100dvh;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.svg-defs,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   PORTADA (#portada)
   ========================================================================== */

.portada {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--noche);
  color: var(--texto);
  display: flex;
  align-items: stretch;
  justify-content: center;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

body.abierto .portada {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.portada__fondo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: brightness(0.75) saturate(1.05);
}

.portada__bruma {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(61, 34, 52, 0.86) 0%,
      rgba(61, 34, 52, 0.42) 36%,
      rgba(61, 34, 52, 0.34) 60%,
      rgba(61, 34, 52, 0.90) 100%
    );
}

.portada__contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 8px;
  text-align: center;
}

.portada__cabecera {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.escudo {
  width: 68px;
  height: 78px;
  display: block;
}

.escudo--portada {
  width: 60px;
  height: 68px;
  margin-bottom: 4px;
}

.portada__promo {
  margin: 0;
  font-family: var(--titulo);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--oro-vivo);
  text-transform: uppercase;
}

.portada__nombre {
  margin: -4px 0 -8px;
  font-family: var(--script);
  font-size: clamp(54px, 14vw, 96px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--oro-vivo);
  -webkit-text-stroke: 0.014em currentColor;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.portada__colegio {
  margin: 4px 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--marfil);
  text-transform: uppercase;
}

.logo-alesus {
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 22px rgba(61, 34, 52, 0.42));
}

.logo-alesus--portada {
  width: clamp(138px, 34vw, 196px);
  height: auto;
  margin-bottom: 4px;
}

.logo-alesus--saludo {
  width: clamp(180px, 44vw, 250px);
  height: auto;
  margin: 8px auto 6px;
}

.logo-alesus--medalla {
  width: 68px;
  height: auto;
}

.logo-colegio {
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(61, 34, 52, 0.38));
}

.logo-colegio--portada {
  width: 72px;
  height: 76px;
  margin-bottom: 4px;
}

.logo-colegio--saludo {
  width: 86px;
  height: 92px;
  margin: 0 auto 12px;
}

.logo-colegio--medalla {
  width: 74px;
  height: 78px;
}

.logo-colegio--cierre {
  width: 82px;
  height: 86px;
  margin: 0 auto 14px;
}

.portada__para {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 22px;
  background: rgba(61, 34, 52, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(228, 201, 142, 0.72);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.portada__para-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--texto-suave);
}

.portada__para-familia {
  font-family: var(--script);
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--oro-vivo);
  -webkit-text-stroke: 0.012em currentColor;
}

.portada__para-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--marfil);
}

.portada__centro {
  position: relative;
  display: grid;
  place-items: center;
  margin: 8px 0;
}

.birrete__brillo {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 227, 166, 0.42) 0%, rgba(201, 162, 77, 0.12) 45%, transparent 72%);
  animation: brillo 3.2s ease-in-out infinite alternate;
}

.portada__birrete {
  position: relative;
  width: clamp(130px, 24vh, 210px);
  height: auto;
  border-radius: 50%;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(circle, #000 48%, transparent 74%);
  mask-image: radial-gradient(circle, #000 48%, transparent 74%);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.45));
  animation: flotar 3.4s ease-in-out infinite alternate;
}

.portada__pie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.portada__fecha {
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(61, 34, 52, 0.74);
  border: 1px solid rgba(228, 201, 142, 0.42);
  font-size: 13px;
  font-weight: 600;
  color: var(--marfil);
}

.portada__pista {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--oro-vivo), var(--oro-claro));
  color: var(--guinda-osc);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portada__pista:hover {
  transform: translateY(-2px);
}

.portada__anillo {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(246, 227, 166, 0.65);
  animation: anillo 2.1s ease-out infinite;
  pointer-events: none;
}

.portada__mano {
  width: 18px;
  height: 18px;
  animation: toque 1.5s ease-in-out infinite;
}

/* ==========================================================================
   TRANSICIÓN DE APERTURA (.viaje) & CAPA DE BIRRETES
   ========================================================================== */

.viaje {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.viaje.activo {
  opacity: 1;
  visibility: visible;
}

.viaje__velo {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(126, 77, 107, 0.94), rgba(61, 34, 52, 0.98));
}

.viaje__texto {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  color: var(--oro-vivo);
}

.viaje__linea {
  margin: 0;
  font-family: var(--titulo);
  font-size: clamp(18px, 4vw, 24px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.viaje__linea--script {
  font-family: var(--script);
  font-size: clamp(44px, 11vw, 76px);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 8px;
}

.viaje__linea.visible {
  opacity: 1;
  transform: translateY(0);
}

.capa-birretes {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
}

.birrete-volador {
  position: absolute;
  width: 54px;
  height: 42px;
  will-change: transform, opacity;
}

.destello {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--oro-vivo);
  box-shadow: 0 0 12px var(--oro-vivo);
  will-change: transform, opacity;
}

/* ==========================================================================
   CONTROLES PERSISTENTES (Borla, Volver, Música)
   ========================================================================== */

.borla {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.abierto .borla {
  opacity: 1;
}

.borla__cuerda {
  height: 3px;
  background: linear-gradient(90deg, var(--oro-osc), var(--oro-vivo), var(--oro));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.borla__pieza {
  position: absolute;
  top: 2px;
  left: 0;
  transform: translateX(0);
  transform-origin: top center;
  transition: transform 0.08s linear;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.volver-fijo {
  position: fixed;
  top: 16px;
  left: 14px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(227, 199, 122, 0.55);
  background: rgba(61, 34, 52, 0.85);
  backdrop-filter: blur(8px);
  color: var(--oro-vivo);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.2s ease;
}

body.abierto .volver-fijo {
  opacity: 1;
  pointer-events: auto;
}

.volver-fijo:hover {
  transform: translateY(-1px);
}

.musica-flotante {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(227, 199, 122, 0.65);
  background: rgba(61, 34, 52, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.2s ease;
}

body.abierto .musica-flotante {
  opacity: 1;
  pointer-events: auto;
}

.musica-flotante:hover {
  transform: scale(1.04);
}

.musica-flotante__ico {
  width: 24px;
  height: 18px;
}

.ecualizador {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.ecualizador i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 3px;
  background: var(--oro-vivo);
  transition: height 0.2s ease;
}

.musica-flotante.sonando .ecualizador i:nth-child(1) {
  animation: onda-sonido 0.75s ease-in-out infinite alternate;
}
.musica-flotante.sonando .ecualizador i:nth-child(2) {
  animation: onda-sonido 0.55s ease-in-out 0.15s infinite alternate;
}
.musica-flotante.sonando .ecualizador i:nth-child(3) {
  animation: onda-sonido 0.85s ease-in-out 0.05s infinite alternate;
}
.musica-flotante.sonando .ecualizador i:nth-child(4) {
  animation: onda-sonido 0.62s ease-in-out 0.25s infinite alternate;
}

/* ==========================================================================
   SISTEMA DE SECCIONES Y TIPOGRAFÍA
   ========================================================================== */

main.gala {
  display: block;
  width: 100%;
}

.seccion {
  position: relative;
  width: 100%;
  padding: clamp(68px, 10vw, 110px) var(--pad);
}

.seccion.claro {
  background: var(--marfil);
  color: var(--tinta);
}

.seccion.claro.seccion--alt {
  background: var(--marfil-2);
}

.seccion.noche {
  background: radial-gradient(circle at top center, var(--noche-2) 0%, var(--noche) 75%);
  color: var(--texto);
}

.contenedor {
  width: 100%;
  margin: 0 auto;
}

.contenedor--angosto {
  max-width: 640px;
}

.contenedor--medio {
  max-width: 880px;
}

.contenedor--ancho {
  max-width: 1080px;
}

.centro {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--titulo);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oro-osc);
}

.noche .eyebrow {
  color: var(--oro-claro);
}

.titulo {
  margin: 0 0 28px;
  font-family: var(--titulo);
  font-size: clamp(30px, 7.5vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--guinda-osc);
}

.noche .titulo {
  color: var(--texto);
}

.titulo em {
  display: inline-block;
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.55em;
  line-height: 0.85;
  color: var(--guinda);
  margin-left: 6px;
  -webkit-text-stroke: 0.012em currentColor;
}

.noche .titulo em {
  color: var(--oro-vivo);
}

.divisor {
  width: 200px;
  height: 16px;
  margin: 14px auto;
  display: block;
}

.parrafo-centrado {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--tinta-suave);
}

.parrafo-centrado--claro {
  color: var(--texto-suave);
}

/* Botones reutilizables */
.btn-oro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--oro-vivo) 0%, var(--oro-claro) 55%, var(--oro) 100%);
  color: var(--guinda-osc);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-oro:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.btn-oro--full {
  width: 100%;
}

.btn-oro--grande {
  padding: 16px 30px;
  font-size: 13px;
}

.btn-borde-oro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--oro-claro);
  background: transparent;
  color: var(--oro-vivo);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.btn-borde-oro:hover {
  background: rgba(246, 227, 166, 0.12);
}

.btn-outline {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--guinda);
  background: transparent;
  color: var(--guinda);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background: var(--guinda);
  color: var(--marfil);
}

.btn-texto {
  border: 0;
  background: transparent;
  color: var(--tinta-suave);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  padding: 8px;
}

.btn-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   1. SALUDO (#saludo)
   ========================================================================== */

.escudo--saludo {
  margin: 0 auto 12px;
}

.saludo__nombre {
  margin: -6px 0 4px;
  font-family: var(--script);
  font-size: clamp(56px, 14vw, 94px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--guinda);
  -webkit-text-stroke: 0.014em currentColor;
}

.saludo__colegio {
  margin: 8px 0 2px;
  font-family: var(--titulo);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--guinda-osc);
}

.saludo__grado {
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--tinta-suave);
}

.tarjeta-familia {
  background: var(--papel);
  border: 1.5px solid rgba(201, 162, 77, 0.65);
  border-radius: var(--radio);
  padding: 20px 24px;
  margin: 0 auto 26px;
  box-shadow: 0 12px 30px rgba(62, 12, 25, 0.08);
  color: var(--tinta);
}

.tarjeta-familia strong {
  color: var(--guinda);
}

.foto-marco {
  margin: 28px auto 0;
  background: var(--papel);
  padding: 12px 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(201, 162, 77, 0.55);
  box-shadow: 0 18px 40px rgba(62, 12, 25, 0.14);
}

.foto-marco img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.foto-marco figcaption {
  margin-top: 12px;
  font-family: var(--script);
  font-size: 32px;
  line-height: 1;
  color: var(--guinda);
}

/* ==========================================================================
   2. CUENTA REGRESIVA (#cuenta)
   ========================================================================== */

.calendario-card {
  max-width: 310px;
  margin: 0 auto 32px;
  padding: 28px 24px;
  border-radius: 26px;
  background: rgba(126, 77, 107, 0.35);
  border: 2px solid var(--oro-claro);
  outline: 1px solid rgba(227, 199, 122, 0.35);
  outline-offset: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.calendario__dia-semana {
  font-family: var(--titulo);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--oro-claro);
}

.calendario__numero {
  font-family: var(--titulo);
  font-size: clamp(74px, 18vw, 96px);
  line-height: 0.92;
  color: var(--oro-vivo);
}

.calendario__mes {
  font-family: var(--titulo);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--texto);
}

.calendario__hora {
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(246, 227, 166, 0.14);
  border: 1px solid rgba(246, 227, 166, 0.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--oro-vivo);
}

.cuenta__faltan {
  margin: 0 0 14px;
  font-family: var(--titulo);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--oro-claro);
}

.contador {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 96px));
  justify-content: center;
  gap: 12px;
}

.contador__caja {
  padding: 16px 8px;
  border-radius: 18px;
  background: linear-gradient(155deg, var(--oro-vivo) 0%, var(--oro-claro) 45%, var(--oro) 100%);
  color: var(--guinda-osc);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contador__caja strong {
  font-family: var(--titulo);
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.05;
}

.contador__caja span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-top: 4px;
}

/* Banner de ubicación en 2 columnas integrado debajo de FALTAN */
.banner-lugar {
  margin: 34px auto 0;
  max-width: 600px;
  padding: 20px 24px;
  border-radius: 22px;
  background: rgba(126, 77, 107, 0.28);
  border: 1.5px solid rgba(228, 201, 142, 0.55);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px 22px;
  text-align: left;
}

.banner-lugar__eyebrow {
  display: block;
  font-family: var(--titulo);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--oro-claro);
}

.banner-lugar__nombre {
  margin: 4px 0 2px;
  font-family: var(--titulo);
  font-size: clamp(18px, 3.6vw, 22px);
  color: var(--oro-vivo);
}

.banner-lugar__dir {
  margin: 0;
  font-size: 14px;
  color: var(--texto-suave);
}

.banner-lugar__accion {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 560px) {
  .banner-lugar {
    grid-template-columns: 1fr auto;
    padding: 16px;
    gap: 12px;
  }
  .banner-lugar .btn-oro {
    padding: 11px 16px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}

/* ==========================================================================
   3. MENSAJE Y LEMA (#mensaje)
   ========================================================================== */

.placa-mensaje {
  background: linear-gradient(165deg, var(--guinda) 0%, var(--noche) 100%);
  color: var(--texto);
  padding: clamp(30px, 6vw, 48px) clamp(22px, 5vw, 40px);
  border-radius: 26px;
  border: 2px solid var(--oro-claro);
  box-shadow: 0 22px 44px rgba(61, 34, 52, 0.25);
}

.placa-mensaje__texto p {
  margin: 0 0 16px;
  color: var(--texto);
}

.placa-mensaje__lema-label {
  display: block;
  margin-top: 16px;
  font-family: var(--titulo);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--oro-claro);
}

.placa-mensaje__lema {
  margin: 8px 0 14px;
  font-family: var(--plumon);
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.25;
  color: var(--oro-vivo);
  transform: rotate(-1.2deg);
}

.placa-mensaje__pie {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--texto-suave);
}

/* ==========================================================================
   4. EVENTOS (#eventos)
   ========================================================================== */

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.eventos-grid--unico {
  max-width: 480px;
  margin: 0 auto;
}

.evento {
  background: var(--papel);
  border: 1.5px solid rgba(201, 162, 77, 0.65);
  border-radius: 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 14px 32px rgba(62, 12, 25, 0.08);
}

.evento__tipo {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--guinda);
  color: var(--oro-vivo);
  font-family: var(--titulo);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.evento__fecha {
  margin: 8px 0 0;
  font-family: var(--titulo);
  font-size: 20px;
  color: var(--guinda-osc);
}

.evento__hora {
  margin: 0;
  font-weight: 700;
  color: var(--guinda);
}

.evento__lugar {
  margin: 8px 0 0;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--tinta);
}

.evento__dir {
  margin: 0;
  font-size: 14px;
  color: var(--tinta-suave);
}

.evento__nota {
  margin: 10px 0 14px;
  font-family: var(--plumon);
  font-size: 14px;
  color: var(--vino);
  transform: rotate(-1deg);
}

/* ==========================================================================
   5. PASE DIGITAL (#pase)
   ========================================================================== */

.mesa-buscador {
  max-width: 440px;
  margin: 0 auto 22px;
}

.mesa-select {
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--oro-claro);
  background: rgba(61, 34, 52, 0.85);
  color: var(--oro-vivo);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.mesa-select option {
  background: var(--noche);
  color: var(--texto);
}

.ticket__dato--destacado {
  background: linear-gradient(155deg, rgba(216, 178, 200, 0.32), rgba(248, 233, 193, 0.35));
  border-color: var(--guinda);
}

.cuaderno__mesa-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(126, 77, 107, 0.14);
  border: 1px solid rgba(126, 77, 107, 0.3);
  color: var(--guinda-osc);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.nota-marcador {
  margin: -8px auto 22px;
  max-width: 480px;
  font-family: var(--plumon);
  font-size: 13.5px;
  color: var(--oro-vivo);
  line-height: 1.45;
  transform: rotate(-1deg);
}

.ticket {
  max-width: 440px;
  margin: 0 auto 28px;
  background: var(--papel);
  color: var(--tinta);
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--oro-claro);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

.ticket__top {
  background: linear-gradient(135deg, var(--guinda), var(--guinda-osc));
  color: var(--oro-vivo);
  padding: 14px 18px;
  font-family: var(--titulo);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.ticket__cuerpo {
  padding: 24px 22px 18px;
  background-image: radial-gradient(rgba(201, 162, 77, 0.14) 1px, transparent 1px);
  background-size: 16px 16px;
}

.ticket__familia {
  margin: 0;
  font-family: var(--script);
  font-size: 42px;
  line-height: 1.05;
  color: var(--guinda);
  -webkit-text-stroke: 0.012em currentColor;
}

.ticket__egresado {
  margin: 6px 0 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tinta-suave);
}

.ticket__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.ticket__dato {
  background: var(--marfil);
  border: 1px solid rgba(201, 162, 77, 0.6);
  border-radius: 14px;
  padding: 10px 6px;
}

.ticket__dato span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--tinta-suave);
}

.ticket__dato strong {
  font-family: var(--titulo);
  font-size: 20px;
  color: var(--guinda-osc);
}

.ticket__lugar {
  margin: 0;
  font-size: 13px;
  color: var(--tinta-suave);
}

.ticket__corte {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}

.ticket__corte::before {
  content: "";
  width: 100%;
  border-top: 2px dashed rgba(126, 77, 107, 0.35);
}

.ticket__corte::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 12px 50%, var(--noche) 11px, transparent 12px),
    radial-gradient(circle at calc(100% - 12px) 50%, var(--noche) 11px, transparent 12px);
}

.ticket__qr-zona {
  padding: 14px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#ticket-qr {
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(126, 77, 107, 0.2);
}

.ticket__qr-texto {
  margin: 0;
  font-family: var(--titulo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--guinda);
}

.pase-extra {
  max-width: 440px;
  margin: 0 auto;
  padding: 22px 20px;
  border-radius: 20px;
  border: 1.5px dashed rgba(227, 199, 122, 0.55);
  background: rgba(126, 77, 107, 0.26);
}

.pase-extra h3 {
  margin: 0 0 8px;
  font-family: var(--titulo);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--oro-vivo);
}

.pase-extra p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--texto-suave);
}

/* ==========================================================================
   6. HORARIO (#horario)
   ========================================================================== */

.programa-card {
  background: var(--papel);
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(201, 162, 77, 0.65);
  box-shadow: 0 16px 34px rgba(62, 12, 25, 0.08);
  text-align: left;
}

.programa-card__head {
  display: grid;
  grid-template-columns: 150px 1fr;
  background: var(--guinda);
  color: var(--oro-vivo);
  padding: 14px 20px;
  font-family: var(--titulo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.programa-fila {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(201, 162, 77, 0.3);
  border-left: 5px solid var(--acento, var(--oro));
}

.programa-fila:last-child {
  border-bottom: 0;
}

.programa-fila__hora {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--guinda);
}

.programa-fila__actividad strong {
  display: block;
  font-size: 16px;
  color: var(--tinta);
}

.programa-fila__actividad span {
  font-size: 13.5px;
  color: var(--tinta-suave);
}

@media (max-width: 520px) {
  .programa-card__head,
  .programa-fila {
    grid-template-columns: 112px 1fr;
    padding: 13px 14px;
  }
}

/* ==========================================================================
   7. GUÍAS (#guias)
   ========================================================================== */

.guias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}

.guia-card {
  padding: 22px 16px;
  border-radius: 22px;
  background: rgba(126, 77, 107, 0.28);
  border: 1px solid rgba(227, 199, 122, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.guia-card__medallon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--titulo);
  font-size: 20px;
  font-weight: 700;
  color: var(--guinda-osc);
  background: linear-gradient(135deg, var(--oro-vivo), var(--oro));
  box-shadow: 0 0 0 4px rgba(227, 199, 122, 0.2);
}

.guia-card__rol {
  font-family: var(--titulo);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--oro-claro);
}

.guia-card__nombre {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--texto);
}

/* ==========================================================================
   8. PASAMOS LISTA (#lista)
   ========================================================================== */

.lista-controles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.pill-info {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--guinda);
  color: var(--oro-vivo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.lista-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: var(--marfil-2);
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 77, 0.55);
  margin-bottom: 20px;
}

.lista-tab {
  border: 0;
  background: transparent;
  color: var(--guinda-osc);
  padding: 9px 22px;
  border-radius: 999px;
  font-family: var(--titulo);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.lista-tab.activo {
  background: var(--guinda);
  color: var(--oro-vivo);
}

.cuaderno {
  position: relative;
  background: var(--papel);
  border-radius: 20px;
  border: 1.5px solid rgba(201, 162, 77, 0.65);
  box-shadow: 0 18px 36px rgba(62, 12, 25, 0.1);
  overflow: hidden;
  text-align: left;
}

.cuaderno::before {
  content: "";
  position: absolute;
  top: 56px;
  bottom: 0;
  left: 52px;
  width: 2px;
  background: rgba(143, 42, 65, 0.35);
  pointer-events: none;
}

.cuaderno__cabecera {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 15px 22px;
  background: var(--guinda);
  color: var(--oro-vivo);
}

.cuaderno__cabecera strong {
  font-family: var(--titulo);
  font-size: 17px;
}

.cuaderno__cabecera span {
  font-size: 13px;
  color: var(--texto-suave);
}

.cuaderno__filas {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 480px;
  overflow-y: auto;
}

.cuaderno--tabla::before {
  display: none;
}

.cuaderno__columnas {
  display: grid;
  grid-template-columns: 96px 1fr 94px;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--marfil-2);
  border-bottom: 1.5px solid rgba(201, 164, 97, 0.45);
  font-family: var(--titulo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--guinda-osc);
}

.cuaderno__columnas span:last-child {
  text-align: center;
}

.cuaderno__fila {
  display: grid;
  grid-template-columns: 96px 1fr 94px;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(107, 68, 80, 0.14);
  font-size: 14.5px;
  transition: background 0.25s ease;
}

.cuaderno__mesa-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--guinda);
  color: var(--oro-vivo);
  font-family: var(--titulo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  white-space: nowrap;
}

.cuaderno__pases-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 77, 152, 0.1);
  border: 1px solid rgba(0, 77, 152, 0.28);
  color: #004D98;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .cuaderno__columnas,
  .cuaderno__fila {
    grid-template-columns: 78px 1fr 78px;
    padding: 10px 12px;
    gap: 8px;
    font-size: 13.5px;
  }
  .cuaderno__mesa-tag,
  .cuaderno__pases-tag {
    font-size: 10.5px;
    padding: 3px 7px;
  }
}

.cuaderno__num {
  font-family: var(--titulo);
  font-size: 12px;
  font-weight: 700;
  color: var(--tinta-suave);
  text-align: center;
}

.cuaderno__nombre {
  font-weight: 600;
  color: var(--tinta);
}

.cuaderno__presente {
  font-family: var(--plumon);
  font-size: 12px;
  color: var(--oro-osc);
  transform: rotate(-3deg);
  white-space: nowrap;
}

.cuaderno__fila.destacado {
  background: linear-gradient(90deg, rgba(246, 227, 166, 0.55), rgba(246, 227, 166, 0.25));
}

.badge-aqui {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--guinda);
  color: var(--oro-vivo);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  vertical-align: middle;
}

/* ==========================================================================
   9. MOMENTOS POLAROID (#anios)
   ========================================================================== */

.momentos__pista-movil {
  display: none;
  margin: -14px 0 14px;
  font-size: 13.5px;
  color: var(--tinta-suave);
}

.momentos-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 28px;
  max-width: 760px;
  margin: 12px auto 0;
}

.momentos__puntos {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.momentos__punto {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(126, 77, 107, 0.3);
  transition: width 0.25s ease, background 0.25s ease;
}

.momentos__punto.activo {
  width: 26px;
  background: var(--guinda);
}

@media (max-width: 640px) {
  .momentos__pista-movil {
    display: block;
  }
  .momentos-timeline {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 18px;
    max-width: 100%;
    padding: 18px 14px 24px;
    scrollbar-width: none;
  }
  .momentos-timeline::-webkit-scrollbar {
    display: none;
  }
  .momentos-timeline .polaroid {
    flex: 0 0 82vw;
    max-width: 330px;
    scroll-snap-align: center;
  }
  .momentos__puntos {
    display: flex;
  }
}

.polaroid {
  position: relative;
  background: #fff;
  padding: 14px 14px 20px;
  border-radius: 6px;
  box-shadow: 0 18px 34px rgba(61, 34, 52, 0.16);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.3s ease;
  text-align: left;
}

.polaroid:hover {
  transform: rotate(0deg) translateY(-4px);
}

.polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 78px;
  height: 22px;
  background: rgba(246, 227, 166, 0.72);
  border: 1px solid rgba(201, 162, 77, 0.35);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.polaroid__tag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--plumon);
  font-size: 12.5px;
  color: var(--oro-osc);
}

.polaroid__titulo {
  margin: 4px 0 6px;
  font-family: var(--titulo);
  font-size: 16px;
  color: var(--guinda-osc);
}

.polaroid__texto {
  margin: 0;
  font-size: 14px;
  color: var(--tinta-suave);
}

/* ==========================================================================
   10. GALERÍA POLAROID (#galeria)
   ========================================================================== */

.galeria__pista {
  margin: -14px 0 22px;
  font-size: 13.5px;
  color: var(--texto-suave);
}

.galeria__carrusel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 8px 26px;
  scrollbar-width: none;
}

.galeria__carrusel::-webkit-scrollbar {
  display: none;
}

.galeria__item {
  flex: 0 0 min(78vw, 310px);
  scroll-snap-align: center;
  background: #fff;
  padding: 12px 12px 18px;
  border-radius: 6px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
  transform: rotate(var(--rot, 0deg));
}

.galeria__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.galeria__item figcaption {
  margin-top: 12px;
  font-family: var(--plumon);
  font-size: 15px;
  color: var(--guinda-osc);
}

.galeria__puntos {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.galeria__punto {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 227, 166, 0.32);
  transition: width 0.25s ease, background 0.25s ease;
}

.galeria__punto.activo {
  width: 26px;
  background: var(--oro-vivo);
}

/* ==========================================================================
   11. VESTIMENTA (#vestimenta)
   ========================================================================== */

.vestimenta-arcos {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 260px));
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.arco-card {
  background: var(--papel);
  border: 2px solid var(--oro-claro);
  border-radius: 160px 160px 22px 22px;
  padding: 14px 14px 22px;
  box-shadow: 0 16px 30px rgba(62, 12, 25, 0.08);
}

.arco-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 148px 148px 12px 12px;
}

.arco-card h3 {
  margin: 14px 0 2px;
  font-family: var(--titulo);
  font-size: 17px;
  letter-spacing: 0.16em;
  color: var(--guinda-osc);
}

.arco-card p {
  margin: 0;
  font-size: 14px;
  color: var(--tinta-suave);
}

.vestimenta__nota {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--tinta-suave);
}

.paleta-promo {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.swatch__circulo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--oro);
  box-shadow: 0 8px 18px rgba(62, 12, 25, 0.16);
}

.swatch span {
  font-family: var(--titulo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--guinda-osc);
}

/* ==========================================================================
   12. CANCIÓN Y MEDALLA (#cancion)
   ========================================================================== */

.foto-clicable {
  cursor: zoom-in;
}

.galeria-integrada {
  margin-top: 44px;
}

.galeria-integrada__titulo {
  margin: 10px 0 6px;
  font-family: var(--titulo);
  font-size: clamp(20px, 4.5vw, 28px);
  color: var(--guinda-osc);
}

.galeria-integrada__pista {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--tinta-suave);
}

.galeria__puntos--claro .galeria__punto {
  background: rgba(126, 77, 107, 0.3);
}

.galeria__puntos--claro .galeria__punto.activo {
  background: var(--guinda);
}

/* Banner compacto de canción en 2 columnas */
.seccion--banner {
  padding-top: 46px;
  padding-bottom: 46px;
}

.banner-cancion {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(126, 77, 107, 0.28);
  border: 1.5px solid rgba(228, 201, 142, 0.55);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px 26px;
  text-align: left;
}

.banner-cancion__titulo {
  margin: 4px 0 4px;
  font-family: var(--titulo);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--texto);
}

.banner-cancion__titulo em {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.45em;
  color: var(--oro-vivo);
  margin-left: 6px;
}

.banner-cancion__artista {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.22em;
}

.medalla--compacta {
  width: 108px;
  height: 108px;
  border-width: 3px;
}

.medalla__aro--compacto {
  width: 86px;
  height: 86px;
}

.medalla__badge--compacto {
  width: 34px;
  height: 34px;
  font-size: 13px;
  right: 0;
  bottom: 0;
}

@media (max-width: 520px) {
  .banner-cancion {
    padding: 18px 18px;
    gap: 14px;
  }
  .medalla--compacta {
    width: 88px;
    height: 88px;
  }
  .medalla__aro--compacto {
    width: 70px;
    height: 70px;
  }
  .logo-alesus--medalla {
    width: 52px;
  }
}

/* Muro de dedicatorias guardadas */
.muro-firmas-wrap {
  margin-top: 30px;
}

.muro-firmas__titulo {
  margin: 0 0 14px;
  font-family: var(--titulo);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--guinda-osc);
}

.muro-firmas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.muro-firma-card {
  background: var(--papel);
  border: 1px solid rgba(201, 164, 97, 0.5);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 6px 16px rgba(61, 34, 52, 0.06);
}

.muro-firma-card p {
  margin: 0 0 6px;
  font-family: var(--plumon);
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--guinda-osc);
}

.muro-firma-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--tinta-suave);
}

/* Lightbox visor de imágenes */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(31, 16, 26, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox__marco {
  margin: 0;
  max-width: min(92vw, 960px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox__marco img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(228, 201, 142, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__pie {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--oro-vivo);
  font-family: var(--titulo);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-align: center;
}

.lightbox__pie small {
  color: var(--texto-suave);
  font-family: var(--sans);
  font-size: 12px;
}

.lightbox__cerrar {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(228, 201, 142, 0.6);
  background: rgba(61, 34, 52, 0.85);
  color: var(--oro-vivo);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(228, 201, 142, 0.6);
  background: rgba(61, 34, 52, 0.85);
  color: var(--oro-vivo);
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.lightbox__nav--prev {
  left: 14px;
}

.lightbox__nav--next {
  right: 14px;
}

@media (max-width: 600px) {
  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .lightbox__nav--prev {
    left: 8px;
  }
  .lightbox__nav--next {
    right: 8px;
  }
}

.cancion__artista {
  margin: -14px 0 26px;
  font-family: var(--titulo);
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--oro-claro);
}

.medalla-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.medalla__cinta {
  width: 44px;
  height: 46px;
  background: linear-gradient(180deg, var(--guinda-2), var(--guinda-osc));
  border-left: 3px solid var(--oro-claro);
  border-right: 3px solid var(--oro-claro);
  margin-bottom: -14px;
  border-radius: 4px 4px 0 0;
}

.medalla {
  position: relative;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  border: 4px solid var(--oro-vivo);
  background: radial-gradient(circle at 30% 30%, var(--oro-vivo), var(--oro) 65%, var(--oro-osc));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48), 0 0 28px rgba(246, 227, 166, 0.25);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}

.medalla:hover {
  transform: scale(1.04);
}

.medalla__aro {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: var(--noche);
  border: 2px solid var(--oro-claro);
  display: grid;
  place-items: center;
}

.medalla.sonando .medalla__aro {
  animation: girar 12s linear infinite;
}

.medalla__escudo {
  width: 68px;
  height: 78px;
}

.medalla__badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--papel);
  color: var(--guinda);
  font-size: 16px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.cancion__estado {
  margin: 0;
  font-size: 14px;
  color: var(--texto-suave);
}

/* ==========================================================================
   13. FIRMA LA CAMISA (#camisa)
   ========================================================================== */

.camisa-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 780px) {
  .camisa-layout {
    grid-template-columns: 1fr;
  }
}

.camisa-lienzo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--papel);
  border: 1.5px solid rgba(201, 162, 77, 0.6);
  box-shadow: 0 16px 34px rgba(62, 12, 25, 0.1);
}

.camisa-lienzo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.camisa-firmas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.firma-item {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  font-family: var(--plumon);
  font-size: clamp(10px, 1.8vw, 13px);
  line-height: 1.15;
  text-align: center;
  max-width: 135px;
  opacity: 0.86;
}

.firma-item span {
  display: block;
  font-size: 0.85em;
  opacity: 0.85;
}

.camisa-tu-zona {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) rotate(-3deg);
  min-width: 150px;
  max-width: 210px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px dashed var(--guinda);
  background: rgba(255, 252, 245, 0.88);
  font-family: var(--plumon);
  font-size: 13px;
  color: var(--guinda);
  text-align: center;
  transition: all 0.25s ease;
}

.camisa-tu-zona.firmada {
  border-style: solid;
  border-color: var(--oro);
  background: rgba(255, 252, 245, 0.94);
  box-shadow: 0 8px 20px rgba(126, 77, 107, 0.18);
}

.camisa-form {
  background: var(--papel);
  padding: 24px;
  border-radius: 22px;
  border: 1.5px solid rgba(201, 162, 77, 0.55);
  text-align: left;
}

.campo {
  margin-bottom: 16px;
}

.campo__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.campo label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--titulo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--guinda-osc);
}

.campo__contador {
  font-size: 12px;
  color: var(--tinta-suave);
}

.campo input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(126, 77, 107, 0.25);
  background: var(--marfil);
  color: var(--tinta);
  font-family: inherit;
  font-size: 15px;
}

.campo input:focus {
  outline: none;
  border-color: var(--guinda);
  background: #fff;
}

.camisa-confirmado {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 162, 77, 0.4);
  font-size: 14px;
  color: var(--guinda);
}

.camisa-confirmado__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* ==========================================================================
   14. CONFIRMAR ASISTENCIA (#confirmar)
   ========================================================================== */

.stepper-card {
  max-width: 380px;
  margin: 0 auto 20px;
  padding: 22px 20px;
  border-radius: 22px;
  background: rgba(126, 77, 107, 0.34);
  border: 1.5px solid rgba(227, 199, 122, 0.48);
}

.stepper__pregunta {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--texto);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.stepper__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--oro-claro);
  background: rgba(246, 227, 166, 0.14);
  color: var(--oro-vivo);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper__valor {
  min-width: 108px;
  font-family: var(--titulo);
  font-size: 22px;
  color: var(--oro-vivo);
}

.confirmar__nota {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--texto-suave);
}

.confirmar__nota a {
  color: var(--oro-claro);
}

/* ==========================================================================
   15. CIERRE (#cierre) & 16. CRÉDITOS (.creditos)
   ========================================================================== */

.cierre {
  overflow: hidden;
  border-top: 1px solid rgba(227, 199, 122, 0.25);
}

.cierre__fondo {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(150, 98, 129, 0.45), rgba(61, 34, 52, 0.96));
}

.cierre__contenido {
  position: relative;
  z-index: 2;
}

.escudo--cierre {
  margin: 0 auto 14px;
}

.cierre__promo {
  margin: 18px 0 0;
  font-family: var(--titulo);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--oro-claro);
}

.cierre__nombre {
  margin: -4px 0 26px;
  font-family: var(--script);
  font-size: clamp(54px, 14vw, 88px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--oro-vivo);
}

.cierre__acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.creditos {
  background: #2A1523;
  color: var(--texto-suave);
  padding: 52px var(--pad) 64px;
  border-top: 1px solid rgba(228, 201, 142, 0.22);
}

.creditos__pregunta {
  margin: 0 0 18px;
  font-family: var(--titulo);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--oro-claro);
}

.creditos__mail {
  margin: 16px 0 0;
  font-size: 14px;
}

.creditos__linea {
  border: 0;
  border-top: 1px solid rgba(227, 199, 122, 0.22);
  margin: 26px auto 18px;
  max-width: 280px;
}

.creditos__marca {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--texto-suave);
}

/* ==========================================================================
   ANIMACIONES KEYFRAMES
   ========================================================================== */

@keyframes flotar {
  from {
    transform: translateY(0) rotate(-2deg);
  }
  to {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes brillo {
  from {
    transform: scale(0.92);
    opacity: 0.65;
  }
  to {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes anillo {
  0% {
    transform: scale(0.96);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.16);
    opacity: 0;
  }
}

@keyframes toque {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(0.92);
  }
}

@keyframes onda-sonido {
  from {
    height: 4px;
  }
  to {
    height: 16px;
  }
}

@keyframes girar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
