A will made outside of Costa Rica does not necessarily cover your assets in Costa Rica. Prepare a will in Costa Rica and made it clear that it does not replace your foreign will.
In Costa Rica the law gives no protections for the family or children. There are no restrictions to give his entire fortune to someone who is not part of the family. It is important to discuss and plan possible restrictions between Costa Rica and country of origin.
There are no taxes on inheritance.
It is better to keep your assets and funds on behalf of a company. It is easier to structure your estate.
In all cases, it is important to discuss your Costarican will with a notary or lawyer who knows the Costa Rican laws.