/* ==========================================
   VARIABLES Y RESET GLOBAL
   ========================================== */
:root {
  --bg-dark: #0a0f1d;
  --bg-card: rgba(18, 25, 44, 0.7);
  --border-card: rgba(255, 255, 255, 0.08);
  --primary: #3b82f6;
  --accent: #06b6d4;
  --purple: #8b5cf6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-main: 'Inter', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fondo Glow Neón */
.bg-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow-1 {
  top: -100px;
  left: -100px;
}

.bg-glow-2 {
  bottom: 10%;
  right: -100px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

/* ==========================================
   NAVEGACIÓN (RESPONSIVA)
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(10, 15, 29, 0.85);
  border-bottom: 1px solid var(--border-card);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn-cta {
  background: var(--gradient-accent);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.4);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  min-height: 90vh;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-content h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s ease, border-color 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Tarjeta de Código */
.code-card {
  background: #0d1322;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  width: 100%;
}

.code-header {
  background: #151d30;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-body {
  padding: 1.5rem;
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.8;
  overflow-x: auto;
}

.code-keyword { color: #f472b6; }
.code-function { color: #38bdf8; }
.code-string { color: #34d399; }
.code-comment { color: #64748b; }

/* ==========================================
   SECCIONES Y SERVICIOS
   ========================================== */
.section-padding {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================
   TECNOLOGÍAS
   ========================================== */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.tech-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================
   CONTACTO
   ========================================== */
.contact-container {
  background: linear-gradient(135deg, rgba(18, 25, 44, 0.9) 0%, rgba(10, 15, 29, 0.9) 100%);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
}

.contact-container h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.contact-container p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.btn-contact {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  border-top: 1px solid var(--border-card);
  padding: 3rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-copy {
  color: #475569;
  font-size: 0.85rem;
  text-align: center;
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVO COMPUTADORA & CELULARES)
   ========================================== */

/* Tablets y Pantallas Medianas (<= 900px) */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
    padding-bottom: 3rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .nav-links {
    display: none; /* Oculta navegación de escritorio */
  }

  .contact-container h2 {
    font-size: 2.2rem;
  }
}

/* Celulares (<= 600px) */
@media (max-width: 600px) {
  nav {
    padding: 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .btn-cta {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta, .btn-secondary {
    width: 100%;
  }

  .section-padding {
    padding: 3.5rem 1.2rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .code-body {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .btn-contact {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
  }
}