/* ============================================================
   MMG Consultor · v2
   Sistema visual: navy profundo + teal + azul + lima
   ============================================================ */

:root {
  --navy-950: #04111C;
  --navy-900: #071A2B;
  --navy-800: #0A1F33;
  --navy-700: #0F2B43;
  --teal: #00C2A0;
  --teal-2: #4BE8CB;
  --teal-dark: #007A66;
  --blue: #2F8CFF;
  --lime: #A3E635;
  --paper: #F3F7F8;
  --paper-2: #E9F0F3;
  --white: #FFFFFF;
  --ink: #081824;
  --muted: #5B7080;
  --muted-2: #8AA0AE;
  --line: rgba(8, 24, 36, .10);
  --line-dark: rgba(255, 255, 255, .10);
  --font-display: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  --shadow-sm: 0 10px 26px rgba(3, 15, 25, .08);
  --shadow-md: 0 24px 60px rgba(3, 15, 25, .12);
  --shadow-lg: 0 50px 110px rgba(3, 15, 25, .30);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; }
::selection { background: rgba(0, 194, 160, .22); }

:focus-visible {
  outline: 3px solid rgba(0, 194, 160, .55);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--lime));
  box-shadow: 0 0 14px rgba(0, 194, 160, .55);
  transition: width .12s linear;
}

/* ---------- Tipografía y utilidades ---------- */

.micro {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.text-gradient {
  background: linear-gradient(90deg, var(--teal-2), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-green {
  background: linear-gradient(90deg, var(--lime), var(--teal-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-dark {
  background: linear-gradient(90deg, var(--teal-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  position: relative;
  padding: 64px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}
.section-head h2 {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--navy-900);
  text-wrap: balance;
}
.section-head p:not(.section-kicker) {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.section-kicker span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 194, 160, .12);
  font-size: 10px;
  letter-spacing: 0;
}
.section-kicker.light { color: var(--teal-2); }
.section-kicker.light span {
  background: rgba(0, 194, 160, .16);
  color: var(--teal-2);
}

.section-head.light h2 { color: var(--white); }
.section-head.light p:not(.section-kicker) { color: #B8CBD6; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn-primary {
  background: linear-gradient(135deg, var(--teal), #00A98E);
  color: #03121D;
  box-shadow: 0 12px 32px rgba(0, 194, 160, .28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 194, 160, .38);
  filter: brightness(1.04);
}

.btn-soft {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: var(--white);
}
.btn-soft:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 26, 43, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(7, 26, 43, .95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 82px;
  transition: height .3s ease;
}
.site-header.scrolled .nav-shell { height: 66px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand-mark { height: 31px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 7px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #B9CBD6;
  text-decoration: none;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-2);
  transition: right .25s ease;
}
.nav a:hover,
.nav a.active { color: var(--white); }
.nav a:hover::after,
.nav a.active::after { right: 0; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(0, 194, 160, .36);
  border-radius: 999px;
  background: rgba(0, 194, 160, .08);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.nav-cta svg { width: 15px; height: 15px; }
.nav-cta:hover {
  background: rgba(0, 194, 160, .16);
  border-color: rgba(0, 194, 160, .6);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 9px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 150px 0 0;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 80% 0%, #0F3550 0%, #071A2B 45%, #04111C 100%);
  color: var(--white);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .62;
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 65% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 65% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .55;
}
.hero-glow-a {
  top: -280px;
  right: -160px;
  background: radial-gradient(circle, rgba(0, 194, 160, .35), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero-glow-b {
  left: -300px;
  bottom: -300px;
  background: radial-gradient(circle, rgba(47, 140, 255, .28), transparent 65%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 80px;
}

.hero-copy { padding-top: 10px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #C7D8E2;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 0 4px rgba(0, 194, 160, .15);
  animation: pulseDot 2.4s ease-out infinite;
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero h1 .line { display: block; white-space: nowrap; }

.hero-lead {
  max-width: 54ch;
  margin-bottom: 30px;
  font-size: 17.5px;
  line-height: 1.7;
  color: #B9CBD6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-proof strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--white);
}
.hero-proof span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8FA9B8;
}

/* ---------- Hero: panel ---------- */

.hero-stage {
  position: relative;
  perspective: 1200px;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease-out;
  will-change: transform;
}

.stage-halo {
  position: absolute;
  inset: -70px;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(0, 194, 160, .28), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.main-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 50px 110px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .15);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.traffic { display: inline-flex; gap: 5px; }
.traffic i { width: 7px; height: 7px; border-radius: 50%; background: #FF7A7A; }
.traffic i:nth-child(2) { background: #FFC46B; }
.traffic i:nth-child(3) { background: #6FE0B0; }
.window-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: #AFC4CF;
}
.window-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-2);
}
.window-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 10px var(--teal-2);
  animation: pulseDot 1.8s ease-out infinite;
}
.window-live-soft { color: var(--muted); }
.window-live-soft i { background: var(--teal); box-shadow: none; animation: none; }

.window-body { padding: 18px 18px 14px; }

.dash-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.dash-topline .micro { margin-bottom: 3px; font-size: 8px; }
.dash-topline strong {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy-900);
}
.delta {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 194, 160, .12);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}
.dash-range {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
  white-space: nowrap;
}

.chart-lg { position: relative; margin: 8px 0; }
.chart-lg svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: drawLine 2.2s cubic-bezier(.2, .7, .2, 1) .35s forwards;
}
.chart-area { opacity: 0; animation: fadeIn 1.2s ease 1s forwards; }
.chart-dots { opacity: 0; animation: fadeIn .6s ease 1.5s forwards; }
.chart-tag {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 8px;
  margin: 8px 0;
}
.mini-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #F8FAFB;
}
.mini-card .micro { font-size: 8px; letter-spacing: .07em; }
.mini-card strong {
  display: block;
  margin: 2px 0 6px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--navy-900);
}
.mini-bar {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #E4EBEF;
}
.mini-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}
.mini-trend {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.mini-trend i { flex: 1; border-radius: 2px 2px 0 0; background: var(--teal); opacity: .4; }
.mini-trend i:nth-child(1) { height: 35%; }
.mini-trend i:nth-child(2) { height: 55%; }
.mini-trend i:nth-child(3) { height: 44%; }
.mini-trend i:nth-child(4) { height: 72%; }
.mini-trend i:nth-child(5) { height: 90%; background: var(--blue); opacity: .55; }

.mini-donut { display: flex; align-items: center; gap: 9px; }
.donut {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 92%, #E4EBEF 92% 100%);
}
.donut::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #F8FAFB;
}
.donut span {
  position: relative;
  z-index: 1;
  font-size: 8px;
  font-weight: 700;
  color: var(--navy-900);
}

.dash-table { margin-top: 6px; border-top: 1px solid var(--line); }
.tr {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr .55fr;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(8, 24, 36, .05);
  font-size: 8.5px;
  color: var(--muted);
}
.tr:last-child { border-bottom: 0; }
.tr.th {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.tr span:nth-child(n+2) { text-align: right; }
.tr .up { color: var(--teal-dark); font-weight: 700; }
.tr .down { color: #C25B4B; font-weight: 700; }

.demo-label {
  display: block;
  margin-top: 5px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #A9B8C1;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 24, 36, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
  animation: floatY 6s ease-in-out infinite;
}
.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900);
}
.float-card small {
  display: block;
  font-size: 8.5px;
  line-height: 1.3;
  color: var(--muted);
}
.float-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 194, 160, .12);
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
}
.float-icon svg { width: 14px; height: 14px; }
.float-b { bottom: -22px; left: 18px; animation-delay: 1.2s; }
.float-c { top: -18px; right: -16px; animation-delay: 2.2s; }

.hero-marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(4, 17, 28, .55);
  backdrop-filter: blur(10px);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  padding: 13px 0;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9FB6C3;
  white-space: nowrap;
}
.marquee-track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .7;
}
.js .marquee-track { animation: marquee 38s linear infinite; }
.hero-marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Sectores ---------- */

