:root {
  --bg: #060b15;
  --bg-2: #0b1426;
  --text: #edf3ff;
  --muted: #9eb1cf;
  --line: rgba(135, 175, 230, 0.3);
  --line-soft: rgba(135, 175, 230, 0.15);
  --blue: #1f88ef;
  --cyan: #6dd9ff;
  --indigo: #8d92ff;
  --radius: 20px;
  --max: 1180px;
  --shadow-xl: 0 32px 80px rgba(3, 8, 20, 0.5);
  --shadow-md: 0 18px 40px rgba(3, 8, 20, 0.34);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(58, 145, 255, 0.24), transparent 58%),
    radial-gradient(1100px 700px at 105% 8%, rgba(101, 214, 255, 0.18), transparent 50%),
    linear-gradient(180deg, #090f1d 0%, #070c16 48%, #060a12 100%);
  overflow-x: hidden;
}

.progress {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 0;
  height: 3px;
  width: 0;
  z-index: 70;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--indigo));
  box-shadow: 0 0 14px rgba(109, 210, 255, 0.72);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 82%);
}

.bg-glow {
  position: fixed;
  width: 44vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(95px);
  pointer-events: none;
  z-index: -1;
}
.bg-glow-a { left: -14vw; top: -14vw; background: rgba(35, 141, 255, 0.28); }
.bg-glow-b { right: -12vw; bottom: -14vw; background: rgba(101, 214, 255, 0.2); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
  width: min(var(--max), calc(100% - clamp(20px, 4vw, 44px)));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 45;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(8, 14, 25, 0.92), rgba(8, 14, 25, 0.58));
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.05em;
  font-family: "Audiowide";
  font-size: 1.33rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
}
.logo-main { color: #eff5ff; }
.logo-accent {
  background: linear-gradient(170deg, #6bddff 8%, #2f97f5 50%, #1268cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  z-index: 38;
  padding: 10px 16px 22px;
  background: rgba(8, 13, 22, 0.96);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-nav a {
  padding: 14px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav a:last-child { border-bottom: 0; margin-top: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  color: #eaf3ff;
  background: linear-gradient(145deg, #71dcff, #2f96f5 54%, #1a70d9);
  box-shadow: 0 14px 36px rgba(38, 125, 223, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-outline,
.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn:focus-visible,
.nav-links a:focus-visible,
.mobile-nav a:focus-visible,
.menu-btn:focus-visible,
.mail-cta:focus-visible {
  outline: 2px solid rgba(121, 208, 255, 0.95);
  outline-offset: 2px;
}

.section { padding: 68px 0; }
.hero,
#servicios,
#sistema,
#metodo,
#contacto {
  scroll-margin-top: 96px;
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: #93cfff;
  font-weight: 700;
}

.hero {
  min-height: auto;
  padding-top: 92px;
  padding-bottom: 30px;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero-copy h1 span {
  display: inline-block;
  background: linear-gradient(90deg, #ffffff 4%, #bee9ff 34%, #72c6ff 62%, #99a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 100%;
  animation: shimmer 5s ease-in-out infinite;
  padding-bottom: 0.06em;
}
.hero-text {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.86;
  max-width: 56ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  color: #cfe2ff;
  font-size: 0.8rem;
}

.hero-side {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 20px;
  background:
    radial-gradient(circle at 12% 10%, rgba(102, 197, 255, 0.14), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(12, 21, 39, 0.92), rgba(8, 13, 24, 0.95));
  box-shadow: var(--shadow-xl);
  animation: floatCard 6s ease-in-out infinite;
}
.hero-logo {
  width: min(520px, 100%);
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 18px 34px rgba(23, 104, 208, 0.4));
}
.hero-metrics { display: grid; gap: 8px; }
.hero-metrics article {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.02);
}
.hero-metrics strong { display: block; margin-bottom: 3px; font-size: 0.9rem; }
.hero-metrics span { color: var(--muted); font-size: 0.83rem; }

.section-head { max-width: 760px; margin-bottom: 22px; }
.section-head h2,
.system-layout h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(1.52rem, 3vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(11, 20, 36, 0.9), rgba(8, 13, 23, 0.95));
  box-shadow: var(--shadow-md);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(127, 194, 255, 0.55);
  box-shadow: var(--shadow-xl);
}
.service-id {
  display: inline-block;
  margin-bottom: 12px;
  color: #89b9f7;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
}
.service-card h3 { margin: 0 0 8px; font-size: 1.14rem; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.75; }

.system-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(102, 201, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-xl);
}
.lead { color: var(--muted); line-height: 1.86; }
.system-list { display: grid; gap: 10px; }
.system-list article {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.system-list article:hover {
  transform: translateX(6px);
  border-color: rgba(121, 193, 255, 0.52);
}
.system-list strong { display: block; margin-bottom: 4px; }
.system-list span { color: var(--muted); font-size: 0.9rem; }

.method-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.step {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.step:hover {
  transform: translateY(-8px);
  border-color: rgba(121, 190, 255, 0.48);
  box-shadow: 0 18px 34px rgba(10, 24, 51, 0.5);
}
.step span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ecf5ff;
  background: linear-gradient(145deg, #6ed9ff, #2f97f5 55%, #1a72db);
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.64; }

.contact { padding-top: 40px; padding-bottom: 54px; }
.contact-shell {
  display: grid;
  gap: 18px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(110, 206, 255, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,.14);
}
.contact-copy { max-width: 760px; margin: 0 auto; }
.contact-copy p { color: var(--muted); line-height: 1.8; margin: 0; }
.mail-cta {
  justify-self: center;
  min-width: min(720px, 100%);
  border: 1px solid rgba(125, 197, 255, 0.52);
  border-radius: 18px;
  padding: 18px 20px;
  display: grid;
  gap: 5px;
  background:
    linear-gradient(140deg, rgba(107, 203, 255, 0.18), rgba(41, 136, 239, 0.12)),
    rgba(255,255,255,.03);
  box-shadow: 0 18px 36px rgba(10,24,51,.48);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}
.mail-cta:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(141, 210, 255, 0.76);
  box-shadow: 0 26px 44px rgba(10,24,51,.58);
}
.mail-label {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #9fd6ff;
}
.mail-cta strong { font-size: clamp(1.05rem, 2.5vw, 1.5rem); letter-spacing: .01em; }
.mail-sub { color: var(--muted); font-size: .88rem; }

.footer {
  padding: 20px 0 30px;
  border-top: 1px solid var(--line-soft);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-row small { color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.99);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.reveal.show {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .mobile-nav { display: flex; }
  .nav-cta { display: none; }

  .hero-layout,
  .services-grid,
  .system-layout,
  .method-track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .hero { padding-top: 82px; }
  .logo { font-size: 1.12rem; letter-spacing: 0.05em; }
  .hero-side { animation: none; }
  .contact-shell,
  .system-layout { padding: 18px; }
  html { scroll-padding-top: 84px; }
  .hero,
  #servicios,
  #sistema,
  #metodo,
  #contacto { scroll-margin-top: 84px; }
}

@media (max-width: 480px) {
  .container { width: min(var(--max), calc(100% - 18px)); }
  .mobile-nav { top: 54px; }
  .logo { font-size: 1rem; }
  .hero-copy h1 { font-size: clamp(1.52rem, 8vw, 2rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
#network-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

