1h5min at MAD should be OK /is doable, provided that incoming flight is on time.
In the past I have received reimbursement of Madrid hotel expenses (200+ EUR) without issues from IB when incoming flight was late and I missed the midnight departure to BOG.