/* =========================================
   ███   SPLASH SCREEN GENERAL
   ========================================= */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-fondo-img);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease, transform 1s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.1);
}

/* =========================================
   ███   FONDO DECORATIVO (CORAZONES)
   ========================================= */
.splash-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.floating-hearts {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-hearts .fas {
  position: absolute;
  color: rgba(212, 175, 55, 0.2);
  font-size: 1.5rem;
  animation: float 6s ease-in-out infinite;
}

.floating-hearts .fas:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.floating-hearts .fas:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 1s;
  font-size: 1.2rem;
}
.floating-hearts .fas:nth-child(3) {
  top: 80%;
  left: 20%;
  animation-delay: 2s;
  font-size: 1rem;
}
.floating-hearts .fas:nth-child(4) {
  top: 30%;
  left: 85%;
  animation-delay: 3s;
  font-size: 1.3rem;
}
.floating-hearts .fas:nth-child(5) {
  top: 70%;
  left: 5%;
  animation-delay: 4s;
  font-size: 1.1rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.6;
  }
}

/* =========================================
   ███   LAYOUT 2 COLUMNAS
   ========================================= */
.splash-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 1300px;
  z-index: 10;
  position: relative;
}

/* -------- IZQUIERDA -------- */
.splash-left {
  width: 50%;
  padding-right: 40px;
}

.splash-left .couple-names,
.splash-left .decorative-element,
.splash-left .wedding-date,
.splash-left .enter-button {
  text-align: left;
}

/* -------- DERECHA -------- */
.splash-right {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash-illustration {
  height: 100vh;
  width: auto;
  object-fit: cover;
  object-position: center;
}

/* =========================================
   ███   NOMBRES Y TEXTO
   ========================================= */
.couple-names {
  margin-bottom: var(--space-lg);
}

.bride-name,
.groom-name {
  font-family: "Amsterdam One", sans-serif;
  font-size: 4rem;
  color: var(--color-verde-oliva-claro);
  margin: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.ampersand {
  font-family: "Amsterdam One", sans-serif;
  font-size: 3rem;
  color: var(--color-verde-oliva-claro);
  margin: 4rem 0;
  opacity: 0.8;
}

.splash-screen .wedding-date {
  font-family: "Nefeli Script", sans-serif;
  font-size: 1.3rem;
  color: var(--color-verde-oliva);
  margin-bottom: var(--space-lg);
  font-weight: 500;
  letter-spacing: 1px;
}

/* =========================================
   ███   ELEMENTO DECORATIVO
   ========================================= */
.decorative-element {
  margin: var(--space-md) 0;
}

.decorative-element .fas {
  font-size: 2rem;
  color: var(--color-secondary);
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* =========================================
   ███   BOTÓN INGRESAR
   ========================================= */
.enter-button {
  background: linear-gradient(
    135deg,
    var(--color-verde-oliva-claro),
    var(--color-verde-oliva)
  );
  color: var(--color-fondo-img);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  font-family: "Nefeli Script", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.enter-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--color-verde-oliva-claro);
}

.enter-button:hover .fas {
  transform: translateX(3px);
}

/* =========================================
   ███   CONTROL DE MÚSICA
   ========================================= */
.music-control {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.music-toggle {
  background: var(--color-fondo-img);
  border: 2px solid var(--color-verde-oliva-claro);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.music-toggle:hover {
  background: var(--color-verde-oliva-claro);
  transform: scale(1.1);
  color: var(--color-white);
}

.music-toggle .fas {
  font-size: 1.2rem;
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.music-toggle:hover .fas {
  color: var(--color-white);
}

/* =========================================
   ███   RESPONSIVE
   ========================================= */

/* ===== MOBILE: Imagen de fondo + texto abajo ===== */

@media (max-width: 900px) {
  /* Fondo completo */
  .splash-screen {
    background-image: url("../assets/img/fondo_inicio.webp");
    background-color: var(--color-fondo-img);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end; /* Mantener el texto abajo */
    justify-content: center;
    padding-bottom: 40px;
  }

  /* Ocultamos la ilustración lateral */
  .splash-right {
    display: none;
  }

  /* Texto ocupa toda la pantalla y centrado */
  .splash-left {
    width: 100%;
    text-align: center;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* centro horizontal */
  }

  .splash-left-content {
    background: none !important; /* sin overlay ni blur */
    padding: 0;
    max-width: 400px; /* opcional: limitar ancho del texto */
    text-align: center;
  }

  .splash-left .couple-names,
  .splash-left .decorative-element,
  .splash-left .wedding-date,
  .splash-left .enter-button {
    text-align: center;
  }

  /* Contorno + sombra para legibilidad */
  .bride-name,
  .groom-name,
  .ampersand,
  .wedding-date {
    color: #ffffff !important;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.55);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  }

  /* Botón visible */
  .enter-button {
    background: rgba(255, 255, 255, 0.92);
    color: #3f4a3a;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  }

  .enter-button .fas {
    color: #3f4a3a !important;
  }

  /* Ocultamos corazones */
  .floating-hearts {
    display: none;
  }
  .decorative-element .fas {
    display: none;
  }

  /* Forzar nombres en una sola línea */
  .couple-names {
    display: flex;
    flex-direction: row; /* horizontal */
    justify-content: center; /* centrar horizontalmente */
    align-items: center; /* centrar verticalmente */
    gap: 0.5rem; /* espacio entre nombres y "&" */
    flex-wrap: nowrap; /* que no se rompa en varias líneas */
  }

  /* Ajuste individual de los elementos */
  .couple-names .bride-name,
  .couple-names .ampersand,
  .couple-names .groom-name {
    margin: 0; /* quitar márgenes verticales */
  }

  /* Reducir tamaño de fuente si hace falta */
  .bride-name,
  .groom-name {
    font-size: 3rem; /* ajuste para caber en mobile */
  }

  .ampersand {
    font-size: 2rem;
  }
}

@media (max-width: 550px) {
  .splash-screen {
    padding-bottom: 120px;
  }
}

body.site-entered .splash-screen {
  opacity: 0;
  pointer-events: none;
}
