Costa Rica has largely benefited from globalization and trade liberalization without suffering the so-called “China shock.”