automobiles – Roads classification in Spain

While I am looking for some nice roads in Spain for my next roadtrip, I noticed that the roads there have different numbera A-, B-, N- etc, some of them have even a letter at the end (C-1412a)

What is the meaning of all those letters and numbers? Does a bigger number mean a smaller road?

map of random region in Spain