:root {
  --bg: #06070D;
  --bg2: #0A0C18;
  --bg3: #0E1020;
  --neon-blue: #4D6BFF;
  --neon-cyan: #00D4FF;
  --green-neon: #00FFB2;
  --white: #EEF0FF;
  --gray: rgba(238,240,255,0.45);
  --border: rgba(77,107,255,0.16);
  --border-cyan: rgba(0,212,255,0.25);
}

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

html { 
  scroll-behavior: smooth; 
}

body { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  background: var(--bg); 
  color: var(--white); 
  overflow-x: hidden; 
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,7,13,0.9); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-sym { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nd-top { width: 11px; height: 11px; background: var(--neon-cyan); border-radius: 50%; box-shadow: 0 0 12px var(--neon-cyan); }
.nav-sym .nd-row { display: flex; gap: 4px; }
.nav-sym .nd-bot { width: 11px; height: 11px; background: rgba(238,240,255,0.85); border-radius: 50%; }
.nav-wordmark { font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: -0.025em; }
.nav-wordmark span { color: var(--neon-cyan); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 12px; font-weight: 600; color: rgba(238,240,255,0.45); text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--neon-cyan); }
.nav-btn { background: transparent; border: 1.5px solid var(--neon-cyan); color: var(--neon-cyan) !important; padding: 9px 20px; border-radius: 7px; cursor: pointer; transition: background 0.2s, box-shadow 0.2s; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; }
.nav-btn:hover { background: rgba(0,212,255,0.08) !important; box-shadow: 0 0 22px rgba(0,212,255,0.2); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding: 140px 64px 80px; position: relative; overflow: hidden;
}
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(77,107,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(77,107,255,0.03) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.hero-glow-tl { position: absolute; width: 800px; height: 800px; background: radial-gradient(circle, rgba(77,107,255,0.09) 0%, transparent 60%); top: -200px; right: -200px; pointer-events: none; }
.hero-glow-bl { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 60%); bottom: -100px; left: -100px; pointer-events: none; }

.hero-left { position: relative; opacity: 0; animation: fadeUp 0.8s ease forwards 0.2s; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--neon-cyan); margin-bottom: 28px; }
.hero-eyebrow::before { content: ''; width: 30px; height: 1.5px; background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.hero-title { font-size: clamp(42px, 5vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 24px; }
.hero-title .tc { color: var(--neon-cyan); }
.hero-title .tg { color: var(--green-neon); }
.hero-sub { font-size: 17px; font-weight: 400; color: var(--gray); line-height: 1.75; margin-bottom: 44px; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 56px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--neon-blue); color: #fff; font-size: 14px; font-weight: 700; padding: 14px 28px; border-radius: 9px; text-decoration: none; box-shadow: 0 0 32px rgba(77,107,255,0.38); transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 52px rgba(77,107,255,0.55); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--neon-cyan); font-size: 14px; font-weight: 700; padding: 14px 28px; border-radius: 9px; border: 1.5px solid var(--neon-cyan); text-decoration: none; transition: transform 0.2s, background 0.2s, box-shadow 0.2s; }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(0,212,255,0.07); box-shadow: 0 0 28px rgba(0,212,255,0.16); }

/* STATS */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 16px; background: rgba(10,12,24,0.9); backdrop-filter: blur(12px); overflow: hidden; opacity: 0; animation: fadeUp 0.8s ease forwards 0.9s; }
.stat { padding: 20px 20px; border-right: 1px solid var(--border); text-align: center; }
.stat:last-child { border-right: none; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--neon-cyan); line-height: 1; text-shadow: 0 0 18px rgba(0,212,255,0.45); letter-spacing: -0.03em; }
.stat-lbl { font-size: 10px; font-weight: 600; color: rgba(238,240,255,0.3); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 5px; }

