/* Gradientes específicos por categoría - USANDO VALORES PARAMETERIZADOS */
.category-card[data-category="entre-voces-opinion"]::before {
  background: linear-gradient(-45deg, var(--color-entre-voces-opinion, #8b7dc3) 0%, rgba(139, 125, 195, 0.25) 35%, transparent 80%);
}
.category-card[data-category="agenda-publica"]::before {
  background: linear-gradient(-45deg, var(--color-agenda-publica, #f4d03f) 0%, rgba(244, 208, 63, 0.25) 35%, transparent 80%);
}
.category-card[data-category="estados"]::before {
  background: linear-gradient(-45deg, var(--color-comunidades, #7fb3d3) 0%, rgba(127, 179, 211, 0.25) 35%, transparent 80%);
}
.category-card[data-category="enfoque"]::before {
  background: linear-gradient(-45deg, var(--color-enfoque, #e74c3c) 0%, rgba(231, 76, 60, 0.25) 35%, transparent 80%);
}
.category-card[data-category="tendencias"]::before {
  background: linear-gradient(-45deg, var(--color-tendencias, #f39c12) 0%, rgba(243, 156, 18, 0.25) 35%, transparent 80%);
}
.category-card[data-category="global"]::before {
  background: linear-gradient(-45deg, var(--color-global, #bdc3c7) 0%, rgba(189, 195, 199, 0.25) 35%, transparent 80%);
}
.category-card[data-category="deportes"]::before {
  background: linear-gradient(-45deg, var(--color-deportes, #58d68d) 0%, rgba(88, 214, 141, 0.25) 35%, transparent 80%);
}
.category-card[data-category="tu-voz"]::before {
  background: linear-gradient(-45deg, var(--color-tu-voz, #e74c3c) 0%, rgba(231, 76, 60, 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;
  }
}
