/* Candela · MIS 15 — estilo La Tarjeta Digital (lila + negro) */
:root {
  --bg: #e5daf2;
  --bg-deep: #d8c8eb;
  --bg-elevated: #f0e8f8;
  --surface: rgba(0, 0, 0, 0.06);
  --surface-strong: rgba(0, 0, 0, 0.1);
  --celeste: #9b7ebe;
  --celeste-soft: #c9b8e0;
  --celeste-deep: #1a1a1a;
  --silver: #4a4a4a;
  --silver-deep: #2a2a2a;
  --accent-blush: #e8c4d4;
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.68);
  --border: rgba(0, 0, 0, 0.22);
  --font-display: "Montserrat", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
  --font-birds: "Birds of Paradise", "Great Vibes", cursive;
  --font-body: "Montserrat", system-ui, sans-serif;
  --radius: 18px;
  --radius-soft: 22px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.06);
  --band-lila-top: #e8dff5;
  --band-lila-bot: #ddd0ef;
  --band-crema: #ebe9e4;
  --silk-lavender-bg:
    radial-gradient(ellipse 85% 58% at 12% 10%, rgba(255, 248, 244, 0.65) 0%, transparent 62%),
    radial-gradient(ellipse 70% 56% at 90% 88%, rgba(196, 120, 108, 0.26) 0%, transparent 68%),
    linear-gradient(152deg, #fbece6 0%, #f6ddd4 42%, #efc9bc 78%, #e4b3a4 100%);
}

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

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Birds of Paradise";
  src: url("assets/fonts/birds-of-paradise.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--silk-lavender-bg);
  line-height: 1.55;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

/* Cursor con destellos (activo tras ingresar; puntero fino, sin reduced-motion) */
body.has-sparkle-cursor {
  cursor: none;
}

body.has-sparkle-cursor.modal-open {
  cursor: auto;
}

body.has-sparkle-cursor.modal-open .sparkle-cursor-layer {
  display: none;
}

.sparkle-cursor-layer {
  position: fixed;
  inset: 0;
  z-index: 155;
  pointer-events: none;
  overflow: hidden;
}

.sparkle-cursor__core {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #ede4f7 45%, rgba(155, 126, 190, 0.88) 100%);
  box-shadow:
    0 0 8px 2px rgba(255, 255, 255, 0.95),
    0 0 22px 7px rgba(139, 99, 180, 0.45);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.sparkle-cursor__core.is-hidden {
  opacity: 0;
}

@keyframes sparkle-cursor-fall {
  0% {
    transform: translate(-50%, -50%) rotate(var(--g-rot0, 0deg)) scale(var(--sparkle-scale, 1));
    opacity: 1;
  }
  18% {
    opacity: 0.88;
  }
  100% {
    transform: translate(
        calc(-50% + var(--sparkle-drift, 0px)),
        calc(-50% + var(--sparkle-fall, 80px))
      )
      rotate(calc(var(--g-rot0, 0deg) + var(--sparkle-rot, 25deg)))
      scale(0.06);
    opacity: 0;
  }
}

/* Partículas tipo glitter (sin emoji): puntos, micro-rombos y reflejos plateados */
.sparkle-cursor__particle {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--g-w, 4px);
  height: var(--g-h, 4px);
  border-radius: var(--g-r, 50%);
  pointer-events: none;
  user-select: none;
  animation: sparkle-cursor-fall 0.72s cubic-bezier(0.2, 0.65, 0.35, 1) forwards;
  box-shadow:
    0 0 1px rgba(255, 255, 255, 1),
    0 0 4px rgba(255, 255, 255, 0.85),
    0 0 10px rgba(210, 218, 235, 0.75),
    0 0 18px rgba(175, 186, 210, 0.45);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 6px rgba(195, 205, 225, 0.65));
}

a {
  color: var(--text);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Pantalla música.
   LA VUELTA: sacar .music-gate__photo del HTML y esta regla;
   el fondo queda solo en var(--silk-lavender-bg). */
.music-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--silk-lavender-bg);
  transition: opacity 0.55s ease, visibility 0.55s;
}

.music-gate__art {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, calc(100dvh * 1152 / 2048));
  aspect-ratio: 1152 / 2048;
  max-height: 100%;
  pointer-events: none;
}

.music-gate__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.music-gate__cande {
  position: absolute;
  z-index: 1;
  width: 40%;
  right: 10%;
  bottom: 3%;
  height: auto;
  transform: translateX(1cm) rotate(-8deg);
  transform-origin: center center;
  pointer-events: none;
}

.music-gate__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.music-gate__ambient-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--sp-w, 3px);
  height: var(--sp-h, 3px);
  border-radius: var(--sp-r, 50%);
  pointer-events: none;
  background: var(--sp-bg, #fff);
  box-shadow:
    0 0 2px rgba(255, 255, 255, 0.95),
    0 0 8px rgba(255, 255, 255, 0.55),
    0 0 16px rgba(255, 220, 210, 0.35);
  animation: music-gate-ambient-spark var(--sp-dur, 3.5s) ease-out forwards;
}

@keyframes music-gate-ambient-spark {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }

  12% {
    opacity: 0.85;
  }

  35% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }

  100% {
    transform: translate(
        calc(-50% + var(--sp-drift, 0px)),
        calc(-50% + var(--sp-rise, -12px))
      )
      scale(0.2);
    opacity: 0;
  }
}

/* Bolas de discoteca — apertura */
.music-gate__disco {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.music-gate__disco.is-done {
  visibility: hidden;
}

.music-gate__disco-pendant {
  position: absolute;
  top: 0;
  left: var(--db-x, 50%);
  width: var(--db-size, 52px);
  height: var(--db-line-h, 320px);
  transform: translateX(-50%);
  overflow: visible;
}

.music-gate__disco-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.5px;
  height: var(--db-line-h, 320px);
  margin-left: -0.75px;
  transform-origin: top center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 236, 228, 0.55) 55%,
    rgba(214, 160, 148, 0.35) 100%
  );
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.25);
  z-index: 0;
  animation: music-gate-disco-line var(--db-dur, 12.5s) linear var(--db-delay, 0s) forwards;
}

@keyframes music-gate-disco-line {
  0%,
  100% {
    transform: scaleY(0);
    opacity: 0;
  }

  2% {
    opacity: 1;
  }

  28%,
  48% {
    transform: scaleY(1);
    opacity: 1;
  }

  98% {
    opacity: 0;
  }
}

.music-gate__disco-ball-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--db-size, 52px);
  margin-left: calc(var(--db-size, 52px) / -2);
  z-index: 1;
  animation: music-gate-disco-ball-travel var(--db-dur, 12.5s) linear var(--db-delay, 0s) forwards;
}

@keyframes music-gate-disco-ball-travel {
  0%,
  100% {
    top: 0;
    opacity: 0;
  }

  2% {
    opacity: 1;
  }

  28%,
  48% {
    top: var(--db-travel, 268px);
    opacity: 1;
  }

  98% {
    opacity: 0;
  }
}

.music-gate__disco-sphere {
  position: relative;
  display: block;
  width: var(--db-size, 52px);
  height: var(--db-size, 52px);
  border-radius: 50%;
  overflow: visible;
  box-shadow:
    0 16px 28px rgba(74, 42, 36, 0.3),
    0 0 22px rgba(255, 255, 255, 0.35);
}

