Este trabajo examina la transformación del contrato social desde sus orígenes filosóficos hasta la era de la inteligencia artificial (IA). En primer lugar, se reconstruye la genealogía del concepto de «contrato social» desde la antigüedad clásica (PROTÁGORAS, PLATÓN, CICERÓN), pasando por los teóricos modernos (HOBBES, LOCKE, ROUSSEAU) y neocontractualistas contemporáneos (RAWLS, GAUTHIER, PETTIT). En segundo lugar, se compara cómo cada revolución industrial reconfiguró las estructuras sociales, el empleo, los conflictos y el bienestar, desde la mecanización decimonónica hasta la digitalización tardía del siglo XX. Sobre esta base, se argumenta que la IA —como infraestructura socio-técnica y nuevo régimen de toma de decisiones— está redefiniendo las condiciones fundamentales del contrato social en cuanto a legitimidad del poder, justicia distributiva, garantía de derechos y pertenencia cívica. El trabajo identifica, así, cinco ámbitos de fricción donde la adopción de IA tensiona principios jurídicos y democráticos (trabajo, administración pública, seguridad, esfera pública y mercados), generando riesgos de nuevas brechas sociales y de la aparición de una «clase prescindible». Finalmente, se proponen ajustes normativos y principios para un nuevo contrato social en la era algorítmica —desde derechos digitales efectivos hasta mecanismos de redistribución y rendición de cuentas algorítmica— con el fin de asegurar que la transformación tecnológica no erosione la igualdad, la libertad ni el Estado de Derecho.
This paper examines the transformation of the social contract from its philosophical origins to the era of artificial intelligence (AI). First, it reconstructs the genealogy of the concept of the «social contract» from classical antiquity (PROTAGORAS, PLATO, CICERO), through modern theorists (HOBBES, LOCKE, ROUSSEAU), and contemporary neo-contractarians (RAWLS, GAUTHIER, PETTIT). Second, it compares how each industrial revolution reconfigured social structures, employment, conflicts, and welfare, from nineteenth-century mechanization to the late twentieth-century digitalization. On this basis, it is argued that AI-as a socio-technical infrastructure and a new decision-making regime-is redefining the fundamental conditions of the social contract regarding the legitimacy of power, distributive justice, the guarantee of rights, and civic belonging. Thus, the paper identifies five areas of friction where the adoption of AI strains legal and democratic principles (labor, public administration, security, the public sphere, and markets), generating risks of new social divides and the emergence of an «expendable class». Finally, regulatory adjustments and principles are proposed for a new social contract in the algorithmic age-ranging from effective digital rights to redistribution mechanisms and algorithmic accountability-in order to ensure that technological transformation does not erode equality, liberty, or the Rule of Law.