/* ============================================
   XV Años — Fany (Rapunzel Theme)
   style.css — Paleta Lila Vibrante y Alto Contraste
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  overflow-x: hidden;
  background: #8e6ab8;
}

body.no-scroll {
  overflow: hidden !important;
  height: 100vh;
}

/* ============================================
   MODAL DE BIENVENIDA (PUERTAS DE CASTILLO)
   ============================================ */
.welcome-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  pointer-events: auto;
}

/* Puerta Izquierda */
.puerta-izq {
  position: absolute;
  top: 0;
  left: 0;
  width: 50vw;
  height: 100vh;
  z-index: 5;
  background:
    radial-gradient(ellipse at 100% 50%, rgba(172, 131, 219, 0.7) 0%, rgba(110, 69, 151, 0.96) 70%, rgba(78, 43, 114, 0.98) 100%),
    #8259ad;
  border-right: 2px solid rgba(254, 210, 62, 0.65);
  box-shadow: inset -15px 0 35px rgba(25, 8, 42, 0.5);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* Puerta Derecha */
.puerta-der {
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100vh;
  z-index: 5;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(172, 131, 219, 0.7) 0%, rgba(110, 69, 151, 0.96) 70%, rgba(78, 43, 114, 0.98) 100%),
    #8259ad;
  border-left: 2px solid rgba(254, 210, 62, 0.65);
  box-shadow: inset 15px 0 35px rgba(25, 8, 42, 0.5);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* Contenedor del contenido (frente a las puertas) */
.modal-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Tarjeta Central */
.welcome-modal__card {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 32px;
  border: 2px solid var(--gold-bright, #fed23e);
  box-shadow:
    0 16px 45px rgba(35, 12, 60, 0.45),
    0 0 30px rgba(254, 210, 62, 0.3);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalPopIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalPopIn {
  0%   { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Animación de apertura al hacer clic en "Abrir" */
.welcome-modal.abrir-animacion {
  pointer-events: none !important;
}

.welcome-modal.abrir-animacion .modal-content {
  opacity: 0;
  transform: scale(1.18) translateY(-25px);
}

.welcome-modal.abrir-animacion .puerta-izq {
  transform: translateX(-100%);
}

.welcome-modal.abrir-animacion .puerta-der {
  transform: translateX(100%);
}

.welcome-modal__crown {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
  filter: drop-shadow(0 2px 8px rgba(229, 176, 38, 0.5));
  animation: crownBob 2.5s ease-in-out infinite alternate;
}

@keyframes crownBob {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

.welcome-modal__intro {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: clamp(0.85rem, 2.3vw, 0.96rem);
  font-weight: 600;
  color: #4A375A;
  letter-spacing: 0.06em;
  margin: 0.2rem auto 0.4rem;
  line-height: 1.4;
}

.welcome-modal__title {
  font-family: var(--font-cursive, 'Great Vibes', cursive);
  font-size: clamp(2rem, 6.5vw, 2.7rem);
  color: #3B1E54;
  line-height: 1.2;
}

.welcome-modal__name {
  font-family: var(--font-cursive, 'Great Vibes', cursive);
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  color: #3B1E54;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #3B1E54;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4), 1px 1px 1px #FFD700;
  line-height: 1.15;
  margin: 0.2rem 0 0.8rem;
  font-weight: 400;
}

.welcome-modal__text,
.welcome-modal__cortesia {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: clamp(0.85rem, 2.3vw, 0.96rem);
  font-weight: 500;
  color: #4A375A;
  line-height: 1.5;
  margin: 0.4rem auto 1.6rem;
  max-width: 320px;
}

.mensaje-invitado {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
  font-weight: 600;
  color: #4A375A;
  line-height: 1.4;
  margin: 0.4rem auto 0.3rem;
  max-width: 360px;
}

#nombre-invitado-modal {
  display: block;
  font-family: var(--font-title, 'Great Vibes', cursive);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 400;
  color: #C59B27;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #C59B27;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2), 0 0 10px rgba(212, 175, 55, 0.25);
  margin-top: 0.35rem;
  line-height: 1.25;
  word-break: break-word;
}

.welcome-modal__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.6rem;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFF6D6;
  background: linear-gradient(135deg, #3B1E54 0%, #2E113E 100%);
  border: 2px solid #D4AF37;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 6px 20px rgba(46, 17, 62, 0.35),
    0 0 16px rgba(212, 175, 55, 0.45);
  animation: btnGlowPulse 2.8s ease-in-out infinite;
  transition: all 0.35s ease;
}

@keyframes btnGlowPulse {
  0%, 100% {
    box-shadow:
      0 6px 20px rgba(46, 17, 62, 0.35),
      0 0 14px rgba(212, 175, 55, 0.4);
    border-color: #D4AF37;
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(46, 17, 62, 0.45),
      0 0 26px rgba(255, 215, 0, 0.75);
    border-color: #FFE58F;
    transform: scale(1.03);
  }
}

.welcome-modal__btn:hover,
.welcome-modal__btn:focus-visible {
  transform: translateY(-3px) scale(1.05);
  color: #ffffff;
  border-color: #fed23e;
  box-shadow:
    0 10px 30px rgba(46, 17, 62, 0.45),
    0 0 32px rgba(254, 210, 62, 0.9);
}

.welcome-modal__btn:active {
  transform: translateY(0) scale(0.98);
}

.welcome-modal__btn .btn-sparkle {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: none;
}

.welcome-modal__btn:hover .btn-sparkle {
  animation: btn-shine 0.6s ease forwards;
}

/* ---------- Variables de Color y Tipografía ---------- */
:root {
  /* Tonos Lila / Lavanda Sólido y Vibrante */
  --lilac-base:         #8e6ab8;
  --lilac-vibrant:      #9c75c8;
  --lilac-medium:       #8059a8;
  --lilac-deep:         #6e4597;
  --lavender-light:     #b897db;
  --lavender-soft:      #d4bdf0;

  /* Tonos de Contraste para Textos sobre Lila */
  --text-pure-white:    #ffffff;
  --text-cream-light:   #fffbf0;
  --text-cream-muted:   #f0e2fc;
  --text-shadow-soft:   0 2px 8px rgba(35, 14, 58, 0.45);
  --text-shadow-strong: 0 3px 12px rgba(28, 10, 48, 0.6);

  /* Tonos para Tarjetas (Cards Blancas Traslúcidas) */
  --card-bg:            rgba(255, 255, 255, 0.88);
  --card-bg-subtle:     rgba(255, 255, 255, 0.92);
  --card-text-primary:  #341952;
  --card-text-secondary:#523373;
  --card-text-muted:    #6e4d91;
  --card-border:        rgba(255, 220, 115, 0.65);
  --card-shadow:        0 8px 26px rgba(40, 15, 68, 0.25);

  /* Dorados Brillantes y Mágicos */
  --gold:               #e5b026;
  --gold-bright:        #fed23e;
  --gold-light:         #fff1a1;
  --gold-glow:          rgba(254, 210, 62, 0.55);
  --gold-dark-text:     #8f6404;

  /* Fuentes */
  --font-cursive:       'Great Vibes', cursive;
  --font-body:          'Montserrat', sans-serif;
}

/* ============================================
   HERO / PORTADA PRINCIPAL
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(135, 88, 184, 0.85) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(172, 131, 219, 0.65) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(150, 103, 200, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, #9b75c8 0%, #8e6ab8 45%, #7e56aa 80%, #71479d 100%);
}

/* Partículas / Estrellas */
.stars-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-bright);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px 2px rgba(254, 210, 62, 0.45);
  animation: twinkle var(--dur, 3s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.5); }
  50%      { opacity: .9; transform: scale(1.3); }
}

/* ============================================
   CONTENEDOR DE FAROLES FLOTANTES (PRIMER PLANO)
   ============================================ */
#lantern-container,
.lantern-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none !important;
  z-index: 9998;
}

/* Diseño del Farol Mágico en Primer Plano */
.lantern {
  position: absolute;
  top: 0;
  width: 24px;
  height: 34px;
  border-radius: 8px 8px 12px 12px;
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 242, 166, 0.85) 25%, rgba(254, 210, 62, 0.75) 65%, rgba(229, 176, 38, 0.7) 100%);
  box-shadow:
    0 0 14px 4px rgba(254, 210, 62, 0.5),
    0 0 26px 8px rgba(229, 176, 38, 0.3),
    inset 0 0 6px rgba(255, 255, 255, 0.6);
  opacity: 0;
  pointer-events: none !important;
  user-select: none;
  will-change: transform, opacity;
  animation:
    floatUp var(--float-dur, 16s) linear forwards,
    sway var(--sway-dur, 4s) ease-in-out infinite alternate;
}

