/* ---------- Blog: listado y artículo ---------- */

.b-hero{padding:3.5rem 0 3rem;background:linear-gradient(125deg,#e9f6f7,#f8fbfb 75%);border-bottom:1px solid var(--line)}
.b-hero h1{font-size:clamp(2.2rem,4.6vw,3.4rem);max-width:20ch}
.chips{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1.6rem}
.chips button{font:inherit;font-size:.88rem;font-weight:600;padding:.5rem 1rem;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);cursor:pointer}
.chips button[aria-pressed=true]{background:var(--forest);border-color:var(--forest);color:#fff}

.featured{display:grid;grid-template-columns:1.2fr 1fr;gap:0;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;text-decoration:none;box-shadow:var(--shadow);margin:3rem 0 2.4rem}
.featured .th{min-width:0;align-self:stretch;background:#e8f4f6}
.featured .th img{width:100%;height:100%;object-fit:cover;object-position:center}
.featured .tx{padding:2.4rem;display:flex;flex-direction:column;justify-content:center}
.featured h2{font-size:clamp(1.6rem,2.6vw,2.2rem)}
.featured p{color:var(--muted)}
@media(max-width:820px){.featured{grid-template-columns:1fr}.featured .th{aspect-ratio:3/2}.featured .tx{padding:1.5rem}}
.meta{font-size:.82rem;color:var(--muted);display:flex;gap:.9rem;flex-wrap:wrap;align-items:center}
.cat{font-weight:700;text-transform:uppercase;letter-spacing:.1em;font-size:.72rem;color:var(--forest)}
.soon{opacity:.62}
.soon .th{filter:grayscale(.6)}
.grid-posts{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;margin-bottom:4rem}
@media(max-width:900px){.grid-posts{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.grid-posts{grid-template-columns:1fr}}
.list-soon{columns:2;column-gap:2.4rem;padding:0;list-style:none;color:var(--muted);font-size:.97rem}
.list-soon li{break-inside:avoid;padding:.5rem 0;border-bottom:1px solid var(--line)}
@media(max-width:700px){.list-soon{columns:1}}

/* Artículo */
.a-head{padding:3rem 0 0;background:var(--sand)}
.a-head .wrap{max-width:820px}
.a-head h1{font-size:clamp(2rem,4.2vw,3rem);margin-bottom:.5em}
.a-head .lead{margin-bottom:1.6rem}
.crumb{font-size:.88rem;color:var(--muted);margin-bottom:1.4rem}
.crumb a{text-decoration:none;border-bottom:1px solid var(--line)}
.a-cover{margin-top:2.4rem;border-radius:20px 20px 0 0;overflow:hidden;aspect-ratio:16/9;background:#e8f4f6;box-shadow:var(--shadow)}
.a-cover img{width:100%;height:100%;object-fit:cover}
.a-body{padding:3rem 0 4rem}
.a-body .wrap{max-width:760px}
.prose{font-size:1.06rem;line-height:1.78}
.prose h2{font-size:1.7rem;margin:2.4em 0 .6em}
.prose h3{font-size:1.2rem;margin:1.8em 0 .4em;font-family:var(--sans);font-weight:700}
.prose ul,.prose ol{padding-left:1.3rem;margin:0 0 1.2em}
.prose li{margin-bottom:.45em}
.prose strong{color:var(--forest)}
.callout{background:var(--sage-2);border-left:4px solid var(--forest-2);border-radius:0 12px 12px 0;padding:1.1rem 1.3rem;margin:1.8rem 0;font-size:.98rem}
.callout b{color:var(--forest)}
.callout.warn{background:#fdf3de;border-left-color:var(--gold)}
.callout.warn b{color:#7a4d0a}

/* Figuras y diagramas */
figure.dg{
  margin:2.2rem -2rem;padding:clamp(.85rem,3vw,1.5rem);border:1px solid #d5e7e9;
  border-radius:20px;background:#fff;box-shadow:0 6px 22px rgba(18,48,58,.045)
}
@media(max-width:860px){figure.dg{margin-inline:0}}
figure.dg svg:not(.proc-art){display:block;width:100%;height:auto}
figure.dg figcaption{
  font-size:.86rem;color:var(--muted);padding:.8rem 0 0;margin-top:1rem;
  border-top:1px solid #dcebed;line-height:1.55
}
figure.dg figcaption b{color:var(--ink)}
.dg-title{font:700 clamp(1.03rem,2.1vw,1.24rem)/1.3 var(--serif);margin:0 0 1rem}
.dg-note{color:var(--muted);font-size:.82rem;margin:.9rem 0 0;line-height:1.5}
.dg-chart .scroll-x{overflow-x:auto;background:#f5fafb;border:1px solid #edf4f5;border-radius:13px;padding:.5rem}
.dg-chart .scroll-x svg{min-width:640px}
.dg-chart figcaption{margin-top:.85rem}
.dg-plot .gl{stroke:#dbeaec;stroke-dasharray:3 4}
.dg-plot .ax{stroke:#9dbdc3}
.dg-plot .s-forest{stroke-width:3}
.dg-plot .t-b,.dg-plot .t-w{font-weight:750}
.dg-workflow .proc{padding-bottom:.55rem}
figure.dg .dg-scan-series,figure.dg .dg-milestones{
  display:grid;margin:0;padding:0;gap:.7rem;list-style:none
}
.dg-scan-series{grid-template-columns:repeat(3,minmax(0,1fr))}
.dg-scan-series li,.dg-milestones li{margin:0;min-width:0}
.dg-scan-series li{background:#eef7f8;border-radius:14px;padding:.38rem}
.scan-copy{display:grid;gap:.15rem;padding:.65rem .65rem .5rem;line-height:1.35}
.scan-copy strong,.dg-milestones strong{color:var(--ink);font-size:.98rem}
.scan-copy span,.dg-milestones span{color:var(--muted);font-size:.85rem}
.dg-milestones{grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.dg-milestones li{
  display:grid;gap:.27rem;align-content:start;background:#f2f8f9;border:1px solid #e4eff0;
  padding:.75rem;border-radius:13px;line-height:1.4
}
figure.dg .dg-symbol{width:66px;height:50px;object-fit:contain;border-radius:6px;margin-bottom:.2rem}
@media(max-width:520px){figure.dg .dg-symbol{width:43px;height:43px}}
figure.dg .dg-funnel-list{list-style:none;padding:0;margin:0;display:grid;gap:.32rem;justify-items:center}
.dg-funnel-list li{
  width:var(--band);margin:0;padding:.6rem 1rem;text-align:center;line-height:1.3;
  color:#fff;background:var(--tone);font-size:.9rem;font-weight:650;
  clip-path:polygon(0 0,100% 0,calc(100% - .8rem) 100%,.8rem 100%)
}
.dg-funnel-list li:nth-child(1){--band:100%;--tone:#126779}
.dg-funnel-list li:nth-child(2){--band:89%;--tone:#176274}
.dg-funnel-list li:nth-child(3){--band:78%;--tone:#1b596c}
.dg-funnel-list li:nth-child(4){--band:67%;--tone:#1b505f}
.dg-funnel-list li:nth-child(5){--band:56%;--tone:#173e4c}
@media(max-width:760px){
  figure.dg .scroll-x::before{content:"Desliza para ver todo el diagrama →";display:block;font-size:.78rem;color:var(--muted);margin:0 0 .4rem .3rem}
  html[lang=en] figure.dg .scroll-x::before{content:"Swipe to see the whole diagram →"}
  .dg-milestones{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .dg-scan-series{grid-template-columns:1fr}
  .dg-scan-series li{display:grid;grid-template-columns:minmax(95px,42%) minmax(0,1fr);align-items:center}
  .dg-milestones{grid-template-columns:1fr}
  .dg-milestones li{grid-template-columns:43px 1fr;column-gap:.7rem;align-items:center}
  .dg-milestones .dg-symbol{grid-row:span 2}
}
.dg-foal-rule{
  --rule-gap:clamp(.65rem,2.4vw,1.35rem);
  --rule-rail:#bddade
}
figure.dg .foal-rule{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--rule-gap);
  list-style:none;padding:0;margin:0
}
.foal-rule li{margin:0;display:grid;min-width:0;grid-template-rows:auto 24px 1fr}
.foal-rule img{
  display:block;width:100%;height:auto;aspect-ratio:508 / 430;
  border-radius:12px;background:#eff8f9
}
.foal-rule-marker{
  display:grid;place-items:center;position:relative
}
.foal-rule-marker::before{
  content:"";position:absolute;inset:auto calc(var(--rule-gap) / -2);
  height:1px;background:var(--rule-rail)
}
.foal-rule-marker::after{
  content:"";z-index:1;width:10px;height:10px;border-radius:50%;
  background:var(--forest);box-shadow:0 0 0 3px #fff
}
.foal-rule li:first-child .foal-rule-marker::before{left:50%}
.foal-rule li:last-child .foal-rule-marker::before{right:50%}
.foal-rule-copy{display:grid;justify-items:center;align-content:start;text-align:center;padding:0 .25rem .25rem}
.foal-rule-copy strong{
  color:var(--forest);display:flex;align-items:baseline;gap:.32rem;
  font:700 .88rem/1.1 var(--sans)
}
.foal-rule-copy strong span{
  font:750 clamp(1.95rem,4vw,2.8rem)/1 var(--serif);
  font-variant-numeric:tabular-nums;letter-spacing:-.06em
}
.foal-rule-copy p{
  margin:.28rem 0 0;font-weight:600;font-size:.95rem;line-height:1.35;color:var(--ink)
}
@media(max-width:550px){
  figure.dg .foal-rule{grid-template-columns:1fr;gap:0}
  .foal-rule li{
    grid-template-columns:minmax(0,42%) minmax(0,1fr);grid-template-rows:auto;
    align-items:center;gap:.75rem;padding:.65rem 0;border-bottom:1px solid #dcebed
  }
  .foal-rule li:first-child{padding-top:0}
  .foal-rule li:last-child{padding-bottom:0;border-bottom:0}
  .foal-rule-marker{display:none}
  .foal-rule-copy{justify-items:start;text-align:left;padding:0}
  .foal-rule-copy p{font-size:.875rem}
}
/* texto y formas dentro de los SVG */
.t{font:500 13px var(--sans);fill:var(--ink)}
.t-s{font:400 11.5px var(--sans);fill:var(--muted)}
.t-b{font:700 13px var(--sans);fill:var(--ink)}
.t-w{font:600 13px var(--sans);fill:#fff}
.t-h{font:600 15px var(--serif);fill:var(--forest)}
.ax{stroke:#b4cccd;stroke-width:1.2;fill:none}
.gl{stroke:#e0ecec;stroke-width:1;fill:none}
.f-forest{fill:var(--forest)}
.f-forest2{fill:var(--forest-2)}
.f-sage{fill:var(--sage)}
.f-deep{fill:#1c5669}
.f-sky{fill:#93cbd7}
.f-sand{fill:var(--sand)}
.f-white{fill:#fff}
.s-forest{stroke:var(--forest);fill:none;stroke-width:2.2}
.s-deep{stroke:#1c5669;fill:none;stroke-width:2.2}
.arrow{stroke:var(--forest);stroke-width:2;fill:none;marker-end:url(#ah)}

.related{border-top:1px solid var(--line);padding-top:2rem;margin-top:3rem}
.related h3{font-family:var(--serif);font-size:1.3rem}
.related ul{list-style:none;padding:0;display:grid;gap:.7rem}
.related a{text-decoration:none;color:var(--forest);font-weight:600}
.related a:hover{text-decoration:underline}
.sources{font-size:.92rem;color:var(--muted)}
.sources a{color:var(--forest)}
.cta-box{background:var(--forest);color:#fff;border-radius:18px;padding:2rem;margin-top:3rem;display:flex;gap:1.5rem;align-items:center;justify-content:space-between;flex-wrap:wrap}
.cta-box h3{color:#fff;margin:0 0 .3rem}
.cta-box p{margin:0;color:rgba(255,255,255,.8)}

