/* Artículos del blog: columna de lectura a la izquierda y, en escritorio, columna lateral fija con el índice y el
   contacto. En tableta y móvil, una sola columna con el índice plegable al principio. Lo usan los index.html de
   cada artículo de la carpeta blog (con js/blog.js, que marca en el índice el apartado que se está leyendo). Sin estilos en línea en los artículos. */

.post-hero{background:var(--navy);padding:9rem 2rem 4.5rem}
.post-wrap{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:5rem}
.post-hero .post-wrap>div{grid-column:1;min-width:0}
.post-hero .svc-bc{position:static;margin:0 0 2.2rem;color:rgba(255,255,255,.62);flex-wrap:wrap}
.post-hero .svc-bc a{color:rgba(255,255,255,.62);text-decoration:none}
.post-hero .svc-bc a:hover{color:#fff}
.post-hero .svc-bc span:last-child{color:rgba(255,255,255,.82)}
.post-h1{font-family:'Playfair Display',serif;font-style:italic;font-weight:400;font-size:clamp(2.1rem,4.6vw,3.6rem);color:#fff;line-height:1.12;letter-spacing:-.01em;margin:0 0 1.4rem;max-width:24ch;text-wrap:balance}
.post-lead{font-size:1.12rem;color:rgba(255,255,255,.8);line-height:1.75;margin:0;max-width:62ch;text-wrap:pretty}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1.4rem;margin:2.2rem 0 0;font-size:.84rem;letter-spacing:.03em;color:rgba(255,255,255,.66)}
.post-meta-cat{color:var(--yellow);font-weight:600;letter-spacing:.12em;text-transform:uppercase;font-size:.76rem}

.post{background:#fff;padding:4.5rem 2rem 6rem}
.post-body{min-width:0;max-width:72ch;font-size:1.06rem;color:#4e4c68;line-height:1.85}
.post-body p{margin:0 0 1.35rem;text-wrap:pretty}
.post-body>p:first-of-type{font-size:1.18rem;line-height:1.75;color:var(--navy)}
.post-body h2{font-family:'Playfair Display',serif;font-style:italic;font-weight:400;font-size:clamp(1.5rem,2.4vw,1.95rem);color:var(--navy);line-height:1.25;margin:3.4rem 0 1rem;scroll-margin-top:110px;text-wrap:balance}
.post-body h3{font-size:1.1rem;font-weight:600;color:var(--navy);margin:2.2rem 0 .7rem;scroll-margin-top:110px}
.post-body ul,.post-body ol{margin:0 0 1.6rem;padding-left:1.3rem}
.post-body li{margin-bottom:.65rem;padding-left:.3rem}
.post-body li::marker{color:var(--navy-lt)}
.post-body ol li::marker{font-weight:600}
.post-body strong{color:var(--navy);font-weight:600}
.post-body a{color:var(--navy);text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:2px;text-underline-offset:.22em;transition:text-decoration-color .2s}
.post-body a:hover{text-decoration-color:var(--navy)}

.post-aside{position:sticky;top:110px;align-self:start;max-height:calc(100vh - 130px);overflow-y:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:1.8rem;min-width:0}
.post-aside-t{font-size:.74rem;letter-spacing:.18em;text-transform:uppercase;color:var(--navy);font-weight:600;margin:0 0 .9rem}
.post-toc ol,.post-toc-m ol{list-style:none;margin:0;padding:0}
.post-toc ol{border-top:1px solid var(--border)}
.post-toc li,.post-toc-m li{border-bottom:1px solid var(--border)}
.post-toc a,.post-toc-m a{display:block;padding:.58rem 0;font-size:.9rem;line-height:1.45;color:var(--muted);text-decoration:none;transition:color .2s}
.post-toc a:hover,.post-toc-m a:hover{color:var(--navy)}
.post-toc a[aria-current="true"]{color:var(--navy);font-weight:600}

.post-help{background:var(--sand-lt);padding:1.6rem 1.4rem}
.post-help-h{font-family:'Playfair Display',serif;font-style:italic;font-weight:400;font-size:1.4rem;color:var(--navy);line-height:1.25;margin:0 0 .6rem}
.post-help-p{font-size:.93rem;color:#55536f;line-height:1.65;margin:0 0 1.3rem}
.post-help .btn-yellow{width:100%;justify-content:center;padding:.95rem 1rem}
.post-help-alt{list-style:none;margin:1.1rem 0 0;padding:0;display:flex;flex-direction:column;gap:.55rem;font-size:.92rem}
.post-help-alt a{color:var(--navy);text-decoration:underline;text-decoration-color:var(--yellow);text-decoration-thickness:2px;text-underline-offset:.22em}
.post-help-alt a:hover{text-decoration-color:var(--navy)}

.post-toc-m{display:none}

.post ::selection,.post-hero ::selection{background:var(--yellow);color:var(--navy)}
.post a:focus-visible,.post-hero a:focus-visible,.post-toc-m summary:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
.post-hero a:focus-visible{outline-color:var(--yellow)}

@media(max-width:1024px){
  .post-wrap{grid-template-columns:minmax(0,1fr);gap:0}
  .post-aside{display:none}
  .post-body{max-width:72ch;margin:0 auto}
  .post-hero .post-wrap>div{max-width:72ch;margin:0 auto;width:100%}
  .post-toc-m{display:block;margin:0 0 2.6rem;border:1px solid var(--border)}
  .post-toc-m summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;font-size:.95rem;font-weight:600;color:var(--navy);cursor:pointer;list-style:none}
  .post-toc-m summary::-webkit-details-marker{display:none}
  .post-toc-m summary::after{content:'';width:.55rem;height:.55rem;border-right:2px solid var(--navy);border-bottom:2px solid var(--navy);transform:rotate(45deg) translateY(-2px);transition:transform .2s}
  .post-toc-m[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
  .post-toc-m ol{padding:0 1.2rem .4rem}
  .post-toc-m li:last-child{border-bottom:0}
}
@media(max-width:600px){
  .post-hero{padding:7.5rem 1.25rem 3rem}
  .post{padding:2.5rem 1.25rem 4rem}
  .post-lead{font-size:1.02rem}
  .post-body{font-size:1rem;line-height:1.8}
  .post-body>p:first-of-type{font-size:1.08rem}
  .post-body h2{margin-top:2.8rem}
}
@media(prefers-reduced-motion:reduce){
  .post a,.post-toc-m summary::after{transition:none}
}

/* Índice del blog: tarjetas en dos columnas y en una en móvil. */
.blog-grid{max-width:900px;margin:0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem}
@media(max-width:700px){.blog-grid{grid-template-columns:minmax(0,1fr)}}
