Spain scored in the 90th minute through Mikel Merino, with the goal coming in stoppage time.