Church, religion and society in early modern Spain