/* Home: bloque compacto de las ocho categorías principales. */
body#index .hb-homecategories {
  width: 100%;
  margin: 0;
  padding: 36px 0 40px;
}

body#index .hb-homecategories__inner {
  box-sizing: border-box;
}

body#index .hb-homecategories__title {
  margin: 0 0 24px;
  gap: 0;
}

body#index .hb-homecategories__title .title-1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.15;
}

body#index .hb-homecategories__slider-wrap {
  min-width: 0;
}

body#index #slider-homecategories {
  overflow: hidden;
}

body#index #slider-homecategories .swiper-wrapper {
  align-items: stretch;
}

body#index #slider-homecategories.swiper-preload.preload-8 .swiper-slide {
  width: calc(12.5% - 10.5px);
}

body#index #slider-homecategories .category {
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-white);
}

body#index #slider-homecategories .category img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

body#index #slider-homecategories .category > div {
  min-height: 48px;
  justify-content: center;
  padding: 8px 12px;
}

body#index #slider-homecategories .category .title-4 {
  margin: 0;
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.25;
}

body#index .hb-homecategories .swiper-buttons-bottom {
  min-height: 30px;
  margin-top: 18px;
}

body#index .hb-homecategories .swiper-button-lock,
body#index .hb-homecategories .swiper-buttons-bottom:has(.swiper-button-lock + .swiper-button-lock) {
  display: none;
}

@media (max-width: 1439px) {
  body#index .hb-homecategories {
    padding-top: 32px;
    padding-bottom: 36px;
  }

  body#index .hb-homecategories__title {
    margin-bottom: 22px;
  }

  body#index #slider-homecategories.swiper-preload.preload-8 .swiper-slide {
    width: calc(14.285% - 11px);
  }
}

@media (max-width: 1279px) {
  body#index #slider-homecategories.swiper-preload.preload-8 .swiper-slide {
    width: calc(16.667% - 11px);
  }
}

@media (max-width: 1099px) {
  body#index #slider-homecategories.swiper-preload.preload-8 .swiper-slide {
    width: calc(20% - 11px);
  }
}

@media (max-width: 991px) {
  body#index .hb-homecategories {
    padding-top: 28px;
    padding-bottom: 32px;
  }

  body#index .hb-homecategories__title {
    margin-bottom: 18px;
  }

  body#index .hb-homecategories__title .title-1 {
    font-size: clamp(22px, 3.5vw, 28px);
  }

  body#index #slider-homecategories {
    overflow: visible;
  }

  body#index .hb-homecategories {
    overflow: hidden;
  }

  body#index .hb-homecategories .swiper-buttons-bottom {
    margin-top: 16px;
  }

  body#index #slider-homecategories.swiper-preload.preload-8 .swiper-slide {
    width: calc(25% - 12px);
  }
}

@media (max-width: 767px) {
  body#index .hb-homecategories {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  body#index .hb-homecategories__inner {
    padding-right: 0 !important;
  }

  body#index .hb-homecategories__title {
    margin-right: var(--spaces-md);
    margin-bottom: 16px;
  }

  body#index .hb-homecategories__title .title-1 {
    font-size: 22px;
    line-height: 1.2;
  }

  body#index #slider-homecategories .category > div {
    min-height: 46px;
    padding: 7px 10px;
  }

  body#index #slider-homecategories .category .title-4 {
    font-size: 14px;
  }

  body#index #slider-homecategories.swiper-preload.preload-8 .swiper-slide {
    width: calc(45.455% - 7px);
  }

  body#index .hb-homecategories .swiper-buttons-bottom {
    margin-right: var(--spaces-md);
    margin-top: 14px;
  }
}

@media (max-width: 479px) {
  body#index #slider-homecategories.swiper-preload.preload-8 .swiper-slide {
    width: calc(74.074% - 4px);
  }
}
