/**
 * Our Customer Section Styles
 * 
 * @package EvisioFront
 * @version 1.0
 */

/* Our Customer Section */
.our-customer {
    margin: 0 auto;
}

.our-customer-container {
    padding: 0 1rem;
}

.our-customer-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 0 auto;
    max-width: 1000px;
    /* Ancho mínimo removido para evitar overflow horizontal */
    width: 100%;
    overflow-x: hidden;
    box-shadow:
        0px 8px 9px -2px rgba(17, 24, 39, 0.05),
        /* sombra oscura ajustada */
        0px 24px 24px -4px rgba(0, 163, 164, 0.32);
    /* sombra turquesa ajustada */
}

/* Header Section */
.our-customer-header {
    text-align: center;
    margin-bottom: 3rem;
}

.our-customer-title {
    font-size: 2.5rem;
    line-height: 2.5rem;
    color: #2F4792;
    font-weight: 700;
    margin-bottom: 1rem;
}

.our-customer-subtitle {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #6b7280;
    font-weight: 600;
    line-height: 1.625;
}

/* Logos Section - Static Layout */
.our-customer-logos {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.our-customer-logo-item {
    display: flex;
    height: auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 150px;
}

.our-customer-logo {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Slider Navigation */
.our-customer-slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.our-customer-slider-prev,
.our-customer-slider-next {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.our-customer-slider-prev:hover,
.our-customer-slider-next:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.05);
}

.our-customer-slider-prev:disabled,
.our-customer-slider-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Slick Carousel Customizations for Slider Mode */
.our-customer-logos-slider {
    display: block !important;
}

.our-customer-logos-slider .slick-track {
    display: flex;
}

.our-customer-logos-slider .slick-track .slick-slide {
    display: flex;
    height: auto;
    align-items: center;
    justify-content: center;
}

/* Hide default Slick navigation arrows */
.our-customer-logos-slider .slick-prev,
.our-customer-logos-slider .slick-next {
    display: none !important;
}

/* Responsive Design */
@media (min-width: 1441px) {
    .our-customer-container {
        max-width: 1400px;
        width: 1400px;
    }
}

@media (max-width: 1440px) {
    .our-customer-container {
        max-width: none;
        padding-top: 4rem;
    }
}

@media (max-width: 1024px) {
    .our-customer-content {
        padding: 3rem 2rem 3rem;
        min-width: auto;
        /* Remove min-width constraint for tablet */
    }

    .our-customer-title {
        line-height: 2.25rem;
    }

    .our-customer-subtitle {
        font-size: 1.125rem;
        line-height: 1.625;
    }

    /* Tablet Layout: 3 arriba, 4 abajo */
    .our-customer-logos {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 1.5rem;
    }

    /* Force 4 logos to second row */
    .our-customer-logo-item:nth-child(n+4) {
        grid-column: span 1;
    }

    /* Create second row with 4 columns */
    .our-customer-logos::after {
        content: '';
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        align-items: center;
    }

    /* Position logos 4-7 in second row */
    .our-customer-logo-item:nth-child(4) {
        grid-column: 1;
        grid-row: 2;
    }

    .our-customer-logo-item:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
    }

    .our-customer-logo-item:nth-child(6) {
        grid-column: 3;
        grid-row: 2;
    }

    .our-customer-logo-item:nth-child(7) {
        grid-column: 4;
        grid-row: 2;
    }

    .our-customer-logo-item {
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .our-customer {
        padding: 2rem 0.5rem;
    }

    .our-customer-container {
        padding: 2rem 0.5rem 0;
    }

    .our-customer-content {
        padding: 3rem 2rem 3rem;
        min-width: auto;
        /* Remove min-width constraint for mobile */
    }

    .our-customer-title {
        line-height: 2rem;
    }

    .our-customer-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Mobile Layout: 2-1-2-2 distribution */
    .our-customer-logos {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto auto;
        gap: 1rem;
    }

    /* First row: 2 logos */
    .our-customer-logo-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .our-customer-logo-item:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    /* Second row: 1 logo centered */
    .our-customer-logo-item:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        max-width: 100px;
    }

    /* Third row: 2 logos */
    .our-customer-logo-item:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .our-customer-logo-item:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
    }

    /* Fourth row: 2 logos */
    .our-customer-logo-item:nth-child(6) {
        grid-column: 1;
        grid-row: 4;
    }

    .our-customer-logo-item:nth-child(7) {
        grid-column: 2;
        grid-row: 4;
    }

    .our-customer-logo-item {
        max-width: 100px;
    }

    /* Hide slider navigation on mobile */
    .our-customer-slider-nav {
        display: none;
    }
}

@media (max-width: 575px) {
    .our-customer-title {
        line-height: 1.75rem;
    }

    .our-customer-subtitle {
        font-size: 1.5rem;
        line-height: 1.375;
    }

    .our-customer-logo-item {
        max-width: 80px;
    }
}