/* === RESET & FUENTES === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  color: #1c2a39;
  background-color: #f5f7fa;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* === COLORES === */
:root {
  --blue-700: #0a4a7a;
  --blue-500: #1274b8;
  --gray-100: #f5f7fa;
  --gray-200: #e3e8ee;
  --white: #ffffff;
}

/* === HERO === */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--blue-700), var(--blue-500));
  color: white;
  text-align: center;
  padding: 6rem 1rem 8rem;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}
.hero h1 { font-size: 2rem; font-weight: 800; }
.hero p { font-size: 1.1rem; margin-bottom: 1.5rem; }
.btn-primary {
  background: #fff;
  color: var(--blue-700);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}
.btn-primary:hover { background: var(--blue-500); color: #fff; }

/* === NAV === */
.main-nav {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-200);
}
.main-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 1rem;
  padding: 1rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--blue-700);
  font-weight: 600;
  transition: color 0.3s;
}
.main-nav a:hover { color: var(--blue-500); }

/* === SECCIONES === */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1rem;
}
.bg-alt { background-color: var(--gray-100); }
.section h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-700);
  margin-bottom: 2rem;
  text-align: center;
}

/* === LAYOUTS === */
.grid-2 {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-200);
}
.card h3 { color: var(--blue-700); margin-bottom: 0.5rem; }

/* === TIMELINE === */
.timeline { display: grid; gap: 1.5rem; }
.job {
  background: #fff;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--blue-500);
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.job h3 { margin-bottom: 0.3rem; color: var(--blue-700); }
.job span { font-size: 0.9rem; color: #555; display: block; margin-bottom: 0.4rem; }

/* === VIDEO === */
.media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* === HABILIDADES === */
.skills {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.skills li {
  background: #fff;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  text-align: center;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* === FORMULARIO === */
form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
input, select, textarea {
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
}
button {
  background: var(--blue-700);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover { background: var(--blue-500); }

/* === FOOTER === */
footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--gray-200);
  background: #fff;
}
footer p { color: #444; margin-bottom: 0.5rem; }
.social {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1rem;
}
.social a {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 600;
}
.social a:hover { color: var(--blue-500); }

/* === RESPONSIVE === */
@media (min-width: 1000px) {
  .hero h1 { font-size: 2.5rem; }
}






