/* ==========================================================================
   MARIFER'S 11TH PARTY — GEM ERA | EXPERIENCIA PREMIUM RESPONSIVA
   Paleta: Rosa Pastel, Lavanda Real, Aguamarina / Cian Gema, Oro Princesa & Blanco Cristal
   Compatible 100% con Móviles y Computadoras
   ========================================================================== */

:root {
  --c-pink-bg: #fff1f8;
  --c-pink-soft: #fce7f3;
  --c-pink-bright: #ec4899;
  --c-pink-deep: #be185d;
  
  --c-purple-bg: #f5f3ff;
  --c-purple-light: #e9d5ff;
  --c-purple-main: #8b5cf6;
  --c-purple-deep: #6d28d9;
  --c-purple-card: #7c3aed;

  --c-cyan-bright: #06b6d4;
  --c-cyan-deep: #0891b2;
  --c-cyan-soft: #cffafe;

  --c-gold-bright: #facc15;
  --c-gold-deep: #ca8a04;
  --c-gold-pale: #fef9c3;

  --c-white-card: rgba(255, 255, 255, 0.94);
  --c-text-primary: #3b0764;
  --c-text-subtle: #6b21a8;
  --c-text-muted: #701a75;
  
  --shadow-gem-card: 0 16px 45px -10px rgba(139, 92, 246, 0.22);
  --shadow-neon-cyan: 0 8px 30px rgba(6, 182, 212, 0.38);
  --shadow-neon-purple: 0 10px 32px rgba(124, 58, 237, 0.35);
  
  --radius-card: 28px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: radial-gradient(circle at 50% 0%, #ffe4f3 0%, #f3e8ff 50%, #fae8ff 100%);
  color: var(--c-text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
   SOBRE DIGITAL ILUSTRADO (APERTURA AUTOMÁTICA DIRECTA A LA INVITACIÓN)
   ========================================================================== */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, rgba(67, 16, 95, 0.96) 0%, rgba(29, 6, 43, 0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
}

.envelope-overlay.is-fading-out {
  opacity: 0 !important;
  filter: blur(16px);
  transform: scale(1.08);
  pointer-events: none !important;
}

.envelope-overlay.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.envelope-stage {
  perspective: 1400px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: auto;
}

.custom-envelope-scene {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 270px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.95s cubic-bezier(0.18, 0.9, 0.26, 1);
  animation: envelopeEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) both, envelopeIdleFloat 3.8s ease-in-out 0.85s infinite alternate;
}

@keyframes envelopeEntrance {
  0% { transform: translateY(40px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Animación de espera / respiración mágica del sobre */
@keyframes envelopeIdleFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  35% {
    transform: translateY(-12px) rotate(1.2deg);
  }
  70% {
    transform: translateY(-6px) rotate(-1deg);
  }
  100% {
    transform: translateY(-14px) rotate(0.8deg);
  }
}

.custom-envelope-scene:not(.is-envelope-open):hover {
  transform: translateY(-18px) scale(1.035) !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.custom-envelope-scene.is-envelope-open {
  animation: none !important;
  transform: translateY(75px) scale(0.96);
  pointer-events: none;
}

/* Sobre Cerrado: Flotación y apertura 3D suave y elegante */
.env-img-closed {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  z-index: 10;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 15px rgba(236, 72, 153, 0.3));
  transition: opacity 1.1s cubic-bezier(0.25, 1, 0.5, 1) 0.15s, transform 1.35s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: auto;
  transform-origin: bottom center;
}

.custom-envelope-scene.is-envelope-open .env-img-closed {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.94) translateY(14px) rotateX(32deg);
}

/* Sobre Abierto: Se revela con solapa erguida en toda su gloria */
.env-img-open {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 93.6%;
  max-width: 356px;
  height: auto;
  display: block;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 24px 55px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 25px rgba(236, 72, 153, 0.35));
  transition: opacity 1.0s cubic-bezier(0.25, 1, 0.5, 1) 0.05s, transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom center;
}

.custom-envelope-scene.is-envelope-open .env-img-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

/* Tarjeta / Carta Oficial que emerge delicadamente sin tapar la solapa del sobre */
.envelope-emerging-card {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(30px) scale(0.68);
  width: 76%;
  max-width: 290px;
  background: linear-gradient(145deg, #ffffff 0%, #fff0f7 50%, #fdf4ff 100%);
  border-radius: 20px;
  border: 2.5px solid rgba(250, 204, 21, 0.9);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35), 0 0 25px rgba(250, 204, 21, 0.4);
  padding: 0.95rem 0.9rem;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, 
              opacity 0.8s ease 0.3s, 
              box-shadow 1.0s ease 0.4s;
}

.custom-envelope-scene.is-envelope-open .envelope-emerging-card {
  opacity: 1;
  transform: translateX(-50%) translateY(-90px) scale(0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 35px rgba(236, 72, 153, 0.45), 0 0 24px rgba(250, 204, 21, 0.7);
}

.emerging-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.emerging-card-logo {
  width: 150px;
  height: auto;
  max-width: 90%;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.3));
}

.emerging-card-badge {
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #be185d;
  letter-spacing: 0.8px;
  background: rgba(254, 240, 138, 0.6);
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.7);
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.25);
}

