You can process excess baggage for the flight at Booking management or at the airport, although the website is recommended because it is cheaper.
For the train journey, you must consult with Renfe to see if they accept excess luggage and under what conditions.