@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
  --color-gold: #d4af37;
  --color-gold-light: #f7e8b5;
  --color-gold-soft: rgba(212, 175, 55, 0.18);
  --color-gold-dark: #a17f20;
  --color-rose-gold: #c98893;
  --color-rose-gold-dark: #9e5b67;
  --color-rose-gold-light: #f3d7dc;

  --color-blush-bg: #f9e6e2;
  --color-blush-soft: #f7ede8;
  --color-card-bg: rgba(255, 255, 255, 0.82);
  --color-card-border: rgba(212, 175, 55, 0.32);

  --color-dark-velvet: #241421;
  --color-text-main: #33212c;
  --color-text-muted: #6e5865;
  --color-text-light: #fdfaf8;

  --font-script: 'Great Vibes', cursive;
  --font-serif-title: 'Cinzel Decorative', 'Playfair Display', Georgia, serif;
  --font-serif-body: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-luxury: 0 16px 40px rgba(58, 28, 42, 0.08), 0 4px 12px rgba(212, 175, 55, 0.08);
  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.35);
  --shadow-hover: 0 22px 50px rgba(58, 28, 42, 0.16);

  --glass-blur: blur(14px);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-blush-bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(247, 237, 232, 0.8) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(243, 215, 220, 0.5) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.6) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--color-text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

body.envelope-locked {
  overflow: hidden;
}

/* Canvas de Partículas en Fondo */
#sparkleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Contenedor Principal */
.invitation-page {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 6rem;
}

/* ==========================================================================
   TIPOGRAFÍA Y ORNAMENTOS
   ========================================================================== */
.font-script {
  font-family: var(--font-script);
}

.font-serif {
  font-family: var(--font-serif-body);
}

.text-gold {
  color: var(--color-gold);
}

.text-rose-gold {
  color: var(--color-rose-gold);
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
  color: var(--color-gold);
}

.ornament-divider::before,
.ornament-divider::after {
  content: "";
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.ornament-symbol {
  font-size: 1.25rem;
  line-height: 1;
}

/* Tarjetas Estilo Vidrio / Glassmorphism */
.glass-card {
  background: var(--color-card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-luxury);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), var(--color-rose-gold), transparent);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 4rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.monogram-badge {
  font-family: var(--font-serif-title);
  font-size: 1.4rem;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.2);
}

.hero-subtitle {
  font-family: var(--font-serif-body);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-rose-gold-dark);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.hero-name {
  font-family: var(--font-script);
  font-size: clamp(3.8rem, 10vw, 6.5rem);
  color: var(--color-dark-velvet);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(183, 110, 121, 0.15);
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.hero-surname {
  font-family: var(--font-serif-title);
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-rose-gold-dark);
  margin-bottom: 2rem;
}

/* Marco Ornamental de la Quinceañera */
.quince-portrait-frame {
  position: relative;
  width: min(340px, 86vw);
  height: min(340px, 86vw);
  margin: 1.5rem auto 2.5rem;
}

.quince-portrait-frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 2px solid var(--color-gold);
  border-radius: 170px;
  opacity: 0.7;
  transform: rotate(-1.5deg);
  pointer-events: none;
  transition: transform 0.4s ease;
}

.quince-portrait-frame::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px dashed var(--color-rose-gold);
  border-radius: 165px;
  opacity: 0.8;
  pointer-events: none;
}

.quince-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 160px;
  box-shadow: 0 20px 45px rgba(58, 28, 42, 0.22);
}

.hero-date-tag {
  display: inline-block;
  font-family: var(--font-serif-body);
  font-size: clamp(1.1rem, 3.2vw, 1.45rem);
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-gold);
  box-shadow: var(--shadow-luxury);
  margin-bottom: 2rem;
  max-width: 90vw;
}

.hero-quote {
  width: 100%;
  max-width: 680px;
  font-family: var(--font-serif-body);
  font-style: italic;
  font-size: clamp(1.1rem, 3.2vw, 1.35rem);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 auto;
  padding: 0 0.5rem;
}

/* ==========================================================================
   COUNTDOWN TIMER
   ========================================================================== */
.countdown-section {
  margin: 2rem 0 4rem;
  text-align: center;
}

