.preloader-background {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.loader-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999; /* Z-index alto para que el loader esté por encima de los otros elementos */
}

.loader-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg); /* Rotación inicial de la imagen */
    width: 80px;
    height: 100px;
    -webkit-animation: pulse 1s ease-in-out infinite alternate;
    animation: pulse 1s ease-in-out infinite alternate;
}

.bars-container {
    top: 40px;
    left: 40px;
    height: 40px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bar {
    width: 5px;
    height: 100%;
    margin: 0 2px;
    border-radius: 25px;
    background-color: #ba0d0d;
    -webkit-animation: bar 2s infinite alternate;
    animation: bar 2s infinite alternate;
}

.bar:nth-child(2n) {
    background-color: #340e8f;
    -webkit-animation: bar1 2s infinite alternate;
    animation: bar1 2s infinite alternate;
}

.loader-title {
    display: inline-block;
    width: 200px;
    position: relative;
    top: 35px;
    left: 30px;
    text-align: center;
    font-size: 15px;
    z-index: 9999;
}

@-webkit-keyframes bar {
    0% {
        height: 0;
    }
    100% {
        height: 100%;
    }
}

@keyframes bar {
    0% {
        height: 0;
    }
    100% {
        height: 100%;
    }
}
@-webkit-keyframes bar1 {
    0% {
        height: 100;
    }
    100% {
        height: 0%;
    }
}
@keyframes bar1 {
    0% {
        height: 100;
    }
    100% {
        height: 0%;
    }
}
@-webkit-keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}