/* ==========================================================================
   TROPICAL DISCO NOCTURNO - XV JULIETA
   Mobile-first, GPU-accelerated (transform / opacity), 100dvh iOS/Android safe
   ========================================================================== */

:root {
  --bg-deep: #06140E;
  --bg-jungle: #0A1F16;
  --card-bg: rgba(10, 31, 22, 0.88);
  --card-bg-strong: rgba(7, 23, 16, 0.96);

  --neon-fuchsia: #FF2A85;
  --neon-turquoise: #00E5FF;
  --silver: #E2E8F0;
  --silver-muted: #A9B8C8;
  --text-main: #F4F7FA;

  --font-script: "Great Vibes", cursive;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-card: 22px;
  --radius-pill: 999px;
  --max-app-width: 460px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 0%, #0E2B1F 0%, var(--bg-deep) 68%);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

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

button,
a {
  font-family: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--neon-turquoise);
  outline-offset: 3px;
}

/* ==================== 1. SPLASH SCREEN ==================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(0, 229, 255, 0.16), transparent 48%),
    radial-gradient(circle at 72% 75%, rgba(255, 42, 133, 0.18), transparent 50%),
    linear-gradient(170deg, #06140E 0%, #0A1F16 55%, #040E0A 100%);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.75s ease;
}

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

.splash__flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 48%,
    rgba(226, 232, 240, 0.85) 0%,
    rgba(0, 229, 255, 0.35) 35%,
    rgba(255, 42, 133, 0.2) 60%,
    transparent 80%
  );
  transform: scale(0.6);
  transition: opacity 0.65s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash.is-opening .splash__flash {
  opacity: 1;
  transform: scale(1.8);
}

/* Palmeras reales laterales cerradas (PNG transparente) */
.splash__palms {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(64vw, 370px);
  display: flex;
  align-items: center;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.splash__palms--left {
  left: -24px;
  transform: translate3d(0, 0, 0);
}

.splash__palms--right {
  right: -24px;
  justify-content: flex-end;
  transform: translate3d(0, 0, 0);
}

.splash.is-opening .splash__palms--left {
  transform: translate3d(-118%, -4%, 0) rotate(-7deg);
  opacity: 0;
}

.splash.is-opening .splash__palms--right {
  transform: translate3d(118%, -4%, 0) rotate(7deg);
  opacity: 0;
}

.splash__palm-img {
  width: 100%;
  height: auto;
  max-height: 94%;
  object-fit: contain;
  filter: brightness(0.75) contrast(1.08) saturate(0.92) drop-shadow(0 16px 28px rgba(0, 0, 0, 0.78));
}

.splash__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 340px;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

.splash.is-opening .splash__content {
  transform: translate3d(0, -34px, 0) scale(1.06);
  opacity: 0;
}

.splash__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--neon-turquoise);
  margin-bottom: 10px;
}

.splash__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 6.5vw, 2.35rem);
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, var(--silver) 15%, var(--neon-turquoise) 55%, var(--neon-fuchsia) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 28px;
}

.splash__hint {
  margin-top: 26px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--silver);
  opacity: 0.92;
  animation: pulseHint 2.4s ease-in-out infinite;
}

/* ==================== BOLA DE DISCO 3D REALISTA + FALLBACK CSS ==================== */
.disco-trigger {
  position: relative;
  width: 168px;
  height: 168px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.disco-trigger:hover,
.disco-trigger:active {
  transform: scale(1.06);
}

.disco-trigger__halo {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(0, 229, 255, 0.65),
    rgba(255, 42, 133, 0.68),
    rgba(226, 232, 240, 0.5),
    rgba(0, 229, 255, 0.65)
  );
  opacity: 0.6;
  filter: blur(18px);
  animation: spinSlow 9s linear infinite;
}

