The Catalan Socialist Party (PSC), under former Spanish health minister Salvador Illa, made substantial gains to emerge as the clear winner. With 99% of votes counted, it has secured 42 seats.