/*
 * Pantalla de carga (Splash Screen)
 */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.splash-logo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.splash-logo {
  width: 150px;
  height: auto;
  margin-bottom: 2rem;
  animation: pulse-glow 2s infinite ease-in-out;
  border-radius: 50%; /* Opcional, si el logo es circular */
}

.splash-title {
  font-size: 1.5rem;
  color: var(--neon-cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: var(--glow-cyan);
  margin-bottom: 1rem;
}

.splash-progress-container {
  width: 280px;
  margin-top: 2rem;
}

.splash-progress-bar {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.splash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  border-radius: 2px;
  box-shadow: var(--glow-cyan);
  width: 0%; /* Se actualizará vía JS */
  transition: width 0.3s ease;
}

.splash-percentage {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 600;
}

.splash-status {
  color: rgba(200, 210, 230, 0.7);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  text-align: center;
}

/* Animación de latido y resplandor */
@keyframes pulse-glow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.9)) drop-shadow(0 0 40px rgba(180, 0, 255, 0.4));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
  }
}

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .splash-logo {
    animation: none;
  }
}

/* Clase para desvanecer y remover la pantalla */
.splash-fade-out {
  opacity: 0;
  pointer-events: none;
}
