/* ═══════════════════════════════════════════════════════════════
   XV AÑOS · MICHELLE  —  style.css
   Paleta: Rosas Pastel | Tema: Ballet, Amor, Magia
   ═══════════════════════════════════════════════════════════════ */

/* ─── VARIABLES DE DISEÑO (PALETA ROSAS PASTEL) ─── */
:root {
  /* Rosas pastel principales */
  --rose-50: #fdf2f4;
  --rose-100: #fce4e8;
  --rose-200: #f9cbd4;
  --rose-300: #f5a9bb;
  --rose-400: #e8799a;
  --rose-500: #d45c7a;
  --rose-600: #c44262;
  --rose-gold: #e8c4c4;
  
  /* Transparencias para glassmorphism */
  --glass-bg: rgba(253, 242, 244, 0.75);
  --glass-border: rgba(245, 169, 187, 0.3);
  --glass-shadow: rgba(212, 92, 122, 0.1);
  
  /* Textos */
  --text-dark: #4a2c36;
  --text-light: #ffffff;
  --text-muted: #a85c74;
  --text-rose: #c44262;
  
  /* Fuentes */
  --ff-script: 'Great Vibes', cursive;
  --ff-serif: 'Cormorant Garamond', serif;
  --ff-sans: 'Raleway', sans-serif;
  
  /* Espaciados */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  
  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

/* ─── RESET & REGLAS GENERALES ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ff-sans);
  color: var(--text-dark);
  background-color: var(--rose-50);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

body.splash-active {
  overflow: hidden;
}

body.splash-active .main-content,
body.splash-active .music-player {
  visibility: hidden;
  pointer-events: none;
}

/* ─── FONDO FIJO CON TEXTURA (fondo.jpg) ─── */
.fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('../../img/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.fixed-bg__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(253, 242, 244, 0.65) 0%,
    rgba(252, 228, 232, 0.55) 100%);
  z-index: -1;
}

/* ─── SPLASH / PRE-HOME (intro.jpg) ─── */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('../img/intro.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.splash::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.splash.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.splash__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-lg);
  max-width: 400px;
  width: 100%;
  animation: fadeInUp 0.8s ease;
}

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

.splash__frame {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.splash__img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.splash__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.splash__pre {
  font-family: var(--ff-serif);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.splash__name {
  font-family: var(--ff-script);
  font-size: clamp(2.5rem, 10vw, 4rem);
  color: #fff;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
  line-height: 1.1;
}

.splash__xv {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--spacing-xs);
  margin: var(--spacing-sm) 0;
}

.splash__xv-roman {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--rose-200);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.splash__xv-years {
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.splash__date {
  font-family: var(--ff-serif);
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
}

.splash__btn {
  background: linear-gradient(135deg, var(--rose-400), var(--rose-500));
  border: none;
  color: white;
  padding: 14px 32px;
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin-bottom: var(--spacing-md);
}

.splash__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
}

.splash__btn svg {
  width: 18px;
  height: 18px;
}

.splash__hint {
  font-family: var(--ff-serif);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
}

/* ─── CONTENEDOR PRINCIPAL ─── */
.main-content {
  max-width: 550px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

/* ─── TARJETAS GLASSMORPHISM ─── */
.card-section {
  margin-bottom: var(--spacing-xl);
}

.card-section__inner {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  box-shadow: 0 8px 25px var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-section__inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(212, 92, 122, 0.15);
}

/* Animación de entrada */
.card-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── TÍTULOS DE SECCIÓN ─── */
.section-title {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-rose);
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose-400), transparent);
}

/* ─── SECCIÓN HERO ─── */
.hero__inner {
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.hero__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  color: var(--rose-400);
}