/* Pequeña base/soporte del farol */
.lantern::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 48%;
  height: 3px;
  background: rgba(194, 139, 18, 0.75);
  border-radius: 0 0 3px 3px;
}

/* Animación 1: Elevación vertical en Viewport Height (vh) con opacidad suave */
@keyframes floatUp {
  0% {
    transform: translateY(110vh) scale(var(--scale, 1));
    opacity: 0;
  }
  12% {
    opacity: var(--target-opacity, 0.68);
  }
  88% {
    opacity: var(--target-opacity, 0.68);
  }
  100% {
    transform: translateY(-20vh) scale(var(--scale, 1));
    opacity: 0;
  }
}

/* Animación 2: Oscilación horizontal suave simulación de viento */
@keyframes sway {
  0% {
    margin-left: -16px;
  }
  100% {
    margin-left: 16px;
  }
}

/* Enredaderas Decorativas */
.vine-left,
.vine-right {
  position: absolute;
  top: 0;
  width: clamp(60px, 12vw, 160px);
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
}

.vine-left {
  left: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 600'%3E%3Cpath d='M60 0 C40 80, 10 120, 30 200 S70 320, 40 400 S10 480, 50 560 L50 600' stroke='%23fed23e' stroke-width='2' fill='none'/%3E%3Ccircle cx='30' cy='200' r='6' fill='%23fff1a1' opacity='.7'/%3E%3Ccircle cx='45' cy='350' r='4' fill='%23ffffff' opacity='.6'/%3E%3Ccircle cx='20' cy='100' r='5' fill='%23fed23e' opacity='.5'/%3E%3C/svg%3E") top left / contain repeat-y;
}

