How can I fix the issue with the words Nuevo and Mejor? They are appearing in math mode but they should appear in textmode:
Also, why does \argmax_{\mathbf{x} \in \mathcal{X}} appear next to arg max instead of below?
\documentclass{article}
\usepackage{algorithm2e}
\usepackage{amsmath}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\argmax}{arg\,max}
\begin{document}
\begin{algorithm}[H]
\DontPrintSemicolon % Some LaTeX compilers require you to use \dontprintsemicolon instead
\KwIn{.}
\KwOut{.}
% \textit{Inicialización}:\\
% Aleatoriamente inicializar $b_{u}$ y $b_{i}$\\
\For{$t = 1$ \text{hasta} $T$}{
Ajustar $\Psi$ hasta $\mathcal{H}$\\
$\mathbf{x}^{\text{\tiny Nuevo}} = \argmax_{\mathbf{x} \in \mathcal{X}} a(\Psi(\mathbf{x},\mathcal{D}), \mathcal{H})$\\
Evaluar $b(\mathbf{x}^{\text{\tiny Nuevo}},\mathcal{D})$\\
\If{$b(\mathbf{x}^{\text{\tiny Nuevo}},\mathcal{D}) < b(\mathbf{x}^{\text{\tiny Mejor}},\mathcal{D})$}{
$\mathbf{x}^{\text{\tiny Mejor}}=\mathbf{x}^{\text{\tiny Nuevo}}$\\
$\mathcal{H} = \mathcal{H} \cup (\mathbf{x}^{\text{\tiny Nuevo}},b(\mathbf{x}^{\text{\tiny Nuevo}},\mathcal{D})) $
}
}
\Return $\mathbf{x}^{\text{\tiny Mejor}}$
\end{algorithm}
\end{document}

