A big grassroots movement shaped this South American Republic’s new policies