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

:root {
  --bg: #07070d;
  --bg2: #0e0e1a;
  --surface: #1a1a2e;
  --border: #252540;
  --cyan: #00d4ff;
  --cyan2: #00a8cc;
  --purple: #a855f7;
  --green: #10b981;
  --text: #e8eaf0;
  --muted: #7a7d9c;
  --faint: #3a3a5c;
  --grad: linear-gradient(135deg, #00d4ff, #a855f7);
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Syne", sans-serif;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--cyan2);
  border-radius: 2px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ANIMACIONES */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 8px #00d4ff;
  }
  50% {
    box-shadow:
      0 0 20px #00d4ff,
      0 0 40px rgba(0, 212, 255, 0.3);
  }
}
@keyframes glowCycle {
  0%,
  100% {
    box-shadow:
      0 0 40px rgba(0, 212, 255, 0.3),
      0 0 80px rgba(168, 85, 247, 0.1);
  }
  50% {
    box-shadow:
      0 0 60px rgba(168, 85, 247, 0.4),
      0 0 80px rgba(0, 212, 255, 0.1);
  }
}
@keyframes float0 {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  backdrop-filter: blur(20px);
  background: rgba(7, 7, 13, 0.88);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: "Space Mono", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: var(--cyan);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-cta {
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid var(--cyan);
  padding: 8px 20px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}
.nav-cta:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
  transform: translateY(-1px);
}

/* HAMBURGER */
#nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e8eaf0;
  transition: all 0.3s;
  border-radius: 2px;
}

/* Animación X */
#nav-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#nav-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#nav-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: #07070d;
  z-index: 150;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 80px 32px 40px;
}

#nav-toggle:checked ~ .mobile-menu {
  display: flex;
}

.mobile-menu a {
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  color: #e8eaf0;
  text-decoration: none;
  letter-spacing: 0.12em;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s, background 0.2s;
  display: block;
}

.mobile-menu a:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu a:hover,
.mobile-menu a:active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.05);
}

.mobile-hire {
  color: #00d4ff !important;
  border-top: none !important;
  border-bottom: none !important;
  margin-top: 20px;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

section {
  padding: 100px 6vw;
  position: relative;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: "";
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.4;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 56px;
}

/* HERO */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 6vw;
  overflow: hidden;
}
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    black 30%,
    transparent 100%
  );
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  pointer-events: none;
}
.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--cyan);
  top: -100px;
  right: -100px;
  z-index: 0;
}
.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--purple);
  bottom: 0;
  right: 200px;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 80px;
}
.hero-left {
  max-width: 640px;
}
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
  color: var(--green);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s 0.2s both;
}
.avail-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
.hero-h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
  animation: fadeUp 0.6s 0.35s both;
}
.hero-h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-role {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.45s both;
}
.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.55s both;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  animation: fadeUp 0.6s 0.65s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: #07070d;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 40px rgba(0, 212, 255, 0.6),
    0 8px 32px rgba(0, 212, 255, 0.2);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s;
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
}
.hero-socials {
  display: flex;
  gap: 20px;
  animation: fadeUp 0.6s 0.75s both;
}
.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s;
}
.hero-socials a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  animation: fadeUp 0.8s 0.5s both;
}
.hero-photo-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--grad);
  padding: 3px;
  animation: glowCycle 4s ease-in-out infinite;
}
.hero-photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.tech-badges {
  position: absolute;
  inset: -20px;
}
.tech-badge {
  position: absolute;
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.tech-badge:nth-child(1) {
  top: 0;
  left: 50%;
  animation: float0 4s ease-in-out 0s infinite;
}
.tech-badge:nth-child(2) {
  top: 25%;
  right: -20px;
  animation: float 4s ease-in-out 1s infinite;
}
.tech-badge:nth-child(3) {
  bottom: 15%;
  right: -10px;
  animation: float 4s ease-in-out 2s infinite;
}
.tech-badge:nth-child(4) {
  bottom: 0;
  left: 20%;
  animation: float 4s ease-in-out 0.5s infinite;
}
.tech-badge:nth-child(5) {
  top: 30%;
  left: -20px;
  animation: float 4s ease-in-out 1.5s infinite;
}

/* FOOTER */
footer {
  background: var(--bg);
  border-top: 1px solid transparent;
  border-image: linear-gradient(
      90deg,
      transparent,
      #00d4ff,
      #a855f7,
      transparent
    )
    1;
  padding: 28px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-left span {
  color: var(--cyan);
}
.footer-right {
  display: flex;
  gap: 24px;
}
.footer-right a {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-right a:hover {
  color: var(--cyan);
}

/* HAMBURGER */
#nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 9999;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e8eaf0;
  transition: all 0.3s;
  border-radius: 2px;
}

#nav-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#nav-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#nav-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Dropdown pequeño debajo del navbar */
.mobile-menu {
  display: none;
  position: fixed;
  top: 61px;
  left: 0;
  width: 100%;
  /* SIN height ni min-height — solo ocupa lo que necesita */
  background: #0e0e1a;
  border-bottom: 1px solid #252540;
  z-index: 9998;
  flex-direction: column;
  align-items: stretch;
  padding: 8px 0;
}

#nav-toggle:checked ~ .mobile-menu {
  display: flex;
}

.mobile-menu a {
  font-family: "Space Mono", monospace;
  font-size: 0.82rem;
  color: #e8eaf0;
  text-decoration: none;
  letter-spacing: 0.1em;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s, background 0.2s;
  display: block;
}
.mobile-menu a:last-child {
  border-bottom: none;
}
.mobile-menu a:hover,
.mobile-menu a:active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.05);
}
.mobile-hire {
  color: #00d4ff !important;
  font-weight: 700;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}