/* Maquetación editorial de las notas del blog (escritorio en dos columnas).
   Se activa con <main class="wrap wiz-layout">. Debajo de 1024px las notas se apilan en una columna.
   Los estilos del contenido (.body, .note, .faq, tablas) siguen en el <style> de cada nota. */
.wiz-layout .back-link{display:inline-flex;align-items:center;gap:.45rem;font-size:.9rem;font-weight:600;color:var(--accent);text-decoration:none;margin-bottom:1.75rem}
.wiz-layout .back-link:hover{text-decoration:underline;text-underline-offset:3px}
.wiz-layout .post-head h1{font-size:clamp(2rem,4.6vw,3.4rem);font-weight:700;line-height:1.14;letter-spacing:-.025em;color:#fff;margin:0 0 1.1rem;max-width:26ch}
.wiz-layout .post-head .lede{font-size:clamp(1.02rem,1.5vw,1.2rem);line-height:1.6;color:#94a3b8;max-width:62rem;margin:0}
.byline-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem;margin:2rem 0 0}
.byline{display:flex;align-items:center;gap:.85rem}
.byline__avatar{width:44px;height:44px;border-radius:50%;background:#0a1628;border:1px solid rgba(0,255,136,.35);display:grid;place-items:center;flex:none}
.byline__avatar img{width:26px;height:26px;display:block}
.byline__name{font-size:.95rem;font-weight:600;color:#e2e8f0}
.byline-row .share--top{flex:1 1 100%;margin:0}
.wiz-layout .post-date{margin:1rem 0 0;font-size:.82rem;color:#94a3b8}
.wiz-layout .post-date .sep{margin:0 .7rem;opacity:.5}
.post-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"hero" "toc" "body" "end";margin-top:2.25rem}
.post-grid>.hero-banner,.post-grid>.cover-hero{grid-area:hero;margin:0 0 2rem}
.post-grid>.hero-banner img{border-radius:16px}
.post-grid>.hero-banner.post-hero--wide img{aspect-ratio:16/9;object-fit:cover;object-position:50% 28%}
.toc-col{grid-area:toc}
.post-body{grid-area:body;min-width:0}
.post-end{grid-area:end;min-width:0}
.wiz-layout .toc{margin:0 0 2rem;padding:1.1rem 0 .6rem;background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.14);border-radius:14px;display:flex;flex-direction:column}
.wiz-layout .toc h2{font-size:.92rem;font-weight:700;text-transform:none;letter-spacing:0;color:var(--accent);margin:0 1.2rem .75rem;padding:0 0 .75rem;border:0;border-bottom:1px solid rgba(255,255,255,.12)}
.wiz-layout .toc ol{list-style:none;padding:0;margin:0;gap:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}
.wiz-layout .toc li{margin:0}
.wiz-layout .toc a{display:block;padding:.5rem 1.2rem .5rem calc(1.2rem - 3px);border-left:3px solid transparent;font-size:.84rem;line-height:1.35;color:#94a3b8;text-decoration:none;transition:color .2s,border-color .2s}
.wiz-layout .toc a:hover{color:#e2e8f0}
.wiz-layout .toc a.is-active{color:#fff;font-weight:600;border-left-color:var(--accent)}
.wiz-layout .body h2{scroll-margin-top:110px}
.wiz-layout .body h2:first-child{margin-top:0;border-top:0;padding-top:0}
.post-tags{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin:1.75rem 0 0;font-size:.85rem;color:#94a3b8}
.post-tags .chip{padding:.35rem .95rem;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:#cbd5e1}
.post-tags .tags-label{margin-right:.4rem}
.more-posts{margin-top:5rem;padding-top:3.25rem;border-top:1px solid rgba(255,255,255,.08)}
.more-posts h2{text-align:center;font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;color:#fff;letter-spacing:-.02em;margin:0 0 2.25rem}
.more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}
.more-card{display:block;color:inherit;text-decoration:none}
.more-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.1);transition:border-color .25s,transform .35s}
.more-card h3{font-size:1.15rem;font-weight:600;line-height:1.35;color:#e2e8f0;margin:1rem 0 0;transition:color .2s}
.more-card img.is-cover{object-fit:contain;background:#0a1628}
.more-card:hover img{border-color:rgba(0,255,136,.5);transform:translateY(-3px)}
.more-card:hover h3{color:var(--accent)}
.more-card:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:12px}
@media (max-width:900px){.more-grid{grid-template-columns:1fr}}

@media (min-width:1024px){
  .wrap.wiz-layout{max-width:1220px;padding-left:2rem;padding-right:2rem}
  .byline-row{flex-wrap:nowrap}
  .byline-row .share--top{flex:none}
  .post-grid{grid-template-columns:minmax(0,1fr) 270px;grid-template-areas:"hero toc" "body toc" "end toc";column-gap:3rem}
  .toc-col{align-self:stretch}
  .wiz-layout .toc{position:sticky;top:calc(var(--navbar-h,60px) + var(--navbar-gap,14px) + 1.25rem);margin:0;max-height:calc(100vh - var(--navbar-h,60px) - var(--navbar-gap,14px) - 8rem)}
  /* Compartir en escritorio: solo iconos redondos, como en un articulo editorial */
  .wiz-layout .share{--ico-bg:#334155}
  .wiz-layout .share .share__title,
  .wiz-layout .share .share__native{display:none!important}
  .wiz-layout .share .share__list{display:flex;flex-wrap:nowrap;gap:.5rem}
  .wiz-layout .share--top .share__list>li:has(.share__btn--tg),
  .wiz-layout .share--top .share__list>li:has(.share__btn--mail),
  .wiz-layout .share--top .share__list>li:has(.share__btn--story){display:none}
  .wiz-layout .share .share__btn{width:38px;height:38px;min-height:0;padding:0;gap:0;justify-content:center;border-radius:50%;border:1px solid transparent;color:#fff;background:var(--ico-bg)}
  .wiz-layout .share .share__btn span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .wiz-layout .share .share__btn svg{width:18px;height:18px}
  .wiz-layout .share .share__btn--wa{--ico-bg:#25d366}
  .wiz-layout .share .share__btn--fb{--ico-bg:#1877f2}
  .wiz-layout .share .share__btn--x{--ico-bg:#000;border-color:rgba(255,255,255,.38)}
  .wiz-layout .share .share__btn--in{--ico-bg:#0a66c2}
  .wiz-layout .share .share__btn--tg{--ico-bg:#229ed9}
  .wiz-layout .share .share__btn:hover,
  .wiz-layout .share .share__btn:focus-visible{color:#fff;background:var(--ico-bg);filter:brightness(1.15);transform:translateY(-2px)}
  .wiz-layout .share .share__btn.is-done{color:#021008;background:var(--accent)}
  .wiz-layout .share--end{margin:2.5rem 0 0;padding:0;border:0;background:none;border-radius:0}
}
