﻿:root {
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --accent-blue: #2563eb;
    --steel-dark: #1e293b;
}

.loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    position: fixed; /* Asegura que cubra toda la pantalla */
    top: 0;
    left: 0;
    background: var(--bg-gradient);
    z-index: 9999;
}

.main-loader {
    width: 380px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #cbd5e1;
    border-radius: 8px; /* Bordes más técnicos y menos redondeados */
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.loader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.system-id {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--steel-dark);
}

.percentage-value {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-blue);
}

/* Barra de progreso DETERMINADA */
.progress-bar-container {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%; /* Empieza en 0 */
    background: #3498db; /* O tu color corporativo */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.loading-progress-text {
    margin-top: 15px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    text-align: center;
}

/* Animación de "Finalización" */
.progress-fill:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( 90deg, transparent, rgba(255,255,255,0.4), transparent );
    animation: shine 1.5s infinite;
}



@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}



