/* Syn Brand Logos - sbl.css */

.sbl-wrapper {
    --sbl-logo-height: 60px;
    --sbl-bg: #ffffff;
    --sbl-hover: #0068a5;
    --sbl-radius: 8px;
    --sbl-columns: 5;
    --sbl-marquee-speed: 40s;
    box-sizing: border-box;
    width: 100%;
    position: relative;
}

/* ---- Item comun ---- */
.sbl-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--sbl-bg);
    border: 2px solid transparent;
    border-radius: var(--sbl-radius);
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.sbl-item:hover {
    border-color: var(--sbl-hover);
    box-shadow: 0 4px 16px rgba(0, 104, 165, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.sbl-logo-img {
    display: block;
    max-height: var(--sbl-logo-height);
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: filter 0.25s ease;
}

.sbl-logo-text {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-align: center;
    max-width: 120px;
    line-height: 1.3;
}

.sbl-brand-name {
    font-size: 11px;
    color: #666;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---- Grayscale ---- */
.sbl-grayscale .sbl-logo-img {
    filter: grayscale(100%) opacity(0.7);
}

.sbl-grayscale .sbl-item:hover .sbl-logo-img {
    filter: grayscale(0%) opacity(1);
}

/* ============================================================
   GRID
   ============================================================ */
.sbl-grid {
    display: grid;
    grid-template-columns: repeat(var(--sbl-columns), 1fr);
    gap: 12px;
    padding: 4px;
}

.sbl-grid .sbl-item {
    width: 100%;
}

@media (max-width: 900px) {
    .sbl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .sbl-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.sbl-carousel {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    padding: 4px 0;
}

.sbl-carousel-track {
    display: flex;
    gap: 10px;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.sbl-carousel .sbl-item {
    width: 160px;
    min-width: 160px;
}

.sbl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    color: #555;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    z-index: 2;
    padding: 0;
}

.sbl-btn:hover {
    background: var(--sbl-hover);
    border-color: var(--sbl-hover);
    color: #fff;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.sbl-marquee {
    overflow: hidden;
    padding: 4px 0;
}

.sbl-marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: sbl-scroll var(--sbl-marquee-speed) linear infinite;
}

.sbl-marquee:hover .sbl-marquee-track {
    animation-play-state: paused;
}

.sbl-marquee .sbl-item {
    width: 160px;
    min-width: 160px;
}

@keyframes sbl-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
    .sbl-carousel .sbl-item,
    .sbl-marquee .sbl-item {
        width: 120px;
        min-width: 120px;
    }
    .sbl-btn { width: 28px; height: 28px; }
    .sbl-item { padding: 10px 12px; }
}