/* Casquillo donde engancha el hilo */
.music-gate__disco-sphere::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 16%;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #8f949d 0%, #f4f5f7 45%, #7b808a 100%);
}

/* El canvas sobresale de la esfera para que los destellos no se corten */
.music-gate__disco-canvas {
  position: absolute;
  left: -25%;
  top: -25%;
  width: 150%;
  height: 150%;
  display: block;
}

/* Mientras se ve la portada, la página de atrás no se puede desplazar */
html.is-gate-open,
html.is-gate-open body {
  overflow: hidden;
}

.music-gate {
  touch-action: none;
  overscroll-behavior: contain;
}

.music-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.music-gate__inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  width: min(100%, 26rem);
}

.music-gate__title {
  position: relative;
  margin: 0 0 clamp(2rem, 6vw, 2.75rem);
  line-height: 1.05;
}

.music-gate__title-glitter {
  position: absolute;
  inset: -18% -12%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.music-gate__glitter-particle {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--g-w, 3px);
  height: var(--g-h, 3px);
  border-radius: var(--g-r, 50%);
  pointer-events: none;
  background: var(--g-bg, #fff);
  box-shadow:
    0 0 3px rgba(255, 255, 255, 1),
    0 0 10px rgba(255, 255, 255, 0.85),
    0 0 18px rgba(255, 228, 218, 0.65);
  animation: music-gate-glitter-twinkle var(--g-dur, 1.4s) ease-out forwards;
}

@keyframes music-gate-glitter-twinkle {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }

  20% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }

  100% {
    transform: translate(
        calc(-50% + var(--g-drift, 0px)),
        calc(-50% + var(--g-rise, -14px))
      )
      scale(0.1);
    opacity: 0;
  }
}

@keyframes music-gate-title-enter {
  from {
    opacity: 0;
    transform: translateY(1.75rem);
    filter: blur(3px);
  }

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

@keyframes music-gate-actions-enter {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

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

.music-gate__title-name,
.music-gate__title-event {
  position: relative;
  z-index: 1;
  display: block;
  color: #4a342c;
  -webkit-text-fill-color: #4a342c;
}

.music-gate__title-name {
  font-family: var(--font-script);
  font-size: clamp(3.25rem, 14vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow:
    0 0 28px rgba(255, 255, 255, 0.45),
    0 0 48px rgba(255, 255, 255, 0.18),
    0 2px 16px rgba(120, 72, 60, 0.16);
}

.music-gate__title-event {
  margin-top: 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(2.15rem, 8.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.35),
    0 0 36px rgba(255, 255, 255, 0.14);
}

@media (prefers-reduced-motion: no-preference) {
  .music-gate__title-name {
    animation: music-gate-title-enter 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .music-gate__title-event {
    animation: music-gate-title-enter 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
  }

  .music-gate__actions {
    animation: music-gate-actions-enter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
  }
}

.music-gate .btn {
  min-width: min(100%, 17.5rem);
  padding: 0.92rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    border-color 0.35s ease;
}

.music-gate .btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #efc9bc;
  color: #4a342c;
  border: 1px solid rgba(176, 100, 88, 0.35);
  box-shadow: none;
}

.music-gate .btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 62%
  );
  transform: translateX(-130%);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-gate .btn--primary:hover {
  transform: none;
  background: #e8b8a8;
  border-color: rgba(176, 100, 88, 0.5);
  color: #4a342c;
  box-shadow: none;
}

.music-gate .btn--primary:hover::before {
  transform: translateX(130%);
}

.music-gate .btn--ghost {
  background: #f8e6df;
  color: #4a342c;
  border: 1px solid rgba(196, 140, 124, 0.4);
  box-shadow: none;
}

.music-gate .btn--ghost:hover {
  transform: none;
  background: #f3ddd4;
  border-color: rgba(176, 100, 88, 0.5);
  color: #4a342c;
  box-shadow: none;
}

.music-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

/* Tarjeta digital: pantallas completas al scroll (estilo latarjetadigital.com.ar) */
main {
  width: 100%;
  background: var(--silk-lavender-bg);
}

.portada-screen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--silk-lavender-bg);
  /* Más compactas que pantalla completa; siguen centrando el contenido */
  min-height: min(72vh, 640px);
  min-height: min(72dvh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.portada-screen > * {
  position: relative;
  z-index: 1;
}

.portada-screen::before,
.portada-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.portada-screen::before {
  width: 145%;
  height: 62%;
  left: -24%;
  bottom: -24%;
  border-radius: 50% 44% 0 0;
  transform: rotate(-7deg);
  background:
    linear-gradient(
      168deg,
      rgba(255, 244, 238, 0.35) 8%,
      rgba(246, 214, 204, 0.55) 34%,
      rgba(214, 150, 136, 0.3) 55%,
      rgba(168, 96, 84, 0.16) 79%
    );
  box-shadow:
    0 -18px 48px rgba(255, 255, 255, 0.14),
    inset 0 18px 38px rgba(255, 255, 255, 0.14);
  filter: blur(1px);
}

.portada-screen::after {
  width: 130%;
  height: 42%;
  top: -20%;
  right: -42%;
  border-radius: 0 0 48% 55%;
  transform: rotate(9deg);
  background: linear-gradient(
    188deg,
    rgba(255, 246, 242, 0.52) 0%,
    rgba(226, 170, 156, 0.22) 48%,
    rgba(176, 100, 88, 0.12) 100%
  );
  box-shadow: 0 24px 50px rgba(255, 255, 255, 0.1);
}

.portada-screen:not(.portada-screen--hero) {
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Un solo rosa viejo para todos los bloques: el degradado no se reinicia en cada corte. */
main {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 78% 18% at 14% 10%, rgba(255, 248, 244, 0.72) 0%, transparent 64%),
    radial-gradient(ellipse 70% 16% at 88% 27%, rgba(186, 112, 100, 0.22) 0%, transparent 66%),
    radial-gradient(ellipse 76% 18% at 10% 46%, rgba(255, 248, 244, 0.5) 0%, transparent 64%),
    radial-gradient(ellipse 72% 16% at 90% 64%, rgba(176, 104, 92, 0.2) 0%, transparent 66%),
    radial-gradient(ellipse 80% 18% at 16% 84%, rgba(255, 248, 244, 0.58) 0%, transparent 64%),
    linear-gradient(
      180deg,
      #fbece6 0%,
      #f4d8ce 14%,
      #efc9bc 28%,
      #f8e4da 42%,
      #e9b9aa 56%,
      #f6ddd4 70%,
      #f0c8ba 84%,
      #fbece6 100%
    );
}

main::before,
main::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

main::before {
  left: -28%;
  top: 6%;
  width: 156%;
  height: 88%;
  border-radius: 48% 42% 50% 46%;
  transform: rotate(-6deg);
  background: linear-gradient(
    168deg,
    rgba(255, 244, 238, 0.34) 0%,
    rgba(246, 214, 204, 0.28) 36%,
    rgba(214, 150, 136, 0.1) 68%,
    transparent 100%
  );
}

main::after {
  right: -34%;
  top: 18%;
  width: 148%;
  height: 76%;
  border-radius: 46% 50% 42% 48%;
  transform: rotate(8deg);
  background: linear-gradient(
    188deg,
    rgba(255, 246, 242, 0.42) 0%,
    rgba(226, 170, 156, 0.16) 46%,
    transparent 100%
  );
}

main > .portada-screen {
  z-index: 1;
  background: transparent;
  box-shadow: none;
}

/* Separador entre bloques: línea fina con un destello en el medio */
main > .portada-screen::before {
  content: "";
  top: 11px;
  bottom: auto;
  left: 50%;
  width: min(72%, 420px);
  height: 1px;
  border-radius: 0;
  transform: translateX(-50%);
  box-shadow: none;
  filter: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(140, 84, 72, 0.32) 22%,
    rgba(140, 84, 72, 0.32) 43%,
    transparent 45%,
    transparent 55%,
    rgba(140, 84, 72, 0.32) 57%,
    rgba(140, 84, 72, 0.32) 78%,
    transparent 100%
  );
}

main > .portada-screen::after {
  content: "\2726";
  top: 0;
  right: auto;
  left: 50%;
  width: auto;
  height: 22px;
  border-radius: 0;
  transform: none;
  translate: -50% 0;
  background: none;
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  color: #b56d5c;
}

@keyframes divider-twinkle {
  0%,
  100% {
    scale: 1;
    opacity: 1;
  }

  50% {
    scale: 0.6;
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: no-preference) {
  main > .portada-screen::after {
    animation: divider-twinkle 2.8s ease-in-out infinite;
  }
}

.portada-screen.portada-screen--hero,
.portada-screen.is-inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .portada-screen:not(.portada-screen--hero):not(.is-inview) {
    opacity: 1;
    transform: none;
  }
}

.portada-screen--footer.footer {
  min-height: min(58vh, 480px);
  justify-content: flex-end;
  padding-top: clamp(2.5rem, 8vh, 4rem);
}

/* Franjas blanco / lila / crema */
.portada-band--white {
  background: #fff;
  color: var(--text);
}

.portada-band--lila,
.portada-band--crema {
  color: var(--text);
}

/* —— Hero: foto a sangre, texto abajo —— */
.ld-hero {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  width: min(100%, calc(min(100dvh, 900px) * 0.75));
  margin-inline: auto;
  min-height: min(100vh, 900px);
  min-height: min(100dvh, 900px);
  background: #c4a7dc;
}

.ld-hero::before {
  display: none;
}

.ld-hero::after {
  width: 100%;
  height: 42%;
  top: auto;
  right: auto;
  left: 0;
  bottom: 0;
  border-radius: 0;
  transform: none;
  filter: none;
  box-shadow: none;
  background: linear-gradient(
    to top,
    rgba(24, 12, 32, 0.42) 0%,
    rgba(24, 12, 32, 0.16) 48%,
    rgba(24, 12, 32, 0) 100%
  );
}

.ld-hero > .ld-hero__portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
}

