/* Loader personalizado con logo */
.loader-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
}
.loader-logo {
    width: 180px;
    height: auto;
    margin-bottom: 32px;
    filter: drop-shadow(0 8px 32px rgba(58,74,124,0.18));
    z-index: 2;
}
.loader-glow {
    width: 160px;
    height: 40px;
    background: radial-gradient(ellipse at center, #3a4a7c 0%, rgba(58,74,124,0.18) 80%, transparent 100%);
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, 0);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.7;
    animation: glowPulse 1.6s ease-in-out infinite alternate;
    z-index: 1;
}
.loader-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    gap: 10px;
    z-index: 3;
}
.loader-dot {
    width: 12px;
    height: 12px;
    background: #3a4a7c;
    border-radius: 50%;
    opacity: 0.7;
    animation: dotBounce 1.2s infinite;
}
.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #3a4a7c;
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes glowPulse {
    0% { opacity: 0.7; filter: blur(8px); }
    100% { opacity: 1; filter: blur(16px); }
}
@keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.7; }
    40% { transform: translateY(-16px); opacity: 1; }
}