.trust-strip {
  padding: 22px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.trust-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.trust-items span {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  color: #3D5362;
}
.trust-items span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -15px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #C6D3DA;
  transform: translateY(-50%);
}

/* ---------- Problemas ---------- */

.problems { background: var(--white); }

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

.problem-card {
  position: relative;
  overflow: hidden;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.problem-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 194, 160, .35);
  box-shadow: var(--shadow-md);
}

.problem-visual {
  position: relative;
  height: 160px;
  margin: -28px -26px 24px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #F0F8F6, #EAF2F8);
}
.problem-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 24, 36, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 24, 36, .04) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 78%);
}

.card-index {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--teal-dark);
}
.problem-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy-900);
}
.problem-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Escena: datos dispersos */
.scatter { position: absolute; inset: 0; }
.scatter svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scatter svg path {
  fill: none;
  stroke: rgba(0, 194, 160, .38);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}
.doc {
  position: absolute;
  display: grid;
  align-content: start;
  gap: 5px;
  width: 64px;
  height: 78px;
  padding: 12px 10px;
  border: 1px solid #D8E4E9;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 20px rgba(8, 24, 36, .08);
}
.doc i { display: block; height: 4px; border-radius: 3px; background: #E2EBEF; }
.doc i:first-child { width: 60%; background: #BFD9D3; }
.doc-a { top: 28px; left: 36px; transform: rotate(-9deg); }
.doc-b { top: 22px; left: 118px; transform: rotate(5deg); }
.doc-c { top: 62px; left: 200px; transform: rotate(-4deg); }
.doc-d { top: 86px; left: 72px; transform: rotate(7deg); opacity: .75; }

/* Escena: procesos manuales */
.manual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-bottom: 24px;
}
.manual-node {
  padding: 8px 9px;
  border: 1px solid #D8E4E9;
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 6px 14px rgba(8, 24, 36, .06);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  color: var(--navy-900);
}
.manual-arrow { color: #9DB4BF; font-size: 11px; }
.manual-loop {
  position: absolute;
  right: 22px;
  bottom: 24px;
  color: var(--teal-dark);
  font-size: 18px;
  animation: spin 5s linear infinite;
}
.manual-caption {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9AADB7;
  white-space: nowrap;
}

/* Escena: decisiones tarde */
.late { position: absolute; inset: 0; }
.clock {
  position: absolute;
  top: 30px;
  left: 34px;
  width: 76px;
  height: 76px;
  border: 2px solid #D6E3E9;
  border-radius: 50%;
  background: var(--white);
}
.clock::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy-900);
  transform: translate(-50%, -50%);
}
.clock span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 24px;
  border-radius: 2px;
  background: var(--navy-900);
  transform-origin: bottom;
  transform: translate(-50%, -100%) rotate(35deg);
}
.clock i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 17px;
  border-radius: 2px;
  background: var(--teal);
  transform-origin: bottom;
  transform: translate(-50%, -100%) rotate(120deg);
}
.late-bars {
  position: absolute;
  right: 28px;
  bottom: 26px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 70px;
}
.late-bars i { width: 11px; border-radius: 3px 3px 0 0; background: #DCE8EC; }
.late-bars i:nth-child(1) { height: 24%; }
.late-bars i:nth-child(2) { height: 44%; }
.late-bars i:nth-child(3) { height: 36%; }
.late-bars i:nth-child(4) { height: 58%; }
.late-bars i:nth-child(5) { height: 48%; background: #F2C46B; }
.late-bars i:nth-child(6) { height: 68%; background: #D97B68; }
.late-tag {
  position: absolute;
  left: 36px;
  bottom: 22px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #C25B4B;
}

/* ---------- Servicios ---------- */

.services { background: var(--paper); }

.service-switcher {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.tabs {
  display: flex;
  gap: 5px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: #EEF4F6;
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  flex: 1;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tab span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  color: var(--teal-dark);
}
.tab:not(.is-active) {
  border-color: var(--line);
  background: #F8FBFC;
}
.tab.is-active {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(7, 26, 43, .18);
}
.tab.is-active span { color: var(--teal-2); }
.tab:hover:not(.is-active) { background: #fff; color: var(--navy-900); border-color: rgba(0, 194, 160, .35); }

.service-panel {
  display: none;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: center;
  padding: 48px;
}
.service-panel.is-active {
  display: grid;
  animation: panelIn .5s cubic-bezier(.2, .7, .2, 1);
}

.service-copy .micro { margin-bottom: 12px; }
.service-copy h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--navy-900);
}
.service-copy h3 span { color: var(--teal-dark); }
.service-copy > p:not(.micro) {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.45;
  color: #334656;
}
.check-list li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 155, 128, .12);
}
.check-list li::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 5px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: rotate(-45deg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(0, 122, 102, .3);
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  text-decoration: none;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.service-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #EEF8F5, #EAF2F8);
}
.service-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 24, 36, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 24, 36, .04) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 80%);
}

