/* partners.css */
.marcas {
    padding: 2.5rem 0;
    margin: 0;
}

.partners-section,
.clientes {
    padding: 3.5rem 0;
    overflow: hidden;
    position: relative;
}

.partners-section::before,
.partners-section::after,
.clientes::before,
.clientes::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10vw;
    pointer-events: none;
    z-index: 2;
}

.partners-section::before,
.clientes::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.partners-section::after,
.clientes::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.carousel-title {
    text-align: center;
    font-weight: bold;
    color: #1B456F;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    position: relative;
}

.carousel-title::after {
    content: '';
    position: absolute;
    bottom: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.1875rem;
    background-color: #1B456F;
}

.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
}

.carousel:active {
    cursor: grabbing;
}

.carousel--track {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
    will-change: transform;
    gap: 8vw;
    /* Increased spacing between rows for infinite scroll */
}

.carousel--row {
    display: flex;
    align-items: center;
    gap: 6vw;
    /* Increased spacing between brand images */
    flex-shrink: 0;
}

.carousel--row .item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 10vw;
    height: 6rem;
    padding: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: none;
}

.carousel--row .item:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.carousel--row .item img {
    max-width: 18vw;
    max-height: 5rem;
    object-fit: contain;
}

.carousel--row .item:hover img {
    filter: grayscale(0%);
}

/* Media Queries for responsive spacing */
@media (max-width: 768px) {
    .carousel--row .item {
        min-width: 25vw;
        height: 4rem;
    }

    .carousel--row .item img {
        max-width: 22vw;
        max-height: 3.5rem;
    }

    .carousel--track {
        gap: 3vw;
        /* Smaller gap for smaller screens */
    }

    .carousel--row {
        gap: 2vw;
        /* Smaller gap between images for smaller screens */
    }
}

@media (min-width: 1920px) {
    .carousel--row .item {
        min-width: 10vw;
        height: 8rem;
    }

    .carousel--row .item img {
        max-width: 18vw;
        max-height: 6rem;
    }

    .carousel--track {
        gap: 6vw;
    }

    .carousel--row {
        gap: 6vw;
    }
}

/* Animación de scroll infinito */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

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