*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0a0e1a;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid rgba(0,255,180,0.12);
  position: sticky;
  top: 0;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.nav-logo { font-size: 15px; font-weight: 700; color: #00ffb4; letter-spacing: 2px; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: #8892a4;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color .2s;
}
.nav-links a:hover { color: #00ffb4; }

/* Grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,180,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,180,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Sections */
main { position: relative; z-index: 1; }
section { padding: 3.5rem 2rem; max-width: 900px; margin: 0 auto; }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,180,0.2), transparent);
  margin: 0 2rem;
}
.section-label { font-size: 11px; color: #00ffb4; letter-spacing: 3px; margin-bottom: .8rem; }
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; font-weight: 700; margin-bottom: .5rem; }
.section-sub { font-size: 13px; color: #4a5568; margin-bottom: 2rem; }

/* Hero */
#hero { padding: 5rem 2rem 4rem; text-align: center; }
.hero-badge {
  display: inline-block;
  background: rgba(0,255,180,0.08);
  border: 1px solid rgba(0,255,180,0.25);
  color: #00ffb4;
  font-size: 11px;
  letter-spacing: 2px;
  padding: .4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero-name { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: .8rem; }
.hero-name span { color: #00ffb4; }
.hero-title { font-size: clamp(1rem, 2.5vw, 1.4rem); color: #8892a4; margin-bottom: .6rem; }
.cursor {
  display: inline-block; width: 2px; height: 1.2em;
  background: #00ffb4; margin-left: 2px;
  animation: blink 1s step-end infinite; vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { font-size: 13px; color: #4a5568; margin-bottom: 2.5rem; letter-spacing: 1px; }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #00ffb4; color: #0a0e1a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700;
  padding: .7rem 1.8rem; border: none; border-radius: 6px;
  cursor: pointer; letter-spacing: 1px; transition: all .2s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: #00e6a0; transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: #00ffb4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 500;
  padding: .7rem 1.8rem;
  border: 1px solid rgba(0,255,180,0.4);
  border-radius: 6px; cursor: pointer; letter-spacing: 1px; transition: all .2s;
  text-decoration: none; display: inline-block;
}
.btn-secondary:hover { border-color: #00ffb4; background: rgba(0,255,180,0.05); }

/* Status dot */
.status-dot {
  display: inline-block; width: 7px; height: 7px;
  background: #00ffb4; border-radius: 50%; margin-right: 6px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

/* About */
.about-text { font-size: 13px; color: #8892a4; line-height: 2; max-width: 620px; }
.about-text strong { color: #e2e8f0; font-weight: 500; }
.terminal-line { font-size: 12px; color: #4a5568; margin-bottom: 2rem; }
.terminal-line span { color: #00ffb4; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.skill-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,255,180,0.1);
  border-radius: 8px; padding: 1.2rem;
  transition: all .25s;
}
.skill-card:hover { border-color: rgba(0,255,180,0.4); background: rgba(0,255,180,0.04); transform: translateY(-3px); }
.skill-icon { font-size: 22px; margin-bottom: .6rem; }
.skill-title { font-size: 13px; font-weight: 700; color: #e2e8f0; margin-bottom: .3rem; }
.skill-desc { font-size: 11px; color: #4a5568; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.proj-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 1.4rem;
  transition: all .25s; cursor: pointer;
}
.proj-card:hover { border-color: rgba(0,255,180,0.3); transform: translateY(-3px); }
.proj-tag {
  display: inline-block; font-size: 10px;
  padding: .25rem .6rem; border-radius: 4px;
  margin-bottom: .8rem; letter-spacing: 1px;
}
.tag-ai { background: rgba(0,255,180,0.1); color: #00ffb4; border: 1px solid rgba(0,255,180,0.2); }
.tag-dev { background: rgba(100,150,255,0.1); color: #6496ff; border: 1px solid rgba(100,150,255,0.2); }
.tag-cv { background: rgba(255,100,150,0.1); color: #ff6496; border: 1px solid rgba(255,100,150,0.2); }
.proj-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.proj-desc { font-size: 12px; color: #4a5568; line-height: 1.6; }

/* Content */
.content-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.content-card {
  flex: 1; min-width: 220px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 1.4rem;
  text-decoration: none; transition: all .25s; display: block;
}
.content-card:hover { border-color: rgba(0,255,180,0.3); transform: translateY(-2px); }
.content-platform { font-size: 11px; letter-spacing: 2px; margin-bottom: .5rem; }
.platform-blog { color: #00ffb4; }
.platform-yt { color: #ff4040; }
.content-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.content-meta { font-size: 11px; color: #4a5568; }

/* Contact */
#contacto { text-align: center; }
.social-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.social-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: #8892a4; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; padding: .6rem 1.2rem;
  border-radius: 6px; text-decoration: none;
  transition: all .2s; letter-spacing: 1px;
}
.social-btn:hover { border-color: rgba(0,255,180,0.4); color: #00ffb4; transform: translateY(-2px); }

/* Footer */
footer {
  text-align: center; padding: 2.5rem 2rem;
  border-top: 1px solid rgba(0,255,180,0.08);
  position: relative; z-index: 1;
}
.footer-text { font-size: 12px; color: #4a5568; }
.footer-link { color: #00ffb4; text-decoration: none; }

/* Responsive */
@media (max-width: 600px) {
  .nav-links { gap: .8rem; }
  .nav-links a { font-size: 11px; }
  section { padding: 2.5rem 1.2rem; }
}
