.clients-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    height: 100%;
    margin-left: 25rem;
    position: relative;
    z-index: 2;
}

.clients-paragraph {
    color: #ffffff;
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    width: 40rem;
    margin-left: 6rem;

}

.countries {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 3rem;
}

.country {
    width: 8rem;
    height: 4rem;
    margin: 1.5rem;
    background-color: rgb(87, 82, 82);
    border-radius: 15px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.5s ease;
}

.country:hover {
    background-color: black;
}

.pais-boton {
    font-family: Inter;
    font-weight: 300;
}

.bg {
    background-image: url("./images/E-21.000_page-0001.jpg");
    background-size: cover;
    background-color: black;
    opacity: 0.8;
    background-repeat: repeat-y;
    height: 45rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    opacity: 0.8;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45rem;
    background-color: rgba(0, 0, 0, 0.8);
}

.whatsapp {
    width: 100%;
    display: flex;
    position: fixed;
    left: 90%;
}

.wsp {
    width: 4rem;
    transition: scale 0.5s ease;
}

.wsp:hover {
    scale: 1.1;
}

@media only screen and (max-width: 768px) {
    .clients-container {
        margin-left: 0;
        margin-top: 7rem;
        height: 39rem;
    }

    .clients-paragraph {
        font-size: 1.5rem;
        width: 16rem;
        margin-left: 0;
        text-align: center;
    }

    .countries {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-bottom: 3rem;
    }

    .template {
        height: 50rem;
    }

    .wsp {
        width: 3rem;
    }

    .overlay {
        height: 57rem;
    }

    .bg {
        flex-direction: column;
        height: 57rem;
        background-size: contain;
    }

    nav {
        padding: 10px !important;
        width: 100%;
    }

    .burger {
        width: 100%;
    }

    .carousel-item {
        margin: 1rem !important;
    }



    .carousel-container {
        position: relative;
        width: 80% !important;
        overflow: hidden;
        max-width: 300px !important;
        margin: auto;
        margin-right: 3rem !important;
        margin-bottom: 3rem !important;
    }

    .whatsapp {
        z-index: 5 !important;

    }

    .logos {
        margin-bottom: 3rem;
    }
}

.carousel-container {
    position: relative;
    width: 60%;
    overflow: hidden;
    max-width: 1200px;
    margin: auto;
    margin-right: 9rem;
    z-index: 2;
    background-color: white;
    border-radius: 15px;
}

.carousel {
    display: flex;
    width: calc(25% * 25);
    /* Para 25 logos */
    animation: slide 40s linear infinite;
}

.carousel-item {
    flex: 1 0 auto;
    /* Ajuste automático del tamaño */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    /* Sin relleno extra */
    margin: 1rem;
    /* Sin margen entre los logos */
}

.carousel-item img {
    width: 100%;
    max-width: 150px;
    /* Puedes ajustar el tamaño máximo de los logos */
    height: auto;
}

/* Animación más suave */
@keyframes slide {
    0% {
        transform: translateX(0);
    }

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

/* Flechas de navegación */
button.prev,
button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    padding: 10px;
    cursor: pointer;
    color: white;
    font-size: 18px;
    border-radius: 50%;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

/* Hover sutil */
button.prev:hover,
button.next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}