:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --accent: #1d4ed8;
  --accent-soft: #dbeafe;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; letter-spacing: -0.01em; }
.brand-text small { font-size: 12px; color: var(--muted); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.nav a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(900px 420px at 85% -10%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, #fff, var(--bg-alt));
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 400;
}

.lead {
  margin: 0;
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .6);
}

.btn-primary:hover { background: #1e293b; }

.btn-ghost {
  border-color: #cbd5e1;
  color: var(--ink-soft);
  background: #fff;
}

.btn-ghost:hover { border-color: var(--ink-soft); }

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: 0 20px 45px -32px rgba(15, 23, 42, .45);
}

.hero-card h2 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.hero-card li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); border-bottom: 0; }
.section-dark .section-title { color: #fff; }

.section-title {
  margin: 0 0 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-dark .section-title { border-bottom-color: #1e293b; }

.sub-title {
  margin: 52px 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.grid-2 p { margin: 0; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 42px 30px;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px #fff;
}

.timeline-meta {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline h3,
.exp h3 {
  margin: 0 0 4px;
  font-size: 1.09rem;
  font-weight: 600;
  letter-spacing: -0.008em;
}

.org { margin: 0; font-size: 14px; color: var(--accent); font-weight: 500; }
.work { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -30px rgba(15, 23, 42, .6);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Publications ---------- */
.pub {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 18px;
}

.pub-kind {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pub h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.4;
  font-weight: 600;
}

.pub-authors { margin: 0 0 6px; font-size: 14px; color: var(--ink-soft); }
.pub-venue { margin: 0 0 10px; font-size: 14px; font-style: italic; color: var(--muted); }
.pub-tags { margin: 0; font-size: 12.5px; color: var(--muted); letter-spacing: 0.01em; }

/* ---------- Experience ---------- */
.exp p { margin: 0 0 6px; font-size: 14.5px; color: var(--ink-soft); }
.exp h3 { margin-bottom: 4px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.perfil-nota {
  margin: 30px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.cobbler-lead {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--ink);
  border: 0;
}

/* ---------- Contact ---------- */
.contacto p { color: #cbd5e1; margin: 0 0 10px; }
.contacto a { color: #93c5fd; text-decoration: none; border-bottom: 1px solid rgba(147, 197, 253, .4); }
.contacto a:hover { color: #bfdbfe; }
.contact-line { font-size: 15px; }
.muted { color: var(--muted); font-size: 13.5px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 26px 0 34px;
  background: var(--ink);
  color: #94a3b8;
  font-size: 13px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.site-footer p { margin: 0; }
.site-footer .muted { color: #64748b; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
  .nav { gap: 16px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
}

@media (max-width: 520px) {
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
  .hero-card { padding: 22px; }
  .pub { padding: 22px; }
}