/* === LOADING SCREEN === */
.loading-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #611232 40%, #3b0c1f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    overflow: hidden;
}

/* Ondas de energía */
.energy-wave {
    position: absolute;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, rgba(174, 132, 31, 0.2), transparent);
    animation: rotateWave 8s linear infinite;
    z-index: 1;
}

@keyframes rotateWave {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Equipos flotantes (inspirado en el logo) */
.loader-icons {
    position: relative;
    width: 250px;
    height: 180px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.loader-icons i {
    color: #ae841f;
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(174, 132, 31, 0.6);
    opacity: 0.9;
    animation: floatEquipos 2.5s infinite ease-in-out;
}

.loader-icons i:nth-child(2) {
    animation-delay: 0.3s;
}

.loader-icons i:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes floatEquipos {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

/* Engranajes animados */
.gears {
    position: absolute;
    bottom: 80px;
    display: flex;
    gap: 20px;
    z-index: 2;
}

.gears i {
    color: #ae841f;
    font-size: 2rem;
    opacity: 0.9;
    animation: spinGear 3s linear infinite;
}

.gears i:nth-child(2) {
    font-size: 2.5rem;
    animation-duration: 5s;
    color: #fff;
    opacity: 0.8;
}

@keyframes spinGear {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Barra de progreso */
.progress-container {
    width: 260px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 30px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(174, 132, 31, 0.4);
    z-index: 2;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ae841f, #c99b30);
    box-shadow: 0 0 25px #ae841f;
    border-radius: 4px;
    transition: width 0.1s linear;
}

.loading-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 15px;
    letter-spacing: 1.5px;
    z-index: 2;
    text-shadow: 0 0 8px rgba(174, 132, 31, 0.6);
}

.fade-out {
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}