.emerging-card-guest {
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #4a044e;
  margin-top: 0.2rem;
}

.emerging-card-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: #701a75;
}

/* Efecto Mágico: Corona y Gemas que brotan de dentro del sobre */
.envelope-burst-sparkles {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(30px) scale(0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.custom-envelope-scene.is-envelope-open .envelope-burst-sparkles {
  opacity: 1;
  transform: translateX(-50%) translateY(-115px) scale(1.15);
}

.burst-item {
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.burst-crown {
  width: 70px;
  z-index: 3;
  animation: burstFloat 2.5s infinite ease-in-out alternate;
}

.burst-gem-left {
  width: 36px;
  transform: rotate(-18deg);
  margin-right: -10px;
  z-index: 2;
}

.burst-gem-right {
  width: 36px;
  transform: rotate(18deg);
  margin-left: -10px;
  z-index: 2;
}

.burst-sparkle {
  position: absolute;
  top: -24px;
  width: 30px;
  animation: starTwinkle 1.5s infinite ease-in-out;
}

@keyframes burstFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Indicador de Invitado en el Sobre */
.envelope-guest-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  margin-top: 0.6rem;
  border: 1px solid rgba(236, 72, 153, 0.4);
  animation: guestPillGlow 2.5s infinite ease-in-out;
  transition: opacity 0.4s;
}

.custom-envelope-scene.is-envelope-open + .envelope-guest-pill {
  opacity: 0;
}

@keyframes guestPillGlow {
  0%, 100% { box-shadow: 0 4px 18px rgba(236, 72, 153, 0.3); }
  50% { box-shadow: 0 6px 24px rgba(250, 204, 21, 0.55); }
}

.guest-pill-name {
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a044e;
}

.guest-pill-sparkle {
  font-size: 0.85rem;
}

/* Botón Abrir Invitación */
.envelope-actions-wrap {
  width: 100%;
  max-width: 340px;
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
  z-index: 15;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.envelope-actions-wrap.is-fade-away {
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
}

.btn-open-envelope {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #a855f7 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5), 0 0 20px rgba(168, 85, 247, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-open-envelope:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 35px rgba(236, 72, 153, 0.65);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE MÚSICA
   ========================================================================== */
.music-toggle-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(236, 72, 153, 0.35);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
  color: var(--c-purple-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.music-toggle-btn.is-playing {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #ffffff;
  animation: musicPlayingRotate 6s linear infinite;
}

@keyframes musicPlayingRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   ESCENARIO PRINCIPAL & CONTENEDOR RESPONSIVO
   ========================================================================== */
.main-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .main-stage {
    max-width: 520px;
    padding-top: 2.5rem;
  }
}

/* ==========================================================================
   CAPA DE DECORACIONES AMBIENTALES
   ========================================================================== */
.ambient-decor-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.decor-sparkle-img {
  position: absolute;
  width: 32px;
  height: auto;
  opacity: 0.75;
  filter: drop-shadow(0 4px 10px rgba(139, 92, 246, 0.3));
  animation: floatSparkle 4.5s ease-in-out infinite alternate;
}

.sparkle-pos-1 { top: 4%; left: 4%; width: 28px; animation-duration: 3.5s; }
.sparkle-pos-2 { top: 9%; right: 5%; width: 34px; animation-duration: 4.8s; }
.sparkle-pos-3 { top: 22%; left: 5%; width: 26px; animation-duration: 4.0s; }
.sparkle-pos-4 { top: 35%; right: 4%; width: 36px; animation-duration: 4.2s; }
.sparkle-pos-5 { top: 52%; left: 6%; width: 38px; animation-duration: 3.8s; }
.sparkle-pos-6 { top: 68%; right: 5%; width: 30px; animation-duration: 5.0s; }
.sparkle-pos-7 { top: 82%; left: 4%; width: 32px; animation-duration: 3.6s; }
.sparkle-pos-8 { top: 94%; right: 6%; width: 28px; animation-duration: 4.4s; }

@keyframes floatSparkle {
  0% { transform: translateY(0px) rotate(0deg) scale(0.92); }
  100% { transform: translateY(-18px) rotate(14deg) scale(1.12); }
}

/* ==========================================================================
   SECCIÓN 1: HERO PRINCIPAL INSPIRADO EN LA IMAGEN DE REFERENCIA
   ========================================================================== */
.hero-card-gem {
  position: relative;
  background: linear-gradient(180deg, #fce4ec 0%, #f3e8ff 45%, #fce7f3 100%);
  border-radius: 36px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-gem-card), 0 0 0 1px rgba(236, 72, 153, 0.15);
  padding: 1.8rem 1.2rem 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  z-index: 2;
}

.hero-desktop-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-col-brand,
.hero-col-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.desktop-split-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* Globos superiores y cortina brillante */
.hero-balloons-curtain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 130px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, 
    rgba(255, 255, 255, 0.4) 0px, 
    rgba(255, 255, 255, 0.4) 2px, 
    transparent 2px, 
    transparent 12px
  );
  opacity: 0.65;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.balloon {
  position: absolute;
  border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
  box-shadow: inset -6px -6px 14px rgba(0, 0, 0, 0.1), inset 6px 6px 14px rgba(255, 255, 255, 0.6);
}

.balloon-pink-left {
  top: -15px;
  left: -15px;
  width: 80px;
  height: 98px;
  background: radial-gradient(circle at 35% 30%, #fbcfe8, #f472b6 75%, #db2777);
  transform: rotate(-12deg);
}

.balloon-lavender-left {
  top: 10px;
  left: 45px;
  width: 60px;
  height: 75px;
  background: radial-gradient(circle at 35% 30%, #f3e8ff, #c084fc 75%, #9333ea);
  opacity: 0.9;
}

.balloon-pink-right {
  top: 8px;
  right: 48px;
  width: 62px;
  height: 78px;
  background: radial-gradient(circle at 35% 30%, #fbcfe8, #f472b6 75%, #db2777);
  opacity: 0.9;
}

.balloon-purple-right {
  top: -15px;
  right: -15px;
  width: 84px;
  height: 102px;
  background: radial-gradient(circle at 35% 30%, #f3e8ff, #a855f7 75%, #7e22ce);
  transform: rotate(14deg);
}

/* Emblema con Logo Oficial */
.hero-emblem-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
  z-index: 3;
}

.hero-logo-img {
  width: 100%;
  height: auto;
  max-width: 340px;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(126, 34, 206, 0.35));
  animation: logoFloat 4s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-6px) scale(1.02); }
}

.logo-sparkle {
  position: absolute;
  width: 32px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.9));
  animation: starTwinkle 2s infinite ease-in-out;
}

.star-left { top: 12px; left: 8px; animation-delay: 0.2s; }
.star-right { top: 15px; right: 12px; animation-delay: 0.9s; }

@keyframes starTwinkle {
  0%, 100% { opacity: 0.7; transform: scale(0.9) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.25) rotate(20deg); }
}

