I am surprised to see that it was that cheap in Spain. Come to think of it, it was cheaper than Executive class of Vande Bharat :p.
I was only familiar with rail routes of USA. It is prohibitively expensive to travel there by train. Air routes and road routes are much cheaper when compared to Amtrak trains there [ which aren't too fast either because freight is often given first privilege on the tracks ].