/* --- PRELOADER --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 1.5s var(--ease-premium),
    visibility 1.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.preloader__initials {
  font-family: var(--font-title);
  font-size: 3rem;
  color: var(--accent-gold);
  letter-spacing: 0.4em;
  margin-left: 0.4em; /* Compensación por letter-spacing */
  font-weight: 300;
}

.preloader__line {
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  opacity: 0.5;
  animation: loadLine 2s var(--ease-premium) forwards;
}

/* Estilo específico para el botón del preloader */
.preloader__btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s var(--ease-premium);
  margin-top: 10px;
  pointer-events: none; /* Bloqueado hasta que termine la línea */
}

/* Esta clase se activará vía JS cuando la línea de carga termine */
.preloader__btn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- AUDIO CONTROLLER (GLASSMORPHISM) --- */
.audio-controller {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  cursor: pointer;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    transform 0.4s var(--ease-premium),
    background 0.4s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.audio-controller:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.08);
}

.audio-icon {
  width: 22px;
  height: 22px;
}

.audio-icon.hidden {
  display: none;
}

/* --- TEXTOS HERO --- */
.hero__pre-title {
  font-size: clamp(0.6rem, 1.5vw, 0.7rem);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.7);
  /* [MEJORA] Usamos padding-left para empujar el texto a la derecha y centrarlo ópticamente */
  padding-left: 0.5em;
  width: 100%;
}

.hero__title {
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 300;
  line-height: 0.9;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

.hero__title .ampersand {
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--accent-gold);
  font-style: italic;
  margin: 10px 0;
}

.hero__quote {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 3rem;
  opacity: 0.8;
  width: 100%;
}

/* REDISEÑO DE FECHA: Centrado absoluto y espaciado */
.hero__date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 20px);
  padding: 15px 25px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 40px; /* [NUEVO] Espacio extra para que no choque con lo de abajo */
}

.date-item {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-left: 0.3em; /* [CORRECCIÓN] Empuja las letras a la derecha */
}

.date-item.month {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  font-style: italic;
  padding-left: 0;
}

.date-divider {
  width: 4px;
  height: 4px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  opacity: 0.6;
}

/* --- SCROLL INDICATOR CORREGIDO Y ALEJADO --- */
.hero__scroll-indicator {
  position: absolute;
  /* [MEJORA] Usamos clamp para que en pantallas cortas se pegue más al borde y no choque */
  bottom: clamp(15px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-text {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.5);
  padding-left: 0.4em; /* [CORRECCIÓN] Centrado perfecto con la línea */
}

.scroll-line {
  width: 1px;
  /* [NUEVO] Altura dinámica para que no ocupe tanto espacio en celulares */
  height: clamp(40px, 8vh, 60px);
  background: rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--accent-gold);
  animation: scrollDown 2.5s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================== */
/* BLOQUE 2: COMPONENTES HISTORIA Y CONTADOR      */
/* ============================================== */

/* --- TÍTULOS DE SECCIÓN (Reutilizables en toda la web) --- */
.section-subtitle {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(244, 244, 244, 0.5);
  margin-bottom: 15px;
  text-align: center; /* Aseguramos que el subtítulo también esté centrado */
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.1;
  text-align: center; /* Forzamos el centrado del título */
}

.title-separator {
  width: 100px; /* [MEJORA] Más larga para que funcione como un subrayado elegante */
  height: 2px; /* [MEJORA] Un poquito más de grosor para que resalte el dorado */
  background-color: var(--accent-gold);
  /* [CRÍTICO] margin: 20px auto 40px; 
     El 'auto' a los lados es lo que centra la línea matemáticamente */
  margin: 20px auto 40px;
  display: block; /* Asegura que respete los márgenes automáticos */
}

/* Eliminamos la regla antigua de .countdown__content .title-separator porque ahora ya es general */

/* Centrar el separador automáticamente si el contenedor está centrado */
.countdown__content .title-separator {
  margin-left: auto;
  margin-right: auto;
}

/* --- ESTILOS DE HISTORIA --- */
.story__image-wrapper {
  position: relative;
  padding: 20px;
}

/* Marco fotográfico desfasado estilo premium */
.story__image-frame {
  position: relative;
  z-index: 2;
}

.story__image-frame::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-gold);
  z-index: -1;
  opacity: 0.5;
  transition: transform 0.5s var(--ease-premium);
}