.report-window {
  position: absolute;
  top: 30px;
  left: 26px;
  right: 26px;
  z-index: 2;
  overflow: hidden;
  border: 1px solid #D8E4E9;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 50px rgba(8, 24, 36, .14);
}
.report-body { padding: 18px; }
.report-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.report-kpis .micro { font-size: 7.5px; }
.report-kpis strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--navy-900);
}
.report-kpis .ok { color: var(--teal-dark); }
.report-chart { display: block; width: 100%; height: 110px; margin: 8px 0; overflow: visible; }
.report-bars rect {
  fill: var(--teal);
  opacity: .22;
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
}
.report-bars rect:nth-child(even) { fill: var(--blue); }
.service-panel.is-active .report-bars rect { animation: growBar .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.service-panel.is-active .report-bars rect:nth-child(2) { animation-delay: .06s; }
.service-panel.is-active .report-bars rect:nth-child(3) { animation-delay: .12s; }
.service-panel.is-active .report-bars rect:nth-child(4) { animation-delay: .18s; }
.service-panel.is-active .report-bars rect:nth-child(5) { animation-delay: .24s; }
.service-panel.is-active .report-bars rect:nth-child(6) { animation-delay: .30s; }
.service-panel.is-active .report-bars rect:nth-child(7) { animation-delay: .36s; }
.service-panel.is-active .report-bars rect:nth-child(8) { animation-delay: .42s; }
.service-panel.is-active .report-bars rect:nth-child(9) { animation-delay: .48s; }
.report-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
}
.service-panel.is-active .report-line { animation: drawLine 1.6s ease .45s forwards; }
.report-rows { display: grid; gap: 4px; margin-top: 5px; }
.report-rows span { display: block; height: 3px; border-radius: 2px; background: #EDF2F4; }
.report-rows span:nth-child(2) { width: 78%; }
.report-rows span:nth-child(3) { width: 55%; }

.report-table {
  display: grid;
  gap: 1px;
  margin-top: 8px;
  border-top: 1px solid #EEF3F5;
}
.report-table > div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F7;
  font-size: 8.5px;
  color: var(--muted);
}
.report-table > div:last-child { border-bottom: 0; }
.report-table strong { font-size: 8.5px; color: var(--navy-900); }
.report-table em {
  min-width: 34px;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 6.5px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}
