Reserving the home. You choose a unit and sign a reservation, which takes it off the market while the contracts and the legal checks are prepared. Your lawyer should read the developer's documents before you sign anything.
Payments during construction. The purchase contract sets out the amounts paid as the building progresses, with the balance due at completion. The schedule is agreed in advance, so you know when each payment falls.
The bank guarantee. Spanish law requires the developer to secure the sums you pay before the home is finished, through a bank guarantee or insurance policy held in a separate account. Ask for that document and keep it; it is your protection if the build is not delivered.
Snagging before completion. Once the home is finished you inspect it and list anything that needs correcting. It is far easier to have defects fixed before the final payment than after it.
The keys at the notary. You sign the deed at the notary, pay the balance and any taxes due on a new build, and the property is then registered in your name at the land registry.