.disco-ball-wrap {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.disco-ball-wrap--splash {
  width: 146px;
  height: 146px;
  box-shadow:
    0 0 32px rgba(0, 229, 255, 0.42),
    0 0 48px rgba(255, 42, 133, 0.36);
}

.disco-ball-wrap--mini {
  width: 38px;
  height: 38px;
  box-shadow:
    0 0 14px rgba(0, 229, 255, 0.4),
    0 0 18px rgba(255, 42, 133, 0.35);
}

.disco-ball-wrap--sm {
  width: 28px;
  height: 28px;
}

.disco-ball-wrap--fab {
  position: absolute;
  inset: 4px;
  overflow: hidden;
}

.disco-ball-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.disco-ball-img--fab {
  opacity: 0.72;
}

.disco-ball-wrap:not(.is-fallback) .disco-ball--fallback {
  display: none;
}

.disco-ball-wrap.is-fallback .disco-ball--fallback {
  display: block;
}

.disco-ball {
  position: relative;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(226, 232, 240, 0.65);
  background:
    radial-gradient(circle at 32% 28%, #FFFFFF 0%, #E2E8F0 24%, #7A8B9C 58%, #1C2730 100%);
  box-shadow:
    inset -14px -18px 28px rgba(6, 20, 14, 0.72),
    inset 10px 10px 20px rgba(0, 229, 255, 0.25),
    0 0 28px rgba(0, 229, 255, 0.35),
    0 0 42px rgba(255, 42, 133, 0.28);
}

.disco-ball__facets {
  position: absolute;
  inset: -10% -50%;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.38) 0 1px,
      transparent 1px 13px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(6, 20, 14, 0.45) 0 1px,
      transparent 1px 13px
    ),
    repeating-linear-gradient(
      115deg,
      rgba(0, 229, 255, 0.22) 0 8px,
      rgba(255, 42, 133, 0.2) 8px 16px,
      rgba(226, 232, 240, 0.26) 16px 24px
    );
  border-radius: 45%;
  animation: discoSpin 7.5s linear infinite;
  will-change: transform;
}

.disco-ball__shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.85) 0%, transparent 24%),
    radial-gradient(circle at 74% 74%, rgba(255, 42, 133, 0.45) 0%, transparent 32%),
    radial-gradient(circle at 22% 72%, rgba(0, 229, 255, 0.4) 0%, transparent 30%);
  pointer-events: none;
}

.disco-sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 12px var(--neon-turquoise), 0 0 20px var(--neon-fuchsia);
  animation: twinkle 2.2s ease-in-out infinite;
}

.disco-sparkle--1 { top: 8px; right: 14px; animation-delay: 0s; }
.disco-sparkle--2 { bottom: 18px; left: 6px; width: 7px; height: 7px; animation-delay: 0.7s; }
.disco-sparkle--3 { top: 44%; right: -8px; width: 6px; height: 6px; animation-delay: 1.3s; }

/* ==================== REPRODUCTOR FLOTANTE ==================== */
.music-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 229, 255, 0.7);
  background: radial-gradient(circle at 30% 30%, #143B2B 0%, #06140E 100%);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(255, 42, 133, 0.35),
    0 0 18px rgba(0, 229, 255, 0.25);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.music-fab[hidden] {
  display: none;
}

.music-fab:hover,
.music-fab:active {
  transform: scale(1.08);
}

.music-fab__orb {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(226, 232, 240, 0.14) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(0deg, rgba(226, 232, 240, 0.14) 0 1px, transparent 1px 6px);
  opacity: 0.55;
}

.music-fab__waves {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.music-fab__waves span {
  width: 3px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--neon-turquoise), var(--neon-fuchsia));
  transform-origin: bottom;
}

.music-fab.is-playing .music-fab__waves span {
  animation: waveBar 0.9s ease-in-out infinite alternate;
}

.music-fab.is-playing .music-fab__waves span:nth-child(2) { animation-delay: 0.18s; }
.music-fab.is-playing .music-fab__waves span:nth-child(3) { animation-delay: 0.36s; }
.music-fab.is-playing .music-fab__waves span:nth-child(4) { animation-delay: 0.12s; }

.music-fab:not(.is-playing) {
  border-color: rgba(226, 232, 240, 0.4);
  opacity: 0.85;
}

