:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #14140f;
  --muted: #6a6a60;
  --line: #e5e1d8;
  --accent: #4b32c3;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.site-header ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-header ul a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.site-header ul a:hover { color: var(--ink); }

main { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

section { padding: 4rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 2rem; }
h3 { font-size: 1.05rem; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 5rem;
}
.portrait {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.headline { font-size: clamp(1.1rem, 2.4vw, 1.45rem); margin: 1rem 0 1.25rem; }
.summary { color: var(--muted); max-width: 60ch; margin: 0 0 1rem; }
.location { color: var(--muted); font-size: 0.9rem; margin: 0; }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; font-weight: 600; }
.card-head a { color: var(--ink); text-decoration: none; }
.card-head a:hover { text-decoration: underline; }
.year { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.card p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.95rem; }

.activities { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.activity { display: grid; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px dashed var(--line); }
.activity:last-child { border-bottom: 0; padding-bottom: 0; }
.activity p { margin: 0.4rem 0 0; color: var(--muted); }

.metric { display: flex; flex-direction: column; gap: 0.15rem; margin: 0; }
.metric-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.metric-value { font-size: 1.15rem; font-weight: 650; color: var(--ink); }

.section-note { margin: -1rem 0 1.5rem; color: var(--muted); font-size: 0.95rem; max-width: 62ch; }
.see-all { white-space: nowrap; }
.embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.embed iframe {
  display: block;
  width: 100%;
  height: min(70vh, 600px);
  border: 0;
}

#contacto p { margin: 0 0 0.5rem; font-size: 1.05rem; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 0 0 0.4rem; }
.generated { opacity: 0.75; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 320px 1fr; gap: 3.5rem; }
  .activity { grid-template-columns: 1fr auto; align-items: start; }
  .metric { text-align: right; min-width: 12rem; }
}
