/* ===================================================
   PRELOADER MINIMALISTA - SVG ANIMADO
   Fondo: #f2f2f2 | SVG Welcome animado
   =================================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Logo Container */
#preloader-logo-container {
    position: relative;
    width: 180px;
    height: 80px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader-logo-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    animation: logo-bounce 2.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes logo-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* SVG Container */
#preloader-svg-container {
    width: 350px;
    height: 150px;
    margin-bottom: 30px;
    animation: float-in 0.8s ease-out;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Barra de progreso */
.progress-bar-container {
    width: 240px;
    height: 5px;
    background: rgba(227, 6, 19, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E30613 0%, #FF4444 100%);
    width: 0%;
    animation: progress 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    border-radius: 10px;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    50% {
        width: 75%;
    }
    100% {
        width: 100%;
    }
}

/* Porcentaje de carga */
.preloader-percentage {
    color: #E30613;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    min-width: 40px;
    text-align: center;
}

/* Texto de carga */
.preloader-text {
    color: #111111;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: pulse-text 1.8s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 768px) {
    #preloader-svg-container {
        width: 280px;
        height: 120px;
    }

    .progress-bar-container {
        width: 200px;
    }

    .preloader-text {
        font-size: 12px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    #preloader-svg-container {
        width: 220px;
        height: 100px;
    }

    .progress-bar-container {
        width: 180px;
    }

    .preloader-text {
        font-size: 11px;
        letter-spacing: 1px;
    }
}