.ld-hero__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.ld-hero .countdown--ld {
  margin-top: clamp(0.65rem, 2vh, 1.15rem);
}

.ld-hero .countdown--ld .countdown__num,
.ld-hero .countdown--ld .countdown__txt,
.ld-hero .countdown--ld .countdown__sep {
  color: #fffaf6;
}

.ld-hero > .ld-hero__inner {
  z-index: 1;
  width: min(92vw, 520px);
  padding: 0 1rem clamp(1.4rem, 4vh, 2.4rem);
}

.ld-hero__mis15 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 4.6vw, 2.15rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fffaf6;
  text-shadow: 0 1px 14px rgba(20, 8, 28, 0.35);
}

.ld-hero__name {
  margin: 0.05rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(3.1rem, 12vw, 5.2rem);
  font-weight: 400;
  line-height: 0.95;
  color: #fffaf6;
  text-shadow: 0 2px 18px rgba(20, 8, 28, 0.32);
}

/* Entrada escalonada después de elegir la música */
.ld-hero.is-awaiting-intro .ld-hero__mis15,
.ld-hero.is-awaiting-intro .ld-hero__name,
.ld-hero.is-awaiting-intro .countdown--ld {
  opacity: 0;
  transform: translateY(1.5rem);
}

@keyframes ld-hero-content-enter {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
    filter: blur(3px);
  }

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

@media (prefers-reduced-motion: no-preference) {
  .ld-hero.is-intro-visible .ld-hero__mis15 {
    animation: ld-hero-content-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  }

  .ld-hero.is-intro-visible .ld-hero__name {
    animation: ld-hero-content-enter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
  }

  .ld-hero.is-intro-visible .countdown--ld {
    animation: ld-hero-content-enter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both;
  }
}

/* Contador estilo referencia */
.countdown--ld {
  margin-top: clamp(2rem, 6vh, 3.5rem);
  gap: 0.35rem 0.5rem;
  align-items: flex-end;
}

.countdown--ld.is-today {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  line-height: 1.1;
  color: #fffaf6;
  text-shadow: 0 2px 18px rgba(20, 8, 28, 0.32);
}

.countdown--ld .countdown__unit {
  min-width: auto;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.countdown--ld .countdown__num {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
}

.countdown--ld .countdown__txt {
  font-family: var(--font-sans);
  font-size: clamp(0.55rem, 2vw, 0.72rem);
  letter-spacing: 0.18em;
  color: var(--text);
  margin-top: 0.5rem;
  font-weight: 400;
}

.countdown--ld .countdown__sep {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  padding-bottom: 1.35rem;
  opacity: 0.85;
}

/* Frase delicada — mismo rosa viejo que el resto */
.ld-quote.portada-screen {
  padding: clamp(3rem, 10vh, 5rem) 0;
  color: #4a342c;
}

.ld-quote__text {
  margin: 0;
  min-height: 3.2em;
  font-family: var(--font-birds);
  font-size: clamp(2.7rem, 9vw, 4.6rem);
  font-style: normal;
  font-weight: 400;
  text-align: center;
  line-height: 1.85;
  padding: 0.45em 0.15em 0.65em;
  color: #4a342c;
  text-transform: none;
  letter-spacing: 0.02em;
  text-wrap: balance;
  text-shadow: none;
}

.ld-quote__word {
  display: inline-block;
  white-space: nowrap;
  overflow: visible;
  padding: 0.15em 0.04em 0.2em;
}

.ld-quote__ink {
  display: inline-block;
  white-space: pre;
  overflow: visible;
  transform-origin: left center;
  animation: ld-quote-ink 0.24s ease-out both;
}

@keyframes ld-quote-ink {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ¿Cuándo? / ¿Dónde? — fondo cremita */
.ld-when-where {
  padding: clamp(3rem, 9vh, 4.5rem) 0;
}

.ld-when-where__inner {
  text-align: center;
}

.ld-when-where__title {
  margin: 0 0 1.45rem;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
}

.ld-when-where__title:not(:first-child) {
  margin-top: 2.6rem;
}

.ld-when-where__line {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 2.4vw, 0.98rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.6;
}

.ld-when-where__sub {
  margin: 0.35rem 0 0;
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 2.2vw, 0.92rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ld-when-where__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 1.75rem auto 0;
}

.ld-when-where__link {
  display: inline-block;
  margin-top: 0.95rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  background: none;
  border: 0;
  box-shadow: none;
}

.ld-when-where__link:hover {
  opacity: 0.75;
}

.ld-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ld-link:hover {
  opacity: 0.75;
}

/* Bloque marca MIS 15 */
.ld-brand {
  padding: clamp(2.5rem, 8vh, 4rem) 0;
}

.ld-brand__inner {
  text-align: center;
}

.ld-brand__mis15 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
}

.ld-brand__name {
  margin: 0.1rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  line-height: 1.05;
  color: var(--text);
}

.ld-brand__invite {
  margin: 1.75rem 0 0;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2.6vw, 1.08rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  line-height: 1.65;
}

/* Capa de brillos de cada bloque. Gana a .portada-screen > * (position/z-index), que la dejaba en altura 0 */
.portada-screen > .ld-brand__fireworks {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.ld-brand__spark {
  position: absolute;
  width: var(--g-w, 4px);
  height: var(--g-h, 4px);
  border-radius: var(--g-r, 50%);
  pointer-events: none;
  background: #fff;
  box-shadow:
    0 0 4px rgba(255, 255, 255, 1),
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 18px rgba(236, 240, 246, 0.9),
    0 0 32px rgba(214, 220, 230, 0.55);
  animation: ld-brand-firework var(--g-dur, 1.8s) ease-out forwards;
}

.ld-brand__spark.is-star {
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(#fff, #fff) center / 1.6px 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 1.6px no-repeat;
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 1))
    drop-shadow(0 0 6px rgba(236, 240, 246, 0.95));
}

@keyframes ld-brand-firework {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }

  16% {
    transform: translate(
        calc(-50% + var(--fx, 0px) * 0.12),
        calc(-50% + var(--fy, -18px) * 0.12)
      )
      scale(1);
    opacity: 1;
  }

  58% {
    opacity: 0.9;
  }

  100% {
    transform: translate(calc(-50% + var(--fx, 0px)), calc(-50% + var(--fy, -18px))) scale(0.4);
    opacity: 0;
  }
}

