/* ===== Landing Promocionales - Markekint ===== */

#promo-hero {
  min-height: clamp(260px, 52vh, 420px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../img/mk_banner_new.jpg") center/cover no-repeat;
}
#promo-hero h1 {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.55);
}
#promo-hero p {
  opacity: 0.95;
}

.category-block {
  padding-block: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.category-title {
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.25rem;
}
.category-desc {
  text-align: center;
  color: #6c757d;
  margin-bottom: 1rem;
}
.cat-img,
.work-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
@media (max-width: 575.98px) {
  .cat-img,
  .work-img {
    height: 170px;
  }
}

.cta-bar {
  background: linear-gradient(90deg, var(--blue-dark), #006b99);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.cta-bar .btn {
  border-radius: 999px;
}

.cat-cta,
[data-catalog] {
  border-radius: 999px !important;
}

/* ===== Carrusel “Hot products” — 1600×500 sin recortes y altura uniforme ===== */
#hotCarousel {
  --banner-ratio: 16 / 5; /* 1600x500 */
  --banner-max-h: 500px; /* alto máximo en desktop */
}

/* Escenario con aspect-ratio; mantiene la misma altura en todos los slides */
#hotCarousel .carousel-inner {
  width: 100%;
  aspect-ratio: var(--banner-ratio);
  max-height: var(--banner-max-h);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff; /* color de marca para los márgenes si la imagen no llena */
}

/* Cada item ocupa el 100% del escenario */
#hotCarousel .carousel-item {
  height: 100%;
  background: transparent;
}

/* Primer slide (fila texto+imagen) no debe alterar la altura */
#hotCarousel .carousel-item .row {
  height: 100%;
  margin: 0;
}
#hotCarousel .carousel-item .row > [class*="col-"] {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Imágenes: mostrar completas (sin recortar) */
#hotCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* clave: no se corta ningún banner */
  display: block;
  background: #ffffff; /* relleno detrás de la imagen */
}

/* Texto centrado verticalmente en el primer slide */
#hotCarousel .carousel-item .p-4,
#hotCarousel .carousel-item .px-4,
#hotCarousel .carousel-item .py-3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

/* Controles */
#hotCarousel .carousel-control-prev,
#hotCarousel .carousel-control-next {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* Responsive: el alto se adapta automáticamente por aspect-ratio */
@media (max-width: 576px) {
  #hotCarousel .carousel-inner {
    border-radius: 14px;
  }
  #hotCarousel .carousel-item .p-4 {
    padding: 1rem !important;
  }
}
