.post-head { max-width: 860px; padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 44px); }
.post-kicker { margin: 0 0 14px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.post-head h1 { font-size: clamp(36px, 5.6vw, 66px); }
.post-head h1 .emphasis-script { display: block; }
.post-meta { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.post-meta a { color: var(--text); }

.post-layout { display: grid; grid-template-columns: minmax(0, 70ch) 270px; justify-content: space-between; gap: 56px; padding-bottom: var(--section); }
.post-body { font-size: 18.5px; line-height: 1.72; }
.post-body > p, .post-body li { color: #e7ebe7; }
.post-body h2 { font-size: clamp(26px, 3vw, 34px); margin: 2em 0 0.6em; scroll-margin-top: 90px; }
.post-body h3 { font-size: 21px; margin: 1.6em 0 0.5em; scroll-margin-top: 90px; }
.post-body a { color: var(--accent-soft); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: 0.45em; }
.post-body code { padding: 2px 6px; border-radius: 6px; background: var(--surface-strong); font-size: 0.9em; }

.box { margin: 28px 0; padding: 20px 24px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 16px; background: var(--surface); }
.box ul { margin: 0; }
.box p { margin: 0; color: #e7ebe7; }
.box-title { display: block; margin-bottom: 10px; color: var(--accent); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.box-accent { background: linear-gradient(120deg, rgba(109, 255, 139, 0.08), var(--surface)); }

.post-figure { margin: 32px 0; }
.post-figure svg { width: 100%; height: auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #070a07; }
.post-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }
.post-figure small { opacity: 0.8; }

.post-table { margin: 28px 0; overflow-x: auto; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-table th, .post-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-table thead th { color: var(--accent); }
.post-table tbody th { color: var(--muted); font-weight: 600; width: 28%; }

.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 40px 0; padding: 26px; border: 1px solid rgba(109, 255, 139, 0.35); border-radius: var(--radius); background: radial-gradient(circle at 10% 0%, rgba(109, 255, 139, 0.16), transparent 55%), var(--surface); }
.post-cta p { margin: 0; max-width: 520px; }
.post-sources { margin-top: 48px; font-size: 15px; color: var(--muted); }
.post-sources h2 { font-size: 20px; margin-top: 0; }

.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.post-share .button { min-height: 40px; font-size: 14px; padding: 0 16px; }
.post-author { display: flex; gap: 16px; align-items: center; padding: 20px; }
.post-author img { width: 48px; height: auto; }
.post-author p { margin: 0; color: var(--muted); font-size: 16px; }

.post-aside { position: sticky; top: 92px; align-self: start; display: grid; gap: 20px; font-size: 15px; }
.post-toc ol { margin: 10px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.post-toc a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.post-toc a:hover, .post-toc a.is-active { color: var(--accent); }
a.post-service { display: grid; gap: 6px; padding: 20px; text-decoration: none; }
.post-service span:last-child { color: var(--muted); font-size: 14px; }
.post-toc-mobile { display: none; margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; }
.post-toc-mobile summary { cursor: pointer; font-weight: 700; }

.blog-list { padding-bottom: 40px; }
.blog-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.blog-categories span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; }

@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 1fr; gap: 32px; }
  .post-aside { position: static; }
  .post-toc { display: none; }
  .post-toc-mobile { display: block; }
}
@media (max-width: 900px) {
  .post-body { font-size: 17.5px; }
}
@media (max-width: 640px) {
  .post-table thead { display: none; }
  .post-table tr { display: block; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
  .post-table th, .post-table td, .post-table tbody th { display: block; width: auto; padding: 4px 0; border: 0; }
  .post-table td::before { content: attr(data-col) ": "; color: var(--accent); font-weight: 700; }
}

.box-example { border-left-color: var(--accent-soft); background: linear-gradient(120deg, rgba(146, 255, 171, 0.06), var(--surface)); }
.box-definition { border-left-color: var(--muted); }
.box p + p, .box p + ul, .box ul + p { margin-top: 10px; }
.box-accent p { color: var(--text); }

.post-figures { margin: 32px 0; }
.post-figures ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.post-figures li { display: grid; align-content: start; gap: 6px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.post-figures strong { color: var(--accent); font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; letter-spacing: -0.02em; }
.post-figures span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.post-figures-source { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.post-steps { counter-reset: paso; margin: 28px 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.post-steps li { counter-increment: paso; position: relative; margin: 0; padding: 4px 0 0 52px; }
.post-steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(109, 255, 139, 0.55); border-radius: 50%; color: var(--accent); font-size: 15px; font-weight: 700; }
.post-steps strong { display: block; color: var(--text); }
.post-steps p { margin: 4px 0 0; color: #e7ebe7; }

.post-faq { margin-top: 48px; }
.post-faq details { border-bottom: 1px solid var(--line); }
.post-faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--text); }
.post-faq details p { margin: 0 0 16px; color: #e7ebe7; }

.post-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; background: #070a07; }

.chart svg { display: block; max-width: 600px; }
.chart-label { fill: var(--text); }
.chart-value, .chart-text { fill: var(--muted); }
.chart-bar.s0, .chart-swatch.s0 { fill: var(--accent); background: var(--accent); }
.chart-bar.s1, .chart-swatch.s1 { fill: #3f8f50; background: #3f8f50; }
.chart-bar.s2, .chart-swatch.s2 { fill: #d8ded8; background: #d8ded8; }
.chart-bar.s3, .chart-swatch.s3 { fill: #6f786f; background: #6f786f; }
.chart-line { stroke: rgba(109, 255, 139, 0.35); stroke-width: 2; fill: none; }
.chart-dot { fill: #070a07; stroke: var(--accent); stroke-width: 2; }
.chart-dot-number { fill: var(--accent); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.chart-legend li { display: flex; align-items: center; gap: 8px; margin: 0; }
.chart-swatch { width: 14px; height: 14px; border-radius: 4px; }
.chart-data { margin-top: 8px; font-size: 15px; color: var(--muted); }
.chart-data summary { cursor: pointer; color: var(--accent-soft); }
.chart-data table { width: 100%; margin-top: 10px; border-collapse: collapse; }
.chart-data th, .chart-data td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.chart-data ol { margin: 10px 0 0; }

.post-draft { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border: 1px solid #ffb86b; border-radius: 999px; color: #ffd6a8; font-size: 14px; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .chart-bar { transform-box: fill-box; transform-origin: left center; transition: transform 0.9s var(--ease); }
  .js .chart:not(.is-visible) .chart-bar { transform: scaleX(0); }
  .motion-paused .chart .chart-bar { transform: none; transition: none; }
}
@media (max-width: 640px) {
  .post-figures ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-figures li { padding: 14px; }
  .post-steps li { padding-left: 46px; }
}
.chart-proceso svg { max-width: 540px; }
@media (max-width: 640px) {
  .chart svg { padding: 12px; }
}
