/* CSS Document */
.tcenter h1 {
  text-align: center;
}

.figure,
figure {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  /* aumenta según tus necesidades */
}

/* Justificación del texto */

/*body {   text-align: justify; }*/

main.content p,
.page-content p {
  text-align: justify;
}

p {
  text-align: justify;
}

/* Mantener los títulos alineados a la izquierda */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: left;
}


/* Ajusta el tamaño de las fórmulas inline */
.math.inline,
.katex {
  font-size: 0.92em;
  /* mismo tamaño que el texto principal */
  vertical-align: middle;
  /* para que se alinee bien con el texto */
}

/* Opcional: ajustar también fórmulas display */
.math.display {
  font-size: 0.9em;
}

.math.inline {
  vertical-align: baseline !important;
  position: relative;
  top: -0.04em;
  /* ajusta entre -0.05 y -0.15 según el estilo del libro */
}

mjx-container[MathVariant="normal"] {
  vertical-align: baseline !important;
  position: relative;
  top: -0.04em;
}