/* Subtítulo de Invitación */
.hero-invite-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.3rem 0 0.9rem;
  max-width: 340px;
}

.heart-img {
  width: 24px;
  height: auto;
  animation: heartBeat 1.8s infinite ease-in-out;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

.invite-msg {
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #581c87;
  line-height: 1.25;
}

/* Banner de Pases Personalizados */
.personalized-pass-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(236, 72, 153, 0.5);
  border-radius: 16px;
  padding: 0.45rem 1rem;
  margin-bottom: 1.1rem;
  width: 90%;
  max-width: 360px;
}

.guest-pass-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #8b5cf6;
  font-weight: 700;
}

.guest-pass-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  color: #4a044e;
}

.guest-pass-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: #fdf2f8;
  color: #db2777;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(219, 39, 119, 0.25);
}

/* 3 TARJETAS RESUMEN: FECHA, HORA, SALÓN */
.hero-quick-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
  max-width: 440px;
  margin-bottom: 1.2rem;
}

.quick-info-pill {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  padding: 0.65rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.25s, box-shadow 0.25s;
}

.quick-info-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.info-pill-date {
  border-color: rgba(236, 72, 153, 0.35);
  color: #be185d;
}

.info-pill-time {
  border-color: rgba(168, 85, 247, 0.35);
  color: #7e22ce;
}

