/* Extraido de views/.../brands_section.php (bloque <style> embebido) */
/* Estilos específicos para el componente de marcas */
.corporativo-marcas-exact {
    background: #181818;
    padding: 0 0 10px 0;
    overflow: hidden;
}
.corporativo-marcas-bar-top,
.corporativo-marcas-bar-bottom {
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #181818 0%, #f7a822 10%, #f7a822 90%, #181818 100%);
    margin: 0 0 0 0;
}
.corporativo-marcas-bar-text {
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 6px 0;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}
.corporativo-marcas-bar-text::before,
.corporativo-marcas-bar-text::after {
    content: '';
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #222 0%, #f7a822 50%, #222 100%);
    margin: 0 12px;
}
.corporativo-marcas-bar-text::before {
    margin-left: 0;
}
.corporativo-marcas-bar-text::after {
    margin-right: 0;
}

/* Carrusel infinito de logos */
.corporativo-marcas-logos-exact {
    width: 100%;
    margin-bottom: 12px;
}
.brands-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 6%,
        #000 94%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 6%,
        #000 94%,
        transparent 100%
    );
}
.brands-marquee__track {
    display: flex;
    width: max-content;
    will-change: transform;
}
.brands-marquee__group {
    display: flex;
    align-items: center;
    gap: 56px;
    padding: 0 28px;
    flex-shrink: 0;
}
.brands-marquee__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    min-width: 100px;
}
.brands-marquee__item img {
    height: 50px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(1.08);
    opacity: 0.92;
    transition: filter 200ms ease, opacity 200ms ease, transform 200ms ease;
}
.brands-marquee:hover .brands-marquee__item img {
    opacity: 0.75;
}
.brands-marquee__item:hover img {
    filter: grayscale(0) brightness(1.05);
    opacity: 1;
    transform: scale(1.06);
}

/* Dirección y velocidad por fila */
.brands-marquee--left .brands-marquee__track {
    animation: brands-scroll-left 45s linear infinite;
}
.brands-marquee--right .brands-marquee__track {
    animation: brands-scroll-right 50s linear infinite;
}
.brands-marquee--left-slow .brands-marquee__track {
    animation: brands-scroll-left 55s linear infinite;
}

.brands-marquee:hover .brands-marquee__track {
    animation-play-state: paused;
}

@keyframes brands-scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes brands-scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* Tablet */
@media (max-width: 1024px) {
    .brands-marquee__group {
        gap: 40px;
        padding: 0 20px;
    }
    .brands-marquee__item {
        height: 42px;
        min-width: 85px;
    }
    .brands-marquee__item img {
        height: 42px;
        max-width: 130px;
    }
}

/* Tablet pequeña */
@media (max-width: 768px) {
    .brands-marquee__group {
        gap: 32px;
        padding: 0 16px;
    }
    .brands-marquee__item {
        height: 36px;
        min-width: 72px;
    }
    .brands-marquee__item img {
        height: 36px;
        max-width: 110px;
    }
}

/* Móvil grande */
@media (max-width: 600px) {
    .brands-marquee {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            #000 4%,
            #000 96%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            #000 4%,
            #000 96%,
            transparent 100%
        );
    }
    .brands-marquee__group {
        gap: 24px;
        padding: 0 12px;
    }
    .brands-marquee__item {
        height: 28px;
        min-width: 58px;
    }
    .brands-marquee__item img {
        height: 28px;
        max-width: 85px;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .brands-marquee__group {
        gap: 20px;
    }
    .brands-marquee__item {
        height: 24px;
        min-width: 50px;
    }
    .brands-marquee__item img {
        height: 24px;
        max-width: 70px;
    }
}

/* Respeto por reduce motion */
@media (prefers-reduced-motion: reduce) {
    .brands-marquee__track {
        animation: none !important;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
        gap: 24px;
    }
    .brands-marquee {
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .brands-marquee__group[aria-hidden="true"] {
        display: none;
    }
    .brands-marquee__group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
        padding: 0 16px;
    }
    .brands-marquee__item img {
        transition: none;
        transform: none !important;
    }
}

/* Sección partners */
.corporativo-marcas-partners-divider {
    width: 100%;
    max-width: 720px;
    height: 1px;
    margin: 8px auto 18px;
    background: linear-gradient(90deg, transparent 0%, rgba(247, 168, 34, 0.45) 50%, transparent 100%);
}
.corporativo-marcas-partners-title {
    opacity: 0.95;
}

@media (max-width: 600px) {
    .corporativo-marcas-bar-text {
        font-size: 1.1rem;
        min-height: 28px;
        padding: 4px 0;
    }
}