.countdown-title {
  font-family: var(--font-serif-title);
  font-size: 1.25rem;
  letter-spacing: 3px;
  color: var(--color-rose-gold-dark);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.cd-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.5rem;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.12);
  transition: transform 0.3s ease;
}

.cd-box:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
}

.cd-number {
  font-family: var(--font-serif-title);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-dark-velvet);
  line-height: 1;
  display: block;
}

.cd-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-top: 0.4rem;
  display: block;
}

.calendar-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.48);
  filter: brightness(1.05);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.8px;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.4);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--color-gold-soft);
  color: var(--color-gold-dark);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   PADRES Y PADRINOS
   ========================================================================== */
.honors-section {
  margin: 3.5rem 0;
  text-align: center;
}

.honors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.honor-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(212, 175, 55, 0.4);
}

.honor-role {
  font-family: var(--font-serif-title);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-rose-gold-dark);
  margin-bottom: 0.75rem;
}

.honor-names {
  font-family: var(--font-serif-body);
  font-size: 1.35rem;
  color: var(--color-dark-velvet);
  font-weight: 600;
  line-height: 1.5;
}

/* ==========================================================================
   UBICACIONES / EVENT DETAILS (MISA Y FIESTA)
   ========================================================================== */
.locations-section {
  margin: 4rem 0;
}

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

.location-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-luxury);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.location-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.location-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.location-card:hover .location-img {
  transform: scale(1.05);
}

.location-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(36, 20, 33, 0.85);
  backdrop-filter: blur(8px);
  color: var(--color-gold-light);
  font-family: var(--font-serif-title);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.location-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.location-title {
  font-family: var(--font-serif-title);
  font-size: 1.35rem;
  color: var(--color-dark-velvet);
  margin-bottom: 0.5rem;
}

.location-place {
  font-family: var(--font-serif-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-rose-gold-dark);
  margin-bottom: 0.5rem;
}

.location-time {
  display: inline-block;
  font-weight: 600;
  color: var(--color-gold-dark);
  background: var(--color-gold-soft);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.location-address {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.location-note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-rose-gold-dark);
  margin-bottom: 1.5rem;
  background: var(--color-blush-soft);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.location-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ==========================================================================
   ITINERARIO / TIMELINE
   ========================================================================== */
.itinerary-section {
  margin: 4.5rem 0;
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 680px;
  margin: 2.5rem auto 0;
  padding: 1rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--color-gold) 15%, var(--color-rose-gold) 85%, transparent 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.2rem;
  width: 50%;
  padding: 0 2rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  right: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -13px;
}

.timeline-time {
  font-family: var(--font-serif-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  display: block;
}

.timeline-title {
  font-family: var(--font-serif-body);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark-velvet);
  margin: 0.2rem 0;
}

.timeline-desc {
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   CÓDIGO DE VESTIMENTA (DRESS CODE)
   ========================================================================== */
.dress-code-section {
  margin: 4rem 0;
  text-align: center;
}

.dress-code-type {
  font-family: var(--font-serif-title);
  font-size: 1.5rem;
  color: var(--color-dark-velvet);
  margin: 0.5rem 0 1rem;
}

.swatches-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin: 1.5rem 0 0.8rem;
  font-weight: 600;
}

.swatches-palette {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.swatch-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid #ffffff;
  transition: transform 0.25s ease;
}

.swatch-item:hover .swatch-circle {
  transform: scale(1.15);
}

.swatch-name {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.reserved-color-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff0f3;
  border: 1px solid var(--color-rose-gold);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--color-rose-gold-dark);
  font-weight: 500;
  margin-top: 1rem;
}

/* ==========================================================================
   LLUVIA DE SOBRES
   ========================================================================== */
.gifts-section {
  margin: 4.5rem auto;
  max-width: 780px;
  text-align: center;
}

.envelope-gift-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem 2.8rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 16px 45px rgba(58, 28, 42, 0.1), 0 0 20px rgba(212, 175, 55, 0.18);
  overflow: visible;
}

.gift-envelope-badge {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-rose-gold) 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope-floating-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.envelope-box-detail {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(247, 237, 232, 0.75) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.8rem;
  margin: 1.8rem auto 1.5rem;
  max-width: 580px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(58, 28, 42, 0.04);
}

.envelope-detail-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.envelope-detail-text h4 {
  font-family: var(--font-serif-title);
  font-size: 1.05rem;
  color: var(--color-dark-velvet);
  margin-bottom: 0.35rem;
  letter-spacing: 1px;
}

