/* BlogShared.jsx — Helper de color por categoria, compartido entre
 * el index, blog.html y blog-post.html.
 * Exposed as window.blogCatColor
 */
function blogCatColor(cat) {
  if (!cat) return "blog-cat--general";
  const c = cat.toLowerCase();
  if (c.includes("legal")) return "blog-cat--legal";
  if (c.includes("tecn"))  return "blog-cat--tecnico";
  return "blog-cat--general";
}

Object.assign(window, { blogCatColor });
