/* ===== Componente aislado: Logos Marquee ===== */
#logos-marquee{
    /* Ajustes rápidos */
    --lm-gap: 64px;           /* espacio entre logos */
    --lm-item-minw: 220px;    /* ancho mínimo de cada tarjeta */
    --lm-item-h: 120px;       /* alto de cada tarjeta */
    --lm-img-maxw: 180px;     /* ancho máximo de cada imagen */
    --lm-img-maxh: 84px;      /* alto máximo de cada imagen */
    --lm-radius: 16px;

    /* Estética */
    --lm-panel-bg: rgba(26,26,26,0.85);
    --lm-panel-border: #333;
    --lm-glow: rgba(0,212,255,.18);     /* brillo de sombra */
    --lm-highlight: rgba(0,212,255,.10);/* barrido interior */
}

#logos-marquee .lm-carousel{
    background: var(--lm-panel-bg);
    border: 1px solid var(--lm-panel-border);
    border-radius: var(--lm-radius);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(0,0,0,.25), 0 0 40px rgba(0,212,255,.06);
    overflow: hidden;
    padding: 28px;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

/* Pista (se mueve con transform) */
#logos-marquee .lm-track{
    display: flex;
    align-items: center;
    gap: var(--lm-gap);
    width: max-content;
    animation: lm-slide 24s linear infinite;
    will-change: transform;
}
@keyframes lm-slide{
    0%   { transform: translateX(0) }
    100% { transform: translateX(-50%) } /* requiere duplicar serie */
}

/* Tarjeta */
#logos-marquee .lm-item{
    min-width: var(--lm-item-minw);
    height: var(--lm-item-h);
    display: flex; align-items: center; justify-content: center;
    padding: 18px;
    border-radius: var(--lm-radius);
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    position: relative; overflow: hidden; z-index: 0;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
#logos-marquee .lm-item::before{
    content: ''; position: absolute; inset: 0; left: -100%;
    background: linear-gradient(90deg, transparent, var(--lm-highlight), transparent);
    transition: left .5s;
    pointer-events: none;            /* << no captura el hover */
}
#logos-marquee .lm-item:hover{
    transform: translateY(-4px) scale(1.02);
    border-color: var(--lm-glow);
    box-shadow: 0 8px 24px var(--lm-glow);
    z-index: 1;                      /* por encima de vecinas */
}
#logos-marquee .lm-item:hover::before{ left: 100% }

/* Imagen */
#logos-marquee .lm-img{
    max-width: var(--lm-img-maxw);
    max-height: var(--lm-img-maxh);
    width: auto; height: auto; object-fit: contain;
    filter: brightness(.97) contrast(1.06);
    transition: transform .24s ease, filter .24s ease;
}
#logos-marquee .lm-item:hover .lm-img{
    transform: scale(1.05);
    filter: brightness(1.06) contrast(1.12) drop-shadow(0 6px 14px var(--lm-glow));
}

/* Accesibilidad: reduced motion solo aquí */
@media (prefers-reduced-motion: reduce){
    #logos-marquee .lm-track{ animation: none }
    #logos-marquee .lm-item, #logos-marquee .lm-img{ transition: none }
}

/* Responsivo */
@media (max-width: 768px){
    #logos-marquee{
    --lm-gap: 44px;
    --lm-item-minw: 200px;
    --lm-img-maxw: 160px;
    --lm-img-maxh: 72px;
    }
    #logos-marquee .lm-carousel{ padding: 22px }
}

/* Tarjeta sin recuadro */
#logos-marquee .lm-item{
    min-width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    position: relative;
    overflow: visible;
}

/* Quitar efecto hover y brillo */
#logos-marquee .lm-item:hover{
    transform: none;
    border-color: transparent;
    box-shadow: none;
    z-index: auto;
}
#logos-marquee .lm-item::before{
    display: none;
}

/* Imagen más grande */
#logos-marquee{
    --lm-img-maxw: 240px;   /* aumenta ancho máximo */
    --lm-img-maxh: 120px;   /* aumenta alto máximo */
}

#logos-marquee .lm-img{
    max-width: var(--lm-img-maxw);
    max-height: var(--lm-img-maxh);
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: none;
}