.info-pill-venue {
  border-color: rgba(6, 182, 212, 0.35);
  color: #0e7490;
}

.info-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-pill-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.pill-title {
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill-desc {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}

/* ==========================================================================
   CONTADOR REGRESIVO (VIOLETA CON 4 PÍLDORAS BLANCAS)
   ========================================================================== */
.gem-countdown-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #8b5cf6 100%);
  border-radius: 28px;
  padding: 1rem 0.8rem 1.1rem;
  box-shadow: var(--shadow-neon-purple);
  border: 2px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 1.2rem;
}

.countdown-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.header-label {
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.header-star-img {
  width: 20px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.9));
}

.countdown-pills-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.count-pill {
  background: #ffffff;
  border-radius: 18px;
  padding: 0.55rem 0.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.count-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #4a044e;
  line-height: 1.05;
}

.count-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #701a75;
  text-transform: capitalize;
  margin-top: 0.1rem;
}

/* ==========================================================================
   BOTÓN PRINCIPAL: CONFIRMAR ASISTENCIA
   ========================================================================== */
.rsvp-primary-action-wrap {
  width: 100%;
  max-width: 440px;
  margin-bottom: 1.3rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.btn-confirm-rsvp {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0284c7 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-neon-cyan), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.btn-confirm-rsvp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.55);
}

.btn-confirm-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chevron-icon {
  animation: chevronNudge 1.5s infinite ease-in-out;
}

@keyframes chevronNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ==========================================================================
   MATRIZ DE NAVEGACIÓN RÁPIDA (INICIO, DETALLES, GALERÍA, UBICACIÓN)
   ========================================================================== */
.quick-nav-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  width: 100%;
  max-width: 440px;
  margin-bottom: 1.5rem;
  z-index: 3;
}

.nav-matrix-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-matrix-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.item-home {
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  color: #713f12;
  border: 1.5px solid #facc15;
}

.item-details {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #581c87;
  border: 1.5px solid #d8b4fe;
}