/* HERO VISUAL */
.hero-right { position: relative; opacity: 0; animation: fadeUp 0.8s ease forwards 0.5s; display: flex; align-items: center; justify-content: center; }
.hero-visual-wrap { position: relative; width: 100%; max-width: 520px; }
.hero-svg-container { position: relative; width: 100%; padding-bottom: 85%; }
.hero-svg-container svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Floating cards */
.float-card { position: absolute; background: rgba(10,12,24,0.92); border: 1px solid var(--border-cyan); border-radius: 12px; padding: 12px 16px; backdrop-filter: blur(16px); box-shadow: 0 0 30px rgba(0,212,255,0.08); z-index: 5; }
.float-card-1 { top: 8%; left: -8%; animation: floatY 4s ease-in-out infinite; }
.float-card-2 { bottom: 12%; right: -6%; animation: floatY 4s ease-in-out infinite 2s; }
.float-card-3 { top: 42%; right: -10%; animation: floatY 3.5s ease-in-out infinite 1s; }
.fc-label { font-size: 10px; font-weight: 600; color: rgba(238,240,255,0.4); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.fc-val { font-size: 18px; font-weight: 800; color: var(--neon-cyan); letter-spacing: -0.02em; }
.fc-sub { font-size: 10px; color: rgba(238,240,255,0.35); margin-top: 2px; }
.fc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-neon); box-shadow: 0 0 8px var(--green-neon); display: inline-block; margin-right: 6px; }

/* QUOTE */
.quote-sec { padding: 72px 64px; }
.quote-card { background: linear-gradient(135deg, rgba(26,31,110,0.3) 0%, rgba(10,12,24,0.9) 100%); border: 1px solid rgba(77,107,255,0.22); border-radius: 22px; padding: 56px 64px; text-align: center; position: relative; overflow: hidden; }
.quote-card::after { content:''; position:absolute; width:400px; height:400px; background:radial-gradient(circle, rgba(0,212,255,0.05) 0%, transparent 65%); top:-80px; right:-80px; pointer-events:none; }
.quote-txt { font-size: clamp(18px, 2.2vw, 30px); font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; color: var(--white); max-width: 740px; margin: 0 auto 14px; }
.quote-txt span { color: var(--neon-cyan); }
.quote-sub { font-size: 15px; font-weight: 400; color: rgba(238,240,255,0.38); }

/* PROJECTS */
.projects-sec { padding: 80px 64px; }
.sec-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--neon-cyan); margin-bottom: 14px; }
.sec-eyebrow::before { content:''; width:22px; height:1.5px; background:var(--neon-cyan); }
.sec-title { font-size: clamp(26px, 3.5vw, 46px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 12px; }
.sec-title span { color: var(--neon-cyan); }
.sec-desc { font-size: 15px; font-weight: 400; color: var(--gray); max-width: 500px; line-height: 1.75; margin-bottom: 52px; }

.pcard { background: var(--bg2); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; margin-bottom: 28px; opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.3s, box-shadow 0.3s; }
.pcard:hover { border-color: rgba(0,212,255,0.32); box-shadow: 0 0 60px rgba(0,212,255,0.05); }
.pcard.visible { opacity: 1; transform: translateY(0); }
.pinner { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; }
.pinner.rev { direction: rtl; }
.pinner.rev > * { direction: ltr; }
.pvisual { position: relative; overflow: hidden; min-height: 360px; }
.pvbg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 36px; }

