/* ==========================================
   PRELOADER CATS - MINIMALISTA PROFESIONAL
   ========================================== */

/* Bloqueo de scroll */
body.loading {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Preloader Container */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Container Principal */
.preloader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo Limpio */
.loader-logo {
    margin-bottom: 3rem;
}

.logo {
    width: 80px;
    height: auto;
    opacity: 0;
    animation: logoFadeIn 0.8s ease 0.3s forwards;
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
    }
}

/* Progress Circle Minimalista */
.progress-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: progressFadeIn 0.6s ease 0.8s forwards;
}

@keyframes progressFadeIn {
    to {
        opacity: 1;
    }
}

.progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}

.progress-bar {
    fill: none;
    stroke: #00d4ff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 283; /* 2 * π * 45 */
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.3s ease;
}

/* Texto de Progreso */
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #00d4ff;
    letter-spacing: 1px;
}

/* Estado de Carga */
.loading-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    opacity: 0;
    animation: statusFadeIn 0.6s ease 1.2s forwards;
}

@keyframes statusFadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        width: 70px;
    }
    
    .progress-container {
        width: 80px;
        height: 80px;
    }
    
    .progress-text {
        font-size: 1rem;
    }
    
    .loading-status {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .preloader-container {
        padding: 0 1rem;
    }
    
    .logo {
        width: 60px;
    }
    
    .progress-container {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }
    
    .loading-status {
        font-size: 0.7rem;
    }
}
