/* Carrusel de fotos (portada y páginas de contenido) — assets/js/carrusel.js */
.carrusel { position: relative; margin-top: 4px; background: #222; }
.carrusel__pista {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; aspect-ratio: 1000 / 450;
}
.carrusel__pista::-webkit-scrollbar { display: none; }
.carrusel__foto { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.carrusel__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 599px) { .carrusel__pista { aspect-ratio: 4 / 3; } }

.carrusel__flecha {
  position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 56px; border: 0; padding: 0;
  background: transparent; color: #fff; font-size: 44px; line-height: 1; cursor: pointer;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6); opacity: .85;
}
.carrusel__flecha:hover { opacity: 1; }
.carrusel__flecha--ant { left: 6px; }
.carrusel__flecha--sig { right: 6px; }
.carrusel--contenido { margin: 1.6em 0; }
.carrusel--contenido .carrusel__pista { aspect-ratio: 4 / 3; }
.carrusel--contenido .carrusel__foto img { object-fit: contain; background: #fff; }
