/* Clients Component - Mobile First */
/* Basado en el diseño de Figma "Section - Clients" */

/* Base Styles - Mobile */
.dh-clients {
    width: 100%;
    background: var(--primary-white);
    overflow: hidden;
}

.dh-clients__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 20px 0px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

/* Cuando hay título, reducir el gap a 16px */
.dh-clients__container--with-title {
    gap: 16px;
}

.dh-clients__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

/* Cuando hay título, centrar el header */
.dh-clients__header--with-title {
    align-items: center;
    text-align: center;
}

.dh-clients__title {
    color: var(--primary-black-100, #111B29);
    text-align: left;
    font-family: var(--font-lato, 'Lato');
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 116%;
    margin: 0;
}

/* Estilo del título cuando está presente (centrado, gris, más pequeño) */
.dh-clients__header--with-title .dh-clients__title {
    color: var(--primary-grey-80, #97A3B7);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 132%;
    padding: 0;
}

.dh-clients__description {
    color: var(--primary-grey-100, #667489);
    text-align: left;
    font-family: var(--font-lato, 'Lato');
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    margin: 0;
}

.dh-clients__slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Efecto difuminado en los laterales */
.dh-clients__slider-wrapper::before,
.dh-clients__slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 10;
    pointer-events: none;
}

.dh-clients__slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.dh-clients__slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.dh-clients__slider {
    width: 100%;
    overflow: hidden;
}

.dh-clients__slider .swiper-wrapper {
    display: flex;
    align-items: center;
}

/* Animación continua para movimiento constante */
.dh-clients__wrapper--animated {
    animation: slide-continuous 500s linear infinite;
    will-change: transform;
}

@keyframes slide-continuous {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(var(--slide-width) * -1));
    }
}

.dh-clients__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    flex-shrink: 0;
    width: auto;
}

.dh-clients__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    opacity: 1;
}

.dh-clients__logo img,
.dh-clients__logo picture img {
    max-height: 32px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Tablet - 768px y más */
@media (min-width: 768px) {
    .dh-clients__container {
        padding: 40px 0;
        gap: 40px;
    }

    /* Cuando hay título, mantener gap de 16px */
    .dh-clients__container--with-title {
        gap: 16px;
    }

    /* Ajustar ancho del fade en tablet */
    .dh-clients__slider-wrapper::before,
    .dh-clients__slider-wrapper::after {
        width: 40px;
    }

    .dh-clients__title {
        font-size: 32px;
    }

    /* Mantener estilo del título centrado en tablet */
    .dh-clients__header--with-title .dh-clients__title {
        font-size: 16px;
    }

    .dh-clients__description {
        font-size: 16px;
    }

    .dh-clients__logo img,
    .dh-clients__logo picture img {
        max-height: 39px;
    }
}

/* Desktop - 1100px y más */
@media (min-width: 1100px) {
    .dh-clients__container {
        max-width: 1440px;
        padding: 40px 0;
        gap: 40px;
    }

    /* Cuando hay título, mantener gap de 16px */
    .dh-clients__container--with-title {
        gap: 16px;
    }

    .dh-clients__title {
        font-size: 36px;
        line-height: 116%;
    }

    /* Mantener estilo del título centrado en desktop */
    .dh-clients__header--with-title .dh-clients__title {
        font-size: 16px;
        line-height: 132%;
    }

    .dh-clients__description {
        font-size: 16px;
        line-height: 140%;
    }

    .dh-clients__logo img,
    .dh-clients__logo picture img {
        max-height: 46px;
    }

    /* Ajustar ancho del fade en desktop */
    .dh-clients__slider-wrapper::before,
    .dh-clients__slider-wrapper::after {
        width: 80px;
    }
}