/* Gradientes específicos por categoría - USANDO VALORES PARAMETERIZADOS */
.category-card[data-category-id="1"]::before,
.category-card[data-category="entre-voces"]::before {
  background: linear-gradient(-45deg, var(--color-category-1, #8F71CF) 0%, rgba(var(--color-category-1-rgb, 143, 113, 207), 0.25) 35%, transparent 80%);
}
.category-card[data-category-id="2"]::before,
.category-card[data-category="agenda-publica"]::before {
  background: linear-gradient(-45deg, var(--color-category-2, #FFD437) 0%, rgba(var(--color-category-2-rgb, 255, 212, 55), 0.25) 35%, transparent 80%);
}
.category-card[data-category-id="3"]::before,
.category-card[data-category="estados-cdmx"]::before,
.category-card[data-category="comunidades"]::before {
  background: linear-gradient(-45deg, var(--color-category-3, #4CABBC) 0%, rgba(var(--color-category-3-rgb, 76, 171, 188), 0.25) 35%, transparent 80%);
}
.category-card[data-category-id="4"]::before,
.category-card[data-category="enfoque"]::before {
  background: linear-gradient(-45deg, var(--color-category-4, #FF6777) 0%, rgba(var(--color-category-4-rgb, 255, 103, 119), 0.25) 35%, transparent 80%);
}
.category-card[data-category-id="5"]::before,
.category-card[data-category="tendencias"]::before {
  background: linear-gradient(-45deg, var(--color-category-5, #FF7E1F) 0%, rgba(var(--color-category-5-rgb, 255, 126, 31), 0.25) 35%, transparent 80%);
}
.category-card[data-category-id="6"]::before,
.category-card[data-category="global"]::before {
  background: linear-gradient(-45deg, var(--color-category-6, #DFDCE3) 0%, rgba(var(--color-category-6-rgb, 223, 220, 227), 0.25) 35%, transparent 80%);
}
.category-card[data-category-id="7"]::before,
.category-card[data-category="deportes"]::before {
  background: linear-gradient(-45deg, var(--color-category-7, #95D45D) 0%, rgba(var(--color-category-7-rgb, 149, 212, 93), 0.25) 35%, transparent 80%);
}
.category-card[data-category-id="8"]::before,
.category-card[data-category="tu-voz"]::before {
  background: linear-gradient(-45deg, var(--color-category-8, #E4242F) 0%, rgba(var(--color-category-8-rgb, 228, 36, 47), 0.25) 35%, transparent 80%);
}

/* El resto del CSS se mantiene igual... */
.categories-carousel {
  position: relative;
  width: 100%;
  margin: 90px 0 15px 0;
  padding: 5px 0 0 0; 
  overflow: visible;
}

.carousel-container {
  width: 100%;
  overflow: visible; 
  padding: 0 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  padding-bottom: 5px;
  padding-right: 20px;
  padding-top: 5px; 
}

.category-card {
  flex: 0 0 auto;
  width: 115px;
  height: 53px;
  margin-right: 10px;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-name {
  color: var(--color-gen-dark, #2c3e50);
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  z-index: 4;
  position: relative;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.category-card .category-name {
  text-decoration: none !important;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 10px;
}

/* Efectos en hover */
.category-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  background-color: rgb(255, 255, 255);
  z-index: 10;
}

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

.category-card:hover .category-name {
  transform: scale(1.05);
  color: var(--color-gen-dark, #2c3e50);
}

.categories-carousel,
.categories-carousel *:not(.category-card) {
  overflow: visible !important;
}

/* Controles del carrusel */
.categories-carousel .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 50;
  pointer-events: auto;
}

.categories-carousel .carousel-control.prev {
  left: 10px;
}

.categories-carousel .carousel-control.next {
  right: 10px;
}

.categories-carousel .carousel-control.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.categories-carousel .carousel-control:focus {
  outline: none;
}

.categories-carousel .carousel-control .arrow-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.categories-carousel .carousel-control .arrow-circle svg {
  width: 20px;
  height: 20px;
}

.categories-carousel .carousel-control:hover .arrow-circle {
  background-color: rgba(0, 0, 0, 0.9);
}

.categories-carousel .carousel-control:active .arrow-circle {
  transform: scale(0.95);
}

/* Responsive design */
@media (max-width: 480px) {
  .categories-carousel .carousel-control .arrow-circle {
    width: 32px;
    height: 32px;
  }
  
  .categories-carousel .carousel-control .arrow-circle svg {
    width: 18px;
    height: 18px;
  }
  
  .categories-carousel .carousel-control.prev {
    left: 5px;
  }
  
  .categories-carousel .carousel-control.next {
    right: 5px;
  }
}

@media (min-width: 1200px) {
  .categories-carousel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 50px 15px 50px;
  }
  
  .categories-carousel .carousel-container {
    padding: 0;
    overflow: hidden;
    width: 100%;
  }
  
  .categories-carousel .carousel-track {
    padding-right: 0;
    justify-content: space-between;
  }
  
  .categories-carousel .category-card:not(:last-child) {
    margin-right: max(10px, calc((100% - (104px * 9)) / 8));
  }
  
  .categories-carousel .category-card:last-child {
    margin-right: 0;
  }
  
  .categories-carousel .carousel-control.prev {
    left: -30px;
  }
  
  .categories-carousel .carousel-control.next {
    right: -30px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .categories-carousel .carousel-container {
    overflow: hidden;
    padding: 0 50px;
  }
  
  .categories-carousel .carousel-control.prev {
    left: 15px;
  }
  
  .categories-carousel .carousel-control.next {
    right: 15px;
  }
}

@media (max-width: 767px) {
  .categories-carousel {
    padding-top: 95px;
    margin-top: 0;
    position: relative;
    z-index: 10; 
  }
  
  .categories-carousel .carousel-container {
    padding: 0 12px;
    overflow: visible;
  }
  
  .categories-carousel .carousel-track {
    padding-right: 15px;
    padding-top: 5px;
  }
}
