\documentclass[
    spanish,
    12pt]{article}

\newcommand{\titlename}{Diseño e Implementación de un Lenguaje de Programación de Tipo Declarativo Inspirado en Prolog para Control de Agentes en Videojuegos}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[
    backend=biber,
    style=numeric,
    sorting=none,
    defernumbers=true
    ]{biblatex}
\addbibresource{references.bib}
\usepackage{csquotes}
\usepackage{graphicx}
\usepackage{mathptmx}
\usepackage{array}
\usepackage{float}
\usepackage{soulutf8}
\sethlcolor{blue}
\usepackage{listings}
\usepackage[table, xcdraw]{xcolor}

\usepackage{setspace}

\usepackage{titlesec}

\usepackage{tocloft}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}

\titleclass{\subsubsubsection}{straight}[\subsection]

\newcounter{subsubsubsection}[subsubsection]
\renewcommand\thesubsubsubsection{\thesubsubsection.\arabic{subsubsubsection}}

\titleformat{\subsubsubsection}
  {\normalfont\normalsize\bfseries}{\thesubsubsubsection.}{1em}{}
\titlespacing*{\subsubsubsection}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

\makeatletter
\def\toclevel@subsubsubsection{4}
\def\l@subsubsubsection{\@dottedtocline{4}{7em}{4em}}
\makeatother

\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}

\onehalfspacing
\setstretch{1.5}

\renewcommand{\labelitemi}{$\bullet$}

\usepackage{hyperref}
\hypersetup{
    colorlinks=true,
    linkcolor=blue,
    citecolor=blue,
    filecolor=blue,
    urlcolor=blue,
    %allcolors=blue,
    pdftitle={\titlename}
}
\usepackage{hypcap}

\usepackage[left=3.0cm,
    right=3.0cm,
    top=2.5cm,
    bottom=2.5cm,
    letterpaper]{geometry}

\usepackage{ragged2e}
\justifying
\setlength\RaggedRightParindent{36pt}
\RaggedRight

\newcommand{\sectionbreak}{\phantomsection}

\begin{document}

\hypersetup{pageanchor=false}
\pagenumbering{gobble}
\thispagestyle{empty}
\clearpage

\title{
    \includegraphics[width=0.5\textwidth, height=0.5\textheight, keepaspectratio]{figures/ubb.png}\\
    \titlename
}
\author{Christopher Cromer y Martín Araneda Acuña}
\maketitle

\newpage
\phantomsection
\pagenumbering{gobble}
\thispagestyle{empty}
\clearpage
\tableofcontents

\newpage
\phantomsection
\hypersetup{pageanchor=false}
\pagenumbering{gobble}
\thispagestyle{empty}
\clearpage
\listoffigures

\newpage
\phantomsection
\hypersetup{pageanchor=false}
\pagenumbering{gobble}
\thispagestyle{empty}
\clearpage
\listoftables

\clearpage
\pagenumbering{arabic}
\hypersetup{pageanchor=true}

\include{sections/agradecimientos.tex}

\include{sections/composicion}

\include{sections/introduccion}

\include{sections/marco_teorico}

\include{sections/estado_del_arte}

\include{sections/diseño_lenguaje.tex}

\include{sections/implementacion_lenguaje.tex}

\include{sections/incorporacion_lenguaje_motor.tex}

\include{sections/evaluacion_desempeño.tex}

\include{sections/trabajo_futuro.tex}

\include{sections/conclusion.tex}

\include{sections/referencias}

\end{document}