\documentclass[12pt]{article}
\usepackage[marginparwidth=2cm,margin=25mm,centering]{geometry}
\usepackage[spanish,mexico]{babel}
\usepackage[T1]{fontenc}
\usepackage{helvet}
\usepackage{anyfontsize}
\usepackage[x11names]{xcolor}
\usepackage{color}
\usepackage{amsmath,amsfonts,amssymb,amsbsy}
\usepackage{bm}
\usepackage{sansmath}
\usepackage{tocloft}
\usepackage{authoraftertitle}
\usepackage[pdfusetitle,hidelinks]{hyperref}
\usepackage{pdfpages}
\usepackage{graphicx}
\usepackage{float}
\usepackage{subfig}
\usepackage{caption}
\usepackage{enumitem}
\usepackage{empheq}
\usepackage{soulutf8}
\usepackage[makeroom]{cancel}
\usepackage{physics}
\usepackage{booktabs}
\usepackage[spanish,colorinlistoftodos]{todonotes}
% \usepackage{multirow, multicol}
% \usepackage[natbibapa]{apacite}
\usepackage[export]{adjustbox}
\usepackage{tcolorbox}
% \usepackage[explicit]{titlesec}
% \usepackage{minted}
% \usepackage[spanish,onelanguage,ruled]{algorithm2e}
% \usepackage{fontawesome5}
% \usepackage{pgfplots}
% \usepackage{tkz-fct}
% \usepackage{pgf-pie}
\tcbuselibrary{skins}
% \pgfplotsset{compat = newest}
% \usepgfplotslibrary{statistics}
% \usetikzlibrary{arrows.meta, arrows, positioning, shapes.geometric, shapes.misc, decorations.pathmorphing,decorations.pathreplacing,decorations.shapes}
% Para probar
\usepackage{blindtext}
%Carpeta de imágenes
\graphicspath{{img/}}
%Colores para resaltar
\definecolor{pizcadementa}{RGB}{176,251,205}
\definecolor{brisavioleta}{RGB}{237,182,240}
\definecolor{ruborrosa}{RGB}{254,189,207}
\definecolor{toquedeturquesa}{RGB}{186,254,254}
\definecolor{melocotonsedoso}{RGB}{255,203,163}
\definecolor{amarillocremoso}{RGB}{255,255,151}
\definecolor{azulnublado}{RGB}{179,199,224}
\definecolor{chispadelima}{RGB}{215,248,143}
\definecolor{coralmeloso}{RGB}{241,121,86}
\definecolor{rosacerezo}{RGB}{248,135,155}
\definecolor{lavandaneon}{RGB}{149,86,223}
\definecolor{magentaneon}{RGB}{250,39,199}
\definecolor{rosaneon}{RGB}{252,104,178}
\definecolor{rojoneon}{RGB}{254,59,93}
\definecolor{naranjaneon}{RGB}{255,173,42}
\definecolor{amarilloneon}{RGB}{229,247,0}
\definecolor{verdeneon}{RGB}{3,226,2}
\definecolor{turquesaneon}{RGB}{0,200,122}
\definecolor{azulneon}{RGB}{60,190,252}
\definecolor{rosapastel}{RGB}{255,160,205}
\definecolor{lilapastel}{RGB}{244,186,255}
\definecolor{coralpastel}{RGB}{255,191,16}
\definecolor{limapastel}{RGB}{169,248,138}
\definecolor{aquapastel}{RGB}{117, 250, 219}
\definecolor{coralflash}{RGB}{255,231,231}
\definecolor{peachflash}{RGB}{243,169,163}
\definecolor{babypinkflash}{RGB}{246,202,218}
\definecolor{lavenderflash}{RGB}{191,184,230}
\definecolor{mintflash}{RGB}{145,231,190}
\definecolor{aquaflash}{RGB}{38,200,204}
\definecolor{steelflash}{RGB}{221,221,221}
\definecolor{iceflash}{RGB}{153,225,227}
\definecolor{appleflash}{RGB}{207,255,71}
\definecolor{bananaflash}{RGB}{242,244,14}
\definecolor{verdesharp}{RGB}{52,176,106}
\definecolor{naranjasharp}{RGB}{234,141,12}
\definecolor{rosasharp}{RGB}{229,70,134}
\definecolor{ocresharp}{RGB}{235,191,4}
\definecolor{azulsharp}{RGB}{40,146,208}
\definecolor{amarillosharp}{RGB}{228,234,40}
%Colores principales
\colorlet{main}{aquaflash}
\colorlet{darkMain}{main!95!black}
\colorlet{corcol}{SlateGray4!90!black}
\colorlet{comcol}{DarkSlateGray4!90!black}
%Auxiliares
\renewcommand{\familydefault}{\sfdefault}
\sansmath
\newcommand{\rulecolor}[4][main]{\textcolor{#1}{\rule[#2]{#3}{#4}}}
\newcommand{\mtex}[1]{$\displaystyle \mathsf{#1}$}
\renewcommand{\labelitemi}{$\bullet$}
\renewcommand{\labelitemii}{$\circ$}
%\renewcommand{\lstlistingname}{Código}
\allowdisplaybreaks
\newcommand{\ol}[1]{\overline{#1}}
\sethlcolor{main}
\setulcolor{main}
% \renewcommand{\BBAA}{y}
% \renewcommand{\BBAB}{y}
% \renewcommand{\BAnd}{y}
%Entornos
\newcommand{\sol}[2][main]{\colorbox{#1}{ #2 }}
\newenvironment{msol}[1][main]
{\empheq[box=\colorbox{#1}]{equation*}}
{\endempheq}
\newenvironment{corr}{\color{corcol}\paragraph{Corrección}}
{}
\newcommand{\comentario}[1]{\textcolor{comcol}{\textit{#1}}}
\newcommand{\textcbf}[2][darkMain]{\textcolor{#1}{\textbf{#2}}}
\newenvironment{citemsize}[1][darkMain]
{\begin{itemize}[label=\textcolor{#1}{$\blacktriangleright$}]}
{\end{itemize}}
\newenvironment{benumerate}[1][.]
{\begin{enumerate}[label=\bfseries\arabic*#1]}
{\end{enumerate}}
\newenvironment{cbenumerate}[1][.]
{\begin{enumerate}[label=\color{darkMain}\bfseries\arabic*#1]}
{\end{enumerate}}
\newenvironment{cdescription}[1][darkMain]
{\begin{description}[font=\bfseries\color{#1}]}
{\end{description}}
%Cajas
\newtcolorbox{cfpbox}[1][darkMain]{
halign=flush center,
boxrule=3pt,
colframe=#1,
colback=white,
boxsep=4mm,
arc=0pt,
outer arc=0pt
}
\newtcolorbox{ttlbox}[1][darkMain]{
halign=flush center,
boxrule=10pt,
colframe=#1,
colback=white,
boxsep=4mm,
arc=0pt,
outer arc=0pt
}
\newenvironment{saybox}[1][main]{\begin{tcolorbox}[blanker, before skip=6pt, after skip=6pt, left=7mm, borderline west={3mm}{0pt}{#1}, fontupper=\itshape]\textquotedblleft}{\textquotedblright\end{tcolorbox}}
%Secciones
\newcommand{\listprobname}{Lista de Problemas}
\newlistof{problema}{prob}{\listprobname}
\newcommand{\problema}[1][]{
\refstepcounter{problema}
\section*{Problema \theproblema}
\addcontentsline{prob}{problema}{\protect{Problema \numberline\theproblema}}\par
}
\renewcommand{\cftprobtitlefont}{\Large\bfseries}
\renewcommand{\cftproblemafont}{\itshape}
\renewcommand{\cftproblemapagefont}{\bfseries}
\renewcommand{\cftproblemadotsep}{10}
\newcommand{\solucion}{\subsection*{Solución}}
%Símbolos matemáticos
\def\cA{{\mathcal{A}}}
\def\cB{{\mathcal{B}}}
\def\cC{{\mathcal{C}}}
\def\cD{{\mathcal{D}}}
\def\cE{{\mathcal{E}}}
\def\cF{{\mathcal{F}}}
\def\cG{{\mathcal{G}}}
\def\cH{{\mathcal{H}}}
\def\cI{{\mathcal{I}}}
\def\cJ{{\mathcal{J}}}
\def\cK{{\mathcal{K}}}
\def\cL{{\mathcal{L}}}
\def\cM{{\mathcal{M}}}
\def\cN{{\mathcal{N}}}
\def\cO{{\mathcal{O}}}
\def\cP{{\mathcal{P}}}
\def\cQ{{\mathcal{Q}}}
\def\cR{{\mathcal{R}}}
\def\cS{{\mathcal{S}}}
\def\cT{{\mathcal{T}}}
\def\cU{{\mathcal{U}}}
\def\cV{{\mathcal{V}}}
\def\cW{{\mathcal{W}}}
\def\cX{{\mathcal{X}}}
\def\cY{{\mathcal{Y}}}
\def\cZ{{\mathcal{Z}}}
\def\I{{\mathcal{I}}}
\def\CC{{\mathbb{C}}}
\def\HH{{\mathbb{H}}}
\def\RR{{\mathbb{R}}}
\def\NN{{\mathbb{N}}}
\def\ZZ{{\mathbb{Z}}}
\def\QQ{{\mathbb{Q}}}
%Tikz
%\newcommand*\circular[1]{\tikz[baseline=(char.base)]{\node[shape=circle,fill=main,inner sep=2pt] (char) {#1};}}
%opening
\def\tarno{0}
\title{Título}
\author{Autor}
\begin{document}
\begin{titlepage}
\pagecolor{main!50}
\vspace*{\fill}
\begin{ttlbox}
\textbf{
\fontsize{25}{30}\selectfont Tarea \tarno\\
\fontsize{35}{42}\selectfont \MyTitle\\[5mm]
\huge \MyAuthor\\
}
\vspace{3mm}
{\LARGE\textit{\today}}
%\\[1mm]
%Correcciones: \today
\end{ttlbox}
\vspace*{\fill}
\end{titlepage}
\pagecolor{white}
%Lista de problemas
\listofproblema
\clearpage
\problema
\blindtext[2]
\blindlist{benumerate}
\solucion
\blindtext
\blindlist{citemsize}[2]
\sol{La solución en texto es esta}.\\
\blindlist{cbenumerate}
\comentario{Le falta más información}\\
Mientras que en fórmula matemática es
\begin{msol}
x_{1,2}= \frac {-b \pm \sqrt {b^2 - 4a}}{2a}
\end{msol}
\begin{corr}
La fórmula correcta es:
\[x_{1,2}= \frac {-b \pm \sqrt {b^2 - 4ac}}{2a}
\]
\end{corr}
\end{document}