A geometric perspective on Irreversible Thermodynamics. Part I: general concepts.