/* =====================================================
   BRAND TRAIN / CARRUSEL DE MARCAS — C4 SYSTEM
===================================================== */

.brand-train {
    width: 100%;
    background: #ffffff;
    padding: 18px 0 20px;
    border-bottom: 1px solid #eef1f5;
    overflow: hidden;
}

.brand-train-inner {
    width: 100%;
    margin: 0 auto;
}

.brand-train-label {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 14px;
}

.brand-train-window {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0 40px;
}

.brand-train-window::before,
.brand-train-window::after {
    content: "";
    position: absolute;
    top: 0;
    width: 72px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brand-train-window::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.brand-train-window::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

/* =====================================================
   CARRUSEL DE MARCAS
  espacio entre logos  gap
   Fecha: 30-06-2026
===================================================== */

.brand-train-track {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    min-width: 100%;
    animation: brandTrainMove var(--brand-train-speed, 34s) linear infinite;
}

.brand-train-window:hover .brand-train-track {
    animation-play-state: paused;
}

/* =====================================================
   CARRUSEL DE MARCAS
   AJUSTE tamaño de imagen
   Fecha: 30-06-2026
===================================================== */

.brand-train-item {
    position: relative;
    flex: 0 0 auto;
    min-width: 200px;
    height: 120px;   padding: 0 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.88;
    cursor: pointer;
    transition: transform 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
}

.brand-train-item::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: #2563eb;
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.brand-train-item:hover {
    transform: translateY(-3px) scale(1.04);
    opacity: 1;
    filter: contrast(1.08);
}

.brand-train-item:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.brand-train-item img {
    max-width: 200px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand-train-item span {
    font-weight: 900;
    color: #111827;
    font-size: 22px;
    white-space: nowrap;
}

.brand-train-item small {
    display: none;
}

@keyframes brandTrainMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .brand-train {
        padding: 14px 0 16px;
    }

    .brand-train-label {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .brand-train-track {
    gap: 38px;
    animation-duration: var(--brand-train-speed, 34s);
}

    .brand-train-item {
        min-width: 130px;
        height: 58px;
        padding: 0 10px;
    }

    .brand-train-item img {
        max-width: 135px;
        max-height: 48px;
    }

    .brand-train-window::before,
    .brand-train-window::after {
        width: 34px;
    }
}