/* ============================================
   TESTIMONIALS SECTION - SIN ESPACIO EXTRA
   ============================================ */

.testimonials-section {
    padding: 60px 0 60px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 35px;
}

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(22, 101, 52, 0.08);
    border-radius: 50px;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 8px;
}

.section-intro {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* CRÍTICO: Eliminar TODOS los espacios del slider */
.testimonials-glide,
#testimonialsSlider {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    max-height: 180px !important;
}

.testimonials-glide .glide__track,
#testimonialsSlider .glide__track {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 160px !important;
    max-height: 160px !important;
}

.testimonials-glide .glide__slides,
#testimonialsSlider .glide__slides {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    height: 160px !important;
    max-height: 160px !important;
    align-items: stretch !important;
}

.testimonials-glide .glide__slide,
#testimonialsSlider .glide__slide {
    height: 160px !important;
    max-height: 160px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* OCULTAR TODO */
.testimonials-glide .glide__bullets,
.testimonials-glide .glide__arrows,
.testimonials-glide .glide__arrow,
#testimonialsSlider .glide__bullets,
#testimonialsSlider .glide__arrows,
#testimonialsSlider .glide__arrow,
#testimonialsSlider [data-glide-el="controls"],
#testimonialsSlider [data-glide-el="controls[nav]"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Card - Altura fija estricta */
.testimonial-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 14px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 160px !important;
    max-height: 160px !important;
    min-height: 160px !important;
    margin: 0 !important;
}

.testimonial-card:hover {
    border-color: #166534;
    box-shadow: 0 6px 20px rgba(22, 101, 52, 0.06);
    transform: translateY(-2px);
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    height: 15px;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 13px;
}

.testimonial-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
    margin-bottom: 12px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
    height: 42px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.author-info {
    flex-grow: 1;
    min-width: 0;
}

.author-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-company {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .testimonials-section {
        padding: 55px 0 55px 0;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .testimonials-glide,
    #testimonialsSlider {
        max-height: 190px !important;
    }
    
    .testimonials-glide .glide__track,
    #testimonialsSlider .glide__track,
    .testimonials-glide .glide__slides,
    #testimonialsSlider .glide__slides,
    .testimonials-glide .glide__slide,
    #testimonialsSlider .glide__slide {
        height: 170px !important;
        max-height: 170px !important;
    }
    
    .testimonial-card {
        height: 170px !important;
        max-height: 170px !important;
        min-height: 170px !important;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 50px 0 50px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-intro {
        font-size: 13px;
    }
    
    .testimonials-glide,
    #testimonialsSlider {
        max-height: 175px !important;
    }
    
    .testimonials-glide .glide__track,
    #testimonialsSlider .glide__track,
    .testimonials-glide .glide__slides,
    #testimonialsSlider .glide__slides,
    .testimonials-glide .glide__slide,
    #testimonialsSlider .glide__slide {
        height: 155px !important;
        max-height: 155px !important;
    }
    
    .testimonial-card {
        padding: 14px 12px;
        height: 155px !important;
        max-height: 155px !important;
        min-height: 155px !important;
    }
    
    .testimonial-text {
        font-size: 12px;
        -webkit-line-clamp: 2;
        margin-bottom: 10px;
    }
    
    .author-avatar {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .author-name {
        font-size: 12px;
    }
    
    .author-company {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 45px 0 45px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .testimonials-glide,
    #testimonialsSlider {
        max-height: 165px !important;
    }
    
    .testimonials-glide .glide__track,
    #testimonialsSlider .glide__track,
    .testimonials-glide .glide__slides,
    #testimonialsSlider .glide__slides,
    .testimonials-glide .glide__slide,
    #testimonialsSlider .glide__slide {
        height: 145px !important;
        max-height: 145px !important;
    }
    
    .testimonial-card {
        padding: 12px 10px;
        height: 145px !important;
        max-height: 145px !important;
        min-height: 145px !important;
    }
    
    .testimonial-rating i {
        font-size: 12px;
    }
    
    .testimonial-text {
        font-size: 12px;
        line-height: 1.4;
    }
}
