/* ====== Brands Marquee ======= */
.brands-marquee {
    --gap: 56px;
    --speed: 8s;
    padding: 42px 0;
}

.brands-title {
    text-align: center;
    margin: 0 0 26px;
    font-weight: 800;
    font-size: 1.8rem;
    color: #2d2149;
}

/* contenedor y pista */
.marquee {
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: var(--gap);
    width: max-content;
    /* se expande según contenido */
    animation: marquee-scroll var(--speed) linear infinite;
    will-change: transform;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* ítems */
.brand-item {
    list-style: none;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    min-width: 150px;
}

.brand-logo {
    height: 100%;
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .8;
    transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.brand-link:hover .brand-logo {
    filter: none;
    opacity: 1;
    transform: scale(1.04);
}

/* placeholder si no hay logo */
.brand-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 68px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #111;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

/* Centrar el carrusel dentro de un contenedor como el resto de la web */
.brands-marquee .marquee {
    max-width: 1200px;
    /* ajusta al ancho que uses en otras secciones */
    margin: 0 auto;
    /* centra */
    padding: 0 24px;
    /* respiración lateral opcional */
    box-sizing: border-box;
}


/* responsive altura */
@media (max-width: 768px) {
    .brand-link {
        height: 80px;
        min-width: 120px;
    }

    .brand-logo {
        max-height: 60px;
    }

    .brands-marquee {
        --gap: 36px;
        --speed: 8s;
    }
}

/* animación infinita */
@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

    /* la pista está duplicada */
}