.story__image-wrapper:hover .story__image-frame::after {
  transform: translate(-10px, -10px);
}

.story__image {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  /* Proporción de retrato elegante */
  object-fit: cover;
  filter: grayscale(30%) contrast(110%);
  /* Toque dramático */
}

.story__paragraph {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(244, 244, 244, 0.75);
  margin-bottom: 25px;
  font-weight: 300;
}

/* --- ESTILOS DEL CONTADOR --- */
.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* [MEJORA] Tamaños más responsivos para evitar que se aplasten en celulares */
  width: clamp(70px, 18vw, 110px);
  height: clamp(75px, 18vw, 110px);
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  /* [MEJORA] Borde superior ligeramente más claro para simular el reflejo del cristal */
  border: 1px solid var(--glass-border);
  border-top-color: rgba(255, 255, 255, 0.15);
  border-left-color: rgba(255, 255, 255, 0.1);

  /* [MEJORA] Curva premium estilo Apple */
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s var(--ease-premium);
}

.countdown__item:hover {
  transform: translateY(-5px);
}

.countdown__number {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 8px;
  /* [MEJORA] Sombra sutil en el texto para que resalte sobre fondos claros */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.countdown__label {
  font-size: clamp(0.55rem, 1.5vw, 0.65rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Caja de segundos resaltada */
.accent-box {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.2);
  border-top-color: rgba(212, 175, 55, 0.4); /* Reflejo dorado */
}

.accent-box .countdown__number {
  color: var(--accent-gold);
}

/* --- BOTÓN AÑADIR AL CALENDARIO --- */
.calendar-action {
  margin-top: clamp(
    30px,
    6vw,
    50px
  ); /* Espaciado premium para que no choque con el reloj */
  display: flex;
  justify-content: center;
}

#btn-add-calendar {
  background: rgba(212, 175, 55, 0.05); /* Un fondo dorado muy sutil */
  border-color: rgba(212, 175, 55, 0.4);
}

#btn-add-calendar:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

#btn-add-calendar svg {
  width: 20px;
  height: 20px;
}

/* ============================================== */
/* BLOQUE 3: COMPONENTES UBICACIÓN Y BOTONES      */
/* ============================================== */

/* --- TARJETAS DE UBICACIÓN --- */
.location-card {
  padding: clamp(40px, 6vw, 50px) clamp(20px, 4vw, 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 12px; /* [MEJORA] Curva premium consistente con toda la web */
  background: var(
    --glass-bg
  ); /* [MEJORA] Le damos presencia con el cristal base */
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.5s var(--ease-premium),
    box-shadow 0.5s var(--ease-premium),
    background 0.5s;
}

.location-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.location-card__icon-wrapper {
  margin-bottom: 20px;
}

.location-icon {
  width: clamp(35px, 5vw, 40px);
  height: clamp(35px, 5vw, 40px);
  color: var(--accent-gold);
}

.location-card__title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 15px;
}

.location-card__time {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.location-card__address {
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 30px;
  font-weight: 300;
  flex-grow: 1; /* [MEJORA CRÍTICA] Si una dirección es más larga que otra, esto empuja ambos botones al fondo para que queden alineados a la misma altura */
}

.address-detail {
  color: rgba(244, 244, 244, 0.5);
  font-size: 0.85rem;
}

/* --- BOTONES PREMIUM (Estilo Apple / Minimalista) --- */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(12px, 3vw, 15px) clamp(24px, 5vw, 32px);
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--text-light);
  text-decoration: none;
  font-size: clamp(0.7rem, 2vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 100px; /* [MEJORA] Forma de píldora redondeada. Súper elegante y amigable en móviles. */
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition:
    color 0.4s var(--ease-premium),
    border-color 0.4s,
    transform 0.4s;
  z-index: 1;
}

/* Efecto Hover "Sweep" (Relleno de fondo fluido) */
.btn-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gold);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-premium);
}

.btn-premium:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-premium:hover {
  color: var(--bg-dark);
  transform: translateY(
    -2px
  ); /* [MEJORA] Pequeño salto hacia arriba al tocar o pasar el mouse */
}

/* Iconos dentro de botones */
.btn-premium svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease-premium);
}

.btn-premium:hover svg {
  transform: scale(1.1);
}

