You're very welcome. Have a good one!
I think the problem was that I thought that the determinant of the Hessian matrix determines whether a function is convex. (I think this is a pretty popular belief). Now I see that we have to verify if the Hessian matrix is positive definite.
Thanks for your help.