Spain waits as Portugal struggles