/* Carrusel de banners de la portada (partials/banners.php). Las imágenes ya traen su texto: el marco no compite con ellas. Solo flechas (escritorio) y deslizar (móvil). */
.andes-bn {
  --bn-ratio: 2251 / 1098;
  --bn-radio: 20px;
  max-width: var(--content-max, 1300px);
  margin: 24px auto 0;
  padding: 0 var(--gutter, 24px);
}
.andes-bn__viewport { position: relative; }
.andes-bn__track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--bn-radio);
  background: #E5E7EB;
  box-shadow: 0 22px 44px -22px rgba(15, 23, 42, .38), 0 2px 6px rgba(15, 23, 42, .08);
}
.andes-bn__track::-webkit-scrollbar { display: none; }
.andes-bn__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  aspect-ratio: var(--bn-ratio);
}
.andes-bn__slide picture, .andes-bn__link { display: block; width: 100%; height: 100%; }
.andes-bn__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.andes-bn__link:focus-visible { outline: 4px solid var(--navy, #0F172A); outline-offset: -4px; }

/* Flechas: solo con varios banners; sobre los bordes, sin tapar el centro. */
.andes-bn__arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 48px; height: 48px; margin-top: -24px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  color: var(--navy, #0F172A); background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .22);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease;
}
.andes-bn__arrow--prev { left: 14px; }
.andes-bn__arrow--next { right: 14px; }
.andes-bn__arrow:hover { transform: scale(1.07); box-shadow: 0 8px 22px rgba(15, 23, 42, .28); }
.andes-bn__arrow:active { transform: scale(.96); }
.andes-bn__arrow:focus-visible { outline: 3px solid var(--navy, #0F172A); outline-offset: 3px; }

/* Título principal de la página, solo para buscadores y lectores de pantalla. */
.andes-bn__h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Móvil: imagen vertical 4:5, sin flechas (se desliza con el dedo). */
@media (max-width: 720px) {
  .andes-bn { --bn-ratio: 4 / 5; --bn-radio: 16px; margin-top: 16px; padding: 0 16px; }
  .andes-bn__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .andes-bn__arrow { transition: none; }
}