.report-table .up { background: rgba(0, 194, 160, .12); color: var(--teal-dark); }
.report-table .down { background: rgba(194, 91, 75, .12); color: #C25B4B; }

.report-float {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(8, 24, 36, .08);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(8, 24, 36, .14);
}
.report-float-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(0, 194, 160, .12);
  color: var(--teal-dark);
}
.report-float-icon svg { width: 13px; height: 13px; }
.report-float strong { display: block; font-family: var(--font-display); font-size: 9.5px; color: var(--navy-900); }
.report-float small { display: block; font-size: 8px; color: var(--muted); }

.chip {
  position: absolute;
  z-index: 3;
  padding: 5px 9px;
  border: 1px solid rgba(8, 24, 36, .08);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 10px 20px rgba(8, 24, 36, .1);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy-900);
  animation: floatY 5.5s ease-in-out infinite;
}
.chip-a { top: 14px; right: 16px; }
.chip-b { bottom: 16px; left: 18px; animation-delay: 1.1s; }
.chip-c { top: 14px; left: 18px; animation-delay: 2s; }

.system-map { position: absolute; inset: 18px; }
.system-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.system-lines path {
  fill: none;
  stroke: rgba(0, 194, 160, .45);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  animation: dashMove 2s linear infinite;
}
.node {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 8px 11px;
  border: 1px solid #D8E4E9;
  border-radius: 9px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(8, 24, 36, .08);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--navy-900);
  white-space: nowrap;
}
.node-center {
  top: 50%;
  left: 50%;
  padding: 14px 18px;
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  box-shadow: 0 14px 30px rgba(7, 26, 43, .25);
}
.node-a { top: 26%; left: 22%; }
.node-b { top: 26%; left: 78%; }
.node-c { top: 74%; left: 22%; }
.node-d { top: 74%; left: 78%; }
.node-e { top: 14%; left: 50%; }
.node-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(0, 194, 160, .4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 2.6s ease-out infinite;
}

/* ---------- Enfoque / flujo ---------- */

.flow-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 0 56px;
  overflow: hidden;
  border-radius: 44px;
  background: var(--navy-900);
  color: var(--white);
}
.flow-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 194, 160, .18), transparent 42%),
    radial-gradient(circle at 10% 85%, rgba(47, 140, 255, .14), transparent 40%);
  pointer-events: none;
}
.flow-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 80%);
  pointer-events: none;
}
.flow-section .container { position: relative; z-index: 2; }

.pipeline {
  display: grid;
  grid-template-columns: 1fr 76px 1fr 76px 1fr;
  align-items: center;
}
.pipe-stage {
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
}
.pipe-num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--teal-2);
}
.pipe-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 16px 0;
  border-radius: 13px;
  background: rgba(0, 194, 160, .12);
  color: var(--teal-2);
}
.pipe-icon svg { width: 24px; height: 24px; }
.pipe-stage h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
}
.pipe-stage p { font-size: 14px; line-height: 1.6; color: #B8CBD6; }

.pipe-connector {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, .14);
}
.pipe-connector span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 16px var(--teal-2);
  transform: translate(-50%, -50%);
  animation: pipeMove 3.2s linear infinite;
}

.flow-board {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 30px;
  align-items: center;
  margin-top: 36px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .03);
}
.flow-board-head .micro { color: var(--teal-2); }
.flow-board-head p {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
}
.flow-board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.flow-board-grid strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--white);
}
.flow-board-grid span { font-size: 12.5px; line-height: 1.5; color: #9FB6C3; }

/* ---------- Experiencia / mockups ---------- */

.showcase { background: var(--white); }

.site-proof {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 30px;
  padding: 24px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: linear-gradient(120deg, var(--navy-900), #0F3554);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.site-proof::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 80% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 80% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}
.site-proof-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(75, 232, 203, .25);
  border-radius: 14px;
  background: rgba(0, 194, 160, .12);
  color: var(--teal-2);
}
.site-proof-icon svg { width: 24px; height: 24px; }
.site-proof > div { position: relative; z-index: 1; }
.site-proof .micro { margin-bottom: 4px; color: var(--teal-2); }
.site-proof h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
}
.site-proof p { font-size: 13px; line-height: 1.55; color: #B9CBD6; }
.site-proof .text-link {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  color: var(--teal-2);
  border-color: rgba(75, 232, 203, .35);
}

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

.showcase-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 194, 160, .35);
  box-shadow: var(--shadow-md);
}

.mock {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #EEF7F5, #EAF2F8);
  padding: 18px;
}
.mock::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 24, 36, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 24, 36, .04) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 78%);
}

