/* ===============================================
   GCLA - Sección de Categorías
   Componente Modular - Categorías Premium
   =============================================== */

/* CATEGORÍAS PREMIUM REFACTORIZADAS */
.categories-section {
    background-color: var(--white);
}

/* Section Header - Compact */
.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Premium Category Cards - Ultra Compact */
.premium-category {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color-scheme: light only !important;
  max-width: 180px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Hide any remaining stats or badges */
.premium-category .category-stats,
.premium-category .stat,
.premium-category .stat-number,
.premium-category .stat-label,
.premium-category .category-features,
.premium-category .feature-tag,
.premium-category .category-badge,
.premium-category .roi-badge {
  display: none !important;
}

.category-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  padding: 0;
  margin: 0;
  margin-top: -10px !important;
  top: -10px;
}

.category-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-base);
}

.category-card:hover .category-img {
  transform: scale(1.05);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left var(--transition-base);
}

.category-card:hover::before {
  left: 100%;
}

.premium-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

/* Category Content - Compact */
.category-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.category-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.category-description {
  color: var(--gray-600);
  font-size: 0.75rem;
  line-height: 1.3;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Categories CTA - Compact */
.categories-cta {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(16, 185, 129, 0.1);
}

.categories-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--spacing-md);
}

.categories-cta p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: var(--spacing-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.category-card .category-icon {
  font-size: 2.25rem;
  color: var(--gray-400);
  margin-bottom: var(--spacing-unit);
  transition: all var(--transition-base);
}

.category-card:hover .category-icon {
  color: var(--primary);
  transform: scale(1.1);
}

/* Category Icon at Bottom - Compact */
.premium-category .category-icon {
  position: absolute;
  bottom: var(--spacing-sm);
  right: var(--spacing-sm);
  font-size: 1.25rem;
  color: var(--gray-300);
  transition: all var(--transition-base);
}

.premium-category:hover .category-icon {
  color: var(--primary);
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 1.125rem; /* Balanced size */
  font-weight: 600; /* Moderate weight */
  margin-bottom: var(--spacing-unit);
  color: var(--gray-600); /* Soft gray */
}

.category-card .category-count {
  color: var(--gray-500); /* Soft gray */
  font-size: 0.875rem; /* Proportional size */
  font-weight: 500; /* Moderate weight */
}

.category-description {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: var(--spacing-unit);
}

.category-stats {
  display: flex;
  justify-content: space-around;
  margin: var(--spacing-unit) 0;
  gap: var(--spacing-unit);
}

.category-stats .stat {
  text-align: center;
}

.category-stats .stat strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--primary);
}

.category-stats .stat span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
}

.category-sustainability {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: var(--spacing-unit);
}

/* Responsive Design */
@media (max-width: 768px) {
  .premium-category {
    max-width: 160px;
  }
  
  .category-image {
    height: 100px;
  }
  
  .category-content h3 {
    font-size: 0.9rem;
  }
  
  .category-description {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .premium-category {
    max-width: 140px;
  }
  
  .category-image {
    height: 80px;
  }
  
  .category-content {
    padding: var(--spacing-sm);
  }
  
  .category-content h3 {
    font-size: 0.85rem;
  }
  
  .category-description {
    font-size: 0.65rem;
  }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
  .premium-category {
    border-width: 2px;
    border-color: var(--primary);
  }
}
