/* Loader animación de entrada */
.loader-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #1A2B4C;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s cubic-bezier(.77,0,.18,1);
}
.loader-logo {
    display: none;
/* Barra de animación neon */
.loader-neon-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 0;
    background: linear-gradient(90deg, #8B5CF6 0%, #4F46E5 50%, #00F0FF 100%);
    box-shadow: 0 0 40px 20px #4F46E5, 0 0 80px 40px #8B5CF6;
    filter: blur(2px);
    z-index: 10000;
    animation: neonBarFill 1.8s cubic-bezier(.77,0,.18,1) forwards;
}

@keyframes neonBarFill {
    0% {
        width: 0;
        opacity: 1;
    }
    80% {
        width: 100vw;
        opacity: 1;
    }
    100% {
        width: 100vw;
        opacity: 0.85;
    }
}
}
@keyframes spinLogo {
    0% { transform: scale(1) rotate(0deg); }
    60% { transform: scale(1.08) rotate(360deg); }
    100% { transform: scale(1) rotate(360deg); }
}
.loader-bg.hide {
    opacity: 0;
    pointer-events: none;
    transition-duration: 2.5s;
}
