/* Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0f0f0f, #000000);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* LOGO CENTRAL */
.loader-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: url('../img/logo.png') no-repeat center center;
    background-size: contain;
    z-index: 10001;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
    animation: pulseLogo 2s ease-in-out infinite;
}

@keyframes pulseLogo {
    0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

/* ANILLOS GIRATORIOS */
.loader {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    perspective: 800px;
}

/* Anillo Exterior */
.loader {
    border: 3px solid transparent;
    border-top-color: #3b82f6; /* Blue */
    border-bottom-color: #3b82f6;
    animation: spin 2s linear infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Anillo Medio */
.loader::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-left-color: #2563eb; /* Darker Blue */
    border-right-color: #2563eb;
    animation: spin 1.5s linear infinite reverse;
}

/* Anillo Interior */
.loader::after {
    content: "";
    position: absolute;
    top: 26px;
    left: 26px;
    right: 26px;
    bottom: 26px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #60a5fa; /* Light Blue */
    animation: spin 3s linear infinite;
}

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

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}
