Although there was marked shift in the collective consciousness of the
society after The Enlightenment , towards a more progressive scientific
society, but I would say the ideologies of Capitalism and Socialism came
into existence only after The Industrial Revolution. Not to mention
that the Industrial Revolution itself had its origin in the era of
Enlightenment.