/* ==========================================================================
   Sukyme · tema de Ghost
   Mismos tokens que la landing de sukyme.com
   ========================================================================== */

/* Fuentes alojadas en el propio tema (sin peticiones a Google antes del consentimiento) */
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations"),
         url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
}
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
    --ink: #12202F;
    --ink-deep: #0C1621;
    --text: #3B4A5A;
    --muted: #5A6878;
    --bg: #F4F6F8;
    --surface: #FFFFFF;
    --line: #DDE3E9;
    --line-soft: #E6EAEE;
    --line-strong: #C9D3DD;
    --green: #1E8A5F;
    --green-dark: #187550;
    --green-light: #4FC48F;
    --green-tint: #F2FAF6;
    --on-dark: #C9D3DD;
    --on-deep: #A9B5C1;
    --sev-crit: #B3362B;
    --sev-alta: #A65A10;
    --sev-alta-bar: #D97A1E;
    --sev-media: #8A6A00;
    --sev-media-bar: #D9B23A;
    --sev-baja: #3F6E3F;

    --font-display: var(--gh-font-heading, "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif);
    --font-sans: var(--gh-font-body, "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --radius-sm: 8px;
    --radius: 10px;
    --radius-card: 14px;
    --radius-lg: 16px;
    --shadow: 0 24px 48px -24px rgba(18, 32, 47, 0.25);
    --wrap: 1160px;
    --text-width: 720px;
}

/* Reset mínimo
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--green-dark); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--text { max-width: calc(var(--text-width) + 48px); }

.h-display { font-family: var(--font-display); letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 100;
    background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
    text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Componentes base
   ========================================================================== */
.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-dark);
    text-decoration: none;
}
a.eyebrow:hover { color: var(--green); text-decoration: underline; }
.eyebrow--sm { font-size: 12px; margin-bottom: 10px; }
.eyebrow--light { color: var(--green-light); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 22px;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    font-weight: 600; font-size: 16px; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--sm { padding: 11px 17px; font-size: 15px; border-radius: var(--radius-sm); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--green-dark); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: var(--on-dark); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px; font-weight: 600; line-height: 1.4;
    padding: 3px 10px; border-radius: 10px;
    text-transform: none; letter-spacing: 0;
}
.badge--green { background: var(--green); color: #fff; }
.badge--lock { background: var(--bg); color: var(--muted); border: 1px solid var(--line); padding: 1px 8px; font-size: 11px; }

.sev {
    display: inline-block; min-width: 64px; text-align: center;
    color: #fff; font-size: 11px; font-weight: 600; border-radius: 9px; padding: 2px 8px;
}
.sev--crit { background: var(--sev-crit); }
.sev--alta { background: var(--sev-alta); }
.sev--media { background: var(--sev-media); }
.sev--baja { background: var(--sev-baja); }

.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-block; padding: 6px 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    font-size: 13px; color: var(--text); text-decoration: none;
}
.chip:hover { border-color: var(--green); color: var(--green-dark); }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--text); }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks svg { flex: 0 0 auto; }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cols2--start { align-items: start; }

.section-title { margin: 0 0 32px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.15; }

/* Cabecera
   ========================================================================== */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header__inner { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 16px; flex-wrap: wrap; }

.brand { display: flex; align-items: baseline; gap: 10px; }
.brand__logo { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 24px; line-height: 1; }
.brand__logo:hover { color: var(--ink); }
.brand__logo img { max-height: 36px; width: auto; }
.brand__dot { color: var(--green); }
.brand__section { font-size: 14px; color: var(--muted); text-decoration: none; }
.brand__section:hover { color: var(--green-dark); }

.nav { display: flex; gap: 20px; align-items: center; }
.nav__links .nav { gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 15px; }
.nav__links .nav-current a { color: var(--green-dark); font-weight: 600; }
.nav__search {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
}
.nav__search:hover { border-color: var(--ink); }

/* Portada
   ========================================================================== */
