/* ============================================================
   testimonios.css — columna de testimonios en loop vertical
   ============================================================ */

.tst-columna {
  height: 100%;
  width: 100%;
}

.tst-viewport {
  height: 100%;
  overflow: hidden;
  /* Difumina arriba y abajo para que las tarjetas aparezcan/desaparezcan suave */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

.tst-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px; /* mantiene el ritmo del gap al reiniciar el loop */
  animation-name: tst-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* La lista está duplicada; subir un 50% deja el segundo juego donde estaba el primero */
@keyframes tst-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* ---------- Variante en fila horizontal (teléfono) ---------- */
.tst-viewport-h {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.tst-track-h {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: max-content;
  animation-name: tst-scroll-h;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.tst-fila .tst-card {
  width: 260px;
  max-width: 260px;
  flex-shrink: 0;
  padding: 16px 18px;
}
.tst-fila .tst-texto {
  font-size: 0.84rem;
  /* Recorta a 3 líneas para que todas las tarjetas midan parecido */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tst-fila .tst-persona { margin-top: 12px; }
@keyframes tst-scroll-h {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tst-fila:hover .tst-track-h { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .tst-track-h { animation: none; }
}

/* Al pasar el mouse, se pausa para poder leer */
.tst-columna:hover .tst-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .tst-track { animation: none; }
}

/* ---------- Tarjeta ---------- */
.tst-card {
  border-radius: 20px;
  padding: 22px 24px;
  border: 1px solid;
  max-width: 320px;
  width: 100%;
}

.tst-texto { font-size: 0.9rem; line-height: 1.5; }

.tst-persona {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.tst-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.tst-avatar-inicial {
  display: grid;
  place-items: center;
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 1rem;
}

.tst-datos { line-height: 1.25; min-width: 0; }
.tst-nombre {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tst-rol { font-size: 0.82rem; opacity: 0.6; }

/* ---------- Tema oscuro (para el lado azul del login) ---------- */
.tst-oscuro .tst-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(4px);
}
.tst-oscuro .tst-avatar-inicial {
  background: var(--turquesa);
  color: var(--oscuro);
}

/* ---------- Tema claro (para cfharuba.com o secciones claras) ---------- */
.tst-claro .tst-card {
  background: var(--panel);
  border-color: var(--linea);
  color: var(--texto);
  box-shadow: 0 8px 30px rgba(16, 24, 64, 0.08);
}
.tst-claro .tst-avatar-inicial {
  background: var(--azul);
  color: #fff;
}