.mock-browser {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #D8E4E9;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(8, 24, 36, .12);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid #E8EFF2;
  background: #F8FAFB;
}
.mock-bar i { width: 5px; height: 5px; border-radius: 50%; background: #DCE6EA; }
.mock-bar i:nth-child(1) { background: #FF9A9A; }
.mock-bar i:nth-child(2) { background: #FFC46B; }
.mock-bar i:nth-child(3) { background: #6FD3A8; }
.mock-bar span {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 7px;
  color: #9AADB7;
}

.mock-erp-body,
.mock-app-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.mock-side {
  display: grid;
  align-content: start;
  gap: 7px;
  width: 48px;
  padding: 10px 8px;
  border-right: 1px solid #E8EFF2;
  background: #F6F9FA;
}
.mock-side b { display: block; width: 22px; height: 22px; border-radius: 6px; background: var(--navy-900); }
.mock-side span { display: block; height: 4px; border-radius: 3px; background: #E1EAEE; }
.mock-side span:nth-child(2) { width: 80%; }
.mock-side span:nth-child(3) { width: 60%; }
.mock-side span:nth-child(4) { width: 90%; }
.mock-side span:nth-child(5) { width: 55%; }

.mock-main { flex: 1; min-width: 0; padding: 10px; }
.mock-kpis { display: flex; gap: 8px; }
.mock-kpis div {
  flex: 1;
  padding: 7px;
  border: 1px solid #E5EDF0;
  border-radius: 7px;
  background: #FBFCFD;
}
.mock-kpis small {
  display: block;
  font-size: 6.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8AA0AE;
}
.mock-kpis strong { display: block; font-size: 10.5px; color: var(--navy-900); }
.mock-kpis .ok { color: var(--teal-dark); }

.mock-table { margin-top: 8px; border-top: 1px solid #EEF3F5; }
.mock-tr {
  display: grid;
  grid-template-columns: 1.3fr 1fr .8fr;
  gap: 4px;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F7;
  font-size: 7.5px;
  color: #5B7080;
}
.mock-th {
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9AADB7;
}
.pill {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 99px;
  font-size: 5.5px;
  font-weight: 700;
  text-align: center;
}
.pill.ok { background: rgba(0, 194, 160, .12); color: var(--teal-dark); }
.pill.warn { background: rgba(255, 180, 60, .2); color: #9A6200; }

.mock-app-list { display: grid; gap: 6px; margin-top: 8px; }
.mock-app-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #EEF3F5;
  border-radius: 6px;
}
.avatar { width: 18px; height: 18px; border-radius: 50%; background: #D9E8E4; flex: 0 0 auto; }
.mock-app-row div { flex: 1; min-width: 0; }
.mock-app-row b { display: block; font-size: 7.5px; color: var(--navy-900); }
.mock-app-row small { display: block; font-size: 6.5px; color: #8AA0AE; }
.mock-app-row strong { font-size: 7.5px; color: var(--navy-900); }

.mock-web-body { flex: 1; min-height: 0; overflow: hidden; }
.mock-web-hero {
  display: grid;
  align-content: center;
  gap: 5px;
  height: 60%;
  padding: 12px;
  background: linear-gradient(135deg, #0A1F33, #0F3B4F);
  color: #fff;
}
.mock-web-kicker { display: block; width: 34px; height: 4px; border-radius: 3px; background: var(--teal-2); }
.mock-web-hero strong { font-family: var(--font-display); font-size: 12px; line-height: 1.1; }
.mock-web-btn { display: block; width: 42px; height: 10px; border-radius: 99px; background: var(--teal); }
.mock-web-cards { display: flex; gap: 5px; padding: 8px 10px; }
.mock-web-cards i { flex: 1; height: 34px; border-radius: 5px; background: #EDF3F5; border: 1px solid #E1EAEE; }

.mock-phone-wrap {
  display: grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(135deg, #EEF7F5, #EAF2F8);
}
.mock-phone {
  position: relative;
  width: 120px;
  height: 200px;
  overflow: hidden;
  border: 6px solid var(--navy-900);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 22px 44px rgba(8, 24, 36, .22);
}
.phone-notch {
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 2;
  width: 34px;
  height: 6px;
  border-radius: 99px;
  background: var(--navy-900);
  transform: translateX(-50%);
}
.phone-screen {
  position: absolute;
  inset: 12px 6px 6px;
  overflow: hidden;
  border-radius: 12px;
  background: #EDF6F4;
}
.scan-frame {
  position: absolute;
  top: 30px;
  left: 14px;
  right: 14px;
  height: 92px;
  border: 1.5px solid var(--teal);
  border-radius: 6px;
  box-shadow: 0 0 0 999px rgba(0, 194, 160, .05);
}
.scan-frame::before,
.scan-frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--teal-dark);
  border-style: solid;
}
.scan-frame::before { top: -2px; left: -2px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.scan-frame::after { right: -2px; bottom: -2px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.scan-line {
  position: absolute;
  top: 34px;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(0, 194, 160, .7);
  animation: scan 3s ease-in-out infinite;
}
.phone-title {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy-900);
  text-align: center;
}
.phone-bar {
  position: absolute;
  right: 30px;
  bottom: 24px;
  left: 30px;
  height: 3px;
  border-radius: 3px;
  background: #D7E6E3;
}
.phone-chip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 4px 8px;
  border: 1px solid rgba(8, 24, 36, .08);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(8, 24, 36, .1);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .04em;
  color: var(--navy-900);
}

.mock-reg-body { flex: 1; min-height: 0; padding: 10px; }
.mock-progress {
  height: 5px;
  margin: 8px 0;
  overflow: hidden;
  border-radius: 99px;
  background: #E7EEF1;
}
.mock-progress i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.mock-odoo {
  display: grid;
  place-items: center;
  padding: 0;
}
.odoo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 230px;
}
.odoo-tile {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 6px 4px;
  border: 1px solid #D8E4E9;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 4px 10px rgba(8, 24, 36, .06);
  font-family: var(--font-mono);
  font-size: 6.5px;
  color: var(--navy-900);
  text-align: center;
}
.odoo-tile:nth-child(2n) { background: #F2F9F7; }
.odoo-tile:nth-child(3n) { background: #EDF4FA; }
.odoo-chip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 4px 8px;
  border: 1px solid rgba(8, 24, 36, .08);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(8, 24, 36, .1);
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--navy-900);
}

.showcase-meta { padding: 22px 24px 26px; }
.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 194, 160, .1);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.showcase-meta h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy-900);
}
.showcase-meta p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

.projects-note {
  margin-top: 26px;
  font-size: 12.5px;
  font-style: italic;
  color: #7A8A97;
}

/* ---------- Método ---------- */

.method { background: var(--paper); }

.method-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 34px;
}
.method-line {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  background: #D8E4E9;
}
.method-line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transition: width 1.5s cubic-bezier(.2, .7, .2, 1) .2s;
}
.method.is-visible .method-line span { width: 100%; }

.method-step { position: relative; padding-top: 26px; }
.method-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px var(--paper);
}
.method-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--teal-dark);
}
.method-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: var(--shadow-sm);
}
.method-icon svg { width: 22px; height: 22px; }
.method-step h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
}
.method-step p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- Sobre mí ---------- */

