/* === Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
}
html { scroll-behavior: smooth; }

/* === Navbar === */
.navbar {
  position: fixed; top: 0; width: 100%;
  background: rgba(0,0,0,0.85);
  padding: 1rem 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,255,255,0.2);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  color: #0ff; text-decoration: none; font-size: 1.5rem; font-weight: bold;
  text-shadow: 0 0 8px #0ff;
}
.nav-menu { list-style: none; display: flex; gap: 2rem; }
.nav-menu a {
  color: #fff; text-decoration: none; font-weight: 500;
  transition: 0.3s;
}
.nav-menu a:hover { color: #f0f; text-shadow: 0 0 10px #f0f; }
.hamburger { display: none; flex-direction: column; cursor: pointer; }
.hamburger span {
  width: 25px; height: 3px; background: #0ff;
  margin: 4px 0; transition: 0.3s;
}

/* === Hero === */
.hero {
  height: 100vh;
  background: linear-gradient(135deg,#000,#111);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 1rem;
}
.hero-avatar {
  width: 150px; height: 150px; border-radius: 50%;
  background: #111; margin: 0 auto 2rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: #0ff;
  box-shadow: 0 0 20px #0ff;
}
.hero h1 {
  font-size: 2.5rem; color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
  margin-bottom: 1rem;
}
.hero p { color: #ccc; margin-bottom: 2rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* === Botones === */
.btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: #0ff; color: #000; }
.btn-secondary { border: 2px solid #0ff; color: #0ff; background: transparent; }
.btn:hover { box-shadow: 0 0 20px #0ff, 0 0 30px #0ff; transform: translateY(-3px); }

/* === Secciones generales === */
.section { padding: 5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-title {
  text-align: center; font-size: 2.5rem; margin-bottom: 3rem;
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

/* === About === */
.about { background: #111; }
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text h3 { font-size: 1.8rem; color: #f0f; margin-bottom: 1rem; }
.about-text p { color: #aaa; margin-bottom: 1.5rem; }
.about-stats { display: flex; gap: 2rem; margin-top: 2rem; }
.about-image {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.stat-item {
  background: #000; padding: 1.5rem; border-radius: 10px;
  text-align: center; flex: 1;
  box-shadow: 0 0 15px #0ff;
}
.stat-number { font-size: 2rem; font-weight: bold; color: #0ff; display: block; }

/* === Skills === */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 2rem;
}
.skill-category {
  background: #111; padding: 2rem;
  border-radius: 15px; box-shadow: 0 0 15px #0ff;
  transition: transform 0.3s;
}
.skill-category:hover { transform: translateY(-10px); }
.skill-category h3 { color: #0ff; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; }
.skill-item {
  display: flex; justify-content: space-between; margin-bottom: 1rem;
}
.skill-name { color: #aaa; }
.skill-level { font-weight: bold; }

/* Colores según nivel */
.skill-level.principiante { color: rgb(255, 94, 0); text-shadow: 0 0 8px rgb(255, 94, 0); }
.skill-level.basico { color: #ff0; text-shadow: 0 0 8px #ff0; }
.skill-level.intermedio { color: #0ff; text-shadow: 0 0 8px #0ff; }
.skill-level.avanzado { color: #f0f; text-shadow: 0 0 8px #f0f; }

/* === Proyectos === */
.projects { background: #111; }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
  gap: 2rem;
}
.project-card {
  background: #000; border-radius: 15px; overflow: hidden;
  box-shadow: 0 0 15px #0ff;
  transition: 0.3s;
}
.project-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 0 25px #f0f; }
.project-image {
  height: 200px; background: #111;
  display: flex; align-items: center; justify-content: center;
  color: #0ff; font-size: 3rem;
}
.project-content { padding: 1.5rem; }
.project-title { font-size: 1.3rem; font-weight: bold; color: #0ff; margin-bottom: 0.5rem; }
.project-description { color: #aaa; margin-bottom: 1rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tech-tag {
  background: rgba(0,255,255,0.1); color: #0ff;
  padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem;
}
.project-link {
  padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.9rem; text-decoration: none; }
.demo-link { background: #0ff; color: #000; }
.github-link { background: #f0f; color: #000; margin-left: 1rem;}
.project-link:hover { box-shadow: 0 0 15px #0ff; }

/* === Timeline (Experiencia) === */
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 4px;
  background: #0ff;
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}
.timeline-item:nth-child(odd) {
  flex-direction: row;
  justify-content: flex-start;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
.timeline-content {
  background: #111;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px #0ff;
  width: 45%;
}
.timeline-date { background: #0ff; color: #000; padding: 0.5rem 1rem; border-radius: 20px; margin-bottom: 1rem; display: inline-block; }
.timeline-title { font-size: 1.3rem; font-weight: bold; color: #f0f; }
.timeline-subtitle { color: #aaa; margin-bottom: 1rem; }
.timeline-description { color: #ccc; }
.timeline-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 50px;
  background: #0ff; color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* === Contacto === */
.contact { background: #000; }
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 50px; height: 50px; background: #0ff; color: #000;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.contact-text h4 { color: #f0f; margin-bottom: 0.5rem; }
.contact-text p { color: #aaa; }
.contact-form {
  background: #111; padding: 2rem; border-radius: 15px;
  box-shadow: 0 0 15px #0ff;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #0ff; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 15px; border: 2px solid #333; border-radius: 8px;
  background: #000; color: #fff;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: #0ff; box-shadow: 0 0 10px #0ff;
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* === Footer === */
.footer { background: #111; color: #777; text-align: center; padding: 2rem 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem; }
.social-links { display: flex; gap: 1rem; }
.social-link {
  width: 40px; height: 40px; background: #000; border: 1px solid #0ff;
  color: #0ff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: 0.3s;
}
.social-link:hover { background: #0ff; color: #000; box-shadow: 0 0 15px #0ff; }

/* === Responsive === */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: 70px; left: -100%; width: 100%;
    height: calc(100vh - 70px); background: #000;
    flex-direction: column; justify-content: start; align-items: center;
    padding-top: 2rem; transition: left 0.3s;
  }
  .nav-menu.active { left: 0; }
  .about-content, .contact-content { grid-template-columns: 1fr; gap: 2rem; }
  .timeline::before { left: 20px; }
  .timeline-item { flex-direction: column !important; align-items: start; }
  .timeline-content { width: calc(100% - 60px); margin-left: 60px; }
  .timeline-icon { left: 20px; }
}
