/* ============================================
   PRELOADER CSS
   ============================================ */

   .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.preloader__content {
    text-align: center;
}

/* Logo container con máscara */
.preloader__logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
}

.preloader__logo {
    width: 250px;
    height: auto;
    display: block;
}

/* Máscara que se desliza de izquierda a derecha */
.preloader__logo-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    transform-origin: left;
    animation: unmaskLogo 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes unmaskLogo {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

/* Barra de progreso */
.preloader__bar-container {
    width: 250px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader__bar {
    width: 0%;
    height: 100%;
    background-color: #333333;
    border-radius: 2px;
    animation: loadBar 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadBar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Responsive mobile */
@media (max-width: 767px) {
    .preloader__logo {
        width: 180px;
    }
    
    .preloader__bar-container {
        width: 180px;
    }
    
    .preloader__logo-container {
        margin-bottom: 30px;
    }
}