/**
 * Mostrar Logos Clientes — Premium Grid Redesign
 */

.client-logos-grid-wrapper {
    position: relative !important;
    padding: 8rem 0 !important;
    background: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%) !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    overflow-x: clip !important;
}

/* Subtle top gradient line */
.client-logos-grid-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    z-index: 1;
}

/* Header Styling */
.logos-grid-header {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
    padding: 0 1.5rem;
}

.logos-grid-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.02em !important;
}

.logos-gradient-text {
    background: linear-gradient(135deg, #EC4899, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logos-grid-subtitle {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.125rem !important;
    color: #64748b !important;
    max-width: 600px;
    margin: 0 auto !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

/* Grid Container */
.logos-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 0 2rem;
}

/* Logo Card */
.client-logo-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation-delay: var(--animation-delay, 0s);
}

.client-logo-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.client-logo-img {
    max-width: 80%;
    /* max-height: 60%; */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover Effects */
.client-logo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    border-color: rgba(139, 92, 246, 0.1);
    z-index: 10;
}

.client-logo-card:hover .client-logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Suttle Glow on Hover */
.client-logo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.client-logo-card:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .logos-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .logos-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .client-logos-grid-wrapper {
        padding: 5rem 0 !important;
    }

    .logos-grid-title {
        font-size: 2rem !important;
    }

    .logos-grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .client-logo-card {
        padding: 2rem;
    }
}