When we congratulate somebody we say
¡Felicidades! – Congratulations! (Spain)
¡Felicitaciones! – Congratulations! (Latin America)
However, if we congratulate someone for a merit, we say
¡Enhorabuena! – Congratulations (for your success)
A wedding or birth of a child can perfectly be a reason to say Enhorabuena.