I'm trying to draw horizontal lines above and below the title and adding some extra space between them and the text. I've being trying this code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=2cm]{geometry}
\title{
\rule{\textwidth}{2pt}
\vspace{1cm}
\textbf{Notas en Computación Cuántica}
\vspace{1cm}
\rule{\textwidth}{2pt}
}
\author{John Doe}
\date{April 2019}
\begin{document}
\maketitle
\section{Introduction}
\end{document}
However, the resulting document looks like both \vspace commands are adding the space only below the title, even the one that is placed right above. Can anyone help me?