/* --- SECCIÓN CÓDIGO DE VESTIMENTA MEJORADA --- */
.dress-code {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 60px) clamp(20px, 5vw, 40px);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dress-code__header {
  margin-bottom: 30px;
}

.dress-code__icon svg {
  width: 45px;
  height: 45px;
  color: var(--accent-gold);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.dress-code__title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 300;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.dress-code__tag {
  display: inline-block;
  padding: 10px 25px;
  background: var(--accent-gold);
  color: var(--bg-dark);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-weight: 700;
  border-radius: 100px; /* Estilo píldora consistente */
}

.dress-code__note {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
}

/* Botón de despliegue */
.btn-dress-code {
  margin-top: 30px;
  width: 100%;
  max-width: 300px;
}

.arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease-premium);
}

/* Cuando el acordeón esté abierto, giramos la flecha */
.btn-dress-code.active .arrow-icon {
  transform: rotate(180deg);
}

/* Contenedor Expandible */
.outfits-expandable {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease;
  opacity: 0;
}

.outfits-expandable.active {
  max-height: 1000px; /* Un valor alto para permitir el crecimiento */
  opacity: 1;
  margin-top: 50px;
}

.outfits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(15px, 3vw, 30px);
  padding-bottom: 20px;
}

/* Tarjetas de Outfit */
.outfit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.outfit-card__img-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.outfit-card__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1);
  transition: transform 0.8s var(--ease-premium);
}

.outfit-card:hover .outfit-card__img-wrapper img {
  transform: scale(1.1);
}

.outfit-card__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 5px;
  font-weight: 600;
}

.outfit-card__desc {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 300;
}

/* Ajustes para móviles muy pequeños */
@media (max-width: 480px) {
  .outfits-grid {
    grid-template-columns: 1fr; /* Una columna en pantallas muy angostas */
    gap: 40px;
  }
}

/* ============================================== */
/* BLOQUE 4: COMPONENTES MÚSICA Y GALERÍA         */
/* ============================================== */

/* --- REPRODUCTOR SPOTIFY (SIMULADO) --- */
.spotify-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-radius: 100px;
  margin-top: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  transition: transform 0.4s var(--ease-premium);
}

.spotify-player:hover {
  transform: scale(1.02);
}

.spotify-player__cover {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  animation: spinSlow 10s linear infinite;
}

.spotify-player__info {
  flex-grow: 1;
  text-align: left;
  padding: 0 20px;
}

.spotify-player__song {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 4px;
}

.spotify-player__artist {
  font-size: 0.75rem;
  color: rgba(244, 244, 244, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.spotify-player__icon {
  width: 30px;
  height: 30px;
  color: #1db954;
  margin-right: 15px;
  opacity: 0.8;
}

.spotify-player__visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  margin-right: 20px;
}

.spotify-player__visualizer .bar {
  width: 3px;
  background-color: var(--accent-gold);
  border-radius: 3px;
  animation: bounceBar 1s ease-in-out infinite alternate;
}

/* --- NUEVO: FORMULARIO PEDIR CANCIONES --- */
.song-request {
  margin-top: 30px;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
}

.song-request__title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.song-request__desc {
  font-size: 0.85rem;
  color: rgba(244, 244, 244, 0.6);
  margin-bottom: 25px;
  line-height: 1.6;
}

.song-request__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.btn-song {
  width: 100%;
}

/* ============================================== */
/* ITEMS DE LA GALERÍA PREMIUM (MOMENTOS)         */
/* ============================================== */

.gallery-item {
  position: relative;
  border-radius: 12px; /* [MEJORA] Curva coincidente con el resto del diseño */
  overflow: hidden;
  cursor: pointer;
  background-color: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.05); /* [MEJORA] Marco sutil para separar del fondo oscuro */
  /* [MEJORA] Sombra base para dar profundidad natural en celulares */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition:
    box-shadow 0.5s var(--ease-premium),
    transform 0.5s var(--ease-premium);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition:
    transform 1.2s var(--ease-premium),
    filter 0.8s ease;
  /* [MEJORA] Reducimos el filtro gris por defecto para que en celular se vea más vivo y premium */
  filter: grayscale(15%) brightness(0.9);
}

.item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s var(--ease-premium);
  pointer-events: none;
  z-index: 2;
}

