/* JetBrains Mono (SIL OFL 1.1) — subconjunto latino, servido desde este dominio.
   Aviso de licencia en THIRD_PARTY_LICENSES.txt. Sin CDN ni fuentes remotas. */
@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-700.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
}
:root {
    --paper: #ffffff;
    --surface: #f7f8f9;
    --surface-subtle: #eef1f2;
    --ink: #14171a;
    --muted: #4d575d;
    --faint: #6d777c;
    --line: #dde2e4;
    --accent: #bf3604;
    --accent-hover: #8f2803;
    --accent-soft: #fdeee7;
    --highlight: #ffd9c9;
    --hero: #14171a;
    --logo-bg: #14171a;
    --logo-ink: #ffffff;
    --code-bg: #0f1417;
    --code-text: #e9eef0;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Noto Sans", sans-serif;
    --display: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    color-scheme: light;
    scroll-behavior: smooth;
    scroll-padding-top: 32px;
}
:root[data-theme="dark"] {
    --paper: #0a0d0f;
    --surface: #121719;
    --surface-subtle: #181f22;
    --ink: #f2f6f8;
    --muted: #a9b4b9;
    --faint: #7b868b;
    --line: #242c30;
    --accent: #ff7a45;
    --accent-hover: #ff9a70;
    --accent-soft: #2a1a12;
    --highlight: #52301e;
    --hero: #0a0d0f;
    --logo-bg: #f2f6f8;
    --logo-ink: #0a0d0f;
    --code-bg: #05080a;
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--highlight); color: #102b35; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button, input { font: inherit; }
button { color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { touch-action: manipulation; }
img, video { max-width: 100%; height: auto; }
svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--gh-font-heading, var(--sans)); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.shell { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.site-frame { min-height: 100svh; display: flex; flex-direction: column; }
.site-frame > main { flex: 1; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; padding: 9px 16px; border-radius: 3px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.mark-tile { fill: var(--logo-bg); }
.mark-glyph { fill: none; stroke: var(--logo-ink); }
.mark-dot { fill: var(--highlight); }
.site-header { padding-top: 30px; }
.identity-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.identity { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.identity-mark { width: 45px; height: 45px; display: block; flex: 0 0 auto; }
.identity-mark svg { width: 45px; height: 45px; }
.identity-copy { display: flex; flex-direction: column; align-items: flex-start; }
.wordmark { font-size: 29px; font-weight: 730; line-height: 1; letter-spacing: -1.4px; }
.brand-dot { color: var(--accent); }
.identity-label { color: var(--muted); margin-top: 7px; font: 8px/1.2 var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.site-logo { width: auto; max-width: 170px; max-height: 48px; }
.header-note { max-width: 300px; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: right; }
.header-note strong { display: block; margin-bottom: 3px; color: var(--accent); font: 8px/1.5 var(--mono); letter-spacing: 1.3px; }
.navigation-row { display: flex; gap: 20px; align-items: center; justify-content: space-between; min-height: 55px; margin-top: 23px; border-bottom: 1px solid var(--line); }
.site-navigation { min-width: 0; }
.nav { list-style: none; display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; }
.nav li { flex-shrink: 0; }
.nav a { position: relative; color: var(--muted); display: block; padding: 10px 12px 14px; font-size: 12px; font-weight: 560; transition: color 160ms; }
.nav a:hover, .nav-current a { color: var(--ink); }
.nav-current a::after { position: absolute; right: 12px; bottom: 1px; left: 12px; height: 2px; background: var(--accent); content: ""; }
.header-actions { display: flex; gap: 7px; align-items: center; padding-bottom: 9px; }
.icon-button, .search-button { height: 35px; border: 1px solid var(--line); border-radius: 4px; background: transparent; display: inline-flex; align-items: center; justify-content: center; transition: border-color 160ms, color 160ms, background 160ms; }
.icon-button { width: 35px; }
.icon-button svg, .search-button svg { width: 16px; height: 16px; }
.icon-button:hover, .search-button:hover { border-color: var(--accent); background: var(--surface); color: var(--accent); }
.search-button { gap: 8px; padding: 0 7px 0 10px; font-size: 11px; }
kbd { color: var(--muted); border: 1px solid var(--line); border-radius: 3px; background: var(--surface); font: 9px/19px var(--sans); padding: 0 5px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: clamp(45px, 6vw, 80px); align-items: center; padding: 59px 0 55px; border-bottom: 1px solid var(--line); }
.intro-copy { display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font: 9px/1.6 var(--mono); letter-spacing: 1.1px; }
.status-dot { width: 6px; height: 6px; border-radius: 1px; background: var(--accent); }
.intro h1 { max-width: 650px; margin-top: 22px; font-family: var(--display); font-size: clamp(43px, 5vw, 60px); line-height: 1.07; letter-spacing: -2.3px; font-weight: 500; text-wrap: balance; }
.intro-copy > p { max-width: 580px; color: var(--muted); line-height: 1.75; font-size: 16px; margin-top: 23px; }
.button-link { display: inline-flex; align-items: center; gap: 25px; margin-top: 25px; padding: 7px 0; border-bottom: 1px solid var(--accent); color: var(--accent); font: 10px/1.6 var(--mono); letter-spacing: .7px; text-transform: uppercase; }
.button-link > span { font-size: 15px; line-height: 1; transition: transform 160ms; }
.button-link:hover { color: var(--accent-hover); }
.button-link:hover > span { transform: translateY(2px); }
.intro-visual { min-height: 375px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }
.visual-top { display: flex; justify-content: space-between; gap: 15px; padding: 17px 19px; color: var(--muted); font: 8px/1.6 var(--mono); letter-spacing: 1px; }
.visual-diagram { padding: 10px 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background-color: var(--paper); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; }
.visual-diagram svg { width: 100%; height: auto; }
.research-box { fill: var(--surface); stroke: var(--line); }
.research-box-accent { fill: var(--accent-soft); stroke: var(--accent); }
.research-line, .research-arrow { stroke: var(--accent); stroke-width: 1.4; stroke-linecap: square; }
.research-label { fill: var(--muted); font: 8px var(--mono); letter-spacing: .35px; }
.visual-index { list-style: none; margin: 0; padding: 0 19px; }
.visual-index li { display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 5px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.visual-index li > span { padding-top: 3px; color: var(--accent); font: 9px/1.5 var(--mono); }
.visual-index strong { display: block; font-size: 12px; font-weight: 620; line-height: 1.4; }
.visual-index small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.visual-caption { margin-top: auto; padding: 14px 19px 16px; }
.visual-caption > span { display: block; color: var(--muted); font: 7px/1.5 var(--mono); letter-spacing: 1px; }
.visual-caption strong { display: block; margin-top: 5px; font-size: 12px; font-weight: 560; }
.section-label { font: 9px/1.6 var(--mono); color: var(--muted); letter-spacing: 1.2px; }
.featured-section { padding-top: 18px; border-bottom: 1px solid var(--line); }
.featured-section > .section-label { display: flex; align-items: center; gap: 9px; }
.small-spark { font: 16px/1 var(--mono); color: var(--accent); }
.featured-post { background: transparent; transition: background 160ms; }
.featured-post:hover { background: var(--surface); }
.featured-link { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; min-height: 285px; }
.featured-copy { padding: 28px 42px 31px 0; }
.feature-topic { display: inline-block; color: var(--accent); font: 9px/1.6 var(--mono); letter-spacing: .8px; text-transform: uppercase; }
.featured-copy h2 { font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1.14; letter-spacing: -1px; margin: 14px 0 13px; text-wrap: balance; }
.featured-copy > p { font-size: 13px; color: var(--muted); line-height: 1.75; }
.feature-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--accent); font-size: 11px; font-weight: 620; }
.feature-cta > span { transition: transform 160ms; }
.featured-link:hover .feature-cta > span { transform: translate(2px, -2px); }
.feature-media { display: flex; min-height: 225px; height: 230px; margin: 22px 0 22px 18px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--hero); }
.featured-image { width: 100%; height: 100%; object-fit: cover; }
.feature-art { align-self: center; width: 100%; padding: 25px; }
.service-diagram { width: 100%; height: auto; }
.diagram-grid { stroke: #38515c; stroke-dasharray: 2 4; opacity: .8; }
.diagram-wire { stroke: var(--highlight); stroke-width: 1.5; opacity: .7; }
.diagram-node { fill: #f4f7f8; stroke: #a9bac2; stroke-width: 1.2; }
.accent-node { fill: #d8ecee; stroke: var(--highlight); }
.diagram-glyph { stroke: #2a4652; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.diagram-junction { fill: var(--hero); stroke: var(--highlight); stroke-width: 1.5; }
.diagram-caption { fill: #a8bbc3; font: 8px var(--mono); letter-spacing: 1px; }
.article-feed { margin-top: 52px; scroll-margin-top: 32px; }
.section-heading { display: flex; gap: 20px; align-items: baseline; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--ink); }
.section-heading > h2 { font-size: 21px; font-weight: 640; letter-spacing: -.5px; }
.section-count { color: var(--muted); font: 9px/1.6 var(--mono); text-transform: uppercase; }
.topic-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 20px; }
.topic-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); font-size: 10px; color: var(--muted); transition: color 160ms, background 160ms, border-color 160ms; }
.topic-pill > span { font: 8px var(--mono); opacity: .75; }
.topic-pill.selected { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.topic-pill:hover:not(.selected) { border-color: var(--accent); color: var(--accent); }
.post-list { border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 25px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.post-row > time { color: var(--faint); padding-top: 5px; font: 9px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .8px; }
.post-row-link { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.post-row h3 { max-width: 780px; font-family: var(--display); font-size: 23px; font-weight: 500; letter-spacing: -.35px; line-height: 1.3; transition: color 160ms; }
.post-row-link:hover h3 { color: var(--accent); }
.row-arrow { display: block; flex: 0 0 20px; width: 20px; height: 24px; color: var(--muted); transition: color 160ms, transform 160ms; }
.row-arrow svg { width: 15px; height: 15px; }
.post-row-link:hover .row-arrow { color: var(--accent); transform: translate(2px, -2px); }
.post-row-content > p { color: var(--muted); font-size: 13px; line-height: 1.75; margin-top: 9px; max-width: 720px; }
.post-row-meta { margin-top: 12px; display: flex; gap: 9px; align-items: center; color: var(--muted); font: 9px/1.6 var(--mono); text-transform: uppercase; }
.post-row-meta a { color: var(--accent); }
.post-row-meta a:hover { text-decoration: underline; }
.meta-dot { color: var(--faint); }
.empty-state { padding: 32px 0; color: var(--muted); }
.pagination { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-top: 30px; color: var(--muted); font-size: 11px; }
.pagination a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.pagination a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding-top: 26px; padding-bottom: 34px; margin-top: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer > div { display: flex; align-items: center; gap: 20px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; letter-spacing: -1px; font-weight: 700; }
.footer-mark, .footer-mark svg { width: 28px; height: 28px; }
.footer-note { color: var(--muted); font-size: 10px; }
.footer-links { font: 9px/1.6 var(--mono); color: var(--muted); text-transform: uppercase; }
.footer-links a { display: flex; gap: 4px; align-items: center; }
.footer-links svg { width: 12px; height: 12px; }
.footer-links a:hover { color: var(--accent); }
.archive-header { padding: 57px 0 38px; border-bottom: 1px solid var(--line); }
.archive-header h1 { font-family: var(--display); font-size: 49px; font-weight: 500; letter-spacing: -1.8px; line-height: 1.1; margin-top: 18px; }
.archive-header > p { color: var(--muted); margin-top: 19px; max-width: 650px; font-size: 16px; }
.back-link { display: inline-block; color: var(--muted); font: 9px/1.6 var(--mono); letter-spacing: .7px; text-transform: uppercase; margin-bottom: 30px; }
.back-link:hover { color: var(--accent); }
.archive-header .back-link { margin-bottom: 25px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 28px; }
.topic-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; transition: border-color 160ms, background 160ms; }
.topic-card h2 { margin-top: 11px; font-size: 20px; font-weight: 620; letter-spacing: -.4px; display: flex; justify-content: space-between; }
.topic-card h2 > span { color: var(--accent); }
.topic-card p { color: var(--muted); font-size: 12px; margin-top: 10px; }
.topic-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.article-header { width: min(940px, calc(100% - 64px)); margin-inline: auto; padding-top: 42px; }
.article-header .back-link { margin-bottom: 32px; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font: 9px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .9px; }
.article-kicker a { color: var(--accent); }
.article-header h1 { font-family: var(--display); font-size: clamp(39px, 5vw, 56px); letter-spacing: -2px; font-weight: 500; line-height: 1.1; max-width: 900px; margin-top: 20px; text-wrap: balance; }
.article-lede { color: var(--muted); font-size: 18px; line-height: 1.75; margin-top: 23px; max-width: 790px; }
.article-record { display: grid; grid-template-columns: 1fr 1.35fr 1fr; margin-top: 29px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.record-item { min-width: 0; padding: 13px 18px 14px; border-left: 1px solid var(--line); }
.record-item:first-child { padding-left: 0; border-left: 0; }
.record-label { display: block; margin-bottom: 5px; color: var(--faint); font: 7px/1.5 var(--mono); letter-spacing: 1px; }
.record-value { display: block; color: var(--ink); font-size: 11px; line-height: 1.5; }
.record-value a:hover { color: var(--accent); }
.article-cover { margin-top: 34px; }
.article-cover img { width: 100%; border: 1px solid var(--line); border-radius: 3px; }
.article-cover figcaption { font-size: 10px; color: var(--muted); text-align: left; padding-top: 10px; }
.article-layout { width: min(750px, calc(100% - 64px)); margin: 42px auto 0; position: relative; display: flex; flex-direction: column; }
.article-content { min-width: 0; font-size: 17px; line-height: 1.95; overflow-wrap: break-word; }
.article-content > * + * { margin-top: 25px; }
.article-content h2 { font-size: 24px; font-weight: 650; line-height: 1.4; letter-spacing: -.45px; margin-top: 49px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 30px; }
.article-content h3 { font-size: 19px; font-weight: 630; line-height: 1.45; letter-spacing: -.25px; margin-top: 35px; scroll-margin-top: 30px; }
.article-content h4, .article-content h5, .article-content h6 { font-size: 17px; line-height: 1.5; margin-bottom: 0; }
.article-content > :first-child { margin-top: 0; }
.article-content a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent), transparent 60%); }
.article-content a:hover { text-decoration-color: currentColor; }
.article-content ul, .article-content ol { padding-left: 23px; }
.article-content li { padding-left: 4px; margin-top: 8px; }
.article-content li::marker { color: var(--accent); }
.article-content strong { font-weight: 660; }
.article-content code { font: .8em/1.6 var(--mono); padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-subtle); }
.article-content pre { overflow-x: auto; background: var(--code-bg); color: var(--code-text); border-radius: 4px; padding: 22px 24px; font: 12px/1.85 var(--mono); tab-size: 4; white-space: pre; }
.article-content pre code { padding: 0; border: 0; background: none; color: inherit; font: inherit; white-space: pre; border-radius: 0; }
.code-block { border-radius: 4px; background: var(--code-bg); color: var(--code-text); overflow: hidden; margin: 29px 0; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 14px 10px 22px; border-bottom: 1px solid #ffffff15; color: #a8b8c0; font: 9px/1.6 var(--mono); }
.copy-code { padding: 4px 9px; border: 1px solid #ffffff2b; border-radius: 3px; background: transparent; color: #d0dce1; font: 9px/1.6 var(--mono); min-width: 65px; }
.copy-code:hover { background: #ffffff12; }
.code-block pre { margin: 0; border-radius: 0; }
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #95a1b5; }
.token.punctuation { color: #c3cee0; }
.token.property, .token.tag, .token.constant, .token.symbol { color: #e6a5ae; }
.token.boolean, .token.number { color: #e4b97e; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin { color: #b2d3a5; }
.token.operator, .token.entity, .token.url { color: #a4c9e8; }
.token.atrule, .token.attr-value, .token.keyword { color: #b8adf1; }
.token.function, .token.class-name { color: #a0c6f3; }
.token.regex, .token.important, .token.variable { color: #e1c28d; }
.token.deleted { color: #e6a5ae; }
.token.inserted { color: #b2d3a5; }
.article-content blockquote { margin: 30px 0; border: 0; border-left: 2px solid var(--accent); border-radius: 0; padding: 4px 0 4px 21px; background: transparent; color: var(--muted); font-size: 17px; line-height: 1.85; }
.article-content blockquote > p + p { margin-top: 16px; }
.article-content > blockquote:nth-child(-n+4) { padding: 22px 24px; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--surface); color: var(--ink); }
.article-content > blockquote:nth-child(-n+4)::before { display: block; margin-bottom: 15px; color: var(--accent); font: 8px/1.5 var(--mono); letter-spacing: 1.2px; content: "SÍNTESIS"; }
.article-content hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.65; }
.article-content th, .article-content td { text-align: left; padding: 14px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-content th { background: var(--surface-subtle); font-size: 10px; font-weight: 650; letter-spacing: .25px; text-transform: uppercase; }
.article-content tbody tr:last-child td { border-bottom: 0; }
.article-content tbody tr:hover { background: color-mix(in srgb, var(--surface-subtle) 55%, transparent); }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.table-scroll table { margin: 0; min-width: 560px; }
.article-content .kg-card { max-width: 100%; }
.article-content .kg-width-wide, .article-content .kg-width-full { width: 100%; }
.article-content .kg-image-card { padding: 17px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.article-content .kg-image { display: block; margin: 0 auto; border: 1px solid var(--line); border-radius: 2px; }
.article-content figcaption { margin-top: 11px; padding: 0; font-size: 10px; line-height: 1.7; color: var(--muted); text-align: left; }
.article-content iframe { max-width: 100%; border: 0; }
.article-content .kg-embed-card { position: relative; }
.article-content .kg-gallery-container { display: flex; flex-direction: column; gap: 10px; }
.article-content .kg-gallery-row { display: flex; gap: 10px; }
.article-content .kg-gallery-image { flex: 1; min-width: 0; }
.article-content .kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-content .kg-bookmark-container { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; }
.article-content .kg-bookmark-content { padding: 22px; flex: 1; min-width: 0; }
.article-content .kg-bookmark-title { font-size: 15px; font-weight: 600; }
.article-content .kg-bookmark-description { font-size: 12px; color: var(--muted); margin-top: 8px; }
.article-content .kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; font-size: 10px; margin-top: 15px; }
.article-content .kg-bookmark-icon { width: 16px; height: 16px; }
.article-content .kg-bookmark-thumbnail { flex: 0 0 28%; }
.article-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.article-content .kg-callout-card, .callout { padding: 19px 21px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0; background: var(--accent-soft); color: var(--ink); font-size: 13px; }
.article-content .kg-toggle-card { border: 1px solid var(--line); border-radius: 3px; padding: 20px; }
.article-content .kg-button-card { display: flex; }
.article-content .kg-button-card.kg-align-center { justify-content: center; }
.article-content .kg-button-card .kg-btn { background: var(--ink); color: var(--paper); border-radius: 3px; padding: 9px 18px; text-decoration: none; font-size: 13px; }
.article-content .kg-file-card a { border: 1px solid var(--line); border-radius: 3px; padding: 20px; text-decoration: none; color: var(--ink); }
.article-content .kg-header-card h2 { margin-top: 0; }
.article-content .kg-header-card-content { padding: 30px; }
.article-content .kg-product-card-container { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 25px; }
.article-aside { order: -1; margin-bottom: 27px; }
.article-toc { border: 1px solid var(--line); border-radius: 3px; padding: 14px 17px; background: var(--surface); }
.article-toc summary { font: 8px/1.6 var(--mono); letter-spacing: 1px; color: var(--muted); }
.article-toc nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 15px; }
.article-toc a { font-size: 10px; line-height: 1.65; color: var(--muted); border-left: 1px solid var(--line); padding-left: 11px; }
.article-toc a.toc-sub { padding-left: 21px; font-size: 9px; }
.article-toc a:hover, .article-toc a.active { color: var(--accent); border-color: var(--accent); }
.article-bottom { width: min(750px, calc(100% - 64px)); margin: 43px auto 0; padding-top: 23px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.article-tags a { font: 9px/1.6 var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 4px 9px; text-transform: uppercase; }
.article-tags a:hover { color: var(--accent); border-color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 11px; color: var(--accent); font-size: 11px; font-weight: 620; }
.text-link:hover { text-decoration: underline; }
.related-posts { width: min(900px, calc(100% - 64px)); margin: 62px auto 0; }
.related-posts .section-heading { margin-bottom: 18px; }
.related-posts .post-row h3 { font-size: 20px; }
.reading-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); width: 100%; z-index: 40; pointer-events: none; }
.page-detail .article-content { margin-top: 5px; }
.error-page { padding-top: 75px; padding-bottom: 75px; }
.error-page h1 { margin-top: 20px; font-family: var(--display); font-size: 52px; line-height: 1.1; letter-spacing: -1.8px; font-weight: 500; }
.error-page p { margin-top: 25px; color: var(--muted); max-width: 480px; }
.error-page .text-link { margin-top: 30px; }
@media (min-width: 1200px) {
    .article-layout { width: min(1020px, calc(100% - 64px)); display: grid; grid-template-columns: minmax(0, 750px) 180px; gap: 70px; align-items: start; }
    .article-aside { order: initial; position: sticky; top: 30px; max-height: calc(100vh - 60px); margin-bottom: 0; }
    .article-toc { position: static; border: 0; border-top: 2px solid var(--accent); border-radius: 0; padding: 12px 0 0; max-height: calc(100vh - 70px); overflow-y: auto; background: transparent; }
    .article-toc summary { list-style: none; pointer-events: none; }
    .article-toc summary::-webkit-details-marker { display: none; }
    .article-bottom { width: min(1020px, calc(100% - 64px)); }
}
@media (max-width: 900px) {
    .intro { grid-template-columns: minmax(0, 1.1fr) minmax(290px, .9fr); gap: 32px; }
    .intro h1 { font-size: 47px; }
    .featured-link { grid-template-columns: minmax(0, 1fr) 310px; }
    .featured-copy { padding-right: 25px; }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .shell { width: calc(100% - 40px); }
    .site-header { padding-top: 24px; }
    .header-note { display: none; }
    .navigation-row { margin-top: 20px; }
    .search-button > span, .search-button kbd { display: none; }
    .search-button { width: 35px; padding: 0; }
    .intro { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 44px 0 43px; }
    .intro h1 { max-width: 620px; font-size: clamp(40px, 8vw, 54px); }
    .intro-copy > p { max-width: 590px; font-size: 15px; }
    .intro-visual { min-height: 0; }
    .featured-link { grid-template-columns: minmax(0, 1fr); }
    .feature-media { order: -1; min-height: 215px; height: 230px; margin: 20px 0 0; }
    .featured-copy { padding: 25px 0 28px; }
    .featured-copy h2 { font-size: 30px; }
    .article-feed { margin-top: 43px; }
    .post-row { grid-template-columns: 68px minmax(0, 1fr); gap: 16px; padding: 25px 0; }
    .post-row h3 { font-size: 21px; }
    .site-footer { margin-top: 60px; }
    .site-footer > div { gap: 13px; }
    .footer-note { max-width: 190px; line-height: 1.5; }
    .article-header, .article-layout, .article-bottom, .related-posts { width: calc(100% - 40px); }
    .article-header { padding-top: 32px; }
    .article-header h1 { letter-spacing: -1.5px; }
    .article-lede { font-size: 17px; }
    .article-layout { margin-top: 32px; }
    .article-content { font-size: 16px; }
    .article-content h2 { font-size: 22px; }
    .article-content pre { padding: 19px; font-size: 11px; }
    .archive-header h1 { font-size: 41px; }
}
@media (max-width: 600px) {
    .article-record { grid-template-columns: 1fr 1fr; }
    .record-author { grid-column: 1 / -1; padding-left: 0; border-bottom: 1px solid var(--line); border-left: 0; }
    .record-item:nth-child(2) { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) {
    .shell, .article-header, .article-layout, .article-bottom, .related-posts { width: calc(100% - 32px); }
    .site-header { padding-top: 20px; }
    .identity { gap: 10px; }
    .identity-mark, .identity-mark svg { width: 41px; height: 41px; }
    .wordmark { font-size: 27px; }
    .identity-label { font-size: 7px; }
    .navigation-row { gap: 7px; }
    .nav { gap: 0; }
    .nav a { padding-inline: 8px; font-size: 11px; }
    .nav-current a::after { right: 8px; left: 8px; }
    .header-actions { gap: 5px; }
    .icon-button, .search-button { width: 33px; height: 34px; }
    .intro { gap: 29px; padding-top: 37px; }
    .eyebrow { font-size: 8px; letter-spacing: .7px; }
    .intro h1 { font-size: 39px; letter-spacing: -1.5px; }
    .visual-top { padding-inline: 16px; }
    .visual-diagram { padding-inline: 8px; }
    .visual-index { padding-inline: 16px; }
    .visual-caption { padding-inline: 16px; }
    .featured-copy h2 { font-size: 29px; }
    .feature-media { min-height: 180px; height: 190px; }
    .feature-art { padding: 18px; }
    .section-heading > h2 { font-size: 19px; }
    .section-count { font-size: 8px; }
    .post-row { grid-template-columns: minmax(0, 1fr); gap: 7px; }
    .post-row > time { padding-top: 0; }
    .post-row-link { gap: 12px; }
    .post-row h3 { font-size: 21px; }
    .site-footer { align-items: flex-start; }
    .footer-note { display: none; }
    .footer-links { gap: 12px !important; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .article-header h1 { font-size: 36px; letter-spacing: -1.2px; }
    .article-header .back-link { margin-bottom: 27px; }
    .article-lede { font-size: 16px; }
    .article-cover { margin-top: 27px; }
    .article-content h2 { font-size: 21px; margin-top: 42px; }
    .article-content h3 { font-size: 19px; }
    .article-content blockquote { padding-left: 17px; font-size: 16px; }
    .article-content > blockquote:nth-child(-n+4) { padding: 19px; }
    .article-content .kg-bookmark-thumbnail { display: none; }
    .article-bottom { align-items: flex-start; flex-direction: column; }
    .error-page h1 { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
    :root { --paper: #fff; --surface: #fff; --ink: #111; --muted: #444; --line: #ddd; }
    .site-header, .site-footer, .article-aside, .reading-progress, .article-bottom, .related-posts, .copy-code, .preview-notice { display: none !important; }
    .shell, .article-header, .article-layout { width: 100%; }
    .article-header { padding-top: 0; }
    .article-header .back-link { display: none; }
    .article-content { font-size: 11pt; }
    .article-content pre { white-space: pre-wrap; color: #111; background: #f2f2f2; }
    .code-toolbar { color: #444; }
    .code-block { background: #f2f2f2; break-inside: avoid; }
}

/* =====================================================================
   Identidad BeriaLabs — titulares monoespaciados, retícula de trazo
   discontinuo y color solo en los detalles del logo. Esta capa va al
   final a propósito: sobrescribe lo anterior sin reescribirlo, para
   poder revertir el aspecto quitando este bloque.
   ===================================================================== */

::selection { background: var(--highlight); color: var(--ink); }

/* Titulares: mono con tracking negativo, peso normal */
.intro h1,
.article-header h1,
.featured-post h2,
.section-heading h2,
.post-row h3,
.error-title,
.page-title {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -.05em;
}
.intro h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; }
.article-header h1 { font-family: var(--display); font-weight: 400; letter-spacing: -.05em; line-height: 1.06; }
.featured-post h2 { line-height: 1.1; }
.section-heading h2 { font-size: 20px; letter-spacing: -.04em; }
.post-row h3 { letter-spacing: -.04em; }
.gh-content h2, .gh-content h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.045em; }
.gh-content h3 { font-weight: 500; letter-spacing: -.03em; }

/* Marca */
.wordmark { font-family: var(--sans); font-size: 25px; font-weight: 700; letter-spacing: -.01em; }
.identity-mark, .identity-mark svg { width: 34px; height: 34px; }
.identity-mark svg { color: var(--accent); }
.footer-mark svg { width: 20px; height: 20px; color: var(--accent); }
.identity-label { font-family: var(--mono); letter-spacing: .14em; }

/* Retícula: separaciones a trazo discontinuo */
.navigation-row,
.intro,
.section-heading,
.post-row,
.article-bottom,
.related-posts { border-color: var(--line); }
.navigation-row { border-bottom-style: dashed; }
.intro { border-bottom-style: dashed; }
.post-row { border-bottom-style: dashed; }
.section-heading { border-bottom-style: dashed; }

/* Píldoras y etiquetas en mono */
.topic-pill, .feature-topic, .article-kicker, .record-label, .section-count {
    font-family: var(--mono);
    letter-spacing: .07em;
    text-transform: uppercase;
}
.topic-pill { border-radius: 7px; font-size: 11px; }
.topic-pill.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .topic-pill.selected { color: #0a0d0f; }
.feature-topic { font-size: 11px; color: var(--accent); }

/* Firma del autor al final del artículo */
.author-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px dashed var(--line);
}
.author-photo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    /* el retrato se publica en blanco y negro */
    filter: grayscale(1) contrast(1.06);
}
.author-copy { min-width: 0; }
.author-name { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.author-bio { margin-top: 6px; max-width: 58ch; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.author-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    transition: color 160ms, border-color 160ms, background 160ms;
}
.author-social a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.author-social svg { width: 16px; height: 16px; }

@media (max-width: 600px) {
    .author-card { gap: 14px; }
    .author-photo { flex-basis: 58px; width: 58px; height: 58px; }
}
