/* ===================================
   TESTIMONIALS SECTION - DISEÑO PREMIUM
   Sección de testimonios con carrusel interactivo
   =================================== */

.testimonials {
    position: relative;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, 
        var(--white) 0%, 
        var(--gray-50) 50%, 
        var(--white) 100%);
    overflow: hidden;
}

/* === FONDO ANIMADO === */
.testimonials-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.testimonials-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="testimonials-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(99,102,241,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23testimonials-dots)"/></svg>');
    opacity: 0.6;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

/* === HEADER === */
.testimonials-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.testimonials-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-200);
    /* SIN TRANSICIONES - COMPLETAMENTE FIJO */
    min-width: 150px;
}

/* HOVER ELIMINADO - STAT COMPLETAMENTE FIJO */

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
}

.stat-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: var(--spacing-xs);
}

.stat-stars i {
    color: #fbbf24;
    font-size: var(--font-size-lg);
    animation: starTwinkle 2s ease-in-out infinite;
}

.stat-stars i:nth-child(2) { animation-delay: 0.2s; }
.stat-stars i:nth-child(3) { animation-delay: 0.4s; }
.stat-stars i:nth-child(4) { animation-delay: 0.6s; }
.stat-stars i:nth-child(5) { animation-delay: 0.8s; }

@keyframes starTwinkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 500;
}

/* === CARRUSEL === */
.testimonials-carousel {
    position: relative;
    margin-bottom: var(--spacing-3xl);
}

.testimonials-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-2xl);
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    /* SIN TRANSFORM NI TRANSICIONES */
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    /* SIN TRANSFORM - COMPLETAMENTE FIJO */
}

.testimonial-slide.prev {
    opacity: 0;
    visibility: hidden;
    /* SIN TRANSFORM - COMPLETAMENTE FIJO */
}

/* === CARDS DE TESTIMONIOS === */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-button);
}

/* === CONTENIDO DEL TESTIMONIO === */
.testimonial-content {
    flex-grow: 1;
    margin-bottom: var(--spacing-xl);
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-button);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

.testimonial-text {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    position: relative;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-md);
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: var(--font-size-lg);
}

/* === AUTOR DEL TESTIMONIO === */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
}

.author-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-cyan);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-button);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.author-info h4 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.author-info span {
    color: var(--gray-600);
    font-size: var(--font-size-base);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.company-logo {
    background: var(--gray-100);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--primary-blue);
    font-weight: 600;
}

/* === CONTROLES DEL CARRUSEL === */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    /* SIN TRANSICIONES - COMPLETAMENTE FIJO */
    box-shadow: var(--shadow-md);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* === DOTS DEL CARRUSEL === */
.carousel-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    /* SIN TRANSICIONES - COMPLETAMENTE FIJO */
}

.dot.active {
    background: var(--primary-cyan);
    transform: scale(1.3);
}

/* HOVER ELIMINADO - DOT COMPLETAMENTE FIJO */

/* === CTA FINAL === */
.testimonials-cta {
    text-align: center;
    background: var(--gradient-hero);
    color: var(--white);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.testimonials-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.testimonials-cta h3 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.testimonials-cta p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.testimonials-cta .btn {
    position: relative;
    z-index: 2;
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-weight: 700;
    background: var(--white);
    color: var(--primary-blue);
    border: none;
}

/* HOVER ELIMINADO - BOTÓN CTA COMPLETAMENTE FIJO */

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .testimonials-stats {
        gap: var(--spacing-lg);
    }
    
    .stat-item {
        min-width: 120px;
        padding: var(--spacing-md);
    }
    
    .testimonials-container {
        height: 450px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: var(--spacing-2xl) 0;
    }
    
    .testimonials-stats {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .testimonials-container {
        height: 500px;
    }
    
    .testimonial-card {
        padding: var(--spacing-xl);
    }
    
    .testimonial-text {
        font-size: var(--font-size-base);
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
    }
    
    .carousel-controls {
        gap: var(--spacing-lg);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }
    
    .testimonials-cta {
        padding: var(--spacing-2xl);
    }
}

@media (max-width: 480px) {
    .testimonials-container {
        height: 550px;
    }
    
    .testimonial-card {
        padding: var(--spacing-lg);
    }
    
    .quote-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .testimonial-text {
        font-size: var(--font-size-sm);
    }
    
    .carousel-controls {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

/* === TEMA OSCURO === */
[data-theme="dark"] .testimonials {
    background: linear-gradient(135deg, 
        var(--gray-900) 0%, 
        var(--gray-800) 50%, 
        var(--gray-900) 100%);
}

[data-theme="dark"] .stat-item,
[data-theme="dark"] .testimonial-card {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

[data-theme="dark"] .testimonial-text {
    color: var(--gray-300);
}

[data-theme="dark"] .author-info h4 {
    color: var(--gray-100);
}

[data-theme="dark"] .author-info span {
    color: var(--gray-400);
}

[data-theme="dark"] .company-logo {
    background: var(--gray-700);
    color: var(--primary-cyan);
}

[data-theme="dark"] .carousel-btn {
    background: var(--gray-800);
    border-color: var(--gray-600);
    color: var(--gray-300);
}

[data-theme="dark"] .dot {
    background: var(--gray-600);
}

[data-theme="dark"] .stat-number {
    color: var(--primary-cyan);
}

[data-theme="dark"] .stat-label {
    color: var(--gray-400);
}