.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.portrait-ring {
  position: relative;
  width: min(360px, 80%);
  aspect-ratio: 1;
  padding: 9px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--teal), var(--blue), var(--lime), var(--teal));
  box-shadow: 0 30px 70px rgba(8, 24, 36, .18);
}
.portrait-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(0, 194, 160, .12);
  filter: blur(30px);
}
.portrait-ring picture,
.portrait-ring img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.portrait-ring img { border: 5px solid var(--white); }

.portrait-badge {
  position: absolute;
  top: 32px;
  right: 0;
  display: grid;
  gap: 1px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.portrait-badge strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: var(--teal-2);
}
.portrait-badge span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #B9CBD6;
}
.about-mini-card {
  position: absolute;
  bottom: 18px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.mini-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 194, 160, .12);
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
}
.about-mini-card strong { display: block; font-size: 11px; color: var(--navy-900); }
.about-mini-card span { display: block; font-size: 9.5px; line-height: 1.4; color: var(--muted); }

/* ---------- Ficha de perfil (sin foto recortada) ---------- */

.profile-orbit {
  position: absolute;
  width: min(430px, 92%);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 194, 160, .22);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.profile-orbit::before,
.profile-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(47, 140, 255, .18);
}
.profile-orbit::before { inset: 34px; }
.profile-orbit::after { inset: 72px; border-style: solid; border-color: rgba(0, 194, 160, .12); }
.profile-orbit span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 16px rgba(75, 232, 203, .65);
}
.profile-orbit span:nth-child(1) { top: 8%; left: 28%; }
.profile-orbit span:nth-child(2) { top: 68%; right: 2%; background: var(--blue); }
.profile-orbit span:nth-child(3) { bottom: 4%; left: 30%; background: var(--lime); }

.profile-card-v2 {
  position: relative;
  z-index: 2;
  width: min(370px, 94%);
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 26px;
  background: linear-gradient(160deg, var(--navy-900), #0D3147);
  color: var(--white);
  box-shadow: 0 36px 80px rgba(8, 24, 36, .26);
}
.profile-card-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}
.profile-card-v2::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 160, .22), transparent 65%);
  filter: blur(14px);
  pointer-events: none;
}
.profile-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.profile-emblem { height: 26px; width: auto; }
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #B9CBD6;
}
.profile-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 0 3px rgba(75, 232, 203, .12);
}
.profile-monogram {
  position: relative;
  z-index: 1;
  margin: 18px 0 -14px;
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.08em;
  color: rgba(255, 255, 255, .07);
}
.profile-card-v2 h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
}
.profile-role {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #B9CBD6;
}
.profile-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.profile-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  color: var(--teal-2);
}
.profile-stats span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8FA9B8;
}
.profile-line {
  width: 48px;
  height: 2px;
  margin-bottom: 13px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}