.hero { padding: 72px 0 40px; }
.hero__title { margin: 0; max-width: 880px; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; font-weight: 800; }
.hero__text { margin: 22px 0 0; font-size: 19px; color: var(--text); max-width: 640px; }

.feed { padding: 16px 0 80px; }
.feed__grid { margin-top: 20px; }

.featured {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
}
.featured__body { padding: 40px; display: flex; flex-direction: column; }
.featured__top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.featured__top .eyebrow { margin: 0; }
.featured__title { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 800; }
.featured__title a { text-decoration: none; }
.featured__excerpt { margin: 16px 0 0; color: var(--text); font-size: 17px; }
.featured__foot { margin-top: auto; padding-top: 28px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.featured__meta { font-size: 13px; color: var(--muted); }
.featured__media { display: block; min-height: 320px; background: var(--bg); }
.featured__media img { width: 100%; height: 100%; object-fit: cover; }
.featured__media--panel { display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--ink); }

.panel-mock { width: 100%; max-width: 380px; background: var(--surface); border-radius: var(--radius-card); padding: 20px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.45); }
.panel-mock__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; font-weight: 800; font-size: 18px; }
.panel-mock__head .mono { font-size: 12px; font-weight: 400; color: var(--muted); }
.panel-mock__bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 16px 0 8px; }
.panel-mock__row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.panel-mock__row:first-of-type { border-top: 0; }
.panel-mock__line { height: 8px; border-radius: 4px; background: var(--line); width: 90%; }
.panel-mock__line--s { width: 70%; }
.panel-mock__line--m { width: 55%; }

