To keep the template changes local to a frame, do it like this
{
\usebackgroundtemplate{\includegraphics[width=\paperwidth]{Portada_marca2.jpg}}
\begin{frame}
\titlepage
\end{frame}
}
The outer {} pair are scope delimiters.
Hope this helps!
Regards
Kjell Magne Fauske