/* ===============================================
    Categories Slider Styles
------------------------*/

.categories-section {
  padding: 30px 0;
  background: #fff;
  position: relative;
}

.categories-slider {
  margin: 0 -10px;
}

.categories-slider .col-lg,
.categories-slider .col-md-4,
.categories-slider .col-sm-6,
.categories-slider .col-6 {
  padding: 0 10px;
  margin-bottom: 20px;
}

/* Tarjeta de categoría */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  background: #f9f9f9;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

/* Estado activo de la categoría */
.category-card.active {
  border-color: #004ECC;
  background: #f0f7ff;
}

.category-card.active::before {
  opacity: 0.1;
}

.category-card.active .category-icon-wrapper {
  background: #004ECC;
  box-shadow: 0 5px 20px rgba(0, 78, 204, 0.3);
}

.category-card.active .category-icon-wrapper i {
  color: #fff;
}

.category-card.active .category-name {
  color: #004ECC;
  font-weight: 700;
}

/* Check mark para categorías activas */
.category-card.active::after {
  content: '\f00c';
  font-family: 'FontAwesome';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #004ECC;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 2;
  animation: checkPulse 0.3s ease;
}

@keyframes checkPulse {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #004ECC 0%, #0066ff 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.category-card:hover {
  border-color: #004ECC;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 78, 204, 0.15);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card.active:hover::before {
  opacity: 0.2;
}

/* Wrapper del icono */
.category-icon-wrapper {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.category-card:hover .category-icon-wrapper {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.category-icon-wrapper i {
  font-size: 28px;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon-wrapper i {
  color: #004ECC;
  transform: rotate(10deg);
}

/* Nombre de categoría */
.category-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
  text-align: center;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.category-card:hover .category-name {
  color: #fff;
}

/* Flechas del slider */
.categories-slider .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #004ECC;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.categories-slider .slick-arrow:hover {
  background: #0066ff;
  transform: translateY(-50%) scale(1.1);
}

.categories-slider .slick-arrow i {
  line-height: 1;
}

.categories-slider .slick-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Dots (puntos de navegación) */
.categories-slider .slick-dots {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 20px 0 0 0;
  list-style: none;
}

.categories-slider .slick-dots li {
  margin: 0 5px;
}

.categories-slider .slick-dots li button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid #004ECC;
  border-radius: 50%;
  background: transparent;
  text-indent: -9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.categories-slider .slick-dots li.slick-active button {
  background: #004ECC;
  width: 12px;
  height: 12px;
}

.categories-section .slick-prev:before,
.categories-section .slick-next:before {
  display: none;
}

.categories-section .slick-prev:before {
  content: "\f104";
}

.categories-section .slick-next:before {
  content: "\f105";
}

/* Responsive */
@media (max-width: 991px) {
  .categories-section {
    padding: 25px 0;
  }

  .category-card {
    min-height: 130px;
    padding: 20px 10px;
  }

  .category-icon-wrapper {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
  }

  .category-icon-wrapper i {
    font-size: 24px;
  }

  .category-name {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .categories-section {
    padding: 20px 0;
  }

  .categories-slider {
    margin: 0 -5px;
  }

  .categories-slider .col-lg,
  .categories-slider .col-md-4,
  .categories-slider .col-sm-6,
  .categories-slider .col-6 {
    padding: 0 5px;
  }

  .category-card {
    min-height: 120px;
    padding: 18px 8px;
  }

  .category-icon-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }

  .category-icon-wrapper i {
    font-size: 22px;
  }

  .category-name {
    font-size: 12px;
  }

  .categories-slider .slick-arrow {
    display: none !important;
  }

  .categories-slider .slick-dots {
    margin-top: 15px;
  }
}

@media (max-width: 576px) {
  .category-card {
    min-height: 110px;
    padding: 15px 8px;
  }

  .category-icon-wrapper {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
  }

  .category-icon-wrapper i {
    font-size: 20px;
  }

  .category-name {
    font-size: 11px;
  }
}

/* Fix para el slider cuando se inicializa */
.categories-slider.slick-initialized .slick-slide {
  display: flex;
}

.categories-slider.slick-initialized .slick-slide>div {
  width: 100%;
}