It had among the most open and fair electoral systems in the region, with nationwide electronic voting and biometric voter registration.