:root {
  color-scheme: dark;
  --intro-progress: 0;
  --network-x: 0px;
  --network-y: 0px;
  --network-rotate: 0deg;
  --bg: #030506;
  --panel: rgba(12, 16, 20, 0.82);
  --panel-solid: #0b1013;
  --panel-hover: rgba(16, 25, 31, 0.92);
  --line: rgba(190, 232, 255, 0.16);
  --line-bright: rgba(101, 216, 255, 0.38);
  --text: #f3f8fb;
  --muted: #9baab3;
  --soft: #d8edf5;
  --cyan: #65d8ff;
  --cyan-glow: rgba(101, 216, 255, 0.25);
  --green: #8cf2c4;
  --green-glow: rgba(140, 242, 196, 0.22);
  --amber: #f6c56f;
  --red: #ff7e6d;
  --purple: #c084fc;
  --blue: #38bdf8;
  --max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(101, 216, 255, 0.08), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(140, 242, 196, 0.08), transparent 26%),
    radial-gradient(circle at 50% 60%, rgba(192, 132, 252, 0.04), transparent 45%),
    linear-gradient(180deg, #000 0%, var(--bg) 38%, #071012 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* Background animated nodes */
.network-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.42;
  pointer-events: none;
  contain: paint;
  transform-origin: center;
  mask-image: radial-gradient(circle at 58% 42%, black 0%, black 44%, transparent 78%);
}

.network-bg__svg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  max-width: none;
  height: 100vh;
  transform: translate3d(calc(-50% + var(--network-x)), var(--network-y), 0) rotate(var(--network-rotate)) scale(1.08);
  transform-origin: center;
  transition: transform 120ms linear;
  filter: drop-shadow(0 0 18px rgba(101, 216, 255, 0.18));
}

.network-bg__lines path {
  stroke-dasharray: 12 18;
  animation: networkTrace 12s linear infinite;
}

.network-bg__lines path:nth-child(even) {
  animation-duration: 16s;
  animation-direction: reverse;
}

.network-bg__nodes circle {
  opacity: 0.34;
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 4.2s ease-in-out infinite;
}

.network-bg__nodes circle:nth-child(3n) {
  fill: var(--green);
  animation-delay: 0.7s;
}

.network-bg__nodes circle:nth-child(4n) {
  fill: var(--cyan);
  animation-delay: 1.3s;
}

/* Intro Overlay */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020406;
  transition:
    opacity 900ms ease,
    visibility 900ms ease,
    transform 900ms ease;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4vh);
  pointer-events: none;
}

.intro[hidden] {
  display: none;
}

.intro__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(101, 216, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 216, 255, 0.09) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, transparent, black 28%, black 70%, transparent);
  animation: gridFloat 12s linear infinite;
  opacity: calc(1 - (var(--intro-progress) * 0.38));
  transform: translateY(calc(var(--intro-progress) * -90px)) scale(calc(1 + (var(--intro-progress) * 0.08)));
}

.intro__horizon {
  position: absolute;
  left: 50%;
  bottom: -32vw;
  width: 142vw;
  height: 54vw;
  min-height: 420px;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(101, 216, 255, 0.45) 0%, rgba(14, 28, 36, 0.92) 16%, #020406 65%),
    radial-gradient(circle at 50% 0%, rgba(101, 216, 255, 0.35), transparent 50%),
    linear-gradient(90deg, rgba(20, 38, 46, 0.9), rgba(6, 12, 16, 0.95));
  box-shadow: 0 -20px 80px rgba(101, 216, 255, 0.35);
  opacity: 0.95;
  animation: horizonPulse 5s ease-in-out infinite alternate;
  filter: brightness(calc(1 + (var(--intro-progress) * 0.7)));
}

.intro__scanner {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent calc((var(--intro-progress) * 72%) + 10%),
    rgba(101, 216, 255, 0.22) calc((var(--intro-progress) * 72%) + 10.5%),
    transparent calc((var(--intro-progress) * 72%) + 11.2%),
    transparent 100%
  );
  mix-blend-mode: screen;
  opacity: calc(0.35 + (var(--intro-progress) * 0.45));
}

.intro__code {
  position: absolute;
  inset: 18% 7% auto;
  display: flex;
  justify-content: space-between;
  color: rgba(216, 237, 245, 0.35);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.7rem, 1.1vw, 0.95rem);
  text-transform: uppercase;
  transform: translateY(calc(var(--intro-progress) * -68px));
  opacity: calc(0.25 + (var(--intro-progress) * 0.42));
}

