spanish colonial era what happend​