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

body {
  font-family: 'Inter', sans-serif;
  background: #0f0f0f;
  color: #f5f5f5;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  position: fixed;
  width: 100%;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

nav h1 {
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.nombre {
  color: #b892ff;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

nav a:hover {
  color: #b892ff;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background:
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    url('https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?q=80&w=1600&auto=format&fit=crop') center/cover;
}

.hero-content {
  max-width: 700px;
}

.tag {
  color: #b892ff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h2 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.description {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.btn {
  background: #b892ff;
  color: black;
  padding: 1rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}

.section {
  padding: 6rem 5%;
}

.dark {
  background: #171717;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.section h3 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.timeline,
.education {
  display: grid;
  gap: 2rem;
}

.card {
  background: #222;
  padding: 2rem;
  border-radius: 20px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card span {
  color: #b892ff;
  font-size: 0.9rem;
}

.card h4 {
  margin: 1rem 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.skill-box {
  background: #222;
  padding: 1.2rem;
  border-radius: 14px;
  text-align: center;
  transition: 0.3s;
}

.skill-box:hover {
  background: #b892ff;
  color: black;
}

.contact-box {
  background: #222;
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

button {
  background: #b892ff;
  border: none;
  padding: 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 2rem;
  background: black;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .section h3 {
    font-size: 2rem;
  }
}