/* AI LOGOS BANNER - Scrolling horizontal infinito con fade */
/* Version: 2025100505 */

.ai-logos-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg-primary);
    padding: 30px 0 60px 0;
    margin: 0;
}

/* Background glow brutalista */
.ai-logos-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(
        ellipse 80% 60% at center,
        rgba(0, 255, 170, 0.08) 0%,
        rgba(0, 255, 170, 0.04) 30%,
        rgba(0, 255, 170, 0.02) 50%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 1;
}

.ai-logos-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: 160px;
    overflow: hidden;
    z-index: 2;
    margin: 0 auto;
}

/* Fade masks en los lados */
.ai-logos-container::before,
.ai-logos-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.ai-logos-container::before {
    left: 0;
    background: linear-gradient(to right, 
        var(--bg-primary) 0%, 
        var(--bg-primary) 20%, 
        rgba(10, 11, 26, 0.8) 50%,
        transparent 100%);
}

.ai-logos-container::after {
    right: 0;
    background: linear-gradient(to left, 
        var(--bg-primary) 0%, 
        var(--bg-primary) 20%, 
        rgba(10, 11, 26, 0.8) 50%,
        transparent 100%);
}

/* Líneas de scroll */
.ai-logos-row {
    position: absolute;
    width: max-content;
    height: 80px;
    display: flex;
    align-items: center;
    gap: 32px;
    will-change: transform;
}

.ai-logos-row:first-child {
    top: 0;
    animation: scrollRight 60s linear infinite;
}

.ai-logos-row:last-child {
    bottom: 0;
    animation: scrollLeft 65s linear infinite;
}

/* Logo items */
.ai-logo-item {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-logo-item:hover {
    transform: scale(1.08);
}

.ai-logo-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-logo-item:hover img {
    transform: scale(1.1);
}

.ai-logo-item span {
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animaciones de scroll - más suaves sin saltos */
@keyframes scrollRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% / 3));
    }
}

@keyframes scrollLeft {
    from {
        transform: translateX(calc(-100% / 3));
    }
    to {
        transform: translateX(0);
    }
}

/* Título opcional de la sección */
.ai-logos-title {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    opacity: 0.8;
}

/* Desktop extra large - Reduce un poco en pantallas muy grandes */
@media (min-width: 1920px) {
    .ai-logos-container {
        max-width: 1700px;
    }
}

/* Desktop Large - Balance */
@media (min-width: 1280px) and (max-width: 1919px) {
    .ai-logos-container {
        max-width: 1500px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ai-logos-section {
        padding: 30px 0 60px 0;
        margin: 15px 0 40px 0;
    }
    
    .ai-logos-container {
        height: 140px;
    }
    
    .ai-logos-row {
        height: 70px;
        gap: 24px;
    }
    
    .ai-logo-item {
        width: 60px;
        height: 60px;
        padding: 10px;
    }
    
    .ai-logo-item img {
        width: 32px;
        height: 32px;
    }
    
    .ai-logo-item span {
        font-size: 10px;
    }
    
    .ai-logos-container::before,
    .ai-logos-container::after {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .ai-logos-section {
        padding: 20px 0 40px 0;
        margin: 10px 0 20px 0;
    }
    
    .ai-logos-container {
        height: 120px;
    }
    
    .ai-logos-row {
        height: 60px;
        gap: 20px;
    }
    
    .ai-logo-item {
        width: 52px;
        height: 52px;
        padding: 8px;
    }
    
    .ai-logo-item img {
        width: 28px;
        height: 28px;
    }
    
    .ai-logo-item span {
        font-size: 9px;
    }
    
    .ai-logos-container::before,
    .ai-logos-container::after {
        width: 80px;
    }
}