Right, a capital surplus is a trade deficit. Foreigners exchange pesos for dollars and buy land, land sellers swap dollars for pesos and buy foreign goods. Payments balance.
What if they buy land with the pesos? : )