/* =========================================
   🎨 VARIABLES DE DISEÑO (COLORES Y FUENTES)
   Modificá los códigos HEX (ej: #9c7b7b) de abajo 
   para cambiar los colores de toda la invitación.
   ========================================= */
:root {
  /* -- COLOR PRINCIPAL --
     Se usa en fondos de secciones alternas, botones y elementos destacados */
  --clr-mauve: #544a4a;    /* -- COLOR PRINCIPAL #9c7b7b--

  /* -- COLOR PRINCIPAL CLARO --
     Se usa para textos sutiles (ej: mensaje en la pantalla de entrada) */
  --clr-mauve-light: #544a4a;  /* -- COLOR PRINCIPAL CLARO #b59a9a--

  /* -- COLOR DE ACENTO --
     Se usa para el nombre de la quinceañera, separadores, íconos (si aplican) y hover de botones */
  --clr-gold: #524f4f; /* -- COLOR DE ACENTO #c2a990--

  /* -- COLOR DE LA PANTALLA DE INGRESO --
     Es el fondo de la primer pantalla que ve el invitado (la que tiene animación de latido) */
  --clr-cream: #f0ebe7;

  /* -- COLOR DE TEXTO OSCURO --
     Se usa para los textos sobre fondos claros y bordes de botones secundarios */
  --clr-dark: #2e2e2e;

  /* -- COLOR DE FONDOS CLAROS Y TEXTO BLANCO --
     Se usa en las secciones claras y en los textos que van sobre fondos oscuros */
  --clr-white: #ffffff;

  /* -- FILTRO OSCURO PARA IMÁGENES DE FONDO --
     (0 = transparente, 1 = negro total). Lo subí a 0.6 para mejorar el contraste. */
  --clr-overlay: rgba(0, 0, 0, 0.6);

  /* -- SOMBREADO DE TEXTO --
     Hace que los textos claros resalten perfectamente sobre las imágenes o fotos de fondo. */
  --text-shadow-strong: 2px 4px 12px rgba(0, 0, 0, 0.85);

  /* -- TIPOGRAFÍAS -- */
  --ff-display: 'Cormorant Garamond', serif;
  /* Tipografía elegante para títulos y nombres */
  --ff-body: 'Montserrat', sans-serif;
  /* Tipografía moderna para cuerpos de texto, botones y cuenta regresiva */

  /* Animaciones (no hace falta modificar) */
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  color: var(--clr-dark);
  background: var(--clr-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ========== ENTRY SCREEN ========== */
.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Agregamos la imagen y el efecto pálido */
  background: linear-gradient(rgba(240, 235, 231, 0.85), rgba(240, 235, 231, 0.85)), 
              url('assets/fondo.jpg');
  background-size: cover;
  background-position: center;
  animation: entryPulse 4s ease-in-out infinite alternate;
}

@keyframes entryPulse {
  0% {
    filter: brightness(1);
  }
  100% {
    filter: brightness(0.95);
  }
}

.entry-content {
  text-align: center;
  padding: 2rem;
}

.entry-sub {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--clr-mauve);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.3)
}

.entry-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 300;
  color: var(--clr-mauve);
  letter-spacing: 6px;
  line-height: 1;
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.3)
}

.entry-name {
  font-family: var(--ff-display);
  font-size: clamp(4.5rem, 10vw, 7.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--clr-gold);
  margin-top: -0.25rem;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.3)
}

.entry-message {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--clr-mauve-light);
  margin: 1.5rem auto;
  max-width: 360px;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

.btn-enter {
  display: inline-block;
  padding: 12px 40px;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-white);
  background: var(--clr-mauve);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  animation: fadeUp 1s 1.5s forwards;
}

.btn-enter:hover {
  background: var(--clr-gold);
  transform: scale(1.05);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/hero-bg.png') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--clr-overlay);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  color: var(--clr-white);
  text-shadow: var(--text-shadow-strong);
}

.hero-img-title {
  max-width: clamp(250px, 80vw, 600px);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(var(--text-shadow-strong));
}

/* ========== COUNTDOWN ========== */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 2rem;
}

.cd-box {
  text-align: center;
  min-width: 50px;
}

.cd-num {
  display: block;
  font-family: var(--ff-body);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 2px;
}

