Can I buy property in Mexico under a legal entity?

Yes, but it is not recommended. The company must be registered in Mexico, actively operating, and generating income, which involves more bureaucracy and costs.