/* Fondo home — verde marca (#28a745 / logo) */
body.nc-home-body {
  background-color: #a8d5b5;
  background-image: linear-gradient(180deg, #8fcf9e 0%, #a8d5b5 42%, #bddfc8 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body.nc-home-body {
  padding-top: 4.5rem;
}

body.nc-home-body .nc-home-slider-wrap {
  margin-top: 0;
}

/* Navbar en móvil es más alto (logo + buscador + carrito) */
@media (max-width: 767.98px) {
  body.nc-home-body {
    padding-top: 14rem !important;
  }

  body.nc-home-body .nc-home-slider-wrap {
    display: none !important;
  }

  body.nc-home-body .container.marketing {
    display: none !important;
  }

  body.nc-home-body .nc-destacados {
    padding-top: 0.5rem;
    margin-top: 0;
  }

  .nc-destacados__header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
  }

  .nc-destacados__header > div:first-child {
    text-align: center;
  }

  .nc-destacados__controls {
    justify-content: center;
    position: relative;
    z-index: 2;
  }

  .nc-destacados__btn {
    width: 2.85rem;
    height: 2.85rem;
  }
}

@media (max-width: 575.98px) {
  body.nc-home-body {
    padding-top: 16rem !important;
  }
}

body.nc-home-body .container.marketing {
  background: transparent;
  border-top-color: #6fbf84 !important;
}

/* Slider home — responsive */
.nc-home-slider-wrap {
  margin: 0 0 1.25rem;
}

.nc-home-carousel {
  margin-bottom: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.nc-home-carousel .carousel-item {
  height: auto;
  min-height: 160px;
  max-height: 420px;
  background: #1b4332;
}

.nc-home-carousel .carousel-item img {
  position: relative;
  display: block;
  width: 100%;
  height: 42vw;
  max-height: 420px;
  min-height: 160px;
  object-fit: cover;
  object-position: center;
}

.nc-home-carousel .carousel-caption {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1rem 1rem;
  text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.nc-home-carousel .carousel-caption h1 {
  font-size: clamp(1rem, 3.5vw, 1.75rem);
  margin-bottom: 0.25rem;
}

.nc-home-carousel .carousel-caption p {
  font-size: clamp(0.78rem, 2.2vw, 1rem);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .nc-home-carousel .carousel-item img {
    height: 320px;
  }
}

@media (min-width: 1200px) {
  .nc-home-carousel .carousel-item img {
    height: 380px;
  }
}

.nc-home-carousel .carousel-control-prev,
.nc-home-carousel .carousel-control-next {
  width: 3rem;
  opacity: 1;
  z-index: 5;
}

.nc-home-carousel .carousel-control-prev {
  left: 0.75rem;
}

.nc-home-carousel .carousel-control-next {
  right: 0.75rem;
}

.nc-home-carousel .carousel-control-prev-icon,
.nc-home-carousel .carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(27, 67, 50, 0.88);
  border: 2px solid #fff;
  border-radius: 50%;
  background-size: 45%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.nc-home-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.nc-home-carousel .carousel-control-next:hover .carousel-control-next-icon {
  background-color: #2d6a4f;
}

/* Destacados — franja horizontal */
.nc-destacados {
  padding: 1.75rem 0 2rem;
  margin-top: 0.5rem;
  background: transparent;
  border-top: 1px solid #7ec492;
}

.nc-destacados__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.nc-destacados__title {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #1b4332;
  margin: 0 0 0.2rem;
  letter-spacing: 0.01em;
}

.nc-destacados__subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #6c757d;
}

.nc-destacados__controls {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.nc-destacados__btn {
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid #2d6a4f;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(27, 67, 50, 0.18);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
}

.nc-destacados__btn::before {
  content: '';
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2.5px solid #2d6a4f;
  border-right: 2.5px solid #2d6a4f;
  transition: border-color 0.15s;
}

.nc-destacados__btn--prev::before {
  transform: rotate(-135deg);
  margin-left: 0.2rem;
}

.nc-destacados__btn--next::before {
  transform: rotate(45deg);
  margin-right: 0.2rem;
}

.nc-destacados__btn:hover {
  background: #2d6a4f;
  box-shadow: 0 5px 14px rgba(45, 106, 79, 0.32);
  transform: translateY(-1px);
}

.nc-destacados__btn:hover::before {
  border-color: #fff;
}

.nc-destacados__viewport {
  position: relative;
}

.nc-destacados__viewport::before,
.nc-destacados__viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 1;
  pointer-events: none;
}

.nc-destacados__viewport::before {
  left: 0;
  background: linear-gradient(90deg, #a8d5b5 25%, transparent);
}

.nc-destacados__viewport::after {
  right: 0;
  background: linear-gradient(270deg, #bddfc8 25%, transparent);
}

.nc-destacados__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.35rem 2px 0.65rem;
}

.nc-destacados__track::-webkit-scrollbar {
  display: none;
}

.nc-destacados__card {
  flex: 0 0 calc((100% - 70px) / 6);
  min-width: 130px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e8ece9;
  border-radius: 12px;
  padding: 0.85rem 0.75rem 0.9rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.07);
  transition: transform 0.18s, box-shadow 0.18s;
}

.nc-destacados__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(27, 67, 50, 0.12);
}

.nc-destacados__img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  margin-bottom: 0.65rem;
  border-radius: 8px;
  background: #fafbfa;
  overflow: hidden;
}

.nc-destacados__img-link img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.nc-destacados__name {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: #2b2b2b;
  margin: 0 0 0.65rem;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nc-destacados__cta {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  width: 100%;
}

@media (max-width: 991.98px) {
  .nc-destacados__card {
    flex: 0 0 calc((100% - 28px) / 3);
    min-width: 150px;
  }

  .nc-destacados__img-link {
    height: 100px;
  }

  .nc-destacados__img-link img {
    max-height: 90px;
  }
}

@media (max-width: 575.98px) {
  .nc-destacados {
    padding: 1rem 0 1.5rem;
  }

  .nc-destacados__header {
    align-items: stretch;
  }

  .nc-destacados__subtitle {
    display: none;
  }

  .nc-destacados__card {
    flex: 0 0 calc((100% - 14px) / 2);
    min-width: 140px;
    padding: 0.7rem 0.6rem 0.75rem;
  }

  .nc-destacados__img-link {
    height: 88px;
  }

  .nc-destacados__img-link img {
    max-height: 80px;
  }
}
