#testimonios {
  --testimonials-columns: 3;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

#testimonios .testimonials-heading { max-width: 850px; }
#testimonios .testimonials-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
}
#testimonios .title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
#testimonios .lead { max-width: 75ch; }
#testimonios .testimonials-disclaimer {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 3px solid var(--red);
  color: var(--muted);
  font-size: .9rem;
  max-width: 78ch;
}
#testimonios .testimonials-disclaimer strong { display: block; color: var(--navy); font-weight: 600; }
#testimonios .testimonials-viewport { overflow: hidden; padding: 12px; margin: -12px; }
#testimonios .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(var(--testimonials-columns), minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
#testimonios .testimonials-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 450px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: 0 6px 12px rgba(18, 48, 107, .05);
}
#testimonios [hidden] { display: none !important; }
#testimonios .testimonials-program {
  align-self: flex-start;
  color: var(--navy);
  background: var(--soft);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
}
#testimonios .testimonials-quote {
  height: 57px;
  margin-top: 18px;
  color: var(--red);
  font: 700 4.6rem/1 'Montserrat', sans-serif;
}
#testimonios blockquote { flex: 1; font-size: 1.05rem; line-height: 1.75; color: var(--ink); }
#testimonios figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
}
#testimonios figcaption b { display: block; font-family: 'Montserrat', sans-serif; color: var(--navy); font-size: .97rem; }
#testimonios .testimonials-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-size: .86rem;
  font-weight: 700;
}
#testimonios .testimonials-role, #testimonios .testimonials-location { display: block; font-size: .84rem; line-height: 1.45; color: var(--muted); }
#testimonios .testimonials-role { margin-top: 5px; }
#testimonios .testimonials-location { margin-top: 3px; }
#testimonios .testimonials-controls { margin-top: 30px; }
#testimonios .testimonials-navigation { display: flex; justify-content: center; align-items: center; gap: 16px; }
#testimonios button { font: inherit; cursor: pointer; touch-action: manipulation; }
#testimonios .testimonials-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  transition: transform .2s;
}
#testimonios .testimonials-arrow:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
#testimonios .testimonials-arrow:active { transform: scale(.95); }
#testimonios .testimonials-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
#testimonios .testimonials-indicators { display: flex; flex-wrap: wrap; justify-content: center; max-width: 520px; }
#testimonios .testimonials-dot { display: grid; place-items: center; width: 28px; height: 44px; border: 0; background: transparent; }
#testimonios .testimonials-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #8b98af; transition: transform .2s; }
#testimonios .testimonials-dot[aria-current="true"]::before { background: var(--red); transform: scale(1.45); }
#testimonios .testimonials-dot:hover::before { background: var(--navy); }
#testimonios .testimonials-playback { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 18px; margin-top: 12px; color: var(--muted); font-size: .86rem; }
#testimonios .testimonials-position { color: var(--navy); font-weight: 600; }
#testimonios .testimonials-toggle { min-height: 44px; padding: 6px 8px; color: var(--navy); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; }
#testimonios .testimonials-toggle:disabled { cursor: default; color: var(--muted); text-decoration: none; }
#testimonios button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
#testimonios .testimonials-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 960px) {
  #testimonios { --testimonials-columns: 2; }
}
@media (max-width: 600px) {
  #testimonios { --testimonials-columns: 1; }
  #testimonios .testimonials-card { min-height: 460px; padding: 24px; }
  #testimonios .testimonials-eyebrow { letter-spacing: .08em; font-size: .68rem; }
  #testimonios .testimonials-navigation { gap: 8px; }
  #testimonios .testimonials-dot { width: 26px; }
  #testimonios .testimonials-timing { flex-basis: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  #testimonios *, #testimonios *::before { animation: none !important; transition: none !important; }
}