.intro__center {
  position: relative;
  z-index: 2;
  width: min(840px, calc(100% - 40px));
  text-align: center;
  transform: translateY(calc(-4vh - (var(--intro-progress) * 18vh))) scale(calc(1 + (var(--intro-progress) * 0.14)));
  animation: introReveal 1200ms ease both;
  opacity: calc(1 - (var(--intro-progress) * 0.68));
  filter: blur(calc(var(--intro-progress) * 5px));
}

.intro__logo-wrapper {
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
}

.intro__logo-img {
  height: 135px;
  max-width: 340px;
  object-fit: contain;
  filter: drop-shadow(0 0 35px rgba(101, 216, 255, 0.7)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  transition: transform 300ms ease;
}

.intro__center h1 {
  margin: 0;
  font-size: clamp(3.8rem, 11vw, 8.5rem);
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 0.92;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 40%, #d4f4ff 75%, #65d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 0 50px rgba(101, 216, 255, 0.5);
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.95));
}

.intro__center p {
  margin: 1.4rem 0 0;
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.95), 0 0 24px rgba(101, 216, 255, 0.5);
}

.intro__center .scan-label {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(6, 12, 16, 0.9);
  border: 1px solid rgba(140, 242, 196, 0.45);
  color: #8cf2c4;
  letter-spacing: 0.22em;
  font-weight: 800;
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  text-shadow: 0 0 14px rgba(140, 242, 196, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 1.1rem;
}

.intro__skip {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(18px, 4vw, 44px);
  z-index: 3;
  height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(101, 216, 255, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(10, 16, 22, 0.9);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  transition: all 200ms ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.intro__skip:hover {
  background: rgba(101, 216, 255, 0.25);
  border-color: var(--cyan);
  box-shadow: 0 0 25px var(--cyan-glow);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 8vh;
  z-index: 3;
  display: grid;
  gap: 10px;
  justify-items: center;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.34em;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  opacity: calc(1 - (var(--intro-progress) * 0.85));
}

.scroll-cue span {
  width: 2px;
  height: 42px;
  background: linear-gradient(transparent, var(--cyan), transparent);
  box-shadow: 0 0 10px var(--cyan);
  animation: cue 1.8s ease-in-out infinite;
}

/* Site Header */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  min-height: 74px;
  padding: 0 24px;
  border: 1px solid rgba(216, 237, 245, 0.16);
  border-radius: var(--radius-md);
  background: rgba(8, 11, 14, 0.88);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
  transition:
    border-color 250ms ease,
    background 250ms ease,
    box-shadow 250ms ease,
    top 250ms ease;
}

.site-header.is-scrolled {
  top: 10px;
  border-color: rgba(101, 216, 255, 0.35);
  background: rgba(5, 9, 12, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(101, 216, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.brand__logo-img {
  height: 48px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(101, 216, 255, 0.5)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
  transition: transform 200ms ease;
}

.brand:hover .brand__logo-img {
  transform: scale(1.08);
}

.brand__text {
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(101, 216, 255, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 180ms ease;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 200ms ease;
  box-shadow: 0 0 8px var(--cyan);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(101, 216, 255, 0.15), rgba(140, 242, 196, 0.15));
  border: 1px solid rgba(101, 216, 255, 0.4);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 200ms ease;
  cursor: pointer;
}

.header-action:hover {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #04090c;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(101, 216, 255, 0.4);
  transform: translateY(-1px);
}

/* Sections Base */
.section {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 46px auto auto -26px;
  width: 1px;
  height: 82px;
  background: linear-gradient(transparent, rgba(101, 216, 255, 0.42), transparent);
  opacity: 0.52;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 48px;
}

.section-heading.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.text-center .eyebrow {
  justify-content: center;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 340px;
  gap: 40px;
  align-items: center;
  min-height: 100vh;
  padding-top: 170px;
  padding-bottom: 90px;
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbital {
  position: absolute;
  border: 1px solid rgba(101, 216, 255, 0.18);
  border-radius: 50%;
  transform: rotateX(64deg);
}

.orbital--one {
  right: 5%;
  bottom: 15%;
  width: 580px;
  height: 580px;
  animation: spin 16s linear infinite, haloBreathe 5.5s ease-in-out infinite;
}

.orbital--two {
  right: 16%;
  bottom: 24%;
  width: 290px;
  height: 290px;
  border-color: rgba(140, 242, 196, 0.2);
  animation: spin 11s linear infinite reverse, haloBreathe 4s ease-in-out infinite;
}

.data-plane {
  position: absolute;
  right: -10%;
  bottom: 10%;
  width: 66%;
  height: 40%;
  background-image:
    linear-gradient(rgba(101, 216, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 216, 255, 0.11) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(640px) rotateX(64deg) rotateZ(-8deg);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  animation: planeDrift 8s ease-in-out infinite alternate;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__badge-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  margin-bottom: 24px;
  border-radius: 999px;
  border: 1px solid rgba(101, 216, 255, 0.45);
  background: rgba(8, 16, 22, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(101, 216, 255, 0.2);
}

.hero__badge-brand img {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(101, 216, 255, 0.6));
}

.hero__badge-brand span {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
}

.hero__copy {
  max-width: 720px;
  margin-top: 22px;
  color: var(--soft);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 220ms ease;
  border: none;
}

.button--primary {
  background: linear-gradient(135deg, #ffffff, var(--soft));
  color: #061014;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.18);
}

.button--primary:hover {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #03080a;
  box-shadow: 0 0 30px var(--cyan-glow);
  transform: translateY(-2px);
}

.button--ghost {
  border: 1px solid rgba(216, 237, 245, 0.24);
  background: rgba(12, 18, 22, 0.6);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.button--ghost:hover {
  border-color: var(--cyan);
  background: rgba(101, 216, 255, 0.1);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(101, 216, 255, 0.18);
  transform: translateY(-2px);
}

.button--cyan {
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  color: #040d12;
  font-weight: 700;
}

.button--cyan:hover {
  box-shadow: 0 0 25px var(--cyan-glow);
  transform: translateY(-2px);
}

/* Mission Panel */
.mission-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(101, 216, 255, 0.08);
}

.mission-panel p {
  margin: 0;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.mission-panel div {
  display: grid;
  gap: 4px;
}

.mission-panel strong {
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mission-panel span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* Capacitación & Cursos Section */
.training-section {
  border-top: 1px solid var(--line);
}

.training-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.training-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.training-feature-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--panel);
  transition: all 220ms ease;
}

.training-feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(101, 216, 255, 0.12);
}

.training-feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: inline-block;
}

.training-feature-card h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.training-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.training-terminal-box {
  position: relative;
  border: 1px solid rgba(101, 216, 255, 0.25);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 20%, rgba(101, 216, 255, 0.12), transparent 50%), #060b0e;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.training-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.terminal-logs {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--green);
}

.terminal-logs p {
  margin: 8px 0;
}

.terminal-logs .cyan {
  color: var(--cyan);
}

.terminal-logs .amber {
  color: var(--amber);
}

.terminal-logs .purple {
  color: var(--purple);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 6px;
}

.stat-box span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Clientes Insignia Showcase */
.clients-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 14, 18, 0.5), transparent);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.client-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  transition: all 250ms ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.client-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 250ms ease;
}

.client-card:hover {
  border-color: rgba(101, 216, 255, 0.35);
  transform: translateY(-5px);
  background: var(--panel-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(101, 216, 255, 0.08);
}

.client-card:hover::before {
  opacity: 1;
}

.client-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.client-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.client-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(101, 216, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(101, 216, 255, 0.25);
}

.client-scope {
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.client-deliverable {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  color: var(--green);
  border-top: 1px dashed rgba(216, 237, 245, 0.15);
  padding-top: 14px;
  margin: 0;
}

/* Productos Terminados Section */
.products-section {
  border-top: 1px solid var(--line);
}

.products-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 20, 0.6);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: rgba(101, 216, 255, 0.15);
  border-color: var(--cyan);
  color: var(--text);
  box-shadow: 0 0 16px var(--cyan-glow);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  border-color: var(--cyan);
  transform: translateY(-8px);
  background: var(--panel-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(101, 216, 255, 0.15);
}

.product-visual {
  position: relative;
  height: 190px;
  background: linear-gradient(135deg, rgba(14, 25, 32, 0.9), rgba(6, 12, 16, 0.95));
  overflow: hidden;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}

.product-visual__bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(101, 216, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 216, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.product-icon-display {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  background: rgba(8, 14, 18, 0.8);
  border: 1px solid rgba(101, 216, 255, 0.3);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(101, 216, 255, 0.15);
  transition: transform 250ms ease;
}

.product-card:hover .product-icon-display {
  transform: scale(1.1) rotate(2deg);
  border-color: var(--cyan);
}

.product-badge-live {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(140, 242, 196, 0.12);
  border: 1px solid rgba(140, 242, 196, 0.4);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: nodePulse 2s ease-in-out infinite;
}

.product-category-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(12, 18, 24, 0.85);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.product-subtitle {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: var(--cyan);
  font-weight: 600;
}

.product-desc {
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.product-tag {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 237, 245, 0.1);
  color: var(--muted);
}

.product-actions {
  display: flex;
  gap: 10px;
}

.product-btn-launch {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(101, 216, 255, 0.18), rgba(140, 242, 196, 0.18));
  border: 1px solid var(--cyan);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 200ms ease;
}

.product-btn-launch:hover {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #03080b;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.product-btn-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 200ms ease;
}

.product-btn-info:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--line-bright);
}

/* Divisiones / Soluciones Section */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent), var(--panel);
  transition: all 220ms ease;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -30% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(101, 216, 255, 0.74), transparent);
  transform: translateX(-35%);
  opacity: 0;
  transition: opacity 220ms ease, transform 500ms ease;
}