.profile-quote {
  position: relative;
  z-index: 1;
  font-size: 12px;
  line-height: 1.6;
  color: #D7E5EC;
}
.profile-badge {
  position: absolute;
  right: 0;
  bottom: 8px;
  z-index: 3;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.about-copy h2 {
  margin: 14px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--navy-900);
  text-wrap: balance;
}
.about-copy > p:not(.section-kicker):not(.credentials) {
  margin-bottom: 15px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #3B4D5C;
}
.credentials {
  margin: 22px 0 20px !important;
  padding-left: 14px;
  border-left: 3px solid var(--teal);
  font-size: 13px !important;
  color: var(--muted) !important;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.about-tags span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #F8FAFB;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #3D5362;
}

/* ---------- Herramientas ---------- */

.stack {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background: var(--paper);
  color: var(--ink);
}
.stack-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 24, 36, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 24, 36, .04) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 80%);
  pointer-events: none;
}
.stack .container { position: relative; z-index: 2; }
.stack-marquee {
  display: grid;
  gap: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.stack-track {
  display: flex;
  gap: 10px;
  width: max-content;
}
.js .stack-track { animation: marquee 42s linear infinite; }
.js .stack-track.reverse { animation-direction: reverse; animation-duration: 50s; }
.stack-chip {
  display: inline-flex;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(8, 24, 36, .04);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: #3D5362;
  white-space: nowrap;
}
.stack:hover .stack-track { animation-play-state: paused; }

/* ---------- Contacto ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background: radial-gradient(100% 120% at 80% 0%, #0F3550 0%, #071A2B 50%, #04111C 100%);
  color: var(--white);
}
.cta-glow {
  position: absolute;
  top: -260px;
  right: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 160, .25), transparent 65%);
  filter: blur(80px);
  pointer-events: none;
}
.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(circle at 30% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 30% 50%, #000 0%, transparent 75%);
  pointer-events: none;
}
.cta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.cta h2 {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.04em;
}
.cta p:not(.section-kicker):not(.cta-meta) {
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.7;
  color: #B9CBD6;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}
.cta-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8FA9B8;
}
.cta-card {
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .35);
}
.cta-card-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 194, 160, .1);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.qr-wrap {
  width: 190px;
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.qr-wrap img { width: 100%; height: auto; }
.cta-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy-900);
}
.cta-phone {
  display: block;
  margin: 4px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
}
.cta-card small { display: block; font-size: 11px; line-height: 1.5; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 24px;
  background: var(--navy-950);
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-logo { width: 150px; height: auto; margin-bottom: 18px; }
.footer-brand p {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: #B9CBD6;
}
.footer-person { margin-top: 8px; color: var(--white) !important; font-weight: 600; }
.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-2);
}
.footer-col a,
.footer-col p {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #B9CBD6;
  text-decoration: none;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: #78909E;
}

/* ---------- WhatsApp flotante ---------- */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(37, 211, 102, .5);
  border-radius: 50%;
  animation: ringPulse 2.8s ease-out infinite;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Reveal ---------- */

.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .75s cubic-bezier(.2, .6, .2, 1),
    transform .75s cubic-bezier(.2, .6, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes growBar { to { transform: scaleY(1); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(75, 232, 203, .45); }
  70% { box-shadow: 0 0 0 7px rgba(75, 232, 203, 0); }
  100% { box-shadow: 0 0 0 0 rgba(75, 232, 203, 0); }
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-40px, 30px, 0) scale(1.08); }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes dashMove { to { stroke-dashoffset: -40; } }
@keyframes pipeMove {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes pulseRing {
  0% { transform: translate(-50%, -50%) scale(.8); opacity: .7; }
  70% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes ringPulse {
  0% { transform: scale(.92); opacity: .65; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes scan {
  0%, 100% { top: 34px; opacity: .5; }
  50% { top: 112px; opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .hero-inner { gap: 40px; }
  .hero h1 { font-size: clamp(44px, 5.2vw, 68px); }
  .service-panel { gap: 32px; padding: 40px; }
  .about-grid { gap: 48px; }
  .cta-grid { gap: 40px; }
}

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

  .nav.open {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: var(--navy-900);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  }
  .nav.open a {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 15px;
    color: #D7E5EC;
  }
  .nav.open a:hover,
  .nav.open a.active { background: rgba(255, 255, 255, .06); color: #fff; }
  .nav.open a::after { display: none; }

  .hero { min-height: auto; padding-top: 120px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-bottom: 64px;
  }
  .hero-copy { max-width: 720px; }
  .hero-stage { width: min(560px, 100%); margin: 0 auto; }
  .float-a { left: 0; }
  .float-b { left: 0; }
  .float-c { right: 0; }

  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: center; padding: 24px; }
  .problem-visual { height: 150px; margin: 0; border: 1px solid var(--line); border-radius: 14px; }
  .card-index { top: 14px; right: 18px; }
  .problem-card h3 { margin-top: 0; }
  .problem-card p { grid-column: 2; }

  .service-panel { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .service-visual { min-height: 340px; }

  .pipeline { grid-template-columns: 1fr; gap: 14px; }
  .pipe-connector { display: none; }
  .flow-board { grid-template-columns: 1fr; gap: 18px; }

  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .site-proof { grid-template-columns: auto 1fr; }
  .site-proof .text-link { grid-column: 2; justify-self: start; }

  .method-track { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .method-line { display: none; }
  .method-step { padding-top: 20px; border-top: 2px solid var(--navy-900); }
  .method-step::before { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { min-height: 380px; }
  .about-copy { max-width: 680px; }

  .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-card { width: min(380px, 100%); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (max-width: 700px) {
  .container { padding: 0 20px; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: clamp(30px, 8vw, 40px); }
  .section-head p:not(.section-kicker) { font-size: 15.5px; }

  .nav-shell { height: 66px; }
  .site-header.scrolled .nav-shell { height: 58px; }
  .brand-mark { height: 26px; }
  .brand-word { font-size: 9px; letter-spacing: .2em; }

  .hero { padding-top: 104px; }
  .hero-inner { gap: 40px; padding-bottom: 50px; }
  .hero h1 { font-size: clamp(38px, 10vw, 50px); }
  .hero-lead { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { gap: 18px 24px; }
  .hero-proof strong { font-size: 24px; }
  .hero-proof span { font-size: 8px; }

  .status-pill { font-size: 8.5px; padding: 7px 10px; }
  .window-body { padding: 13px 13px 10px; }
  .dash-topline strong { font-size: 22px; }
  .dash-range { display: none; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .mini-donut { grid-column: 1 / -1; }
  .float-a { display: none; }
  .float-b { bottom: -14px; left: 8px; }
  .float-c { top: -14px; right: 4px; }
  .float-card { display: none; padding: 8px 10px; }
  .float-card strong { font-size: 9.5px; }
  .float-card small { font-size: 8px; }
  .marquee-track { gap: 16px; padding: 11px 0; }
  .marquee-track span { font-size: 8px; }

  .trust-strip { padding: 18px 0; }
  .trust-inner { gap: 12px; }
  .trust-items { gap: 8px 18px; }
  .trust-items span { font-size: 11.5px; }
  .trust-items span + span::before { display: none; }

  .problem-card { display: block; padding: 24px 20px 26px; }
  .problem-visual { height: 145px; margin: -24px -20px 22px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .problem-card p { grid-column: auto; }

  .tabs { flex-direction: column; }
  .tab { justify-content: flex-start; }
  .service-panel { padding: 22px; gap: 24px; }
  .service-copy h3 { font-size: 28px; }
  .service-visual { min-height: 300px; }
  .report-window { top: 22px; left: 16px; right: 16px; }
  .report-body { padding: 12px; }
  .report-kpis strong { font-size: 12px; }
  .report-chart { height: 70px; }
  .chip { font-size: 7px; }
  .chip-c { display: none; }
  .node { font-size: 7.5px; padding: 6px 8px; }
  .node-center { font-size: 10px; padding: 11px 14px; }

  .flow-section { border-radius: 30px; padding: 52px 0 44px; }
  .pipe-stage { padding: 22px 20px; }
  .flow-board { padding: 20px; }
  .flow-board-grid { grid-template-columns: 1fr; gap: 14px; }

  .showcase-grid { grid-template-columns: 1fr; }
  .site-proof { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .site-proof .text-link { grid-column: auto; }
  .mock { height: 210px; }
  .showcase-meta { padding: 20px; }

  .method-track { grid-template-columns: 1fr; gap: 22px; }
  .method-step { padding-top: 18px; }

  .about-visual { min-height: 330px; }
  .profile-orbit { width: 330px; }
  .profile-card-v2 { width: min(340px, 94%); padding: 24px; }
  .profile-monogram { margin: 14px 0 -10px; font-size: 72px; }
  .profile-card-v2 h3 { font-size: 22px; }
  .profile-badge { right: 4px; bottom: -6px; padding: 8px 10px; font-size: 7px; }
  .about-copy h2 { font-size: 32px; }

  .stack { padding: 52px 0; }
  .stack-chip { font-size: 9px; padding: 9px 13px; }

  .cta { padding: 60px 0; }
  .cta h2 { font-size: clamp(32px, 9vw, 44px); }
  .cta-actions .btn { width: 100%; }
  .cta-card { padding: 20px; }
  .qr-wrap { width: 170px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
  .report-line { stroke-dashoffset: 0; }
  .report-bars rect { transform: scaleY(1); }
  .method-line span { width: 100%; }
  .marquee-track,
  .stack-track { animation: none !important; }
  #hero-canvas { display: none; }
}
