/* === Splash Screen === */
#splash-screen {
  position: fixed;
  inset: 0;
  background-color: rgb(36 79 194);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

/* Logo */
.splash-logo {
  width: 120px;
  height: auto;
  opacity: 0;
  animation: splash-fade-in 1.2s ease forwards;
}

/* (opcional) Título si lo usas más adelante */
.splash-title {
  color: white;
  font-size: 2rem;
  letter-spacing: 4px;
  margin-top: 15px;
  opacity: 0;
  animation: splash-fade-in 1.5s ease forwards;
  animation-delay: 0.4s;
}

#splash-screen {
  opacity: 1;
}

/* Fade in */
@keyframes splash-fade-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Se aplica SOLO cuando JS añade la clase */
.splash-hidden {
  animation: splash-fade-out 0.8s ease forwards;
}

/* Fade out */
@keyframes splash-fade-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