.item-gallery {
  background: linear-gradient(135deg, #fae8ff 0%, #f5d0fe 100%);
  color: #701a75;
  border: 1.5px solid #f0abfc;
}

.item-location {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #075985;
  border: 1.5px solid #7dd3fc;
}

.matrix-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nubes y Decoraciones en la Base */
.hero-clouds-crystal-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 5px;
  pointer-events: none;
  z-index: 2;
}

.fluffy-cloud {
  position: absolute;
  bottom: -15px;
  height: 48px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50px 50px 0 0;
  filter: blur(4px);
}

.cloud-1 { left: 8%; width: 52%; }
.cloud-2 { right: 8%; width: 56%; }

.decor-corner {
  position: relative;
  width: 75px;
  height: auto;
  z-index: 4;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.decor-corner-left { margin-left: 2px; }
.decor-corner-right { margin-right: 2px; }

/* ==========================================================================
   ESTILO COMÚN PARA SECCIONES (PANEL-CARD)
   ========================================================================== */
.section-panel {
  position: relative;
  background: var(--c-white-card);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow-gem-card);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  z-index: 2;
}

.panel-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.panel-eyebrow {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-pink-bright);
  text-transform: uppercase;
}

.panel-title {
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #4a044e;
  line-height: 1.2;
}

.panel-desc {
  font-size: 0.85rem;
  color: #701a75;
  max-width: 380px;
}

/* ==========================================================================
   SECCIÓN 2: DETALLES DEL EVENTO (TIMELINE ROWS)
   ========================================================================== */
.details-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-card-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fdf4ff;
  border-radius: 20px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(236, 72, 153, 0.2);
  transition: transform 0.25s;
}

.detail-card-row:hover {
  transform: translateX(4px);
}

.detail-icon-circle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-pink {
  background: linear-gradient(135deg, #fbcfe8 0%, #f472b6 100%);
  color: #831843;
}

.icon-purple {
  background: linear-gradient(135deg, #e9d5ff 0%, #a855f7 100%);
  color: #581c87;
}

.detail-texts {
  display: flex;
  flex-direction: column;
}

.detail-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #9333ea;
  font-weight: 700;
}

.detail-meta-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #4a044e;
}

.detail-meta-sub {
  font-size: 0.82rem;
  color: #701a75;
}

.action-buttons-group {
  display: flex;
  justify-content: center;
}

.btn-action-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #7e22ce;
  border: 1.5px solid #d8b4fe;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(126, 34, 206, 0.1);
  transition: all 0.25s;
}

.btn-action-outline:hover {
  background: #f3e8ff;
  border-color: #a855f7;
  transform: translateY(-2px);
}

/* ==========================================================================
   SECCIÓN 3: UBICACIÓN Y MAPA
   ========================================================================== */
.map-preview-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-visual-placeholder {
  position: relative;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 50%, #f5f3ff 100%);
  border-radius: 20px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(6, 182, 212, 0.4);
  text-align: center;
  padding: 1rem;
}

.map-pin-pulse {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.pin-dot {
  font-size: 2.2rem;
  z-index: 2;
}

.pin-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.35);
  animation: pinWaveAnim 2s infinite ease-out;
}

@keyframes pinWaveAnim {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.map-text-overlay strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  color: #0e7490;
}

.map-text-overlay span {
  font-size: 0.78rem;
  color: #0369a1;
}

.map-buttons-row {
  display: flex;
  justify-content: center;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-gem-gradient {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0284c7 100%);
  color: #ffffff;
  box-shadow: var(--shadow-neon-cyan);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.btn-gem-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.5);
}

/* ==========================================================================
   SECCIÓN 4: VESTIMENTA & REGALOS
   ========================================================================== */
