/* Loader container */
#loaderPagina.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#loaderPagina.loader-container.show {
    display: flex !important;
}

#loaderPagina.loader-container.hidden {
    opacity: 0;
}

/* Loader content */
.loader-content {
    text-align: center;
    color: white;
}

/* Loader rings */
.loader-rings {
    position: relative;
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
}

.ring {
    position: absolute;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.ring-1 {
    inset: 0;
    border-top-color: #3b82f6;
    border-right-color: #9333ea;
    animation-duration: 2s;
}

.ring-2 {
    inset: 0.5rem;
    border-top-color: #9333ea;
    border-right-color: #ec4899;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.ring-3 {
    inset: 1rem;
    border-top-color: #ec4899;
    border-right-color: #3b82f6;
    animation-duration: 1s;
}

.loader-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-pulse {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(45deg, #3b82f6, #9333ea);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Loading text */
.loading h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: 1px;
}

.loading p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

/* Loading dots */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #3b82f6;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
    background: #9333ea;
}

.dot:nth-child(3) {
    background: #ec4899;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .loader-rings {
        width: 6rem;
        height: 6rem;
    }
    
    .loading h1 {
        font-size: 1.25rem;
    }
    
    .loading p {
        font-size: 0.875rem;
    }
}