/* ==================== FONDO AMBIENTAL Y DESTELLOS ==================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  opacity: 0.22;
}

.ambient-glow--turquoise {
  top: -80px;
  left: -90px;
  background: radial-gradient(circle, var(--neon-turquoise), transparent 68%);
}

.ambient-glow--fuchsia {
  bottom: -90px;
  right: -90px;
  background: radial-gradient(circle, var(--neon-fuchsia), transparent 68%);
}

.ambient-palm {
  position: absolute;
  width: clamp(148px, 38vw, 240px);
  height: auto;
  will-change: transform;
}

.ambient-palm__img {
  width: 100%;
  height: auto;
  opacity: 0.85;
  filter: brightness(0.68) contrast(1.08) saturate(0.88) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.72));
}

.ambient-palm__img--flip-y {
  transform: scaleY(-1);
}

.ambient-palm--tl { top: -14px; left: -14px; }
.ambient-palm--tr { top: -14px; right: -14px; }
.ambient-palm--bl { bottom: -14px; left: -14px; }
.ambient-palm--br { bottom: -14px; right: -14px; }

.sparkles {
  position: absolute;
  inset: 0;
}

.sp {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 0 10px var(--neon-turquoise), 0 0 16px rgba(255, 42, 133, 0.65);
  animation: floatSparkle 4.8s ease-in-out infinite;
  will-change: transform, opacity;
}

.sp--1 { top: 14%; left: 16%; animation-delay: 0s; }
.sp--2 { top: 24%; right: 14%; animation-delay: 1.1s; width: 4px; height: 4px; }
.sp--3 { top: 42%; left: 10%; animation-delay: 2.2s; }
.sp--4 { top: 55%; right: 12%; animation-delay: 0.6s; width: 6px; height: 6px; }
.sp--5 { top: 68%; left: 20%; animation-delay: 1.8s; width: 4px; height: 4px; }
.sp--6 { top: 78%; right: 22%; animation-delay: 2.9s; }
.sp--7 { top: 34%; left: 52%; animation-delay: 3.4s; width: 3px; height: 3px; }
.sp--8 { top: 88%; left: 46%; animation-delay: 1.4s; }

/* ==================== CONTENEDOR PRINCIPAL MOBILE-FIRST ==================== */
.invitation-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-app-width);
  margin: 0 auto;
  padding: 0 18px 84px;
}

@media (min-width: 560px) {
  .invitation-shell {
    margin-top: 20px;
    margin-bottom: 24px;
    border-radius: 30px;
    border: 1px solid rgba(226, 232, 240, 0.12);
    background: linear-gradient(180deg, rgba(10, 31, 22, 0.35), rgba(6, 20, 14, 0.55));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}

.section {
  padding: 36px 0;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon-turquoise);
  margin-bottom: 6px;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.65rem, 5.5vw, 2.05rem);
  line-height: 1.2;
  color: var(--silver);
  margin-bottom: 14px;
}

.section__lead,
.section__text {
  font-size: 0.95rem;
  font-weight: 400;
  color: #D7E2EC;
  max-width: 36ch;
  margin: 0 auto 22px;
}

/* Tarjetas estilo glass-oscuro sin exceso de blur */
.card-panel {
  position: relative;
  background:
    linear-gradient(155deg, rgba(255, 42, 133, 0.08), rgba(0, 229, 255, 0.06)),
    var(--card-bg);
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: var(--radius-card);
  padding: 30px 22px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(226, 232, 240, 0.14);
}

.card-panel--silver {
  border-color: rgba(226, 232, 240, 0.42);
}

.card-panel--rsvp {
  border-color: rgba(255, 42, 133, 0.45);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(255, 42, 133, 0.14);
}

/* ==================== 1. HERO / PORTADA ==================== */
.hero {
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 42px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(226, 232, 240, 0.25);
  background: rgba(10, 31, 22, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--silver);
  margin-bottom: 18px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot--turquoise {
  background: var(--neon-turquoise);
  box-shadow: 0 0 8px var(--neon-turquoise);
}

.dot--fuchsia {
  background: var(--neon-fuchsia);
  box-shadow: 0 0 8px var(--neon-fuchsia);
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--neon-turquoise);
  margin-bottom: 2px;
}

