Interesting. I agree that electing judges is a terrible idea, though it's weird that protesters call it a threat to democracy. I guess that's just what everyone says about everything they don't like nowadays.
https://www.npr.org/2024/09/10/g-s1-20967/mexico-judicial-reform-elect-judges-constition-change