/* Paraná Data — hoja única. Paleta del logo: verde río, hoja clara, papel.
   Sistema de diseño y movimiento heredado del sitio de NM Labs. */

:root {
  --bg: #F7F6F1;
  --bg-2: #EEEDE5;
  --ink: #0B3A31;        /* verde del cilindro */
  --ink-2: #2F4A43;
  --text: #17231F;
  --muted: #5E6B66;
  --line: #DAD9CF;
  --leaf-dark: #154734;
  --leaf: #4A7F51;
  --leaf-text: #35693F;  /* hoja con contraste AA para texto chico */
  --mist: #D9E5DA;

  /* pantallas de la app (paleta real de la app de campo) */
  --app-bg: #F2F7EF;
  --app-card: #FFFFFF;
  --app-green: #57A95B;
  --app-green-d: #3C8C40;
  --app-ink: #1C2520;
  --app-grey: #6B7480;
  --app-line: #E3E9E0;

  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-app: "Roboto", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
b, strong { font-weight: 800; }

::selection { background: var(--leaf); color: #fff; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

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

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

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand-word { font-size: 15px; line-height: 1; white-space: nowrap; }
.brand-word b { font-weight: 700; font-variation-settings: "wdth" 125; letter-spacing: .06em; }
.brand-word span { font-weight: 400; letter-spacing: .38em; margin-left: .45em; font-size: .8em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; text-decoration: none; color: var(--ink-2); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

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

.btn {
  --h: 46px;
  display: inline-flex; align-items: center; gap: 10px;
  height: var(--h); padding: 0 20px;
  font: 500 15px/1 var(--font-display);
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--leaf);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { border-color: var(--leaf); color: #fff; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { color: #fff; border-color: var(--leaf); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

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

.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex; align-items: center;
  padding: 108px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 50%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 50%, #000 25%, transparent 75%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero-kicker { display: flex; align-items: center; gap: 10px; margin: 18px 0 18px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); position: relative; flex: none; }
.dot-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--leaf); opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

.hero h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-variation-settings: "wdth" 104;
  max-width: 15ch;
}
.hero h1 b { font-variation-settings: "wdth" 118; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--leaf); }
.hero-lede { margin-top: 20px; max-width: 42ch; font-size: 17px; color: var(--ink-2); }
.typer { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.typer-word { color: var(--ink); }
.typer-caret {
  display: inline-block; width: 8px; height: 1.05em; background: var(--leaf);
  transform: translateY(2px); animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Logo chico, con la misma entrada: discos que se apilan, hojas que se abren */
.hero-mark { width: 72px; }
.hero-mark svg { width: 100%; height: auto; overflow: visible; }
.hero-mark .part { will-change: transform; }
.hero-mark .part-inner { transform-box: fill-box; }
.hero-mark .leaf-l { transform-origin: 100% 100%; }
.hero-mark .leaf-r { transform-origin: 0% 100%; }
.js.motion .hero-mark .p-1, .js.motion .hero-mark .p-2, .js.motion .hero-mark .p-3 { transform: translateY(-60%); opacity: 0; }
.js.motion .hero-mark .leaf-l { transform: rotate(28deg) scale(.4); opacity: 0; }
.js.motion .hero-mark .leaf-r { transform: rotate(-28deg) scale(.4); opacity: 0; }
.js.motion.is-ready .hero-mark .part-inner { transform: none; opacity: 1; transition: transform 1s var(--ease), opacity .5s ease; }
.js.motion.is-ready .hero-mark .p-3 { transition-delay: .05s; }
.js.motion.is-ready .hero-mark .p-2 { transition-delay: .2s; }
.js.motion.is-ready .hero-mark .p-1 { transition-delay: .35s; }
.js.motion.is-ready .hero-mark .leaf { transition: transform 1.1s cubic-bezier(.3, 1.4, .5, 1), opacity .5s ease; transition-delay: .6s; }
.js.motion.is-ready .hero-mark .leaf-r { transition-delay: .72s; }

.js.motion .split .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); }
.js.motion.is-ready .split .w {
  opacity: 1; transform: none; filter: none;
  transition: opacity .7s ease, transform .9s var(--ease), filter .7s ease;
  transition-delay: calc(var(--i) * 45ms + 120ms);
}

/* ---------- Teléfonos: maquetas fieles a la app de campo ---------- */

.phones { position: relative; height: 640px; --px: 0; --py: 0; }
.phone-wrap {
  position: absolute; top: 50%; left: 50%;
  translate: calc(-50% + var(--px) * var(--d, 0) * 1px) calc(-50% + var(--py) * var(--d, 0) * .6px);
}
.pw-center { z-index: 3; }
.pw-left { z-index: 1; margin-left: -225px; margin-top: 20px; rotate: -7deg; }
.pw-right { z-index: 2; margin-left: 235px; margin-top: 32px; rotate: 6deg; }
.pw-left .phone, .pw-right .phone { scale: .88; }

.phone {
  width: 272px; aspect-ratio: 9 / 19.2; padding: 9px;
  background: #121513; border-radius: 42px;
  box-shadow: 0 1px 0 1px #2B2F2C inset, 0 40px 70px -30px rgba(11, 58, 49, .45), 0 18px 30px -18px rgba(0, 0, 0, .35);
}
.js.motion .phones .phone { opacity: 0; transform: translateY(60px); }
.js.motion.is-ready .phones .phone { opacity: 1; transform: none; transition: transform 1.2s var(--ease), opacity .7s ease; }
.js.motion.is-ready .pw-center .phone { transition-delay: .25s; }
.js.motion.is-ready .pw-left .phone { transition-delay: .45s; }
.js.motion.is-ready .pw-right .phone { transition-delay: .6s; }

.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 34px;
  background: #FAFCF8; color: #1A2027;
  font-family: var(--font-app); font-size: 11px; line-height: 1.32;
  display: flex; flex-direction: column;
}
.screen svg { width: 1em; height: 1em; flex: none; }
.m-status { display: flex; justify-content: space-between; align-items: center; padding: 10px 22px 4px; font-size: 11px; font-weight: 500; position: relative; z-index: 2; }
.m-status-ico { width: 34px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, currentColor 0 60%, transparent 60% 70%, currentColor 70%); opacity: .8; }

