/* Linkr Tecnología — estilos compartidos para el blog */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --ground: #F4F5F6;
  --surface: #FFFFFF;
  --surface-2: #EAEBEE;
  --ink: #1C2026;
  --ink-soft: #3C424B;
  --muted: #6B7280;
  --hair: #E1E3E7;
  --brand: #2B303A;
  --accent: #C9963C;

  --maxw: 1080px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1114; --surface: #181B1F; --surface-2: #212429;
    --ink: #EEF0F3; --ink-soft: #C6CAD1; --muted: #878C95; --hair: #2A2E33;
    --brand: #E9EBEE; --accent: #D8AB50;
  }
}
:root[data-theme="light"] {
  --ground: #F4F5F6; --surface: #FFFFFF; --surface-2: #EAEBEE;
  --ink: #1C2026; --ink-soft: #3C424B; --muted: #6B7280; --hair: #E1E3E7;
  --brand: #2B303A; --accent: #C9963C;
}
:root[data-theme="dark"] {
  --ground: #0F1114; --surface: #181B1F; --surface-2: #212429;
  --ink: #EEF0F3; --ink-soft: #C6CAD1; --muted: #878C95; --hair: #2A2E33;
  --brand: #E9EBEE; --accent: #D8AB50;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; margin: 0; }
a { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0.85rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; text-decoration: none; color: var(--brand); }
.brand .name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em; color: var(--brand); }
.brand .name::after { content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--brand); opacity: 0.55; }
.brand .kicker { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted); margin-top: 5px; text-align: center; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--ink);
  color: var(--ground) !important; font-weight: 600 !important; font-size: 0.88rem !important;
}
.nav-cta:hover { filter: brightness(1.12); }
.lang-toggle {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem; border-radius: 999px; text-decoration: none;
  color: var(--ink-soft); border: 1px solid var(--hair);
}
.lang-toggle:hover { color: var(--ink); border-color: var(--muted); }
@media (max-width: 720px) { .nav-links .lk { display: none; } }

/* ---- CABECERA DE ARTÍCULO ---- */
.post-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.crumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.2rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.post-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.06; max-width: 20ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 1.3rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tag { display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface); color: var(--accent); }
.lede-p { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; margin: 1.5rem 0 0; }

/* ---- CUERPO DEL ARTÍCULO ---- */
.article { padding-bottom: clamp(3rem, 7vw, 5rem); }
.article-body { max-width: 68ch; }
.article-body h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin: 2.6rem 0 0.8rem; line-height: 1.2; }
.article-body h3 { font-size: 1.1rem; margin: 1.8rem 0 0.5rem; }
.article-body p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.article-body ul, .article-body ol { color: var(--ink-soft); padding-left: 1.3rem; margin: 0 0 1.2rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--ink); }
.article-body blockquote {
  margin: 1.8rem 0; padding: 1rem 0 1rem 1.3rem;
  border-left: 3px solid var(--accent); color: var(--ink);
  font-family: var(--font-serif); font-style: italic; font-size: 1.15rem;
}
.article-body .callout {
  background: var(--surface); border: 1px solid var(--hair); border-radius: 14px;
  padding: 1.2rem 1.3rem; margin: 1.8rem 0;
}
.article-body .callout p { margin: 0; font-size: 0.97rem; }
.article-body .callout strong { display: block; margin-bottom: 0.3rem; }
.table-scroll { overflow-x: auto; margin: 1.6rem 0; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.article-body th, .article-body td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--hair); color: var(--ink-soft); }
.article-body th { color: var(--ink); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- CTA FINAL ---- */
.post-cta {
  margin-top: 3rem; background: var(--ink); color: var(--ground);
  border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.4rem); max-width: 68ch;
}
.post-cta h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin-bottom: 0.6rem; color: var(--ground); }
.post-cta p { color: var(--ground); opacity: 0.82; margin: 0 0 1.2rem; font-size: 0.98rem; }
.post-cta .btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.3rem;
  border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--accent); color: #1C2026; }
.btn-outline { background: transparent; color: var(--ground); border-color: rgba(255,255,255,0.28); }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---- LISTADO DE POSTS ---- */
.blog-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.blog-head .eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.6rem; }
.blog-head .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.blog-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.06; }
.blog-head p { color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; margin: 1rem 0 0; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--hair); border-radius: 18px;
  padding: 1.4rem 1.4rem 1.5rem; text-decoration: none; color: var(--ink);
  transition: transform .18s ease, border-color .18s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.post-card .cat { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.post-card h2, .post-card h3 { font-size: 1.1rem; line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
.post-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; margin: 0; }
.post-card .meta { margin-top: auto; padding-top: 0.6rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* ---- FOOTER ---- */
.foot { padding: 2.4rem 0; border-top: 1px solid var(--hair); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.foot-brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.foot-brand:hover { opacity: 0.65; }
.foot-brand .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.foot-social { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); text-decoration: none; }
.foot-social:hover { color: var(--accent); }
.foot small { color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