/* ============================================== */
/* LA MAGIA DEL "HOVER GROUP" (EFECTO FOCUS)      */
/* ============================================== */

/* [CRÍTICO] Solo aplicamos los efectos de oscurecer/iluminar en dispositivos que tienen mouse (PC). 
   En celulares, las fotos mantienen su luz para que el "tap" abra el visor 3D directamente. */
@media (hover: hover) {
  .gallery__container:hover .item-overlay {
    opacity: 1;
  }

  .gallery__container:hover .gallery-item:hover .item-overlay {
    opacity: 0;
  }

  .gallery-item:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 10;
  }

  .gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1.05);
  }
}

/* ============================================== */
/* BLOQUE 5: COMPONENTES ITINERARIO Y FORMULARIO  */
/* ============================================== */

/* --- DETALLES ITINERARIO --- */
.timeline__dot {
  position: absolute;
  top: 20px;
  left: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  z-index: 2;
  /* [MEJORA] Animación de latido sutil para dar vida al itinerario */
  animation: pulseGlow 2.5s infinite alternate var(--ease-premium);
}

@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 10px rgba(212, 175, 55, 0.4),
      0 0 0 0 rgba(212, 175, 55, 0.2);
  }
  100% {
    box-shadow:
      0 0 20px rgba(212, 175, 55, 0.8),
      0 0 0 8px rgba(212, 175, 55, 0);
  }
}

@media (min-width: 768px) {
  .timeline__item.left .timeline__dot {
    left: auto;
    right: -7px;
  }

  .timeline__item.right .timeline__dot {
    left: -7px;
  }
}

.timeline__content {
  padding: clamp(25px, 4vw, 35px);
  border-radius: 12px; /* [MEJORA] Curvas premium consistentes */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.4s var(--ease-premium),
    background 0.4s,
    box-shadow 0.4s;
}

.timeline__content:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.timeline__time {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--accent-gold);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.timeline__title {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
}

.timeline__desc {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: rgba(244, 244, 244, 0.6);
  line-height: 1.6;
}

/* --- NUEVO: TARJETAS DE TURISMO Y HOSPEDAJE --- */
.tourism-card {
  overflow: hidden;
  border-radius: 12px; /* [MEJORA] Curvas premium */
  transition:
    transform 0.6s var(--ease-premium),
    box-shadow 0.6s;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column; /* [MEJORA] Flexbox para poder empujar el botón al fondo */
}

.tourism-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.tourism-card__img-wrapper {
  width: 100%;
  height: clamp(200px, 30vh, 250px); /* [MEJORA] Altura fluida */
  overflow: hidden;
}

.tourism-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-premium);
  filter: brightness(0.7) grayscale(20%);
}

.tourism-card:hover .tourism-card__img {
  transform: scale(1.1);
  filter: brightness(1) grayscale(0%);
}

.tourism-card__content {
  padding: clamp(25px, 5vw, 35px);
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Ocupa el espacio restante de la tarjeta */
}

.tourism-card__title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--text-light);
  margin-bottom: 15px;
}

.tourism-card__desc {
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  line-height: 1.8;
  color: rgba(244, 244, 244, 0.6);
  margin-bottom: 30px;
  flex-grow: 1; /* [MEJORA] Empuja el botón siempre hacia abajo */
}

.btn-full {
  width: 100%;
}

/* --- FORMULARIO PREMIUM --- */
/* --- FORMULARIO PREMIUM --- */
.rsvp__instruction {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: rgba(255, 255, 255, 0.9); /* Casi blanco puro para resaltar */
  margin-bottom: clamp(30px, 5vw, 50px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); /* Sombra más fuerte para compensar la transparencia del fondo */
}

.rsvp__form {
  padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 40px);
  border-radius: 12px;
  text-align: left;
  /* [AJUSTE] Más transparente (0.4) pero con blur mantenido para legibilidad */
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(
    25px
  ); /* Subimos un poco el blur para que el contraste sea elegante */
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.form-group {
  position: relative;
  margin-bottom: clamp(30px, 5vw, 40px);
}

/* Estilo de inputs transparentes con borde inferior */
.form-input {
  width: 100%;
  padding: 12px 10px 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4); /* Línea un poco más sólida */
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s var(--ease-premium);
  border-radius: 0;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
  color: transparent;
}

select.form-input {
  color: #ffffff;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23d4af37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 12px auto;
  padding-right: 30px;
}

