/* Tipografía, títulos y listas del contenido de texto largo dentro de
   .post-content .text-wrapper. Lo comparten el blog, las páginas legales
   y cualquier página futura. */

.formato-texto {
  display: inline !important;
  text-decoration: none;
  color: rgba(25, 27, 29, 0.6);
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 28px;
  font: inherit;
}

/* Normalize blog body typography + spacing to match the top section */
.post-content .text-wrapper p,
.post-content .text-wrapper div,
.post-content .text-wrapper li {
  color: rgba(25, 27, 29, 0.6);
  font-size: 14px;
  line-height: 28px;
  font-family: inherit;
  text-align: justify;
  text-justify: inter-word;
}

/* Keep headings and UI elements left-aligned */
.post-content .text-wrapper h1,
.post-content .text-wrapper h2,
.post-content .text-wrapper h3,
.post-content .text-wrapper h4,
.post-content .text-wrapper h5 {
  text-align: left !important;
}

.post-content .text-wrapper h2,
.post-content .text-wrapper h3,
.post-content .text-wrapper h4,
.post-content .text-wrapper h5 {
  color: #111;
  text-align: left;
  margin: 20px 0 10px;
}

/* El tema no define color para <a>, así que salían azules y moraban al visitarlos.
   Los que empiezan con "#" llevan a otra sección de ESTA misma página: no son un
   destino externo y no tiene sentido marcarlos como visitados. Se seleccionan por
   el href y no por una clase, así vale para el índice y para las referencias
   cruzadas del propio texto, sin tocar el HTML.
   Los enlaces externos y los mailto conservan a propósito el color del navegador,
   que es la señal de "esto te saca de acá".
   :visited está explícito porque es justamente la regla que los pintaba morados. */
.post-content .text-wrapper a[href^="#"],
.post-content .text-wrapper a[href^="#"]:visited {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content .text-wrapper a[href^="#"]:hover,
.post-content .text-wrapper a[href^="#"]:focus {
  color: #000;
  text-decoration-thickness: 2px;
}

/* Índices con anclas: al saltar a una sección, el header (150px, fijo) taparía el
   título. scroll-margin-top deja el hueco; scroll-behavior hace el salto suave sin
   JavaScript. Va acá para que sirva a cualquier página de texto largo con índice. */
html {
  scroll-behavior: smooth;
}

.post-content .text-wrapper h2[id],
.post-content .text-wrapper h3[id] {
  scroll-margin-top: 0px;
}

/* Keep SEO heading tags where they are, but render them inline when embedded in text */
.post-content .text-wrapper p h1,
.post-content .text-wrapper p h2,
.post-content .text-wrapper p h3,
.post-content .text-wrapper p h4,
.post-content .text-wrapper p h5,
.post-content .text-wrapper li h1,
.post-content .text-wrapper li h2,
.post-content .text-wrapper li h3,
.post-content .text-wrapper li h4,
.post-content .text-wrapper li h5,
.post-content .text-wrapper b h1,
.post-content .text-wrapper b h2,
.post-content .text-wrapper b h3,
.post-content .text-wrapper b h4,
.post-content .text-wrapper b h5 {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

/*
          Some SEO tags (h2/h3/...) are intentionally inserted inside phrases.
          Browsers auto-fix invalid nesting (e.g. <p>...<h2>...</h2>...</p>) by
          moving the heading OUT of the <p>, which makes it look huge and breaks flow.
          We must NOT move/remove tags, so we restyle headings in those specific blocks.
        */
.post-content .text-wrapper .formato-texto h1,
.post-content .text-wrapper .formato-texto h2,
.post-content .text-wrapper .formato-texto h3,
.post-content .text-wrapper .formato-texto h4,
.post-content .text-wrapper .formato-texto h5 {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

/* Tighten the spacing around the auto-extracted headings */
.post-content .text-wrapper .formato-texto h1,
.post-content .text-wrapper .formato-texto h2,
.post-content .text-wrapper .formato-texto h3,
.post-content .text-wrapper .formato-texto h4,
.post-content .text-wrapper .formato-texto h5 {
  vertical-align: baseline;
}

/* Inline SEO sentence wrapper (use instead of invalid <p><h2>..</h2></p>) */
.post-content .text-wrapper .hm-seo-inline {
  color: rgba(25, 27, 29, 0.6) !important;
  font-size: 14px;
  line-height: 28px;
  font-family: inherit;
  text-align: justify;
  text-justify: inter-word;
  margin: 0 0 1rem;
}

/* Title line where only part is wrapped in an SEO heading tag */
.post-content .text-wrapper .hm-seo-title-inline {
  color: #111 !important;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  margin: 20px 0 10px;
}

.post-content .text-wrapper .hm-seo-title-inline h2,
.hm-seo-title-inline h3,
.hm-seo-title-inline h4 {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

/* Remove unintended centering from Bootstrap helpers inside content */
.post-content .text-wrapper .container,
.post-content .text-wrapper .container.text-center,
.post-content .text-wrapper .text-center {
  text-align: left !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

.post-content .text-wrapper .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: flex-start !important;
}

.post-content .text-wrapper [class^="col-"],
.post-content .text-wrapper [class*=" col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: left !important;
}

/* style.css pone list-style:disc también en los <ol>, así que una lista numerada
   sale con viñetas. Acá se le devuelve la numeración; type="i" queda disponible
   para la numeración de cláusulas de los documentos legales. */
.post-content .text-wrapper ol {
  list-style: decimal;
}

.post-content .text-wrapper ol[type="i"] {
  list-style: lower-roman;
}

/* Images inside content should never overflow or look "floating centered" */
.post-content .text-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}

.fuente-normal {
  color: rgba(25, 27, 29, 0.6);
  font-size: 14px;
  line-height: 28px;
  font-family: inherit;
  text-align: justify;
  text-justify: inter-word;
  letter-spacing: 0;
}

.fuente-h2 {
  color: #111;
  margin: 20px 0 10px;
  text-align: left !important;
  font-weight: 500;
  line-height: 1.2 !important;
  font: inherit;
  font-size: 2rem !important;
  font-weight: 500 !important;
  vertical-align: baseline;
  letter-spacing: -0.06em;
  margin-block-start: 0.83em;
  margin-block-end: 0.83em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}
