/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1F2A44; /* Fondo oscuro como la navbar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Por encima de todo */
    opacity: 1;
    transition: opacity 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none; /* Evita interacciones cuando está oculta */
}

.splash-logo {
    width: clamp(80px, 20vw, 120px); /* Tamaño adaptable */
    height: auto;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    animation: pulse 1.5s infinite ease-in-out; /* Animación de pulso */
}

.splash-spinner {
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    border: 4px solid #F0F4F8; /* Borde claro */
    border-top: 4px solid #FFB400; /* Borde superior amarillo */
    border-radius: 50%;
    animation: spin 1s linear infinite; /* Rotación continua */
    margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
}

.splash-text {
    color: #F0F4F8;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Animaciones */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Media Queries */
@media (max-width: 360px) {
    .splash-logo {
        width: clamp(60px, 18vw, 80px);
    }
    .splash-spinner {
        width: clamp(25px, 7vw, 30px);
        height: clamp(25px, 7vw, 30px);
    }
    .splash-text {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }
}