/* =========================
   SPLASH SCREEN
   ========================= */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Para móviles modernos */
    background: linear-gradient(135deg, #FFF0F5 0%, #E0F7FA 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.splash-content {
    text-align: center;
    animation: floatUp 1s ease-out forwards;
}

.splash-logo {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(232, 76, 154, 0.2);
    margin-bottom: 20px;
    animation: pulseLogo 5s infinite ease-in-out;
}

.splash-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--pink-main);
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInText 0.8s ease-out 0.5s forwards;
}

.splash-subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeInText 0.8s ease-out 0.8s forwards;
}

/* Animations */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(232, 76, 154, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(232, 76, 154, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(232, 76, 154, 0.2);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.splash-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

/* =========================
   LOGIN PRELOADER
   ========================= */
#login-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFF0F5 0%, #E0F7FA 100%);
    display: none;
    /* Oculto por defecto, se activa via JS */
    justify-content: center;
    align-items: center;
    z-index: 10001;
    /* Encima de todo */
    transition: opacity 1s ease-out;
}

/* Contenedor del logo */
.preloader-logo-container {
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Sin máscara, animación directa al logo */
}

.preloader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Sombra base suave */
    filter: drop-shadow(0 0 15px rgba(232, 76, 154, 0.3));
    animation: breathingGlow 3s ease-in-out infinite;
}

.loader-spinner {
    position: absolute;
    bottom: 12%;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(232, 76, 154, 0.1);
    border-top: 3px solid var(--pink-main);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.8;
}

/* 
   ANIMACIÓN BREATHING GLOW (Respiración Luminosa)
   Efecto de latido suave con resplandor
*/
@keyframes breathingGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(232, 76, 154, 0.3));
    }

    50% {
        transform: scale(1.08);
        /* Crece un 8% */
        filter: drop-shadow(0 0 30px rgba(232, 76, 154, 0.6));
        /* Resplandor intenso */
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(232, 76, 154, 0.3));
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}