Spain announced a four-phase plan late on Tuesday to lift one of the toughest coronavirus lockdowns in Europe and return to normality by the end of June.