/* Sidebar de Categorías - Estilo moderno */
.categorias-sidebar {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.5);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.categorias-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.categorias-sidebar-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.categorias-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.categoria-menu-item {
  display: block;
  position: relative;
}

.categoria-link {
  display: block;
  padding: 12px 18px;
  color: #64748b;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 12px;;
  position: relative;
  overflow: hidden;
}

.categoria-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.categoria-link:hover::before {
  left: 100%;
}

.categoria-link:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.categoria-link::after {
  content: '→';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #3b82f6;
}

.categoria-link:hover::after {
  opacity: 1;
}

/* Espaciador */
.categorias-spacer {
  height: 30px;
}

/* Sección de Tags */
.categorias-tags {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.5);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.categorias-tags::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.categoria-tag {
  display: inline-block;
}

.tag-link {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.tag-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.tag-link:hover::before {
  left: 100%;
}

.tag-link:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
}

/* Efectos especiales para diferentes tags */
.categoria-tag:nth-child(1) .tag-link {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

.categoria-tag:nth-child(1) .tag-link:hover {
  background: #dc2626;
  color: white;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.categoria-tag:nth-child(2) .tag-link {
  background: rgba(168, 85, 247, 0.1);
  color: #7c3aed;
  border-color: rgba(168, 85, 247, 0.2);
}

.categoria-tag:nth-child(2) .tag-link:hover {
  background: #7c3aed;
  color: white;
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.categoria-tag:nth-child(3) .tag-link {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.2);
}

.categoria-tag:nth-child(3) .tag-link:hover {
  background: #16a34a;
  color: white;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.categoria-tag:nth-child(4) .tag-link {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.2);
}

.categoria-tag:nth-child(4) .tag-link:hover {
  background: #d97706;
  color: white;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .categorias-sidebar,
  .categorias-tags {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .categorias-sidebar-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .categoria-link {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .tag-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .categorias-spacer {
    height: 20px;
  }
}

@media (max-width: 480px) {
  .categorias-sidebar,
  .categorias-tags {
    padding: 15px;
    border-radius: 15px;
  }
  
  .tags-container {
    gap: 8px;
  }
  
  .tag-link {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}