/* ===== SECCIÓN TESTIMONIOS ===== */
.pime-testimonios {
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(to bottom, #f8faff, #ffffff);
}

.pime-testimonios h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #0074a6;
  font-weight: bold;
}

/* Contenedor de reseñas */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Cada tarjeta */
.testimonial {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* === Encabezado (avatar + nombre + estrellas) === */
.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1a4e8a; /* azul médico */
  color: #fff;
  font-weight: bold;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.testimonial-header .info {
  margin-left: 12px;
}

.testimonial-header cite {
  font-style: normal;
  font-weight: bold;
  color: #333;
  display: block;
}

.testimonial-header .stars {
  color: #FFD700;
  font-size: 1.1rem;
  margin-top: 4px;
  text-align: left; /* Alineadas a la izquierda */
}

/* === Texto de reseña === */
.review-text {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 10px;
  overflow: hidden;
  max-height: 1.5em; /* 1 línea visible */
  transition: max-height 0.4s ease;
}

.review-text.expanded {
  max-height: 500px; /* cuando se expande */
}

/* === Botón ver más === */
.toggle-btn {
  background: none;
  border: none;
  color: #0074a6;
  cursor: pointer;
  font-weight: bold;
  padding: 0;
  margin-top: 5px;
  text-align: left;
  transition: color 0.3s;
  font-size: 0.95rem;
}
.toggle-btn:hover {
  color: #005f82;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonials {
    grid-template-columns: 1fr;
  }
  .avatar {
    width: 55px;
    height: 55px;
    font-size: 1.1rem;
  }
}

