/* Estilos propios. El estilo visual se define más adelante (A-22, docs/08-estilo-visual.md). */

.product-thumb {
  width: 4.5rem;
}

.backoffice-thumb {
  max-height: 8rem;
}

.banner-thumb {
  width: 9rem;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

/* Carrusel de banners de la home (RF-CAT-11): 16:9 en celulares, 3:1 desde md. */
.banner-carousel {
  --swiper-theme-color: var(--bs-primary);
  --swiper-navigation-color: #fff;
  --swiper-pagination-bullet-inactive-color: #fff;
  --swiper-pagination-bullet-inactive-opacity: 0.6;
}

.banner-slide {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-color: var(--bs-tertiary-bg);
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 2rem;
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.75rem);
  font-weight: 600;
  background: linear-gradient(transparent, rgb(0 0 0 / 65%));
}

.banner-carousel .swiper-button-prev,
.banner-carousel .swiper-button-next {
  display: none;
  filter: drop-shadow(0 0 2px rgb(0 0 0 / 70%));
}

.banner-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  --bs-btn-bg: rgb(33 37 41 / 75%);
}

@media (min-width: 768px) {
  .banner-slide {
    aspect-ratio: 3 / 1;
  }

  .banner-carousel .swiper-button-prev,
  .banner-carousel .swiper-button-next {
    display: flex;
  }
}

/* Guía de estilos (docs/08). */
.style-swatch {
  height: 4rem;
}

.style-logo {
  max-height: 10rem;
}

.style-navbar-logo {
  height: 2.5rem;
}
