The increasing lack of political cohesion in Central America took new forms after the independence acts were accepted. Divisions within the urban centers of San Salvador, Comayagua, and Nicaragua, split those regions in half. In Costa Rica, its isolation from the rest of Central America combined with its previous loyalty to Spain and the rivalry between San José and Cartago to alienate it from the government in Guatemala. As Central America faced disintegration, two solutions presented themselves. The success of neighboring Mexico in its own war of independence led some in Central America to see it as the region's best chance of continued unity, while others wished for absolute independence for their own gain, for idealistic reasons, or because they feared Mexico could not protect their economic interests.