
/* ========================================
   BANNER SUPERIOR DE MARCAS
   Mobile first
======================================== */

.locksmith-brands-banner {
    --brands-bg: #090909;
    --brands-yellow: #ffee00;
    --brands-height: 48px;

    position: relative;
    z-index: 1000;
    width: 100%;
    height: var(--brands-height);
    overflow: hidden;
    background: var(--brands-bg);
    color: #fff;
    border-bottom: 1px solid rgba(255, 238, 0, 0.22);

    opacity: 1;
    visibility: visible;
    transform: translateY(0);

    transition:
        height 0.3s ease,
        opacity 0.25s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

/* Contenedor principal */

.locksmith-brands-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 10px;
    padding: 0 10px;
}

/* Etiqueta izquierda */

.locksmith-brands-label {
    flex: 0 0 auto;
    color: var(--brands-yellow);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

/* Área del carrusel */

.locksmith-brands-carousel {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 4%,
        #000 96%,
        transparent
    );

    mask-image: linear-gradient(
        to right,
        transparent,
        #000 4%,
        #000 96%,
        transparent
    );
}

/* Pista animada */

.locksmith-brands-track {
    display: flex;
    align-items: center;
    width: max-content;
    height: 100%;
    animation: locksmith-brand-scroll 30s linear infinite;
    will-change: transform;
}

/* Elementos individuales */

.locksmith-brand-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 100%;
    padding: 0 12px;
    position: relative;
}

.locksmith-brand-item::after {
    content: "";
    position: absolute;
    right: 0;
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
}

/* Nombres de marcas */

.locksmith-brands-banner .brand-name {
    display: inline-block;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1;
}

.locksmith-brands-banner .brand-tesa {
    color: #f4d34e;
}

.locksmith-brands-banner .brand-cisa {
    letter-spacing: 2px;
}

.locksmith-brands-banner .brand-abus {
    font-weight: 900;
    letter-spacing: 1px;
}

.locksmith-brands-banner .brand-lince {
    font-style: roboto;
}

.locksmith-brands-banner .brand-mul {
    font-size: 1.2rem;
    letter-spacing: 0;
}

/* Etiqueta derecha */

.locksmith-brands-status {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: #d6d6d6;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.locksmith-brands-status .status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #31d158;
    box-shadow: 0 0 7px rgba(49, 209, 88, 0.5);
}

/* Animación continua: un grupo completo */

@keyframes locksmith-brand-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pausa al interactuar */

.locksmith-brands-carousel:hover .locksmith-brands-track {
    animation-play-state: paused;
}

/* Banner oculto al bajar la página */

.locksmith-brands-banner.is-hidden {
    height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    border-bottom-color: transparent;
    pointer-events: none;
}

/* Tablets */

@media (min-width: 600px) {
    .locksmith-brands-banner {
        --brands-height: 52px;
    }

    .locksmith-brands-inner {
        gap: 18px;
        padding: 0 20px;
    }

    .locksmith-brands-label {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .locksmith-brand-item {
        min-width: 100px;
        padding: 0 18px;
    }

    .locksmith-brands-banner .brand-name {
        font-size: 1.3rem;
    }

    .locksmith-brands-banner .brand-mul {
        font-size: 1.3rem;
    }

    .locksmith-brands-status {
        display: flex;
    }
}

/* Ordenadores */

@media (min-width: 992px) {
    .locksmith-brands-banner {
        --brands-height: 56px;
    }

    .locksmith-brands-inner {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 28px;
        gap: 24px;
    }

    .locksmith-brands-label {
        font-size: 1.2rem;
    }

    .locksmith-brand-item {
        min-width: 115px;
        padding: 0 22px;
    }

    .locksmith-brands-banner .brand-name {
        font-size: 1.3rem;
    }

    .locksmith-brands-banner .brand-mul {
        font-size: 1.3rem;
    }

    .locksmith-brands-status {
        font-size: 1.2rem;
    }
}

/* Preferencia de movimiento reducido */

@media (prefers-reduced-motion: reduce) {
    .locksmith-brands-track {
        animation: none;
        transform: none;
        will-change: auto;
    }

    .locksmith-brands-banner {
        transition: none;
    }
}
