/* ========================================
   PRELOADER - Estilos
   ======================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #091E42 0%, #172B4D 50%, #253858 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: orbit-spin 3s linear infinite;
}

.orbit-ring:nth-child(1) {
    width: 120px;
    height: 120px;
    border-top-color: #0052CC;
}

.orbit-ring:nth-child(2) {
    width: 90px;
    height: 90px;
    border-right-color: #FF6B35;
    animation-direction: reverse;
    animation-duration: 2s;
}

.orbit-ring:nth-child(3) {
    width: 60px;
    height: 60px;
    border-bottom-color: #2684FF;
    animation-duration: 1.5s;
}

@keyframes orbit-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.preloader-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #FFFFFF;
}

.preloader-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.preloader-subtitle {
    font-size: 1rem;
    color: #97A0AF;
    margin-bottom: 2rem;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #0052CC 0%, #2684FF 100%);
    border-radius: 9999px;
    animation: progress-fill 2.5s ease-out forwards;
}

@keyframes progress-fill {
    0% { width: 0%; }
    100% { width: 100%; }
}