/* Mock browser */
.mock { width: 100%; max-width: 300px; background: #09091A; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 24px 80px rgba(0,0,0,0.7); text-decoration: none; display: block; transition: transform 0.3s ease; }
.mock:hover { transform: scale(1.02); }
.mbar { background: #11122A; padding: 9px 12px; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.md { width: 8px; height: 8px; border-radius: 50%; }
.mr{background:#FF5F57;} .my{background:#FEBC2E;} .mg{background:#28C840;}
.murl { flex:1; height:16px; background:rgba(255,255,255,0.04); border-radius:4px; margin-left:6px; font-size:8px; color:rgba(255,255,255,0.35); display:flex; align-items:center; padding:0 8px; font-family:monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mbody { padding: 14px; }
.mhero { height: 64px; border-radius: 8px; margin-bottom: 10px; display: flex; align-items: center; padding: 0 14px; }
.mhtxt { font-size: 9px; font-weight: 700; color: #fff; letter-spacing: 0.04em; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin-bottom: 8px; }
.mc { height: 40px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.04); }
.mrows { display: flex; flex-direction: column; gap: 5px; }
.mrow { height: 24px; border-radius: 6px; background: rgba(255,255,255,0.03); display: flex; align-items: center; padding: 0 10px; gap: 7px; border: 1px solid rgba(255,255,255,0.04); }
.mri { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mrb { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.07); }

.gov-badge { display:inline-flex; align-items:center; gap:6px; background:rgba(0,255,178,0.07); border:1px solid rgba(0,255,178,0.22); color:var(--green-neon); font-size:11px; font-weight:700; padding:5px 12px; border-radius:20px; margin-bottom:14px; box-shadow:0 0 16px rgba(0,255,178,0.07); }
.pinfo { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.ptag { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--neon-cyan); margin-bottom:14px; }
.ptag::before { content:''; width:14px; height:1.5px; background:var(--neon-cyan); }
.ptitle { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; color: var(--white); margin-bottom: 6px; }
.pclient { font-size: 11px; font-weight: 600; color: rgba(238,240,255,0.28); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.pdesc { font-size: 14px; font-weight: 400; color: rgba(238,240,255,0.52); line-height: 1.78; margin-bottom: 22px; }
.presults { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.pr { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: rgba(238,240,255,0.68); line-height: 1.5; }
.prdot { width: 5px; height: 5px; border-radius: 50%; background: var(--neon-cyan); box-shadow: 0 0 6px var(--neon-cyan); flex-shrink: 0; margin-top: 7px; }
.plinks { display: flex; gap: 12px; flex-wrap: wrap; }
.btnp { display:inline-flex; align-items:center; gap:7px; background:rgba(77,107,255,0.1); border:1px solid rgba(77,107,255,0.32); color:var(--white); font-size:13px; font-weight:700; padding:11px 18px; border-radius:9px; text-decoration:none; transition:background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.btnp:hover { background:rgba(77,107,255,0.2); border-color:var(--neon-blue); box-shadow:0 0 18px rgba(77,107,255,0.16); }

/* SERVICES */
.svc-sec { background: var(--bg2); padding: 80px 64px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scard { background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; padding: 26px; transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s; position: relative; overflow: hidden; }
.scard::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, transparent, var(--neon-cyan), transparent); opacity:0; transition:opacity 0.3s; }
.scard:hover { border-color:rgba(0,212,255,0.26); box-shadow:0 0 36px rgba(0,212,255,0.05); transform:translateY(-4px); }
.scard:hover::before { opacity:1; }
.sicon { width:42px; height:42px; background:rgba(77,107,255,0.1); border:1px solid rgba(77,107,255,0.22); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:19px; margin-bottom:18px; }
.sname { font-size: 15px; font-weight: 800; color: var(--white); margin-bottom: 8px; letter-spacing: -0.01em; }
.sdesc { font-size: 13px; font-weight: 400; color: rgba(238,240,255,0.38); line-height: 1.65; margin-bottom: 18px; }
.sprice { font-size: 14px; font-weight: 800; color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0,212,255,0.32); }
.slink { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:rgba(0,212,255,0.45); text-decoration:none; margin-top:14px; transition:color 0.2s; }
.slink:hover { color:var(--neon-cyan); }

.gdiv { height: 1px; background: linear-gradient(90deg, transparent, rgba(0,212,255,0.22), transparent); margin: 0 64px; }

/* CTA */
.cta-sec { padding: 100px 64px; text-align: center; position: relative; }
.cta-glow { position:absolute; width:600px; height:300px; background:radial-gradient(ellipse, rgba(77,107,255,0.08) 0%, transparent 70%); top:50%; left:50%; transform:translate(-50%,-50%); pointer-events:none; }
.cta-title { font-size: clamp(26px, 4vw, 50px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; color: var(--white); margin-bottom: 14px; position: relative; }
.cta-title span { color: var(--neon-cyan); }
.cta-sub { font-size: 16px; font-weight: 400; color: var(--gray); margin-bottom: 40px; max-width: 460px; margin-left: auto; margin-right: auto; line-height: 1.75; position: relative; }
.cta-btns { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; position:relative; }

/* FOOTER */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 44px 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.fbrand { font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.fbrand span { color: var(--neon-cyan); }
.ftagline { font-size: 12px; font-weight: 400; color: rgba(238,240,255,0.28); margin-top: 4px; }
.fcopy { font-size: 11px; color: rgba(238,240,255,0.18); text-align: center; letter-spacing: 0.04em; }
.fcontact { text-align: right; font-size: 12px; color: rgba(238,240,255,0.32); line-height: 1.85; }
.fcontact a { color: var(--neon-cyan); text-decoration: none; }

/* KEYFRAMES ANIMACIONES */
@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes floatY { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes pulse-ring { 0%,100% { opacity:0.4; transform:scale(1); } 50% { opacity:0.8; transform:scale(1.04); } }
@keyframes rotate-slow { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }

body.menu-is-open {
  overflow: hidden !important;
}

/* Botón Hamburguesa Oculto por defecto en Escritorio */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
  z-index: 200;
  position: relative;
}

.nav-toggle .line {
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.3s ease,
              background-color 0.3s ease;
}

/* Transición animada del botón a "X" Azul Cian */
.nav-toggle.is-active .line:nth-child(1) {
  transform: rotate(45deg) translate(2px, -1px);
  background-color: var(--neon-cyan);
}

.nav-toggle.is-active .line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active .line:nth-child(3) {
  transform: rotate(-45deg) translate(2px, 1px);
  background-color: var(--neon-cyan);
}

/* Media Query Unificada para Dispositivos Móviles y Tablets */
@media (max-width: 1000px) {
  nav { 
    padding: 16px 20px; 
    position: fixed;
    width: 80%;
  }

  /* Activación de la visualización del botón hamburguesa */
  .nav-toggle {
    display: flex;
  }

  /* Transformación del contenedor de enlaces a menú pantalla completa inmersivo */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 7, 13, 0.98);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 40px 20px;
    z-index: 190;
    
    /* Optimización de estados de renderizado en GPU */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* Estado Abierto del Menú Móvil */
  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Ajustes estéticos de los enlaces en móviles */
  .nav-links a {
    font-size: 16px;
    letter-spacing: 0.12em;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    display: block;
    transition: color 0.2s ease;
  }

  /* Botón de conversión destacado dentro del menú colapsable */
  .nav-btn {
    background: transparent;
    border: 1.5px solid var(--neon-cyan);
    color: var(--neon-cyan) !important;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 12px;
    font-size: 13px;
    padding: 14px 32px;
    width: auto;
    display: inline-block;
  }

  /* Ajustes estructurales del resto de secciones en mobile */
  .hero { grid-template-columns: 1fr; padding: 110px 20px 60px; gap: 40px; }
  .hero-right { display: none; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .projects-sec, .quote-sec, .svc-sec, .cta-sec { padding: 64px 20px; }
  .pinner, .pinner.rev { grid-template-columns: 1fr; direction: ltr; }
  .pvisual { min-height: 240px; }
  .pinfo { padding: 28px 20px; }
  .sgrid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; padding: 36px 20px; gap: 24px; }
  .fcopy { order: 3; }
  .fcontact { text-align: left; }
  .gdiv { margin: 0 20px; }
}