/*
 * Index: slider de reseñas (prefijo `trs-`).
 * Scroll horizontal con scroll-snap; flechas, puntos y autoplay en static/js/landing_resenias.js.
 */

.trs-slider { position: relative; margin-top: 18px; }

.trs-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 20px) / 3);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 26px; /* deja lugar a la sombra de las cards (el overflow la recorta) */
  scrollbar-width: none;
}
.trs-track::-webkit-scrollbar { display: none; }
.trs-track:focus-visible { outline: 2px solid #e85f32; outline-offset: 4px; border-radius: 16px; }

/* -------------------------------------------------------------- card */
.trs-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #ececef;
  box-shadow: 0 6px 18px rgba(24, 24, 27, .06);
}
.trs-estrellas { display: flex; gap: 3px; color: #f5a524; font-size: 1rem; }
.trs-texto {
  flex: 1;
  margin: 14px 0 18px;
  color: #3f3f46;
  font-family: "Poppins", sans-serif;
  font-size: .95rem;
  line-height: 1.65;
}
.trs-autor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #ececef;
}
.trs-icono {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff1ea;
  color: #e85f32;
  font-size: 1.1rem;
}
.trs-autor b {
  display: block;
  color: #18181b;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}
.trs-autor small { color: #8a8f99; font-family: "Poppins", sans-serif; font-size: .82rem; }

/* ----------------------------------------------------------- flechas */
.trs-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: -30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ececef;
  box-shadow: 0 6px 18px rgba(24, 24, 27, .1);
  color: #18181b;
  font-size: 1.1rem;
  transition: background .2s, color .2s, opacity .2s;
}
.trs-nav:hover { background: #18181b; color: #fff; }
.trs-nav:disabled { opacity: .35; pointer-events: none; }
.trs-nav--prev { left: -18px; }
.trs-nav--next { right: -18px; }

/* ------------------------------------------------------------ puntos */
.trs-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.trs-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e4e4e7;
  transition: width .25s, background .25s;
}
.trs-dots button.is-activo { width: 24px; background: #e85f32; }

/* ------------------------------------------------------------ mobile */
@media (max-width: 991px) {
  .trs-track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 767px) {
  .trs-track { grid-auto-columns: 86%; gap: 14px; }
  .trs-nav { display: none; }
  .trs-card { padding: 20px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .trs-track { scroll-behavior: auto; }
}
