/* Wayback Fixer auto-supplement */
/* Elementor entrance-animation elements keep visibility:hidden until frontend JS
   fires; without it (no per-page post-NNNN.css) content stays invisible. Force on. */
.elementor-invisible{opacity:1 !important;visibility:visible !important;animation:none !important;}
.elementor img,.elementor-widget-container img{max-width:100%;height:auto;}

/* Ritmo de lectura de los bloques de la portada. */
body.home .entry-content .elementor h2,
body.home .entry-content .elementor h3,
body.home .entry-content .elementor h4 { margin-bottom: .6rem; }
body.home .entry-content .elementor p { margin-bottom: .75rem; }

/* Article template content (.m9oldc) — keep readable typography even when
   Astra/critical CSS zero out paragraph margins and inflate global h2 sizes. */
.m9oldc {
  max-width: 48rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3a3a3a;
}
.m9oldc p { margin: 0 0 0.9rem !important; }
.m9oldc h1, .m9oldc h2, .m9oldc h3, .m9oldc h4, .m9oldc h5, .m9oldc h6 {
  position: static !important;
  width: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 1.25rem 0 0.55rem !important;
  line-height: 1.3 !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
}
.m9oldc h1 { font-size: 1.85rem !important; }
.m9oldc h2 { font-size: 1.45rem !important; }
.m9oldc h3 { font-size: 1.2rem !important; }
.m9oldc h4 { font-size: 1.05rem !important; }
.m9oldc ul, .m9oldc ol {
  padding: 0 0 0 1.35rem !important;
  margin: 0.6rem 0 1rem !important;
}
.m9oldc li { margin: 0 0 0.35rem !important; }
.m9oldc img { height: auto; max-width: 100%; margin: 0.75rem 0; }
.m9oldc table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.95em;
}
.m9oldc th, .m9oldc td {
  border: 1px solid #ddd;
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.m9oldc th { background: #f4f4f4; font-weight: 600; }
.m9oldc a { color: #0170B9; text-decoration: underline; }
.m9oldc blockquote {
  margin: 1rem 0;
  padding-left: 0.85rem;
  border-left: 3px solid #00335A;
  color: #565656;
}

/* Footer Elementor library (14732): keep headings compact if post CSS is late/missing */
.elementor-14732 .elementor-heading-title {
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}
.elementor-14732 .elementor-element-cd56e7b .elementor-heading-title,
.elementor-14732 .elementor-element-648e70b .elementor-heading-title {
  font-size: 16px !important;
  font-weight: 500 !important;
}

/*
 * /pages + r-template_article use Astra's page-builder body class, which sets
 * .ast-container { max-width:100%; padding:0 }. Content then stretches edge-to-edge.
 * Force a readable content column for these catalog/article shells.
 */
.ast-page-builder-template .site-content > .ast-container {
  max-width: 1140px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}
.ast-page-builder-template #primary {
  margin-top: 1.5rem !important;
  margin-bottom: 2rem !important;
  padding: 0 !important;
}

.lpg-article-layout {
  display: flex !important;
  gap: 36px !important;
  align-items: flex-start !important;
  padding: 28px 0 48px !important;
  width: 100%;
  box-sizing: border-box;
}
.lpg-article-layout > article {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 760px;
}
.lpg-article-layout > aside {
  flex: 0 0 240px !important;
  max-width: 240px !important;
}
.lpg-article-layout > article > h1,
.site-main > section > h1 {
  font-size: 1.85rem !important;
  line-height: 1.25 !important;
  margin: 0 0 0.75rem !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
  max-width: 40rem;
}
.site-main > section {
  padding: 28px 0 48px !important;
  max-width: 100%;
  box-sizing: border-box;
}
.site-main > section > p {
  margin: 0 0 1.25rem !important;
  color: #4b4f58;
  max-width: 42rem;
}

/* Blog cards on /pages: keep cards from ballooning on wide screens */
#blog-cards {
  max-width: 100%;
}
#blog-cards > div {
  flex: 1 1 280px !important;
  max-width: calc(50% - 12px);
  min-width: 0;
}
@media (max-width: 760px) {
  .lpg-article-layout { flex-direction: column !important; }
  .lpg-article-layout > aside {
    position: static !important;
    flex: 1 1 auto !important;
    max-width: 100% !important;
  }
  .lpg-article-layout > article { max-width: 100%; }
  #blog-cards > div { max-width: 100%; flex: 1 1 100% !important; }
}

/* Tokenizacion / Elementor video shells: keep 16:9 frame visible without JS */
.elementor-widget-video .elementor-fit-aspect-ratio {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #0b2a40;
}
.elementor-widget-video .elementor-fit-aspect-ratio > .elementor-video,
.elementor-widget-video .elementor-fit-aspect-ratio iframe.elementor-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Make the footer brand logos readable on dark blue */
.elementor-14732 img {
  max-height: 72px;
  width: auto;
  height: auto;
}

/* Tokenizacion wordmark in bottom CTA — keep it readable */
.elementor-1181 .elementor-element-db9fa23 img {
  width: min(280px, 70%);
  max-width: 100%;
  height: auto;
  display: block;
}
