.sst {
  --sst-blue: #07549A;
  --sst-dark-blue: #073F76;
  --sst-green: #39B54A;
  --sst-text: #263746;
  --sst-muted: #667784;
  --sst-border: #E3ECF2;
  --sst-star: #FFB21C;
  --sst-card: #FFFFFF;
  position: relative;
  width: 100%;
  color: var(--sst-text);
}

.sst, .sst * { box-sizing: border-box; }

.sst__header {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.sst__eyebrow {
  margin-bottom: 12px;
  color: var(--sst-green);
  font-family: Manrope, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sst__title {
  margin: 0;
  color: var(--sst-dark-blue);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 400;
  line-height: 1.12;
}

.sst__intro {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--sst-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.sst__carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 18px;
  align-items: center;
}

/* El margen/padding compensado permite que las sombras y la tarjeta destacada no se recorten. */
.sst__viewport {
  overflow: hidden;
  margin: -22px -18px -38px;
  padding: 22px 18px 38px;
  outline: none;
}

.sst__viewport:focus-visible {
  border-radius: 18px;
  outline: 3px solid rgba(7, 84, 154, .25);
  outline-offset: -2px;
}

.sst__track {
  display: flex;
  gap: 28px;
  align-items: stretch;
  transition: transform .42s ease;
  will-change: transform;
}

.sst__card {
  flex: 0 0 calc((100% - 56px) / 3);
  min-width: 0;
  padding: 32px 30px 34px;
  border: 1px solid var(--sst-border);
  border-radius: 20px;
  background: var(--sst-card);
  box-shadow: 0 14px 34px rgba(7, 63, 118, .09);
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.sst__card.is-featured {
  border-color: rgba(7, 84, 154, .30);
  box-shadow: 0 18px 44px rgba(7, 63, 118, .13);
  transform: translateY(-6px);
}

.sst__person { text-align: center; }

.sst img.sst__avatar,
.sst__avatar {
  display: block !important;
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  min-width: 96px !important;
  aspect-ratio: 1 / 1;
  margin: 0 auto 16px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  object-position: center !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.sst__avatar--placeholder {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #EAF4FB;
  color: var(--sst-blue);
  font-family: Manrope, Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
}

.sst__name {
  margin: 0;
  color: var(--sst-dark-blue);
  font-family: Manrope, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.sst__role {
  margin-top: 5px;
  color: var(--sst-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}

.sst__rating {
  margin: 13px 0 18px;
  line-height: 1;
  letter-spacing: 2px;
}

.sst__star {
  color: #DCE5EC;
  font-size: 20px;
}

.sst__star.is-filled { color: var(--sst-star); }

.sst__quote {
  position: relative;
  margin: 0;
  padding: 20px 20px 18px;
  border: 0;
  quotes: none;
}

.sst__quote::before,
.sst__quote::after {
  position: absolute;
  color: #CFE7FB;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.sst__quote::before {
  content: "“";
  top: -2px;
  left: 0;
}

.sst__quote::after {
  content: "”";
  right: 0;
  bottom: -8px;
}

.sst__quote p {
  margin: 0;
  color: #4E5F6D;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

/* Aislar controles frente a estilos globales de Elementor/tema. */
.sst button.sst__arrow {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #D9E7F2 !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  color: var(--sst-blue) !important;
  font: inherit !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(7, 63, 118, .07) !important;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.sst button.sst__arrow:hover,
.sst button.sst__arrow:focus-visible {
  background: var(--sst-blue) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  outline: none !important;
}

.sst button.sst__arrow:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

.sst__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
}

.sst button.sst__dot {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: block !important;
  width: 9px !important;
  min-width: 9px !important;
  max-width: 9px !important;
  height: 9px !important;
  min-height: 9px !important;
  max-height: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #D8E1E8 !important;
  box-shadow: none !important;
  cursor: pointer;
  line-height: 0 !important;
}

.sst button.sst__dot.is-active { background: var(--sst-blue) !important; }

.sst button.sst__dot:focus-visible {
  outline: 2px solid rgba(7, 84, 154, .35) !important;
  outline-offset: 3px;
}

.sst__cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.sst .sst__cta-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 13px 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--sst-green) !important;
  color: #FFFFFF !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none !important;
}

.sst .sst__cta-link:not(.sst__cta-link--disabled):hover,
.sst .sst__cta-link:not(.sst__cta-link--disabled):focus-visible {
  filter: brightness(.94);
  color: #FFFFFF !important;
  outline: 3px solid rgba(57, 181, 74, .22);
  outline-offset: 3px;
}

.sst__cta-link--disabled {
  cursor: default;
}

.sst-empty {
  padding: 16px;
  border: 1px dashed #CCDCE8;
  border-radius: 10px;
  color: #667784;
  background: #F8FAFB;
}

@media (max-width: 1024px) {
  .sst__card { flex-basis: calc((100% - 24px) / 2); }
  .sst__track { gap: 24px; }
  .sst__carousel { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 12px; }
}

@media (max-width: 767px) {
  .sst__header { margin-bottom: 28px; }
  .sst__eyebrow { font-size: 13px; }
  .sst__intro { font-size: 15px; }
  .sst__carousel { grid-template-columns: 1fr; }
  .sst__viewport { order: 1; margin: -14px -10px -28px; padding: 14px 10px 28px; }
  .sst button.sst__arrow { position: absolute; z-index: 2; top: 56%; width: 40px !important; min-width: 40px !important; max-width: 40px !important; height: 40px !important; min-height: 40px !important; max-height: 40px !important; }
  .sst__arrow--prev { left: -4px; }
  .sst__arrow--next { right: -4px; }
  .sst__track { gap: 16px; }
  .sst__card,
  .sst__card.is-featured { flex-basis: 100%; padding: 28px 24px 30px; transform: none; }
  .sst img.sst__avatar,
  .sst__avatar { width: 82px !important; min-width: 82px !important; max-width: 82px !important; height: 82px !important; min-height: 82px !important; max-height: 82px !important; }
  .sst__quote { padding-left: 18px; padding-right: 18px; }
  .sst__dots { margin-top: 22px; }
  .sst__cta { margin-top: 24px; }
  .sst .sst__cta-link { width: 100%; max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .sst__track,
  .sst__card,
  .sst button.sst__arrow { transition: none !important; }
}