.envelope-detail-text p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.gift-footer-thanks {
  font-family: var(--font-serif-body);
  font-size: 1.05rem;
  color: var(--color-rose-gold-dark);
  font-weight: 600;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .envelope-box-detail {
    flex-direction: column;
    text-align: center;
    padding: 1.4rem 1rem;
  }
}

/* ==========================================================================
   GALERÍA DE FOTOS
   ========================================================================== */
.gallery-section {
  margin: 4.5rem 0;
  text-align: center;
}

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

.gallery-item {
  position: relative;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-luxury);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(36, 20, 33, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: #ffffff;
  font-family: var(--font-serif-body);
  font-size: 1.1rem;
}

/* Lightbox Dialog */
dialog#galleryLightbox {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  overflow: visible;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-caption-text {
  color: #ffffff;
  font-family: var(--font-serif-body);
  font-size: 1.2rem;
  margin-top: 0.75rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.lightbox-nav-btn:hover {
  background: rgba(212, 175, 55, 0.8);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

/* ==========================================================================
   RSVP (CONFIRMACIÓN DE ASISTENCIA)
   ========================================================================== */
.rsvp-section {
  margin: 4.5rem 0;
  text-align: center;
}

.rsvp-form {
  max-width: 580px;
  margin: 2rem auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-dark-velvet);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-main);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

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

.radio-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  transition: all 0.25s ease;
}

.radio-pills input[type="radio"] {
  display: none;
}

.radio-pills input[type="radio"]:checked+.radio-pill-label {
  border-color: var(--color-gold);
  background: var(--color-gold-soft);
  color: var(--color-gold-dark);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.rsvp-success-box {
  background: #f0fff4;
  border: 1px solid #68d391;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  color: #22543d;
}

.rsvp-success-box.hidden {
  display: none;
}

/* ==========================================================================
   MURO DE FELICITACIONES / LIBRO DE FIRMAS
   ========================================================================== */
.guestbook-section {
  margin: 4.5rem 0;
  text-align: center;
}

.guestbook-form {
  max-width: 580px;
  margin: 1.5rem auto 2.5rem;
  text-align: left;
}

.wishes-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  text-align: left;
}

.wish-card {
  background: #ffffff;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-luxury);
  animation: reveal 0.5s ease-out;
}

.wish-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wish-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-blush-soft);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.wish-author {
  font-family: var(--font-serif-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-dark-velvet);
  line-height: 1.2;
}

.wish-relation {
  font-size: 0.72rem;
  color: var(--color-rose-gold-dark);
  display: block;
}

.wish-date {
  margin-left: auto;
  font-size: 0.72rem;
  color: #a0aec0;
}

.wish-body {
  font-size: 0.88rem;
  color: var(--color-text-main);
  line-height: 1.5;
  font-style: italic;
}


/* ==========================================================================
   REPRODUCTOR DE AUDIO FLOTANTE (ESTILO ELEGANTE Y CLARO)
   ========================================================================== */
.floating-music-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(58, 28, 42, 0.1), 0 2px 10px rgba(212, 175, 55, 0.15);
  color: var(--color-dark-velvet);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-music-bar:hover {
  box-shadow: 0 14px 38px rgba(58, 28, 42, 0.15), 0 0 20px rgba(212, 175, 55, 0.3);
  border-color: var(--color-gold);
  transform: translateX(-50%) translateY(-2px);
  background: #ffffff;
}

/* Efecto de pulso en tonos cálidos claros cuando la música está sonando */
.floating-music-bar.active-sound {
  border-color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(58, 28, 42, 0.12), 0 0 20px rgba(212, 175, 55, 0.28);
  animation: musicLightGlow 2.8s infinite ease-in-out;
}

@keyframes musicLightGlow {

  0%,
  100% {
    box-shadow: 0 10px 30px rgba(58, 28, 42, 0.1), 0 0 12px rgba(212, 175, 55, 0.2);
  }

  50% {
    box-shadow: 0 14px 35px rgba(58, 28, 42, 0.14), 0 0 22px rgba(212, 175, 55, 0.4);
  }
}

