/* =========================================================
   TIENDA JOCHY - CARRUSEL DE MARCAS
   ========================================================= */

.container--wide{
    max-width: min(1600px, calc(100% - 48px));
}

.section-brands-carousel{
    position: relative;
    overflow: hidden;
    padding-block: 56px;
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 82, 170, .10), transparent 22%),
        radial-gradient(circle at 90% 82%, rgba(255, 168, 205, .16), transparent 26%),
        linear-gradient(180deg, #fff8fc 0%, #fff 100%);
}

.section-head--brands{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 580px);
    gap: 28px;
    align-items: end;
    margin-bottom: 28px;
}

.section-head--brands p{
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.brands-carousel{
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
}

.brands-track{
    display: flex;
    align-items: center;
    gap: 22px;
    width: max-content;
    padding: 12px 24px;
    animation: brands-marquee 34s linear infinite;
}

.brands-carousel:hover .brands-track{
    animation-play-state: paused;
}

.brand-logo-card{
    flex: 0 0 auto;
    width: clamp(220px, 18vw, 280px);
    height: clamp(120px, 11vw, 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8fc 100%);
    border: 1px solid rgba(230, 38, 146, .10);
    box-shadow:
        0 18px 42px rgba(89, 28, 61, .10),
        inset 0 1px 0 rgba(255,255,255,.90);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.brand-logo-card:hover{
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(230, 38, 146, .22);
    box-shadow:
        0 24px 52px rgba(230, 38, 146, .18),
        inset 0 1px 0 rgba(255,255,255,.95);
}

.brand-logo-card img{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: saturate(1.02) contrast(1.02);
}

@keyframes brands-marquee{
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 11px)); }
}

@media (max-width: 900px){
    .section-head--brands{
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .brands-track{
        gap: 16px;
        animation-duration: 26s;
    }

    .brand-logo-card{
        width: 210px;
        height: 118px;
        border-radius: 22px;
    }
}

@media (max-width: 640px){
    .section-brands-carousel{
        padding-block: 44px;
    }

    .container--wide{
        max-width: calc(100% - 24px);
    }

    .brands-track{
        gap: 14px;
        padding-inline: 12px;
        animation-duration: 22s;
    }

    .brand-logo-card{
        width: 180px;
        height: 104px;
        padding: 14px;
        border-radius: 18px;
    }
}
