/* Testimonios del home: mismas cards que la landing de diagnóstico gratis. */

.testimonials {
  --bg-violet: #1c0940;
  --white: #ffffff;
  --purple: #7b2ff7;
  --gradient: linear-gradient(92deg, #7b2ff7 0%, #e63d8c 55%, #ff6a2b 100%);
  --font-display: "Manrope", system-ui, sans-serif;
  background: var(--bg-violet);
  color: var(--white);
  padding: 56px 0 64px;
}

.testimonials .section-title {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.3px;
  text-align: center;
}

.t-carousel {
  margin-top: 22px;
}

.t-carousel__viewport {
  overflow: hidden;
}

.t-carousel__track {
  display: flex;
  gap: 14px;
  transition: transform 0.55s ease;
}

.t-card {
  position: relative;
  flex: 0 0 calc(100% - 12px);
  width: calc(100% - 12px);
  height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #14082e;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  font: inherit;
  appearance: none;
}

.t-card:hover,
.t-card:focus-visible {
  border-color: rgba(123, 47, 247, 0.35);
}

.t-card:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.t-card__photo {
  position: absolute;
  inset: 0;
}

.t-card__photo img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center 20%;
}

.t-card__play {
  position: absolute;
  left: 50%;
  top: 46%;
  right: auto;
  bottom: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
}

.t-card__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 72px 18px 18px;
  background: linear-gradient(to top, rgba(11, 5, 24, 0.94) 0%, rgba(11, 5, 24, 0.55) 55%, transparent 100%);
}

.t-card__stars {
  display: flex;
  gap: 2px;
  color: #ffb020;
}

.t-card__quote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.t-card__name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.t-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.t-carousel__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.t-carousel__dots button.is-on {
  background: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .t-carousel__track {
    transition: none;
  }
}

@media (min-width: 900px) {
  .t-carousel__track {
    justify-content: center;
  }

  .t-card {
    flex: 0 0 min(280px, calc((100% - 28px) / 3));
    width: auto;
    height: auto;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.06);
  }

  .t-card__photo {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    min-height: 0;
  }

  .t-card__photo img {
    border-radius: 12px;
  }

  .t-card__play {
    left: auto;
    top: auto;
    right: -2px;
    bottom: -2px;
    width: 26px;
    height: 26px;
    transform: none;
    box-shadow: 0 4px 10px rgba(123, 47, 247, 0.35);
  }

  .t-card__copy {
    padding: 0;
    background: none;
  }
}