.hero__pre {
  font-family: var(--ff-serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.hero__name {
  font-family: var(--ff-script);
  font-size: clamp(3rem, 12vw, 5rem);
  color: var(--rose-500);
  line-height: 1.1;
  margin-bottom: var(--spacing-xs);
}

.hero__xv {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.hero__xv-num {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--rose-400);
}

.hero__xv-text {
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hero__divider {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  color: var(--rose-300);
  font-size: 0.8rem;
}

.hero__date {
  font-family: var(--ff-serif);
  font-size: 1rem;
  color: var(--text-muted);
}

/* ─── SECCIÓN HERO ─── */
.hero__inner {
  padding: 60px var(--spacing-lg) var(--spacing-2xl);;
}

/* Óvalo con imagen */
.hero__oval {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 40px auto var(--spacing-lg);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(212, 92, 122, 0.25);
  border: 3px solid rgba(245, 169, 187, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__oval:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(212, 92, 122, 0.35);
}

.hero__oval-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__oval-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero__oval:hover .hero__oval-glow {
  opacity: 1;
}

.hero__icon {
  display: none; /* Ocultar el icono anterior de ballet si lo tenías */
}

.hero__pre {
  font-family: var(--ff-serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.hero__name {
  font-family: var(--ff-script);
  font-size: clamp(3rem, 12vw, 5rem);
  color: var(--rose-500);
  line-height: 1.1;
  margin-bottom: var(--spacing-xs);
}

.hero__xv {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.hero__xv-num {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--rose-400);
}

.hero__xv-text {
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hero__divider {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  color: var(--rose-300);
  font-size: 0.8rem;
}

.hero__date {
  font-family: var(--ff-serif);
  font-size: 1rem;
  color: var(--text-muted);
}

/* ─── ORNAMENTOS ─── */
.ornament {
  color: var(--rose-300);
  font-size: 0.9rem;
  margin: var(--spacing-md) 0;
}

.message__text {
  font-family: var(--ff-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* ─── CUENTA REGRESIVA ─── */
.countdown__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  flex-wrap: wrap;
}

.countdown__item {
  background: rgba(255, 255, 255, 0.6);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  min-width: 70px;
  text-align: center;
  border: 1px solid rgba(245, 169, 187, 0.3);
}

.countdown__num {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--rose-500);
  display: block;
  line-height: 1.2;
}

.countdown__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.countdown__sep {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--rose-300);
}

.countdown__date {
  font-family: var(--ff-serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--spacing-md);
}

/* Animación de flash para números */
.countdown__num.flash {
  animation: numFlash 0.3s ease;
}

@keyframes numFlash {
  0% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* ─── GALERÍA ─── */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
}

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

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall img,
.gallery__item--wide img {
  height: auto;
  min-height: 150px;
}

/* ─── CÓDIGO DE VESTIMENTA ─── */
.dresscode__badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-500));
  color: white;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  margin-bottom: var(--spacing-lg);
}

.dresscode__note {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.dresscode__palette {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

.dresscode__palette span {
  display: inline-block;
  margin: 0 var(--spacing-xs);
}

.dresscode__swatches {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.dresscode__swatches span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.dresscode__swatches span:hover {
  transform: scale(1.1);
}

/* ─── LUGARES (CEREMONIA Y RECEPCIÓN) ─── */
.venue__card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-align: left;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(255,255,255,0.4);
  border-radius: var(--radius-md);
}

.venue__icon {
  width: 48px;
  height: 48px;
  color: var(--rose-400);
  flex-shrink: 0;
}

.venue__info h3 {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  color: var(--rose-500);
  margin-bottom: var(--spacing-xs);
}

.venue__address {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-xs);
}

.venue__time {
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* ─── BOTÓN DE ENLACE A MAPA (reemplaza al iframe) ─── */
.venue__map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, var(--rose-400), var(--rose-500));
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: var(--spacing-sm);
  width: 100%;
  cursor: pointer;
}

.venue__map-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.venue__map-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 92, 122, 0.4);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
}

/* ─── MESA DE REGALOS ─── */
.gifts__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.gifts__store {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--rose-500);
  margin-bottom: var(--spacing-lg);
}

.gifts__event {
  background: rgba(255,255,255,0.5);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
}

.gifts__event-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--spacing-xs);
}

.gifts__event-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.gifts__event-number span {
  font-family: var(--ff-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--rose-500);
  letter-spacing: 2px;
}

.gifts__copy {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  color: var(--rose-400);
}

.gifts__copy:hover {
  background: rgba(212, 92, 122, 0.1);
}

.gifts__copy svg {
  width: 20px;
  height: 20px;
}