/* Estrella fugaz al scroll en franjas lilas (trayectoria en S, driven by JS) */
.portada-band--lila > .container {
  position: relative;
  z-index: 1;
}

.lila-meteor-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

body.modal-open .lila-meteor-layer {
  visibility: hidden;
}

/* ── Estrella fugaz ─────────────────────────────────────────────────────── */
/* La estela: izquierda = cola (transparente y afina), derecha = punta (brillante) */
.lila-meteor {
  position: absolute;
  /* La "punta" queda a la derecha; giramos alrededor del extremo derecho */
  transform-origin: calc(100% + 10px) 50%;
  pointer-events: none;

  /* Cuerpo de la estela: muy fino, se ensancha hacia la punta */
  width: clamp(140px, 38vw, 290px);
  height: 0;
  border-style: solid;
  border-width: 0 0 3px 0;
  border-image: none;
  /* Usamos border-bottom porque permite hacer el triángulo con clip-path */
}

/* Estela real con clip-path de triángulo (apunta hacia la derecha) */
.lila-meteor::after {
  content: "";
  position: absolute;
  /* desde la punta hacia la cola */
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 10px;
  /* triángulo: 0 de alto en la izquierda → 10px en la derecha */
  clip-path: polygon(0 50%, 100% 0%, 100% 100%);
  background: linear-gradient(
    90deg,
    transparent               0%,
    rgba(200, 192, 255, 0.06) 12%,
    rgba(215, 208, 255, 0.32) 42%,
    rgba(242, 238, 255, 0.78) 72%,
    rgba(255, 255, 255, 0.96) 92%,
    transparent               100%
  );
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
  border-radius: 0 2px 2px 0;
}

/* Halo difuso alrededor de la estela */
.lila-meteor::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 85%;
  height: 22px;
  clip-path: polygon(0 50%, 100% 0%, 100% 100%);
  background: linear-gradient(
    90deg,
    transparent               0%,
    rgba(180, 165, 240, 0.04) 20%,
    rgba(210, 200, 255, 0.14) 58%,
    rgba(255, 255, 255, 0.26) 88%,
    transparent               100%
  );
  filter: blur(7px);
}

/* Punto de la punta (círculo brillante en el extremo derecho) */
.lila-meteor-head {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, rgba(238, 234, 255, 0.85) 38%, transparent 68%);
  box-shadow:
    0 0 6px  rgba(255, 255, 255, 1),
    0 0 16px rgba(230, 220, 255, 1),
    0 0 34px rgba(200, 185, 255, 0.92),
    0 0 58px rgba(170, 152, 255, 0.62);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 1));
}

/* Partícula glitter que deja el meteoro */
@keyframes lila-spark-fade {
  0% {
    transform: translate(-50%, -50%) rotate(var(--sp-rot0, 0deg)) scale(var(--sp-scale, 1));
    opacity: 1;
  }
  100% {
    transform: translate(
        calc(-50% + var(--sp-dx, 0px)),
        calc(-50% + var(--sp-dy, 0px))
      )
      rotate(calc(var(--sp-rot0, 0deg) + var(--sp-rot, 30deg)))
      scale(0.04);
    opacity: 0;
  }
}

.lila-spark {
  position: absolute;
  width: var(--sp-w, 4px);
  height: var(--sp-h, 4px);
  border-radius: var(--sp-r, 50%);
  pointer-events: none;
  animation: lila-spark-fade var(--sp-dur, 1.1s) ease-out forwards;
  box-shadow:
    0 0 3px  rgba(255, 255, 255, 1),
    0 0 8px  rgba(255, 255, 255, 0.95),
    0 0 18px rgba(200, 190, 255, 0.85),
    0 0 32px rgba(170, 155, 240, 0.55);
}

/* Frase principal (fondo fino vía .portada-band--lila) */
.section--cinderella-quote {
  padding: clamp(2.5rem, 8vw, 4rem) 0;
}

.cinderella-quote__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  text-align: center;
  line-height: 1.65;
  color: #fff;
  text-shadow: 0 1px 10px rgba(42, 74, 102, 0.22);
}

/* Agendá la fecha (+ cuenta regresiva en el mismo bloque) */
.section--save-date {
  padding: clamp(2.25rem, 6vw, 3.25rem) 0;
}

.section--save-date-with-countdown {
  padding-top: clamp(2.25rem, 6vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 6vw, 3.5rem);
}

.save-date-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.save-date-countdown .save-date {
  margin: 0;
}

.save-date-countdown .countdown__label {
  margin-bottom: 0;
}

.save-date {
  text-align: center;
}

.save-date__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--celeste-deep);
}

.save-date__day {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--text);
}

/* Secciones */
.section {
  padding: 3rem 0;
}

.section__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  margin: 0 0 0.25rem;
  text-align: center;
}

.section__lead {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--celeste-deep);
  text-align: center;
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.section__text {
  text-align: center;
  color: var(--text-muted);
  margin: 0;
}

.section__note {
  text-align: center;
  color: var(--celeste-deep);
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.countdown__label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--silver-deep);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.countdown__unit {
  min-width: 4.85rem;
  padding: 1.15rem 1rem 1rem;
  background: linear-gradient(165deg, #fff 0%, #f5f0fb 100%);
  border: 1px solid rgba(201, 184, 224, 0.95);
  border-radius: var(--radius-soft);
  text-align: center;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.countdown__num {
  display: block;
  font-size: clamp(1.65rem, 4.5vw, 2.1rem);
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--celeste-deep);
  font-variant-numeric: tabular-nums;
}

.countdown__txt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--silver-deep);
  margin-top: 0.35rem;
  display: block;
}

.block-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 0.25rem;
  letter-spacing: 0.06em;
}

.section__heading--with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35em;
}

.heading-firecracker {
  height: 1em;
  width: auto;
  max-height: 2.75rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.block-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.guest-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 320px;
}

