/* Client stories: readable portrait cards and restrained, optional movement. */
.testimonials {
  padding: 72px 0 66px;
  background: radial-gradient(ellipse at 50% 0, #282b2c 0, #181b1c 50%, #121516 100%);
  border-top: 1px solid #ffffff0d;
  scroll-margin-top: 90px;
}
.testimonials__heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 30px; }
.testimonials h2 {
  margin: 10px 0 0;
  font: 750 clamp(25px, 3vw, 38px)/1.07 var(--display);
  letter-spacing: -.045em;
}
.testimonials h2 em { color: #a6adab; font-style: normal; }
.testimonials__controls { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.testimonials__controls[hidden] { display: none; }
.testimonials__controls button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #777f7d;
  border-radius: 24px;
  background: #1c2021;
  color: #e8ecea;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.testimonials__controls button:hover { border-color: #e44848; background: #332021; }
.testimonials__controls button:disabled { opacity: .35; cursor: default; border-color: #626967; background: #1c2021; }
.testimonials__controls button:focus-visible, .testimonials__track:focus-visible {
  outline: 2px solid #ff6767;
  outline-offset: 4px;
}
.testimonials__track {
  position: relative;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #5b6260 #171b1c;
  padding: 0 0 18px;
  margin: 0;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}
.testimonial {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.testimonial__figure {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  margin: 0;
  border: 1px solid #69706e66;
  border-radius: 16px 4px 16px 4px;
  background: #1c2021;
}
.testimonial__figure > img {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 33 / 32;
  object-fit: cover;
  object-position: center;
}
/* Keep each original photo's faces in frame without an overlay or text on top. */
.testimonial__figure > img[src$="foto-cliente1.jpeg"] { object-position: 50% 0%; }
.testimonial__figure > img[src$="foto-cliente2.jpeg"] { object-position: 50% 80%; }
.testimonial__figure > img[src$="foto-cliente3.jpeg"] { object-position: 50% 87%; }
.testimonial__figure > img[src$="cliente5.jpg"] { object-position: 50% 15%; }
.testimonial__figure > img[src$="cliente7.jpg"] { object-position: 50% 70%; }
.testimonial__figure > img[src$="cliente6.png"] { object-position: 50% 64%; }
.testimonial__figure > img[src$="cliente5.png"] { object-position: 50% 60%; }
.testimonial__figure > img[src$="cliente8.jpg"] { object-position: 50% 40%; }
.testimonial__caption { flex: 1; width: 100%; padding: 22px 24px 26px; background: #131718; border-top: 1px solid #ffffff12; }
.testimonial__caption::before { content: ""; display: block; width: 24px; height: 2px; margin-bottom: 15px; background: #ed4243; }
.testimonial__caption h3 { margin: 0; color: #fff; font: 700 18px/1.3 var(--display); letter-spacing: -.015em; }
.testimonial__affiliation { display: block; margin-top: 4px; color: #c8cdca; font-size: 13px; line-height: 1.4; }
.testimonial blockquote { margin: 13px 0 0; }
.testimonial blockquote p { margin: 0; color: #f1f3f2; font-size: 16px; line-height: 1.55; }
.testimonials__foot { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 16px; color: #a8b0ad; font-size: 12px; }
.testimonials__foot p { margin: 0; }
.testimonials__foot a { text-decoration: underline; text-underline-offset: 3px; }
.testimonials__count { color: #c8ceca; font-variant-numeric: tabular-nums; letter-spacing: .08em; white-space: nowrap; }
@media (max-width: 860px) {
  .testimonials__heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .testimonial { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 560px) {
  .testimonials { padding: 48px 0 44px; }
  .testimonials__heading { margin-bottom: 24px; }
  .testimonials__controls { width: 100%; gap: 8px; }
  .testimonials__controls button { flex: 1; padding-inline: 9px; }
  .testimonials__track { gap: 14px; }
  .testimonial { flex-basis: 88%; }
  .testimonial__caption { padding: 20px 20px 24px; }
  .testimonials__foot { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials__controls button { transition: none; }
  .testimonials__track { scroll-behavior: auto; }
}
