/* ============================================================
   3l1070r.dev — dark, estructura estilo frauddi-website
   Primario: cian #38BDF8 | Fondo: suave #182335 | Font: Inter
   ============================================================ */

:root {
    /* Primario (cian) */
    --primary: #38BDF8;
    --primary-bright: #7DD3FC;
    --primary-dark: #0EA5E9;
    --primary-tint: rgba(56, 189, 248, 0.10);
    --primary-shadow: rgba(56, 189, 248, 0.25);
    --on-primary: #08131F;

    /* Fondos (tono suave) */
    --bg: #182335;
    --surface: #202D42;
    --surface-2: #28374F;

    /* Texto */
    --text-loud: #EDF2F9;
    --text: #C3CEDD;
    --text-medium: #9DAcC1;
    --text-muted: #8B99AE;

    /* Bordes */
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(148, 163, 184, 0.30);

    /* Tipografía */
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'SF Mono', 'JetBrains Mono', Menlo, Monaco, monospace;

    /* Sombras */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-pop: 0 8px 16px -4px rgba(0, 0, 0, 0.4), 0 4px 8px -4px rgba(0, 0, 0, 0.3);

    /* Radios */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --radius-pill: 99px;

    /* Layout */
    --max-w: 1140px;
    --nav-h: 52px;

    --ease: 0.2s ease;
}

/* — Reset — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body > main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--primary-bright); text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
::selection { background: var(--primary); color: var(--on-primary); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* — Nav — */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(24, 35, 53, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--ease);
}
.nav--scrolled { border-bottom-color: var(--border); }
.nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-h); max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
}
.nav__logo { display: inline-flex; align-items: center; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--text-loud); }
.nav__logo-mark { width: 22px; height: 22px; display: block; flex-shrink: 0; margin-right: 8px; }
.nav__logo em { color: var(--primary); font-style: normal; }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { color: var(--text); font-size: 13.5px; transition: color var(--ease); }
.nav__links a:hover, .nav__links a.active { color: var(--text-loud); }

.lang-switch {
    display: inline-flex; align-items: stretch; border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
    font-family: var(--mono); font-size: 11px; line-height: 1;
}
.lang-switch a, .lang-switch span {
    display: flex; align-items: center; padding: 4px 10px; color: var(--text-muted);
    transition: background var(--ease), color var(--ease);
}
.lang-switch a:hover { background: var(--surface-2); color: var(--text-loud); }
.lang-switch .on { background: var(--primary); color: var(--on-primary); font-weight: 600; }

/* — Hero del listado — */
.blog-top { padding-top: calc(var(--nav-h) + 48px); }
.blog-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--primary-bright);
}
.section-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.blog-head h1 {
    color: var(--text-loud); font-size: 34px; line-height: 1.15;
    letter-spacing: -0.02em; margin: 10px 0 10px; text-wrap: balance;
}
.blog-head .section-sub { color: var(--text-muted); font-size: 15px; max-width: 54ch; margin: 0 auto; }

/* — Toolbar: búsqueda + filtros (métricas frauddi) — */
.blog-toolbar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
    max-width: 920px; margin: 0 auto 20px;
}
.blog-search {
    position: relative; display: flex; align-items: center; flex: 0 1 400px; min-width: 0;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
    transition: border-color var(--ease), box-shadow var(--ease);
}
.blog-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.blog-search input {
    flex: 1; min-width: 0; padding: 6px 10px 6px 12px; border: none; border-radius: var(--radius-sm);
    background: transparent; font-family: inherit; font-size: 12px; color: var(--text);
}
.blog-search input:focus { outline: none; }
.blog-search input::placeholder { color: var(--text-muted); }
.blog-search__icon { display: flex; align-items: center; padding: 0 10px; color: var(--text-muted); flex-shrink: 0; }
.blog-search__icon svg { width: 14px; height: 14px; }