.two-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .two-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sub-feature-card {
  background: #fdf4ff;
  border-radius: 22px;
  padding: 1.2rem;
  border: 1px solid rgba(236, 72, 153, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.dress-code-center-box {
  display: flex;
  justify-content: center;
  width: 100%;
}

.dress-code-card {
  max-width: 480px;
  width: 100%;
  padding: 1.8rem 1.4rem;
  background: linear-gradient(135deg, #fff1f8 0%, #fdf4ff 100%);
  border: 1.5px solid rgba(236, 72, 153, 0.35);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.15);
  gap: 0.9rem;
}

.dress-code-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #be185d;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.65rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(244, 114, 182, 0.5);
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.2);
  margin-top: 0.2rem;
  animation: dressPulse 3.5s infinite ease-in-out;
}

@keyframes dressPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 18px rgba(236, 72, 153, 0.2); }
  50% { transform: scale(1.035); box-shadow: 0 6px 26px rgba(250, 204, 21, 0.45); }
}

.sparkle-gem {
  font-size: 1.25rem;
}

.sub-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-dress {
  background: linear-gradient(135deg, #fbcfe8 0%, #f472b6 100%);
  color: #831843;
}

.icon-gift {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
  color: #713f12;
}

.sub-feature-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a044e;
}

.sub-feature-desc {
  font-size: 0.8rem;
  color: #701a75;
  line-height: 1.45;
}

/* ==========================================================================
   SECCIÓN 5: SUBIDA DE FOTOS MULTIPLE
   ========================================================================== */
.upload-box-card {
  background: #fdf2f8;
  border-radius: 22px;
  padding: 1.3rem;
  border: 1.5px solid rgba(236, 72, 153, 0.25);
  display: flex;
  flex-direction: column;
}

.uploader-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.uploader-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #831843;
}

.styled-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(236, 72, 153, 0.3);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  color: #4a044e;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.styled-input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.uploader-field-error {
  color: #e11d48;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.btn-select-photos {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  border-radius: 16px;
  background: #ffffff;
  border: 2px dashed #ec4899;
  cursor: pointer;
  color: #be185d;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-select-photos:hover {
  background: #fce7f3;
}

.btn-select-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.photos-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: #fbcfe8;
  color: #831843;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.upload-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.preview-thumb-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-thumb-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.85);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.upload-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #fbcfe8;
  margin-top: 1rem;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ec4899, #a855f7);
  transition: width 0.3s;
}

.btn-submit-photos {
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  color: #ffffff;
  border: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-submit-photos:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.55);
}

/* ==========================================================================
   SECCIÓN 6: ÁLBUM DE FOTOS & LIGHTBOX
   ========================================================================== */
.btn-download-zip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fde047 0%, #eab308 100%);
  color: #713f12;
  border: 1px solid #ca8a04;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.3);
  transition: transform 0.25s;
}

.btn-download-zip:hover {
  transform: scale(1.03);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

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

.gallery-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.12);
  cursor: pointer;
  border: 2px solid #ffffff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.25);
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(74, 4, 78, 0.85) 0%, transparent 100%);
  padding: 0.6rem 0.5rem 0.4rem;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Modal Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(30, 4, 43, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-window {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: #fdf2f8;
  border-bottom: 1px solid rgba(236, 72, 153, 0.15);
}

.lightbox-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-trash-card {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f43f5e;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-download-card {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #8b5cf6;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-counter-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #831843;
  background: #fbcfe8;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.btn-close-lightbox {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e2e8f0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #475569;
}

.lightbox-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lb-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

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

.lightbox-caption-text {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #4a044e;
  text-align: center;
  background: #ffffff;
}

/* ==========================================================================
   MODAL DE CONFIRMACIÓN DE ASISTENCIA (RSVP)
   ========================================================================== */
.rsvp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(49, 10, 68, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s;
}

.rsvp-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rsvp-modal-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 28px;
  padding: 1.6rem 1.3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.rsvp-modal-header {
  text-align: center;
  position: relative;
}

.rsvp-crown-img {
  width: 46px;
  height: auto;
  margin-bottom: 0.2rem;
  filter: drop-shadow(0 4px 10px rgba(250, 204, 21, 0.4));
}

.rsvp-modal-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a044e;
}

.rsvp-modal-desc {
  font-size: 0.8rem;
  color: #701a75;
  margin-top: 0.25rem;
}

.btn-close-rsvp {
  position: absolute;
  top: -5px;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #831843;
}

.rsvp-radio-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.radio-label {
  cursor: pointer;
}

.radio-label input {
  display: none;
}

.radio-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.4rem;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  transition: all 0.2s;
}

