Democracia representativa, republicana y federal