/**
 * LUGAV - Preloader Critical CSS
 * Estilos críticos que deben cargarse inmediatamente para evitar FOUC
 */

/* Hide content until components are loaded */
body { 
    visibility: hidden; 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.components-loaded { 
    visibility: visible; 
    opacity: 1; 
}

/* Initial preloader styles */
#initial-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f2f4f8;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.initial-loader {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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