body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9fafb;
  color: #565656;
}
h1,
h2,
h3 {
  margin: 0;
}

a {
  text-decoration: none;
  color: #d3d1d1;
  margin-inline: 8px;
}

/* Sección Hero con partículas */
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0d1117 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: white;
}

/* Canvas para las partículas */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Contenido del hero */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0.95;
  text-shadow: 0 0 30px rgba(64, 150, 255, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 40px;
  opacity: 0.8;
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.nav {
  position: sticky;
  top: 0;
}
.nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  list-style: none;
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0d1117 100%);
  margin: 0;
  font-size: larger;
  letter-spacing: 0.04em;
}

.nav li {
  position: relative;
}

.option:hover {
  color: #0151ff;
  transition: color 0.5s;
}

.hover {
  color: #0151ff;
  transition: color 0.5s;
}

.selected {
  display: none;
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 10px;
  background: #0151ff;
  border-radius: 10px;
  filter: blur(2px);
}

/* Mostrar solo el del activo */
.nav li.active .selected {
  display: block;
}

.section {
  padding: 40px 15px;
  max-width: 1100px;
  margin: auto;
  border-radius: 10px;
}
.section h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 25px;
}
.mt {
  margin-top: 40px;
}

#about {
  background: #f1f1f1;
}

.about {
  max-width: 800px;
  margin: auto;
  line-height: 1.6;
  font-size: 1.05rem;
  text-align: center;
}
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}
.project-link {
  color: #777ed1;
  font-weight: bold;
}
.project-link:hover {
  color: #0151ff;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card p {
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.skill {
  background: white;
  padding: 15px 15px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin: 10px;
  width: 100px;
  text-align: center;
  letter-spacing: 0.03em;
  font-weight: bold;
  font-size: 0.95rem;
}

.skill img {
  width: 80px;
  height: 80px;
}

.soft-skills {
  margin-top: 30px;
}

.soft-skill {
  background: white;
  padding: 8px 12px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

.education {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}
.awards {
  list-style: none;
  max-width: 600px;
  margin: auto;
}
.award {
  font-size: large;
  margin-top: 12px;
  font-size: 1.05rem;
}

.experience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.exp-card {
  background: white;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  letter-spacing: 0.02em;
  line-height: 1.6;
  font-size: 1.05rem;
}

#contacto h2 {
  color: #f6f4f4;
}

.icon {
  width: 40px;
  height: 40px;
  margin-right: 8px;
  vertical-align: middle;
  filter: drop-shadow(0 0 5px rgb(255, 255, 255));
}

.social a img:hover {
  transform: scale(1.1);
  transition: transform 0.3s;
}

.social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 30px;
}

.contacto {
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0d1117 100%);
}

/* Animación faltante */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero {
    height: 400px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  .nav ul {
    gap: 15px;
    padding: 15px;
    font-size: 1rem;
  }
  .section {
    padding: 30px 10px;
  }
  .projects {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .education {
    grid-template-columns: 1fr;
  }
  .experience {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 350px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }
  .nav li {
    width: 100%;
    text-align: center;
  }
  .selected {
    /*bottom: -6px;
    height: 6px;
    width: 25%;
    left: 37.5%;*/
    visibility: hidden;
  }
  .section {
    padding: 20px 10px;
  }
  .section h2 {
    font-size: 1.4rem;
  }
  .about {
    font-size: 1rem;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 12px;
  }
  .skills {
    gap: 6px;
  }
  .skill {
    width: 90px;
    font-size: 0.9rem;
  }
  .soft-skill {
    width: 100%;
    max-width: 250px;
    font-size: 0.95rem;
  }
  .education {
    grid-template-columns: 1fr;
  }
  .experience {
    grid-template-columns: 1fr;
  }
  .exp-card {
    padding: 12px;
  }
  .icon {
    width: 35px;
    height: 35px;
  }
  .social {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .selected {
    visibility: hidden;
    /*bottom: -4px;
    height: 6px;
    width: 30%;
    left: 35%;*/
  }
  .hero {
    height: 300px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .nav ul {
    padding: 8px;
    font-size: 0.9rem;
  }
  .section {
    padding: 15px 8px;
  }
  .section h2 {
    font-size: 1.2rem;
  }
  .about {
    font-size: 0.95rem;
  }
  .card {
    padding: 10px;
  }
  .skill {
    width: 80px;
    font-size: 0.85rem;
  }
  .soft-skill {
    font-size: 0.9rem;
  }
  .award {
    font-size: 1rem;
  }
  .exp-card {
    font-size: 1rem;
  }
  .icon {
    width: 30px;
    height: 30px;
  }
}
