/* ============================================================
   LeDor VaDor · V5 r04 · CARRUSELES (portada e historias)
   Pista con desplazamiento lateral y encaje por placa. app.js suma
   los puntos y maneja flechas y teclado; sin JavaScript se desliza
   igual con el dedo o el trackpad. Planos, sin redondeos.
   ============================================================ */

[data-carrusel-pista] {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
[data-carrusel-pista]::-webkit-scrollbar { display: none; }
[data-carrusel-pista] > li {
  flex: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
@media (prefers-reduced-motion: no-preference) {
  [data-carrusel-pista] { scroll-behavior: smooth; }
}
[data-carrusel-pista]:focus-visible {
  outline: 3px solid var(--c-foco);
  outline-offset: -3px;
}

.carrusel-puntos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.carrusel-puntos li {
  width: 0.5rem;
  height: 0.5rem;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.2s, width 0.2s;
}
.carrusel-puntos li.es-actual { width: 1.5rem; opacity: 1; }

.carrusel-flechas { display: flex; gap: 0.5rem; }
.carrusel-flecha {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, opacity 0.18s;
}
.carrusel-flecha:disabled { opacity: 0.3; cursor: default; }
.carrusel-flecha .icon { width: 1.25rem; height: 1.25rem; }
