/* Evitar que el enlace <a> modifique el tamaño de la imagen del colaborador */
.collaborator-item a {
    display: contents;
}
.footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    text-align: center;
    padding: 1.5rem 0 1.5rem 0;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(163, 134, 177, 0.15);
    box-shadow: 
        0 -4px 20px rgba(0, 0, 0, 0.08),
        0 -2px 8px rgba(163, 134, 177, 0.12),
        0 -1px 3px rgba(0, 0, 0, 0.05);
}

.collaborators-section {
    margin-bottom: 2rem;
    position: relative;
}

.collaborators-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    opacity: 0.9;
}

.collaborators-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #a386b1, #90d4bd);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(163, 134, 177, 0.3);
}

.carousel-container {
    overflow: hidden;
    width: 100vw;
    position: relative;
    margin: 0;
    padding: 15px 0;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-track {
    display: flex;
    width: fit-content;
    gap: 40px;
    align-items: center;
}

.collaborator-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 80px;
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(163, 134, 177, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(206, 212, 218, 0.3);
}

.collaborator-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a386b1, #90d4bd);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.collaborator-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 40px rgba(163, 134, 177, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(163, 134, 177, 0.15);
    background: #ffffff;
    border-color: rgba(163, 134, 177, 0.4);
}

.collaborator-item:hover::before {
    opacity: 1;
}

.collaborator-item:hover img {
    filter: brightness(1.1) contrast(1.1);
}

.collaborator-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Pausar animación al hacer hover sobre el carrusel */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* Copyright */
.footer p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0 0.8rem 0;
    }
    
    .collaborators-section {
        margin-bottom: 1rem;
    }
    
    .collaborators-section h3 {
        margin-bottom: 0.8rem;
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .collaborators-section h3::after {
        width: 40px;
        bottom: -5px;
    }
    
    .carousel-container {
        padding: 10px 0;
    }
    
    .collaborator-item {
        width: 80px;
        height: 55px;
        padding: 8px;
    }
    
    .carousel-track {
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 0.8rem 0 0.6rem 0;
    }
    
    .collaborators-section {
        margin-bottom: 0.8rem;
    }
    
    .collaborators-section h3 {
        margin-bottom: 1.0rem;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .collaborators-section h3::after {
        width: 30px;
        height: 1.5px;
        bottom: -4px;
    }
    
    .carousel-container {
        padding: 8px 0;
    }
    
    .collaborator-item {
        width: 70px;
        height: 48px;
        padding: 6px;
        border-radius: 8px;
    }
    
    .carousel-track {
        gap: 20px;
    }
    
    .footer p {
        font-size: 0.75rem;
    }
}