/* =========================================================
   4U Logistics — sitio principal
   Paleta tomada del logo: navy #022145 · teal #00A7BA · lime #8BE014
   ========================================================= */
:root {
  --navy-950: #010c1b;
  --navy-900: #021631;
  --navy-850: #031c3c;
  --navy-800: #022145;
  --navy-700: #0a2e57;
  --navy-600: #143e6e;
  --teal: #00a7ba;
  --teal-2: #36c9da;
  --lime: #8be014;
  --lime-2: #a8f040;
  --ink: #0a1d33;
  --muted: #56677d;
  --muted-d: #9fb3c9;
  --line: #dde5ee;
  --line-d: rgba(160, 200, 240, .12);
  --bg: #f3f6f9;
  --card: #ffffff;
  --ok: #2bd576;
  --warn: #f5b631;
  --bad: #f2554f;
  --grad: linear-gradient(100deg, var(--teal-2) 0%, var(--lime) 90%);
  --grad-dark: linear-gradient(100deg, #00879a 0%, #5fae00 95%);
  --r-lg: 24px;
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --f-display: "Sora", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
section[id] { scroll-margin-top: 70px; }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum"; letter-spacing: -.01em; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--navy-900); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .container { width: min(1200px, 100% - 64px); } }

/* ---------- Split text ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; will-change: transform; }
.grad, .grad .wi {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.light .grad, .light .grad .wi { background-image: var(--grad-dark); }
.grad:has(.wi) { background: none; }

/* ---------- Buttons ---------- */
.btn {
  --bg-b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  padding: .85em 1.35em; border-radius: 999px;
  background: var(--bg-b); border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .3s, box-shadow .35s, border-color .3s, color .3s;
  white-space: nowrap; position: relative; isolation: isolate;
}
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn--sm { padding: .62em 1.05em; font-size: .88rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--lime { --bg-b: var(--lime); color: var(--navy-900); box-shadow: 0 8px 30px -8px rgba(139, 224, 20, .55); }
.btn--lime:hover { --bg-b: var(--lime-2); box-shadow: 0 12px 40px -8px rgba(139, 224, 20, .75); }
.btn--glass { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.btn--ghost { color: #dbe7f3; border-color: rgba(255, 255, 255, .14); }
.btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--navy { --bg-b: var(--navy-800); color: #fff; }
.btn--navy:hover { --bg-b: var(--navy-600); }
.btn:disabled { opacity: .4; pointer-events: none; }
.linkbtn { color: var(--teal-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Chips / eyebrows ---------- */
.chip { display: inline-flex; align-items: center; gap: .55em; white-space: nowrap; font-size: .82rem; font-weight: 500; padding: .45em .95em; border-radius: 999px; }
.chip--dark { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #cfe0f0; backdrop-filter: blur(8px); }
.chip--dark strong { color: #fff; font-weight: 600; }
.chip--ai { background: rgba(139, 224, 20, .1); color: var(--lime); border: 1px solid rgba(139, 224, 20, .25); font-weight: 600; font-size: .78rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #00879a; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--lime { color: var(--lime); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); position: relative; flex: none; }
.dot-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; overflow: hidden; }
.light { background: var(--bg); color: var(--ink); }
.dark { background: var(--navy-900); color: #e6eef7; }
.section--glow::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 167, 186, .16), transparent 60%); pointer-events: none;
}
.section--grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(140, 190, 230, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 190, 230, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); position: relative; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.h2 { font-size: clamp(2.05rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); margin-top: 22px; max-width: 640px; }
.sec-head--center .lead { margin-inline: auto; }
.dark .lead { color: var(--muted-d); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--navy-950);
  display: grid; place-items: center;
  animation: loaderOut .6s ease 2.4s forwards;
}
.loader__inner { width: min(300px, 64vw); }
.loader__logo { width: 100%; clip-path: inset(0 100% 0 0); animation: logoIn 1s var(--ease) .1s forwards; }
.loader__bar { height: 2px; background: rgba(255, 255, 255, .1); margin-top: 26px; border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); animation: barIn 1.1s var(--ease) .15s forwards; }
@keyframes logoIn { to { clip-path: inset(0 0 0 0); } }
@keyframes barIn { to { transform: scaleX(1); } }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
.is-loaded .loader { pointer-events: none; }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: transform .5s var(--ease); }
.nav__inner {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 0; padding: 0 4px; border-radius: 999px; transition: background-color .4s, height .4s var(--ease), margin .4s var(--ease), padding .4s var(--ease), box-shadow .4s, border-color .4s;
  border: 1px solid transparent;
}
.nav.is-scrolled .nav__inner {
  height: 60px; margin-top: 12px; padding: 0 10px 0 22px;
  background: rgba(2, 22, 49, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: rgba(255, 255, 255, .08); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
}
.nav.is-hidden { transform: translateY(-120%); }
.nav__logo img { height: 44px; width: auto; transition: height .4s var(--ease); }
.nav.is-scrolled .nav__logo img { height: 36px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { color: #c4d4e5; font-size: .9rem; font-weight: 500; padding: .5em .85em; border-radius: 999px; transition: color .25s, background-color .25s; position: relative; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lime); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); align-items: center; justify-content: center; }
.nav__burger .ic { width: 22px; height: 22px; }
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav__contact, .nav__actions .btn--lime { display: none; }
  .nav__logo img { height: 36px; }
}

.mmenu {
  position: fixed; inset: 0; z-index: 200; background: rgba(1, 12, 27, .97); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; justify-content: center; padding: 80px 28px 40px;
  clip-path: circle(0 at calc(100% - 40px) 38px); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu-open .mmenu { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
.mmenu nav { display: flex; flex-direction: column; gap: 6px; }
.mmenu a { font-family: var(--f-display); font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 600; color: #fff; letter-spacing: -.02em; padding: 4px 0; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease), color .2s; }
.mmenu a:hover { color: var(--lime); }
.menu-open .mmenu a { opacity: 1; transform: none; }
.menu-open .mmenu a:nth-child(2) { transition-delay: .05s; } .menu-open .mmenu a:nth-child(3) { transition-delay: .1s; }
.menu-open .mmenu a:nth-child(4) { transition-delay: .15s; } .menu-open .mmenu a:nth-child(5) { transition-delay: .2s; }
.menu-open .mmenu a:nth-child(6) { transition-delay: .25s; } .menu-open .mmenu a:nth-child(7) { transition-delay: .3s; }
.menu-open .mmenu a:nth-child(8) { transition-delay: .35s; }
.mmenu__close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.mmenu__close .ic { width: 22px; height: 22px; }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 0%, #06305a 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: #fff; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 90px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero__glow--a { width: 520px; height: 520px; background: rgba(0, 167, 186, .28); top: -120px; right: 4%; animation: drift 14s ease-in-out infinite alternate; }
.hero__glow--b { width: 420px; height: 420px; background: rgba(139, 224, 20, .14); bottom: -160px; left: 10%; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-60px, 50px) scale(1.15); } }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(140, 190, 230, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 190, 230, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 10%, transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__eyebrow { margin-bottom: 26px; }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }
.hero__lead { margin-top: 26px; font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: #b2c5d9; max-width: 560px; }
.hero__lead em { color: #fff; font-style: normal; font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__feats { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #9fb6cd; font-size: .88rem; }
.hero__feats li { display: inline-flex; align-items: center; gap: .5em; }
.hero__feats .ic { color: var(--lime); }

.hero__visual { position: relative; perspective: 1200px; }
.track-card {
  position: relative; border-radius: var(--r-lg); padding: 22px 22px 20px;
  background: linear-gradient(160deg, rgba(20, 62, 110, .55), rgba(3, 28, 60, .7));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.track-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(54, 201, 218, .5), transparent 35%, transparent 65%, rgba(139, 224, 20, .4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.track-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.track-card__id { font-size: .95rem; font-weight: 600; color: #fff; }
.track-card__meta { font-size: .8rem; color: #8ea7c0; margin-top: 2px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--lime); background: rgba(139, 224, 20, .1); border: 1px solid rgba(139, 224, 20, .25); padding: 6px 12px; border-radius: 999px; white-space: nowrap; transition: color .3s, background-color .3s, border-color .3s; }
.status-pill.is-teal { color: var(--teal-2); background: rgba(0, 167, 186, .12); border-color: rgba(0, 167, 186, .3); }
.status-pill.is-teal .dot-live { background: var(--teal-2); }

.route { width: 100%; height: auto; display: block; margin: 8px 0 4px; overflow: visible; }
.route__region { font-family: var(--f-mono); font-size: 10px; letter-spacing: .25em; fill: rgba(160, 200, 240, .35); }
.route__base { fill: none; stroke: rgba(160, 200, 240, .22); stroke-width: 1.6; stroke-dasharray: 3 7; stroke-linecap: round; }
.route__prog { fill: none; stroke: url(#routeGrad); stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(54, 201, 218, .6)); }
.route__prog--land { stroke: var(--lime); filter: drop-shadow(0 0 6px rgba(139, 224, 20, .7)); }
.route__city { font-family: var(--f-display); font-size: 13px; font-weight: 600; fill: #fff; }
.route__country { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .12em; fill: #7f9ab5; }
.route__label--dest .route__city { fill: var(--lime); }
.node__dot--t { fill: var(--teal-2); }
.node__dot--l { fill: var(--lime); }
.node__ring { fill: none; stroke: rgba(54, 201, 218, .5); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ring 2.6s var(--ease) infinite; }
.node__ring--l { stroke: rgba(139, 224, 20, .6); }
@keyframes ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.vehicle__halo { fill: rgba(54, 201, 218, .22); }
.vehicle__halo--l { fill: rgba(139, 224, 20, .25); }

.stages { list-style: none; margin: 6px 0 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid rgba(255, 255, 255, .07); position: relative; }
.stages li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .7rem; color: #6f8aa6; text-align: center; position: relative; transition: color .3s; }
.stages li::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: rgba(255, 255, 255, .08); z-index: 0; }
.stages li:first-child::before { display: none; }
.stages li.is-done::before, .stages li.is-active::before { background: linear-gradient(90deg, var(--teal), var(--lime)); }
.stages i { width: 12px; height: 12px; border-radius: 50%; background: var(--navy-700); border: 2px solid #2a4c74; position: relative; z-index: 1; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.stages li.is-done { color: #b7c9db; }
.stages li.is-done i { background: var(--teal); border-color: var(--teal); }
.stages li.is-active { color: #fff; font-weight: 600; }
.stages li.is-active i { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 5px rgba(139, 224, 20, .18), 0 0 18px rgba(139, 224, 20, .7); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55);
  font-size: .82rem; white-space: nowrap;
}
.float-card__k { font-size: .72rem; color: var(--muted); font-weight: 500; }
.float-card__v { font-weight: 600; font-size: .86rem; }
.float-card__big { font-weight: 600; font-size: 1.3rem; color: var(--navy-800); line-height: 1.2; }
.float-card__big small { font-size: .7rem; color: var(--muted); font-family: var(--f-body); }
.float-card__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card__icon--warn { background: rgba(245, 182, 49, .16); color: #c98700; }
.float-card--ai { top: -54px; left: -30px; }
.float-card--warn { top: 15%; right: -44px; }
.float-card--cost { bottom: -36px; left: 8%; flex-direction: column; align-items: flex-start; gap: 2px; background: linear-gradient(135deg, #fff, #f1fbe2); }
.ic--ok { color: #1aa85a; width: 20px; height: 20px; stroke-width: 2.4; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lime); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 980px) {
  .hero { padding-top: calc(var(--nav-h) + 30px); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { margin: 30px 8px 30px; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .float-card { padding: 9px 12px; gap: 9px; font-size: .75rem; }
  .float-card__v { font-size: .76rem; }
  .hero__visual { margin: 60px 0 46px; }
  .float-card--ai { top: -50px; left: -4px; }
  .float-card--warn { display: none; }
  .float-card--cost { bottom: -40px; left: auto; right: 4%; }
  .float-card__big { font-size: 1.05rem; }
  .track-card { padding: 16px 14px 14px; }
  .stages li { font-size: .6rem; }
  .track-card__meta { font-size: .72rem; }
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* ---------- Marquee bands ---------- */
.bands { position: relative; background: var(--bg); padding: 46px 0 30px; overflow: hidden; }
.band { overflow: hidden; white-space: nowrap; padding: 16px 0; }
.band__track { display: inline-flex; align-items: center; gap: 30px; will-change: transform; padding-right: 30px; }
.band span { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.8rem); letter-spacing: -.02em; text-transform: uppercase; }
.band b { font-size: 1.1rem; }
.band--lime { background: var(--lime); color: var(--navy-900); transform: rotate(-2deg) scale(1.04); position: relative; z-index: 2; box-shadow: 0 20px 40px -20px rgba(80, 140, 0, .5); }
.band--navy { background: var(--navy-800); color: #fff; transform: rotate(1.4deg) scale(1.04); margin-top: -12px; }
.band--navy b { color: var(--lime); }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.steps__line { position: absolute; left: 47px; right: calc((100% - 72px) / 5 - 47px); top: 86px; height: 2px; background: var(--line); z-index: 1; pointer-events: none; }
.steps__line span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--lime)); transform-origin: left; transform: scaleX(0); }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px 26px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  overflow: hidden;
}
.step:hover { z-index: 3; transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(2, 33, 69, .35); border-color: rgba(0, 167, 186, .35); }
.step__n { font-family: var(--f-mono); font-size: .78rem; font-weight: 600; color: var(--muted); }
.step__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin: 16px 0 18px; background: var(--navy-800); color: var(--lime); position: relative; z-index: 2; box-shadow: 0 10px 24px -10px rgba(2, 33, 69, .6); transition: transform .45s var(--ease), background-color .3s; }
.step__ic .ic { width: 24px; height: 24px; }
.step:hover .step__ic { transform: rotate(-8deg) scale(1.08); background: var(--teal); color: #fff; }
.step h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps__line { display: none; }
  .step:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* spotlight hover */
.spot { --mx: 50%; --my: 50%; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(0, 167, 186, .12), transparent 45%); }
.spot:hover::after { opacity: 1; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(40px, 6vw, 90px); align-items: center; position: relative; }
.split--rev { grid-template-columns: 1.05fr .95fr; }
@media (max-width: 980px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .split__copy { order: -1; }
}
.checklist { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: #cfdceb; }
.checklist .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(139, 224, 20, .14); color: var(--lime); stroke-width: 2.6; margin-top: 1px; }
.hint { margin-top: 30px; display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: #8ea7c0; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(139, 224, 20, .3); background: rgba(139, 224, 20, .04); }
.hint .ic { color: var(--lime); margin-top: 2px; }

/* ---------- App / Wizard ---------- */
.app {
  position: relative; border-radius: var(--r-lg); background: #fff; color: var(--ink);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  overflow: hidden;
}
.app__bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #f5f8fb; border-bottom: 1px solid var(--line); }
.app__dots { display: inline-flex; gap: 6px; }
.app__dots i { width: 11px; height: 11px; border-radius: 50%; background: #dbe3ec; }
.app__dots i:nth-child(1) { background: #ff6159; } .app__dots i:nth-child(2) { background: #ffbd2e; } .app__dots i:nth-child(3) { background: #28c941; }
.app__title { font-weight: 600; font-size: .9rem; }
.app__step { margin-left: auto; font-size: .75rem; color: var(--muted); }
.wz-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.wz-tab { padding: 14px 8px; font-size: .86rem; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: color .3s; }
.wz-tab span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--bg); border: 1px solid var(--line); transition: background-color .3s, color .3s, border-color .3s; }
.wz-tab.is-active { color: var(--ink); font-weight: 600; }
.wz-tab.is-active span, .wz-tab.is-done span { background: var(--navy-800); border-color: var(--navy-800); color: var(--lime); }
.wz-tabs__ink { position: absolute; bottom: -1px; left: 0; width: 33.333%; height: 3px; background: linear-gradient(90deg, var(--teal), var(--lime)); border-radius: 3px; transition: transform .55s var(--ease); }
.wz-body { position: relative; min-height: 360px; padding: 26px; }
.wz-panel { display: none; }
.wz-panel.is-active { display: block; animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.wz-q { font-size: 1.3rem; font-weight: 600; margin-bottom: 20px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice {
  position: relative; text-align: left; padding: 22px 20px 20px; border-radius: 18px; border: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; transition: border-color .3s, transform .35s var(--ease), box-shadow .35s, background-color .3s;
}
.choice:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(2, 33, 69, .45); }
.choice__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 10px; color: #fff; }
.choice__ic .ic { width: 26px; height: 26px; }
.choice--import .choice__ic { background: linear-gradient(135deg, #1677d9, var(--teal)); }
.choice--export .choice__ic { background: linear-gradient(135deg, #3fb400, var(--lime)); }
.choice__t { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.choice__d { font-size: .84rem; color: var(--muted); }
.choice__tick { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: var(--lime); transform: scale(0); transition: transform .4s var(--ease); }
.choice__tick .ic { width: 16px; height: 16px; stroke-width: 3; }
.choice.is-selected { border-color: var(--teal); background: rgba(0, 167, 186, .04); box-shadow: 0 0 0 5px rgba(0, 167, 186, .1); }
.choice--export.is-selected { border-color: #63c200; background: rgba(139, 224, 20, .06); box-shadow: 0 0 0 5px rgba(139, 224, 20, .14); }
.choice.is-selected .choice__tick { transform: scale(1); }
.choice.is-pressing { transform: scale(.97); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.field select {
  appearance: none; -webkit-appearance: none; width: 100%; padding: 13px 40px 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356677d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
  font-weight: 600; font-size: .95rem; transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field select:hover { border-color: #b9c8d8; }
.field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 167, 186, .14); }
.field.is-typing select { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 167, 186, .14); background-color: rgba(0, 167, 186, .03); }
.field.is-flash select { animation: flash .7s var(--ease); }
@keyframes flash { 0% { background-color: rgba(139, 224, 20, .35); } 100% { background-color: #fff; } }

.drop {
  border: 2px dashed #c3d1df; border-radius: 18px; padding: 26px 18px; text-align: center; background: #f8fafc;
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.drop.is-over { border-color: var(--teal); background: rgba(0, 167, 186, .06); transform: scale(1.015); }
.drop__ic { width: 50px; height: 50px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: var(--lime); }
.drop__ic .ic { width: 22px; height: 22px; }
.drop.is-over .drop__ic { animation: bob .8s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-6px); } }
.drop__t { font-size: 1.02rem; }
.drop__d { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.drop .linkbtn { color: #00879a; }
.files { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.file { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.file__ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(0, 167, 186, .1); color: #00879a; flex: none; }
.file__ic .ic { width: 17px; height: 17px; }
.file__meta { min-width: 0; flex: 1; }
.file__name { display: block; font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file__type { display: block; font-size: .68rem; color: var(--muted); }
.file__ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e5f7ec; color: #1aa85a; flex: none; transform: scale(0); transition: transform .4s var(--ease); }
.file__ok .ic { width: 14px; height: 14px; stroke-width: 3; }
.file.is-done .file__ok { transform: scale(1); }
.file__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--teal), var(--lime)); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease), opacity .3s .9s; }
.file.is-loading .file__bar { transform: scaleX(1); }
.file.is-done .file__bar { opacity: 0; transform: scaleX(1); }
.file.is-new { animation: fileIn .5s var(--ease); }
@keyframes fileIn { from { opacity: 0; transform: translateY(-16px) scale(.94); } to { opacity: 1; transform: none; } }

.app__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); background: #fbfcfd; flex-wrap: wrap; }
.summary { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); transition: background-color .3s, color .3s; }
.tag.is-pop { animation: pop .45s var(--ease); }
@keyframes pop { 50% { transform: scale(1.12); background: #eaffcf; } }
.tag--import { background: rgba(0, 167, 186, .1); color: #007383; border-color: rgba(0, 167, 186, .3); }
.tag--export { background: rgba(139, 224, 20, .14); color: #3c7a00; border-color: rgba(139, 224, 20, .4); }
.app__btns { display: flex; gap: 8px; margin-left: auto; }
.app .btn--glass { color: var(--ink); background: #fff; border-color: var(--line); }
.app .btn--glass:hover { background: var(--bg); }
#wzNext.is-pulse { animation: pulseBtn 1.6s ease-in-out infinite; }
@keyframes pulseBtn { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 224, 20, .6); } 50% { box-shadow: 0 0 0 10px rgba(139, 224, 20, 0); } }

@media (max-width: 560px) {
  .wz-body { padding: 18px 16px; min-height: 0; }
  .choices { grid-template-columns: 1fr; }
  .choice { padding: 16px; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .choice__ic { margin: 0; width: 44px; height: 44px; }
  .choice__d { flex-basis: 100%; }
  .fields { grid-template-columns: 1fr 1fr; gap: 10px; }
  .field select { padding: 11px 30px 11px 11px; font-size: .86rem; background-position: right 8px center; }
  .files { grid-template-columns: 1fr; }
  .wz-tab { font-size: .78rem; }
  .app__foot .summary { display: none; }
}

/* ---------- Annova AI ---------- */
.ai-orb { width: 46px; height: 46px; border-radius: 50%; flex: none; position: relative; background: conic-gradient(from 0deg, var(--teal), var(--lime), #1677d9, var(--teal)); animation: spin 4s linear infinite; box-shadow: 0 0 24px rgba(0, 167, 186, .45); }
.ai-orb::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff 0%, #c9f6ff 18%, var(--navy-800) 70%); }
.ai-orb--sm { width: 34px; height: 34px; }
.ai-orb--sm::after { inset: 4px; }
.ai-orb--xs { width: 16px; height: 16px; box-shadow: none; }
.ai-orb--xs::after { inset: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-thinking .ai-orb { animation-duration: 1.2s; box-shadow: 0 0 34px rgba(139, 224, 20, .6); }

.ai { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 980px) { .ai { grid-template-columns: 1fr; } }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.doc-tab { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); transition: all .35s var(--ease); }
.doc-tab .ic { width: 15px; height: 15px; }
.doc-tab.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; box-shadow: 0 8px 20px -8px rgba(2, 33, 69, .6); }
.doc-tab.is-done { color: #1a8f50; border-color: rgba(43, 213, 118, .45); background: #eefbf3; }
.doc-tab.is-flag { color: #b97900; border-color: rgba(245, 182, 49, .6); background: #fff8e8; }

.papers { position: relative; padding-bottom: 150px; }
@media (max-width: 560px) { .papers { padding-bottom: 170px; } }
.paper {
  position: relative; background: #fff; border-radius: 14px; padding: 26px 26px 22px; overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(2, 33, 69, .35); border: 1px solid var(--line);
  font-size: .8rem;
}
.paper::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(2, 33, 69, .02) 22px 23px); pointer-events: none; }
.paper__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 16px; }
.paper__kicker { font-family: var(--f-display); font-weight: 700; letter-spacing: .08em; font-size: .92rem; }
.paper__no { font-size: .72rem; color: var(--muted); }
.paper__logo { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #f1f4f7; font-weight: 800; font-family: var(--f-display); font-size: .78rem; color: #8a99ab; }
.paper__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.paper__row--4 { grid-template-columns: repeat(4, 1fr); }
.paper__row--foot { grid-template-columns: 1fr 1fr 1.2fr; align-items: end; margin: 16px 0 0; }
.pl { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: #8a99ab; font-weight: 600; margin-bottom: 3px; }
.pv { font-weight: 500; }
.pf { display: inline-block; font-weight: 600; position: relative; padding: 1px 4px; margin: -1px -4px; border-radius: 5px; transition: background-color .4s, box-shadow .4s, color .3s; }
.pf.is-hit { background: rgba(0, 167, 186, .14); box-shadow: 0 0 0 1.5px rgba(0, 167, 186, .7); color: #005f6b; }
.pf.is-hit::after { content: attr(data-k); position: absolute; left: -2px; top: -15px; font-family: var(--f-mono); font-size: .55rem; text-transform: uppercase; letter-spacing: .05em; background: var(--teal); color: #fff; padding: 1px 5px; border-radius: 4px; white-space: nowrap; animation: tagIn .35s var(--ease); }
@keyframes tagIn { from { opacity: 0; transform: translateY(4px); } }
.paper__table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.paper__table th { text-align: left; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: #8a99ab; font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.paper__table td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.paper__table tr.ghost td { padding: 9px; }
.sign { text-align: right; }
.sign span { display: block; height: 26px; margin-left: auto; width: 110px; border-bottom: 1px solid #b9c6d3; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 26'%3E%3Cpath d='M4 20c10-14 16-14 14-2s10-14 16-6 8 6 14-4 6 10 14 2 10-6 18 4' fill='none' stroke='%23022145' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; z-index: 2; opacity: 0; background: linear-gradient(180deg, transparent, rgba(0, 167, 186, .14) 75%, rgba(139, 224, 20, .4) 98%, transparent); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--lime); box-shadow: 0 0 14px 2px rgba(139, 224, 20, .8); }

.paper--pl { position: absolute; right: -14px; bottom: 0; width: 56%; padding: 18px; z-index: 3; opacity: 0; transform: translate(40px, 30px) rotate(6deg); box-shadow: 0 30px 70px -20px rgba(2, 33, 69, .5); }
.paper--pl .paper__head { margin-bottom: 10px; padding-bottom: 10px; }
.pl-lines p { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.pl-lines span { color: var(--muted); }
.mismatch { padding: 1px 5px; border-radius: 5px; transition: background-color .4s, box-shadow .4s, color .4s; }
.mismatch.is-bad { background: rgba(242, 85, 79, .12); color: #c3302a; box-shadow: 0 0 0 1.5px rgba(242, 85, 79, .7); }

.ai__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 30px 60px -36px rgba(2, 33, 69, .35); position: relative; }
.ai__head { display: flex; align-items: center; gap: 14px; }
.ai__name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.ai__status { font-size: .82rem; color: var(--muted); min-height: 1.3em; }
.ai__pct { margin-left: auto; font-size: 1.3rem; font-weight: 600; color: var(--navy-800); }
.ai__progress { height: 4px; border-radius: 4px; background: var(--bg); margin: 16px 0 10px; overflow: hidden; }
.ai__progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), var(--lime)); transform-origin: left; transform: scaleX(0); }
.extract { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ex { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); transition: background-color .4s; }
.ex dt { font-size: .76rem; color: var(--muted); font-weight: 500; }
.ex dd { margin: 0; font-weight: 600; font-size: .86rem; text-align: right; min-height: 1.3em; color: var(--ink); }
.ex dd:empty::before { content: ""; display: inline-block; width: 62px; height: 9px; border-radius: 5px; background: linear-gradient(90deg, #edf1f5 0%, #f7f9fb 50%, #edf1f5 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ex.is-typing dd::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--teal); margin-left: 2px; vertical-align: -2px; animation: caret .6s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ex.is-done dd { color: var(--navy-800); }
.ex.is-done dt::before { content: "✓ "; color: #1aa85a; font-weight: 700; }
.ex.is-bad dd { color: #c3302a; }
@media (max-width: 560px) { .extract { grid-template-columns: 1fr; } .paper__row--4 { grid-template-columns: 1fr 1fr; } .paper { padding: 18px 16px; } .paper--pl { width: 72%; right: -6px; } }

.alert { margin-top: 18px; border-radius: 16px; padding: 16px; background: linear-gradient(135deg, #fff8e6, #fff3d6); border: 1px solid rgba(245, 182, 49, .55); }
.alert__top { display: flex; gap: 12px; align-items: center; }
.alert__ic { width: 38px; height: 38px; border-radius: 11px; background: var(--warn); color: #3d2a00; display: grid; place-items: center; flex: none; }
.alert__ic .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.alert.is-live .alert__ic { animation: alertPulse 1.6s ease-in-out infinite; }
@keyframes alertPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 182, 49, .7); } 50% { box-shadow: 0 0 0 9px rgba(245, 182, 49, 0); } }
.alert__t { font-weight: 700; font-family: var(--f-display); color: #6b4800; }
.alert__s { font-size: .76rem; color: #8a6a1f; display: flex; align-items: center; gap: 4px; }
.diff { margin: 14px 0 12px; display: grid; gap: 8px; }
.diff__row { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; font-size: .8rem; }
.diff__row span { color: #7a5f22; font-weight: 500; }
.diff__bar { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .06); overflow: hidden; }
.diff__bar i { display: block; height: 100%; width: var(--w); background: var(--teal); border-radius: 4px; transform-origin: left; }
.diff__row--bad .diff__bar i { background: var(--bad); }
.diff__row--bad b { color: #c3302a; }
.alert__rec { font-size: .84rem; color: #5c4710; padding-top: 10px; border-top: 1px dashed rgba(180, 130, 20, .35); }
.ai__replay { margin-top: 16px; }

.value { margin-top: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: auto auto auto 1fr; gap: 28px; align-items: center; padding: 28px 32px; border-radius: var(--r-lg); background: var(--navy-800); color: #fff; position: relative; overflow: hidden; }
.value::before { content: ""; position: absolute; width: 400px; height: 400px; right: -100px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 224, 20, .2), transparent 65%); }
.value__num span { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; display: block; line-height: 1.1; }
.value__num small { font-size: .78rem; color: var(--muted-d); }
.value__num--lime span { color: var(--lime); }
.value__eq { font-size: 2rem; color: var(--teal-2); font-weight: 300; }
.value__txt { color: #c7d6e6; font-size: .95rem; position: relative; }
.value__txt strong { color: #fff; display: block; font-family: var(--f-display); font-size: 1.1rem; margin-bottom: 4px; }
@media (max-width: 860px) { .value { grid-template-columns: 1fr auto 1fr; } .value__txt { grid-column: 1 / -1; } }
@media (max-width: 480px) { .value { padding: 22px; gap: 14px; } }

/* ---------- Aduanas ---------- */
.cx { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; position: relative; }
@media (max-width: 980px) { .cx { grid-template-columns: 1fr; } }
.card-d { position: relative; border-radius: var(--r-lg); padding: 26px; background: linear-gradient(170deg, rgba(20, 62, 110, .45), rgba(3, 28, 60, .55)); border: 1px solid var(--line-d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(10px); }
.card-d__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-d__head h3 { font-size: 1.1rem; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; color: #fff; }
.card-d__head h3 .ic { color: var(--teal-2); }
.cx__product { font-size: .86rem; color: var(--muted-d); padding-bottom: 18px; border-bottom: 1px solid var(--line-d); }
.cx__product strong { color: #fff; }
.cx__main { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px 0; }
.cx__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-d); font-family: var(--f-mono); }
.fraction { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; color: #fff; margin: 6px 0 16px; display: flex; letter-spacing: -.02em; line-height: 1.15; }
.slot { display: inline-block; height: 1.15em; overflow: hidden; position: relative; }
.slot__reel { display: flex; flex-direction: column; will-change: transform; }
.slot__reel span { height: 1.15em; display: block; }
.fraction .sep { color: var(--teal-2); }
.tree { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .8rem; color: var(--muted-d); }
.tree li { padding-left: 16px; position: relative; }
.tree li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); }
.tree li:nth-child(2) { margin-left: 12px; } .tree li:nth-child(3) { margin-left: 24px; }
.tree li:nth-child(3)::before { background: var(--lime); }
.tree b { color: #fff; font-family: var(--f-mono); font-weight: 600; margin-right: 4px; }
.gauge { position: relative; width: 150px; height: 150px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__bg { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 10; }
.gauge__fg { fill: none; stroke: url(#gaugeGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 42.47; filter: drop-shadow(0 0 8px rgba(139, 224, 20, .45)); }
.gauge__val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge__val .mono { font-size: 2.3rem; font-weight: 600; color: #fff; line-height: 1; }
.gauge__val small { position: absolute; top: 46px; right: 34px; font-size: .9rem; color: var(--lime); font-weight: 600; }
.gauge__val p { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-d); margin-top: 6px; }
@media (max-width: 560px) {
  .cx__main { grid-template-columns: 1fr; }
  .gauge { width: 130px; height: 130px; margin: 0 auto; }
  .gauge__val small { top: 38px; right: 26px; }
  .card-d { padding: 20px 18px; }
}
.disclaimer { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(245, 182, 49, .1); border: 1px solid rgba(245, 182, 49, .35); border-left: 4px solid var(--warn); }
.disclaimer .ic { color: var(--warn); margin-top: 2px; }
.disclaimer p { font-size: .86rem; color: #f3dfb0; }

.tally { display: inline-flex; gap: 6px; }
.tally span { min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-family: var(--f-mono); font-size: .78rem; font-weight: 600; }
.tally span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.t-ok { background: rgba(43, 213, 118, .12); color: var(--ok); }
.t-warn { background: rgba(245, 182, 49, .12); color: var(--warn); }
.t-bad { background: rgba(242, 85, 79, .14); color: var(--bad); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check { border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-d); transition: background-color .3s, border-color .3s; }
.check:hover { background: rgba(255, 255, 255, .055); }
.check.is-open { background: rgba(255, 255, 255, .06); border-color: rgba(160, 200, 240, .22); }
.check__btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; }
.lamp { width: 14px; height: 14px; border-radius: 50%; flex: none; position: relative; background: #2a4363; transition: background-color .4s, box-shadow .4s; }
.check[data-s="ok"].is-lit .lamp { background: var(--ok); box-shadow: 0 0 0 4px rgba(43, 213, 118, .16), 0 0 16px rgba(43, 213, 118, .8); }
.check[data-s="warn"].is-lit .lamp { background: var(--warn); box-shadow: 0 0 0 4px rgba(245, 182, 49, .16), 0 0 16px rgba(245, 182, 49, .8); }
.check[data-s="bad"].is-lit .lamp { background: var(--bad); box-shadow: 0 0 0 4px rgba(242, 85, 79, .18), 0 0 18px rgba(242, 85, 79, .9); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(242, 85, 79, .08), 0 0 26px rgba(242, 85, 79, 1); } }
.check__name { font-weight: 600; color: #fff; flex: 1; font-size: .95rem; }
.check__st { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s var(--ease); }
.check.is-lit .check__st { opacity: 1; transform: none; }
.check[data-s="ok"] .check__st { color: var(--ok); background: rgba(43, 213, 118, .1); }
.check[data-s="warn"] .check__st { color: var(--warn); background: rgba(245, 182, 49, .1); }
.check[data-s="bad"] .check__st { color: #ff7a75; background: rgba(242, 85, 79, .14); }
.check__chev { color: var(--muted-d); transition: transform .4s var(--ease); }
.check.is-open .check__chev { transform: rotate(180deg); }
.check__why { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.check.is-open .check__why { grid-template-rows: 1fr; }
.check__why > div { overflow: hidden; }
.check__why p { padding: 0 16px 16px 44px; font-size: .86rem; color: #b5c7da; line-height: 1.55; }
.cx__note { text-align: center; margin: 34px auto 0; max-width: 720px; color: var(--muted-d); font-size: .92rem; }
.cx__note strong { color: #fff; font-weight: 600; }
.cx__note span { display: inline-block; margin-left: 6px; font-size: .74rem; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: #8ea7c0; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(90deg, var(--navy-800), #063a5e 60%, #0b4a52); padding: 54px 0; color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(255, 255, 255, .025) 60px 61px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.stat { padding-left: 20px; border-left: 2px solid rgba(139, 224, 20, .5); }
.stat__n { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 600; line-height: 1; color: var(--lime); }
.stat__l { margin-top: 8px; color: #b8cadc; font-size: .9rem; max-width: 210px; }
@media (max-width: 860px) { .stats__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(22px, 3vw, 36px); align-items: start; }
@media (max-width: 980px) { .calc { grid-template-columns: 1fr; } }
.calc__form { display: grid; gap: 16px; }
.calc fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px 22px; margin: 0; background: #fff; min-width: 0; }
.calc legend { font-family: var(--f-display); font-weight: 600; font-size: .95rem; padding: 0 8px; margin-left: -8px; display: inline-flex; gap: 8px; align-items: center; }
.calc legend .ic { color: #00879a; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
@media (max-width: 480px) { .cgrid { grid-template-columns: 1fr; } .calc fieldset { padding: 16px; } }
.cf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf > span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.cf__in { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfd; transition: border-color .3s, box-shadow .3s, background-color .3s; overflow: hidden; }
.cf__in:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 167, 186, .14); background: #fff; }
.cf__in input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 12px; font-family: var(--f-mono); font-weight: 600; font-size: .95rem; outline: none; -moz-appearance: textfield; }
.cf__in input::-webkit-outer-spin-button, .cf__in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cf__in em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--muted); padding: 0 12px; white-space: nowrap; }
.cf__in select { border: 0; border-left: 1px solid var(--line); background: #f1f5f8; padding: 12px 10px; font-weight: 600; font-size: .85rem; outline: none; }
.switch { display: flex; align-items: center; gap: 12px; margin-top: 16px; cursor: pointer; font-size: .88rem; font-weight: 500; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { width: 44px; height: 26px; border-radius: 999px; background: #cfd9e4; position: relative; flex: none; transition: background-color .3s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .35s var(--ease); }
.switch input:checked + .switch__ui { background: var(--teal); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--teal); outline-offset: 3px; }
.calc__fine { font-size: .78rem; color: var(--muted); padding: 0 6px; }

.calc__res {
  position: sticky; top: 90px; border-radius: var(--r-lg); padding: 28px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, rgba(0, 167, 186, .35), transparent 50%), linear-gradient(170deg, var(--navy-800), var(--navy-950));
  box-shadow: 0 50px 90px -40px rgba(2, 33, 69, .7);
}
.calc__k { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-d); font-family: var(--f-mono); }
.calc__total { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 600; line-height: 1.1; margin: 8px 0 18px; letter-spacing: -.03em; }
.calc__total small, .calc__unit small { font-size: .9rem; color: var(--muted-d); font-family: var(--f-body); font-weight: 500; }
.calc__unit { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(139, 224, 20, .1); border: 1px solid rgba(139, 224, 20, .3); }
.calc__unit .mono { font-size: 1.5rem; font-weight: 600; color: var(--lime); }
.stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 22px 0 6px; background: rgba(255, 255, 255, .06); gap: 2px; }
.stack i { height: 100%; transition: flex-grow .7s var(--ease); flex: 0 1 0; min-width: 0; }
.lines { list-style: none; padding: 0; margin: 10px 0 18px; }
.line { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: .88rem; }
.line__dot { width: 10px; height: 10px; border-radius: 3px; }
.line__lbl { color: #d4e1ee; }
.line__lbl small { display: block; font-size: .72rem; color: #7f9ab5; font-family: var(--f-mono); }
.line__val { font-family: var(--f-mono); font-weight: 600; text-align: right; }
.line__val small { display: block; font-size: .7rem; color: #7f9ab5; font-weight: 500; }
.line--sub { padding: 4px 0 4px 22px; border: 0; font-size: .78rem; grid-template-columns: 1fr auto; }
.line--sub .line__lbl, .line--sub .line__val { color: #92abc4; }
.line--sub.is-off .line__val { text-decoration: line-through; opacity: .6; }
.calc__iva { font-size: .8rem; color: var(--teal-2); margin: -8px 0 16px; }

/* ---------- CLJ ---------- */
.clj { background: radial-gradient(80% 70% at 15% 50%, #073a5e 0%, var(--navy-900) 60%); }
.clj__word { position: absolute; right: -2vw; bottom: -6vw; font-family: var(--f-display); font-weight: 800; font-size: 34vw; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(139, 224, 20, .1); pointer-events: none; user-select: none; }
.clj__map { border-radius: var(--r-lg); background: rgba(3, 28, 60, .55); border: 1px solid var(--line-d); padding: 10px; position: relative; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.mx-map { width: 100%; height: auto; display: block; }
.mx-land { fill: rgba(0, 167, 186, .07); }
.mx-coast { fill: none; stroke: rgba(54, 201, 218, .45); stroke-width: 1.5; }
.mx-sea { font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; fill: rgba(160, 200, 240, .3); }
.mx-state { font-family: var(--f-mono); font-size: 12px; letter-spacing: .4em; fill: rgba(139, 224, 20, .35); }
.mx-sea-route { fill: none; stroke: rgba(54, 201, 218, .4); stroke-width: 1.6; stroke-dasharray: 3 7; }
.mx-route-base { fill: none; stroke: rgba(160, 200, 240, .2); stroke-width: 6; stroke-linecap: round; }
.mx-route { fill: none; stroke: url(#landGrad2); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(139, 224, 20, .6)); }
.mx-pulse { fill: rgba(0, 167, 186, .18); transform-box: fill-box; transform-origin: center; animation: ring 2.4s var(--ease) infinite; }
.mx-pulse--l { fill: rgba(139, 224, 20, .2); }
.mx-badge rect { fill: var(--navy-800); stroke: rgba(139, 224, 20, .5); }
.mx-badge text { font-family: var(--f-mono); font-size: 12px; font-weight: 600; fill: var(--lime); }
.open { margin-top: 34px; padding: 22px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-d); }
.open__t { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; display: flex; gap: 10px; align-items: center; color: #fff; }
.open__t .ic { color: var(--lime); }
.open__d { color: var(--muted-d); font-size: .9rem; margin: 6px 0 14px; }
.open__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.open__chips span { font-size: .8rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(160, 200, 240, .2); color: #d4e1ee; transition: all .3s; }
.open__chips span:hover { border-color: var(--lime); color: var(--lime); background: rgba(139, 224, 20, .06); }

/* ---------- Services ---------- */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1000px; }
@media (max-width: 1080px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .svc { grid-template-columns: 1fr; } }
.svc__card {
  position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  transition: box-shadow .45s var(--ease), border-color .3s; transform-style: preserve-3d; overflow: hidden;
}
.svc__card:hover { box-shadow: 0 30px 60px -30px rgba(2, 33, 69, .4); border-color: rgba(0, 167, 186, .35); }
.svc__card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--teal), var(--lime)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc__card:hover::before { transform: scaleX(1); }
.svc__ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(0, 167, 186, .12), rgba(139, 224, 20, .14)); color: #00798a; margin-bottom: 20px; transition: transform .5s var(--ease); }
.svc__ic .ic { width: 25px; height: 25px; }
.svc__card:hover .svc__ic { transform: translateZ(30px) scale(1.08); }
.svc__card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.svc__card p { font-size: .9rem; color: var(--muted); }

/* ---------- CTA / Form ---------- */
.cta { position: relative; padding: clamp(84px, 11vw, 150px) 0; color: #fff; overflow: hidden; background: var(--navy-950); }
.cta__bg { position: absolute; inset: 0; background: radial-gradient(60% 80% at 0% 100%, rgba(139, 224, 20, .18), transparent 60%), radial-gradient(60% 80% at 100% 0%, rgba(0, 167, 186, .3), transparent 60%); }
.cta__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(160, 200, 240, .14) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.cta__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 980px) { .cta__inner { grid-template-columns: 1fr; } }
.cta .lead { color: var(--muted-d); }
.cta__points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; color: #cfdceb; }
.cta__points li { display: flex; gap: 12px; align-items: center; }
.cta__points .ic { color: var(--lime); width: 20px; height: 20px; }
.form { position: relative; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 28px; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
@media (max-width: 480px) { .form__grid { grid-template-columns: 1fr; } .form { padding: 20px; } }
.ff { display: flex; flex-direction: column; gap: 6px; }
.ff--full { grid-column: 1 / -1; }
.ff > span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.ff input, .ff textarea { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfcfd; outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.ff input:focus, .ff textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 167, 186, .14); background: #fff; }
.ff.is-error input { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(242, 85, 79, .12); }
.seg { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; font-size: .86rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .3s var(--ease); }
.seg input:checked + span { background: var(--navy-800); color: #fff; box-shadow: 0 6px 16px -8px rgba(2, 33, 69, .7); }
.seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.form__ok { position: absolute; inset: 0; border-radius: inherit; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 30px; }
.form__ok[hidden] { display: none; }
.form__okic { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--navy-900); animation: okPop .6s var(--ease); }
.form__okic .ic { width: 34px; height: 34px; stroke-width: 3; }
@keyframes okPop { from { transform: scale(0) rotate(-40deg); } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #9fb3c9; padding: 70px 0 30px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 300px; font-size: .92rem; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.footer__col p { color: #fff; font-weight: 600; font-family: var(--f-display); margin-bottom: 4px; }
.footer__col a { transition: color .25s; width: fit-content; }
.footer__col a:hover { color: var(--lime); }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .78rem; color: #6f8aa6; }
.footer__legal p:last-child { max-width: 560px; }
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Tilt ---------- */
.tilt { will-change: transform; }

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