/*** 
=============================================
   Testimonial Style1 Area Css
=============================================
***/
.testimonial-style1-area {
    position: relative;
    display: block;
    padding: 120px 0 120px;
    background: var(--thm-primary);
    z-index: 10;
}

.testimonial-style1-content {
    position: relative;
    display: block;
    z-index: 1;
}


.single-testimonial-style1 {
    position: relative;
    display: block;
    background: #eff7f6;
    padding: 50px 60px 0;
    box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease-in-out; /* Transición más rápida para hover */
    cursor: pointer; /* Cambia el cursor a mano */
}

/* Efecto hover */
.single-testimonial-style1:hover {
    background: #2f938b; /* Color de fondo al hacer hover (azul oscuro) */
    color: #ffffff; /* Color del texto blanco */
    
    /* Opcional: Cambia otros elementos internos */
    .text p,
    .client-name h3,
    .client-name span {
        color: #ffffff !important; /* Fuerza color blanco en texto interno */
    }
    
    /* Cambia sombra para mayor contraste */
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.2);
}

.single-testimonial-style1:hover {
    box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.15);
}

.single-testimonial-style1 .text {
    position: relative;
    display: block;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-break: break-word;
}

.single-testimonial-style1 .text p {
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0.1em;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-break: break-word;
    
    margin: 0;
    
}

.single-testimonial-style1 .bottom-box {
    position: relative;
    display: block;
    padding-top: 43px;
    padding-bottom: 48px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-break: break-word;
}

.single-testimonial-style1 .bottom-box .client-name {
    position: relative;
    display: block;
}

.single-testimonial-style1 .bottom-box .client-name h3 {
    color: var(--thm-black);
    font-size: 20px;
    line-height: 26px;
    margin: 0 0 2px;
}

.single-testimonial-style1 .bottom-box .client-name span {
    color: var(--thm-base);
    font-size: 12px;
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.2;
    letter-spacing: 1px;
    display: block;
    width: 100%;
    hyphens: manual; /* Mejor control que 'auto' para nombres */
}

.single-testimonial-style1 .bottom-box .client-img {
    position: fixed;
    transform: scale(0.8); /* Reduce el tamaño al 80% */
    bottom: 0;
    right: 0;
    background-color: transparent;
    padding: 15px;
    transition: all 2000ms linear;
    transition-delay: 0.1s;
}

.single-testimonial-style1:hover .bottom-box .client-img {
    background-color: transparent;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .single-testimonial-style1 .bottom-box .client-img {
        width: 70%;
        flex-direction: column;
        transform: scale(0.5); /* Reduce el tamaño al 80% */
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .single-testimonial-style1 .bottom-box .client-img {
        flex-direction: column;
        transform: scale(0.7); /* Reduce el tamaño al 80% */
        position: absolute;
        flex-direction: column;
        bottom: 0;
        right: 0;
        margin: 0;
        width: auto;
        padding: 15px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .single-testimonial-style1 .bottom-box .client-img .inner {
        flex-direction: row;
        width: 140px; /* Tamaño más grande para desktop */
        height: 140px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .single-testimonial-style1 .bottom-box .client-img {
        padding: 20px;
        flex-direction: column;
    }
    
    .single-testimonial-style1 .bottom-box .client-img .inner {
        width: 160px; /* Tamaño XL */
        height: 160px;
    }
}

/* Special case for very small devices (less than 380px) */
@media (max-width: 280px) {
    .single-testimonial-style1 .bottom-box .client-img {
        width: 90%; /* Más ancho en dispositivos muy pequeños */
        transform: scale(0.6) !important; /* Reduce el tamaño al 80% */
        margin-top: 15px;
        flex-direction: column;
    }
}

.single-testimonial-style1 .bottom-box .client-img .inner {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: var(--thm-bg);
    flex-direction: column;
}

.single-testimonial-style1 .bottom-box .client-img .inner img {
    width: 100%;
    mix-blend-mode: luminosity;
    flex-direction: column;
}

.single-testimonial-style1:hover .bottom-box .client-img .inner img {
    mix-blend-mode: normal;
}


.testimonial-carousel.owl-carousel .owl-stage-outer {
    overflow: visible;
}

.testimonial-carousel.owl-carousel .owl-stage-outer .owl-item {
    opacity: 0;
    -webkit-transform: perspective(400px) rotateX(0deg) scaleY(1.2);
    -ms-transform: perspective(400px) rotateX(0deg) scaleY(1.2);
    transform: perspective(400px) rotateX(0deg) scaleY(1.2);
    transition-delay: .1s;
    transition-timing-function: ease-in-out;
    transition-duration: .5s;
    transition-property: all;
    
}

.testimonial-carousel.owl-carousel .owl-stage-outer .owl-item.active {
    opacity: 1;
    -webkit-transform: perspective(400px) rotateX(0deg) scaleY(1.0);
    -ms-transform: perspective(400px) rotateX(0deg) scaleY(1.0);
    transform: perspective(400px) rotateX(0deg) scaleY(1.0);
    transition-delay: .1s;
    transition-timing-function: ease-in-out;
    transition-duration: .3s;
    transition-property: all;
}



/*** 
=============================================
   Testimonial Page Css
=============================================
***/
.testimonial-page {
    position: relative;
    display: block;
    padding: 120px 0 80px;
    background: var(--thm-primary);
    z-index: 10;
}

.testimonial-page .single-testimonial-style1 {
    margin-bottom: 40px;
}

