Yes, citizens from other countries are eligible to buy real estate in Mexico, but it must be done through renewable bank trusts known as fideicomisos.
A 'fideicomiso' is a 50-year, perpetually renewable and transferable Bank Trust which allows foreigners to acquire irrevocable and absolute ownership rights to property in Mexico.  This Trust is the legal equivalent of fee-simple ownership and is provided specifically for non-nationals, allowing them to own coastal and border property.