/* 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;
}


/* 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;
}

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

.post-content .text-wrapper h1,
.post-content .text-wrapper .fuente-h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.post-content .text-wrapper h2,
.post-content .text-wrapper .fuente-h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.post-content .text-wrapper h3,
.post-content .text-wrapper .fuente-h3 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.post-content .text-wrapper h4,
.post-content .text-wrapper .fuente-h4 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.post-content .text-wrapper h5,
.post-content .text-wrapper .fuente-h5 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}

.post-content .text-wrapper h6,
.post-content .text-wrapper .fuente-h6 {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0;
}

.fuente-h1 { font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.06em; }
.fuente-h2 { font-size: 32px; line-height: 1.2;  font-weight: 700; letter-spacing: -0.06em; }
.fuente-h3 { font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -0.03em; }
.fuente-h4 { font-size: 24px; line-height: 1.3;  font-weight: 600; letter-spacing: -0.02em; }
.fuente-h5 { font-size: 20px; line-height: 1.4;  font-weight: 600; letter-spacing: 0; }
.fuente-h6 { font-size: 16px; line-height: 1.45; font-weight: 600; letter-spacing: 0; }

@media (max-width: 991.98px) {
  .post-content .text-wrapper h1,
  .post-content .text-wrapper .fuente-h1,
  .fuente-h1 { font-size: 34px; }

  .post-content .text-wrapper h2,
  .post-content .text-wrapper .fuente-h2,
  .fuente-h2 { font-size: 28px; }

  .post-content .text-wrapper h3,
  .post-content .text-wrapper .fuente-h3,
  .fuente-h3 { font-size: 24px; }

  .post-content .text-wrapper h4,
  .post-content .text-wrapper .fuente-h4,
  .fuente-h4 { font-size: 21px; }

  .post-content .text-wrapper h5,
  .post-content .text-wrapper .fuente-h5,
  .fuente-h5 { font-size: 18px; }
}

@media (max-width: 575px) {
  .post-content .text-wrapper h1,
  .post-content .text-wrapper .fuente-h1,
  .fuente-h1 { font-size: 28px; }

  .post-content .text-wrapper h2,
  .post-content .text-wrapper .fuente-h2,
  .fuente-h2 { font-size: 24px; }

  .post-content .text-wrapper h3,
  .post-content .text-wrapper .fuente-h3,
  .fuente-h3 { font-size: 21px; }

  .post-content .text-wrapper h4,
  .post-content .text-wrapper .fuente-h4,
  .fuente-h4 { font-size: 19px; }
}

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

.post-content .text-wrapper [class*="fuente-"] h1,
.post-content .text-wrapper [class*="fuente-"] h2,
.post-content .text-wrapper [class*="fuente-"] h3,
.post-content .text-wrapper [class*="fuente-"] h4,
.post-content .text-wrapper [class*="fuente-"] h5,
.post-content .text-wrapper [class*="fuente-"] h6,
.post-content .text-wrapper .parrafo-enfasis h1,
.post-content .text-wrapper .parrafo-enfasis h2,
.post-content .text-wrapper .parrafo-enfasis h3,
.post-content .text-wrapper .parrafo-enfasis h4,
.post-content .text-wrapper .parrafo-enfasis h5,
.post-content .text-wrapper .parrafo-enfasis h6 {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  letter-spacing: inherit !important;
}

.parrafo-enfasis,
.post-content .text-wrapper .parrafo-enfasis {
  color: rgba(25, 27, 29, 0.85);
  font-size: 16px;
  line-height: 30px;
  font-weight: 600;
  font-style: italic;
  font-family: inherit;
  letter-spacing: 0;
  text-align: left;
  margin: 24px 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--color-hello, #ffda00);
}

.post-content .text-wrapper .parrafo-enfasis :is(b, strong) {
  font-weight: 700;
}

.post-content .text-wrapper .parrafo-enfasis a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 575px) {
  .parrafo-enfasis,
  .post-content .text-wrapper .parrafo-enfasis {
    font-size: 15px;
    line-height: 28px;
    padding-left: 16px;
    margin: 20px 0;
  }
}
