/* =========================================================
   IMPRENTA BUIN CORE 7.1.2 — BASE DE CONTENIDO GENERATEPRESS

   Este archivo NO controla header ni footer.
   El theme / child theme es la única fuente para cabecera y pie.
   El handle `ibc-site-shell` se conserva porque otros módulos lo usan
   como dependencia de estilos.
   ========================================================= */
:root{
  --ibc-red:#e4003a;
  --ibc-ink:#16202e;
  --ibc-muted:#667085;
  --ibc-line:#e5e7eb;
  --ibc-shell-max:1300px;
  --ibc-content-max:1300px;
  --ibc-reading:820px;
}

/* Base de contenido. No oculta elementos globales de GeneratePress. */
body.ibc-shell-active{background:#fff;color:var(--ibc-ink)}
body.ibc-shell-active #page{max-width:none!important;background:#fff}
body.ibc-shell-active .site-content{width:100%;max-width:none;margin:0;padding-left:18px;padding-right:18px}
body.ibc-shell-active .content-area{width:100%!important;float:none!important}
body.ibc-shell-active #right-sidebar,
body.ibc-shell-active #left-sidebar{display:none!important}

/* Páginas editoriales gestionadas por Core. */
body.ibc-editorial-page .site-content{padding-top:30px!important;padding-bottom:72px!important}
body.ibc-editorial-page .site-main{margin:0!important}
body.ibc-editorial-page article{margin:0!important}
body.ibc-editorial-page .inside-article{padding:0!important;background:transparent!important}
body.ibc-editorial-page .entry-content{margin-top:0!important}

/* Single heredado mientras se migra. */
body.ibc-generic-single .site-content{padding-top:clamp(34px,5vw,72px);padding-bottom:80px}
body.ibc-generic-single .site-main{margin:0!important}
body.ibc-generic-single article{max-width:1120px;margin:0 auto!important;background:transparent!important}
body.ibc-generic-single .inside-article{padding:0!important;background:transparent!important}
body.ibc-generic-single .entry-header{width:min(100%,var(--ibc-reading));margin:0 auto 28px;text-align:left}
body.ibc-generic-single .entry-title{margin:0 0 12px;color:var(--ibc-ink);font-size:clamp(2rem,4vw,3.35rem);line-height:1.05;font-weight:760;letter-spacing:-.04em;text-wrap:balance}
body.ibc-generic-single .entry-meta{color:var(--ibc-muted);font-size:13px}
body.ibc-generic-single .post-image{width:min(100%,1120px);margin:0 auto clamp(28px,5vw,46px)!important}
body.ibc-generic-single .post-image img{display:block;width:100%;max-height:680px;object-fit:cover;border-radius:22px}
body.ibc-generic-single .entry-content{width:min(100%,var(--ibc-reading));margin:0 auto;color:#344054;font-size:17px;line-height:1.78}
body.ibc-generic-single .entry-content h2{margin:52px 0 16px;color:var(--ibc-ink);font-size:clamp(1.55rem,2.6vw,2.1rem);line-height:1.15;font-weight:700;letter-spacing:-.025em}
body.ibc-generic-single .entry-content h3{margin:34px 0 10px;color:var(--ibc-ink);font-size:clamp(1.2rem,2vw,1.5rem);font-weight:600}
body.ibc-generic-single .entry-content img{border-radius:16px}
body.ibc-generic-single .entry-footer{width:min(100%,var(--ibc-reading));margin:36px auto 0}

/* Archives GP nativos. */
body.ibc-native-archive .site-content{width:min(calc(100% - 36px),var(--ibc-content-max));margin:0 auto;padding:clamp(34px,5vw,64px) 0 80px}
body.ibc-native-archive .site-main{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:0!important}
body.ibc-native-archive .page-header,
body.ibc-native-archive .paging-navigation,
body.ibc-native-archive .navigation.pagination{grid-column:1/-1}
body.ibc-native-archive .page-header{margin:0 0 8px!important;padding:0!important;background:transparent!important}
body.ibc-native-archive .page-title{font-size:clamp(2rem,4vw,3.2rem);line-height:1.05;letter-spacing:-.04em}
body.ibc-native-archive article.ibc-loop-card{display:flex;flex-direction:column;overflow:hidden;margin:0!important;border:1px solid rgba(15,23,42,.08);border-radius:20px;background:#fff;box-shadow:0 12px 34px rgba(15,23,42,.06)}
body.ibc-native-archive article.ibc-loop-card .inside-article{display:flex;flex:1;flex-direction:column;padding:0!important;background:#fff!important}
body.ibc-native-archive article.ibc-loop-card .post-image{order:-1;margin:0!important}
body.ibc-native-archive article.ibc-loop-card .post-image img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:0}
body.ibc-native-archive article.ibc-loop-card .entry-header{margin:20px 20px 8px}
body.ibc-native-archive article.ibc-loop-card .entry-title{font-size:21px;line-height:1.16;font-weight:700;letter-spacing:-.025em}
body.ibc-native-archive article.ibc-loop-card .entry-title a{color:var(--ibc-ink)!important;text-decoration:none!important}
body.ibc-native-archive article.ibc-loop-card .entry-summary,
body.ibc-native-archive article.ibc-loop-card .entry-content{margin:0 20px 20px;color:#667085;font-size:15px;line-height:1.55}
body.ibc-native-archive article.ibc-loop-card .entry-meta{margin:0 20px 20px;color:#98a2b3;font-size:12px}

@media(max-width:860px){
  body.ibc-native-archive .site-main{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:640px){
  body.ibc-shell-active .site-content{padding-left:14px;padding-right:14px}
  body.ibc-native-archive .site-content{width:calc(100% - 28px);padding-top:30px}
  body.ibc-native-archive .site-main{display:block!important}
  body.ibc-native-archive article.ibc-loop-card{display:grid;grid-template-columns:108px minmax(0,1fr);margin-bottom:12px!important;border-radius:14px}
  body.ibc-native-archive article.ibc-loop-card .inside-article{display:contents}
  body.ibc-native-archive article.ibc-loop-card .post-image{grid-row:1/5;grid-column:1;margin:0!important}
  body.ibc-native-archive article.ibc-loop-card .post-image img{width:108px;height:100%;min-height:128px;aspect-ratio:auto;object-fit:cover}
  body.ibc-native-archive article.ibc-loop-card .entry-header{grid-column:2;margin:14px 14px 5px}
  body.ibc-native-archive article.ibc-loop-card .entry-title{font-size:17px}
  body.ibc-native-archive article.ibc-loop-card .entry-summary,
  body.ibc-native-archive article.ibc-loop-card .entry-content{grid-column:2;margin:0 14px 8px;font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  body.ibc-native-archive article.ibc-loop-card .entry-meta{grid-column:2;margin:0 14px 12px}
}

/* Regla maestra GeneratePress · lienzo 1300 px. */
body.ibc-fullwidth-1300 #page,
body.ibc-fullwidth-1300 .site.grid-container{
  width:100%!important;
  max-width:1300px!important;
  margin-inline:auto!important;
}
body.ibc-fullwidth-1300 .site-content{
  width:100%!important;
  max-width:1300px!important;
  margin-inline:auto!important;
  box-sizing:border-box;
}
body.ibc-fullwidth-1300 .content-area,
body.ibc-fullwidth-1300 #primary,
body.ibc-fullwidth-1300 .site-main{
  width:100%!important;
  max-width:none!important;
  float:none!important;
}
body.ibc-fullwidth-1300 .container.grid-container,
body.ibc-fullwidth-1300 .grid-container{max-width:1300px}
