/* ── Variables ── */
:root {
  --bg: #f5f4f0;
  --card: #ffffff;
  --border: #d1cec8;
  --text: #1a1a1a;
  --text-soft: #6b6760;
  --accent: #2d2d2d;
  --chip-bg: #ececea;
  --chip-text: #3a3a3a;
  --cta-bg: #1a1a1a;
  --cta-text: #ffffff;
  --radius: 18px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-image: url('Asetts/sao.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

/* ── Navbar ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.cta {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cta-text);
  background: var(--cta-bg);
  text-decoration: none;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  transition: opacity 0.2s;
}
.cta:hover { opacity: 0.75; }

/* ── Main ── */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ── Hero Card ── */
.hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* ── Foto ── */
.foto-wrap {
  flex-shrink: 0;
}

.foto-real {
  width: 140px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
}

/* ── Info ── */
.hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.nombre {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.carrera {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  display: inline-block;
  width: fit-content;
}

.rol {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.objetivo {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 480px;
}

/* ── Chips de tecnologías ── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 400;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Proyectos ── */
.proyectos {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.proyecto-link {
  font-size: 0.85rem;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  transition: background 0.15s;
}
.proyecto-link:hover { background: rgba(255, 255, 255, 0.2); }

/* ── Hobbies ── */
.hobbies {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Badge escudo ── */
.badge-wrap {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.badge-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0.9;
  border-radius: 8px;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
footer a { color: #ffffff; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-card { flex-direction: column; }
  .foto-real { width: 100%; height: 180px; }
}