.subtitle-clie {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;

}

.container-clientes {
    display: flex;
    justify-content: center;
    max-width: 1200px;
}

.container-clientes:last-child {
    margin-bottom: 50px;
}

.wrapper {
    max-width: 1100px;
    padding: 20px 10px;
    margin: 0 60px 35px;
    overflow: hidden;
}

.wrapper .card {
    background: #fff;
    display: flex;
    height: auto;
    flex-direction: column;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
}

.wrapper .card:hover {
    transform: translateY(-10px);
}

.card .card-image {
    position: relative;
}

.card .card-image img {
    width: 100%;
    padding: 5px;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 4/3;
    max-width: 400px;
}

.card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card .card-footer {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0 !important;
    background-color: #fff !important;
}

.card .card-footer h6 {
    text-align: center;
    margin: 8px 12px;
    font-size: 0.95rem;
    color: #566573;
    font-weight: 550;
}

.wrapper .swiper-pagination-bullet {
    height: 15px;
    width: 15px;
    opacity: 1;
    overflow: hidden;
    position: relative;
    background: #a1c8f4;
}

.wrapper .swiper-pagination-bullet-active {
    background: #78a5ed;
}

/* Auto-play loading indicator */
.wrapper .swiper-pagination-bullet-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #3769dd;
    transform-origin: left center;
    transform: scaleX(0);
    animation: autoplay-loading 5s linear forwards;
}

.container:hover .wrapper .swiper-pagination-bullet-active::before {
    animation-play-state: paused;
}

@keyframes autoplay-loading {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

.wrapper :where(.swiper-button-prev, .swiper-button-next) {
    color: #2f5caa;
    margin-top: -35px;
    transition: all 0.3s ease;
}

.wrapper :where(.swiper-button-prev, .swiper-button-next):hover {
    color: #3a79c7;
}

/* Responsive media query code for small screens */
@media (max-width: 768px) {

    .wrapper {
        margin: 0 10px 25px;
    }

    .wrapper :where(.swiper-button-prev, .swiper-button-next) {
        display: none;
    }

    /* Ajustes para 2 cards en móvil */
    .wrapper .card {
        min-width: calc(50% - 15px);
        /* 50% menos la mitad del spaceBetween */
    }

    .card .card-image img {
        max-width: 100%;
        height: auto;
    }

    .card .card-footer h6 {
        font-size: 0.8rem;
        /* Reducir tamaño de fuente */
        margin: 8px;
        /* Reducir margen */
        line-height: 1.2;
    }

    /* Ajustar padding del wrapper para mejor distribución */
    .wrapper {
        padding: 20px 5px;
    }
}

/* Para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
    .subtitle-clie {
        font-size: 1rem;
    }

    .card .card-footer h6 {
        font-size: 0.65rem;
        margin: 6px;
    }

    .wrapper {
        padding: 15px 5px;
    }

    .swiper-pagination-bullet {
        height: 10px;
        width: 10px;
    }

    .container-clientes:last-child {
        margin-bottom: 0px;
    }
}