/* ============ Loop Carousel (lc) - CSS completo ============ */

/* Reset mínimo para listas dentro del carrusel */
.lc-viewport ul,
.lc-track {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Contenedor principal */
.lc {
  /* variables de diseño */
  --peek: 7vw;              /* cuánto “asoma” el slide a los lados */
  --radius: 18px;           /* radio del borde de cada tarjeta */
  --gap: 28px;              /* separación entre slides */
  --shadow: 0 16px 40px rgba(0,0,0,.18);
  --duration: .55s;         /* animación de deslizamiento */

  position: relative;
  max-width: 1400px;
  margin-inline: auto;
  padding: 12px 0 28px;
}

/* Ventana */
.lc-viewport { overflow: hidden; }

/* Carril */
.lc-track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform var(--duration) cubic-bezier(.22,1,.36,1);
  padding-inline: var(--peek);
}

/* Slide (por defecto deja “peek” a los lados) */
.lc-slide { flex: 0 0 calc(100% - (var(--peek) * 2)); }

/* Tarjeta clicable (imagen + overlay + caption) */
.lc-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
  color: inherit;
  text-decoration: none;
}
.lc-card:visited { color: inherit; }

/* Imagen */
.lc-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
  transform: scale(1.001);
  transition: transform .6s ease;
}
.lc-card:hover img { transform: scale(1.02); }

/* Overlay sutil para legibilidad */
.lc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.22) 100%);
  pointer-events: none;
}

/* Caption tipo Apple TV+ */
.lc-caption {
  position: absolute;
  left: 24px;
  bottom: 18px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  z-index: 1;
}
.lc-caption h3 {
  margin: 6px 0 0;
  font-size: clamp(22px, 3.2vw, 54px);
  font-weight: 700;
  line-height: 1.02;
}
.lc-pill {
  display: inline-block;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
}

/* Flechas */
.lc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 9999px;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  z-index: 2;
}
.lc-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.lc-prev { left: 18px; }
.lc-next { right: 18px; }

/* Dots (paginación) */
.lc-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.lc-dots button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: 0;
  background: #cfcfd4;
  opacity: .7;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease, width .3s ease;
}
.lc-dots button[aria-selected="true"] {
  opacity: 1;
  width: 18px;
  border-radius: 9999px;
}

/* Accesibilidad (focus visible) */
.lc-arrow:focus-visible,
.lc-dots button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* Responsive: móvil (ocultar flechas; ajustar “peek”) */
@media (max-width: 768px) {
  .lc { --peek: 5vw; --gap: 16px; }
  .lc-arrow { display: none; }
}

/* Modo “TV” (slide ocupa el 100% de ancho, sin peek ni gap)
   Añade la clase .lc--tv al contenedor .lc para este look. */
.lc.lc--tv { --peek: 0; --gap: 0; max-width: 1400px; }
.lc.lc--tv .lc-track { padding-inline: 0; }
.lc.lc--tv .lc-slide { flex: 0 0 100%; }
.lc.lc--tv .lc-dots { margin-top: 16px; }

/* Reduce motion (opcional) */
@media (prefers-reduced-motion: reduce) {
  .lc-track,
  .lc-card img,
  .lc-arrow,
  .lc-dots button { transition: none !important; }
}