.gifts__copied {
  font-size: 0.75rem;
  color: var(--rose-500);
  margin-top: var(--spacing-xs);
  opacity: 0;
  transition: opacity 0.2s;
}

.gifts__copied.visible {
  opacity: 1;
}

.gifts__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── RSVP / FORMULARIO ─── */
.rsvp__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  text-align: left;
}

.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.rsvp__field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.rsvp__field input,
.rsvp__field select {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.7);
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rsvp__field input:focus,
.rsvp__field select:focus {
  outline: none;
  border-color: var(--rose-400);
  box-shadow: 0 0 0 3px rgba(232, 121, 154, 0.2);
}

.rsvp__radio-group {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.rsvp__radio {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  font-size: 0.9rem;
}

.rsvp__radio input {
  width: auto;
  accent-color: var(--rose-500);
}

.rsvp__submit {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  border: none;
  color: white;
  padding: 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: var(--spacing-sm);
}

.rsvp__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 92, 122, 0.4);
}

.rsvp__submit svg {
  width: 18px;
  height: 18px;
}

.rsvp__thanks {
  text-align: center;
  padding: var(--spacing-lg);
}

.rsvp__thanks-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.rsvp__thanks h3 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  color: var(--rose-500);
  margin-bottom: var(--spacing-sm);
}

.rsvp__thanks p {
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* ─── FOOTER ─── */
.footer {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.footer__decor {
  color: var(--rose-300);
  font-size: 0.8rem;
  margin-bottom: var(--spacing-md);
}

.footer__name {
  font-family: var(--ff-script);
  font-size: 1.8rem;
  color: var(--rose-400);
  margin-bottom: var(--spacing-xs);
}

.footer__xv {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.footer__heart {
  font-size: 0.8rem;
  color: var(--rose-300);
}

/* ─── REPRODUCTOR DE MÚSICA FLOTANTE ─── */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.music-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: var(--rose-500);
  transition: transform 0.2s, box-shadow 0.2s;
}

.music-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(212, 92, 122, 0.3);
}

.music-icon {
  width: 24px;
  height: 24px;
}

/* ─── LIGHTBOX (Galería ampliada) ─── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

#lightbox.open {
  display: flex;
}

.lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 44, 54, 0.9);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.lb__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 92vw;
  max-height: 90vh;
  animation: lbIn 0.3s ease;
}

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

.lb__img {
  max-width: min(85vw, 800px);
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  object-fit: contain;
  background: var(--rose-100);
}

.lb__close,
.lb__prev,
.lb__next {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.lb__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
}

.lb__close:hover,
.lb__prev:hover,
.lb__next:hover {
  background: rgba(232, 121, 154, 0.6);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */

/* Tablets */
@media (max-width: 768px) {
  .main-content {
    padding: var(--spacing-md);
  }
  
  .card-section__inner {
    padding: var(--spacing-lg);
  }
  
  .countdown__grid {
    gap: var(--spacing-sm);
  }
  
  .countdown__item {
    padding: var(--spacing-sm) var(--spacing-md);
    min-width: 60px;
  }
  
  .countdown__num {
    font-size: 1.5rem;
  }
  
  .gallery__grid {
    gap: var(--spacing-sm);
  }
}

/* Móviles */
@media (max-width: 480px) {
  :root {
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
  }
  
  .main-content {
    padding: var(--spacing-md);
  }
  
  .card-section__inner {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .countdown__grid {
    gap: 8px;
  }
  
  .countdown__item {
    padding: var(--spacing-sm) var(--spacing-md);
    min-width: 55px;
  }
  
  .countdown__num {
    font-size: 1.2rem;
  }
  
  .countdown__sep {
    font-size: 1rem;
  }
  
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .venue__card {
    flex-direction: column;
    text-align: center;
  }
  
  .rsvp__radio-group {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .lb__prev,
  .lb__next {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  
  .lb__close {
    top: -44px;
  }
  
  .music-btn {
    width: 44px;
    height: 44px;
  }
  
  .music-icon {
    width: 20px;
    height: 20px;
  }
  
  .venue__map-link {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
  .countdown__item {
    min-width: 48px;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .countdown__num {
    font-size: 1rem;
  }
  
  .countdown__label {
    font-size: 0.6rem;
  }
}