.c-categories-links {
  position: relative;
}

/* LISTA: fila horizontal con scroll suave */
.c-categories-links__list {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 48px 8px 0; /* espacio para la flecha derecha */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox: ocultar scrollbar */
}

/* Ocultar scrollbar en Webkit */
.c-categories-links__list::-webkit-scrollbar {
  display: none;
}

/* ITEM: solo imagen + texto, sin carta */
.c-categories-links__item {
  flex: 0 0 auto;
  min-width: 136px; /* mismo ancho que la imagen */
  max-width: 136px;
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  text-decoration: none;

  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

/* Contenedor de la imagen: caja fija, oculta el zoom interno */
.c-categories-links__content-img {
  width: 136px;
  height: 170px;
  margin-bottom: 8px; /* separación < 10px */
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

/* Imagen: ocupa toda la caja fija */
.c-categories-links__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.25s ease; /* solo zoom suave */
}

/* Título justo debajo */
.c-categories-links__category {
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  transition: color 0.25s ease;
}

/* HOVER:
   - solo se anima la imagen dentro de su caja (no crece el contenedor)
   - el texto cambia a verde
*/
/* Contenedor imagen: permite overlay */
.c-categories-links__content-img {
  position: relative;
  width: 136px;
  height: 170px;
  margin-bottom: 8px;
  background: transparent;
  overflow: hidden;
}

/* Imagen */
.c-categories-links__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.25s ease;
}

/* 🔥 Overlay oscuro (inicialmente invisible) */
.c-categories-links__content-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25); /* tono oscuro suave */
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* Título */
.c-categories-links__category {
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111; /* color normal */
  transition: color 0.25s ease;
}

/* --- HOVER FINAL: zoom + overlay + color de título --- */
.c-categories-links__item:hover .c-categories-links__img,
.c-categories-links__item:focus-visible .c-categories-links__img {
  transform: scale(1.04);
}

.c-categories-links__item:hover .c-categories-links__content-img::after,
.c-categories-links__item:focus-visible
  .c-categories-links__content-img::after {
  opacity: 1;
}

.c-categories-links__item:hover .c-categories-links__category,
.c-categories-links__item:focus-visible .c-categories-links__category {
  color: #9c8e7f;
  font-weight: 600;
}

/* FLECHAS */
.c-categories-links__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}

.c-categories-links__arrow svg {
  width: 16px;
  height: 16px;
}

.c-categories-links__arrow--prev {
  left: 0;
}

.c-categories-links__arrow--next {
  right: 0;
}

/* Clase de utilidad para ocultar */
.u-hidden {
  display: none !important;
}
