Trailing 2-1 after the first leg, Almeria looked to have secured a place in the last 16 when Ruben Pulido headed in from a corner three minutes into added time.