/**
 * Estilos para el carousel de testimonios con Swiper.js
 */

.testimonials-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 60rem;
    margin: 0 auto;
    position: relative;
    row-gap: 1rem;
}

.testimonials-wrapper .testimonials-swiper {
    width: 100%;
    padding: 3.125rem 0;
    overflow: hidden;
}

.testimonials-wrapper .testimonials-swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.testimonials-wrapper .testimonial-container {
    width: 80%;
    background-color:#FFF;
    border-radius: 3.5rem;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
}



.testimonials-wrapper .testimonial-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.testimonials-wrapper .testimonial-user {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.testimonials-wrapper .testimonial-info h3 {
    color: #7963FF;
    margin: 0;
    font-size: 2rem;
    padding-top: 0.25rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.testimonials-wrapper .testimonial-info p {
    color: #121212;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 400;
}

.testimonials-wrapper .testimonial-image-container {
    width: 9rem;
    height: 9rem;
    border-radius: 0.75rem;
    background: #F6F1EF;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonials-wrapper .testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonials-wrapper .testimonial-image img {
    width: 100%;
}

.testimonials-wrapper .testimonial-image-placeholder {
    background: linear-gradient(135deg, #CD7D64 0%, #BF5638 100%);
}

.testimonials-wrapper .testimonial-text {
    display: flex;
    flex-direction: column;
    row-gap: 0;
    align-items: center;
}

.testimonials-wrapper .testimonial-text .quote-icon svg {
    width: 2.75rem;
    height: auto;
    fill: #7963FF;
}

.testimonials-wrapper .testimonial-text p {
    color: #555555;
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 300;
    margin: 0;
    text-align: center;
}

.testimonials-wrapper .gradual-icon {
    padding-top: 0;
}

.testimonials-wrapper .gradual-icon svg {
    width: 2.8125rem;
    height: auto;
}

.testimonials-wrapper .gradual-icon-img {
    width: 7.5rem;
    height: auto;
    display: block;
    object-fit: contain;
}

.testimonials-wrapper .swiper-button-next,
.testimonials-wrapper .swiper-button-prev {
    position: absolute;
    color: var(--e-global-color-787d29a);
    background-color: var(--e-global-color-primary);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    transition: all 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonials-wrapper .swiper-button-next::after,
.testimonials-wrapper .swiper-button-prev::after {
    font-size: 1rem;
}

.testimonials-wrapper .swiper-button-next:hover,
.testimonials-wrapper .swiper-button-prev:hover {
    color: var(--e-global-color-text);
    background-color: var(--e-global-color-secondary);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    .testimonials-wrapper {
        row-gap: 2rem;
    }

    .testimonials-wrapper .testimonials-swiper {
        padding: 0;
    }

    .testimonials-wrapper .testimonial-container {
        padding: 1.875rem;
        text-align: center;
        width: 100%;
        border-radius: 2.5rem;
        gap: 0.5rem;
    }

    .testimonials-wrapper .testimonial-container::before {
        border-radius: 2.5rem;
    }

    .testimonials-wrapper .testimonial-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .testimonials-wrapper .testimonial-user {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .testimonials-wrapper .testimonial-info h3 {
        font-size: 1.75rem;
    }

    .testimonials-wrapper .testimonial-info p {
        font-size: 1.1rem;
    }

    .testimonials-wrapper .gradual-icon {
        padding-top: 0;
    }

    .testimonials-wrapper .testimonial-text p {
        font-size: 1rem;
    }

    .testimonials-wrapper .gradual-icon svg {
        width: 2rem;
    }

    .testimonials-wrapper .gradual-icon-img {
        width: 5rem;
    }

    .testimonials-wrapper .testimonial-text .quote-icon svg {
        width: 2rem;
    }

     .testimonials-wrapper .testimonial-text .quote-icon {
        padding-top: 0.5rem;
     }


}

@media (min-width: 1025px) and (max-width: 2499px) {
    .testimonials-wrapper .testimonial-text {
        font-size: 1.25rem;
    }
}

@media (min-width: 2500px) {
    .testimonials-wrapper .testimonial-text {
        font-size: 1.5rem;
    }

    .testimonials-wrapper .testimonial-info h3 {
        font-size: 1.875rem;
    }

    .testimonials-wrapper .testimonial-image-container {
        width: 6.25rem;
        height: 6.25rem;
    }

    .testimonials-wrapper .testimonial-container {
        width: 85%;
    }
}
