/* Companies Section Styles */
.companies {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.companies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(254, 63, 64, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(254, 63, 64, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.companies-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.companies-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.companies-title .highlight {
    color: #FE3F40;
}

.companies-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.companies-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.companies-slider {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: slideLogos 30s linear infinite;
    width: max-content;
}

.companies-slider::after {
    content: '';
    /* Usar pseudo-elementos para duplicar visualmente */
}

.company-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px 30px;
    min-width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    pointer-events: none;
}

.company-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(254, 63, 64, 0.5);
    box-shadow: 0 10px 30px rgba(254, 63, 64, 0.2);
}

.company-logo-img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.company-card:hover .company-logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(254, 63, 64, 0.5));
}

/* Animación del slider */
@keyframes slideLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pausar animación en hover */
.companies-slider:hover {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
    .companies {
        padding: 60px 0;
    }
    
    .companies-title {
        font-size: 2.5rem;
    }
    
    .companies-subtitle {
        font-size: 1rem;
    }
    
    .companies-header {
        margin-bottom: 40px;
    }
    
    .companies-container {
        padding: 0 15px;
    }
    
    .company-card {
        min-width: 150px;
        height: 80px;
        padding: 15px 20px;
    }
    
    .company-logo-img {
        max-height: 40px;
    }
    
    .companies-slider {
        gap: 20px;
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .companies-title {
        font-size: 2rem;
    }
    
    .companies-subtitle {
        font-size: 0.9rem;
    }
    
    .company-card {
        min-width: 120px;
        height: 70px;
        padding: 12px 15px;
    }
    
    .company-logo-img {
        max-height: 35px;
    }
    
    .companies-slider {
        gap: 15px;
        animation-duration: 15s;
    }
}

/* Efectos adicionales para mejorar la apariencia */
.companies::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}