@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


      


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;    
    
}



.scroll {
    position: relative;
    display: flex;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent)
}

.scroll div {
    white-space: nowrap;
    animation: scroll var(--time) linear infinite;
    animation-delay: calc(var(--time)*-1);

}

.scroll div:nth-child(2) {
    animation: scroll2 var(--time) linear infinite;
    animation-delay: calc(var(--time)/-2);
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes scroll2 {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-200%);
    }
}

.scrolltext div:nth-child(2) {
    animation: scroll2 var(--time) linear infinite;
    animation-delay: calc(var(--time)/-2);
}
@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes scroll2 {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-200%);
    }

}

.scroll div span {
    display: inline-flex;
    margin: 10px;  
    transition: 0.5s;
    color: #000;
    border-radius: 10px;
    border: 1px solid grey;
}

.scroll div span .testimonio{
    position: absolute;
}



.imgBox div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
}

.imgBox img {
    max-width: 140px;
    scale: 0.8;
}



.testimonials-container {
    font-family: "Montserrat", sans-serif;
    overflow: hidden;
    width: 100%;
    /* background-color: #f9f9f9; */
    padding: 20px 0;
    box-sizing: border-box;
}

.testimonials-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    animation: scroll458 infinite linear;
}

.testimonial {
    min-width: 200px;
    max-width: 380px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 0 10px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial img {
    border-radius: 50%;
    margin-bottom: 15px;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.testimonial p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.testimonial h4 {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

@keyframes scroll458 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}









@media (max-width: 768px) {
    .testimonial {
        min-width: 250px; /* Reduce el ancho en pantallas medianas */
        padding: 15px;
    }

    .testimonial img {
        width: 70px;
        height: 70px; /* Reduce tamaño de imagen */
    }

    .testimonial p {
        font-size: 13px; /* Disminuye el tamaño de la fuente del texto */
    }

    .testimonial h4 {
        font-size: 14px; /* Ajusta el tamaño del nombre */
    }
}



@media (max-width: 480px) {
    .imgBox div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 50px;
    }


    .testimonial {
        min-width: 200px; /* Reduce aún más el ancho en pantallas pequeñas */
        padding: 10px;
    }

    .testimonial img {
        width: 60px;
        height: 60px; /* Aún más pequeño en pantallas pequeñas */
    }

    .testimonial p {
        font-size: 12px; /* Disminuye el tamaño de la fuente del texto */
    }

    .testimonial h4 {
        font-size: 13px; /* Ajusta el tamaño del nombre */
    }
}