.radio-label input:checked + .pill-yes {
  border-color: #ec4899;
  background: #fce7f3;
  color: #831843;
}

.radio-label input:checked + .pill-no {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #334155;
}

.styled-textarea {
  resize: vertical;
}

.rsvp-submit-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   PIE DE PÁGINA (BRANDING NADIR Z LAB)
   ========================================================================== */
.footer-branding {
  text-align: center;
  padding: 1.5rem 0.5rem;
  border-top: 1px solid rgba(236, 72, 153, 0.2);
  margin-top: 1rem;
}

.footer-branding-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-mascot-badge {
  width: 65px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(139, 92, 246, 0.25));
  transition: transform 0.3s;
}

.footer-mascot-badge:hover {
  transform: scale(1.08) rotate(4deg);
}

.footer-branding-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.footer-powered-by {
  font-size: 0.75rem;
  color: #701a75;
}

.footer-brand-name {
  color: #8b5cf6;
  font-weight: 800;
}

.footer-cta-text {
  font-size: 0.75rem;
  color: #831843;
}

.footer-contact-link {
  color: #ec4899;
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN FLOTANTE INFERIOR
   ========================================================================== */
.floating-bottom-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.75rem;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
  max-width: 92%;
}

.bottom-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.75rem;
  border-radius: 16px;
  color: #701a75;
  text-decoration: none;
  transition: all 0.25s;
}

.bottom-tab-btn svg {
  width: 20px;
  height: 20px;
}

.tab-label {
  font-size: 0.65rem;
  font-weight: 700;
}

