/* =========================================================
   SINTEGRAD – Brand Strip (Fase 3)
   Estilo Apple-like / Institucional / Premium
   ========================================================= */

.brand-strip {
    width: 100%;
    height: 80px;
    background-color: #000; /* Unificado con Hero */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

/* Fade lateral sutil (separación óptica, no spotlight) */
.brand-strip::before,
.brand-strip::after {
    content: '';
    position: absolute;
    top: 0;
    width: 90px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.brand-strip::before {
    left: 0;
    background: linear-gradient(to right, #000, rgba(0,0,0,0));
}

.brand-strip::after {
    right: 0;
    background: linear-gradient(to left, #000, rgba(0,0,0,0));
}

/* Track animado */
.brand-strip__track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    padding: 0; /* Eliminamos padding para cálculo exacto */
    animation: scroll-brands 45s linear infinite; /* Ajustado tiempo para 3 sets */
}

.brand-strip__track:hover {
    animation-play-state: paused;
}

/* Item */
.brand-strip__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo base – COLOR, LIMPIO, PREMIUM */
.brand-strip__item img {
    height: 40px;
    width: auto;
    object-fit: contain;

    /* Estado base */
    opacity: 0.9;
    filter: saturate(0.95) brightness(0.95);
    transform: translateY(0);

    transition:
        filter .25s ease,
        opacity .25s ease,
        transform .25s ease;
}

/* Hover SOLO en desktop real */
@media (hover: hover) and (pointer: fine) {
    .brand-strip__item img:hover {
        opacity: 1;
        filter: saturate(1) brightness(1.05) contrast(1.05);
        transform: translateY(-1px);
    }
}

/* Animación continua */
@keyframes scroll-brands {
    from {
        transform: translateX(0);
    }
    to {
        /* Se desplaza exactamente 1/3 del total (un set completo) */
        transform: translateX(calc(-100% / 3));
    }
}

/* Responsive */
@media (max-width: 768px) {
    .brand-strip {
        height: 72px;
    }

    .brand-strip__track {
        gap: 2rem;
        animation-duration: 20s;
        padding: 0 1rem;
    }

    .brand-strip__item img {
        height: 32px;
        opacity: 1;
        filter: none;
        transform: none;
    }

    .brand-strip::before,
    .brand-strip::after {
        width: 50px;
    }
}