select.form-input option {
  background: #1a1a1a;
  color: #ffffff;
}

.form-label {
  position: absolute;
  top: 12px;
  left: 0;
  font-size: 16px;
  color: rgba(
    255,
    255,
    255,
    0.85
  ); /* Label muy clara para que se lea bien sobre el fondo transparente */
  pointer-events: none;
  transition: all 0.3s var(--ease-premium);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -20px;
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: none;
}

.textarea {
  resize: none;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  margin-top: 10px;
  padding: clamp(15px, 3vw, 20px);
  border-radius: 100px; /* Consistencia con los botones tipo píldora */
}

/* --- ESTADOS DEL MODAL QR --- */
.qr-state {
  display: none;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease-premium);
}

.qr-state.active {
  display: flex;
  opacity: 1;
}

/* Spinner de carga elegante */
/* Spinner de carga elegante con efecto de pulso */
.spinner {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(212, 175, 55, 0.1);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.qr-title {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.qr-subtitle {
  font-size: 0.85rem;
  color: rgba(244, 244, 244, 0.6);
  margin-bottom: 30px;
}

.qr-code-wrapper {
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.qr-details {
  width: 100%;
  text-align: left;
  margin-bottom: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-details p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: rgba(244, 244, 244, 0.8);
}

.qr-details strong {
  color: var(--accent-gold);
  font-weight: normal;
}

.btn-close {
  width: 100%;
}

/* ============================================== */
/* BLOQUE 6: COMPONENTES REGALOS Y CIERRE         */
/* ============================================== */

/* --- TEXTOS Y TARJETAS DE REGALOS --- */
.gifts__text {
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  line-height: 1.8;
  color: rgba(244, 244, 244, 0.7);
}

.gift-card {
  padding: clamp(35px, 5vw, 50px) clamp(20px, 4vw, 30px);
  border-radius: 12px; /* [MEJORA] Curva premium */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--glass-bg); /* [MEJORA] Aseguramos el cristal */
  border: 1px solid var(--glass-border);
  transition:
    transform 0.5s var(--ease-premium),
    box-shadow 0.5s,
    background 0.5s;
}

.gift-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.gift-card__icon {
  width: clamp(35px, 5vw, 45px);
  height: clamp(35px, 5vw, 45px);
  color: var(--accent-gold);
  margin-bottom: 25px;
}

.gift-card__title {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--text-light);
  margin-bottom: 10px;
}

.gift-card__desc {
  font-size: clamp(0.8rem, 1.5vw, 0.85rem);
  color: rgba(244, 244, 244, 0.5);
  margin-bottom: 30px;
  flex-grow: 1; /* [MEJORA] Empuja el botón siempre hacia abajo */
}

.btn-gift {
  width: 100%;
}

/* --- ELEMENTOS DEL CIERRE --- */
.hashtag-box {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 15px 35px;
  border-radius: 100px;
  /* Forma de píldora */
  margin: 40px 0 60px;
  border: 1px solid var(--glass-border);
}

.instagram-icon {
  width: 24px;
  height: 24px;
  color: var(--text-light);
}

.hashtag__text {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 300;
}

.closing__thankyou {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  color: var(--accent-gold);
  margin-bottom: 30px;
  opacity: 0.9;
}

.closing__names {
  font-family: var(--font-title);
  font-size: 3rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 20px;
}

.closing__names .ampersand {
  font-size: 2.5rem;
  color: var(--accent-gold);
  font-style: italic;
}

/* --- FIRMA DEL DESARROLLADOR --- */
.developer-signature {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 244, 244, 0.3);
  width: 100%;
  text-align: center;
  z-index: 10;
}

/* ============================================== */
/* MODAL DE MAPA (COMPONENTES)                    */
/* ============================================== */

.map-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: rgba(
    10,
    10,
    10,
    0.4
  ); /* Fondo ligeramente más oscuro para la cabecera */
  border-bottom: 1px solid var(--glass-border);
}

.map-modal__title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--accent-gold);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.map-modal__close {
  background: transparent;
  border: none;
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-premium);
  background: rgba(255, 255, 255, 0.05);
}

.map-modal__close svg {
  width: 20px;
  height: 20px;
}

.map-modal__close:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  transform: rotate(
    90deg
  ); /* Un pequeño detalle de micro-interacción premium */
}

