/* ----------------------------------------
   Reset minimal y variables CSS (mobile‑first)
-----------------------------------------*/
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
  --clr-bg: #fff;
  --clr-primary: #0066cc;
  --clr-light: #f4f8fc;
  --clr-dark: #222;
  --fs-base: 1rem;
  --fw-bold: 600;
  --transition: .3s ease;
}
body {
  font-family: system-ui, sans-serif;
  font-size: var(--fs-base);
  color: var(--clr-dark);
  background: var(--clr-bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* Skip-link */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--clr-primary); color:#fff;
  padding: .5rem;
  transition: top var(--transition);
}
.skip-link:focus { top:0; }

/* Contenedor */
.container {
  width: 90%; max-width: 900px;
  margin: 0 auto;
}

/* Botón */
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  background: var(--clr-primary);
  color: #fff;
  border: none; border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition);
}
.btn:hover { background: darken(var(--clr-primary),10%); }

/* Header */
.header {
  background: #000;
  position: sticky; top:0; z-index:1000;
}
.header__inner {
  display: flex; align-items:center; justify-content: space-between;
  padding: 1rem 0;
}
.header__logo img { height:40px; }
.header__toggle {
  background: none; border: none;
  width: 2rem; height: 2rem;
  position: relative; cursor: pointer;
}
.header__icon,
.header__icon::before,
.header__icon::after {
  content: '';
  display: block;
  background: #fff;
  height: 3px; border-radius: 2px;
  position: absolute; left: 0; right: 0;
}
.header__icon { top: 50%; transform: translateY(-50%); }
.header__icon::before { top: -8px; }
.header__icon::after  { top:  8px; }
.header__nav {
  position: absolute; top:100%; right:0;
  background: #000; width: 220px;
  transform: translateX(100%);
  transition: transform var(--transition);
}
.header__nav.open { transform: translateX(0); }
.nav__list {
  display: flex; flex-direction: column;
  list-style: none; padding:1rem;
}
.nav__link {
  color: #ffffff;
  padding: .5rem 0;
  font-weight: var(--fw-bold);
}
.nav__link:hover { background: rgba(255,255,255,.1); }

/* Secciones */
.section { padding: 3rem 0; }
.bg-light { background: var(--clr-light); }
.section__title {
  text-align: center; margin-bottom: 1.5rem;
  font-size: 1.75rem; font-weight: var(--fw-bold);
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0;
  background: radial-gradient(circle at center, #001133, #000);
  color: #fff;
}
.hero__avatar {
  width:120px; height:120px;
  border-radius:50%; border:3px solid #fff;
  object-fit:cover; margin-bottom:1rem;
}
.hero__title { font-size:2.5rem; margin-bottom:.5rem; }
.hero__subtitle { font-size:1.1rem; }

/* About / Counters */
.about__text { max-width:600px; margin:0 auto 2rem; }
.counters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  gap:1rem; text-align:center;
}
.counter__value {
  font-size:2rem; font-weight:var(--fw-bold);
  color: var(--clr-primary);
}
.counter__label { font-size:.9rem; color:#555; }

/* Skills */
.skills__list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}
.skill {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center;
}
.skill__name { font-weight: var(--fw-bold); }
.skill__bar {
  background: #e0e0e0; height:8px; border-radius:4px; overflow:hidden;
  margin-left: 1rem; width: 100%;
}
.skill__fill {
  height:100%; background: var(--clr-primary);
  width:0; transition: width .8s var(--transition);
}

/* Resume */
.resume__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.resume__subtitle { color: var(--clr-primary); margin-bottom:.5rem; }
.resume__item { margin-bottom:1.25rem; }
.resume__period { font-size:.85rem; color:#777; }

/* Portfolio */
.portfolio__grid {
  display: grid;
  gap:1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
}
.portfolio__item img {
  width:100%; display:block; border-radius:4px;
}

/* Services */
.services__list {
  list-style:none;
  display: grid;
  gap:1.5rem;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
}
.service__item {
  background:#f9f9f9; padding:1rem; border-radius:4px;
}

/* Testimonials */
.testimonials__grid {
  display: grid;
  gap:1.5rem;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
}
.testimonial {
  background:#fff; padding:1rem; border-radius:4px;
  box-shadow:0 1px 4px rgba(0,0,0,.1);
}
.testimonial cite {
  display:block; margin-top:1rem; text-align:right;
  font-weight:var(--fw-bold);
}

/* Contact */
.contact__form {
  max-width:600px; margin:0 auto;
  display: flex; flex-direction: column; gap:1rem;
}
.contact__row {
  display:flex; gap:1rem; flex-wrap:wrap;
}
.contact__form input,
.contact__form textarea {
  width:100%; padding:.75rem; border:1px solid #ccc;
  border-radius:4px;
}
.sr-only {
  position:absolute; width:1px; height:1px;
  padding:0; overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Responsive: mostrar toggle */
@media (min-width: 768px) {
  .header__toggle { display: none; }
  .header__nav {
    position: static; transform: none; background: none;
    width: auto; padding: 0;
  }
  .nav__list { flex-direction: row; gap:1.5rem; }
}

