#testimonials .testimonial-img-name {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#testimonials .testimonial-name-animated {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #2c5aa0;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  margin-bottom: 0.1rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

#testimonials .testimonial-item:hover .testimonial-name-animated {
  color: #4a73b8;
}
@keyframes namePop {
  0% { opacity: 0; transform: scale(0.7) translateY(20px); }
  80% { opacity: 1; transform: scale(1.12) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
#testimonials .testimonial-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  box-shadow: 0 12px 28px rgba(63, 187, 192, 0.18);
  border: 3px solid #ffffff;
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
}
#testimonials .testimonial-item:hover .testimonial-img {
  box-shadow: 0 14px 32px rgba(63, 187, 192, 0.24);
  transform: scale(1.05);
}
.animated-img {
  animation-delay: 0.2s;
}
@keyframes imgPop {
  0% { opacity: 0; transform: scale(0.7) translateY(-20px); }
  80% { opacity: 1; transform: scale(1.12) translateY(4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
#testimonials .testimonial-face {
  font-size: 2.7rem;
  margin-bottom: 0.7rem;
  transition: transform 0.3s, filter 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#testimonials .testimonial-item:hover .testimonial-face {
  transform: scale(1.18) rotate(-8deg);
  filter: drop-shadow(0 6px 18px #1a8cff66);
}
@keyframes faceBounce {
  0% { opacity: 0; transform: scale(0.5) translateY(-30px); }
  60% { opacity: 1; transform: scale(1.2) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
/* Estilos modernos y animados para la sección de testimonios */

#testimonials {
  background: linear-gradient(135deg, #f7f9fc 0%, #dbe4ed 100%);
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(44, 90, 160, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

#testimonials::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(195, 207, 226, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

#testimonials .section-title h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: #2c5aa0;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
  font-size: 1.8rem;
}

#testimonials .section-title p {
  color: #5a6c7d;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-bottom: 1.4rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

#testimonials .swiper {
  padding-bottom: 2rem;
}

#testimonials .testimonial-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
  padding: 1.4rem 1.2rem 1.2rem 1.2rem;
  margin: 0 0.45rem;
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(225, 232, 237, 0.9);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#testimonials .testimonial-item:hover {
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.14);
  transform: translateY(-3px);
  border-color: rgba(195, 207, 226, 0.9);
}

#testimonials .testimonial-item p {
  color: #4a5568;
  font-size: 0.95rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.65;
  margin-bottom: 1.15rem;
  text-align: center;
  max-width: 100%;
  background: rgba(245, 247, 250, 0.92);
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(225, 232, 237, 0.9);
}

#testimonials .testimonial-item h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #2c5aa0;
  font-size: 1rem;
  margin-top: 0.6rem;
  margin-bottom: 0.1rem;
}

#testimonials .testimonial-item h4 {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 0.9rem;
}

#testimonials .testimonial-item .bi-quote {
  color: #2c5aa0;
  font-size: 1.8rem;
  vertical-align: middle;
  opacity: 0.65;
  margin: 0 0.2rem;
}

#testimonials .testimonial-img {
  width: 70px;
  height: 70px;
}

#testimonials .swiper-pagination-bullets .swiper-pagination-bullet {
  background: #1a8cff;
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.3s;
  width: 9px;
  height: 9px;
  margin: 0 3px;
}

#testimonials .swiper-pagination-bullets .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.3);
  background: linear-gradient(90deg, #1a8cff 0%, #60aaff 100%);
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInText {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes titlePop {
  0% { opacity: 0; transform: scale(0.7) translateY(30px); }
  80% { opacity: 1; transform: scale(1.08) translateY(-6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes iconPop {
  0% { opacity: 0; transform: scale(0.5) rotate(-30deg); }
  80% { opacity: 1; transform: scale(1.2) rotate(10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 991px) {
  #testimonials .testimonial-item {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
}