.vine-right {
  right: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 600'%3E%3Cpath d='M20 0 C40 80, 70 120, 50 200 S10 320, 40 400 S70 480, 30 560 L30 600' stroke='%23fed23e' stroke-width='2' fill='none'/%3E%3Ccircle cx='50' cy='180' r='5' fill='%23fff1a1' opacity='.7'/%3E%3Ccircle cx='35' cy='320' r='6' fill='%23ffffff' opacity='.6'/%3E%3Ccircle cx='55' cy='480' r='4' fill='%23fed23e' opacity='.5'/%3E%3C/svg%3E") top right / contain repeat-y;
  transform: scaleX(-1);
}

/* Contenido del Hero */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  animation: fadeInUp 1.4s ease-out both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Corona / Sol */
.hero__crown {
  width: clamp(52px, 11vw, 84px);
  margin-bottom: .25rem;
  filter: drop-shadow(0 0 14px var(--gold-glow));
  animation: gentle-glow 3s ease-in-out infinite alternate;
}

@keyframes gentle-glow {
  from { filter: drop-shadow(0 0 10px rgba(254, 210, 62, .4)); }
  to   { filter: drop-shadow(0 0 22px rgba(254, 210, 62, .75)); }
}

/* Subtítulo Hero */
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(.88rem, 2.5vw, 1.15rem);
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-cream-light);
  text-shadow: var(--text-shadow-soft);
}

/* Mis XV Años */
.hero__invitation {
  font-family: var(--font-cursive);
  font-size: clamp(1.8rem, 5.5vw, 2.8rem);
  color: var(--gold-light);
  line-height: 1.25;
  margin-top: .4rem;
  text-shadow:
    0 2px 10px rgba(25, 8, 42, 0.7),
    0 0 18px rgba(254, 210, 62, 0.45);
}

/* Nombre de la Quinceañera */
.hero__name {
  font-family: var(--font-cursive);
  font-size: clamp(3.4rem, 13vw, 7rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 25%, var(--gold-bright) 55%, var(--gold) 85%, var(--gold-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 14px rgba(25, 8, 42, 0.75));
  animation: shimmer 4s linear infinite;
  margin: .25rem 0;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Divisor Hero */
.hero__divider {
  width: clamp(140px, 45vw, 280px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright) 25%, var(--gold-light) 50%, var(--gold-bright) 75%, transparent);
  border: none;
  margin: .85rem 0;
  opacity: .85;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* Bloque de Fecha */
.hero__date-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin: .25rem 0;
}

.hero__date-day {
  font-family: var(--font-body);
  font-size: clamp(3.2rem, 10.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
  text-shadow:
    0 2px 12px rgba(25, 8, 42, 0.6),
    0 0 16px rgba(254, 210, 62, 0.35);
}

.hero__date-sep {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 2.5px solid var(--gold-bright);
  padding-left: .85rem;
  gap: .15rem;
}

.hero__date-month {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-pure-white);
  text-shadow: var(--text-shadow-soft);
}

.hero__date-year {
  font-family: var(--font-body);
  font-size: clamp(.85rem, 2.3vw, 1.05rem);
  font-weight: 400;
  letter-spacing: .22em;
  color: var(--text-cream-light);
  text-shadow: var(--text-shadow-soft);
}

.hero__date-sub {
  font-family: var(--font-body);
  font-size: clamp(.85rem, 2.3vw, 1.05rem);
  font-weight: 300;
  letter-spacing: .14em;
  color: var(--text-cream-muted);
  text-shadow: var(--text-shadow-soft);
  margin-top: .25rem;
}

/* Botón CTA */
.hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.75rem;
  padding: .95rem 2.4rem;
  font-family: var(--font-body);
  font-size: clamp(.88rem, 2.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #2b1442;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  border: 2px solid var(--gold-light);
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(25, 8, 42, 0.4),
    0 0 24px var(--gold-glow);
  transition: all .35s ease;
  z-index: 2;
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  background: linear-gradient(135deg, #ffffff, var(--gold-light), var(--gold-bright));
  z-index: -1;
  opacity: 0;
  transition: opacity .35s ease;
  filter: blur(12px);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  transform: translateY(-3px) scale(1.03);
  color: #1e0a30;
  box-shadow:
    0 8px 30px rgba(25, 8, 42, 0.5),
    0 0 35px rgba(254, 210, 62, 0.75);
}

.hero__cta:hover::before {
  opacity: 1;
}

.hero__cta:active {
  transform: translateY(0) scale(.98);
}

.hero__cta .cta-sparkle {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  transition: none;
}

.hero__cta:hover .cta-sparkle {
  animation: btn-shine .6s ease forwards;
}

@keyframes btn-shine {
  to { left: 100%; }
}

.hero__cta-arrow {
  display: inline-block;
  font-weight: 700;
  transition: transform .3s ease;
}

.hero__cta:hover .hero__cta-arrow {
  animation: bounce-arrow 1s ease infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* Indicador de Desplazamiento */
.hero__scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  z-index: 2;
  opacity: .75;
  animation: fadeInUp 2s 1.5s ease-out both;
}

.hero__scroll-hint span {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-cream-light);
  text-shadow: var(--text-shadow-soft);
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--gold-bright);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 8px var(--gold-glow);
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  background: var(--gold-bright);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%   { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}


/* ============================================
   ESTILOS GENERALES DE SECCIONES
   ============================================ */
.section {
  position: relative;
  width: 100%;
  padding: 4.5rem 1.25rem;
  text-align: center;
}

.section__container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

/* Títulos de Sección y Alineación de Emojis / Íconos */
.section__title,
.countdown__title,
.mensaje-quinceanera__title,
.titulo-seccion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.section__title {
  font-family: var(--font-cursive);
  font-size: clamp(2.2rem, 6.5vw, 3.2rem);
  color: var(--gold-light);
  line-height: 1.2;
  text-shadow:
    0 2px 10px rgba(25, 8, 42, 0.7),
    0 0 16px rgba(254, 210, 62, 0.4);
}

.section__title-icon,
.section__title > span,
.countdown__title > span,
.mensaje-quinceanera__title > span,
.titulo-seccion > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none !important;
  line-height: 1;
  font-style: normal;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px var(--gold-glow));
  flex-shrink: 0;
}

