/* Guías del blog: lectura cómoda, resumen, índice, productos y enlaces internos */
.post { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.post h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.04em; font-weight: 500; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); margin-top: 16px; }
.lede { font-size: 19px; line-height: 1.6; color: var(--text); margin-top: 24px; }
.summary { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--rule); border-left: 3px solid var(--ion); border-radius: 12px; background: var(--paper-deep); }
.summary strong { font-size: 13px; color: var(--ion); font-weight: 600; }
.summary p { margin-top: 6px; font-size: 17px; line-height: 1.55; }
.toc { margin-top: 28px; font-size: 15px; }
.toc strong { font-size: 13px; color: var(--muted); font-weight: 500; }
.toc ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.9; }
.toc a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.toc a:hover { border-color: var(--ink); }
.post section { margin-top: 48px; scroll-margin-top: 84px; }
.post h2 { font-size: 28px; letter-spacing: -.03em; font-weight: 500; line-height: 1.15; }
.post h3 { font-size: 18px; font-weight: 600; margin-top: 22px; }
.post section p, .post section li { font-size: 17px; line-height: 1.7; margin-top: 14px; }
.post section ul, .post section ol { padding-left: 22px; }
/* FAQ: la pregunta manda y la respuesta va por debajo, sin caja ni adorno. */
.post .faq { margin-top: 18px; border-top: 1px solid var(--rule); }
.post .faq dt { font-size: 16px; font-weight: 500; padding-top: 18px; }
.post .faq dd { margin: 6px 0 0; font-size: 16px; line-height: 1.7; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.post a { color: var(--ion); }
.table-wrap { overflow-x: auto; margin-top: 20px; }
.post table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post th, .post td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.post th { font-size: 13px; color: var(--muted); font-weight: 500; }
.post td.num, .post th.num { text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 14px; }
.post .shelf { margin-top: 36px; padding-top: 28px; }
.post .shelf p { font-size: 15px; margin-top: 10px; }
.post .shelf .products { margin-top: 18px; }
.post .shelf .source { font-size: 12px; }
.tools ul, .related ul, .cards { list-style: none; padding: 0 !important; display: grid; gap: 12px; margin-top: 18px; }
.tools ul, .related ul { grid-template-columns: repeat(3, 1fr); }
.tools a, .related a, .cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border: 1px solid var(--rule); border-radius: 14px; color: var(--ink); text-decoration: none; transition: transform var(--t-mid) var(--ease), border-color var(--t-fast); }
.tools a:hover, .related a:hover, .cards a:hover { transform: translateY(-2px); border-color: var(--ink); }
.tools strong, .related strong, .cards strong { font-size: 16px; font-weight: 500; line-height: 1.3; }
.tools span, .related span, .cards span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cards { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
.cards li { margin: 0 !important; }
.cards .cat { font-size: 12px; font-weight: 500; color: var(--ion); }
.post > footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.post > footer a { color: var(--muted); }
@media (max-width: 760px) {
  .post { padding: 36px 18px 72px; }
  .tools ul, .related ul, .cards { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
}

/* Cabecera de las guías */
header { position: sticky; top: 0; z-index: 30; height: 68px; display: flex; align-items: center; gap: 40px; padding: 0 40px; background: var(--paper); border-bottom: 1px solid var(--rule); }
header .brand { font-size: 18px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
header nav { display: flex; align-items: center; gap: 26px; font-size: 15px; margin-left: auto; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--ink); }
header nav a.nav-pill { color: var(--on-ion); }
@media (max-width: 960px) { header { padding: 0 14px; gap: 10px; } header nav { display: none !important; } }

.post--wide { max-width: 1080px; }
.post--wide .post section p { font-size: 15px; }
.post section.shelf-section { margin-top: 0; }
.post--wide section { margin-top: 24px; }
.post:not(.post--wide) .products { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .post:not(.post--wide) .products { grid-template-columns: 1fr; } }
.post--wide .toc { margin-top: 22px; }
.post--wide .toc strong { display: block; margin-bottom: 10px; }
.post--wide .toc ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; line-height: 1.3; }
.post--wide .toc a { display: inline-flex; align-items: center; padding: 7px 13px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
[data-theme="night"] .post--wide .toc a { background: var(--paper-deep); }
.post--wide .toc a:hover { border-color: var(--ion); color: var(--ion); }
@media (max-width: 760px) {
  .post--wide .toc ol { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
}

/* Gráficos SVG de las guías */
.chart { margin: 24px 0 8px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 12px var(--font-display); fill: var(--muted); }
.chart .lbl { fill: var(--text); font-size: 13px; }
.chart .val { fill: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .bar-soft { fill: var(--ion); opacity: .22; }
.chart .bar-strong { fill: var(--ion); }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .ln { fill: none; stroke: var(--muted); stroke-width: 1.6; opacity: .65; }
.chart .ln-strong { fill: none; stroke: var(--ion); stroke-width: 3; }
.chart .dot { fill: var(--muted); }
.chart .dot-strong { fill: var(--ion); }
.chart .tag { fill: var(--muted); }
.chart .tag-strong { fill: var(--ion); font-weight: 700; font-size: 13px; }