.blog-filter { position: relative; flex-shrink: 0; }
.blog-filter-btn {
    display: flex; align-items: center; gap: 6px; padding: 6px 12px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-size: 12px; font-weight: 500;
    transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.blog-filter-btn svg { width: 14px; height: 14px; }
.blog-filter-btn:hover { background: var(--surface-2); color: var(--text-loud); }
.blog-filter-btn.active { border-color: var(--primary); background: var(--primary-tint); color: var(--primary-bright); }
.blog-filter-btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-left: 2px; }
.blog-filter-menu {
    position: absolute; right: 0; top: 100%; margin-top: 8px; z-index: 50;
    width: 300px; max-width: calc(100vw - 40px);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop); padding: 16px;
}
.blog-filter-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--text-loud); }
.blog-filter-field { margin-bottom: 14px; }
.blog-filter-field label {
    display: block; font-size: 11px; font-weight: 500; color: var(--text-muted);
    margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em;
}
.blog-filter-field select {
    width: 100%; padding: 7px 28px 7px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    font-family: inherit; font-size: 12.5px; color: var(--text); background-color: var(--bg); cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%238B99AE' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
.blog-filter-field select:focus { outline: none; border-color: var(--primary); }
.blog-filter-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
}
.blog-filter-clear {
    background: transparent; border: none; color: var(--primary-bright);
    font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 4px;
}
.blog-filter-clear:hover { text-decoration: underline; }
.blog-filter-apply {
    padding: 6px 16px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
    transition: opacity var(--ease); border: 1px solid var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--on-primary);
}
.blog-filter-apply:hover { opacity: 0.92; }

/* — Chips de filtros activos — */
.blog-chipsbar {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
    margin: 0 auto 16px; max-width: 920px;
}
.blog-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-tint); color: var(--primary-bright);
    border: 1px solid var(--primary-shadow); border-radius: var(--radius-pill);
    padding: 3px 6px 3px 12px; font-size: 12px; font-weight: 500;
}
.blog-chip-close { display: flex; align-items: center; color: inherit; padding: 2px; border-radius: 50%; }
.blog-chip-close svg { width: 12px; height: 12px; }
.blog-chip-close:hover { background: var(--primary-shadow); }
.blog-clearall { color: var(--text-muted); font-size: 12px; padding: 3px 8px; }
.blog-clearall:hover { color: var(--text-loud); text-decoration: underline; }

