José Antonio Kast, a far-right politician, who has praised Chile's dictatorship, has won the presidency, signaling a sharp rightward shift fueled by fears over crime, migration, and the economy.