/* ==========================================================================
   Landing jdjaramillo.dev — v1
   Minimalista. Single-page. Mobile-first. Dark mode automático.
   ========================================================================== */

:root {
  --max-width: 760px;
  --gutter: 1.25rem;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Light theme */
  --bg: #ffffff;
  --bg-elev: #f7f7f8;
  --text: #111111;
  --text-muted: #5a5a60;
  --rule: #e5e5e8;
  --accent: #0b6bcb;
  --accent-contrast: #ffffff;
  --badge-bg: #f0eef9;
  --badge-text: #4a3fb0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d10;
    --bg-elev: #15171c;
    --text: #ececee;
    --text-muted: #9a9ba2;
    --rule: #25272d;
    --accent: #6aa9ff;
    --accent-contrast: #0c0d10;
    --badge-bg: #1d1c2c;
    --badge-text: #b6acff;
  }
}

/* Reset ligero */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover, a:focus-visible { border-bottom-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: .5rem .75rem;
  z-index: 100;
}
.skip-link:focus { left: var(--gutter); top: var(--gutter); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
  z-index: 10;
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: .75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  border: none;
  letter-spacing: .04em;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .92rem;
}
.nav-list a {
  color: var(--text-muted);
  border: none;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--text); }

@media (max-width: 540px) {
  .nav-list { display: none; }
}

/* Layout sections */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}
.hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 0 1.5rem;
  border: 2px solid var(--rule);
}
.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}
.section:last-of-type { border-bottom: none; }

/* Typography */
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw + 1rem, 3rem); letter-spacing: -.02em; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.05rem; margin-bottom: .25rem; }
p  { margin: 0 0 1rem; }

.kicker {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 .75rem;
}
.tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}
.lede { font-size: 1.05rem; max-width: 60ch; }
.muted { color: var(--text-muted); }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.btn {
  display: inline-block;
  padding: .65rem 1.1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(1.05); border-bottom-color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--bg-elev); border-bottom-color: var(--rule); }

/* Skillset grid */
.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem 1.75rem;
}
.skills li { padding: 0; }
.skills h3 { font-size: 1rem; }
.skills p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* Industrial list */
.industrial-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.industrial-list li {
  border-left: 2px solid var(--rule);
  padding: .15rem 0 .15rem 1rem;
}
.industrial-list strong { display: block; margin-bottom: .15rem; }

.certs-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: .65rem;
}
.certs-list li {
  border-left: 2px solid var(--rule);
  padding: .15rem 0 .15rem 1rem;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: .18rem .5rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: .5rem;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  gap: .5rem;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem var(--gutter);
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--text-muted); border: none; }
.footer-links a:hover { color: var(--text); }

/* Reveal on scroll (progressive enhancement) */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 480ms ease, transform 480ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