/* — Top posts — */
.top-posts { max-width: 920px; margin: 0 auto 24px; padding: 0 0; }
.top-posts__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.top-posts__head h2 {
    color: var(--text-loud); font-size: 12.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.top-posts__head span { color: var(--text-muted); font-size: 12px; }
.top-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.top-card {
    display: flex; flex-direction: column; gap: 3px; background: var(--surface);
    border: 1px solid var(--border); border-left: 3px solid var(--primary);
    border-radius: var(--radius-md); padding: 9px 12px;
    transition: border-color var(--ease), transform var(--ease);
}
.top-card:hover { transform: translateY(-2px); border-color: var(--border-strong); border-left-color: var(--primary); }
.top-card .rank { font-family: var(--mono); font-size: 10px; color: var(--primary-bright); }
.top-card .t { color: var(--text-loud); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.top-card .m { color: var(--text-muted); font-size: 11px; }

/* — Grid de cards — */
.blog-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    max-width: 920px; margin: 0 auto;
}
.post-card {
    display: flex; flex-direction: column; gap: 10px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.post-card:hover {
    border-color: var(--primary-shadow); transform: translateY(-2px); box-shadow: var(--shadow-card);
}
.post-card__badge {
    align-self: flex-start; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--primary-bright); background: var(--primary-tint);
    border-radius: var(--radius-pill); padding: 3px 10px;
}
.post-card__title { color: var(--text-loud); font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.post-card__excerpt { font-size: 13px; color: var(--text); line-height: 1.6; flex: 1; }
.post-card__meta { display: flex; gap: 8px; color: var(--text-muted); font-size: 12px; }
.post-card__more { display: inline-flex; gap: 5px; color: var(--primary-bright); font-size: 13px; font-weight: 600; transition: gap var(--ease); }
.post-card:hover .post-card__more { gap: 8px; }

.blog-noresults { text-align: center; color: var(--text-medium); font-size: 14px; padding: 48px 0; }

/* — Proyectos — */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin: 0 auto; }
.project-card {
    display: flex; flex-direction: column; gap: 12px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.project-card:hover { border-color: var(--primary-shadow); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.project-card__title { color: var(--text-loud); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.project-card__desc { color: var(--text); font-size: 13.5px; line-height: 1.6; flex: 1; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-card__tag {
    font-size: 11px; color: var(--text-muted); background: var(--bg);
    border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px 10px;
}
.project-card__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 2px; }
.project-card__links a { color: var(--primary-bright); font-size: 13px; font-weight: 600; }
@media (max-width: 760px) { .project-grid { grid-template-columns: 1fr; } }

/* — Paginación (compacta frauddi) — */
.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 28px 0 8px; }
.blog-pagination button {
    min-width: 28px; height: 28px; padding: 0 6px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12px;
    transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.blog-pagination button:hover:not(:disabled):not(.active) { background: var(--surface-2); color: var(--text-loud); }
.blog-pagination button.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary); color: var(--on-primary); font-weight: 700;
}
.blog-pagination button:disabled { opacity: 0.4; cursor: default; }

/* — Suscripción — */
.subscribe { max-width: 920px; margin: 36px auto; padding: 0 0; }
.subscribe__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.10), rgba(125, 211, 252, 0.05));
    border: 1px solid rgba(56, 189, 248, 0.25); border-radius: 14px; padding: 26px 30px;
}
.subscribe h2 { color: var(--text-loud); font-size: 17px; margin-bottom: 4px; font-weight: 600; }
.subscribe p { color: var(--text-muted); font-size: 13px; max-width: 44ch; }
.subscribe__form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; width: 400px; max-width: 100%; }
.subscribe__form input { order: 1; flex: 1 1 140px; min-width: 0; }
.subscribe__form .subscribe__btn { order: 2; flex: 0 0 auto; }
.subscribe__form .cf-turnstile { order: 3; flex-basis: 100%; }
.subscribe__form input {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 8px 10px; color: var(--text); font-size: 13px; font-family: inherit;
    transition: border-color var(--ease), box-shadow var(--ease); outline: none;
}
.subscribe__form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.subscribe__form input::placeholder { color: var(--text-muted); }
.subscribe__btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--on-primary); border-radius: var(--radius-sm); border: 1px solid var(--primary);
    padding: 8px 18px; font-size: 13px; font-weight: 600; transition: transform var(--ease), box-shadow var(--ease);
}
.subscribe__btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px var(--primary-shadow); }
.subscribe__form .cf-turnstile { margin: 2px 0; }
.subscribe__note { width: 100%; color: var(--primary-bright); font-size: 12.5px; }
.subscribe__note a { text-decoration: underline; }
.subscribe__note--success, .subscribe__note--error {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 11px 14px; border-radius: var(--radius-md);
    font-size: 13px; line-height: 1.5;
}
.subscribe__note--success { background: var(--primary-tint); border: 1px solid var(--primary-shadow); color: var(--text-loud); }
.subscribe__note--error { background: rgba(248, 113, 113, 0.10); border: 1px solid rgba(248, 113, 113, 0.35); color: #FCA5A5; }
.subscribe__note-check {
    flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--primary); color: var(--on-primary);
    font-size: 11px; font-weight: 700;
}