.music-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7ede8 0%, #edd8ce 50%, #e2beaf 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark-velvet);
  box-shadow: 0 4px 12px rgba(58, 28, 42, 0.08);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, background 0.3s ease;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.music-toggle-btn:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #ffffff 0%, #f7ede8 100%);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
  color: var(--color-rose-gold-dark);
}

/* Ondas sonoras concéntricas suaves cuando está en reproducción */
.music-toggle-btn.playing::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 136, 147, 0.6);
  animation: buttonSoundRingsLight 1.8s infinite ease-out;
  pointer-events: none;
}

@keyframes buttonSoundRingsLight {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.music-toggle-btn .music-icon-play,
.music-toggle-btn .music-icon-pause {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Estado PAUSADO (por defecto): muestra icono de PLAY */
.music-toggle-btn .music-icon-play {
  display: block;
  transform: translateX(1px);
}

.music-toggle-btn .music-icon-pause {
  display: none;
}

/* Estado REPRODUCIENDO (.playing): muestra icono de PAUSA */
.music-toggle-btn.playing .music-icon-play {
  display: none;
}

.music-toggle-btn.playing .music-icon-pause {
  display: block;
}

/* Animación de barras de ecualizador de audio en tonos dorados cálidos */
.floating-music-bar .sound-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding-right: 0.25rem;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.floating-music-bar .sound-wave .bar {
  width: 3.5px;
  height: 6px;
  background-color: var(--color-rose-gold-dark);
  border-radius: 2px;
  transition: height 0.2s ease, background-color 0.3s ease;
}

.floating-music-bar.active-sound .sound-wave {
  opacity: 1;
}

.floating-music-bar.active-sound .sound-wave .bar {
  background: linear-gradient(to top, var(--color-gold-dark), var(--color-gold));
}

.floating-music-bar.active-sound .sound-wave .bar:nth-child(1) {
  animation: waveBar 0.9s infinite ease-in-out;
}

.floating-music-bar.active-sound .sound-wave .bar:nth-child(2) {
  animation: waveBar 1.2s infinite ease-in-out 0.2s;
}

.floating-music-bar.active-sound .sound-wave .bar:nth-child(3) {
  animation: waveBar 0.8s infinite ease-in-out 0.4s;
}

.floating-music-bar.active-sound .sound-wave .bar:nth-child(4) {
  animation: waveBar 1.1s infinite ease-in-out 0.1s;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.quince-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(36, 20, 33, 0.95);
  color: #ffffff;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-gold);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 999999;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.quince-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.quince-toast.success {
  border-color: #48bb78;
}

.quince-toast.warning {
  border-color: #ed8936;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.invitation-footer {
  text-align: center;
  padding: 3rem 1rem 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  margin-top: 5rem;
}

.footer-quote {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--color-dark-velvet);
  margin-bottom: 0.5rem;
}

.footer-reopen-btn {
  margin-top: 1.5rem;
  background: none;
  border: 1px solid var(--color-gold);
  color: var(--color-gold-dark);
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
}

.footer-reopen-btn:hover {
  background: var(--color-gold-soft);
}

.developer-credits {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.28);
  font-size: 0.76rem;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
}

.developer-credits strong {
  color: var(--color-rose-gold-dark);
  font-weight: 600;
}

.developer-credits .credits-separator {
  margin: 0 0.5rem;
  color: var(--color-gold);
  opacity: 0.7;
}

.developer-credits .credits-link {
  color: var(--color-rose-gold-dark);
  text-decoration: none;
  border-bottom: 1px dotted rgba(212, 175, 55, 0.6);
  padding-bottom: 1px;
  transition: all 0.25s ease;
}

.developer-credits .credits-link:hover {
  color: var(--color-gold-dark);
  border-bottom-color: var(--color-gold);
}



/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 840px) {

  .locations-grid,
  .honors-grid,
  .gifts-grid,
  .gallery-grid,
  .wishes-container {
    grid-template-columns: 1fr;
  }

  .quince-portrait-frame {
    width: min(300px, 85vw);
    height: min(300px, 85vw);
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 7px !important;
    right: auto !important;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .countdown-grid {
    gap: 0.5rem;
  }

  .cd-box {
    padding: 0.85rem 0.25rem;
  }

  .radio-pills {
    grid-template-columns: 1fr;
  }

  .glass-card {
    padding: 1.8rem 1.2rem;
  }

  .floating-music-bar {
    bottom: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  }
}