/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Aug 11 2026 | 21:45:04 */
.uagb-tm__desc {
  display: -webkit-box;
  -webkit-line-clamp: 4; /* ajusta el número de líneas según tu diseño */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uagb-tm__content {
  display: flex;
  align-items: center; /* centra verticalmente imagen + texto como bloque */
  height: 100%;
}

.uagb-tm__text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra el texto+nombre dentro de su propio espacio */
}

.uagb-tm__desc img {
  display: inline !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 0.05em 0 0.1em !important;
  vertical-align: -0.1em !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.wp-block-uagb-testimonial .slick-track {
  display: flex !important;
  align-items: stretch;
}

.wp-block-uagb-testimonial .slick-slide {
  height: auto;
  display: flex !important;
}

.wp-block-uagb-testimonial .slick-slide > div {
  width: 100%;
}

.wp-block-uagb-testimonial .uagb-testimonial__wrap {
  height: 100% !important;
  width: 100%;
}

/* Límite de altura para desktop (agregar junto a tu CSS actual) */
.wp-block-uagb-testimonial .uagb-testimonial__wrap {
  height: 200px !important;   /* fija, no max-height */
  max-height: 200px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .wp-block-uagb-testimonial .uagb-tm__desc {
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    line-height: 21px;
  }

  .wp-block-uagb-testimonial .uagb-tm__content {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .wp-block-uagb-testimonial .uagb-tm__text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
	
  .wp-block-uagb-testimonial .uagb-testimonial__wrap {
	height: 200px !important;   /* fija, no max-height */
	max-height: 200px;
  	overflow: hidden;
  }
}
/*=================================================
MODAL DE LEER MAS
===================================================*/
/* Botón "Leer más" en la card */
.tm-read-more {
  display: inline-block;
  color: #A89067;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  user-select: none;
  font-family: 'Montserrat';
}

.tm-read-more:hover {
  text-decoration: underline;
}

/* Overlay del popup */
.tm-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: safe center;   /* CAMBIADO: centra si cabe, si no se comporta como flex-start */
  justify-content: center;
  padding: 5vh 16px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  overflow: auto;
  box-sizing: border-box;
}

.tm-popup-overlay.tm-popup-active {
  opacity: 1;
  visibility: visible;
}

/* Caja del popup */
.tm-popup-box {
  position: relative;
  background: #242018;
  border: 1px solid #A89067;
  border-radius: 12px;
  padding: 40px 32px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  max-height: 85vh;        /* NUEVO: limita el alto al 85% de la pantalla */
  overflow-y: auto;        /* NUEVO: scroll interno cuando el texto no cabe */
  box-sizing: border-box;  /* NUEVO: el padding no suma al ancho/alto total */
}

.tm-popup-overlay.tm-popup-active .tm-popup-box {
  transform: scale(1);
}

.tm-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #A89067;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.tm-popup-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.tm-popup-text {
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  font-family: 'Montserrat';
}

.tm-popup-name {
  color: #A89067;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Montserrat';
}