/* — Footer — */
.footer { flex-shrink: 0; border-top: 1px solid var(--border); padding: 22px 0; margin-top: 24px; }
.footer__inner {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer__copy { color: var(--text-muted); font-size: 12.5px; }
.footer__links { display: flex; gap: 16px; }
.footer__links a { color: var(--text-muted); font-size: 12.5px; transition: color var(--ease); }
.footer__links a:hover { color: var(--text-loud); }

/* — Página de post — */
.post-page { padding-top: calc(var(--nav-h) + 48px); }
.post-header { max-width: 660px; margin: 0 auto; padding: 0 20px; }
.post-header .post-card__badge { margin-bottom: 14px; }
.post-header h1 {
    color: var(--text-loud); font-size: 30px; line-height: 1.2;
    letter-spacing: -0.02em; margin-bottom: 12px; text-wrap: balance;
}
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-muted); font-size: 12.5px; margin-bottom: 30px; }

.post-content { max-width: 660px; margin: 0 auto; padding: 0 20px; font-size: 15px; }
.post-content p { margin-bottom: 16px; }
.post-content h2 {
    color: var(--text-loud); font-size: 21px; letter-spacing: -0.01em;
    margin: 32px 0 12px; line-height: 1.3;
}
.post-content h3 { color: var(--text-loud); font-size: 17px; margin: 26px 0 10px; }
.post-content ul, .post-content ol { margin: 0 0 16px 22px; }
/* espaciado igual entre items, tenga o no sub-nota adentro */
.post-content li { margin-bottom: 6px; }
.post-content li > p { margin-bottom: 0; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
    border-left: 3px solid var(--primary); background: var(--surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 12px 18px; margin: 0 0 16px; color: var(--text-medium);
}
.post-content blockquote p:last-child { margin-bottom: 0; }

/* sub-nota dentro de un punto de lista: se ve aparte sin romper el punto */
.post-content li > blockquote { margin: 10px 0 4px; font-size: .95rem; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.post-content strong { color: var(--text-loud); }
.post-content figure.post-figure { margin: 22px 0; }
.post-content .post-figure img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-md); display: block; }
.post-content .post-figure figcaption { margin-top: 8px; font-size: 12.5px; color: var(--text-muted); text-align: center; }
/* graficos hechos en svg dentro del post */
.post-content .post-figure svg { width: 100%; height: auto; display: block; }
.post-content .post-figure--chart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 14px 12px; }
.post-content .post-figure--chart figcaption { margin-top: 12px; }
/* credito de fuente en letra chica, pegado a la cita de arriba */
.post-content .post-source { margin: -8px 0 16px; font-size: 12.5px; color: var(--text-muted); }
.post-content img { cursor: zoom-in; }

/* — Lightbox — */
.lightbox {
    position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
    background: rgba(5, 9, 18, 0.92); padding: 24px; cursor: zoom-out;
    opacity: 0; transition: opacity 0.2s ease;
}
.lightbox.open { opacity: 1; }
.lightbox img {
    max-width: 96%; max-height: 92%; border-radius: var(--radius-md);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }
.post-content a { text-decoration: underline; text-underline-offset: 2px; }
.post-content code {
    font-family: var(--mono); font-size: 0.86em; color: var(--primary-bright);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 4px; padding: 1px 6px;
}
.post-content pre {
    background: #131C2B; border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 16px 18px; margin: 0 0 16px; overflow-x: auto;
}
.post-content pre code { background: none; border: none; padding: 0; color: var(--text); font-size: 12.5px; line-height: 1.55; }
.post-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 13.5px; display: block; overflow-x: auto; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.post-content th { color: var(--text-loud); background: var(--surface); }

