* { box-sizing: border-box; }
:root{
  --bg: #0b0d12;
  --surface: #10131a;
  --card: #141825;
  --text: #e5e7eb;
  --muted: #a6adbb;
  --primary: #7c5cff;
  --primary-600: #6a46ff;
  --ring: rgba(124,92,255,.35);
  --border: #23283a;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
}
html, body { height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 80% -10%, #2b2f45 0%, rgba(43,47,69,0) 60%), var(--bg);
  color: var(--text);
}
.container{ width: min(1100px, 92%); margin: 0 auto; }
.site-header{ display:flex; align-items:center; justify-content:space-between; padding: 28px 0; gap: 16px; }
.brand{ display:flex; align-items:center; gap:14px; }
.avatar{
  width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #00e0ff);
  display:grid; place-items:center; font-weight:800; color:white; letter-spacing:.5px; box-shadow: var(--shadow); overflow: hidden;
}
.avatar img{ width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.title{ font-size: 20px; margin: 0; }
.subtitle{ margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.socials{ display:flex; gap: 10px; }
.social{ color: var(--muted); background: var(--surface); border:1px solid var(--border); padding:10px; border-radius: 12px; display:grid; place-items:center; transition: .2s ease; }
.social:hover{ color:white; transform: translateY(-1px); box-shadow: 0 6px 18px var(--ring); }
.profile-hero{ padding: 24px 0 8px; display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
.profile-portrait{ display:none; width: 180px; height: 180px; border-radius: 999px; overflow: hidden; box-shadow: var(--shadow); border: 2px solid var(--border); background: var(--surface); }
.profile-portrait img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-hero + .hero{ padding-top: 8px; }
.profile-intro{ text-align: left; }
.intro-title{ margin: 0 0 8px; font-size: 26px; letter-spacing: -0.02em; }
.intro-lines{ margin: 0; color: var(--muted); line-height: 1.5; }
.hero{ padding: 24px 0 12px; }

@media (min-width: 768px){
  .profile-hero{ grid-template-columns: 1.2fr auto; }
  .profile-portrait{ display:block; width: 220px; height: 220px; }
  .intro-title{ font-size: 32px; }
  .brand .avatar{ display: none; }
}
.hero .copy h2{ font-size: 32px; margin: 0 0 8px; letter-spacing: -0.02em; }
.hero .copy p{ margin: 0 0 18px; color: var(--muted); }
.cta{ display:flex; gap:10px; }
.btn{ padding: 10px 14px; border-radius: 12px; border:1px solid var(--border); background: var(--surface); color: var(--text); text-decoration:none; font-weight:600; box-shadow: var(--shadow); transition: .2s ease; }
.btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 26px var(--ring); }
.btn.primary{ background: linear-gradient(135deg, var(--primary), var(--primary-600)); border-color: transparent; }
.btn.ghost{ background: transparent; border-color: var(--border); }

.section{ padding: 36px 0; }
.section-title{ margin: 0 0 12px; font-size: 18px; color: var(--muted); }
#proyectos .section-title{ text-align: left; }
#proyectos .grid{ margin-top: 8px; }
#proyectos{ margin-top: 56px; }
@media (min-width: 768px){
  #proyectos{ margin-top: 72px; }
}
#repos-section{ border-top: 1px solid var(--border); }
.grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card{
  grid-column: span 12;
  background: linear-gradient(180deg, rgba(124,92,255,.06), transparent 30%), var(--card);
  border: 1px solid var(--border);
  border-radius: 16px; overflow:hidden; display:flex; flex-direction:column; box-shadow: var(--shadow);
}
.card .thumb{ position:relative; aspect-ratio: 16/9; overflow:hidden; background:#0f1220; }
.card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; filter: saturate(1.05) contrast(1.02); }
.card .body{ padding: 14px; display:flex; flex-direction:column; gap:10px; }
.card h4{ margin: 0; font-size: 18px; letter-spacing:-.01em; }
.card p{ margin: 0; color: var(--muted); font-size: 14px; }
.card .actions{ display:flex; gap:8px; margin-top: 2px; }
.card .chip{ font-size: 12px; color: var(--muted); border:1px solid var(--border); background: var(--surface); padding: 6px 8px; border-radius: 999px; }
.card .btn.small{ padding: 8px 10px; border-radius: 10px; font-size: 14px; }
@media (min-width: 960px){
  #featured .card{ grid-column: span 4; }
  #repos .card{ grid-column: span 4; }
}
.site-footer{ padding: 20px 0 20px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); margin-top: 32px; }
