/* PRELOADER ESTILO FUTURISTA */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease-out, visibility 0.6s;
    overflow: hidden;
}

.loader-container {
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.neon-text {
    font-size: 3.5rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow:
        0 0 10px #00ff88,
        0 0 20px #00ff88,
        0 0 40px #00ff88,
        0 0 80px #00ff88;
    animation: neonPulse 1.5s infinite alternate;
}

.subtitle {
    color: #aaa;
    font-size: 1.1rem;
    margin-top: 10px;
    letter-spacing: 2px;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px auto;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff88, #00d1ff);
    border-radius: 2px;
    box-shadow: 0 0 15px #00ff88;
    animation: progressAnim 2s ease-in-out infinite;
}

.particles {
    margin: 20px 0;
}

.particles span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 5px;
    background: #00ff88;
    border-radius: 50%;
    animation: float 1.5s infinite ease-in-out;
    box-shadow: 0 0 10px #00ff88;
}

.particles span:nth-child(1) {
    animation-delay: 0s;
}

.particles span:nth-child(2) {
    animation-delay: 0.2s;
}

.particles span:nth-child(3) {
    animation-delay: 0.4s;
}

.particles span:nth-child(4) {
    animation-delay: 0.6s;
}

.particles span:nth-child(5) {
    animation-delay: 0.8s;
}

/* ANIMACIONES */
@keyframes neonPulse {
    from {
        text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    }

    to {
        text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88, 0 0 80px #00ff88;
    }
}

@keyframes progressAnim {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* OCULTAR PRELOADER */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}