/* Botones como en la app */
.b-fill, .b-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border-radius: 999px; padding: 6px 11px; font-weight: 500; font-size: 10.5px; white-space: nowrap;
}
.b-fill { background: #388E3C; color: #fff; }
.b-line { border: 1px solid #C8D3C9; color: #388E3C; }
.pill { font-size: 9.5px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: #E8F5E9; color: #2E7D32; white-space: nowrap; }
.pill-amber { background: #FFF4D6; color: #8A6100; }
.pill-muted { background: #EEF0F2; color: #6B7480; }

/* Individuos */
.a-head { display: flex; align-items: center; gap: 10px; padding: 6px 12px 8px; border-bottom: 1px solid #E6E8EC; }
.a-head > div { flex: 1; display: flex; flex-direction: column; }
.a-head b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.a-head small { font-size: 10px; color: #6B7480; }
.a-back { width: 16px !important; height: 16px !important; color: #1A2027; }
.a-filter {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: #DCEEFB; border: 1.5px solid #64B5F6; color: #1E88E5;
}
.a-filter svg { width: 15px; height: 15px; }
.a-rows { display: flex; flex-direction: column; }
.a-row { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #E6E8EC; background: #fff; }
.a-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.a-metal { display: flex; align-items: center; gap: 4px; }
.a-metal b { font-size: 13.5px; font-weight: 700; }
.a-bird { width: 14px !important; height: 14px !important; }
.a-eye { width: 12px !important; height: 12px !important; }
.a-main em { font-size: 10.5px; color: #4A525C; }
.a-main span { font-size: 9.5px; color: #6B7480; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-main span b { color: #1A2027; font-weight: 500; }
.a-main small { font-size: 8.5px; color: #4A525C; font-weight: 500; }
.a-legs { display: flex; gap: 4px; }
.a-legs div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.a-legs span { font-size: 8px; color: #6B7480; background: #EEF0F2; border-radius: 4px; padding: 1px 4px; margin-bottom: 1px; }
.a-legs i { width: 13px; height: 13px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.a-thumb { width: 46px; height: 46px; flex: none; border-radius: 4px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.a-thumb.t1 { background: radial-gradient(circle at 60% 40%, #2B3A55 0 30%, transparent 31%), linear-gradient(135deg, #1D2733, #344559); }
.a-thumb.t2 { background: linear-gradient(160deg, #6E8F57, #3E5A35 60%, #2A3D27); }
.a-thumb.t3 { background: linear-gradient(200deg, #9DB8C6, #5F7F8E 55%, #46644F); }
.a-thumb::after { content: ""; position: absolute; left: 44%; top: 40%; width: 6px; height: 6px; border-radius: 50%; background: #E53935; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.js.motion .a-row, .js.motion .n-card { opacity: 0; transform: translateY(10px); }
.js.motion.is-ready .a-row, .js.motion.is-ready .n-card { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s var(--ease); }
.js.motion.is-ready .a-row:nth-child(1), .js.motion.is-ready .n-card:nth-child(1) { transition-delay: 1s; }
.js.motion.is-ready .a-row:nth-child(2), .js.motion.is-ready .n-card:nth-child(2) { transition-delay: 1.1s; }
.js.motion.is-ready .a-row:nth-child(3), .js.motion.is-ready .n-card:nth-child(3) { transition-delay: 1.2s; }
.js.motion.is-ready .a-row:nth-child(4), .js.motion.is-ready .n-card:nth-child(4) { transition-delay: 1.3s; }

/* Mapa */
.s-map .m-status { position: absolute; left: 0; right: 0; top: 0; }
.mp { position: absolute; inset: 0; }
.mp-base { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.mp-btn {
  position: absolute; width: 30px; height: 30px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; color: #1A2027; box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.mp-btn svg { width: 15px; height: 15px; }
.mp-tl { left: 12px; top: 34px; }
.mp-tr { right: 12px; top: 34px; }
.mp-loc { right: 12px; bottom: 132px; color: #1E88E5; }
.mk { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; }
.mk-nest {
  width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  color: #B08400; box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
}
.mk-nest svg { width: 14px; height: 14px; }
.mk-nest.is-sel { background: #B08400; color: #fff; outline: 3px solid rgba(176, 132, 0, .3); }
.mk-dot { width: 12px; height: 12px; border-radius: 50%; background: #388E3C; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.mk-me { width: 14px; height: 14px; border-radius: 50%; background: #1E88E5; border: 2.5px solid #fff; box-shadow: 0 0 0 8px rgba(30, 136, 229, .18); }
.mk-me::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(30, 136, 229, .5); opacity: 0; animation: ping 2.2s var(--ease) infinite; }
.js.motion .mk { scale: 0; }
.js.motion.is-ready .mk { scale: 1; transition: scale .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(1.1s + var(--i) * 110ms); }
.mp-panel {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px 16px;
  background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -6px 18px -8px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; gap: 6px;
}
.mp-panel::before { content: ""; align-self: center; width: 30px; height: 3px; border-radius: 3px; background: #D5D9DE; margin-bottom: 2px; }
.mp-panel-top { display: flex; justify-content: space-between; align-items: center; }
.mp-panel-top b { font-size: 15px; }
.mp-meta { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #6B7480; }
.mp-actions { display: flex; gap: 6px; margin-top: 2px; }

/* Nidos */
.n-head { display: flex; align-items: center; gap: 10px; padding: 6px 12px 8px; border-bottom: 1px solid #E6E8EC; background: #fff; }
.n-head > div { flex: 1; display: flex; flex-direction: column; }
.n-head b { font-size: 15px; font-weight: 700; }
.n-head small { font-size: 9.5px; color: #6B7480; }
.n-new { display: inline-flex; align-items: center; gap: 3px; background: #388E3C; color: #fff; border-radius: 999px; padding: 5px 9px 5px 7px; font-size: 10px; font-weight: 500; }
.n-seg { display: grid; grid-template-columns: 1fr 1fr; margin: 8px 12px 6px; border: 1px solid #C8D3C9; border-radius: 999px; overflow: hidden; font-size: 10px; font-weight: 500; text-align: center; }
.n-seg span { padding: 5px 0; color: #4A525C; }
.n-seg .is-on { background: #E8F5E9; color: #1B5E20; }
.n-filters { display: flex; gap: 6px; padding: 0 12px 8px; }
.n-filters span { font-size: 9.5px; padding: 4px 8px; border-radius: 8px; border: 1px solid #E6E8EC; background: #fff; color: #1A2027; }
.n-cards { display: flex; flex-direction: column; gap: 7px; padding: 0 10px; }
.n-card { background: #fff; border: 1px solid #E6E8EC; border-radius: 12px; padding: 9px 11px; display: flex; flex-direction: column; gap: 5px; }
.n-card.is-done { opacity: .75; }
.js.motion.is-ready .n-card.is-done { opacity: .75; }
.n-top { display: flex; justify-content: space-between; align-items: center; }
.n-top b { font-size: 13px; }
.n-mid { display: flex; justify-content: space-between; align-items: center; }
.eggs { display: flex; gap: 3px; color: #C9B48C; }
.eggs svg:not(.chick) { filter: drop-shadow(0 0 .5px #8C7A57); }
.eggs svg { width: 13px; height: 13px; }
.n-when { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; color: #6B7480; }
.n-when.is-late { color: #8A6100; font-weight: 700; }
.n-foot { font-size: 9.5px; color: #6B7480; }
.n-foot b { color: #1A2027; }

@media (max-width: 1180px) {
  .phone { width: 240px; }
  .pw-left { margin-left: -190px; }
  .pw-right { margin-left: 200px; }
  .phones { height: 580px; }
}
@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: 96px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 470px; margin-top: 8px; }
  .phone { width: 272px; }
  .phone-wrap { scale: .74; }
  .pw-left { margin-left: -150px; }
  .pw-right { margin-left: 150px; }
}
@media (max-width: 420px) {
  .phones { height: 420px; }
  .phone-wrap { scale: .66; }
  .pw-left { margin-left: -124px; }
  .pw-right { margin-left: 124px; }
}

/* Anillos en tablas y formularios: cuadraditos izq | der */
.sq { display: inline-flex; align-items: center; gap: 2px; }
.sq i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sq em { width: 1px; height: 10px; background: #D5D9DE; margin: 0 3px; }

/* ---------- Secciones ---------- */

section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head h2, .flow-title { font-size: clamp(32px, 4.4vw, 56px); font-variation-settings: "wdth" 104; }
.section-head p { color: var(--ink-2); max-width: 48ch; }
.eyebrow { display: block; margin-bottom: 18px; color: var(--leaf-text); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.js.motion [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s ease, transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Cómo funciona: cuatro ideas ---------- */

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line);
}
.fact { padding: 36px 20px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact-ico {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 30px -20px rgba(11, 58, 49, .45);
  transition: transform .6s var(--ease), border-color .4s;
}
.fact:hover .fact-ico { transform: translateY(-4px); border-color: var(--leaf); }
.fact svg { width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fact svg .cut { stroke: var(--leaf); }
.js.motion .fact svg path { stroke-dasharray: 120; stroke-dashoffset: 120; }
.js.motion .fact.is-in svg path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-in-out); transition-delay: calc(var(--d, 0) * 80ms + .2s); }
.fact h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 22px 0 6px; }
.fact p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 28px 0 8px; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

.fits { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(40px, 5vw, 60px); }
.fits .tags { margin: 0; }
.fits .tags li { font-size: 12.5px; padding: 6px 14px; background: #fff; }

/* ---------- Plataforma: ecosistema ---------- */

.platform { background: var(--bg-2); }
.eco { position: relative; padding: 70px 0 40px 21%; }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.eco-lines path { fill: none; stroke: var(--leaf); stroke-width: 2; stroke-dasharray: 4 6; stroke-linecap: round; }
.eco-lines circle { fill: var(--leaf); stroke: var(--bg-2); stroke-width: 2; }
.js.motion .eco.is-in .eco-lines path { animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.eco-cloud {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(11, 58, 49, .35);
}

.desk {
  position: relative; z-index: 1;
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -50px rgba(11, 58, 49, .5);
  font-family: var(--font-app); font-size: 13px; color: var(--app-ink);
}
.desk-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--app-line); background: #F7F9F6; }
.desk-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D9DDD8; }
.desk-bar .mono { margin-left: 10px; font-size: 11px; }
.desk-body { display: grid; grid-template-columns: 160px minmax(0, 1fr); min-height: 360px; }
.desk-side { background: var(--app-bg); border-right: 1px solid var(--app-line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.desk-side span { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: var(--app-grey); }
.desk-side .is-on { background: #fff; color: var(--app-ink); font-weight: 500; box-shadow: 0 0 0 1px var(--app-line); }
.desk-side em { font-style: normal; font-size: 11px; background: #E88A1A; color: #fff; border-radius: 999px; padding: 0 7px; }
.desk-main { padding: 16px 18px 18px; min-width: 0; }
.desk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.desk-stats div { border: 1px solid var(--app-line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.desk-stats b { font-size: 20px; font-weight: 700; }
.desk-stats span { font-size: 11px; color: var(--app-grey); }
.desk-table { width: 100%; border-collapse: collapse; }
.desk-table th { text-align: left; font-weight: 500; font-size: 11px; color: var(--app-grey); padding: 8px; border-bottom: 1px solid var(--app-line); }
.desk-table td { padding: 9px 8px; border-bottom: 1px solid #EEF2EC; white-space: nowrap; }
.desk-table td:first-child { font-weight: 700; }
.desk-table tr { transition: background-color .6s; }
.desk-table tr.is-flash { background: #EAF4E7; }
.st { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: #E3EFE0; color: var(--app-green-d); }
.st-draft { background: #FBEEDD; color: #9A5B12; }

.phone-sm {
  position: absolute; left: 0; bottom: 0; z-index: 3; width: 190px;
}
.phone-sm .screen { font-size: 11px; position: relative; }
.f-bar { display: grid; grid-template-columns: 16px 1fr 16px; align-items: center; padding: 6px 10px 8px; background: rgba(239, 240, 229, .7); }
.f-bar .a-back { width: 14px; height: 14px; }
.f-bar div { text-align: center; line-height: 1.15; }
.f-bar small { display: block; font-size: 8.5px; color: rgba(0, 0, 0, .54); }
.f-bar b { font-size: 11.5px; color: #000; }
.f-form { display: flex; flex-direction: column; gap: 6px; padding: 8px 9px 10px; }
.f-top { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.f-box {
  display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap;
  background: #F5F5F5; border: 1px solid #E0E0E0; border-radius: 8px; padding: 7px 6px;
  font-size: 9.5px; font-weight: 700; color: #000;
}
.f-box svg { width: 10px; height: 10px; color: rgba(0, 0, 0, .54); flex: none; }
.f-box small { font-size: 7.5px; font-weight: 400; color: rgba(0, 0, 0, .54); }
.f-box b { letter-spacing: .06em; font-size: 10.5px; }
.f-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.f-opts span { text-align: center; padding: 6px 0; border-radius: 8px; background: #E0E0E0; font-size: 9.5px; font-weight: 700; color: #000; }
.f-opts .is-on { background: #4CAF50; color: #fff; }
.f-num {
  display: flex; justify-content: space-between; align-items: baseline;
  background: #EEEEEE; border-radius: 10px; padding: 8px 10px;
  font-size: 10.5px; color: #000; transition: box-shadow .3s;
}
.f-num b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.f-num b.is-empty, #ala-value.is-empty { color: #9E9E9E; }
.f-num.is-active { box-shadow: 0 0 0 2px #4CAF50 inset; }
.f-save { margin-top: 2px; padding: 8px; border-radius: 12px; }

/* Regla del campo Ala: igual que SmartNumberField (mantener y deslizar) */
.ruler-pop {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center;
  background: rgba(0, 0, 0, .2); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.ruler-pop.is-open { opacity: 1; }
.ruler-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border-radius: 16px; padding: 14px 16px 16px; width: 82%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .26);
  transform: scale(.92); transition: transform .35s var(--ease);
}
.ruler-pop.is-open .ruler-card { transform: none; }
.ruler-card small { font-size: 9px; color: #9E9E9E; }
.ruler-card b { font-size: 21px; font-weight: 700; color: #000; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ruler {
  position: relative; display: block; width: 100%; height: 18px; margin-top: 6px;
  background: repeating-linear-gradient(90deg, #616161 0 1px, transparent 1px 7px) 0 50% / 100% 8px no-repeat;
  -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.ruler::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: #212121; }

.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
.app { position: relative; padding: 28px 28px 8px 0; }
.app + .app { padding-left: 28px; border-left: 1px solid var(--line); }
.app::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--leaf); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.app:hover::before { transform: scaleX(1); }
.app .idx { color: var(--leaf-text); }
.app h3 { margin: 14px 0 10px; font-size: clamp(22px, 2.2vw, 26px); font-weight: 500; letter-spacing: -0.01em; }
.app p { color: var(--ink-2); font-size: 16px; }

@media (max-width: 960px) {
  .eco { padding: 64px 0 0; }
  .desk-body { grid-template-columns: 1fr; }
  .desk-side { display: none; }
  .desk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk-table th:nth-child(3), .desk-table td:nth-child(3) { display: none; }
  .phone-sm { position: relative; width: 180px; margin: -110px 0 0 auto; right: 8px; }
  .eco-lines { display: none; }
}
@media (max-width: 560px) {
  .desk-table th:nth-child(2), .desk-table td:nth-child(2) { display: none; }
}
@media (max-width: 860px) {
  .apps { grid-template-columns: 1fr; }
  .app, .app + .app { padding: 24px 0 20px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Caso (bloque oscuro) ---------- */

.case { background: var(--ink); color: #DCE6DF; overflow: hidden; }
.case .mono { color: #9FB5AB; }
.case .eyebrow { color: #A9CDB0; }
.case h2 { font-size: clamp(32px, 4.4vw, 56px); font-variation-settings: "wdth" 104; color: #EEF3EE; }
.case h2 b { color: #fff; }
.case-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.case-lede { margin-top: 24px; max-width: 48ch; color: #C6D4CB; }
.built { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid #1F5146; }
.built li {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid #1F5146; font-size: 16px; color: #E3ECE5;
}
.built li .tick { width: 8px; height: 8px; border-radius: 50%; background: #8FC79A; }
.case .btn { margin-top: 32px; border-color: #DCE6DF; color: #EEF3EE; }
.case .btn:hover { border-color: var(--leaf); }
@media (max-width: 960px) { .case-grid { grid-template-columns: 1fr; } }

.case-visual { position: relative; padding-bottom: 56px; }
.photo { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: #123F35; }
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.js.motion .case-visual.is-in .photo img { transform: scale(1); }

.record {
  position: absolute; left: clamp(-40px, -3vw, -16px); bottom: 0; width: min(330px, 84%);
  background: #fff; color: #000; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55);
  font-family: var(--font-app); font-size: 13px;
}
@media (max-width: 960px) { .record { left: 12px; } }
.r-bar { position: relative; text-align: center; line-height: 1.2; padding: 12px 14px 10px; background: rgba(239, 240, 229, .85); }
.r-bar small { display: block; font-size: 11px; color: rgba(0, 0, 0, .54); }
.r-bar b { display: block; font-size: 15px; }
.r-net { position: absolute; right: 10px; top: 10px; font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: #FBEEDD; color: #9A5B12; transition: background-color .4s, color .4s; }
.record.is-online .r-net { background: #E3EFE0; color: #2E7D32; }
.r-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.r-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.r-box, .r-place {
  display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap;
  background: #F5F5F5; border: 1px solid #E0E0E0; border-radius: 12px; padding: 10px;
}
.r-box svg, .r-place svg { width: 14px; height: 14px; flex: none; color: rgba(0, 0, 0, .54); fill: currentColor; }
.r-box small, .r-place small { font-size: 10px; color: rgba(0, 0, 0, .54); }
.r-box b { font-size: 13px; }
.r-place b { font-size: 13px; }
.r-place small { margin-left: auto; font-variant-numeric: tabular-nums; }
.record-metal { font-size: 15px !important; letter-spacing: .08em; min-height: 1.2em; min-width: 6ch; }
.r-mid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; align-items: start; }
.r-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.r-opts span { text-align: center; padding: 9px 0; border-radius: 10px; background: #E0E0E0; font-size: 11.5px; font-weight: 700; }
.r-opts .is-on { background: #4CAF50; color: #fff; }
.legs { display: flex; justify-content: space-evenly; }
.leg { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.leg i { display: block; width: 30px; height: 30px; border-radius: 6px; background: var(--c); border: 1px solid #9E9E9E; }
.leg small { font-size: 10px; color: #000; }
.js.motion .record .leg i { transform: scale(0); background: #fff; }
.js.motion .record.is-rings .leg i { transform: none; background: var(--c); transition: transform .45s var(--ease), background-color .3s; }
.js.motion .record.is-rings .leg:nth-child(1) i:nth-child(2) { transition-delay: .12s; }
.js.motion .record.is-rings .leg:nth-child(2) i:nth-child(1) { transition-delay: .24s; }
.js.motion .record.is-rings .leg:nth-child(2) i:nth-child(2) { transition-delay: .36s; }
.record-sync { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #F7F8F4; border-top: 1px solid #EEEEEE; }
.sync-track { position: relative; flex: none; width: 56px; height: 2px; background: var(--line); }
.sync-dot { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #C98321; }
.js.motion .record.is-syncing .sync-dot { animation: travel 1.1s var(--ease-in-out) 2; background: var(--leaf); }
.record.is-synced .sync-dot { left: calc(100% - 8px); background: var(--leaf); }
.record.is-synced .sync-track { background: var(--leaf); }
@keyframes travel { from { left: 0; } to { left: calc(100% - 8px); } }
.record-state { color: var(--ink-2); }
.record.is-synced .record-state { color: var(--leaf-text); }

/* ---------- Quién: ficha centrada ---------- */

.team .wrap { display: flex; justify-content: center; }
.profile {
  display: flex; gap: 28px; align-items: flex-start; max-width: 760px; width: 100%;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
  position: relative; overflow: hidden;
}
.profile::after {
  content: ""; position: absolute; right: -40px; bottom: -50px; width: 190px; height: 190px;
  background: url("../assets/brand/mark.svg") no-repeat center / contain;
  opacity: .06; transition: transform 1.2s var(--ease);
}
.profile:hover::after { transform: rotate(-8deg) scale(1.04); }
.profile-avatar {
  width: 112px; height: 112px; flex: none; border-radius: 50%;
  object-fit: cover; object-position: 50% 30%; background: var(--mist);
  filter: grayscale(1) contrast(1.05);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line);
}
.profile-body { min-width: 0; position: relative; }
.profile-role { color: var(--leaf-text); }
.profile h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.015em; margin: 8px 0 12px; }
.profile p { color: var(--ink-2); font-size: 16px; max-width: 58ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 22px; padding: 0; list-style: none; }
.tags li {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--bg);
}
.icon-link {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink);
  transition: border-color .3s, background-color .3s, color .3s;
}
.icon-link:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.icon-link svg { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .profile { flex-direction: column; gap: 18px; }
  .profile-avatar { width: 88px; height: 88px; }
}

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

.contact { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px 64px; align-items: end; }
.contact h2 { font-size: clamp(34px, 5vw, 68px); font-variation-settings: "wdth" 104; max-width: 16ch; }
.contact h2 b { font-variation-settings: "wdth" 118; color: var(--leaf); }
.contact p { color: var(--ink-2); max-width: 44ch; margin-bottom: 24px; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }

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

.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
.site-footer .brand img { width: 28px; height: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .typer-caret { animation: none; }
}

/* Cómo funciona: todo centrado */
#flujo .wrap { text-align: center; }
#flujo .fits { justify-content: center; }
.platform .section-head { grid-template-columns: 1fr; }
.built li b { color: #fff; font-weight: 600; }
.built li { align-items: start; } .built li .tick { margin-top: 8px; }

/* EN: Lista Roja UICN */
.iucn {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 1px; vertical-align: 1px; line-height: 1;
  border-radius: 50%; background: #D86C27; color: #fff !important; text-decoration: none;
  font: 700 9.5px/1 var(--font-app); letter-spacing: .02em; transition: transform .3s var(--ease);
}
.iucn:hover { transform: scale(1.12); }

/* Vínculo con el nido, como en la app */
.r-link {
  display: flex; align-items: center; gap: 12px; margin: 0 12px 12px;
  padding: 10px 12px; background: #fff; border: 1px solid #E6E8EC; border-radius: 14px;
  color: #1A2027;
}
.r-link .r-egg { width: 22px; height: 22px; color: #388E3C; flex: none; }
.r-link span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.r-link b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-link small { font-size: 11.5px; color: #6B7480; }
.r-link .r-chev { width: 18px; height: 18px; fill: none; stroke: #6B7480; stroke-width: 2; flex: none; }
.js.motion .record .r-link { opacity: 0; transform: translateY(10px); }
.js.motion .record.is-linked .r-link {
  opacity: 1; transform: none; transition: opacity .5s ease, transform .6s var(--ease);
  animation: link-glow 1.4s ease .3s;
}
@keyframes link-glow { 0% { box-shadow: 0 0 0 0 rgba(56, 142, 60, .45); } 100% { box-shadow: 0 0 0 10px rgba(56, 142, 60, 0); } }

/* ===================== Ajustes para teléfonos ===================== */
@media (max-width: 520px) {
  /* Cómo funciona: 2 × 2 compacto en lugar de cuatro filas altas */
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact, .fact + .fact { padding: 24px 10px 20px; border-left: 0; border-top: 0; margin-top: 0; }
  .fact:nth-child(odd) { border-right: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fact-ico { width: 60px; height: 60px; }
  .fact svg { width: 30px; height: 30px; }
  .fact h3 { font-size: 16px; margin: 14px 0 4px; }
  .fact p { font-size: 14px; }
}

@media (max-width: 960px) {
  /* Plataforma: el teléfono va debajo de la ventana, sin tapar la tabla */
  .eco { padding-top: 60px; }
  .phone-sm { position: relative; left: auto; right: auto; bottom: auto; width: 210px; margin: -28px auto 0; }

  /* En uso: la ficha se apoya en la foto, sin cubrirla entera */
  .case-visual { padding-bottom: 0; }
  .record { position: relative; left: auto; bottom: auto; width: auto; margin: -72px 12px 0; }
  .r-link b { white-space: normal; }
}
@media (max-width: 560px) {
  .desk-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .desk-stats div { padding: 8px; }
  .desk-stats b { font-size: 16px; }
  .desk-stats span { font-size: 9.5px; line-height: 1.2; }
  .desk-main { padding: 12px; }
  .desk-table td, .desk-table th { padding: 8px 5px; }
}
@media (max-width: 420px) {
  .record { margin: -56px 0 0; }
  .r-place small { display: none; }
  .r-body { padding: 10px; }
  .r-opts span { font-size: 11px; padding: 8px 0; }
  .leg i { width: 26px; height: 26px; }
  .profile { flex-direction: column; align-items: center; text-align: center; }
  .profile .tags { justify-content: center; }
  .profile p { margin-inline: auto; }
}
@media (min-width: 561px) and (max-width: 960px) { .desk-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Hero: el logo centrado sobre el título */
.hero-title { display: inline-flex; flex-direction: column; align-items: center; }
.hero-title h1 { align-self: stretch; }
.contact h2 { max-width: 22ch; font-size: clamp(32px, 4.2vw, 56px); }
.contact-inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }

/* Hero en teléfonos: todo centrado */
@media (max-width: 860px) {
  .hero-copy { text-align: center; }
  .hero-title { display: flex; }
  .hero-title h1 { text-align: center; }
  .hero .typer, .hero-actions { justify-content: center; }
}

/* Teléfonos: centrados y botón de contacto a la derecha */
#flujo .fits .tags { justify-content: center; }
@media (max-width: 860px) {
  .hero-title h1 { max-width: none; margin-inline: auto; }
  .apps .app { text-align: center; }
  .contact .btn { display: flex; width: max-content; margin-left: auto; }
}