.cd-label {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}

.cd-sep {
  font-family: var(--ff-body);
  font-size: 1.8rem;
  font-weight: 300;
  opacity: 0.6;
  padding-bottom: 16px;
}

/* ========== INFO SECTIONS ========== */
.info-section {
  padding: 60px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-mauve {
  background: var(--clr-mauve);
  color: var(--clr-white);
}

.bg-white {
  background: var(--clr-white);
  color: var(--clr-dark);
}

.info-card,
.info-wrap {
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.info-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  fill: var(--clr-gold);
}

.info-icon.gold {
  fill: var(--clr-gold);
}

.bg-white .info-icon {
  fill: var(--clr-mauve);
}

.info-icon-gif {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  object-fit: contain;
}

/* Oscurecer el ícono del sobre blanco (RSVP) para que contraste sobre fondo blanco */
img[src*="sobre-blanco"] {
  filter: brightness(0) opacity(0.7);
}

.info-title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.info-sep {
  width: 60px;
  height: 1px;
  margin: 12px auto;
  background: var(--clr-gold);
}

.bg-white .info-sep {
  background: var(--clr-mauve);
}

.info-desc {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.8;
}

.info-time {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 3px;
  margin-top: 12px;
}

/* ========== RSVP BUTTON ========== */
.btn-rsvp {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 36px;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid var(--clr-dark);
  color: var(--clr-dark);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}

.btn-rsvp:hover {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 169, 144, 0.4);
}

/* ========== DIVIDER SECTION ========== */
.divider-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/divider-bg.png') center/cover no-repeat;
  overflow: hidden;
}

.divider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.divider-text {
  position: relative;
  z-index: 2;
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--clr-white);
  letter-spacing: 4px;
  text-shadow: var(--text-shadow-strong);
}

/* ========== MAP ========== */
.map-container {
  width: 100%;
  margin-top: 16px;
  border-radius: 4px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* ========== FOOTER ========== */
.footer-section {
  position: relative;
  padding: 80px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Cambiamos 'center' por 'top' para alinear la imagen a la parte superior */
  background: url('assets/footer-bg.png') top / cover no-repeat;
  overflow: hidden;
}

.footer-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--clr-white);
  text-shadow: var(--text-shadow-strong);
}

.footer-img-title {
  max-width: clamp(140px, 40vw, 250px);
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(var(--text-shadow-strong));
}

.footer-name {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--clr-gold);
}

.footer-date {
  font-family: var(--ff-body);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 6px;
  margin-top: 8px;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  fill: var(--clr-white);
  transition: var(--transition);
}

.social-links a:hover {
  fill: var(--clr-gold);
  transform: scale(1.15);
}

.social-links svg {
  fill: inherit;
}

/* ========== AUDIO TOGGLE ========== */
.audio-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(156, 123, 123, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  fill: var(--clr-white);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.audio-toggle:hover {
  background: var(--clr-gold);
  transform: scale(1.1);
}

.audio-toggle svg {
  fill: inherit;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .info-section {
    padding: 48px 20px;
  }

  .map-container iframe {
    height: 250px;
  }

  .cd-box {
    min-width: 40px;
  }
}

/* ========== GALLERY MARQUEE ========== */
.gallery-section {
  padding: 80px 0;
  background: var(--clr-white);
  overflow: hidden;
  text-align: center;
}

.gallery-title {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  color: var(--clr-mauve);
  letter-spacing: 4px;
}

.marquee {
  width: 100%;
  margin-top: 40px;
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right,
      hsl(0 0% 0% / 0),
      hsl(0 0% 0% / 1) 10%,
      hsl(0 0% 0% / 1) 90%,
      hsl(0 0% 0% / 0));
}

.marquee-content {
  display: flex;
  gap: 20px;
  padding: 0 10px;
  animation: scrollMarquee 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  width: 250px;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.marquee-item:hover {
  transform: scale(1.03);
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scrollMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 10px));
  }
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.4s ease;
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ========== CANCIONES ========== */
.canciones-section {
  position: relative;
  padding: 80px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Cambiamos 'center' por 'top' para alinear la imagen a la parte superior */
  background: url('assets/canciones-bg.png') top / cover no-repeat;
  overflow: hidden;
}