.bottom-tab-btn.is-active-tab {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

/* ==========================================================================
   TOAST NOTIFICACIONES
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(49, 10, 68, 0.92);
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.18, 0.9, 0.26, 1);
  z-index: 999999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 90%;
}

.toast-msg.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   ANIMACIONES BIDIRECCIONALES AL SCROLLEAR
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   ADAPTACIÓN TOTAL A COMPUTADORAS (PC & TABLETS HORIZONTALES: >= 900px)
   ========================================================================== */
@media (min-width: 900px) {
  /* Escenario principal expandido y equilibrado */
  .main-stage {
    max-width: 1060px;
    padding: 3rem 2.5rem 6.5rem;
    gap: 2.5rem;
  }

  /* 1. SOBRE DIGITAL EN PANTALLAS GRANDES */
  .envelope-stage {
    max-width: 520px;
  }

  .custom-envelope-scene {
    max-width: 440px;
    height: 310px;
  }

  .env-img-closed {
    max-width: 440px;
  }

  .env-img-open {
    max-width: 412px;
  }

  .envelope-emerging-card {
    max-width: 320px;
    padding: 1.15rem 1.1rem;
  }

  .custom-envelope-scene.is-envelope-open .envelope-emerging-card {
    transform: translateX(-50%) translateY(-100px) scale(0.96);
  }

  .emerging-card-logo {
    width: 170px;
  }

  .emerging-card-guest {
    font-size: 1.2rem;
  }

  /* 2. HERO PRINCIPAL EN 2 COLUMNAS AMPLIAS */
  .hero-card-gem {
    padding: 2.8rem 2.5rem 3.8rem;
    border-radius: 44px;
  }

  .hero-desktop-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    position: relative;
    z-index: 3;
  }

  /* Columna Izquierda: Identidad de Marca, Logo y Mensaje */
  .hero-col-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-emblem-container {
    max-width: 440px;
    margin-bottom: 0.8rem;
  }

  .hero-logo-img {
    max-width: 420px;
  }

  .hero-invite-subtitle {
    margin-bottom: 1.4rem;
  }

  .invite-msg {
    font-size: 1.35rem;
  }

  .personalized-pass-banner {
    max-width: 420px;
    padding: 0.85rem 1.6rem;
  }

  .guest-pass-name {
    font-size: 1.35rem;
  }

  /* Columna Derecha: Tarjetas de Información, Contador y Botones */
  .hero-col-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .hero-quick-info-grid {
    max-width: 100%;
    gap: 0.85rem;
    margin-bottom: 0;
  }

  .quick-info-pill {
    padding: 0.9rem 0.6rem;
  }

  .pill-title {
    font-size: 0.85rem;
  }

  .pill-desc {
    font-size: 1.05rem;
  }

  .gem-countdown-card {
    max-width: 100%;
    margin-bottom: 0;
    padding: 1.4rem 1.8rem;
  }

  .count-pill {
    min-width: 78px;
    padding: 0.65rem 0.85rem;
  }

  .count-num {
    font-size: 1.85rem;
  }

  .btn-confirm-rsvp {
    padding: 1.15rem 2rem;
    font-size: 1.25rem;
  }

  .quick-nav-matrix {
    max-width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 0;
  }

  .nav-matrix-item {
    padding: 0.85rem 0.4rem;
    font-size: 0.95rem;
  }

  /* Globos Superiores en PC */
  .hero-balloons-curtain {
    height: 170px;
  }

  .balloon-pink-left {
    width: 110px;
    height: 135px;
    top: -20px;
    left: -10px;
  }

  .balloon-lavender-left {
    width: 85px;
    height: 105px;
    top: 20px;
    left: 85px;
  }

  .balloon-pink-right {
    width: 88px;
    height: 110px;
    top: 15px;
    right: 90px;
  }

  .balloon-purple-right {
    width: 115px;
    height: 140px;
    top: -20px;
    right: -10px;
  }

  /* 3. DETALLES Y UBICACIÓN: 2 COLUMNAS SIDE-BY-SIDE */
  .desktop-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
    align-items: stretch;
  }

  .desktop-split-grid .section-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin-bottom: 0;
  }

  .desktop-split-grid .details-timeline {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.2rem 0;
  }

  .desktop-split-grid .map-preview-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 1rem;
  }

  .map-visual-placeholder {
    min-height: 180px;
  }

  /* 4. GALERÍA DE FOTOS EN 4 COLUMNAS */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem;
  }

  .gallery-item {
    aspect-ratio: 1 / 1;
  }

  /* 5. MODALES EN PC */
  .modal-card {
    max-width: 580px;
    padding: 2.4rem;
  }

  /* 6. GEMAS Y DESTELLOS LATERALES EN PC */
  .ambient-decor-layer {
    width: 100%;
    overflow: visible;
  }

  .decor-sparkle-img.sparkle-pos-1 { left: -50px; top: 120px; width: 48px; }
  .decor-sparkle-img.sparkle-pos-2 { right: -55px; top: 260px; width: 54px; }
  .decor-sparkle-img.sparkle-pos-3 { left: -60px; top: 520px; width: 50px; }
  .decor-sparkle-img.sparkle-pos-4 { right: -52px; top: 800px; width: 48px; }
  .decor-sparkle-img.sparkle-pos-5 { left: -55px; top: 1100px; width: 58px; }
  .decor-sparkle-img.sparkle-pos-6 { right: -55px; top: 1400px; width: 50px; }
  .decor-sparkle-img.sparkle-pos-7 { left: -50px; top: 1700px; width: 52px; }
  .decor-sparkle-img.sparkle-pos-8 { right: -54px; top: 2000px; width: 50px; }
}

@media (min-width: 1200px) {
  .main-stage {
    max-width: 1140px;
  }

  .hero-desktop-grid {
    gap: 4rem;
  }
}