.map-modal__body {
  flex-grow: 1; /* Toma todo el espacio restante */
  width: 100%;
  position: relative;
  background: #000; /* Por si tarda en cargar el mapa, que no se vea blanco */
}

.map-container {
  width: 100%;
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(90%) hue-rotate(180deg) contrast(110%); /* Truco premium: oscurece el mapa de Google para que haga match con el diseño dark */
}

/* ============================================== */
/* LIGHTBOX 3D (COMPONENTES) - FÍSICA Y ESTADOS  */
/* ============================================== */

/* Botón de cerrar premium */
.lightbox-3d__close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.4s var(--ease-premium);
}

.lightbox-3d__close:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  transform: rotate(90deg) scale(1.1);
  border-color: var(--accent-gold);
}

/* LA "CARTA" (Cada foto dentro del escenario)
  Todas las cartas están apiladas en el centro por defecto, invisibles.
*/
.lightbox-3d__card {
  position: absolute;
  width: auto;
  max-width: 80%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  /* Esta transición hace que el movimiento entre estados sea como mantequilla */
  transition:
    transform 0.8s var(--ease-premium),
    opacity 0.8s var(--ease-premium),
    z-index 0s; /* El z-index no se anima para evitar parpadeos */

  /* Estado por defecto (Oculto al fondo) */
  opacity: 0;
  transform: translateX(0) scale(0.6) translateZ(-300px);
  z-index: 1;
  pointer-events: none; /* No se pueden tocar si están ocultas */
}

.lightbox-3d__card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Ligero oscurecimiento a todas por defecto */
  filter: brightness(0.5);
  transition: filter 0.8s var(--ease-premium);
}

/* --- ESTADO 1: LA FOTO PROTAGONISTA (CENTRO) --- */
.lightbox-3d__card.is-active {
  opacity: 1;
  /* Al centro, tamaño normal, y hasta adelante en Z */
  transform: translateX(0) scale(1) translateZ(0);
  z-index: 10;
  pointer-events: auto; /* Esta sí se puede tocar o arrastrar a futuro */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-3d__card.is-active img {
  filter: brightness(1); /* 100% de luz */
}

/* --- ESTADO 2: LA FOTO ANTERIOR (IZQUIERDA) --- */
.lightbox-3d__card.is-prev {
  opacity: 0.6;
  /* Desplazada a la izquierda, más pequeña, y un poco hacia atrás en Z */
  transform: translateX(-55%) scale(0.8) translateZ(-100px);
  z-index: 5;
  pointer-events: auto; /* Se puede dar clic para traerla al frente */
  cursor: pointer;
}

.lightbox-3d__card.is-prev:hover {
  opacity: 0.8;
}

/* --- ESTADO 3: LA FOTO SIGUIENTE (DERECHA) --- */
.lightbox-3d__card.is-next {
  opacity: 0.6;
  /* Desplazada a la derecha, más pequeña, y hacia atrás en Z */
  transform: translateX(55%) scale(0.8) translateZ(-100px);
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

.lightbox-3d__card.is-next:hover {
  opacity: 0.8;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .lightbox-3d__card.is-prev {
    transform: translateX(-40%) scale(0.7) translateZ(-100px);
  }
  .lightbox-3d__card.is-next {
    transform: translateX(40%) scale(0.7) translateZ(-100px);
  }
  .lightbox-3d__close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* Ajuste para logos de marcas en tarjetas de regalo */
.gift-card__brand-img {
  width: auto;
  height: clamp(35px, 5vw, 45px); /* Misma altura que tenían los iconos */
  max-width: 100%;
  object-fit: contain;
  /* [TIP PREMIUM] Si quieres que los logos se vean dorados como el resto de la web, 
     puedes usar este filtro (opcional): */
  /* filter: brightness(0) saturate(100%) invert(80%) sepia(20%) saturate(1000%) hue-rotate(1deg); */
  transition: transform 0.4s var(--ease-premium);
}

.gift-card:hover .gift-card__brand-img {
  transform: scale(1.1);
}

.gift-card__brand-img {
  opacity: 0.7;
  transition:
    opacity 0.4s,
    transform 0.4s;
}

.gift-card:hover .gift-card__brand-img {
  opacity: 1; /* Al pasar el mouse recuperan su color original */
  transform: scale(1.1);
}
