/* 
    CSS para la sección: Testimonios de Clientes (Carrusel)
    Incluye todos los estilos necesarios para esta sección
    Variables CSS incluidas para fácil personalización
*/

/* Variables CSS */
:root {
    --space-2: 0.5rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-greige: #f5f5f0;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-accent: #2c5aa0;
    --color-secondary: #d4af37;
    --border-radius: 8px;
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

/* Utility Classes */
.testimonials-section .flex { display: flex; }
.testimonials-section .flex-wrap { flex-wrap: wrap; }
.testimonials-section .flex-column { flex-direction: column; }
.testimonials-section .items-center { align-items: center; }
.testimonials-section .items-end { align-items: flex-end; }
.testimonials-section .justify-between { justify-content: space-between; }
.testimonials-section .justify-end { justify-content: flex-end; }
.testimonials-section .gap-4 { gap: var(--space-4); }
.testimonials-section .txt-subtitle { font-size: 1.125rem; }
.testimonials-section .txt-headline { font-size: 2.5rem; font-weight: 700; }
.testimonials-section .txt-body { font-size: 1rem; }
.testimonials-section .txt-caption { font-size: 0.875rem; color: var(--color-text-light); }
.testimonials-section .col-100 { width: 100%; }
.testimonials-section .col-sm-70 { width: 70%; }

/* Section Container */
.testimonials-section .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

/* Spacer */
.testimonials-section .spacer {
    display: block;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--color-bg-greige);
    padding: var(--space-12) 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
}

/* Swiper Container */
.swiper-testimonials {
    padding: var(--space-8) 0;
    overflow: visible;
}

.swiper-testimonials .swiper-wrapper {
    align-items: stretch;
}

/* Testimonial Slides */
.testimonial-slide {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    height: auto;
    transition: all 0.3s ease;
}

.testimonial-slide:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.testimonial-slide .testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.testimonial-slide .testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-8);
    font-style: italic;
    flex: 1;
}

.testimonial-slide .testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

/* Buttons */
.testimonials-section .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.testimonials-section .btn-secondary:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.testimonials-section .btn-small {
    font-size: 0.875rem;
    padding: var(--space-2) var(--space-4);
}

.testimonials-section .rounded {
    border-radius: 20px;
}

.testimonials-section .symbol.arrow {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.testimonials-section .symbol.arrow polygon {
    fill: currentColor;
}

/* Swiper Navigation */
.testimonials-section .swiper-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-8);
    z-index: 10;
    pointer-events: none;
}

.testimonials-section .swiper-btn-prev,
.testimonials-section .swiper-btn-next {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
    box-shadow: var(--shadow-md);
    border: 1px solid #e5e5e5;
}

.testimonials-section .swiper-btn-prev:hover,
.testimonials-section .swiper-btn-next:hover {
    background: var(--color-accent);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.testimonials-section .swiper-btn-prev:hover svg polygon,
.testimonials-section .swiper-btn-next:hover svg polygon {
    fill: white;
}

.testimonials-section .swiper-btn-prev.swiper-button-disabled,
.testimonials-section .swiper-btn-next.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.testimonials-section .swiper-btn-prev svg,
.testimonials-section .swiper-btn-next svg {
    width: 20px;
    height: 20px;
}

.testimonials-section .swiper-btn-prev svg polygon,
.testimonials-section .swiper-btn-next svg polygon {
    fill: var(--color-text);
    transition: fill 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials-section {
        padding: var(--space-8) 0;
    }
    
    .testimonials-section .txt-headline {
        font-size: 2rem;
    }
    
    .testimonial-slide {
        padding: var(--space-6);
        min-height: auto;
    }
    
    .testimonial-slide .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-slide .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    
    .testimonials-section .swiper-nav {
        display: none;
    }
    
    .testimonials-section .section-container {
        padding: 0 var(--space-4);
    }
    
    .testimonials-section .col-sm-70 {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .testimonial-slide .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
}

