/* Testimonios de clientes en el home: grid 3 columnas en desktop,
   fila horizontal desplazable en tablet (2) y móvil (1). Sin JS. */
#wsus__testimonials {
  margin-top: 40px;
}
#wsus__testimonials .row > div {
  min-width: 0;
  max-width: 100%;
}
.wsus__testimonials_track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 24px;
}
@media (min-width: 992px) {
  .wsus__testimonial_card {
    flex: 0 1 calc((100% - 40px) / 3);
    min-width: 0;
  }
}
.wsus__testimonials_track:focus-visible {
  outline: 2px solid #08c;
  outline-offset: 3px;
  border-radius: 16px;
}
/* mas alla de los 3 principales: ocultos hasta "Ver mas" */
.wsus__testimonial_card.is-extra {
  display: none;
}
.wsus__testimonials_track.is-expanded .wsus__testimonial_card.is-extra {
  display: flex;
}
/* Resumen agregado: promedio + conteo de resenas verificadas */
.wsus__testimonials_summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  width: fit-content;
  max-width: 100%;
  margin: 6px auto 0;
  padding: 7px 14px;
  font-size: 12.5px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}
.wsus__testimonials_summary strong {
  font-size: 14px;
  font-weight: 800;
  color: #0b2c3d;
}
/* Texto azul como el outline (gana a .common_btn), blanco en hover.
   Incluye el span de la etiqueta para que herede el color. */
#wsus__testimonials .wsus-load-more-btn,
#wsus__testimonials .wsus-load-more-btn:link,
#wsus__testimonials .wsus-load-more-btn:visited {
  color: #08c;
}
#wsus__testimonials .wsus-load-more-btn:hover,
#wsus__testimonials .wsus-load-more-btn:active {
  color: #fff;
}
#wsus__testimonials .wsus-load-more-btn .wsus__tm_label {
  color: inherit;
}
.wsus__testimonial_card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(11, 44, 61, 0.06);
  padding: 24px 22px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) and (min-width: 992px) {
  .wsus__testimonial_card:hover {
    transform: translateY(-2px);
    border-color: #d7e6f5;
    box-shadow: 0 12px 32px rgba(11, 44, 61, 0.1);
  }
}
.wsus__testimonial_quote {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 30px;
  color: #e0f2fe;
}
.wsus__testimonial_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-right: 34px;
}
.wsus__testimonial_verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 3px 9px;
}
.wsus__testimonial_verified i {
  font-size: 11px;
}
.wsus__testimonial_stars {
  display: flex;
  gap: 3px;
}
.wsus__testimonial_stars i {
  font-size: 13px;
  color: #e2e8f0;
}
.wsus__testimonial_stars i.is-on {
  color: #fbbf24;
}
.wsus__testimonial_msg {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  overflow-wrap: break-word;
}
.wsus__testimonial_who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.wsus__testimonial_who img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0f2fe;
}
.wsus__testimonial_initials {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.wsus__testimonial_who > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wsus__testimonial_who strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #0b2c3d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wsus__testimonial_who span {
  font-size: 12px;
  color: #8a99a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wsus__testimonials_hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: #8a99a6;
}
.wsus__testimonials_hint i {
  font-size: 11px;
}
/* Controles bajo la fila: visibles solo en móvil/tablet. */
.wsus__testimonials_controls {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.wsus__testimonials_pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #0b2c3d;
  background: #fff;
  border: 1px solid #dbe6f0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.wsus__testimonials_pause[hidden] {
  display: none;
}
.wsus__testimonials_pause i {
  font-size: 11px;
}
.wsus__testimonials_pause:hover {
  background: #f0f7ff;
  border-color: #bcd8ee;
}
.wsus__testimonials_pause:focus-visible {
  outline: 2px solid #08c;
  outline-offset: 2px;
}
@media (max-width: 991.98px) {
  #wsus__testimonials {
    margin-top: 28px;
  }
  .wsus__testimonials_track {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .wsus__testimonials_track::-webkit-scrollbar {
    display: none;
  }
  /* En tablet y móvil todos los testimonios viven en la fila deslizable. */
  .wsus__testimonial_card,
  .wsus__testimonial_card.is-extra {
    display: flex;
  }
  .wsus__testimonial_card {
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .wsus__testimonials_controls {
    display: flex;
  }
  .wsus__testimonials_hint {
    display: flex;
  }
  #wsus__testimonials .wsus-load-more-wrap {
    display: none;
  }
}
@media (max-width: 767.98px) {
  .wsus__testimonial_card {
    flex-basis: 100%;
    gap: 10px;
    padding: 22px 20px 18px;
  }
  .wsus__testimonial_msg {
    font-size: 13.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wsus__testimonials_track {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
  .wsus__testimonial_card {
    transition: none;
  }
  .wsus__testimonial_card:hover {
    transform: none;
  }
}
