/* Fuentes alojadas en el propio sitio (antes Google Fonts). Variables, licencia OFL:
   ver assets/fonts/OFL-*.txt */
/* IBM Plex Sans — latin-ext (variable) */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Sans — latin (variable) */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — latin-ext (variable) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono — latin (variable) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
  Hola. Gracias por leer el CSS en vez de quedarte solo con el resultado.
  Es una hoja de estilos escrita a mano: variables CSS nativas, un poco
  de grid y flexbox, y ninguna dependencia. Si algo aquí te parece
  mejorable, con gusto lo comento en LinkedIn:
  https://www.linkedin.com/in/crespomanuel/

  Dark graphite/steel is the brand default (matches the LinkedIn cover).
  Light mode is an accommodation for readers whose system prefers it.
*/
:root {
  --bg: #11151b;
  --bg-alt: #161b22;
  --surface: #1b212a;
  --border: #2a323c;
  --text: #f1efe9;
  --text-dim: #99a6b3;
  --text-faint: #6c7883;
  --amber: #e2a33f;
  --amber-ink: #171008;
  --ok: #4caf7d;
  --max-width: 780px;
  --max-width-wide: 1040px;
  --radius: 6px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f4f6;
    --bg-alt: #e7ebee;
    --surface: #ffffff;
    --border: #d7dde2;
    --text: #161b20;
    --text-dim: #4c5964;
    --text-faint: #71808c;
    --amber: #a3691b;
    --amber-ink: #fff8ec;
    --ok: #2f8f5e;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text);
  margin: 0 0 .5em;
  text-wrap: balance;
  font-weight: 600;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

a { color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  flex-shrink: 0;
}

.wordmark::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--amber);
  flex-shrink: 0;
}

.main-nav { display: flex; gap: 28px; }

.main-nav a {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  text-decoration: none;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: color .15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--amber); }

.header-cta { flex-shrink: 0; padding: 8px 18px; font-size: .86rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }

.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--text); color: var(--bg); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover,
.btn-outline:focus-visible { border-color: var(--amber); color: var(--amber); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  padding: 8px 16px;
  font-size: .86rem;
}
.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--amber); color: var(--amber); }

/* Hero */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--border); }

.byline {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  color: var(--text-faint);
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  line-height: 1.18;
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: .45em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 0 20px;
}

.hero-subtitle strong { color: var(--text); font-weight: 600; }

.hero-lead {
  max-width: 60ch;
  color: var(--text-dim);
  margin: 0 0 32px;
  font-size: 1rem;
}

.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  color: var(--text-dim);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}

/* Sections */
.section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--text-faint);
  margin: 0 0 14px;
  display: block;
}

h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); max-width: 34ch; }

.section-subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 0 32px;
}

/* Differentiators */
.diff-list {
  margin-top: 32px;
  display: grid;
  gap: 14px;
  max-width: var(--max-width-wide);
}

.diff-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: .98rem;
  color: var(--text-dim);
}

.diff-item:last-child { border-bottom: 1px solid var(--border); }

.diff-index {
  font-family: 'JetBrains Mono', monospace;
  color: var(--amber);
  font-size: .85rem;
  flex-shrink: 0;
  padding-top: .15em;
}

.diff-item strong { color: var(--text); font-weight: 600; }

/* Inline CTA */
.inline-cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .95rem;
  color: var(--text-dim);
}

.inline-cta a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}

.inline-cta a:hover,
.inline-cta a:focus-visible { border-bottom-color: var(--amber); }

/* Stack */
.stack-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.stack-group {
  background: var(--bg);
  padding: 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stack-label {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .74rem;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.stack-items { display: flex; flex-direction: column; gap: 7px; }

.stack-items li { font-size: .93rem; color: var(--text-dim); }

/* CTA */
.cta-section { text-align: left; }
.cta-inner p {
  color: var(--text-dim);
  margin: 0 0 28px;
  font-size: 1.02rem;
  max-width: var(--max-width);
}

/* Footer */
.site-footer { color: var(--text-faint); font-size: .85rem; }

.footer-inner {
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-faint);
  transition: color .15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--amber); }

.footer-links svg { width: 15px; height: 15px; fill: currentColor; }

/* Responsive */
@media (max-width: 720px) {
  .main-nav { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 52px 0 48px; }
  .section { padding: 48px 0; }
  .header-cta span { display: none; }
}
