@charset "utf-8";
/* CSS Document */

/* ================================
   CONTENEDOR DEL CARRUSEL
================================ */
#navCarousel {
  width: 100%;
  overflow: hidden; /* bloquea overflow externo */
}

.nav-carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Ocultar scrollbar visual */
.nav-carousel::-webkit-scrollbar {
  display: none;
}
.nav-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ================================
   TARJETAS
================================ */
.nav-card {
  flex: 0 0 auto;
  min-width: 92px;   /* mobile-first */
  max-width: 92px;
  margin-right: .5rem;
  position: relative;
  text-decoration: none !important; /* nunca subrayado */
  color: #fff;
}

.nav-card:hover,
.nav-card:focus {
  text-decoration: none;
  color: #fff;
}

/* ================================
   IMAGEN
================================ */
.img-wrap {
  width: 100%;
  height: 100px; /* móvil */
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  display: block;
}

.img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.75) 0%,
    rgba(0,0,0,.35) 35%,
    rgba(0,0,0,0) 65%
  );
  z-index: 1;
  pointer-events: none;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: transform .35s cubic-bezier(.2,.9,.2,1), filter .25s ease;
  filter: brightness(.45) saturate(.95);
}

/* ================================
   OVERLAY DE TEXTO
================================ */
.card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .5rem;
  font-size: .8rem;
  color: #fff;
  text-align: center;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  pointer-events: none;
  z-index: 2;
}

/* ================================
   HOVER / FOCUS
================================ */
.nav-card:hover .img-wrap img,
.nav-card:focus .img-wrap img {
  transform: scale(1.12);
  filter: brightness(1) saturate(1.02);
}

.nav-card:hover .card-label,
.nav-card:focus .card-label {
  transform: translateY(-2px);
  font-weight: 600;
  color: #fff;
}

/* ================================
   TABLET / DESKTOP
================================ */
@media (min-width: 768px) {
  .nav-card {
    min-width: 140px;
    max-width: 140px;
    margin-right: 1rem;
  }

  .img-wrap {
    height: 120px;
  }

  .card-label {
    font-size: .9rem;
    padding: .5rem .6rem;
  }
}

/* ================================
   DESKTOP GRANDE
================================ */
@media (min-width: 1200px) {
  .nav-card {
    min-width: 160px;
    max-width: 160px;
  }

  .img-wrap {
    height: 140px;
  }

  .card-label {
    font-size: 1rem;
  }
}

/* ================================
   FLECHAS SOBRE EL CARRUSEL
================================ */
.nav-carousel-wrapper {
  position: relative;
}

/* Flechas base */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 34px;
  text-align: center;
  background: rgba(0,0,0,.45);
  border-color: rgba(255,255,255,.7);
}

/* Posición */
.nav-arrow-left {
  left: .5rem;
}

.nav-arrow-right {
  right: .5rem;
}

/* Hover elegante */
.nav-arrow:hover {
  background: rgba(0,0,0,.65);
}

/* Desktop: un poco más grandes */
@media (min-width: 768px) {
  .nav-arrow {
    width: 42px;
    height: 42px;
    line-height: 40px;
    font-size: 1.1rem;
  }
}
