﻿/* host-loader.css - Industrial Edition (Valan) */

#global-loader.luxury-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Fondo Carbon Deep con gradiente sutil */
    background: radial-gradient(circle at center, #1a222e 0%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#global-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: scale(1.1); /* Ligeramente más grande para impacto */
}

/* --- EL REACTOR (Antes Reloj Solar) --- */
.sun-clock {
    width: 120px;
    height: 120px;
    position: relative;
    margin-bottom: 2rem;
}

.orbit-ring {
    position: absolute;
    inset: 0;
    /* Azul Eléctrico */
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid #00A3E0; /* --palette-primary hardcoded para CSS estático */
    border-bottom: 2px solid #00A3E0;
    border-radius: 50%;
    animation: spin 2s linear infinite; /* Más rápido */
    box-shadow: 0 0 20px rgba(0, 163, 224, 0.2);
}

    .orbit-ring.inner {
        inset: 15px;
        border: 2px dashed rgba(255, 255, 255, 0.1); /* Dashed técnico */
        border-bottom: none;
        border-left: 2px solid #fff;
        animation: spin-reverse 3s linear infinite;
    }

.sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    /* Glow Azul Intenso */
    box-shadow: 0 0 25px 5px #00A3E0;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.light-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    /* Ondas azules */
    background: radial-gradient(circle, rgba(0, 163, 224, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: breathe 3s ease-in-out infinite;
    border: 1px solid rgba(0, 163, 224, 0.05);
}

/* --- TIPOGRAFÍA INDUSTRIAL --- */
.loading-title {
    font-family: 'Montserrat', sans-serif; /* Adiós Cursiva */
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800; /* Extra Bold */
    text-transform: uppercase;
    letter-spacing: 0.2em; /* Tracking amplio */
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards 0.2s;
}

.loading-message {
    font-family: 'Montserrat', sans-serif; /* Consola técnica */
    color: #B0B0B0; /* Gray Light */
    font-size: 0.85rem;
    margin-top: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards 0.5s;
}

/* Keyframes Loader */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
        box-shadow: 0 0 20px 2px #00A3E0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
        box-shadow: 0 0 40px 10px #00A3E0;
    }
}

@keyframes breathe {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
