/* ===============================
   HERO DESKTOP
================================ */

.nx-hero-desktop {
  position: relative;
  width: 100%;
  background: var(--nx-surface-2);
}

.nx-hero-desktop__viewport {
  position: relative;
  overflow: hidden;
}

.nx-hero-desktop__track {
  display: flex;
  will-change: transform;
  transition: transform .45s ease;
}

.nx-hero-desktop__slide {
  flex: 0 0 100%;
  text-decoration: none;
}

.nx-hero-desktop__slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Flechas */
.nx-hero-desktop__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,.45);
  border: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s ease;
}

.nx-hero-desktop__arrow--prev { left: 16px; }
.nx-hero-desktop__arrow--next { right: 16px; }

.nx-hero-desktop__viewport:hover .nx-hero-desktop__arrow {
  opacity: 1;
}

/* Dots */
.nx-hero-desktop__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.nx-hero-desktop__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
}

.nx-hero-desktop__dot.is-active {
  background: #fff;
}
.nx-hero-desktop__arrow::before {
  content: '<';
  color: #fff;
  font-size: 32px;
  font-weight: 300;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.nx-hero-desktop__arrow--next::before {
  content: '>';
}
.nx-hero-desktop__arrow {
  border-radius: 50%;
}

/* ===============================
   HOME CATEGORIES
================================ */

.nx-home-categories {
  padding: 40px;
  margin: 0 auto;
}

/* ===== Featured Banners ===== */

.nx-home-categories__featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--nx-space-md);
  margin-bottom: var(--nx-space-md);
}

.nx-featured-card {
  display: block;
  background: var(--nx-surface-2);
  border-radius: var(--nx-radius-md);
  overflow: hidden;
}

.nx-featured-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9 / 4;
  object-fit: cover;
}

/* ===== Grid Categories ===== */

.nx-home-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--nx-space-md);
}

.nx-category-card {
  display: flex;
  align-items: center;
  gap: var(--nx-space-sm);
  padding: 18px;
  background: var(--nx-surface-1);
  border-radius: var(--nx-radius-md);
  border: 1px solid var(--nx-border-light);
  text-decoration: none;
  color: var(--nx-text-dark);
  font-size: var(--nx-font-m);
  transition: background .15s ease;
}

.nx-category-card svg {
  stroke-width: 1.8;
  flex-shrink: 0;
}

.nx-category-card:hover,
.nx-category-card:focus-visible {
  background-color: var(--nx-surface-1);
  border-color: var(--nx-color-button-bd);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}


/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .nx-home-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nx-home-categories__featured {
    grid-template-columns: 1fr;
  }

  .nx-home-categories__grid {
    grid-template-columns: 1fr;
  }
}

.nx-hero-desktop__arrow:hover {
  border: 1px solid var(--nx-color-button-bd);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.nx-hero-desktop__dot{
   border: 1px solid var( --nx-color-muted);
}
.nx-hero-desktop__dot:hover{
  border: 1px solid var(--nx-color-button-bd);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.nx-featured-card {
  position: relative;
  display: block;
  overflow: hidden;
}

.nx-featured-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Overlay que oscurece la imagen al hover */
.nx-featured-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:var(--nx-color-bg); /* transparente inicial */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}


.nx-featured-card:hover .nx-featured-card-overlay {
  background: rgba(0,0,0,0.3); /* oscurece la imagen al hover */
}

/* Botón dentro del overlay */
.nx-featured-card-overlay .btn-hover {
  padding: 10px 20px;
  background: transparent;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
   color: var(--nx-color-text);
  border: 1px solid var(--nx-color-text);
}

.nx-featured-card:hover .nx-featured-card-overlay .btn-hover {
  background: var(--nx-color-accent);
  color:var(--nx-color-text);
  border-color: var(--nx-color-button-bd);
}
