/* ======================================================
   Codigo Latino NZ — Demo Candidate Site
   Clean, modern, recruiter-friendly
   ====================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --bg-banner: #fef6e4;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --accent: #0891b2;        /* CL cyan */
  --accent-2: #7c3aed;      /* CL purple */
  --accent-3: #ea7a1f;      /* CL orange */
  --accent-soft: #ecfeff;

  --max-w: 1100px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.04), 0 10px 25px rgba(15, 23, 42, 0.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); }

ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============== Demo banner ============== */
.demo-banner {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
}
.demo-banner a { color: #fff; text-decoration: underline; font-weight: 600; }

/* ============== Nav ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-weight: 700; font-size: 16px; color: var(--text);
}
.nav nav { display: flex; gap: 28px; }
.nav nav a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
}
.nav nav a:hover { color: var(--text); }
@media (max-width: 720px) {
  .nav nav { gap: 16px; font-size: 13px; }
  .nav nav a:nth-child(n+4) { display: none; }
}

/* ============== Hero ============== */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(124, 58, 237, 0.08), transparent 60%),
    radial-gradient(60% 80% at 0% 0%, rgba(8, 145, 178, 0.10), transparent 60%);
}
.hero__eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 8px;
}
.hero__name {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.hero__location, .hero__visa {
  color: var(--text-muted);
  font-size: 15px;
}
.hero__visa {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: #0e7490;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 32px;
}
.hero__socials {
  display: flex; gap: 20px; margin-top: 24px;
  font-size: 14px; font-weight: 500;
}
.dot { margin: 0 6px; opacity: .5; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--text); color: var(--text); }

/* ============== Sections ============== */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section__lead {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 16px;
  max-width: 640px;
}

/* ============== About ============== */
.about__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 24px;
}
.about__text p { margin-bottom: 16px; color: var(--text); }
.about__quick {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.about__quick h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.about__quick li { padding: 6px 0; font-size: 15px; }
@media (max-width: 720px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ============== Skills ============== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.skills__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.skills__card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}
.tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tags li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.tags--small li { font-size: 12px; padding: 3px 10px; }
@media (max-width: 720px) {
  .skills__grid { grid-template-columns: 1fr; }
}

/* ============== Projects ============== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.project-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.project-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.project-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
}
.project-card__links {
  display: flex; gap: 16px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .projects__grid { grid-template-columns: 1fr; }
}

/* ============== Timeline ============== */
.timeline {
  list-style: none;
  border-left: 2px solid var(--border);
  padding-left: 24px;
  margin-top: 24px;
}
.timeline__item {
  position: relative;
  padding-bottom: 28px;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline__date {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.timeline__item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.timeline__item .muted {
  color: var(--text-muted);
  font-weight: 400;
}
.timeline__item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ============== Education ============== */
.education__list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.education__list li {
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.education__list h3 { font-size: 17px; margin-bottom: 4px; }
.education__list .muted { color: var(--text-muted); font-size: 14px; margin-bottom: 6px; }
.education__list p { color: var(--text-muted); font-size: 14px; }

/* ============== Contact ============== */
.section--contact {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.section--contact .section__title { color: #fff; }
.section--contact .section__lead { color: rgba(255,255,255,.85); }
.contact__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.contact__card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  display: flex; flex-direction: column; gap: 4px;
  transition: background .15s ease, transform .15s ease;
}
.contact__card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  color: #fff;
}
.contact__card strong {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .8;
}
.contact__card span {
  font-size: 15px;
  font-weight: 500;
}
@media (max-width: 720px) {
  .contact__cards { grid-template-columns: 1fr; }
}

/* ============== Footer ============== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}
.footer a { color: var(--accent); }
@media (max-width: 720px) {
  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
}

.muted { color: var(--text-muted); }