.hero__name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4.1rem, 16vw, 5.4rem);
  line-height: 1.05;
  padding: 4px 10px;
  background: linear-gradient(125deg, #FFFFFF 12%, var(--silver) 42%, var(--neon-turquoise) 74%, var(--neon-fuchsia) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 16px rgba(0, 229, 255, 0.22));
  margin-bottom: 22px;
}

/* Marco de arco tropical/neón */
.hero__frame {
  position: relative;
  width: min(74vw, 276px);
  padding: 4px;
  border-radius: 150px 150px 26px 26px;
  background: linear-gradient(150deg, var(--neon-turquoise), var(--silver), var(--neon-fuchsia));
  box-shadow:
    0 0 26px rgba(0, 229, 255, 0.25),
    0 0 32px rgba(255, 42, 133, 0.22);
  margin-bottom: 24px;
}

.hero__frame-inner {
  overflow: hidden;
  border-radius: 146px 146px 22px 22px;
  background: var(--bg-jungle);
  aspect-ratio: 3 / 4;
}

.hero__frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__welcome {
  font-size: 0.96rem;
  color: #DCE6EE;
  max-width: 34ch;
  margin-bottom: 26px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--neon-turquoise);
  text-decoration: none;
  animation: bounceCue 2s ease-in-out infinite;
}

/* ==================== 2. CUENTA REGRESIVA ==================== */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.cd-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 6px;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

.cd-card--turquoise {
  border: 1px solid rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.16);
}

.cd-card--fuchsia {
  border: 1px solid rgba(255, 42, 133, 0.55);
  box-shadow: 0 0 16px rgba(255, 42, 133, 0.16);
}

.cd-card__num {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 6vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: #FFFFFF;
}

.cd-card__label {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-muted);
}

/* ==================== 3. CUÁNDO Y DÓNDE ==================== */
.icon-pair {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 14px;
}

.icon-pair .icon-badge {
  margin: 0;
}

.icon-badge--turquoise {
  color: var(--neon-turquoise);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.45);
}

.icon-badge--fuchsia {
  color: var(--neon-fuchsia);
  background: rgba(255, 42, 133, 0.1);
  border: 1px solid rgba(255, 42, 133, 0.45);
}

.icon-badge--silver {
  color: var(--silver);
  background: rgba(226, 232, 240, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.45);
}

.icon-float {
  animation: floatIcon 3.2s ease-in-out infinite;
}

.icon-float--delay {
  animation-delay: 1.2s;
}

.mini-disco {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.65);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg, rgba(6, 20, 14, 0.4) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 30% 30%, #FFFFFF, #94A3B8 55%, #1E293B 100%);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4), 0 0 16px rgba(255, 42, 133, 0.35);
  animation: spinSlow 10s linear infinite;
}

.mini-disco--sm {
  width: 24px;
  height: 24px;
}

.event-details {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
  text-align: left;
}

.event-details__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
}

.event-details dt {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon-turquoise);
}

.event-details dd {
  font-size: 0.95rem;
  font-weight: 500;
  color: #FFFFFF;
  text-align: right;
}

/* ==================== 4. GALERÍA CARRUSEL + LIGHTBOX ==================== */
.carousel {
  position: relative;
  margin-top: 8px;
}

.carousel__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 26px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.carousel__slide {
  flex: 0 0 82%;
  scroll-snap-align: center;
}

.carousel__trigger {
  width: 100%;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.25);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-jungle);
  cursor: zoom-in;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.carousel__trigger:hover,
.carousel__trigger:active {
  transform: scale(1.02);
  border-color: var(--neon-fuchsia);
}

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

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.35);
  background: rgba(6, 20, 14, 0.85);
  color: var(--silver);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.carousel__nav:hover {
  border-color: var(--neon-turquoise);
  color: var(--neon-turquoise);
}

.carousel__nav--prev { left: 4px; }
.carousel__nav--next { right: 4px; }

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

.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(226, 232, 240, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel__dot.is-active {
  background: var(--neon-fuchsia);
  box-shadow: 0 0 10px var(--neon-fuchsia);
  transform: scale(1.25);
}

/* ==================== 5. DRESS CODE ==================== */
.dress-style {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neon-turquoise);
  margin-bottom: 18px;
}

