Código Emperador succeeds in creating an interesting spy plot, but fails to generate tension, deviating a few times from the main story to deal with side missions that do not add to the plot.
Juan is an intelligence agent, a detective, as he puts it, but, at least to me, it is not clear if he is an official agent of Spanish Intelligence or if he is a private detective who ends up working for Intelligence. The fact is that Juan is an expert in espionage for a corrupt organization and ends up getting too involved in a case.
The premise is the classic story of the spy who lets his human side surface. His work begins to flog him morally, which leads him to accept risks he once avoided. And of course, this doesn't go unnoticed.
Some minor plots are only for character building. These are acceptable plots, but they deviate from the focus of the two main plots, stories A and B, that make up the film.
The outcome ends up disappointing for its brevity. Many holes remain open, instigating a possible sequel; but with the film's success, it looks like Code Emperador will be a one-time entry.