.guest-list li {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.guest-list li:last-child {
  border-bottom: none;
}

.party-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .party-grid {
    grid-template-columns: 1fr 1fr;
  }
  .party-card--full {
    grid-column: 1 / -1;
  }
}

.party-card {
  background: var(--bg-elevated);
  border: 2px solid rgba(109, 75, 140, 0.52);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.party-card__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--celeste-deep);
  margin: 0 0 0.5rem;
}

.party-card__value {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.link-calendar,
.link-like {
  font: inherit;
  font-size: 0.9rem;
  color: var(--celeste-deep);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.link-calendar {
  display: inline-block;
}

.section__heading {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

.section__subheading {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .detail-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-cards--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}

.detail-card {
  background: #fff6f2;
  border: 2px solid rgba(184, 120, 104, 0.45);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.detail-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
}

.detail-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

/* Bloque playlist */
.section--playlist {
  border: 0;
}

.section--playlist .section__heading,
.section--playlist .spotlight-head__title {
  color: var(--celeste-deep);
}

.spotlight-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.spotlight-head--center {
  align-items: center;
  text-align: center;
}

@media (min-width: 520px) {
  .spotlight-head:not(.spotlight-head--playlist):not(.spotlight-head--center) {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    text-align: left;
    gap: 1rem 1.25rem;
  }

  .spotlight-head--center {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* Playlist: siempre logo arriba, título abajo */
.spotlight-head--playlist {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem 0;
  margin-bottom: 1.25rem;
  /* Tamaño base común para título y GIF (disc jockey) */
  font-size: clamp(1.45rem, 3.8vw, 1.75rem);
}

.playlist-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* Íconos ilustrados (bailarín disco y regalo). Los colores salen de variables
   para que cambien con los fondos oscuros. */
.icon-dj-wrap,
.icon-gift-wrap {
  --icon-main: #b05a4a;
  --icon-soft: #fbe3da;
  --icon-spark: #d98d7c;
  flex-shrink: 0;
  line-height: 0;
  filter: drop-shadow(0 8px 18px rgba(176, 100, 88, 0.3));
}

:root[data-fondo="3"] .icon-dj-wrap,
:root[data-fondo="3"] .icon-gift-wrap,
:root[data-fondo="4"] .icon-dj-wrap,
:root[data-fondo="4"] .icon-gift-wrap,
:root[data-fondo="5"] .icon-dj-wrap,
:root[data-fondo="5"] .icon-gift-wrap {
  --icon-main: #ffe6dc;
  --icon-soft: var(--f-2);
  --icon-spark: #ffffff;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
}

.icon-art {
  display: block;
  overflow: visible;
}

.icon-art__fill {
  fill: var(--icon-main);
}

.icon-art__soft {
  fill: var(--icon-soft);
  stroke: var(--icon-main);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.icon-art__thin {
  fill: none;
  stroke: var(--icon-main);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.icon-art__spark {
  fill: var(--icon-spark);
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes icon-spark-twinkle {
    0%,
    100% {
      transform: scale(0.35) rotate(0deg);
      opacity: 0.25;
    }

    50% {
      transform: scale(1) rotate(45deg);
      opacity: 1;
    }
  }

  /* La tapa del regalo salta cada tanto */
  @keyframes icon-present-lid {
    0%,
    58%,
    100% {
      transform: translateY(0) rotate(0deg);
    }

    68% {
      transform: translateY(-9px) rotate(-5deg);
    }

    78% {
      transform: translateY(0) rotate(0deg);
    }

    86% {
      transform: translateY(-4px) rotate(3deg);
    }

    93% {
      transform: translateY(0) rotate(0deg);
    }
  }

  @keyframes icon-present-wiggle {
    0%,
    58%,
    100% {
      transform: rotate(0deg);
    }

    66% {
      transform: rotate(-3deg);
    }

    76% {
      transform: rotate(3deg);
    }

    86% {
      transform: rotate(-2deg);
    }
  }

  .icon-art__spark {
    animation: icon-spark-twinkle 1.9s ease-in-out infinite;
  }

  .icon-art__spark--b {
    animation-delay: -0.6s;
  }

  .icon-art__spark--c {
    animation-delay: -1.2s;
  }

  .icon-present__box {
    transform-origin: 60px 106px;
    animation: icon-present-wiggle 3.2s ease-in-out infinite;
  }

  .icon-present__lid {
    transform-origin: 60px 60px;
    animation: icon-present-lid 3.2s ease-in-out infinite;
  }
}

.spotlight-head__title {
  margin: 0;
  flex: 1;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  line-height: 1.25;
}

.spotlight-head__title--playlist {
  font-size: 1em;
  max-width: 18ch;
}

@media (min-width: 520px) {
  .spotlight-head__title--playlist {
    max-width: 22ch;
  }
}

.section--gifts {
  border: 0;
}

/* La franja con overflow:hidden y alto mínimo recortaba ícono, texto o botón.
   El contenido no se encoge y el bloque crece para mostrarlo entero. */
.portada-screen.section--gifts {
  height: auto;
  overflow: hidden;
  padding-top: clamp(2.75rem, 7vh, 4rem);
  padding-bottom: clamp(3.25rem, 8vh, 4.75rem);
}

.portada-screen.section--gifts > .container {
  flex: 0 0 auto;
  min-height: min-content;
  width: min(640px, 92vw);
}

.section--gifts .spotlight-head,
.section--gifts .spotlight-head__title,
.section--gifts .gifts-copy,
.section--gifts .btn--primary {
  flex: 0 0 auto;
  min-height: min-content;
  max-height: none;
}

.section--gifts .section__text {
  margin-bottom: 1rem;
}

.gifts-copy {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.gifts-copy .sparkle {
  display: inline;
}

.section--insta {
  text-align: center;
}

.hashtag {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--celeste-deep);
  margin: 1rem 0 1.25rem;
  letter-spacing: 0.05em;
}

/* Trivia */
.trivia-card {
  background: #fff6f2;
  border: 2px solid rgba(184, 120, 104, 0.45);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.trivia-card__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  text-align: center;
  margin: 0 0 0.35rem;
}

.trivia-card__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}

.trivia-start label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.trivia-start input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
  margin-bottom: 1rem;
}

.trivia-start input:focus {
  outline: 2px solid var(--celeste-deep);
  outline-offset: 2px;
}

.trivia-start input.is-invalid {
  border-color: #c0392b;
  outline: 2px solid #c0392b;
  outline-offset: 2px;
}

.trivia-name-error {
  color: #c0392b;
  font-size: 0.8rem;
  margin: -0.6rem 0 0.9rem;
}

.trivia-question__progress {
  font-size: 0.8rem;
  color: var(--celeste-deep);
  margin-bottom: 0.75rem;
  text-align: center;
}

.trivia-question__text {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  text-align: center;
}

.trivia-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.trivia-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .trivia-opt:hover:not(:disabled) {
    border-color: var(--celeste-deep);
  }
}

.trivia-opt:disabled {
  cursor: default;
  opacity: 0.85;
}

.trivia-opt.is-correct {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.15);
}

.trivia-opt.is-wrong {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.trivia-opt__badge {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--celeste-deep);
}

.trivia-result {
  text-align: center;
}

.trivia-result__score {
  font-size: 2rem;
  font-weight: 600;
  color: var(--celeste-deep);
  margin: 0.5rem 0;
}

.trivia-result__msg {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.trivia-hidden {
  display: none !important;
}

#trivia-done {
  text-align: center;
}

.trivia-done__sub {
  font-size: 0.85rem;
}

.trivia-lb-wrap {
  margin-top: 1.5rem;
}

.trivia-lb-title {
  font-size: 0.8rem;
  color: var(--celeste-deep);
  margin: 0 0 0.5rem;
  text-align: center;
}

.trivia-lb-scroll {
  overflow-x: auto;
}

.trivia-lb-scroll.is-open {
  max-height: 16.5rem;
  overflow-y: auto;
}

.trivia-lb-scroll.is-open .trivia-table th {
  position: sticky;
  top: 0;
  background: #fff6f2;
}

.trivia-lb-scroll:not(.is-open) .trivia-lb-extra {
  display: none;
}

button.trivia-lb-more {
  display: flex;
  width: fit-content;
  margin: 0.85rem auto 0;
}

button.trivia-lb-more[hidden] {
  display: none !important;
}

.trivia-when {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--text-muted);
}

.trivia-rank {
  white-space: nowrap;
}

.trivia-crown {
  display: inline-block;
  width: 0.95rem;
  height: 0.68rem;
  margin-right: 0.22rem;
  vertical-align: -1px;
}

.trivia-crown svg {
  display: block;
  width: 100%;
  height: 100%;
}

.trivia-crown--oro {
  color: #d4a017;
}

.trivia-crown--plata {
  color: #9aa3ad;
}

.trivia-crown--bronce {
  color: #b87333;
}

.trivia-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.trivia-table th,
.trivia-table td {
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--border);
}

.trivia-table th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.trivia-table th:last-child,
.trivia-table td:last-child {
  text-align: right;
}

.trivia-tie {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  color: #8c5448;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--celeste-deep);
  outline-offset: 3px;
}

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

.btn--primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--primary:hover {
  border-color: #333;
  background: #222;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: var(--surface);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--surface-strong);
  border-color: #5a3d75;
}

.btn--light {
  color: var(--text);
  border-color: rgba(109, 75, 140, 0.55);
}

.btn--light:hover {
  border-color: var(--celeste-deep);
  background: var(--surface);
}

.btn--block {
  width: 100%;
}

/* Modal bancario — listas estilo demo */
.bank-modal__section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--celeste-deep);
  margin: 1.25rem 0 0.5rem;
}

