The quake was 40 km (24.85 miles) South of San José, Costa Rica and estimated at a depth of 40 km, EMSC added.

(Reporting by Shubhendu Deshmukh in Bengaluru; Editing by Himani Sarkar)