/* Textos Descriptivos en Blanco / Crema Claro */
.section__lead {
  font-family: var(--font-body);
  font-size: clamp(.95rem, 2.5vw, 1.15rem);
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--text-cream-light);
  text-shadow: var(--text-shadow-soft);
  margin-top: -.35rem;
}

/* ============================================
   SEPARADOR MÁGICO (EL SOL DE RAPUNZEL)
   ============================================ */
.separador-magico {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 580px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.separador-magico::before,
.separador-magico::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-bright, #fed23e) 50%, var(--gold, #e5b026) 100%);
  box-shadow: 0 0 6px var(--gold-glow);
}

.separador-magico::after {
  background: linear-gradient(270deg, transparent, var(--gold-bright, #fed23e) 50%, var(--gold, #e5b026) 100%);
}

.separador-magico__sol {
  width: 38px;
  height: 38px;
  margin: 0 1rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(254, 210, 62, 0.75));
  animation: sunGentleSpin 12s linear infinite;
}

@keyframes sunGentleSpin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ============================================
   MARCOS DE CUENTO & ESQUINAS DE FILIGRANA DORADA
   ============================================ */
.card-fairytale {
  position: relative;
  background: var(--card-bg, rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--gold-bright, #fed23e);
  border-radius: 26px;
  box-shadow:
    0 12px 36px rgba(35, 12, 60, 0.28),
    inset 0 0 0 1.5px rgba(254, 210, 62, 0.45),
    inset 0 0 0 5.5px rgba(255, 255, 255, 0.7),
    inset 0 0 0 7px rgba(229, 176, 38, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.card-fairytale:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 42px rgba(35, 12, 60, 0.35),
    0 0 22px rgba(254, 210, 62, 0.4),
    inset 0 0 0 1.5px rgba(254, 210, 62, 0.6),
    inset 0 0 0 5.5px rgba(255, 255, 255, 0.8),
    inset 0 0 0 7px rgba(229, 176, 38, 0.5);
}

/* Filigranas en las esquinas */
.card-fairytale::before,
.card-fairytale::after {
  content: '';
  position: absolute;
  width: 38px;
  height: 38px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 2px rgba(254, 210, 62, 0.5));
}

/* Esquina superior izquierda */
.card-fairytale::before {
  top: 6px;
  left: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M3 38 C3 16, 16 3, 38 3 M3 22 C3 10, 10 3, 22 3 M7 7 C13 7, 18 12, 18 18 M7 7 C7 13, 12 18, 18 18' stroke='%23fed23e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='7' cy='7' r='3.5' fill='%23e5b026'/%3E%3Ccircle cx='24' cy='3' r='2' fill='%23fff1a1'/%3E%3Ccircle cx='3' cy='24' r='2' fill='%23fff1a1'/%3E%3C/svg%3E");
}

/* Esquina inferior derecha */
.card-fairytale::after {
  bottom: 6px;
  right: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M3 38 C3 16, 16 3, 38 3 M3 22 C3 10, 10 3, 22 3 M7 7 C13 7, 18 12, 18 18 M7 7 C7 13, 12 18, 18 18' stroke='%23fed23e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='7' cy='7' r='3.5' fill='%23e5b026'/%3E%3Ccircle cx='24' cy='3' r='2' fill='%23fff1a1'/%3E%3Ccircle cx='3' cy='24' r='2' fill='%23fff1a1'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}


/* ============================================
   SECCIÓN: PALABRAS DE LA QUINCEAÑERA
   ============================================ */
.section--message {
  background: linear-gradient(180deg, #71479d 0%, #7d54a7 100%);
  padding: 4.5rem 1.25rem 3.5rem;
}

.mensaje-quinceanera {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 1.8rem;
  width: 100%;
  max-width: 780px;
  background: var(--card-bg, rgba(255, 255, 255, 0.88));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--card-border, rgba(255, 220, 115, 0.65));
  border-radius: 28px;
  box-shadow: var(--card-shadow, 0 10px 30px rgba(40, 15, 68, 0.25));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mensaje-quinceanera:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(35, 12, 60, 0.32);
}

/* Envoltorio de la Fotografía */
.mensaje-quinceanera__photo-wrapper {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mensaje-quinceanera__img {
  width: clamp(200px, 45vw, 260px);
  height: clamp(250px, 55vw, 320px);
  object-fit: cover;
  border-radius: 120px 120px 24px 24px;
  border: 3.5px solid var(--gold-bright, #fed23e);
  box-shadow:
    0 0 0 3px rgba(255, 241, 161, 0.6),
    0 8px 24px rgba(110, 69, 151, 0.35),
    0 0 18px rgba(254, 210, 62, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mensaje-quinceanera__img:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 0 4px rgba(255, 241, 161, 0.85),
    0 12px 30px rgba(110, 69, 151, 0.45),
    0 0 25px rgba(254, 210, 62, 0.4);
}

/* Bloque de Contenido y Texto */
.mensaje-quinceanera__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.mensaje-quinceanera__title {
  font-family: var(--font-cursive, 'Great Vibes', cursive);
  font-size: clamp(2.3rem, 6vw, 3.2rem);
  color: var(--lilac-deep, #6e4597);
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.mensaje-quinceanera__text {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: clamp(0.95rem, 2.4vw, 1.08rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--card-text-primary, #341952);
  max-width: 440px;
}

.mensaje-quinceanera__signature {
  font-family: var(--font-cursive, 'Great Vibes', cursive);
  font-size: clamp(2rem, 5.5vw, 2.8rem);
  color: var(--gold-dark-text, #8f6404);
  line-height: 1.2;
  margin-top: 0.25rem;
}

/* Adaptabilidad para Escritorio (2 Columnas) */
@media (min-width: 768px) {
  .mensaje-quinceanera {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2.8rem 3rem;
    text-align: left;
  }

  .mensaje-quinceanera__content {
    align-items: flex-start;
    text-align: left;
  }

  .mensaje-quinceanera__text {
    max-width: 380px;
  }

  .mensaje-quinceanera__signature {
    align-self: flex-end;
    margin-right: 1.5rem;
  }
}

/* ============================================
   SECCIÓN: PAPÁS Y PADRINOS
   ============================================ */
.section--family {
  background: linear-gradient(180deg, #71479d 0%, #8259ad 50%, #8e6ab8 100%);
}

/* Tarjeta contenedora blanca traslúcida para Papás y Padrinos */
.family-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1.5rem 1.75rem;
  width: 100%;
  max-width: 540px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--card-border);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}

.family-group:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(35, 12, 60, 0.32);
}

.family-label {
  font-family: var(--font-body);
  font-size: clamp(.75rem, 2.2vw, .85rem);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark-text);
  margin-bottom: .25rem;
}

.family-name {
  font-family: var(--font-cursive);
  font-size: clamp(1.5rem, 4.8vw, 2.1rem);
  color: var(--card-text-primary);
  line-height: 1.3;
}

.family-amp {
  font-family: var(--font-cursive);
  font-size: clamp(1.25rem, 3.8vw, 1.7rem);
  color: var(--gold);
  line-height: 1;
}


/* ============================================
   SECCIÓN: CONTADOR REGRESIVO (COUNTDOWN)
   ============================================ */
.section--countdown {
  background: linear-gradient(180deg, #8e6ab8 0%, #7e56aa 100%);
  padding: 4rem 1.25rem;
}

/* Sol Mágico de Rapunzel / Reino de Corona */
.corona-sun-cameo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 1.5rem;
}

.corona-sun {
  width: clamp(140px, 36vw, 210px);
  height: clamp(140px, 36vw, 210px);
  filter:
    drop-shadow(0 0 14px rgba(254, 210, 62, 0.85))
    drop-shadow(0 0 32px rgba(229, 176, 38, 0.65))
    drop-shadow(0 0 50px rgba(255, 241, 161, 0.4));
  animation:
    pulseGlow 3.5s ease-in-out infinite alternate,
    coronaSunSlowSpin 36s linear infinite;
  transition: transform 0.4s ease, filter 0.4s ease;
  cursor: pointer;
}

.corona-sun:hover {
  filter:
    drop-shadow(0 0 20px rgba(254, 210, 62, 1))
    drop-shadow(0 0 45px rgba(229, 176, 38, 0.85))
    drop-shadow(0 0 70px rgba(255, 241, 161, 0.6));
}

/* Animación de pulsación y parpadeo de luz mágica */
@keyframes pulseGlow {
  0% {
    transform: scale(0.96);
    filter:
      drop-shadow(0 0 10px rgba(254, 210, 62, 0.7))
      drop-shadow(0 0 24px rgba(229, 176, 38, 0.45));
  }
  50% {
    filter:
      drop-shadow(0 0 18px rgba(254, 210, 62, 0.95))
      drop-shadow(0 0 40px rgba(229, 176, 38, 0.75))
      drop-shadow(0 0 60px rgba(255, 241, 161, 0.5));
  }
  100% {
    transform: scale(1.04);
    filter:
      drop-shadow(0 0 16px rgba(254, 210, 62, 0.9))
      drop-shadow(0 0 36px rgba(229, 176, 38, 0.7));
  }
}

/* Rotación majestuosa y muy lenta */
@keyframes coronaSunSlowSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.countdown__title {
  font-family: var(--font-cursive);
  font-size: clamp(2.2rem, 6.5vw, 3.2rem);
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-shadow:
    0 2px 10px rgba(25, 8, 42, 0.7),
    0 0 16px rgba(254, 210, 62, 0.4);
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 2vw, 1.25rem);
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

.countdown__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(70px, 18vw, 105px);
  padding: 0.95rem 0.65rem;
  background: var(--card-bg-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--gold-bright);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown__card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 30px rgba(35, 12, 60, 0.35),
    0 0 18px var(--gold-glow);
}

.countdown__number {
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 5.2vw, 2.6rem);
  font-weight: 700;
  color: var(--card-text-primary);
  line-height: 1.1;
}

.countdown__label {
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 1.8vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark-text);
  margin-top: 0.25rem;
}

.countdown__dots {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-bright);
  margin-top: -1rem;
  user-select: none;
  text-shadow: 0 0 8px var(--gold-glow);
}

.countdown__expired {
  font-family: var(--font-cursive);
  font-size: clamp(2.4rem, 7.5vw, 3.8rem);
  color: var(--gold-light);
  text-shadow:
    0 2px 10px rgba(25, 8, 42, 0.7),
    0 0 18px var(--gold-glow);
  padding: 1rem;
}

@media (max-width: 480px) {
  .countdown__dots {
    display: none;
  }
  .lancha-cameo {
    margin-bottom: 1rem;
  }
  .lancha-cameo__img {
    width: clamp(145px, 58vw, 205px);
    height: clamp(145px, 58vw, 205px);
  }
}


/* ============================================
   SECCIÓN: ITINERARIO / EVENTOS
   ============================================ */
.section--events {
  background: linear-gradient(180deg, #7e56aa 0%, #8e6ab8 100%);
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  width: 100%;
  margin-top: 1.5rem;
}

/* Tarjeta de Evento (Itinerario) */
.event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2.2rem 1.75rem 2rem;
  background: var(--card-bg-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 14px 36px rgba(35, 12, 60, 0.35),
    0 0 20px rgba(254, 210, 62, 0.3);
}

.event-card__icon {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 4px 8px rgba(35, 12, 60, 0.15));
}

.event-card__icon svg {
  width: 100%;
  height: 100%;
}

.event-card__label {
  font-family: var(--font-body);
  font-size: clamp(.72rem, 2vw, .82rem);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark-text);
}

.event-card__time {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 3.2vw, 1.45rem);
  font-weight: 700;
  color: var(--card-text-primary);
  letter-spacing: .05em;
}

