/* Testimonios (#historias): altura uniforme + "Leer más" */

/* Todos los slides comparten altura y los cortos quedan centrados en vertical */
.testimonial-three__carousel .owl-stage {
  display: flex;
}

.testimonial-three__carousel .owl-item {
  display: flex;
  align-items: center;
}

.testimonial-three__carousel .owl-item > .item {
  width: 100%;
}

/* Margen interior para que el redondeo de Owl no deje asomar el slide vecino */
.testimonial-three__item {
  padding: 0 12px;
}

/* Autor sin foto: sin hueco reservado para la imagen */
.testimonial-three__item__author.testimonial-three__item__author--no-img {
  padding-left: 0;
  min-height: 0;
}

/* Móvil: foto arriba y nombre/cargo centrados debajo */
@media (max-width: 767px) {
  .testimonial-three__item .testimonial-three__item__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding: 0;
    text-align: center;
  }

  .testimonial-three__item .testimonial-three__item__author img {
    position: static;
    margin-bottom: 8px;
  }

  .testimonial-three__item .testimonial-three__item__author__designation {
    line-height: 1.3;
  }
}

/* Cita recortada a 6 líneas */
.testimonial-three__item__quote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

@media (max-width: 767px) {
  .testimonial-three__item__quote {
    -webkit-line-clamp: 8;
    line-clamp: 8;
  }
}

.testimonial-three__item.is-expanded .testimonial-three__item__quote {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: none;
  overflow: visible;
}

/* Botón "Leer más": solo visible si el texto se corta */
.testimonial-three__more {
  display: none;
  margin: 0 auto 31px;
  padding: 0;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--kidearn-base, #F25334);
  cursor: pointer;
  transition: color 300ms ease;
}

.testimonial-three__more:hover,
.testimonial-three__more:focus-visible {
  text-decoration: underline;
}

.testimonial-three__item.is-clampable .testimonial-three__item__quote {
  margin-bottom: 8px;
}

.testimonial-three__item.is-clampable .testimonial-three__more {
  display: inline-block;
}
