/* 
 * Brands Carousel Styles
 * @package Herramientas_Maitencillo
 */
/* Padding vertical generoso: el efecto dock (scale hasta 1.5, transform-origin bottom) crece hacia arriba
   y se recortaba con el padding bajo + overflow:hidden de la sección. */
.hm-brands {
    padding: 72px 0 52px;
    background: var(--bg-primary);
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hm-brands::before,
.hm-brands::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.hm-brands::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}
.hm-brands::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}
.hm-brands .container {
    max-width: 100%;
    padding: 0;
}
.hm-brands-track {
    display: flex;
    flex-wrap: nowrap;
    width: calc(200px * 24);
    animation: scroll 40s linear infinite;
}
.hm-brands-track:hover {
    animation-play-state: paused;
}
.hm-brand-item {
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: none ;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom center;
    z-index: 1;
}
.hm-brand-item:hover {
    z-index: 10;
}
.hm-brand-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hm-brand-item:hover .hm-brand-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}
.hm-brand-logo img {
    width: 100%;
    height: 100%;
	max-height: 100px;
    object-fit: contain;
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 12));
    }
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .hm-brands {
        padding: 56px 0 44px;
    }
    .hm-brand-item {
        width: 180px;
        height: 80px;
        padding: 5px;
    }
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-180px * 12));
        }
    }
    .hm-brands-track {
        width: calc(180px * 24);
    }
    .hm-brands::before,
    .hm-brands::after {
        width: 60px;
    }
}