/* Carrusel de testimonios (7 oct 2026, Pablo: «intercalando vídeos y los mejores pantallazos»).
   Vídeos (Kevin en nuestro servidor; Nacho M. y Nacho S. en Loom, que solo se carga al pulsar) alternados
   con capturas limpias de la revisión D59. Se desliza con el dedo; flechas en escritorio; la captura se
   abre entera al tocarla. Colores tomados de cada página con valores de reserva. */
.ct { position: relative; margin: 8px 0 8px; }
.ct-pista {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px;
  padding: 4px 4px 18px; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.ct-card {
  flex: 0 0 min(78vw, 280px); scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column;
  background: var(--bg3, var(--card, #141414)); border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 16px; overflow: hidden;
}
.ct-media { position: relative; aspect-ratio: 9 / 16; background: #000; overflow: hidden; }
.ct-media video, .ct-media iframe, .ct-media img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.ct-play {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none;
}
.ct-play img { object-fit: cover; }
.ct-play::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23111'/%3E%3C/svg%3E") 55% 50% / 28px no-repeat;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
}
.ct-play:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
/* captura: entera, en su proporción, arriba; la cita y el autor debajo, pegados al pie de la tarjeta */
.ct-texto { justify-content: space-between; }
.ct-texto .ct-cita-alta { padding: 22px 18px 0; font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--text, #f0f0f0); }
.ct-captura .ct-cita-alta { padding: 18px 16px 14px; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--text, #f0f0f0); }
.ct-captura .ct-media { aspect-ratio: auto; flex: 1; display: flex; align-items: center; background: #1c1c1c; }
.ct-abrir { position: relative; display: block; width: 100%; cursor: zoom-in; }
.ct-abrir img { position: static; display: block; width: 100%; height: auto; }
.ct-captura .ct-pie { padding-top: 12px; }
.ct-captura .ct-quien { margin-top: 0; }
.ct-abrir span {
  position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 99px; font-size: 12px; font-weight: 700;
  color: #fff; background: rgba(0,0,0,.72);
}
.ct-pie { padding: 14px 16px 16px; text-align: left; }
.ct-cita { font-size: 15px; line-height: 1.45; color: var(--text, #f0f0f0); }
.ct-quien { margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--muted, var(--text2, #9a9aa8)); }
.ct-quien b { color: var(--text, #fff); font-weight: 700; }
.ct-nav { display: none; }
@media (min-width: 900px) {
  .ct-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
  .ct-nav button {
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1;
    color: var(--text, #fff); background: transparent; border: 1px solid var(--border, rgba(255,255,255,.18));
  }
  .ct-nav button:hover { border-color: var(--text, #fff); }
}
.ct-visor { border: 0; padding: 0; margin: auto; background: transparent; max-width: min(92vw, 760px); max-height: 92vh; overflow: visible; }
.ct-visor::backdrop { background: rgba(0,0,0,.86); }
.ct-visor img { display: block; max-width: 100%; max-height: 86vh; width: auto; height: auto; border-radius: 8px; }
.ct-visor button {
  position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: #111; background: #fff;
}
@media (prefers-reduced-motion: reduce) { .ct-pista { scroll-behavior: auto; } }
