/* ============================================
   GALERÍA DE CLIENTES SATISFECHOS
   ============================================ */

.customer-gallery-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.customer-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(102,126,234,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.customer-gallery-section .container {
    position: relative;
    z-index: 1;
}

.customer-gallery-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.customer-gallery-section .section-title {
    color: #1f2937;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.customer-gallery-section .section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de Galería - Convertido a Carrusel */
.gallery-grid {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.gallery-track {
    display: flex;
    gap: 25px;
    animation: scrollGallery 30s linear infinite;
    width: fit-content;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Tarjeta de Cliente */
.customer-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    flex-shrink: 0;
    width: 320px;
}

.customer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

/* Imagen del Cliente */
.customer-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Aspect ratio 1:1 */
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.customer-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.customer-card:hover .customer-image {
    transform: scale(1.1);
}

/* Badge de Verificado */
.verified-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    z-index: 2;
}

.verified-badge i {
    font-size: 0.85rem;
}

/* Overlay con Info */
.customer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    padding: 20px;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.customer-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.customer-location {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.customer-location i {
    color: #10b981;
}

/* Botón Ver Más */
.gallery-cta {
    text-align: center;
    margin-top: 50px;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #325aa6;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(50, 90, 166, 0.3);
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(50, 90, 166, 0.4);
    background: #2a4d8f;
}

.btn-view-more i {
    transition: transform 0.3s ease;
}

.btn-view-more:hover i {
    transform: translateX(5px);
}

/* Stats Counter */
.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
    padding: 40px;
    background: #325aa6;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(50, 90, 166, 0.2);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Modal Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.gallery-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: zoomIn 0.3s ease;
    display: flex;
    flex-direction: row;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

.lightbox-image-container {
    flex: 0 0 350px;
    width: 350px;
    height: 100%;
    overflow: hidden;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    object-position: center center;
}

.lightbox-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: 600px;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.lightbox-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.lightbox-location {
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lightbox-testimonial {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
}

.lightbox-date {
    color: #9ca3af;
    font-size: 0.85rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .customer-gallery-section {
        padding: 60px 0;
    }
    
    .customer-gallery-section .section-title {
        font-size: 2rem;
    }
    
    .gallery-track {
        gap: 20px;
    }
    
    .customer-card {
        width: 280px;
    }
    
    .gallery-stats {
        gap: 40px;
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .lightbox-content {
        margin: 20px;
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .lightbox-image-container {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
    }
    
    .lightbox-image {
        height: 300px;
        min-height: 300px;
    }
    
    .lightbox-info {
        padding: 25px;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .customer-card {
        width: 250px;
    }
    
    .customer-gallery-section .section-title {
        font-size: 1.75rem;
    }
    
    .gallery-stats {
        gap: 30px;
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .gallery-track {
        gap: 15px;
    }
    
    .lightbox-image {
        height: 250px;
        min-height: 250px;
    }
    
    .lightbox-info {
        padding: 20px;
    }
}
