From what I understand, prior to the 80s El Salvador had a more or less democratic although often authoritarian government. Note it had a 2,3 Freedom House rating until then.
Hmm...prior to the 80s Freedom House had some damn odd ratings...ironically enough the coup (either 1979 or 1980 - I would check Wikipedia but the site appears to have gone bonkers with the font or something) actually was designed to improve matters - it was a centrist coup against a rightist regime, if you can believe that...