/* Estilos base del CV */
:root {
  --bg: #0f1420;
  --card: #141b2a;
  --text: #f2f5f7;
  --border: rgba(255,255,255,0.12);
  --muted: rgba(255,255,255,0.75);
  --accent: #7c3aed;
  --accent-2: #22d3ee;
}

* { box-sizing: border-box; }
html, body { 
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  height: 100%; 
}
body {
  margin: 0;
  font-family: inherit;
  background: radial-gradient(1200px 800px at 50% -200px, rgba(124,58,237,0.25), transparent 60%),
              linear-gradient(180deg, #0c1224, #0a101d 40%, #090f1a);
  color: var(--text);
}

header {
  position: sticky;
  top: 0;
  background: rgba(12,18,36,0.55);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
nav {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}
nav a:hover { border-color: var(--border); background: rgba(255,255,255,0.06); color: var(--text); }

main {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px 48px;
}

.hero {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 20px;
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
}
.title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}
.subtitle { margin: 4px 0 0; color: var(--muted); font-weight: 500; }

.grid {
  display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 16px;
}
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.card h2 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.card h3 { margin: 10px 0 4px; font-size: 15px; font-weight: 600; }
.card p {
  color: var(--muted);
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  line-height: 1.6;
}
.card ul {
  margin: 8px 0 0;
  padding-left: 22px;
  list-style-position: outside;
}
.card li {
  color: var(--muted);
  margin: 6px 0;               /* más aire entre bullets */
  line-height: 1.6;            /* igual que párrafos para consistencia */
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
}

/* Footer */
footer {
  margin-top: 24px;
  padding: 16px 8px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer .container a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dotted rgba(34,211,238,0.35);
}
footer .container a:hover {
  color: #b2f3fb;
  border-bottom-color: var(--accent-2);
}

.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(34,211,238,0.18));
  color: var(--text); text-decoration: none;
}
.cta:hover { filter: brightness(1.08); }

/* Tira de iconos de tecnologías */
.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.tech-icons img {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  will-change: auto;
  transform: translateZ(0);
}

main a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dotted rgba(34,211,238,0.45);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
main a:hover {
  color: #b2f3fb;
  border-bottom-color: var(--accent-2);
  background-color: rgba(34,211,238,0.08);
  border-radius: 6px;
}