/* — Reacciones — */
.reactions {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    max-width: 660px; margin: 36px auto 0; padding: 16px 20px 0;
    border-top: 1px solid var(--border);
}
.reactions__label {
    width: 130px; flex-shrink: 0; white-space: nowrap;
    font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted);
}
.reactions__list { display: flex; flex-wrap: wrap; gap: 8px; }
.reaction {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 6px 13px; background: var(--surface); cursor: pointer;
    transition: border-color var(--ease), transform var(--ease), background var(--ease);
}
.reaction:hover { border-color: var(--primary-shadow); transform: translateY(-1px); }
.reaction.reacted { border-color: var(--primary); background: var(--primary-tint); }
.reaction__emoji { font-size: 15px; line-height: 1; }
.reaction__count { font-size: 12.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* — Discutir — */
.post-discuss {
    max-width: 660px; margin: 16px auto 0; padding: 0 20px;
    font-size: 12.5px; color: var(--text-muted);
}
.post-discuss a { color: var(--primary-bright); }

/* — Compartir — */
.post-share {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    max-width: 660px; margin: 28px auto 0; padding: 0 20px;
}
.post-share__lbl {
    width: 130px; flex-shrink: 0; white-space: nowrap;
    font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted);
}
.post-share button, .post-share a {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 110px; line-height: 1;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 8px 12px; font-size: 12px; font-weight: 500; color: var(--text); background: var(--surface);
    transition: border-color var(--ease), color var(--ease);
}
.post-share button:hover, .post-share a:hover { border-color: var(--primary-shadow); color: var(--text-loud); }

/* — Anterior / siguiente — */
.post-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    max-width: 660px; margin: 26px auto 0; padding: 0 20px;
}
.post-nav__card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 14px 16px; font-size: 12.5px; transition: border-color var(--ease);
}
.post-nav__card:hover { border-color: var(--primary-shadow); }
.post-nav__card--next { text-align: right; }
.post-nav__lbl {
    display: block; color: var(--text-muted); font-size: 10.5px; font-family: var(--mono);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.post-nav__title { display: block; color: var(--text-loud); font-weight: 600; margin-top: 4px; font-size: 13px; }
.post-nav__spacer { visibility: hidden; }

/* — Acerca de — */
.about-page { padding-top: calc(var(--nav-h) + 56px); }
.about-card { max-width: 660px; margin: 0 auto; padding: 0 20px 40px; text-align: center; }
.about-card__avatar {
    width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 18px;
    border: 2px solid rgba(56, 189, 248, 0.4); object-fit: cover;
    cursor: zoom-in; transition: border-color var(--ease), transform var(--ease);
}
.about-card__avatar:hover { border-color: var(--primary); transform: scale(1.03); }
.about-card h1 { color: var(--text-loud); font-size: 27px; letter-spacing: -0.02em; }
.about-card__role { color: var(--primary-bright); font-size: 13.5px; font-family: var(--mono); margin: 8px 0 16px; }
.about-card__bio { color: var(--text); font-size: 15px; max-width: 52ch; margin: 0 auto 22px; }
.about-card__links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.about-card__links a {
    border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 6px 16px;
    font-size: 12.5px; color: var(--text); background: var(--surface);
    transition: border-color var(--ease), color var(--ease);
}
.about-card__links a:hover { border-color: var(--primary-shadow); color: var(--text-loud); }

/* — Responsive — */
@media (max-width: 760px) {
    .blog-grid, .top-posts__grid, .post-nav { grid-template-columns: 1fr; }
    .blog-head h1 { font-size: 27px; }
    .post-header h1 { font-size: 25px; }
    .subscribe__inner { flex-direction: column; align-items: flex-start; }
    .nav__links { gap: 14px; }
    .nav__links a { font-size: 13px; }
}

/* Phones: the one-row nav runs out of width, so stack it into two tidy
   rows (logo on top, links + language centred below) and push the page
   content down to clear the now-taller fixed nav. */
@media (max-width: 560px) {
    .container { padding: 0 16px; }

    .nav__inner {
        flex-direction: column; height: auto; gap: 6px;
        padding: 9px 16px;
    }
    .nav__logo { font-size: 16px; }
    .nav__links {
        width: 100%; justify-content: center; flex-wrap: wrap; gap: 16px;
    }
    .nav__links a { font-size: 13px; }

    .blog-top, .post-page { padding-top: 108px; }
    .about-page { padding-top: 116px; }

    .blog-head h1 { font-size: 24px; }
    .blog-head .section-sub { font-size: 14px; }
    .post-header h1 { font-size: 22px; }

    /* Fixed-width labels crowd the row on narrow screens; let them sit on
       their own line above the buttons. */
    .reactions__label, .post-share__lbl { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
