CASTELLNOU DE BAGES, Santa Margarita de Viladepost, S-XIII