/* Scope-safe layout fixes: only native WordPress pages receive a top gutter.
   Custom HTML landing pages (iih, ap, dssl, iec) keep their own layout. */
body.page .ii-entry-shell.ii-page-native {
  width:min(calc(100% - 44px), 1050px) !important;
  max-width:1050px !important;
  margin:0 auto !important;
  padding:clamp(50px,6vw,86px) 0 90px !important;
  min-height:0 !important;
  overflow:visible !important;
}
body.page .ii-entry-shell.ii-page-native > .ii-entry-header {
  display:block !important;
  position:relative !important;
  visibility:visible !important;
  opacity:1 !important;
  max-width:830px !important;
  margin:0 auto 32px !important;
  text-align:center !important;
}
body.page .ii-entry-shell.ii-page-native .ii-entry-title {
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  color:#102b35 !important;
  font-size:clamp(34px,4.4vw,58px) !important;
  line-height:1.12 !important;
  overflow-wrap:anywhere;
}
body.page .ii-entry-shell.ii-page-native > .ii-entry-content {
  margin:0 auto !important;
  max-width:1050px !important;
}
body.page .ii-entry-shell.ii-page-native > .ii-entry-content > .ii-legal-doc {
  margin:0 auto !important;
  max-width:800px !important;
  padding:0 !important;
}
body.page .ii-entry-shell.ii-page-native .ii-legal-doc > h1:first-child {
  display:block !important;
  position:relative !important;
  visibility:visible !important;
  opacity:1 !important;
  margin:0 0 26px !important;
  color:#102b35 !important;
  font:700 clamp(34px,4.4vw,55px)/1.16 Georgia,"Times New Roman",serif !important;
  letter-spacing:-.025em !important;
  text-align:left !important;
  overflow-wrap:anywhere;
}
body.page .ii-entry-shell.ii-page-custom {
  /* No modifications to the authored HTML layouts. */
}
/* Corrección exclusiva de H1 para home, biblioteca y seis páginas pilares.
   Restaura títulos compactos de tipografía sans; no modifica otros encabezados. */
body.page-id-5260 .iih :is(h1,.iih-h1),
body.page-id-14878 .iih :is(h1,.iih-h1),
body.single-post.postid-7032 .ap :is(h1,.ap-h1),
body.single-post.postid-17569 .ap :is(h1,.ap-h1),
body.single-post.postid-15947 .ap :is(h1,.ap-h1),
body.single-post.postid-17717 .ap :is(h1,.ap-h1),
body.single-post.postid-13203 .ap :is(h1,.ap-h1),
body.single-post.postid-17708 .ap :is(h1,.ap-h1) {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 780 !important;
  line-height: 1.11 !important;
  letter-spacing: -.04em !important;
  text-transform: none !important;
}
body.page-id-5260 .iih :is(h1,.iih-h1) {
  font-size: clamp(2.65rem, 4.25vw, 4.3rem) !important;
}
body.page-id-14878 .iih :is(h1,.iih-h1) {
  font-size: clamp(2.55rem, 4.1vw, 4.05rem) !important;
}
body.single-post.postid-7032 .ap :is(h1,.ap-h1),
body.single-post.postid-17569 .ap :is(h1,.ap-h1),
body.single-post.postid-15947 .ap :is(h1,.ap-h1),
body.single-post.postid-17717 .ap :is(h1,.ap-h1),
body.single-post.postid-13203 .ap :is(h1,.ap-h1),
body.single-post.postid-17708 .ap :is(h1,.ap-h1) {
  font-size: clamp(2.5rem, 4.25vw, 4.3rem) !important;
}
@media(max-width:720px) {
  body.page-id-5260 .iih :is(h1,.iih-h1),
  body.page-id-14878 .iih :is(h1,.iih-h1) {
    font-size:clamp(2.1rem,8vw,2.85rem) !important;
    letter-spacing:-.035em !important;
  }
  body.single-post.postid-7032 .ap :is(h1,.ap-h1),
body.single-post.postid-17569 .ap :is(h1,.ap-h1),
body.single-post.postid-15947 .ap :is(h1,.ap-h1),
body.single-post.postid-17717 .ap :is(h1,.ap-h1),
body.single-post.postid-13203 .ap :is(h1,.ap-h1),
body.single-post.postid-17708 .ap :is(h1,.ap-h1) {
    font-size:clamp(2rem,7.7vw,2.9rem) !important;
    letter-spacing:-.035em !important;
  }
  body.page .ii-entry-shell.ii-page-native {
    width:calc(100% - 34px) !important;
    padding:40px 0 58px !important;
  }
}