.post-card { display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card--noimg { border-top: 3px solid var(--green); }
.post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { margin: 0 0 10px; font-size: 22px; line-height: 1.2; font-weight: 700; }
.post-card__title a { text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card .eyebrow { position: relative; z-index: 1; align-self: flex-start; }
.post-card__excerpt { margin: 0; color: var(--text); font-size: 16px; }
.post-card__meta { margin-top: auto; padding-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }

.empty { padding: 40px; max-width: 720px; }
.empty h2 { margin: 0 0 10px; font-size: 30px; }
.empty p { color: var(--text); margin: 0 0 22px; }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; }
.pagination__count { font-size: 13px; color: var(--muted); }

/* Bandas oscuras (como "Un producto mal dado de alta…" y "Pedir" en la landing)
   ========================================================================== */
.band { padding: 72px 0; }
.band--dark { background: var(--ink); color: #fff; }
.band--dark a:not(.btn) { color: #fff; }
.band__title { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; color: #fff; }
.band__text { margin: 0; color: var(--on-dark); }

.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band .band__title { max-width: 680px; margin: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.subscribe { border-top: 1px solid rgba(255,255,255,.08); }
.subscribe__form { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: 24px; }
.subscribe__row { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe__row input {
    flex: 1 1 220px; min-width: 0;
    font: inherit; font-size: 16px; color: var(--ink);
    padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
    background: #fff;
}
.subscribe__row input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,138,95,.18); }
.subscribe__row .btn { flex: 0 0 auto; }
.subscribe__loading, .subscribe__msg { display: none; }
.subscribe__form.loading .subscribe__label { display: none; }
.subscribe__form.loading .subscribe__loading { display: inline; }
.subscribe__form.success .subscribe__msg--success,
.subscribe__form.error .subscribe__msg--error { display: block; }
.subscribe__msg { margin: 12px 0 0; font-size: 15px; font-weight: 500; }
.subscribe__msg--success { color: var(--green-dark); }
.subscribe__msg--error { color: var(--sev-crit); }
.subscribe__legal { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.subscribe__legal a { color: var(--green-dark) !important; }

/* Cabeceras de etiqueta y autor
   ========================================================================== */
.page-head { padding: 64px 0 24px; }
.page-head__title { margin: 0; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; font-weight: 800; }
.page-head__text { margin: 16px 0 0; font-size: 18px; color: var(--text); max-width: 680px; }
.page-head__count { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.page-head__author { display: flex; gap: 28px; align-items: flex-start; }
.page-head__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.page-head__links { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* Artículo
   ========================================================================== */
.article { padding-bottom: 24px; }
.article__header { padding-top: 64px; padding-bottom: 36px; }
.article__title { margin: 0; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; font-weight: 800; }
.article__lead { margin: 20px 0 0; font-size: 20px; line-height: 1.5; color: var(--text); }
.article__meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.author-chip { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; }
.author-chip img, .author-chip__initial { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author-chip__initial { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 800; }
.article__date { font-size: 13px; color: var(--muted); }

.article__image { margin: 0 auto 48px; }
.article__image img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.article__image figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

.article__footer { padding-top: 24px; }
.article__footer .chips { margin: 0 0 40px; }
.article__comments { margin-top: 56px; }

.cta-box {
    margin: 8px 0 0;
    padding: 32px;
    background: var(--green-tint);
    border: 2px solid var(--green);
    border-radius: var(--radius-card);
}
.cta-box__title { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; font-weight: 800; }
.cta-box__text { margin: 0; color: var(--text); }
.cta-box__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.related { padding: 72px 0 80px; margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); }

/* Contenido del editor (Koenig)
   ========================================================================== */
.gh-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(24px, 1fr)
        [wide-start] minmax(0, 220px)
        [main-start] min(var(--text-width), calc(100% - 48px))
        [main-end] minmax(0, 220px)
        [wide-end] minmax(24px, 1fr)
        [full-end];
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink);
}
.gh-content > * { grid-column: main-start / main-end; margin-top: 0; margin-bottom: 0; }
.gh-content > * + * { margin-top: 1.5em; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }
.gh-content > .kg-width-full img { border-radius: 0; border: 0; }

.gh-content > h2, .gh-content > h3, .gh-content > h4 {
    font-family: var(--font-display); letter-spacing: -0.02em; color: var(--ink);
}
.gh-content > h2 { margin-top: 2.2em; font-size: clamp(26px, 2.8vw, 32px); line-height: 1.15; font-weight: 700; }
.gh-content > h3 { margin-top: 1.9em; font-size: 23px; line-height: 1.25; font-weight: 700; }
.gh-content > h4 { margin-top: 1.7em; font-size: 19px; font-weight: 700; }
.gh-content > h2 + *, .gh-content > h3 + *, .gh-content > h4 + * { margin-top: .6em; }
.gh-content > :first-child { margin-top: 0; }

.gh-content a { color: var(--green-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gh-content a:hover { color: var(--green); }
.gh-content strong { font-weight: 600; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: .45em; }
.gh-content ul li::marker { color: var(--green); }
.gh-content ol li::marker { font-family: var(--font-mono); color: var(--green-dark); font-size: .9em; }

.gh-content hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }

.gh-content blockquote:not([class]) {
    margin-left: 0; margin-right: 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--green);
    font-size: 20px; line-height: 1.55; color: var(--ink);
}
.gh-content blockquote.kg-blockquote-alt {
    font-family: var(--font-display); font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em;
    text-align: center; padding: 0 4%; color: var(--ink);
}

.gh-content code {
    font-family: var(--font-mono); font-size: .86em;
    background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em;
}
.gh-content pre {
    background: var(--ink); color: #E6EAEE; border-radius: var(--radius-card);
    padding: 20px 22px; overflow-x: auto; font-size: 15px; line-height: 1.6;
}
.gh-content pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.gh-content table:not(.gist table) {
    display: table; width: 100%;
    border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 15px; line-height: 1.45;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.gh-content th { text-align: left; font-weight: 600; padding: 12px 14px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.gh-content td { padding: 11px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; }

.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }
.gh-content .kg-image-card img, .gh-content .kg-gallery-image img { border-radius: var(--radius); }
.gh-content .kg-image { margin: 0 auto; }

/* Tarjetas de Koenig: ajustes de marca sobre los estilos por defecto (card_assets) */
.gh-content .kg-callout-card { border-radius: var(--radius-card); font-size: 17px; }
.gh-content .kg-callout-card-grey { background: var(--surface); border: 1px solid var(--line); }
.gh-content .kg-callout-card-green { background: var(--green-tint); border: 1px solid #BFE3D2; }
.gh-content .kg-callout-card-red { background: #FBEDEB; }
.gh-content .kg-callout-card-yellow { background: #FBF4DD; }
.gh-content .kg-callout-card-accent { background: var(--ink); }

.gh-content .kg-button-card a.kg-btn,
.gh-content .kg-header-card a.kg-header-card-button,
.gh-content .kg-cta-card .kg-cta-button { border-radius: var(--radius); font-family: var(--font-sans); font-weight: 600; }

.gh-content .kg-bookmark-card a.kg-bookmark-container {
    border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface);
    color: var(--ink); text-decoration: none; box-shadow: none;
}
.gh-content .kg-bookmark-title { font-family: var(--font-display); font-weight: 700; }

.gh-content .kg-toggle-card { border-radius: var(--radius-card); border-color: var(--line); background: var(--surface); }
.gh-content .kg-toggle-heading-text { font-family: var(--font-display); }

.gh-content .kg-product-card-container,
.gh-content .kg-file-card-container,
.gh-content .kg-audio-card { border-radius: var(--radius-card); }

.gh-content .kg-signup-card, .gh-content .kg-header-card { border-radius: var(--radius-lg); }
.gh-content .kg-header-card h2, .gh-content .kg-signup-card-heading { font-family: var(--font-display); letter-spacing: -0.02em; }

/* Página de error
   ========================================================================== */
.error-page { padding: 96px 0 112px; }
.error-page__title { margin: 0; max-width: 760px; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; font-weight: 800; }
.error-page__text { margin: 20px 0 0; max-width: 600px; font-size: 19px; color: var(--text); }
.error-page__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.error-page__details { margin-top: 32px; font-size: 13px; color: var(--muted); }

/* Pie
   ========================================================================== */
.site-footer { padding: 32px 0; background: var(--ink-deep); color: var(--on-deep); font-size: 14px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer a, .site-footer .ck-link { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.site-footer .nav { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-footer__in { display: inline-flex; gap: 6px; align-items: center; }

/* Banner de cookies (idéntico a la landing)
   ========================================================================== */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
    max-width: 560px; margin: 0 auto;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius-card);
    box-shadow: 0 24px 48px -16px rgba(18, 32, 47, 0.35);
    padding: 20px; font-size: 15px; line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner a { color: var(--green-dark); }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-btn {
    font: inherit; font-weight: 600; font-size: 15px; flex: 1 1 140px;
    padding: 12px 18px; border-radius: var(--radius); cursor: pointer;
    background: #fff; color: var(--ink); border: 1.5px solid var(--ink);
}
.ck-btn:hover { background: var(--ink); color: #fff; }
.ck-link { font: inherit; background: none; border: 0; padding: 0; color: var(--on-dark); text-decoration: underline; cursor: pointer; }

/* Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .cols2 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured { grid-template-columns: minmax(0, 1fr); }
    .featured__media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
    .featured__media--panel { aspect-ratio: auto; }
    .featured__body { padding: 28px; }
    .hide-m { display: none; }
    .hero { padding-top: 56px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .cards3 { grid-template-columns: minmax(0, 1fr); }
    .gh-content { font-size: 17px; }
    .gh-content table:not(.gist table) { display: block; overflow-x: auto; }
    .article__header { padding-top: 44px; }
    .cta-box { padding: 24px; }
    .page-head__author { flex-direction: column; gap: 18px; }
    .pagination { flex-direction: column; }
    .brand__section { display: none; }
    .site-header .btn--sm { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .post-card, .btn { transition: none; }
    .post-card:hover { transform: none; }
}

@media print {
    .site-header, .site-footer, .subscribe, .cta-band, .cta-box, .related, .cookie-banner { display: none !important; }
    body { background: #fff; }
}
