/* ============================================
   TESTIMONIALS CAROUSEL STYLES
   Estilos para el carousel de testimonios
   ============================================ */

/* Carousel Wrapper */
.testimonials-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.testimonials-carousel {
    position: relative;
}

/* Carousel Track */
.testimonials-carousel-track {
    position: relative;
    width: 100%;
}

/* Testimonial Slide */
.testimonial-slide {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(20px);
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 1;
}

/* Smooth transition for slide changes */
.testimonials-carousel-track {
    position: relative;
    min-height: 400px; /* Asegurar altura mínima para evitar saltos */
    overflow: hidden;
}

/* Fade Effect - Side testimonials */
.testimonials-carousel-wrapper {
    position: relative;
}

.testimonials-carousel-wrapper::before,
.testimonials-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 60px; /* Dejar espacio para los dots */
    width: 100px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.testimonials-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(249, 250, 251, 1), rgba(249, 250, 251, 0));
    opacity: 0;
}

.testimonials-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(249, 250, 251, 1), rgba(249, 250, 251, 0));
    opacity: 1;
}

/* Estado inicial - primer slide */
.testimonials-carousel-wrapper:not(.show-fade-left):not(.hide-fade-left)::before {
    opacity: 0;
}

.testimonials-carousel-wrapper:not(.show-fade-right):not(.hide-fade-right)::after {
    opacity: 1;
}

/* Show fade effect based on current slide */
.testimonials-carousel-wrapper.show-fade-left::before {
    opacity: 1;
}

.testimonials-carousel-wrapper.show-fade-right::after {
    opacity: 1;
}

.testimonials-carousel-wrapper.hide-fade-left::before {
    opacity: 0;
}

.testimonials-carousel-wrapper.hide-fade-right::after {
    opacity: 0;
}

/* Carousel Dots Navigation */
.testimonials-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgb(214, 141, 0);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.carousel-dot:hover {
    background-color: rgba(214, 141, 0, 0.3);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: rgb(214, 141, 0);
    border-color: rgb(214, 141, 0);
    transform: scale(1.3);
}

.carousel-dot:focus {
    outline: 2px solid rgb(214, 141, 0);
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-carousel-wrapper::before,
    .testimonials-carousel-wrapper::after {
        width: 50px;
    }
}

/* Smooth transitions */
.testimonials-carousel-track {
    transition: transform 0.5s ease-in-out;
}

/* Accessibility */
.carousel-dot:focus-visible {
    outline: 2px solid rgb(214, 141, 0);
    outline-offset: 2px;
}

