/* Imprenta Buin Core 2.2 — Single editorial nativo */
:root{
  --ibc-e-ink:#1d1d1f;
  --ibc-e-muted:#6e6e73;
  --ibc-e-line:#dfe1e5;
  --ibc-e-soft:#f5f5f7;
  --ibc-e-red:#ff3b30;
  --ibc-e-red-dark:#d72c22;
  --ibc-e-max:1300px;
  --ibc-e-reading:760px;
  --ibc-e-rail:286px;
}
body.ibc-native-editorial-single #page,
body.ibc-native-news-single #page{max-width:none!important;background:#fff}
body.ibc-native-editorial-single .site-content,
body.ibc-native-news-single .site-content{display:block!important;padding:0!important}
body.ibc-native-editorial-single #primary,
body.ibc-native-news-single #primary{width:100%!important;float:none!important;margin:0!important}
body.ibc-native-editorial-single .inside-article,
body.ibc-native-news-single .inside-article{padding:0!important;background:transparent!important}

.ibc-native-single,.ibc-news-single{width:100%;padding:clamp(22px,4vw,44px) 20px 84px;background:#fff;color:var(--ibc-e-ink)}
.ibc-native-article,.ibc-news-article{width:min(100%,var(--ibc-e-max));margin:0 auto}

.ibc-native-hero{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);overflow:hidden;border:1px solid rgba(0,0,0,.1);border-radius:22px;background:linear-gradient(145deg,#fff 0%,#f5f5f7 100%);box-shadow:0 18px 50px rgba(0,0,0,.07)}
.ibc-native-hero__copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(25px,3.5vw,42px)}
.ibc-native-kicker{margin:0 0 14px;color:var(--ibc-e-red);font-size:12px;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
.ibc-native-hero h1,.ibc-news-hero h1{max-width:19ch;margin:0;color:var(--ibc-e-ink);font-size:clamp(1.85rem,2.8vw,2.6rem);line-height:1.05;letter-spacing:-.04em;font-weight:720;text-wrap:balance}
.ibc-native-hero__lead{max-width:620px;margin:20px 0 0;color:#536075;font-size:clamp(1rem,1.35vw,1.12rem);line-height:1.66}
.ibc-native-hero__media{min-height:250px;max-height:330px;background:#ececf0}
.ibc-native-hero__image{display:block;width:100%;height:100%;min-height:250px;max-height:330px;object-fit:cover;border-radius:0!important}

.ibc-native-meta{display:flex;align-items:center;gap:10px 16px;width:min(100%,1080px);margin:24px auto 0;padding:13px 0;border-block:1px solid var(--ibc-e-line);color:var(--ibc-e-muted);font-size:13px;font-weight:650}
.ibc-native-meta span+span:before{content:"·";margin-right:16px;color:#a5acb8}
.ibc-native-meta a{margin-left:auto;color:var(--ibc-e-red);font-weight:750;text-decoration:none}

.ibc-native-reading-layout{display:grid;grid-template-columns:minmax(0,var(--ibc-e-reading)) var(--ibc-e-rail);justify-content:center;align-items:start;gap:clamp(44px,6vw,76px);margin-top:clamp(46px,7vw,76px)}
.ibc-native-reading{min-width:0;color:#344054}
.ibc-native-reading>p{font-size:17px;line-height:1.78;margin:0 0 22px}
.ibc-native-reading>p:first-child{font-size:19px;line-height:1.7;color:var(--ibc-e-ink)}
.ibc-native-reading h2{scroll-margin-top:110px;margin:58px 0 18px;color:var(--ibc-e-ink);font-size:clamp(1.45rem,2.1vw,1.9rem);line-height:1.17;letter-spacing:-.025em;font-weight:700;text-wrap:balance}
.ibc-native-reading h3{margin:34px 0 12px;color:var(--ibc-e-ink);font-size:clamp(1.2rem,1.8vw,1.45rem);line-height:1.25;font-weight:650}
.ibc-native-reading :where(ul,ol){margin:0 0 26px;padding-left:1.35rem;font-size:16.5px;line-height:1.7}
.ibc-native-reading li+li{margin-top:7px}
.ibc-native-reading :where(img,.wp-block-image img){max-width:100%;height:auto;border-radius:16px}
.ibc-native-reading :where(.wp-block-image,.wp-block-gallery,.ib-galeria-pro){margin-block:34px 44px}
.ibc-native-reading blockquote{margin:34px 0;padding:20px 22px;border-left:4px solid var(--ibc-e-red);border-radius:0 14px 14px 0;background:var(--ibc-e-soft)}
.ibc-native-reading table{width:100%;border-collapse:collapse;margin:30px 0;font-size:15px}
.ibc-native-reading th,.ibc-native-reading td{padding:13px 14px;border:1px solid var(--ibc-e-line);text-align:left}
.ibc-native-reading th{background:#f8f9fb;color:var(--ibc-e-ink)}

/* Neutraliza wrappers comerciales heredados dentro del nuevo single. */
.ibc-native-reading :where(.ib-talonarios-post,.ib-hero-fullwidth,.ib-section-card,.ib-light-box,.ib-split,.ib-use-card,.ib-feature-card,.ib-hero3-card,.ib-cta-extendida-pro){background:transparent!important;color:inherit!important;box-shadow:none!important;border-color:var(--ibc-e-line)!important}
.ibc-native-reading :where(.ib-hero-fullwidth__inner,.ib-btn-mobile-top,.ib-btn-desktop,.ib-hero-fullwidth__btn--buy){display:none!important}
.ibc-native-reading :where(.ib-split,.ib-feature-grid,.ib-use-grid,.ib-hero3-grid){max-width:100%!important;margin-inline:0!important}
.ibc-native-reading :where(h2,h3,h4,p,li){color:inherit}

.ibc-native-rail{position:sticky;top:108px;display:grid;gap:18px;min-width:0}
.ibc-native-toc{overflow:hidden;border:1px solid var(--ibc-e-line);border-radius:18px;background:#fff;box-shadow:0 16px 44px rgba(15,23,42,.055)}
.ibc-native-toc__eyebrow{display:block;padding:18px 18px 12px;color:var(--ibc-e-muted);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ibc-native-toc ol{list-style:none;margin:0;padding:0 18px 14px}
.ibc-native-toc li{margin:0;border-top:1px solid var(--ibc-e-line)}
.ibc-native-toc li:first-child{border-top:0}
.ibc-native-toc a{display:grid;grid-template-columns:30px 1fr;gap:8px;padding:12px 0;color:#475467;font-size:13.5px;line-height:1.35;text-decoration:none}
.ibc-native-toc a span{color:var(--ibc-e-red);font-size:11px;font-weight:850;letter-spacing:.05em}
.ibc-native-toc a:hover{color:var(--ibc-e-ink)}
.ibc-native-rail-primary{display:grid;gap:5px;padding:20px;border:1px solid #f3ccd6;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#fff6f8 100%);text-decoration:none!important}
.ibc-native-rail-primary span{color:var(--ibc-e-red);font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.ibc-native-rail-primary strong{color:var(--ibc-e-ink);font-size:17px;line-height:1.3}
.ibc-native-rail-primary b{margin-top:8px;color:var(--ibc-e-red);font-size:13px}

.ibc-native-primary-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:58px;padding:26px 28px;border:1px solid #f2c6d1;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#fff4f7 100%)}
.ibc-native-primary-cta div{display:grid;gap:4px}
.ibc-native-primary-cta span{color:var(--ibc-e-red);font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.ibc-native-primary-cta strong{color:var(--ibc-e-ink);font-size:20px}
.ibc-native-primary-cta>a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 18px;border-radius:12px;background:var(--ibc-e-red);color:#fff!important;font-size:14px;font-weight:800;text-decoration:none!important;white-space:nowrap}
.ibc-native-primary-cta>a:hover{background:var(--ibc-e-red-dark)}

.ibc-native-related{margin-top:clamp(70px,9vw,110px);padding-top:38px;border-top:1px solid var(--ibc-e-line)}
.ibc-native-related__head span{color:var(--ibc-e-red);font-size:12px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.ibc-native-related__head h2{margin:7px 0 26px;color:var(--ibc-e-ink);font-size:clamp(1.6rem,2.6vw,2.2rem);letter-spacing:-.03em}
.ibc-native-related__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.ibc-native-related-card{overflow:hidden;border:1px solid var(--ibc-e-line);border-radius:18px;background:#fff;box-shadow:0 14px 38px rgba(15,23,42,.05)}
.ibc-native-related-card__media{display:block;aspect-ratio:16/10;background:#eef1f4;overflow:hidden}
.ibc-native-related-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.ibc-native-related-card:hover .ibc-native-related-card__media img{transform:scale(1.025)}
.ibc-native-related-card__body{padding:18px}
.ibc-native-related-card__body>span{color:var(--ibc-e-red);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.ibc-native-related-card h3{margin:8px 0 16px;font-size:18px;line-height:1.26;letter-spacing:-.02em}
.ibc-native-related-card h3 a{color:var(--ibc-e-ink);text-decoration:none}
.ibc-native-related-card__more{color:var(--ibc-e-red)!important;font-size:13px;font-weight:800;text-decoration:none!important}

/* Single de noticias */
.ibc-news-hero{width:min(100%,980px);margin:0 auto;text-align:left}
.ibc-news-hero h1{max-width:900px;font-size:clamp(1.95rem,3.6vw,3rem)}
.ibc-news-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:20px;color:var(--ibc-e-muted);font-size:13px;font-weight:650}
.ibc-news-meta>*+*:before{content:"·";margin-right:18px;color:#a7afbc}
.ibc-news-hero__media{margin:34px 0 0;overflow:hidden;border-radius:22px;background:#eef1f4;box-shadow:0 20px 54px rgba(15,23,42,.07)}
.ibc-news-hero__media img{display:block;width:100%;max-height:620px;object-fit:cover}
.ibc-native-reading-layout--news{margin-top:58px}

@media(max-width:980px){
  .ibc-native-reading-layout{grid-template-columns:minmax(0,var(--ibc-e-reading));gap:0}
  .ibc-native-rail{position:static;grid-row:1;margin-bottom:28px}
  .ibc-native-toc ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
  .ibc-native-rail-primary{display:none}
}
@media(max-width:760px){
  .ibc-native-single,.ibc-news-single{padding:22px 16px 64px}
  .ibc-native-hero{grid-template-columns:1fr;border-radius:18px}
  .ibc-native-hero__copy{padding:28px 24px 24px}
  .ibc-native-hero__media,.ibc-native-hero__image{min-height:180px;max-height:260px}
  .ibc-native-hero h1,.ibc-news-hero h1{font-size:clamp(1.75rem,7vw,2.1rem)}
  .ibc-native-meta{align-items:flex-start;flex-direction:column;gap:6px;margin-top:16px}
  .ibc-native-meta span+span:before{content:none}
  .ibc-native-meta a{margin-left:0}
  .ibc-native-reading-layout{margin-top:34px}
  .ibc-native-reading>p{font-size:16px;line-height:1.72}
  .ibc-native-reading>p:first-child{font-size:17.5px}
  .ibc-native-toc ol{grid-template-columns:1fr}
  .ibc-native-primary-cta{align-items:stretch;flex-direction:column;padding:22px}
  .ibc-native-primary-cta>a{width:100%}
  .ibc-native-related__grid{display:flex;overflow-x:auto;gap:14px;padding:2px 1px 14px;scroll-snap-type:x mandatory;scrollbar-width:none}
  .ibc-native-related-card{flex:0 0 82%;scroll-snap-align:start}
  .ibc-news-meta>*+*:before{content:none}
  .ibc-news-meta{gap:5px 12px}
  .ibc-news-hero__media{margin-top:24px;border-radius:16px}
}
@media(prefers-reduced-motion:reduce){.ibc-native-related-card__media img{transition:none}}

/* V4 · diferencia visual trabajo real / recurso */
body.ibc-native-work-single .ibc-work-hero{background:linear-gradient(135deg,#fff 0%,#f4f8fb 100%)}
.ibc-work-hero__primary{display:inline-flex;align-items:center;gap:8px;width:max-content;margin-top:24px;color:var(--ibc-e-red)!important;font-size:14px;font-weight:800;text-decoration:none!important}
body.ibc-native-work-single .ibc-native-kicker{color:#0f6f8f}
body.ibc-native-work-single .ibc-native-toc a span,
body.ibc-native-work-single .ibc-native-related__head span{color:#0f6f8f}
body.ibc-native-work-single .ibc-native-rail-primary{border-color:#cfe7ef;background:linear-gradient(135deg,#fff 0%,#f2fbfd 100%)}
body.ibc-native-work-single .ibc-native-rail-primary span,
body.ibc-native-work-single .ibc-native-rail-primary b{color:#0f6f8f}

/* =========================================================
   CORE 4.0 · RECURSOS Y TRABAJOS — INTERIORES DIFERENCIADOS
   ========================================================= */
.ibc-native-hero__facts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:22px;color:#667085;font-size:13px;font-weight:700}
.ibc-native-hero__facts span,.ibc-native-hero__facts a{display:inline-flex;align-items:center;min-height:32px;padding:6px 11px;border:1px solid #e7e9ee;border-radius:999px;background:#fff;color:#667085;text-decoration:none}
.ibc-native-hero__facts a:hover{border-color:#f0b4c3;color:var(--ibc-e-red)}
.ibc-native-hero--resource{background:linear-gradient(135deg,#fff 0%,#f8fafc 58%,#fff5f8 100%)}
.ibc-native-hero--work{background:linear-gradient(135deg,#fff 0%,#f5fafc 60%,#edf8fb 100%)}
body.ibc-native-work-single .ibc-native-kicker{color:#087a9d}
body.ibc-native-work-single .ibc-native-primary-cta--work{border-color:#cfe7ef;background:linear-gradient(135deg,#fff 0%,#f0fbfd 100%)}
body.ibc-native-work-single .ibc-native-primary-cta--work span{color:#087a9d}
body.ibc-native-work-single .ibc-native-primary-cta--work>a{background:#0b7897}
body.ibc-native-work-single .ibc-native-primary-cta--work>a:hover{background:#075e78}
.ibc-work-context{display:grid;gap:6px;margin:0 0 30px;padding:18px 20px;border:1px solid #dce9ee;border-radius:16px;background:#f7fbfc}
.ibc-work-context span{color:#087a9d;font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.ibc-work-context p{margin:0!important;color:#52616b;font-size:15px!important;line-height:1.55!important}
body.ibc-native-work-single .ibc-native-reading>p:first-child{font-size:17px}
body.ibc-native-resource-single .ibc-native-reading>p:first-child{font-size:19px;color:var(--ibc-e-ink)}
body.ibc-native-editorial-single .ibc-native-reading .ibc-elementor-recovered{max-width:100%;padding:0}
body.ibc-native-editorial-single .ibc-native-reading .ibc-galeria-pro{width:calc(100% + min(160px,12vw));max-width:none;margin-left:calc(-1 * min(80px,6vw));padding-inline:0}
body.ibc-native-editorial-single .ibc-native-reading .ib-galeria-pro__inner{max-width:100%}
@media(max-width:980px){body.ibc-native-editorial-single .ibc-native-reading .ib-galeria-pro{width:100%;margin-left:0}}
@media(max-width:760px){.ibc-native-hero__facts{align-items:flex-start;flex-direction:column}.ibc-native-hero__facts span,.ibc-native-hero__facts a{width:100%;justify-content:flex-start}}

/* =========================================================
   CORE 6.5 · SISTEMA VISUAL GLOBAL PARA TIPS Y TRABAJOS
   Normaliza componentes heredados sin reescribir contenido.
   ========================================================= */

/* Wrapper editorial heredado: la plantilla ya entrega la tarjeta exterior. */
body.ibc-native-editorial-single .ibc-native-reading :where(.ib-section-card,.ib-light-box){
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Etiquetas interiores: dejan de verse como texto suelto. */
body.ibc-native-resource-single .ibc-native-reading .ib-section-label,
body.ibc-native-resource-single .ibc-native-reading .ib-section-card>.ib-section-label{
  display:inline-flex!important;
  align-items:center;
  min-height:30px;
  margin:0 0 18px!important;
  padding:6px 11px!important;
  border:1px solid #f5ccd5!important;
  border-radius:999px!important;
  background:#fff6f8!important;
  color:var(--ibc-e-red)!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
}
body.ibc-native-work-single .ibc-native-reading .ib-section-label,
body.ibc-native-work-single .ibc-native-reading .ib-section-card>.ib-section-label{
  border-color:#cfe7ef!important;
  background:#f3fbfd!important;
  color:#087a9d!important;
}

/* Grillas antiguas: tarjetas reales, no bloques de texto apilados. */
body.ibc-native-editorial-single .ibc-native-reading :where(.ib-use-grid,.ib-feature-grid,.ib-hero3-grid){
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
  margin:30px 0 34px!important;
  padding:0!important;
}
body.ibc-native-editorial-single .ibc-native-reading :where(.ib-use-grid,.ib-feature-grid,.ib-hero3-grid)>div{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  min-width:0!important;
  min-height:150px!important;
  margin:0!important;
  padding:20px!important;
  border:1px solid #e3e7ed!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,#fff 0%,#fafbfc 100%)!important;
  box-shadow:0 10px 28px rgba(15,23,42,.045)!important;
}
body.ibc-native-editorial-single .ibc-native-reading :where(.ib-use-grid,.ib-feature-grid,.ib-hero3-grid)>div>strong,
body.ibc-native-editorial-single .ibc-native-reading :where(.ib-use-grid,.ib-feature-grid,.ib-hero3-grid)>div>h3{
  display:block!important;
  margin:0 0 9px!important;
  color:var(--ibc-e-ink)!important;
  font-size:17px!important;
  line-height:1.25!important;
  font-weight:750!important;
  letter-spacing:-.01em!important;
}
body.ibc-native-editorial-single .ibc-native-reading :where(.ib-use-grid,.ib-feature-grid,.ib-hero3-grid)>div>p{
  margin:auto 0 0!important;
  color:#5c6678!important;
  font-size:14.5px!important;
  line-height:1.55!important;
}
body.ibc-native-editorial-single .ibc-native-reading .ib-mini-icon{
  display:grid!important;
  place-items:center!important;
  width:32px!important;
  height:32px!important;
  margin:0 0 14px!important;
  border-radius:10px!important;
  background:#fff0f3!important;
  color:var(--ibc-e-red)!important;
  font-size:17px!important;
  line-height:1!important;
  font-weight:900!important;
}
body.ibc-native-work-single .ibc-native-reading .ib-mini-icon{
  background:#eaf7fb!important;
  color:#087a9d!important;
}

/* Consejos/notas: bloque editorial reconocible. */
body.ibc-native-editorial-single .ibc-native-reading .ib-note{
  position:relative;
  margin:30px 0 38px!important;
  padding:18px 20px 18px 54px!important;
  border:1px solid #f0d6dc!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,#fff 0%,#fff7f9 100%)!important;
  color:#475467!important;
  font-size:15.5px!important;
  line-height:1.62!important;
}
body.ibc-native-editorial-single .ibc-native-reading .ib-note:before{
  content:'✓';
  position:absolute;
  left:18px;
  top:18px;
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:50%;
  background:var(--ibc-e-red);
  color:#fff;
  font-size:13px;
  font-weight:900;
}
body.ibc-native-work-single .ibc-native-reading .ib-note{border-color:#cfe7ef!important;background:linear-gradient(135deg,#fff 0%,#f3fbfd 100%)!important}
body.ibc-native-work-single .ibc-native-reading .ib-note:before{background:#087a9d}

/* Links heredados: neutraliza tamaños/blocks antiguos que deformaban el single. */
body.ibc-native-editorial-single .ibc-native-reading :where(.ib-section-card,.ib-light-box) a:not(.ib-btn-consulta-diseno):not(.ibc-native-primary-cta>a){
  display:inline!important;
  width:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--ibc-e-red)!important;
  font:inherit!important;
  font-weight:750!important;
  text-decoration:none!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:.18em!important;
}
body.ibc-native-work-single .ibc-native-reading :where(.ib-section-card,.ib-light-box) a:not(.ib-btn-consulta-diseno){color:#087a9d!important}

/* CTAs heredados: botones consistentes y compactos. */
body.ibc-native-editorial-single .ibc-native-reading p:has(>a.ib-btn-consulta-diseno){
  display:inline-block!important;
  width:auto!important;
  margin:10px 10px 0 0!important;
}
body.ibc-native-editorial-single .ibc-native-reading a.ib-btn-consulta-diseno{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:46px!important;
  margin:0!important;
  padding:11px 18px!important;
  border:1px solid var(--ibc-e-red)!important;
  border-radius:12px!important;
  background:var(--ibc-e-red)!important;
  box-shadow:0 10px 24px rgba(255,59,48,.16)!important;
  color:#fff!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:800!important;
  text-decoration:none!important;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease!important;
}
body.ibc-native-editorial-single .ibc-native-reading a.ib-btn-consulta-diseno:hover,
body.ibc-native-editorial-single .ibc-native-reading a.ib-btn-consulta-diseno:focus-visible{
  transform:translateY(-1px);
  background:var(--ibc-e-red-dark)!important;
  box-shadow:0 14px 30px rgba(255,59,48,.22)!important;
}
body.ibc-native-work-single .ibc-native-reading a.ib-btn-consulta-diseno{border-color:#087a9d!important;background:#087a9d!important;box-shadow:0 10px 24px rgba(8,122,157,.16)!important}
body.ibc-native-work-single .ibc-native-reading a.ib-btn-consulta-diseno:hover{background:#066783!important}

/* Imágenes heredadas: separación visual real con el texto y ancho controlado. */
body.ibc-native-editorial-single .ibc-native-reading :where(.ib-section-card,.ib-light-box)>img,
body.ibc-native-editorial-single .ibc-native-reading :where(.ib-section-card,.ib-light-box)>p>img:only-child{
  display:block!important;
  width:100%!important;
  height:auto!important;
  margin:0 0 38px!important;
  border:0!important;
  border-radius:18px!important;
  box-shadow:0 16px 42px rgba(15,23,42,.07)!important;
  object-fit:cover!important;
}

/* Trabajos reales: fichas de proyecto más visuales cuando existen datos estructurados. */
body.ibc-native-work-single .ibc-v5-project-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  margin:30px 0 42px!important;
}
body.ibc-native-work-single .ibc-v5-project-grid>section{
  margin:0!important;
  padding:22px!important;
  border:1px solid #dce9ee!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,#fff 0%,#f7fbfc 100%)!important;
  box-shadow:0 10px 28px rgba(15,23,42,.04)!important;
}
body.ibc-native-work-single .ibc-v5-project-grid>section h2{
  margin:0 0 10px!important;
  color:#16232a!important;
  font-size:18px!important;
}
body.ibc-native-work-single .ibc-v5-project-grid>section p{margin:0!important;font-size:15px!important;line-height:1.6!important}

/* Separación y lectura de galerías/fotos en trabajos. */
body.ibc-native-work-single .ibc-native-reading :where(.wp-block-gallery,.ib-galeria-pro){
  margin-top:42px!important;
  margin-bottom:52px!important;
}
body.ibc-native-work-single .ibc-native-reading :where(.wp-block-gallery,.ib-galeria-pro) img{
  border-radius:15px!important;
}

@media(max-width:760px){
  body.ibc-native-editorial-single .ibc-native-reading :where(.ib-use-grid,.ib-feature-grid,.ib-hero3-grid),
  body.ibc-native-work-single .ibc-v5-project-grid{grid-template-columns:1fr!important}
  body.ibc-native-editorial-single .ibc-native-reading :where(.ib-use-grid,.ib-feature-grid,.ib-hero3-grid)>div{min-height:0!important;padding:18px!important}
  body.ibc-native-editorial-single .ibc-native-reading p:has(>a.ib-btn-consulta-diseno){display:block!important;width:100%!important;margin:10px 0 0!important}
  body.ibc-native-editorial-single .ibc-native-reading a.ib-btn-consulta-diseno{width:100%!important}
}

/* =========================================================
   CORE 6.5.1 · NORMALIZACIÓN VISUAL ROBUSTA
   Clases propias añadidas al HTML renderizado para impedir
   que estilos legacy vuelvan a aplanar Tips y Trabajos.
   ========================================================= */
.ibc-native-reading .ibc-editorial-card-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  width:100%!important;
  margin:28px 0 34px!important;
  padding:0!important;
}
.ibc-native-reading .ibc-editorial-card-grid>div{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:0!important;
  min-width:0!important;
  min-height:142px!important;
  margin:0!important;
  padding:20px!important;
  border:1px solid #e2e7ee!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 10px 30px rgba(15,23,42,.055)!important;
}
.ibc-native-reading .ibc-editorial-card-grid>div>*{max-width:100%!important}
.ibc-native-reading .ibc-editorial-card-grid>div>strong,
.ibc-native-reading .ibc-editorial-card-grid>div>h3{
  margin:0 0 8px!important;
  color:#253249!important;
  font-size:17px!important;
  line-height:1.25!important;
  font-weight:760!important;
}
.ibc-native-reading .ibc-editorial-card-grid>div>p{
  margin:0!important;
  color:#5b6678!important;
  font-size:14.5px!important;
  line-height:1.58!important;
}
.ibc-native-reading .ibc-editorial-card-icon{
  display:grid!important;
  place-items:center!important;
  flex:0 0 32px!important;
  width:32px!important;
  height:32px!important;
  margin:0 0 13px!important;
  padding:0!important;
  border:0!important;
  border-radius:10px!important;
  background:#fff0f3!important;
  color:#e52f45!important;
  font-size:16px!important;
  line-height:1!important;
  font-weight:900!important;
}
body.ibc-native-work-single .ibc-native-reading .ibc-editorial-card-icon{background:#eaf7fb!important;color:#087a9d!important}

.ibc-native-reading .ibc-editorial-note{
  position:relative!important;
  display:block!important;
  margin:28px 0 38px!important;
  padding:18px 20px 18px 54px!important;
  border:1px solid #f0d6dc!important;
  border-radius:16px!important;
  background:#fff7f9!important;
  box-shadow:none!important;
  color:#475467!important;
  font-size:15.5px!important;
  line-height:1.62!important;
}
.ibc-native-reading .ibc-editorial-note:before{
  content:'✓'!important;
  position:absolute!important;
  left:18px!important;
  top:18px!important;
  display:grid!important;
  place-items:center!important;
  width:24px!important;
  height:24px!important;
  border-radius:50%!important;
  background:#e52f45!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:900!important;
}
body.ibc-native-work-single .ibc-native-reading .ibc-editorial-note{border-color:#cfe7ef!important;background:#f3fbfd!important}
body.ibc-native-work-single .ibc-native-reading .ibc-editorial-note:before{background:#087a9d!important}

.ibc-native-reading .ibc-editorial-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  min-height:46px!important;
  margin:0!important;
  padding:11px 18px!important;
  border:1px solid #e52f45!important;
  border-radius:12px!important;
  background:#e52f45!important;
  box-shadow:0 10px 24px rgba(229,47,69,.16)!important;
  color:#fff!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:800!important;
  text-decoration:none!important;
}
.ibc-native-reading p:has(>.ibc-editorial-button){display:inline-block!important;width:auto!important;margin:10px 10px 0 0!important}
.ibc-native-reading .ibc-editorial-button:hover,.ibc-native-reading .ibc-editorial-button:focus-visible{background:#c92439!important;border-color:#c92439!important;transform:translateY(-1px)}
body.ibc-native-work-single .ibc-native-reading .ibc-editorial-button{background:#087a9d!important;border-color:#087a9d!important;box-shadow:0 10px 24px rgba(8,122,157,.16)!important}
body.ibc-native-work-single .ibc-native-reading .ibc-editorial-button:hover{background:#066783!important;border-color:#066783!important}

.ibc-native-reading .ibc-editorial-label{
  display:inline-flex!important;
  align-items:center!important;
  width:auto!important;
  min-height:28px!important;
  margin:0 0 16px!important;
  padding:6px 10px!important;
  border:1px solid #f2cbd4!important;
  border-radius:999px!important;
  background:#fff6f8!important;
  color:#e52f45!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body.ibc-native-work-single .ibc-native-reading .ibc-editorial-label{border-color:#cfe7ef!important;background:#f3fbfd!important;color:#087a9d!important}

/* Espaciado editorial: evita huecos heredados gigantes. */
.ibc-native-reading .ib-section-card>h2:first-of-type,
.ibc-native-reading .ib-light-box>h2:first-of-type{margin-top:18px!important}
.ibc-native-reading .ib-section-card>p,
.ibc-native-reading .ib-light-box>p{margin-bottom:20px!important}
.ibc-native-reading .ib-section-card>h2,
.ibc-native-reading .ib-light-box>h2{margin-top:48px!important}
.ibc-native-reading .ib-section-card>h3,
.ibc-native-reading .ib-light-box>h3{margin-top:30px!important}

@media(max-width:760px){
  .ibc-native-reading .ibc-editorial-card-grid{grid-template-columns:1fr!important;gap:12px!important;margin:22px 0 28px!important}
  .ibc-native-reading .ibc-editorial-card-grid>div{min-height:0!important;padding:18px!important}
  .ibc-native-reading p:has(>.ibc-editorial-button){display:block!important;width:100%!important;margin:9px 0 0!important}
  .ibc-native-reading .ibc-editorial-button{width:100%!important}
}


/* =========================================================
   CORE 6.6 · PULIDO QUIRÚRGICO APROBADO
   Mantiene el diseño existente. Solo normaliza enlaces de
   texto y CTAs reales dentro de Tips y Trabajos.
   ========================================================= */
.ibc-native-reading a.ibc-editorial-inline-link{
  display:inline!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#e52f45!important;
  font:inherit!important;
  font-weight:700!important;
  line-height:inherit!important;
  text-align:inherit!important;
  text-decoration:none!important;
  text-decoration-thickness:1.5px!important;
  text-underline-offset:3px!important;
  white-space:normal!important;
  word-break:normal!important;
  transform:none!important;
}
.ibc-native-reading a.ibc-editorial-inline-link:hover,
.ibc-native-reading a.ibc-editorial-inline-link:focus-visible{
  color:#c92439!important;
  background:transparent!important;
  transform:none!important;
}
body.ibc-native-work-single .ibc-native-reading a.ibc-editorial-inline-link{color:#087a9d!important}
body.ibc-native-work-single .ibc-native-reading a.ibc-editorial-inline-link:hover,
body.ibc-native-work-single .ibc-native-reading a.ibc-editorial-inline-link:focus-visible{color:#066783!important}

/* FAQ estructurada: acordeón nativo, sin inventar otro lenguaje visual. */
.ibc-native-reading .ibc-v5-faq{margin:52px 0 18px!important}
.ibc-native-reading .ibc-v5-faq>h2{margin:6px 0 20px!important}
.ibc-native-reading .ibc-v5-faq-list{display:grid!important;gap:10px!important}
.ibc-native-reading .ibc-v5-faq-list details{
  margin:0!important;
  border:1px solid #e2e7ee!important;
  border-radius:14px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.ibc-native-reading .ibc-v5-faq-list summary{
  position:relative!important;
  cursor:pointer!important;
  list-style:none!important;
  margin:0!important;
  padding:16px 48px 16px 18px!important;
  color:#253249!important;
  font-size:15.5px!important;
  line-height:1.4!important;
  font-weight:760!important;
}
.ibc-native-reading .ibc-v5-faq-list summary::-webkit-details-marker{display:none!important}
.ibc-native-reading .ibc-v5-faq-list summary:after{
  content:'+'!important;
  position:absolute!important;
  right:18px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  color:#e52f45!important;
  font-size:22px!important;
  line-height:1!important;
  font-weight:500!important;
}
.ibc-native-reading .ibc-v5-faq-list details[open] summary:after{content:'–'!important}
.ibc-native-reading .ibc-v5-faq-list details>div{
  padding:0 18px 18px!important;
  color:#5b6678!important;
  font-size:15px!important;
  line-height:1.65!important;
}
.ibc-native-reading .ibc-v5-faq-list details>div p:last-child{margin-bottom:0!important}
body.ibc-native-work-single .ibc-native-reading .ibc-v5-faq-list summary:after{color:#087a9d!important}

@media(max-width:760px){
  .ibc-native-reading a.ibc-editorial-inline-link{
    display:inline!important;
    width:auto!important;
    min-height:0!important;
    padding:0!important;
    font-size:inherit!important;
    line-height:inherit!important;
  }
  .ibc-native-reading .ibc-v5-faq{margin-top:42px!important}
  .ibc-native-reading .ibc-v5-faq-list summary{padding:15px 44px 15px 16px!important;font-size:15px!important}
  .ibc-native-reading .ibc-v5-faq-list details>div{padding:0 16px 16px!important}
}

/* =========================================================
   CORE 6.6.2 · ESTRUCTURAS EDITORIALES MASIVAS
   Solo organiza información dentro del lenguaje visual actual.
   ========================================================= */
.ibc-native-reading .ibc-v5-section{margin:0 0 6px}
.ibc-native-reading .ibc-v5-section>.ibc-v5-prose>p{font-size:17px;line-height:1.78;margin:0 0 22px}
.ibc-native-reading .ibc-v5-section>.ibc-v5-prose>p:last-child{margin-bottom:0}
.ibc-native-reading .ibc-editorial-checklist,
.ibc-native-reading .ibc-editorial-steps{
  display:grid!important;
  gap:10px!important;
  margin:22px 0 34px!important;
  padding:0!important;
  list-style:none!important;
}
.ibc-native-reading .ibc-editorial-checklist>li,
.ibc-native-reading .ibc-editorial-steps>li{
  position:relative!important;
  margin:0!important;
  padding:15px 16px 15px 46px!important;
  border:1px solid #e3e7ed!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#475467!important;
  font-size:15px!important;
  line-height:1.55!important;
}
.ibc-native-reading .ibc-editorial-checklist>li:before,
.ibc-native-reading .ibc-editorial-steps>li:before{
  position:absolute!important;
  left:15px!important;
  top:14px!important;
  display:grid!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  border-radius:50%!important;
  background:#fff0f3!important;
  color:#e52f45!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
}
.ibc-native-reading .ibc-editorial-checklist>li:before{content:'✓'!important}
.ibc-native-reading .ibc-editorial-steps{counter-reset:ibc-step}
.ibc-native-reading .ibc-editorial-steps>li{counter-increment:ibc-step}
.ibc-native-reading .ibc-editorial-steps>li:before{content:counter(ibc-step)!important}
.ibc-native-reading .ibc-editorial-checklist>li strong,
.ibc-native-reading .ibc-editorial-steps>li strong{color:#253249!important}
body.ibc-native-work-single .ibc-native-reading .ibc-editorial-checklist>li:before,
body.ibc-native-work-single .ibc-native-reading .ibc-editorial-steps>li:before{background:#eaf7fb!important;color:#087a9d!important}

@media(max-width:760px){
  .ibc-native-reading .ibc-v5-section>.ibc-v5-prose>p{font-size:16px;line-height:1.72}
  .ibc-native-reading .ibc-editorial-checklist>li,
  .ibc-native-reading .ibc-editorial-steps>li{padding:14px 14px 14px 44px!important;font-size:14.5px!important}
}

/* Enlace contextual 6.6: texto normal, nunca botón. */
.ibc-editorial-primary-reference {
    margin: clamp(26px, 3vw, 38px) 0;
    color: var(--ibc-editorial-text, #354158);
}
.ibc-editorial-primary-reference .ibc-editorial-inline-link {
    display: inline !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #ff4038 !important;
    font: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    text-decoration: none !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 3px !important;
}


/* =========================================================
   CORE 7.0 · RELACIONADOS EDITORIALES
   Reemplaza enlaces sueltos por cards de lectura relacionada.
   Mantiene el lenguaje visual vigente de Tips y Trabajos.
   ========================================================= */
.ib-related-reading{
  margin:clamp(42px,6vw,72px) 0 52px;
}
.ib-related-reading>.ib-section-label{
  display:inline-flex;
  margin:0 0 14px;
  padding:7px 12px;
  border:1px solid #f1c8d1;
  border-radius:999px;
  background:#fff8fa;
  color:#e52f45;
  font-size:11px;
  line-height:1;
  font-weight:850;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.ib-related-reading>h2{
  margin:0 0 10px!important;
  color:var(--ibc-e-ink,#181b20)!important;
  font-size:clamp(1.55rem,2.5vw,2rem)!important;
  line-height:1.15!important;
  letter-spacing:-.03em!important;
}
.ib-related-intro{
  max-width:720px;
  margin:0 0 24px!important;
  color:#59667a!important;
  font-size:16px!important;
  line-height:1.65!important;
}
.ib-related-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.ib-related-grid>.ib-related-card:nth-child(3):last-child{
  grid-column:1/-1;
}
.ib-related-card,
.ib-related-card:visited{
  position:relative;
  display:flex!important;
  flex-direction:column;
  width:auto!important;
  min-width:0!important;
  min-height:205px;
  margin:0!important;
  padding:22px!important;
  border:1px solid #e1e5eb!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 12px 34px rgba(15,23,42,.045)!important;
  color:#1c2430!important;
  text-decoration:none!important;
  transform:none!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
.ib-related-card:hover,
.ib-related-card:focus-visible{
  border-color:rgba(229,47,69,.36)!important;
  box-shadow:0 18px 42px rgba(15,23,42,.075)!important;
  color:#1c2430!important;
  text-decoration:none!important;
  transform:translateY(-2px)!important;
}
.ib-related-card:focus-visible{
  outline:3px solid rgba(229,47,69,.16)!important;
  outline-offset:3px!important;
}
.ib-related-type{
  display:inline-flex;
  align-self:flex-start;
  margin:0 0 14px;
  color:#e52f45!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:850!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
.ib-related-card h3{
  margin:0 0 10px!important;
  color:#181b20!important;
  font-size:clamp(18px,2vw,21px)!important;
  line-height:1.24!important;
  font-weight:720!important;
  letter-spacing:-.02em!important;
  text-wrap:balance;
}
.ib-related-card p{
  margin:0 0 20px!important;
  color:#59667a!important;
  font-size:15px!important;
  line-height:1.6!important;
}
.ib-related-action{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:auto;
  color:#e52f45!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:800!important;
}
.ib-related-card:hover .ib-related-action{gap:10px}
body.ibc-native-work-single .ib-related-reading>.ib-section-label{
  border-color:#cfe7ef;
  background:#f3fbfd;
  color:#087a9d;
}
body.ibc-native-work-single .ib-related-type,
body.ibc-native-work-single .ib-related-action{color:#087a9d!important}
body.ibc-native-work-single .ib-related-card:hover,
body.ibc-native-work-single .ib-related-card:focus-visible{border-color:rgba(8,122,157,.34)!important}
body.ibc-native-work-single .ib-related-card:focus-visible{outline-color:rgba(8,122,157,.16)!important}

/* Fallback global: si queda un enlace contextual antiguo, nunca se subraya
   ni toma aspecto de botón. En 7.0 los enlaces de navegación editorial se
   generan como cards y este estilo queda solo como red de seguridad. */
body.ibc-native-editorial-single .ibc-native-reading a.ibc-editorial-inline-link,
body.ibc-native-editorial-single .ibc-native-reading :where(.ib-section-card,.ib-light-box) a:not(.ib-btn-consulta-diseno):not(.ibc-native-primary-cta>a){
  text-decoration:none!important;
}

@media(max-width:760px){
  .ib-related-reading{margin:38px 0 44px}
  .ib-related-grid{grid-template-columns:1fr;gap:12px}
  .ib-related-grid>.ib-related-card:nth-child(3):last-child{grid-column:auto}
  .ib-related-card,
  .ib-related-card:visited{min-height:0;padding:19px!important;border-radius:16px!important}
  .ib-related-card h3{font-size:19px!important}
  .ib-related-card p{margin-bottom:18px!important;font-size:15px!important;line-height:1.58!important}
}

@media(prefers-reduced-motion:reduce){
  .ib-related-card{transition:none!important}
  .ib-related-card:hover,.ib-related-card:focus-visible{transform:none!important}
}
