Indigenous government under the viceregal regime: cabildos, caciques and traditional authorities