Costa Rica pulled off the first shock of the 2014 World Cup with a richly deserved 3-1 Group D win over Uruguay in Fortaleza.