I checked the Santa Fe VIN on the Sante Fe. No recalls regarding engines. There is an urgent one though regarding risk of fire while parked!Sadly you fall into the Hyundai 2011-2015 engine recall range. I own a 2013 sonata here in the U.S. and have received 3 letters from Hyundai that state that I’m covered for engine failure and replacement. You can check your VIN on NHSTA recall but in your situation being in DR Hyundai will most certainly deny any such warranty. If your Hyundai is in good shape you could go for the used engine but with one caveat. Be sure you are not going to replace with an engine from the recall years or you may be back in this situation in short order. I know 165,000 pesos sounds pretty good to get back on the road versus buying another vehicle. But I would hate to see you throwing away money. Good luck in whatever you decide.
While at it, I checked the Sonata engine VIN. No recalls at all on that one.