.bank-modal__section-title:first-child {
  margin-top: 0;
}

.bank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.bank-list li {
  padding: 0.15rem 0;
  padding-left: 0.5rem;
  border-left: 2px solid var(--celeste-deep);
  margin-bottom: 0.35rem;
}

.bank-copy {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.15rem 0.7rem;
  border: 1px solid rgba(176, 100, 88, 0.5);
  border-radius: 999px;
  background: #fbece6;
  color: #4a342c;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.bank-copy:hover {
  background: #f3ddd4;
}

.bank-list strong {
  color: var(--text);
  font-weight: 500;
}

/* Bloques CTA (confirmar / calendario) */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 520px;
  margin: 0 auto;
}

.cta-block .section__heading {
  margin-bottom: 0;
}

.cta-block .section__text {
  margin: 0;
}

.section--playlist .btn--primary,
.section--gifts .btn--primary {
  color: #4a342c;
  border-color: rgba(176, 100, 88, 0.35);
  background: #efc9bc;
  box-shadow: none;
  animation: none;
}

.section--confirm-rsvp .btn--primary {
  position: relative;
  overflow: hidden;
  color: #4a342c;
  border-color: rgba(255, 255, 255, 0.65);
  background:
    linear-gradient(
      112deg,
      #e4b3a4 0%,
      #efc9bc 22%,
      #fffaf8 46%,
      #e8b8a8 62%,
      #d4a090 100%
    );
  background-size: 220% 100%;
  box-shadow:
    0 12px 30px rgba(176, 100, 88, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: no-preference) {
  .section--confirm-rsvp .btn--primary {
    animation: rsvp-platinum-shift 4.5s ease-in-out infinite;
  }
}

@keyframes rsvp-platinum-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.section--playlist .btn--primary:hover,
.section--gifts .btn--primary:hover {
  color: #4a342c;
  border-color: rgba(176, 100, 88, 0.5);
  background: #e8b8a8;
  box-shadow: none;
  transform: none;
}

.section--confirm-rsvp .btn--primary:hover {
  color: #4a342c;
  border-color: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(
      112deg,
      #e8b8a8 0%,
      #f3d0c4 22%,
      #ffffff 46%,
      #efc9bc 62%,
      #d4a090 100%
    );
  background-size: 220% 100%;
  box-shadow:
    0 16px 36px rgba(176, 100, 88, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.trivia-start .btn--primary,
.trivia-start .btn--primary:hover,
.trivia-start .btn--primary:active {
  color: #4a342c;
  border: 1px solid rgba(196, 140, 124, 0.4);
  background: #f8e6df;
  box-shadow: none;
  transform: none;
  animation: none;
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__name {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  margin: 0;
}

.footer__sub {
  font-family: var(--font-sans);
  color: var(--text);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  margin: 0.35rem 0 1.25rem;
}

.footer__credit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Modales genéricos */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 74, 102, 0.45);
  backdrop-filter: blur(6px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal[hidden] {
  display: none !important;
}

.modal.is-open:not([hidden]) {
  display: flex !important;
}

.modal__box {
  position: relative;
  width: min(440px, 100%);
  max-height: min(85vh, 640px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 2px solid rgba(109, 75, 140, 0.55);
  border-radius: var(--radius);
  padding: 1.75rem 1.35rem;
  box-shadow: var(--shadow);
}

#modal-dress .modal__box,
#modal-tips .modal__box,
#modal-bank .modal__box {
  background: #fff;
  border-color: rgba(184, 120, 104, 0.28);
}

.modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: var(--surface);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}

.modal__close:hover {
  background: var(--surface-strong);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 1rem;
  padding-right: 2rem;
}

.modal__body {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.modal__form .modal__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.modal__input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
  margin-bottom: 1rem;
}

.modal__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.modal__actions-row .btn {
  flex: 1;
  min-width: 120px;
}

.modal__form .modal__label[hidden],
.modal__form .modal__input[hidden],
.modal__actions-row[hidden] {
  display: none !important;
}

/* Papelitos brillantes que caen al entrar */
.glitter-rain {
  position: fixed;
  inset: 0;
  z-index: 190;
  overflow: hidden;
  pointer-events: none;
}

.glitter-rain span {
  position: absolute;
  top: -24px;
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 12px rgba(214, 140, 124, 0.7);
  animation: glitter-fall 3s linear forwards;
}

@keyframes glitter-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translate3d(var(--gr-x, 0px), 112vh, 0) rotate(var(--gr-rot, 360deg));
    opacity: 0;
  }
}

/* Al entrar, la foto arranca apenas ampliada y se aleja despacio */
@media (prefers-reduced-motion: no-preference) {
  .ld-hero.is-awaiting-intro .ld-hero__portrait img {
    transform: scale(1.14);
  }

  .ld-hero.is-intro-visible .ld-hero__portrait img {
    transform: scale(1);
    transition: transform 7s cubic-bezier(0.16, 0.6, 0.2, 1);
  }
}

/* ══ Fondos de prueba (panel DEV): el mismo diseño con el fondo cada vez más oscuro.
   Se activan con data-fondo="1" … "5" en <html>. En 1 y 2 el texto sigue oscuro;
   de 3 en adelante pasa a claro. Tarjetas y ventanas quedan claras con texto oscuro. ══ */
:root[data-fondo="1"] {
  --f-1: #f3d9cf;
  --f-2: #eac4b6;
  --f-3: #dfae9d;
  --f-4: #d39a88;
  --f-ink: #2a1712;
  --f-ink-muted: rgba(42, 23, 18, 0.74);
  --f-quote: #45302a;
  --f-line: rgba(110, 60, 50, 0.4);
  --f-star: #9c5546;
  --f-haze: 0.8;
}

:root[data-fondo="2"] {
  --f-1: #e3bcae;
  --f-2: #d6a493;
  --f-3: #c88d7b;
  --f-4: #b97a68;
  --f-ink: #24120e;
  --f-ink-muted: rgba(36, 18, 14, 0.78);
  --f-quote: #38211b;
  --f-line: rgba(84, 42, 34, 0.45);
  --f-star: #7c3f33;
  --f-haze: 0.6;
}

:root[data-fondo="3"] {
  --f-1: #a87364;
  --f-2: #965f52;
  --f-3: #844e43;
  --f-4: #733f36;
  --f-ink: #fff6f1;
  --f-ink-muted: rgba(255, 246, 241, 0.82);
  --f-quote: #fff3ec;
  --f-line: rgba(255, 232, 222, 0.42);
  --f-star: #ffe1d4;
  --f-haze: 0.3;
}

:root[data-fondo="4"] {
  --f-1: #7a463c;
  --f-2: #683a32;
  --f-3: #572f29;
  --f-4: #472520;
  --f-ink: #fff6f1;
  --f-ink-muted: rgba(255, 246, 241, 0.8);
  --f-quote: #fff3ec;
  --f-line: rgba(255, 232, 222, 0.36);
  --f-star: #ffd9c9;
  --f-haze: 0.2;
}

:root[data-fondo="5"] {
  --f-1: #4a2a26;
  --f-2: #3c211e;
  --f-3: #2f1917;
  --f-4: #231110;
  --f-ink: #fff6f1;
  --f-ink-muted: rgba(255, 246, 241, 0.78);
  --f-quote: #fff3ec;
  --f-line: rgba(255, 232, 222, 0.32);
  --f-star: #ffd2c0;
  --f-haze: 0.14;
}

:root[data-fondo] {
  --text: var(--f-ink);
  --text-muted: var(--f-ink-muted);
  --celeste-deep: var(--f-ink);
  --border: var(--f-line);
  --silk-lavender-bg: linear-gradient(152deg, var(--f-1) 0%, var(--f-2) 42%, var(--f-3) 78%, var(--f-4) 100%);
}

:root[data-fondo] main {
  background:
    radial-gradient(ellipse 78% 18% at 14% 10%, rgba(255, 255, 255, 0.14) 0%, transparent 64%),
    radial-gradient(ellipse 70% 16% at 88% 27%, rgba(0, 0, 0, 0.12) 0%, transparent 66%),
    radial-gradient(ellipse 76% 18% at 10% 46%, rgba(255, 255, 255, 0.1) 0%, transparent 64%),
    radial-gradient(ellipse 72% 16% at 90% 64%, rgba(0, 0, 0, 0.12) 0%, transparent 66%),
    radial-gradient(ellipse 80% 18% at 16% 84%, rgba(255, 255, 255, 0.12) 0%, transparent 64%),
    linear-gradient(
      180deg,
      var(--f-1) 0%,
      var(--f-2) 14%,
      var(--f-3) 28%,
      var(--f-1) 42%,
      var(--f-4) 56%,
      var(--f-2) 70%,
      var(--f-3) 84%,
      var(--f-1) 100%
    );
}

/* Los velos blancos del fondo se apagan a medida que oscurece */
:root[data-fondo] main::before,
:root[data-fondo] main::after {
  opacity: var(--f-haze);
}

:root[data-fondo] .ld-quote.portada-screen,
:root[data-fondo] .ld-quote__text {
  color: var(--f-quote);
}

:root[data-fondo] main > .portada-screen::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--f-line) 22%,
    var(--f-line) 43%,
    transparent 45%,
    transparent 55%,
    var(--f-line) 57%,
    var(--f-line) 78%,
    transparent 100%
  );
}

