Anyone knows how to solve this? The problem is that the number is very close to the title when the number reaches 10. I will add an image to reference this. Thanks in advance!
These are all the packages (and the type of document) I used:
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[margin=1in]{geometry}
\usepackage{cite}
\usepackage{float}
\usepackage[final]{hyperref}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage[spanish]{babel}
\usepackage[bottom]{footmisc}
\usepackage{titlesec}
\usepackage{hyperref}
\usepackage{soul}
\usepackage{comment}
\usepackage{subfiles}
NOTE: This question is related but that solution doesn't work perfectly because it changes the spacing and removes the period after the number. I only want to change that space between number and title. Thanks!
EDIT: Added MWE:
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[margin=1in]{geometry}
\usepackage{cite}
\usepackage{float}
\usepackage[final]{hyperref}
\usepackage{lipsum}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage[spanish]{babel}
\setlength{\parindent}{0em}
\setlength{\parskip}{.5em}
\renewcommand{\baselinestretch}{1.35}
\usepackage[bottom]{footmisc}
\usepackage{titlesec}
\usepackage{hyperref}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\begin{document}
\thispagestyle{empty}
\setlength\headheight{0pt}
\begin{center}
{\Large\bfseries Resume\par}
\vspace{0.5cm}
\end{center}
\tableofcontents
\pagebreak
\section{A}
\section{B}
\section{C}
\section{D}
\section{E}
\section{F}
\section{G}
\section{H}
\section{I}
\section{J}
\section{K}
\section{L}
\section{M}
\end{document}
This will display:
\usepackage[titles]{tocloft} \renewcommand\cftsecaftersnum{.} \renewcommand\cftsubsecaftersnum{.} \renewcommand*\cftsecnumwidth{2em}
sould work. (not tested)