:root {
  --bg: #0e0e0d;
  --surface: #171716;
  --surface-2: #1d1d1b;
  --ink: #f1efe9;
  --muted: #a29f97;
  --line: #2b2a27;
  --accent: #ff6a3d;
  --accent-ink: #140b07;
  --accent-soft: rgba(255,106,61,.12);
  --ok: #3ccf7d;
  --code-bg: #0a0a09;
  --code-ink: #e9e7e0;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --radius: 14px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-mono); font-weight: 500; font-size: 15px; }
.logo img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.logo b { color: var(--accent); font-weight: 500; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: 500 15px/1 var(--font-body); padding: 13px 18px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform .15s, border-color .15s, background .15s;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { border-color: var(--accent); filter: brightness(1.05); }
.btn-sm { padding: 9px 13px; font-size: 14px; border-radius: 9px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .9fr; gap: 64px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-mono);
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
}
.pill svg { width: 14px; height: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(44px, 7vw, 82px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 span { color: var(--accent); }
.role { font-family: var(--font-mono); font-size: clamp(14px, 1.6vw, 17px); color: var(--muted); margin: 18px 0 28px; }
.role b { color: var(--ink); font-weight: 500; }
.bio { display: grid; gap: 14px; font-size: 17px; color: var(--muted); max-width: 60ch; }
.bio strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.socials { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-decoration: none; }
.socials a:hover { color: var(--ink); }
.socials svg { width: 17px; height: 17px; }

.portrait { position: relative; justify-self: end; width: 100%; max-width: 420px; }
.portrait::before {
  content: ""; position: absolute; inset: 0; transform: translate(14px, 14px);
  border: 1.5px solid var(--accent); border-radius: 22px;
}
.portrait img {
  position: relative; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px;
  background: var(--surface-2); filter: grayscale(1) contrast(1.04);
}

/* ---------- facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 26px 24px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font: 700 30px/1 var(--font-display); letter-spacing: -0.02em; margin-bottom: 8px; }
.facts span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- sections ---------- */
section.block { padding: 104px 0 0; }
.eyebrow { font: 500 13px/1 var(--font-mono); color: var(--accent); letter-spacing: .04em; margin-bottom: 14px; display: block; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; }
.section-head p { color: var(--muted); max-width: 42ch; }

/* skills */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.card-icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 22px; font-weight: 700; }
.card p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { font: 400 12.5px/1 var(--font-mono); padding: 7px 10px; border-radius: 7px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }

/* experience */
.timeline { position: relative; display: grid; gap: 0; }
.job { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 34px 0; border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job h2, .job h3 { font-size: 24px; font-weight: 700; }
.job .where { color: var(--muted); margin: 6px 0 16px; font-size: 15px; }
.job .where b { color: var(--ink); font-weight: 600; }
.job ul.points { display: grid; gap: 9px; }
.job ul.points li { position: relative; padding-left: 22px; color: var(--muted); }
.job ul.points li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 2px; background: var(--accent); }
.job ul.points li strong { color: var(--ink); font-weight: 600; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.project-media { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project-media img { transform: scale(1.03); }
.status {
  position: absolute; top: 14px; left: 14px; font: 500 11.5px/1 var(--font-mono); padding: 7px 10px; border-radius: 7px;
  background: rgba(10,10,9,.78); color: #f1efe9; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 7px;
}
.status .dot { width: 7px; height: 7px; animation: none; }
.status.wip .dot { background: #f5b83d; }
.code-art {
  width: 100%; height: 100%; background: var(--code-bg); color: var(--code-ink);
  font: 400 13px/1.75 var(--font-mono); padding: 52px 26px 22px; white-space: pre; overflow: hidden;
}
.code-art .k { color: #ff8a5c; } .code-art .s { color: #9fd8a8; } .code-art .c { color: #75736c; } .code-art .n { color: #8fb8ff; }
.project-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.project-body .kicker { font: 400 12.5px/1 var(--font-mono); color: var(--muted); margin-bottom: 10px; }
.project h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { color: var(--accent); }
.project .tags { margin-top: 16px; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.project-links .muted { font: 400 13px/1.4 var(--font-mono); color: var(--muted); }

/* education */
.edu-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.edu-list { display: grid; }
.edu-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.edu-item:first-child { border-top: 0; padding-top: 4px; }
.edu-item h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.edu-item .sub { grid-column: 1; color: var(--muted); font-size: 14.5px; }
.edu-item .desc { grid-column: 1; color: var(--ink); opacity: .82; font-size: 15px; line-height: 1.55; margin-top: 4px; }
.edu-item .when { grid-column: 2; grid-row: 1 / span 3; font: 400 13px/1.5 var(--font-mono); color: var(--muted); text-align: right; white-space: nowrap; }
.edu-item .when .now { color: var(--accent); }
.side-stack { display: grid; gap: 16px; align-content: start; }
.side-stack h3 { font-size: 20px; margin-bottom: 14px; }
.langs { display: grid; gap: 12px; }
.lang { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 15px; }
.lang span:last-child { font: 400 13px/1.6 var(--font-mono); color: var(--muted); }
.bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.extra { display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.extra li { display: flex; gap: 10px; align-items: flex-start; }
.extra svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }

/* contact */
.contact { padding: 120px 0 96px; }
.contact-box {
  background: var(--code-bg); color: var(--code-ink); border-radius: 24px; padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.contact-box::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,84,27,.35), transparent 70%); pointer-events: none;
}
.contact-box .eyebrow { color: #ff8a5c; }
.contact-box h2 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.035em; color: #f6f5f1; }
.contact-box p { color: #a9a69e; margin-top: 16px; max-width: 40ch; }
.contact-links { display: grid; gap: 10px; position: relative; z-index: 1; }
.contact-link {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 13px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); color: #f1efe9; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.contact-link:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.contact-link > svg { width: 20px; height: 20px; color: #ff8a5c; flex: none; }
.contact-link div { min-width: 0; flex: 1; }
.contact-link div a { text-decoration: none; }
.contact-link > svg.ext { width: 16px; height: 16px; color: #8d8a82; }
.contact-link small { display: block; font: 400 12px/1.3 var(--font-mono); color: #8d8a82; }
.contact-link span { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  font: 500 12.5px/1 var(--font-mono); padding: 8px 11px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16); background: transparent; color: #f1efe9; flex: none;
}
.copy-btn:hover { background: rgba(255,255,255,.08); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.to-top { background: none; border: 0; padding: 0; color: inherit; font-size: 14px; cursor: pointer; }
.to-top:hover { color: var(--ink); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  * { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; padding: 8px 16px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 16px; border-radius: 8px; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .portrait { justify-self: start; max-width: 360px; order: -1; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .job { grid-template-columns: 1fr; gap: 12px; }
  .projects { grid-template-columns: 1fr; max-width: 560px; }
  .edu-grid, .contact-box { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 44px; }
  .portrait { max-width: 260px; }
  .portrait::before { transform: translate(10px, 10px); }
  .bio { font-size: 16px; }
  .skills, .projects { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .project-body { padding: 22px; }
  section.block { padding-top: 80px; }
  .facts li { padding: 20px 14px; }
  .facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts b { font-size: 24px; }
  .header-cv span { display: none; }
  .header-cv { padding: 0; width: 38px; height: 38px; justify-content: center; }
  .edu-item { grid-template-columns: 1fr; }
  .edu-item .when { grid-column: 1; grid-row: auto; text-align: left; }
  .contact { padding: 88px 0 64px; }
  .contact-box { border-radius: 18px; }
  .code-art { font-size: 12px; padding: 48px 18px 18px; }
}

/* ======================================================================
   Páginas propias (proyectos, blog, sobre mí…) — añadido con el gestor
   ====================================================================== */
.wrap-narrow { max-width: 820px; }
.block-tight { padding-top: 8px; }
.empty { color: var(--muted); }

/* cabecera de página */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
.page-head > .wrap > p { color: var(--muted); font-size: 18px; max-width: 58ch; margin-top: 18px; }
.page-head .cta { margin-top: 28px; }

/* sobre mí */
.about-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 64px; align-items: center; }
.about-head h1 { font-size: clamp(40px, 5.6vw, 66px); }
.about-head .role { margin: 16px 0 26px; }

/* bio con markdown: los <p> salen de md() */
.prose-lite p { margin: 0; }

/* ficha de proyecto y artículo */
.detail-head { padding: 56px 0 36px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 34px; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }
.detail-head .eyebrow { margin-bottom: 16px; }
.detail-head h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.03em; }
.detail-head .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin-top: 18px; line-height: 1.6; }
.detail-head .tags { margin-top: 22px; }
.detail-head .cta { margin-top: 26px; }
.detail-cover { margin: 0 0 44px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.detail-cover img { width: 100%; height: auto; }
.detail-cover .code-art { padding: 28px; min-height: 220px; }
.post-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

/* texto largo (markdown) */
.prose { font-size: 17.5px; line-height: 1.75; color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(26px, 3.2vw, 32px); font-weight: 700; margin-top: 1.9em; color: var(--ink); }
.prose h3 { font-size: 22px; font-weight: 700; margin-top: 1.6em; color: var(--ink); }
.prose h4 { font-size: 18px; font-weight: 700; margin-top: 1.4em; color: var(--ink); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 0; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 24px; list-style: none; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 9px; height: 2px; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 34px; list-style: none; counter-increment: n; }
.prose ol li::before { content: counter(n) "."; position: absolute; left: 0; font: 500 15px/1.75 var(--font-mono); color: var(--accent); }
.prose code { font: 400 .88em var(--font-mono); background: var(--surface-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 14px; line-height: 1.7; color: var(--code-ink); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose img { border-radius: 12px; border: 1px solid var(--line); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 10px; }

.post-end { display: flex; align-items: center; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-end img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.post-end div { flex: 1; min-width: 0; }
.post-end p { color: var(--muted); font-size: 14px; }
.post-end p b { color: var(--ink); font-size: 16px; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-cover img { transform: scale(1.03); }
.post-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.read-more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; font-weight: 500; font-size: 15px; }
.read-more svg { width: 16px; height: 16px; transition: transform .15s; }
.read-more:hover svg { transform: translateX(3px); }
.empty-card { padding: 44px; display: grid; gap: 14px; justify-items: start; }
.empty-card .mono { color: var(--accent); font-size: 14px; }
.empty-card p:not(.mono) { color: var(--muted); max-width: 52ch; }

.not-found { padding: 120px 0 140px; }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid .portrait { order: -1; }
  .posts { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 720px) {
  .page-head { padding: 40px 0 28px; }
  .detail-head { padding: 32px 0 26px; }
  .back { margin-bottom: 24px; }
  .prose { font-size: 16.5px; }
  .post-end { flex-wrap: wrap; }
  .empty-card { padding: 26px; }
  .not-found { padding: 72px 0 96px; }
}

/* experiencia: logo + puesto, fechas y empresa */
.job { grid-template-columns: 120px minmax(0, 1fr); gap: 28px; padding: 32px 0; align-items: start; }
.job-logo { width: 120px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; padding: 6px 12px; box-shadow: 0 0 0 1px var(--line); }
.job-logo { overflow: hidden; }
.job-logo img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.job-logo span { font: 700 18px/1 var(--font-display); color: #141413; }
.job-text h3 { font-size: 22px; }
.job-meta { color: var(--muted); font-size: 13px; margin-top: 8px; }
.job .where { margin: 4px 0 18px; font-size: 15px; color: var(--muted); }
.job .where:last-child { margin-bottom: 0; }
.job .points { gap: 10px; }
.job .points li { font-size: 15.5px; }
.job .tags { margin-top: 18px; }
@media (max-width: 980px) {
  .job { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .job { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .job-logo { width: 104px; height: 48px; padding: 5px 10px; }
  .job-text h3 { font-size: 20px; }
}

/* pie: ubicación, RSS y volver arriba */
footer .wrap { align-items: center; }
.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links > * { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links svg { width: 15px; height: 15px; }
.footer-links a:hover, .footer-links .to-top:hover { color: var(--ink); }
.to-top { font-family: var(--font-body); }
@media (max-width: 600px) {
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { gap: 18px; }
}
