/* Colores de categorías inspirados en sus banners. */
body[data-product-category="simples"],
.portal-card[href="/productos/simples/"] {
  --category-color: #166534;
  --category-tint: #e7f2e7;
  --category-tint-light: #f7faf6;
}

body[data-product-category="complejos"],
.portal-card[href="/productos/complejos-granulados/"] {
  --category-color: #821f2d;
  --category-tint: #f5e6e8;
  --category-tint-light: #fcf8f8;
}

body[data-product-category="mezclas"],
.portal-card[href="/productos/mezclas-fisicas/"] {
  --category-color: #86620e;
  --category-tint: #f8efd5;
  --category-tint-light: #fdfaf2;
}

body[data-product-category="especialidades"],
.portal-card[href="/productos/especialidades/"] {
  --category-color: #633274;
  --category-tint: #eee5f2;
  --category-tint-light: #faf7fb;
}

body[data-product-category="medida"],
.portal-card[href="/productos/mezclas-a-la-medida/"] {
  --category-color: #164c79;
  --category-tint: #e3eef6;
  --category-tint-light: #f6f9fc;
}

body[data-product-category] .simple-card {
  border-top-color: var(--category-color) !important;
}

body[data-product-category] .simple-card-img {
  background: linear-gradient(135deg, var(--category-tint), var(--category-tint-light)) !important;
}

.portal-grid.cat-grid .portal-card::before {
  background: var(--category-color, var(--brand-accent));
}

.portal-grid.cat-grid .portal-card .portal-icon {
  color: var(--category-color, var(--brand-accent)) !important;
}

body[data-product-category="medida"] .process-step {
  border-top: 3px solid var(--category-color);
  background: linear-gradient(180deg, var(--category-tint-light), white);
}

body[data-product-category="medida"] .process-step-num {
  color: var(--category-color);
  opacity: 0.75;
}