.dress-note {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 42, 133, 0.12);
  border: 1px solid rgba(255, 42, 133, 0.6);
  color: #FFFFFF;
}

.dress-note__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FF88BA;
  margin-bottom: 6px;
}

.dress-note p {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ==================== 8. RSVP CIERRE ==================== */
.rsvp__decor {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.rsvp__sign {
  margin-top: 22px;
  font-family: var(--font-script);
  font-size: 1.85rem;
  color: var(--silver);
}

/* ==================== BOTONES Y MICRO-INTERACCIONES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, filter 0.22s ease;
}

.btn:hover {
  transform: translate3d(0, -2px, 0) scale(1.03);
}

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

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

.btn--turquoise {
  background: linear-gradient(135deg, #00E5FF, #00B8D4);
  color: #041712;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.42);
}

.btn--turquoise:hover {
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.72);
}

.btn--fuchsia {
  background: linear-gradient(135deg, #FF2A85, #D81B60);
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(255, 42, 133, 0.45);
}

.btn--fuchsia:hover {
  box-shadow: 0 0 28px rgba(255, 42, 133, 0.75);
}

.btn--outline-silver {
  background: rgba(226, 232, 240, 0.08);
  border-color: rgba(226, 232, 240, 0.65);
  color: var(--silver);
  box-shadow: 0 0 18px rgba(226, 232, 240, 0.14);
}

.btn--outline-silver:hover {
  border-color: var(--neon-turquoise);
  color: #FFFFFF;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.35);
}

.btn--neon-duo {
  background: linear-gradient(125deg, var(--neon-fuchsia) 0%, #B721FF 48%, var(--neon-turquoise) 100%);
  color: #FFFFFF;
  box-shadow:
    0 0 22px rgba(255, 42, 133, 0.45),
    0 0 22px rgba(0, 229, 255, 0.35);
}

.btn--neon-duo:hover {
  box-shadow:
    0 0 30px rgba(255, 42, 133, 0.68),
    0 0 30px rgba(0, 229, 255, 0.55);
}

/* ==================== MODALES (DATOS BANCARIOS + LIGHTBOX) ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 7, 0.86);
}

.modal__box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 390px;
  padding: 28px 22px 24px;
  border-radius: 24px;
  background: var(--card-bg-strong);
  border: 1px solid rgba(0, 229, 255, 0.5);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.72), 0 0 28px rgba(0, 229, 255, 0.18);
  text-align: center;
  animation: modalIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.28);
  background: rgba(10, 31, 22, 0.9);
  color: var(--silver);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal__title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.modal__subtitle {
  font-size: 0.85rem;
  color: var(--silver-muted);
  margin-bottom: 20px;
}

.bank-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  text-align: left;
}

.bank-list__item {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(226, 232, 240, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.12);
}

.bank-list dt {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon-turquoise);
  margin-bottom: 2px;
}

.bank-list dd {
  font-size: 0.92rem;
  color: #FFFFFF;
  word-break: break-all;
}

.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.highlight-alias {
  color: #FF88BA;
  font-weight: 700;
}

.copy-toast {
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--neon-turquoise);
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Lightbox */
.lightbox__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__close {
  top: -10px;
  right: 0;
}

.lightbox__img {
  width: 100%;
  max-height: 76dvh;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.78);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.38);
  background: rgba(6, 20, 14, 0.88);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

.lightbox__caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--silver);
}

/* ==================== KEYFRAMES (GPU: transform / opacity) ==================== */
@keyframes discoRotate360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes discoSpin {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(33.33%, 0, 0); }
}

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

@keyframes pulseHint {
  0%, 100% { opacity: 0.7; transform: translate3d(0, 0, 0); }
  50% { opacity: 1; transform: translate3d(0, -3px, 0); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes floatSparkle {
  0%, 100% { opacity: 0.22; transform: translate3d(0, 0, 0) scale(0.8); }
  50% { opacity: 0.85; transform: translate3d(0, -14px, 0) scale(1.2); }
}

@keyframes bounceCue {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 7px, 0); }
}

@keyframes floatIcon {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}

@keyframes waveBar {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1.75); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sp,
  .scroll-cue,
  .icon-float {
    animation: none;
  }
}