.service-card:hover {
  border-color: rgba(101, 216, 255, 0.42);
  transform: translateY(-5px);
  background: rgba(13, 22, 26, 0.88);
}

.service-card:hover::after {
  opacity: 1;
  transform: translateX(35%);
}

.service-card span {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.service-card h3 {
  margin: 50px 0 14px;
  font-size: 1.3rem;
  font-weight: 700;
}

.service-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Blog & Knowledge Hub (AdSense Optimization) */
.articles-section {
  border-top: 1px solid var(--line);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.article-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 220ms ease;
  cursor: pointer;
}

.article-card:hover {
  border-color: var(--cyan);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(101, 216, 255, 0.1);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.74rem;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.article-category {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-read-time {
  color: var(--muted);
}

.article-title {
  margin: 0 0 12px;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.article-excerpt {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green);
  transition: gap 180ms ease;
}

.article-card:hover .article-link {
  gap: 10px;
  color: var(--cyan);
}


/* Contact Section */
.contact-section {
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info-list {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(101, 216, 255, 0.1);
  border: 1px solid rgba(101, 216, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.contact-info-item p,
.contact-info-item a {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-form-box {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--soft);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 13, 0.8);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 180ms ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
  background: rgba(10, 16, 22, 0.95);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 0.8fr;
  gap: 60px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 44px;
  border-top: 1px solid var(--line);
}

.footer__brand p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
  margin: 18px 0 26px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer__links div {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer__links h3 {
  margin: 0 0 8px;
  color: var(--soft);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 180ms ease;
}

.footer__links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(216, 237, 245, 0.08);
}

.footer-copy {
  color: rgba(216, 237, 245, 0.45);
  font-size: 0.78rem;
  margin: 0;
}

.transmission {
  color: rgba(216, 237, 245, 0.38);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  margin: 0;
}

/* Modal Windows (Articles & Legal) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 4, 6, 0.85);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  position: relative;
  width: min(840px, 100%);
  max-height: 88vh;
  background: #090e12;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(101, 216, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 18, 24, 0.8);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.modal-close {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 180ms ease;
}

.modal-close:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(255, 126, 109, 0.1);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

.modal-body h4 {
  color: var(--cyan);
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.modal-body ul {
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 8px;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 16, 0.8);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  background: rgba(10, 18, 24, 0.95);
  border: 1px solid var(--green);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--green-glow);
  transform: translateY(100px);
  opacity: 0;
  transition: all 300ms ease;
}

.toast-msg.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Animations & Transitions */
.reveal {
  opacity: 0;
  transform: translateY(38px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 700ms ease,
    transform 700ms ease,
    filter 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes introReveal {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(-4vh) scale(0.96);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-4vh) scale(1);
  }
}

@keyframes gridFloat {
  to {
    background-position: 74px 74px;
  }
}

@keyframes horizonPulse {
  to {
    filter: brightness(1.18);
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes cue {
  50% {
    transform: translateY(12px);
    opacity: 0.42;
  }
}

@keyframes spin {
  to {
    transform: rotateX(64deg) rotateZ(360deg);
  }
}

@keyframes panelSpin {
  to {
    transform: perspective(420px) rotateX(62deg) rotateZ(342deg);
  }
}

@keyframes networkTrace {
  to {
    stroke-dashoffset: -180;
  }
}

@keyframes nodePulse {
  50% {
    opacity: 0.82;
    transform: scale(1.6);
  }
}

@keyframes haloBreathe {
  50% {
    box-shadow: 0 0 54px rgba(101, 216, 255, 0.16);
  }
}

@keyframes planeDrift {
  to {
    transform: perspective(640px) rotateX(64deg) rotateZ(-5deg) translate3d(-28px, -18px, 0);
  }
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .mission-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .training-layout {
    grid-template-columns: 1fr;
  }

  .clients-grid,
  .products-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .mission-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section,
  .footer {
    width: min(100% - 28px, var(--max));
    padding: 70px 0;
  }

  .clients-grid,
  .products-grid,
  .articles-grid,
  .service-grid,
  .training-features,
  .stats-grid,
  .footer__links {
    grid-template-columns: 1fr;
  }

  .intro__center h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .intro__logo-img {
    height: 60px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .contact-form-box {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .intro {
    position: relative;
    min-height: 100vh;
  }

  .network-bg__lines path,
  .network-bg__nodes circle,
  .training-terminal-box::before {
    animation: none !important;
  }
}
