/* Estilos generales para el carrusel de categorías */
#categoryCarousel {
  width: 100%;
  padding: 20px 0;
}

#categoryCarousel .swiper-wrapper {
  display: flex;
  justify-content: flex-start;
}

#categoryCarousel .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 10px;
}

#categoryCarousel .carousel-category {
  display: flex;
  flex-direction: row;
  width: 100%;
  text-decoration: none;
}

#categoryCarousel .card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #ffffff;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  width: 100%;
}

#categoryCarousel .card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#categoryCarousel .category-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  margin-right: 15px;
}

#categoryCarousel .category-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
  padding: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

#categoryCarousel .andes-carousel-snapped__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.swiper-button-next, .swiper-button-prev {
  color: #333;
  z-index: 10;
}

.swiper-pagination-bullet {
  background-color: #007bff;
}

.swiper-pagination-bullet-active {
  background-color: #0056b3;
}

/* Tablet */
@media (max-width: 768px) {
  #categoryCarousel .swiper-slide {
    margin: 0 5px;
  }

  #categoryCarousel .category-image {
    width: 100px;
    height: 100px;
  }

  #categoryCarousel .category-title {
    font-size: 1rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  #categoryCarousel .card {
    flex-direction: column;
    text-align: center;
  }
  #categoryCarousel .card {
    width: 85%;
  }
  #categoryCarousel .category-image {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
    margin: 0;
  }

  #categoryCarousel .category-title {
    font-size: 0.95rem;
    padding: 8px;
  }
}

/* Pantallas grandes (≥1200px) */
@media (min-width: 1200px) {
  #categoryCarousel .category-title {
    font-size: 1.1rem;
  }

  #categoryCarousel .category-image {
    width: 145px;
    height: 145px;
  }
}
