/* global-preloader.css */
#global-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b0704; /* Color oscuro profundo estilo CAMLB */
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#global-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 180px;
    height: auto;
    margin-bottom: 40px;
    animation: pulse-logo 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 238, 0, 0.15); /* Amarillo institucional transparente */
    border-radius: 50%;
    border-top-color: #ffee00; /* Amarillo brillante */
    animation: spin 1s linear infinite;
}

.preloader-text {
    margin-top: 25px;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fade-text 2s ease-in-out infinite alternate;
}

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

@keyframes pulse-logo {
    0% { transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(255, 238, 0, 0)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(255, 238, 0, 0.3)); }
}

@keyframes fade-text {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}
