/*
 * Archivo: loading.css
 * Autor: Joel Chala
 * Versión: 1.0
 * Descripción: Pantalla de carga full-screen con logo y spinner.
 * Ruta: pagotrack/assets/css/loading.css
 */

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg, #0a0f1e);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.4s ease;
    opacity: 1;
}

.loading-screen.oculto {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #00d4a8, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #0a0f1e;
    letter-spacing: 0.5px;
    animation: pulso 1.6s ease-in-out infinite;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0,212,168,0.15);
    border-top-color: #00d4a8;
    border-radius: 50%;
    animation: girar 0.8s linear infinite;
}

.loading-text {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes girar {
    to { transform: rotate(360deg); }
}

@keyframes pulso {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(0,212,168,0.5); }
    50%      { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(0,212,168,0);   }
}
