>>1757192I used the Barcelona-Madrid overnight until the very end, iirc it was like 40 euros for a berth, which is just over a third of the regular HSR fare.
I also used the french sleepers, they've kept two lines, one runs to Latour de Carol on the Spanish border and connects to the regional train from Barcelona. It's an interesting journey going to France over the Pyrenees instead of along the coast.