/* ACTUALIZACIÓN PARA loader.css */
.loader-container {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    background: oklch(var(--card));
    border: 1px solid oklch(var(--border));
    border-radius: calc(var(--radius) + 8px);
    box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.1),
            0 0 0 1px oklch(var(--primary) / 0.05);
    padding: 40px 32px;
    text-align: center;
    min-width: 280px;
    max-width: 320px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid oklch(var(--border));
    border-top: 4px solid oklch(var(--primary));
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-title {
    font-size: 18px;
    font-weight: 600;
    color: oklch(var(--foreground));
    margin-bottom: 8px;
}

.loader-subtitle {
    font-size: 14px;
    color: oklch(var(--muted-foreground));
    line-height: 1.4;
}

.dots {
    display: inline-flex;
    gap: 2px;
    margin-left: 2px;
}

.dot {
    width: 4px;
    height: 4px;
    background: oklch(var(--primary));
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}