:root[data-fondo] main > .portada-screen::after {
  color: var(--f-star);
}

/* Tarjetas y ventanas siguen claras: adentro el texto vuelve a ser oscuro */
:root[data-fondo] .detail-card,
:root[data-fondo] .trivia-card,
:root[data-fondo] .modal {
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.68);
  --celeste-deep: #1a1a1a;
  --border: rgba(0, 0, 0, 0.22);
  color: var(--text);
}

/* ══ Panel DEV. Se apaga con DEV_MODE = false en app.js ══ */
.dev-toggle {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 310;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: #16141a;
  color: #fff;
  font: 600 0.72rem/1 var(--font-sans);
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.dev-panel {
  position: fixed;
  left: 12px;
  bottom: 54px;
  z-index: 310;
  width: min(230px, calc(100vw - 24px));
  max-height: calc(100dvh - 78px);
  overflow-y: auto;
  padding: 0.9rem;
  border-radius: 14px;
  background: #16141a;
  color: #fff;
  font: 400 0.8rem/1.3 var(--font-sans);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  cursor: auto;
}

.dev-panel[hidden] {
  display: none;
}

.dev-panel__title {
  margin: 0 0 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.dev-panel__opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 0.3rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dev-panel__opt.is-active {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.dev-panel__dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

/* "Sugerir canción" y "Hacer un regalo": botones bien marcados, con pulso y destello */
.section--playlist .btn--primary,
.section--gifts .btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 1.05rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(120deg, #a8503f 0%, #c66d5b 50%, #a8503f 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow:
    0 14px 30px rgba(150, 70, 55, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.section--playlist .btn--primary::after,
.section--gifts .btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.5) 50%, transparent 64%);
  transform: translateX(-130%);
}

.section--playlist .btn--primary:hover,
.section--gifts .btn--primary:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(120deg, #b55b49 0%, #d27a67 50%, #b55b49 100%);
  color: #ffffff;
  box-shadow:
    0 18px 36px rgba(150, 70, 55, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes btn-cta-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

@keyframes btn-cta-shine {
  0%,
  55% {
    transform: translateX(-130%);
  }

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

@media (prefers-reduced-motion: no-preference) {
  .section--playlist .btn--primary,
  .section--gifts .btn--primary {
    animation: btn-cta-pulse 2.4s ease-in-out infinite;
  }

  .section--playlist .btn--primary::after,
  .section--gifts .btn--primary::after {
    animation: btn-cta-shine 3s ease-in-out infinite;
  }
}

/* Figuras bailando: contorno grueso + relleno, con notas musicales */
.icon-fig__out,
.icon-fig__in,
.icon-note__stem {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fig__out {
  stroke: var(--icon-main);
  stroke-width: 14.5;
}

.icon-fig__in {
  stroke: var(--icon-soft);
  stroke-width: 7.5;
}

.icon-fig__head {
  fill: var(--icon-soft);
  stroke: var(--icon-main);
  stroke-width: 3.5;
}

.icon-note__stem {
  stroke: var(--icon-main);
  stroke-width: 3.2;
}

@media (prefers-reduced-motion: no-preference) {
  /* Cada figura rebota y se inclina desde la cadera, a contratiempo de la otra */
  @keyframes icon-fig-groove-a {
    0%,
    100% {
      transform: translateY(0) rotate(-6deg);
    }

    50% {
      transform: translateY(-4px) rotate(5deg);
    }
  }

  @keyframes icon-fig-groove-b {
    0%,
    100% {
      transform: translateY(-4px) rotate(5deg);
    }

    50% {
      transform: translateY(0) rotate(-5deg);
    }
  }

  @keyframes icon-fig-swing {
    0%,
    100% {
      transform: rotate(-14deg);
    }

    50% {
      transform: rotate(12deg);
    }
  }

  @keyframes icon-fig-step {
    0%,
    100% {
      transform: rotate(-7deg);
    }

    50% {
      transform: rotate(8deg);
    }
  }

  @keyframes icon-note-float {
    0%,
    100% {
      transform: translateY(2px) rotate(-6deg);
      opacity: 0.55;
    }

    50% {
      transform: translateY(-5px) rotate(6deg);
      opacity: 1;
    }
  }

  .icon-fig--a {
    transform-origin: 50px 84px;
    animation: icon-fig-groove-a 0.9s ease-in-out infinite;
  }

  .icon-fig--b {
    transform-origin: 106px 82px;
    animation: icon-fig-groove-b 0.9s ease-in-out infinite;
  }

  .icon-fig-a__arm-l {
    transform-origin: 53px 58px;
    animation: icon-fig-swing 0.9s ease-in-out infinite;
  }

  .icon-fig-a__arm-r {
    transform-origin: 55px 57px;
    animation: icon-fig-swing 0.9s ease-in-out infinite reverse;
  }

  .icon-fig-a__leg-l,
  .icon-fig-b__leg-r {
    transform-origin: 50px 84px;
    animation: icon-fig-step 0.9s ease-in-out infinite;
  }

  .icon-fig-a__leg-r,
  .icon-fig-b__leg-l {
    transform-origin: 50px 84px;
    animation: icon-fig-step 0.9s ease-in-out infinite reverse;
  }

  .icon-fig-b__leg-l,
  .icon-fig-b__leg-r {
    transform-origin: 106px 82px;
  }

  .icon-fig-b__arm-l {
    transform-origin: 106px 53px;
    animation: icon-fig-swing 0.9s ease-in-out infinite reverse;
  }

  .icon-fig-b__arm-r {
    transform-origin: 110px 53px;
    animation: icon-fig-swing 0.9s ease-in-out infinite;
  }

  .icon-note {
    transform-box: fill-box;
    transform-origin: center;
    animation: icon-note-float 1.8s ease-in-out infinite;
  }

  .icon-note--b {
    animation-delay: -0.6s;
  }

  .icon-note--c {
    animation-delay: -1.2s;
  }
}

/* Títulos y datos de ¿Cuándo? / ¿Dónde? / Fiesta un poco más grandes, e ícono de Fiesta más grande */
.ld-when-where__title,
.section--fiesta .section__heading {
  font-size: clamp(1.12rem, 3.4vw, 1.4rem);
}

.ld-when-where__line {
  font-size: clamp(0.9rem, 2.6vw, 1.06rem);
}

.ld-when-where__sub,
.section--fiesta .section__subheading {
  font-size: clamp(0.85rem, 2.4vw, 0.98rem);
}

.heading-firecracker {
  height: 2.2em;
  max-height: 3.4rem;
}

/* Sin separador entre la foto y la frase */
main > .portada-screen:first-of-type::before,
main > .portada-screen:first-of-type::after {
  content: none;
}

/* Modo liviano (lo activa app.js solo en equipos que no dibujan fluido):
   brillos con una sola sombra, sin halos difuminados ni pulsos constantes */
html.is-lite .lila-spark,
html.is-lite .ld-brand__spark {
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  filter: none;
}

html.is-lite .lila-meteor::before {
  display: none;
}

html.is-lite .lila-meteor-head {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.95);
  filter: none;
}

html.is-lite .icon-dj-wrap,
html.is-lite .icon-gift-wrap {
  filter: none;
}

html.is-lite .section--playlist .btn--primary,
html.is-lite .section--gifts .btn--primary,
html.is-lite .section--confirm-rsvp .btn--primary {
  animation: none;
}

html.is-lite .ld-brand__spark.is-star {
  box-shadow: none;
}

/* ══ Ventanas (confirmar, canción, dress code, tips, regalo): mismos tonos que la invitación ══ */
.modal-backdrop {
  background: rgba(74, 42, 36, 0.55);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.modal__box,
#modal-dress .modal__box,
#modal-tips .modal__box,
#modal-bank .modal__box {
  padding: 2.1rem 1.5rem 1.7rem;
  border: 1px solid rgba(184, 120, 104, 0.42);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffaf7 0%, #fdf0ea 100%);
  box-shadow:
    0 26px 60px rgba(60, 30, 24, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #5c4038;
  text-align: center;
}

@keyframes modal-box-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

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

@media (prefers-reduced-motion: no-preference) {
  .modal.is-open .modal__box {
    animation: modal-box-enter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

.modal__close {
  top: 0.75rem;
  right: 0.8rem;
  background: #f6ddd4;
  color: #4a342c;
}

.modal__close:hover {
  background: #efc9bc;
}

/* Título centrado con una línea fina debajo */
.modal__title {
  margin: 0 0 1.4rem;
  padding: 0 1.6rem 1.55rem;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(140, 84, 72, 0.4) 30%,
      rgba(140, 84, 72, 0.4) 70%,
      transparent 100%
    )
    center bottom 7px / 100% 1px no-repeat;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a342c;
}

.modal__body {
  color: #5c4038;
  font-size: 1rem;
}

.modal__form .modal__label {
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  color: #8a5a4e;
}

.modal__input {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(184, 120, 104, 0.5);
  border-radius: 12px;
  background: #ffffff;
  color: #3a2620;
}

.modal__input:focus {
  outline: 2px solid #c66d5b;
  outline-offset: 1px;
  border-color: transparent;
}

.modal__hint {
  margin: -0.35rem 0 1.2rem;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
  color: #8a5a4e;
}

.modal__hint[hidden] {
  display: none;
}

.modal .btn--primary {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(120deg, #a8503f 0%, #c66d5b 50%, #a8503f 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(150, 70, 55, 0.35);
}

.modal .btn--primary:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(120deg, #b55b49 0%, #d27a67 50%, #b55b49 100%);
  box-shadow: 0 12px 28px rgba(150, 70, 55, 0.45);
}

.modal .btn--ghost {
  border: 1px solid #b56d5c;
  background: transparent;
  color: #8a4536;
}

.modal .btn--ghost:hover {
  border-color: #a8503f;
  background: rgba(181, 109, 92, 0.1);
}

.modal .form-feedback,
#rsvp-already {
  color: #5c4038;
}

/* Datos del regalo */
.bank-modal__content {
  text-align: left;
}

.bank-modal__section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a5a4e;
}

.bank-list {
  color: #5c4038;
}

.bank-list li {
  border-left-color: #c66d5b;
}

.bank-list strong {
  color: #3a2620;
}

.modal__actions-row .btn {
  min-width: 0;
  padding: 0.85rem 0.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
