Drinking alcohol is permitted on passenger trains. If you wish to have a glass of wine, go to the snack car and buy a small bottle. Or even get two. If you travel in first class on the Alfa Pendular, then buy the wine from the attendant when she passes with the beverage cart.