.event-card__place {
  font-family: var(--font-cursive);
  font-size: clamp(1.7rem, 5.5vw, 2.3rem);
  color: #5c3285;
  line-height: 1.2;
}

.event-card__address {
  font-family: var(--font-body);
  font-size: clamp(.85rem, 2.3vw, .96rem);
  font-weight: 400;
  color: var(--card-text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.event-card__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .6rem;
  padding: .65rem 1.8rem;
  font-family: var(--font-body);
  font-size: clamp(.8rem, 2vw, .9rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #2b1442;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-bright));
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(229, 176, 38, 0.35);
  transition: all .3s ease;
}

.event-card__btn:hover,
.event-card__btn:focus-visible {
  color: #1e0a30;
  background: linear-gradient(135deg, #ffffff, var(--gold-light), var(--gold-bright));
  border-color: var(--gold-bright);
  box-shadow:
    0 0 16px var(--gold-glow),
    0 6px 18px rgba(0, 0, 0, .15);
  transform: translateY(-2px);
}

.event-card__btn:active {
  transform: translateY(0);
}

/* ============================================
   SECCIÓN: CRONOGRAMA DE ACTIVIDADES (REALEZA)
   ============================================ */
.section--cronograma-realeza {
  background: linear-gradient(180deg, #7e56aa 0%, #8e6ab8 100%);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem;
}

/* Filigrana decorativa bajo el título */
.cronograma-filigrana {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.8rem auto 1.8rem;
  max-width: 240px;
}

.cronograma-filigrana svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.4));
}

/* Contenedor del Timeline */
.cronograma-timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

/* Hilo vertical dorado con desvanecimiento superior e inferior */
.cronograma-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 24px;
  width: 2px;
  background: linear-gradient(
    180deg, 
    transparent 0%, 
    rgba(212, 175, 55, 0.3) 5%, 
    #D4AF37 20%, 
    #FFD700 50%, 
    #D4AF37 80%, 
    rgba(212, 175, 55, 0.3) 95%, 
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Cada Item del Cronograma */
.cronograma-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-left: 62px;
  cursor: default;
}

.cronograma-item:last-child {
  margin-bottom: 0;
}

/* Hora destacada */
.cronograma-hora {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #D4AF37;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

/* Nodo Central con borde doble y SVG de trazo fino */
.cronograma-nodo {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3e1b5c 0%, #250b3a 100%);
  border: 1.5px solid #FFD700;
  outline: 2px solid rgba(212, 175, 55, 0.5);
  outline-offset: 2px;
  box-shadow: 
    0 0 10px rgba(255, 215, 0, 0.45),
    0 4px 10px rgba(25, 8, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD700;
  z-index: 2;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulseGold 3.2s ease-in-out infinite;
}

.cronograma-nodo svg {
  width: 22px;
  height: 22px;
  color: #FFD700;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  transition: transform 0.35s ease;
}

/* Animación sutil de respiración y resplandor áureo */
@keyframes pulseGold {
  0%, 100% {
    box-shadow: 
      0 0 8px rgba(255, 215, 0, 0.4),
      0 4px 10px rgba(25, 8, 42, 0.3);
    outline-color: rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 
      0 0 16px rgba(255, 215, 0, 0.75),
      0 4px 14px rgba(25, 8, 42, 0.4);
    outline-color: rgba(255, 215, 0, 0.85);
  }
}

/* Tarjeta Flotante con fondo blanco/crema translúcido */
.cronograma-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 20px;
  padding: 1rem 1.4rem;
  box-shadow: 
    0 8px 22px rgba(35, 12, 60, 0.12),
    0 0 14px rgba(254, 210, 62, 0.15);
  text-align: left;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Título de la actividad con Great Vibes */
.cronograma-actividad {
  font-family: var(--font-cursive, 'Great Vibes', cursive);
  font-size: clamp(2rem, 5.5vw, 2.5rem);
  font-weight: 400;
  color: #3B1E54;
  line-height: 1.15;
  margin: 0 0 0.2rem;
  text-shadow: 0 1px 2px rgba(59, 30, 84, 0.1);
}

/* Descripción de la actividad en Montserrat legible */
.cronograma-desc {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: clamp(0.85rem, 2.2vw, 0.94rem);
  font-weight: 500;
  color: #4A375A;
  line-height: 1.45;
  margin: 0;
}

/* Efectos al pasar el cursor o pulsar (Hover / Active) */
.cronograma-item:hover .cronograma-card,
.cronograma-item:focus-within .cronograma-card {
  transform: translateY(-3px) translateX(3px);
  border-color: #FFD700;
  box-shadow: 
    0 12px 28px rgba(35, 12, 60, 0.2),
    0 0 20px rgba(255, 215, 0, 0.35);
}

.cronograma-item:hover .cronograma-nodo,
.cronograma-item:focus-within .cronograma-nodo {
  transform: translateY(-50%) scale(1.12);
  box-shadow: 
    0 0 20px #FFD700,
    0 4px 14px rgba(25, 8, 42, 0.4);
  outline-color: #FFD700;
}

.cronograma-item:hover .cronograma-nodo svg,
.cronograma-item:focus-within .cronograma-nodo svg {
  transform: scale(1.1);
}

/* Versión de escritorio expandida (>= 720px) con 3 columnas simétricas */
@media (min-width: 720px) {
  .cronograma-timeline::before {
    left: 161px;
  }

  .cronograma-item {
    padding-left: 0;
    display: grid;
    grid-template-columns: 120px 44px 1fr;
    gap: 1.25rem;
    align-items: center;
  }

  .cronograma-hora {
    text-align: right;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #FFD700;
    text-shadow: 0 1px 4px rgba(25, 8, 42, 0.45);
  }

  .cronograma-nodo {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin: 0 auto;
  }

  .cronograma-item:hover .cronograma-nodo,
  .cronograma-item:focus-within .cronograma-nodo {
    transform: scale(1.15);
  }
}


/* ============================================
   SECCIÓN: DRESS CODE
   ============================================ */
.section--dresscode {
  background: linear-gradient(180deg, #8e6ab8 0%, #7d54a7 100%);
}

.dresscode__icon {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 8px rgba(35, 12, 60, 0.2));
}

.dresscode__icon svg {
  width: 100%;
  height: 100%;
}

.dresscode__text {
  font-family: var(--font-body);
  font-size: clamp(.95rem, 2.5vw, 1.15rem);
  font-weight: 400;
  color: var(--text-pure-white);
  line-height: 1.65;
  max-width: 480px;
  text-shadow: var(--text-shadow-soft);
}

.dresscode__text strong {
  font-weight: 700;
  color: var(--gold-light);
}

/* Cuadro de alerta de colores reservados */
.dresscode__alert {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: .85rem 0;
  padding: 1.25rem 1.6rem;
  background: var(--card-bg-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--gold-bright);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  max-width: 520px;
}

.dresscode__alert-icon {
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
}

.dresscode__alert-text {
  font-family: var(--font-body);
  font-size: clamp(.85rem, 2.3vw, .95rem);
  font-weight: 400;
  color: var(--card-text-primary);
  line-height: 1.6;
  text-align: center;
}

.dresscode__alert-text strong {
  font-weight: 700;
  color: var(--gold-dark-text);
}

/* Muestras de color */
.dresscode__swatches {
  display: flex;
  gap: .85rem;
  margin-top: .5rem;
}

.dresscode__swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid var(--text-pure-white);
  box-shadow: 0 4px 12px rgba(25, 8, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dresscode__swatch-x {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  line-height: 1;
}

.dresscode__swatch-label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-cream-light);
  text-shadow: var(--text-shadow-soft);
  margin-top: .25rem;
}


/* ============================================
   SECCIÓN: RSVP / CONFIRMACIÓN
   ============================================ */
.section--rsvp {
  background: linear-gradient(180deg, #7d54a7 0%, #6b4194 100%);
}

.rsvp-form {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 1rem;
}

.rsvp-form__group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-align: left;
}

.rsvp-form__label {
  font-family: var(--font-body);
  font-size: clamp(.82rem, 2.2vw, .92rem);
  font-weight: 600;
  color: #3B1E54;
  letter-spacing: .05em;
}

/* ============================================
   SECCIÓN: RSVP DINÁMICO CON TOKENS (RAPUNZEL)
   ============================================ */
#rsvp-container,
.rsvp-container {
  width: 100%;
  max-width: 540px;
  margin: 1.5rem auto 0;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

.rsvp-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  border: 2px solid var(--gold-bright, #fed23e);
  box-shadow:
    0 12px 35px rgba(35, 12, 60, 0.22),
    0 0 25px rgba(254, 210, 62, 0.2);
  padding: 2.2rem 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  box-sizing: border-box;
}

.rsvp-card__sun {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 8px rgba(229, 176, 38, 0.5));
}

/* Textos legibles */
.rsvp-saludo {
  font-family: 'Great Vibes', cursive;
  color: #B8860B; /* Dorado oscuro, NUNCA BLANCO */
  font-size: 2.5rem;
  margin-bottom: 5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 1.25;
}

.rsvp-pases,
.rsvp-label {
  font-family: 'Montserrat', sans-serif;
  color: #3B1E54; /* Morado oscuro profundo para máximo contraste */
  font-size: 1.1rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.rsvp-pases strong {
  color: #D4AF37;
  font-size: 1.3rem;
  font-weight: 800;
}

/* Caja de texto (Textarea) de cuento */
.rsvp-textarea {
  width: 90%;
  max-width: 400px;
  height: 80px;
  border: 2px solid #D4AF37; /* Borde dorado en vez de negro */
  border-radius: 12px;
  padding: 12px;
  font-family: 'Montserrat', sans-serif;
  color: #3B1E54;
  background-color: rgba(255, 255, 255, 0.9);
  resize: none;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.rsvp-textarea:focus {
  border-color: #FFD700;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.rsvp-textarea::placeholder {
  color: #7b5894;
  opacity: 0.7;
}

/* Contenedor y Botones de la realeza */
.rsvp-botones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.btn-confirmar {
  background: linear-gradient(135deg, #FFD700, #D4AF37); /* Dorado brillante */
  color: #3B1E54; /* Letra oscura para contrastar con el oro */
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-confirmar:hover {
  transform: scale(1.05);
}

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

.btn-declinar {
  background: transparent;
  color: #3B1E54;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  padding: 12px 24px;
  border: 2px solid #C59B27; /* Borde dorado */
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-declinar:hover {
  background: rgba(197, 155, 39, 0.1);
}

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

/* Badges y Notificaciones de Estado */
.rsvp-status-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.rsvp-status--confirmed {
  background: rgba(232, 245, 233, 0.95);
  color: #1b5e20;
  border: 1px solid #81c784;
}

.rsvp-status--declined {
  background: rgba(255, 235, 238, 0.95);
  color: #b71c1c;
  border: 1px solid #e57373;
}

.rsvp-feedback {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  margin-top: 0.6rem;
  width: 100%;
  box-sizing: border-box;
}

.rsvp-feedback--loading {
  background: rgba(254, 210, 62, 0.2);
  color: #8f6404;
}

.rsvp-feedback--error {
  background: rgba(255, 205, 210, 0.5);
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}
.rsvp-status-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.rsvp-status--confirmed {
  background: rgba(232, 245, 233, 0.95);
  color: #1b5e20;
  border: 1px solid #81c784;
}

.rsvp-status--declined {
  background: rgba(255, 235, 238, 0.95);
  color: #b71c1c;
  border: 1px solid #e57373;
}

.rsvp-feedback {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  margin-top: 0.6rem;
  width: 100%;
  box-sizing: border-box;
}

.rsvp-feedback--loading {
  background: rgba(254, 210, 62, 0.2);
  color: #8f6404;
}

.rsvp-feedback--error {
  background: rgba(255, 205, 210, 0.5);
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

/* Tarjeta Sin Token o Error */
.rsvp-no-token {
  padding: 2.2rem 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.rsvp-card__text {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 400;
  line-height: 1.65;
  color: #341952;
  max-width: 440px;
}

/* ============================================
   MENSAJE DE ÉXITO RSVP (CONFIRMADO / DECLINADO)
   ============================================ */
.rsvp-mensaje-exito {
  text-align: center;
  padding: 30px 10px;
  animation: fadeIn 0.8s ease;
}

.exito-titulo {
  font-family: 'Great Vibes', cursive;
  color: #C59B27; /* Dorado oscuro brillante para visibilidad */
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 1.25;
}

.exito-texto {
  font-family: 'Montserrat', sans-serif;
  color: #3B1E54; /* Morado oscuro profundo para contraste máximo */
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   ANIMACIÓN SCROLL-REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}

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


/* ============================================
   BOTÓN FLOTANTE: MÚSICA DE FONDO
   ============================================ */
.music-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--gold-bright);
  box-shadow:
    0 4px 18px rgba(25, 8, 42, 0.45),
    0 0 15px var(--gold-glow);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.45rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  outline: none;
  padding: 0;
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow:
    0 6px 24px rgba(25, 8, 42, 0.5),
    0 0 25px var(--gold-bright);
  background-color: #fffdf5;
}

.music-btn:active {
  transform: scale(0.95);
}

.music-btn.is-playing {
  animation: music-pulse 2.2s infinite ease-in-out;
}

@keyframes music-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(254, 210, 62, 0.8), 0 4px 18px rgba(25, 8, 42, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(254, 210, 62, 0), 0 4px 18px rgba(25, 8, 42, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(254, 210, 62, 0), 0 4px 18px rgba(25, 8, 42, 0.45);
  }
}

@media (max-width: 480px) {
  .music-btn {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  .hero {
    padding: 3.5rem 2rem;
  }

  .hero__content {
    gap: .85rem;
  }

  .section {
    padding: 5.5rem 2rem;
  }

  .events-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .rsvp-form {
    max-width: 520px;
  }

  .dresscode__alert {
    max-width: 540px;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    gap: 1.1rem;
  }

  .section__container {
    max-width: 860px;
  }
}

/* Reducción de movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
