/* ===========================================================
   GestionUp · Landing v2
   Verde de marca + una sola familia (Instrument Sans).
   La personalidad sale del ancho: títulos angostos, texto normal.
   =========================================================== */

/* Plus Jakarta Sans alojada en el sitio: los mismos archivos y rangos que sirve
   Google Fonts (v12, variable 400–800). Licencia SIL OFL 1.1 en assets/fonts/plus-jakarta-sans/OFL.txt */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans/plus-jakarta-sans-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans/plus-jakarta-sans-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Mientras carga, Arial ajustada a las métricas de Plus Jakarta Sans: el texto ocupa
   el mismo lugar y no salta al cambiar de fuente. Solo se ve durante esa espera. */
@font-face { font-family: "Plus Jakarta Sans Fallback"; font-weight: 100 549; src: local("Arial"), local("ArialMT");
  size-adjust: 104.7%; ascent-override: 99.14%; descent-override: 21.2%; line-gap-override: 0%; }
@font-face { font-family: "Plus Jakarta Sans Fallback"; font-weight: 550 900; src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 101.38%; ascent-override: 102.39%; descent-override: 21.9%; line-gap-override: 0%; }

:root {
  --g-950: #0b2a21;
  --g-900: #123b30;
  --g-800: #174a3c;
  --g-700: #1E5F4E;   /* Marca */
  --g-600: #267259;
  --g-500: #2B9C7A;   /* Jade */
  --g-400: #5CC9A0;   /* del isotipo (cara de las columnas) */
  --g-300: #7FDCB8;   /* Menta */
  --g-100: #dcebe4;
  --g-50:  #eef5f1;

  --amber:     #E8A33D; /* Ámbar */
  --amber-50:  #fdf3e2;
  --amber-800: #8a5410;
  --red-50:    #fdecea;
  --red-700:   #b3362b;

  --ink:   #0E1916;   /* Carbón */
  --ink-2: #44514c;
  --ink-3: #66736e;
  --line:  #e1e7e4;
  --line-2:#d2dbd7;
  --paper: #ffffff;
  --mist:  #f3f6f4;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Sombras en capas: contacto + ambiente + profundidad */
  --sh-1: 0 1px 2px rgba(16, 40, 32, .06), 0 2px 6px -2px rgba(16, 40, 32, .06);
  --sh-2: 0 1px 2px rgba(16, 40, 32, .05), 0 8px 24px -10px rgba(16, 40, 32, .16);
  --sh-3: 0 1px 2px rgba(16, 40, 32, .06), 0 6px 12px -4px rgba(16, 40, 32, .08), 0 24px 48px -16px rgba(16, 40, 32, .24), 0 64px 120px -32px rgba(16, 40, 32, .40);
  --sh-4: 0 1px 2px rgba(16, 40, 32, .06), 0 10px 20px -6px rgba(16, 40, 32, .12), 0 36px 64px -20px rgba(16, 40, 32, .32), 0 90px 160px -40px rgba(16, 40, 32, .48);
  --sh-dark: 0 2px 6px rgba(0, 0, 0, .2), 0 30px 60px -20px rgba(0, 0, 0, .5);

  /* Igual que el sistema: Plus Jakarta Sans para todo, números con ancho fijo */
  --f: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--f);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
/* La página no se agranda con el pellizco ni con el doble toque (la maqueta se adapta sola a cada pantalla):
   solo se permite desplazarla. Las listas que se deslizan de costado (solapas, carrusel) siguen funcionando. */
html, body { touch-action: pan-x pan-y; }
@media screen { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  /* clip recorta igual pero no convierte al body en contenedor de scroll:
     así la barra sticky sigue pegada a la pantalla aunque se bloquee el scroll */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { margin: 0; font-weight: 600; font-stretch: 86%; letter-spacing: -.02em; word-spacing: .04em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; font-weight: 500; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

:focus-visible { outline: 3px solid rgba(47, 138, 107, .55); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .25s ease, transform .2s var(--ease), color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary {
  background: var(--g-700); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(16,40,32,.2), 0 6px 16px -6px rgba(31,94,75,.55);
}
.btn--primary:hover { background: var(--g-800); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(16,40,32,.2), 0 12px 24px -8px rgba(31,94,75,.6); }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-1); }
.btn--ghost:hover { border-color: var(--g-500); color: var(--g-700); }
.btn--sm { height: 40px; padding: 0 16px; font-size: .94rem; border-radius: 10px; }
.btn--lg { height: 52px; padding: 0 28px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(243, 246, 244, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.nav.is-scrolled { background: rgba(255, 255, 255, .92); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.28rem; font-stretch: 90%; letter-spacing: -.03em; color: var(--ink); }
.brand b { color: var(--g-600); font-weight: 700; }
.brand--light { color: #fff; }
.brand--light b { color: var(--g-400); }
.nav__links { display: flex; align-items: center; gap: 4px; font-size: .96rem; font-weight: 500; color: var(--ink-2); }
.nav__links a:not(.btn) { position: relative; padding: 8px 14px; border-radius: 9px; transition: color .2s ease, background-color .2s ease; }
.nav__links a:not(.btn):hover { color: var(--ink); background: rgba(21, 32, 28, .05); }
.nav__links a.is-current { color: var(--g-700); }
.nav__links a.is-current::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--g-500); }
.nav__cta { margin-left: 12px; }
.nav__toggle { display: none; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; border-radius: 10px; }
.nav__toggle svg { width: 24px; height: 24px; }
.nav__ico-close { display: none; }
.nav__toggle[aria-expanded="true"] .nav__ico-open { display: none; }
.nav__toggle[aria-expanded="true"] .nav__ico-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 62%); padding-top: clamp(40px, 4.4vw, 64px); }
.hero__top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px 64px; align-items: end; }
.hero__title { font-size: clamp(2.9rem, 6.6vw, 5.6rem); font-stretch: 80%; font-weight: 600; letter-spacing: -.03em; word-spacing: .06em; line-height: .96; }
/* La máscara de la animación deja lugar a los descendentes (g, p): si no, se cortan */
.hero__title .line { display: block; overflow: hidden; padding-bottom: .22em; margin-bottom: -.22em; }
.hero__title .line > span { display: block; }
.hero__aside { padding-bottom: 8px; }
.hero__lead { font-size: 1.16rem; line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Horizonte: la captura queda mitad sobre el claro, mitad sobre el verde */
.hero__horizon {
  margin-top: clamp(20px, 2.4vw, 36px);
  background: linear-gradient(180deg, transparent 0 46%, var(--g-900) 46%);
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow-x: clip;
}
.stage { position: relative; perspective: 2200px; }
.stage__in {
  position: relative; width: min(1060px, 100%); margin-inline: auto;
  transform-origin: 50% 100%;
  will-change: transform;
}

/* Bezel: marco de vidrio alrededor de cada captura */
.bezel {
  position: relative; margin: 0; padding: 6px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  box-shadow: 0 0 0 1px rgba(16, 40, 32, .08), var(--sh-3);
}
.bezel img { width: 100%; border-radius: calc(var(--r-lg) - 6px); box-shadow: 0 0 0 1px rgba(16, 40, 32, .06); background: #fff; }
.bezel--hero { padding: 8px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(16, 40, 32, .08), 0 2px 4px rgba(16,40,32,.05), 0 30px 60px -20px rgba(16,40,32,.32), 0 90px 160px -40px rgba(4, 20, 15, .7); }
.bezel--hero img { border-radius: 15px; }
.bezel--side { position: absolute; left: -5%; bottom: -9%; width: 27%; z-index: 2; }
.stage__phone { position: absolute; right: -3%; bottom: -12%; width: 19%; z-index: 2; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.toast {
  position: absolute; z-index: 3; top: 12%; right: 13%;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  /* Fondo sólido, sin backdrop-filter: dentro del escenario 3D Chrome lo dibujaba con parpadeos */
  background: #fff;
  border-radius: 16px; box-shadow: 0 0 0 1px rgba(16, 40, 32, .07), var(--sh-3);
  backface-visibility: hidden;
}
.toast__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--g-700); color: #fff; }
.toast__ico svg { width: 18px; height: 18px; stroke-width: 2.6; }
.toast__txt b { display: block; font-size: .95rem; line-height: 1.25; }
.toast__txt small { display: block; font-family: var(--mono); font-size: .72rem; color: var(--ink-3); line-height: 1.35; letter-spacing: -.02em; }

/* ---------- Módulos (sobre el verde del horizonte) ---------- */
.suite { background: var(--g-900); color: #fff; padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 8vw, 112px); }
.suite__intro { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; font-stretch: 86%; letter-spacing: -.018em; word-spacing: .04em; line-height: 1.15; max-width: 24ch; margin-bottom: 40px; }

.ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--g-50); color: var(--g-700); flex: none; transition: background-color .25s ease, color .25s ease, transform .3s var(--ease); }
.ico svg { width: 20px; height: 20px; }
.suite .ico, .mobile .ico { background: rgba(255,255,255,.07); color: var(--g-300); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section--mist { background: var(--mist); }
.split-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px 64px; align-items: end; margin-bottom: 48px; }
.split-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.split-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 40ch; padding-bottom: 6px; }

/* ---------- Pestañas (control segmentado) ---------- */
.seg-wrap { margin-bottom: 40px; }
.seg {
  position: relative; display: inline-flex; gap: 2px; padding: 5px;
  background: var(--mist); border: 1px solid var(--line); border-radius: 14px;
}
.seg__pill {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 10px;
  background: var(--paper); box-shadow: 0 0 0 1px rgba(16,40,32,.06), 0 1px 2px rgba(16,40,32,.08), 0 4px 12px -4px rgba(16,40,32,.12);
  transform-origin: 0 50%; will-change: transform;
}
.seg__tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: none;
  font-weight: 600; font-size: .95rem; color: var(--ink-3); white-space: nowrap;
  transition: color .25s ease;
}
.seg__tab svg { width: 18px; height: 18px; transition: color .25s ease; }
.seg__tab:hover { color: var(--ink); }
.seg__tab.is-active { color: var(--ink); }
.seg__tab.is-active svg { color: var(--g-600); }
.no-js .seg__tab.is-active, .seg:not(.is-ready) .seg__tab.is-active { background: var(--paper); box-shadow: var(--sh-1); }

.panel { display: grid; grid-template-columns: 1.7fr 1fr; gap: 64px; align-items: center; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 12px; border-radius: var(--r-lg); }
.panel__shots { position: relative; padding: 0 0 64px; }
.panel__shots:has(> :only-child) { padding-bottom: 0; }
.bezel--float { position: absolute; right: -6%; bottom: 0; width: 48%; z-index: 1; }
.bezel--tall { width: 34%; bottom: -12px; }
.panel__text h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 24px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--g-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5e4b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: inset 0 0 0 1px var(--g-100);
}
.checks b { color: var(--ink); font-weight: 600; }

/* Al cambiar de pestaña: la captura principal se asienta, la flotante sube */
.panel.is-entering .panel__shots > .bezel:first-child { animation: shotIn .7s var(--ease) both; }
.panel.is-entering .bezel--float { animation: floatIn .8s .08s var(--ease) both; }
.panel.is-entering .panel__text > * { animation: textIn .6s var(--ease) both; }
.panel.is-entering .panel__text > *:nth-child(2) { animation-delay: .06s; }
@keyframes shotIn { from { opacity: 0; transform: scale(.98); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes textIn { from { opacity: 0; transform: translateX(12px); } }

.zoomable { cursor: zoom-in; }
/* Las capturas son botones para ampliar: sin selección azul, arrastre ni menú de imagen al mantener apretado */
.zoomable, .zoomable * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.zoomable img { -webkit-user-drag: none; }
.zoomable img { transition: filter .3s ease; }
.zoomable:hover img { filter: brightness(1.02) saturate(1.04); }

/* ---------- Celular ---------- */
.mobile {
  position: relative; overflow: hidden; color: #fff; padding: clamp(80px, 10vw, 128px) 0;
  background: var(--g-800);
  isolation: isolate;
}
.mobile::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10%;
  background: radial-gradient(45% 50% at 28% 52%, rgba(92, 201, 160, .2), transparent 70%);
  translate: 0 var(--bg-y, 0px);
}
.mobile__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.mobile__phones { position: relative; height: 640px; }
.phone { position: absolute; width: 280px; margin: 0; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .4)); }
.phone img { transition: transform .5s var(--ease); }
.phone--a { left: 6%; top: 0; z-index: 2; }
.phone--b { left: 46%; top: 64px; }
.phone--a img { transform: rotate(-4deg); }
.phone--b img { transform: rotate(4deg); }
.phone--a:hover img { transform: rotate(-4deg) translateY(-8px); }
.phone--b:hover img { transform: rotate(4deg) translateY(-8px); }
.mobile__copy h2 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 12ch; }
.mobile__lead { margin-top: 20px; font-size: 1.12rem; color: rgba(255,255,255,.76); max-width: 42ch; }
.feats { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
.feats li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.feats b { display: block; font-weight: 600; font-size: 1.04rem; }
.feats small { display: block; color: rgba(255,255,255,.66); font-size: .95rem; line-height: 1.45; }

/* ---------- ARCA ---------- */
.arca { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.arca__copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 14ch; }
.arca__lead { margin-top: 18px; color: var(--ink-2); font-size: 1.1rem; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; display: flex; gap: 18px; padding-bottom: 26px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line-2); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--g-500);
  transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease); transition-delay: calc(var(--i, 0) * .18s + .3s);
}
.steps.is-in li::after { transform: none; }
.steps li:nth-child(2) { --i: 1; }
.steps li:nth-child(3) { --i: 2; }
.steps__n {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: var(--paper); color: var(--g-700); font-family: var(--mono); font-weight: 600; font-size: .9rem;
  box-shadow: inset 0 0 0 1.5px var(--g-500), var(--sh-1);
}
.steps li:last-child .steps__n { background: var(--g-700); color: #fff; box-shadow: var(--sh-2); }
.steps b { display: block; font-weight: 600; font-size: 1.08rem; padding-top: 5px; }
.steps small { display: block; color: var(--ink-3); font-size: .98rem; }

.invoice-wrap { position: relative; max-width: 460px; width: 100%; margin-inline: auto; }
/* Hoja de abajo: da sensación de talonario */
.invoice-wrap::before {
  content: ""; position: absolute; inset: 14px -10px -14px 10px; border-radius: var(--r-lg);
  background: var(--paper); box-shadow: 0 0 0 1px rgba(16,40,32,.06), var(--sh-2); transform: rotate(2.5deg);
}
.invoice {
  position: relative; background: var(--paper); border-radius: var(--r-lg); padding: 28px;
  box-shadow: 0 0 0 1px rgba(16,40,32,.07), var(--sh-3);
}
.invoice__head { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px dashed var(--line-2); }
.invoice__id { flex: 1 1 160px; min-width: 0; }
.invoice__id b { display: block; font-weight: 600; font-size: 1.08rem; }
.invoice__id small { display: block; color: var(--ink-3); font-family: var(--mono); font-size: .74rem; letter-spacing: -.02em; }
.invoice__type { display: grid; place-items: center; align-content: center; width: 52px; height: 52px; border: 1.5px solid var(--ink); border-radius: 10px; font-weight: 700; font-size: 1.5rem; line-height: 1; flex: none; }
.invoice__type small { font-family: var(--mono); font-size: .5rem; font-weight: 500; margin-top: 3px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px 0 8px; border-radius: 99px; background: #e3f5ea; color: #19703f; font-size: .82rem; font-weight: 600; flex: none; }
.badge svg { width: 14px; height: 14px; stroke-width: 3; }
.invoice__rows { display: grid; gap: 12px; padding: 20px 0; font-size: .97rem; color: var(--ink-2); }
.invoice__rows div, .invoice__total { display: flex; justify-content: space-between; gap: 16px; }
.invoice__total { align-items: baseline; padding: 16px 0 20px; border-top: 1px solid var(--line); font-weight: 600; }
.invoice__total b { font-size: 1.75rem; font-weight: 600; color: var(--g-700); letter-spacing: -.04em; }
.invoice__cae { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.invoice__cae dt { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); font-weight: 500; letter-spacing: -.02em; }
.invoice__cae dd { margin: 0; font-weight: 600; font-size: .97rem; }
.invoice__note { margin-top: 26px; text-align: center; font-size: .8rem; color: var(--ink-3); }

/* Animación de la factura (solo con JS) */
.js .invoice .badge { opacity: 0; transform: scale(.85); transition: opacity .4s ease, transform .5s var(--ease); transition-delay: 1.5s; }
.js .invoice__rows > div { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .6s var(--ease); }
.js .invoice__rows > div:nth-child(1) { transition-delay: .3s; }
.js .invoice__rows > div:nth-child(2) { transition-delay: .45s; }
.js .is-in .invoice .badge, .js .is-in .invoice__rows > div { opacity: 1; transform: none; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "stock stock branch" "users files branch"; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; gap: 8px; transition: transform .4s var(--ease), box-shadow .4s ease; }
.tile h3 { font-size: 1.45rem; font-stretch: 88%; letter-spacing: -.02em; }
.tile p { color: var(--ink-2); font-size: 1rem; max-width: 34ch; }
.tile .ico { margin-bottom: 14px; }

.tile--stock { grid-area: stock; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: center; }
.tile--stock .tile__text { display: grid; gap: 8px; }
.stocklist { list-style: none; margin: 0; padding: 6px; background: var(--paper); border-radius: 16px; box-shadow: 0 0 0 1px rgba(16,40,32,.06), var(--sh-2); }
.stocklist li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 12px; font-size: .92rem; border-radius: 10px; transition: background-color .2s ease; }
.stocklist li + li { border-top: 1px solid var(--line); }
.stocklist li:hover { background: var(--mist); }
.stocklist li > span:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.stocklist li > .num { color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px; border-radius: 99px; font-style: normal; font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.pill--ok { background: var(--g-50); color: var(--g-700); }
.pill--low { background: var(--amber-50); color: var(--amber-800); }
.pill--out { background: var(--red-50); color: var(--red-700); }
.pill .num.is-tick { animation: tick .4s var(--ease); }
@keyframes tick { from { opacity: 0; transform: translateY(-6px); } }

.tile--branch { grid-area: branch; color: #fff; background: linear-gradient(165deg, var(--g-700), var(--g-900)); box-shadow: var(--sh-2); }
.tile--branch p { color: rgba(255,255,255,.74); }
.ico--glass { background: rgba(255,255,255,.1); color: var(--g-300); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.branchpick { margin-top: auto; padding-top: 32px; }
.branchpick__btn { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-weight: 600; font-size: .95rem; }
.branchpick__btn .chev { margin-left: auto; opacity: .7; transition: transform .3s var(--ease); }
.branchpick ul { list-style: none; margin: 8px 0 0; padding: 6px; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: var(--sh-dark); }
.branchpick li { position: relative; padding: 10px 12px 10px 32px; border-radius: 8px; font-size: .93rem; font-weight: 500; transition: background-color .2s ease; }
.branchpick li.is-on { background: var(--g-50); color: var(--g-700); font-weight: 600; }
.branchpick li.is-on::before { content: ""; position: absolute; left: 13px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--g-500); }
.tile--branch:hover .chev { transform: rotate(180deg); }

.tile--users { grid-area: users; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.roles { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.roles li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--mist); font-size: .9rem; }
.roles b { font-weight: 600; }
.roles span { color: var(--ink-3); font-family: var(--mono); font-size: .78rem; letter-spacing: -.02em; }

.tile--files { grid-area: files; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.attach { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.attach > span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: -.02em; }
.attach svg { width: 17px; height: 17px; }
.attach__file { border: 1px dashed var(--line-2); color: var(--ink-2); }
.attach__file svg { color: var(--g-600); }
.attach__note { background: var(--amber-50); color: var(--amber-800); }

.tile--users:hover, .tile--files:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--sh-3); }
.tile--users:hover .ico, .tile--files:hover .ico { background: var(--g-700); color: #fff; }

.fit { margin-top: 40px; text-align: center; color: var(--ink-3); font-size: 1.02rem; }

/* ---------- Contacto ---------- */
.contact { padding: clamp(80px, 10vw, 128px) 0 clamp(56px, 6vw, 80px); background: var(--mist); }
.contact__card {
  display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden;
  background: var(--paper); border-radius: var(--r-xl);
  box-shadow: 0 0 0 1px rgba(16,40,32,.06), var(--sh-3);
}
.contact__side {
  display: flex; flex-direction: column; gap: 40px; padding: 48px 44px; color: #fff;
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(92, 201, 160, .18), transparent 60%),
    var(--g-800);
}
.contact__intro h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.contact__intro p { margin-top: 14px; color: rgba(255,255,255,.76); font-size: 1.06rem; max-width: 34ch; }
.contact__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact__steps li { position: relative; display: flex; gap: 14px; }
.contact__steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: -16px; width: 1px; background: rgba(255,255,255,.18); }
.contact__steps span { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); color: var(--g-300); font-family: var(--mono); font-size: .8rem; font-weight: 600; }
.contact__steps b { display: block; font-weight: 600; }
.contact__steps small { display: block; color: rgba(255,255,255,.66); font-size: .92rem; }
.contact__mail { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.contact__mail small { display: block; color: rgba(255,255,255,.62); font-size: .86rem; margin-bottom: 8px; }
.contact__mailrow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.contact__mailrow a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.12rem; transition: color .2s ease; }
.contact__mailrow a svg { color: var(--g-300); }
.contact__mailrow a:hover { color: var(--g-300); }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); color: #fff; font-size: .84rem; font-weight: 600; transition: background-color .2s ease; }
.copy:hover { background: rgba(255,255,255,.14); }
.copy svg { width: 15px; height: 15px; }
.copy__b { display: none; stroke-width: 2.6; color: var(--g-400); }
.copy.is-done .copy__a { display: none; }
.copy.is-done .copy__b { display: block; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.4); } }

.form { display: flex; flex-direction: column; gap: 22px; padding: 48px 44px; min-width: 0; }
.form__head h3 { font-size: 1.6rem; }
.form__head p { margin-top: 6px; color: var(--ink-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span, .opts legend { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.form input[type="text"], .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(16,40,32,.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form input[type="text"] { height: 48px; }
.form input:hover, .form textarea:hover { border-color: #b9c6c0; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--g-500); box-shadow: 0 0 0 4px rgba(47, 138, 107, .14); }
.form textarea { resize: none; min-height: 128px; line-height: 1.5; }
.form textarea::placeholder { color: #9aa7a2; }
.field--grow { flex: 1; display: flex; flex-direction: column; }
.field--grow textarea { flex: 1; }
.form .is-invalid { border-color: var(--red-700); box-shadow: 0 0 0 4px rgba(179, 54, 43, .1); }

.opts { border: 0; margin: 0; padding: 0; min-width: 0; }
.opts legend { padding: 0; margin-bottom: 8px; }
.opts__row { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 9px; font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; user-select: none; }
.opt:hover span { color: var(--ink); }
.opt input:checked + span { background: var(--paper); color: var(--g-700); font-weight: 600; box-shadow: 0 0 0 1px rgba(16,40,32,.06), 0 1px 2px rgba(16,40,32,.08), 0 4px 10px -4px rgba(16,40,32,.12); }
.opt input:focus-visible + span { outline: 3px solid rgba(47, 138, 107, .55); outline-offset: 1px; }

.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.form__privacy { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--ink-3); }
.form__privacy svg { color: var(--g-500); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin-top: -6px; font-size: .94rem; font-weight: 500; }
.form__status:empty { display: none; }
.form__status.ok { color: var(--g-600); }
.form__status.err { color: var(--red-700); }

/* ---------- Footer ---------- */
.footer { background: var(--g-950); color: rgba(255,255,255,.66); padding: 30px 0; font-size: .94rem; }
/* una sola franja: marca a la izquierda, secciones al centro, contacto a la derecha */
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand p { margin: 0; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.16); font-size: .88rem; color: rgba(255,255,255,.5); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; }
.footer__nav a { position: relative; padding: 6px 0; color: rgba(255,255,255,.72); }
.footer__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--g-300);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.footer__nav a:hover::after, .footer__nav a:focus-visible::after { transform: scaleX(1); }
/* mail y © en la misma línea, separados como la frase de la marca */
.footer__end { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.footer__end small { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.16); }
.footer a:not(.brand) { transition: color .2s ease; }
.footer a:not(.brand):hover { color: #fff; }
.footer small { color: rgba(255,255,255,.5); font-family: var(--mono); font-size: .76rem; letter-spacing: -.02em; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(8, 24, 19, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: zoom-out; opacity: 0; transition: opacity .25s ease; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; max-width: 100%; border-radius: 14px; box-shadow: var(--sh-dark); transform: scale(.96); transition: transform .35s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; transition: background-color .2s ease; }
.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__close svg { width: 22px; height: 22px; }

/* ===========================================================
   Movimiento. Lo maneja un solo motor en main.js, ligado al
   scroll: las apariciones avanzan y retroceden con la página.
   Acá quedan solo la entrada del texto del hero y las bases.
   Decisión del cliente: anima siempre, aunque el sistema del
   visitante pida reducir movimiento.
   =========================================================== */
@media screen {
  .hero__title .line > span { animation: lineUp 1.1s var(--ease) both; }
  .hero__title .line:nth-child(2) > span { animation-delay: .09s; }
  .hero__aside { animation: fadeUp 1s .3s var(--ease) both; }
  .bezel--side { animation: fadeUp 1.1s 1s var(--ease) both; }
  .stage__phone { animation: fadeUp 1.2s .9s var(--ease) both; }
  .toast { animation: toastIn .8s 1.6s var(--ease) both; }
  @keyframes lineUp { from { transform: translateY(105%); } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } }
  @keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.94); } }

  /* El motor anima la entrada de la captura; si el JS fallara, aparece igual a los 3 s */
  .js .stage__in { opacity: 0; animation: showAnyway 0s 3s forwards; }
  @keyframes showAnyway { to { opacity: 1; } }

  /* Capas que el motor mueve en cada cuadro: van en su propia capa de GPU */
  .stage__in, .bezel--side, .stage__phone, [data-tilt], .mobile__phones .phone { will-change: transform, opacity; }
  .mobile { will-change: clip-path; }
}

.suite .wrap, .panel, .invoice-wrap, .contact .wrap { perspective: 1600px; }
[data-tilt] { transform-origin: 50% 100%; }
/* La hoja de abajo de la factura se queda atrás: se separa al scrollear */
.invoice-wrap::before { translate: 0 var(--sheet, 0px); }
.mobile::before { translate: 0 var(--bg-y, 0px); }

/* ---------- Profundidad de las imágenes ----------
   Sombra de piso: una mancha difusa debajo de cada imagen. El motor la
   aleja y la agranda cuando la imagen está "más alta" (inclinada o
   entrando) y la junta cuando se apoya. Va en su propia capa de GPU. */
.stage__in::before, .panel__shots::before, .mobile__phones::before, .invoice-wrap::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 10%; right: 10%; bottom: -3%; height: 18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8, 32, 25, .5), rgba(8, 32, 25, 0));
  filter: blur(22px);
  translate: 0 var(--gy, 18px); scale: var(--gs, 1); opacity: var(--go, .9);
  will-change: translate, scale, opacity;
}
.stage__in, .panel__shots, .mobile__phones, .invoice-wrap { isolation: isolate; }
.stage__in::before { background: radial-gradient(closest-side, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); bottom: -6%; }
.mobile__phones::before { left: 4%; right: 4%; bottom: 2%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.invoice-wrap::after { left: 6%; right: 6%; bottom: -8%; }

.panel .bezel { box-shadow: 0 0 0 1px rgba(16, 40, 32, .08), var(--sh-3); transition: box-shadow .45s var(--ease); }
.panel .bezel.is-hover { box-shadow: 0 0 0 1px rgba(16, 40, 32, .1), var(--sh-4); }
.invoice { transition: box-shadow .45s var(--ease); }
.invoice.is-hover { box-shadow: 0 0 0 1px rgba(16,40,32,.08), var(--sh-4); }
/* Brillo que sigue al mouse sobre las imágenes */
.panel .bezel::after, .phone::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .22), transparent 55%);
  opacity: 0; transition: opacity .4s ease;
}
.phone::after { inset: 2% 6%; border-radius: 34px; mix-blend-mode: screen; }
.panel .bezel.is-hover::after, .phone.is-hover::after { opacity: 1; }

/* Scroll con inercia (Lenis). Sin JS queda el scroll nativo. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }


/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1080px) {
  .panel { grid-template-columns: 1fr; gap: 40px; }
  .panel__text { max-width: 640px; }
  .bezel--float { right: -2%; }
  .bezel--side { left: -1%; }
  .stage__phone { right: -1%; }
  .arca { gap: 56px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 62px; }
  .nav__toggle { display: grid; }
  .brand { min-height: 44px; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .25s ease, visibility 0s .3s;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .25s ease; }
  .nav__links a:not(.btn) {
    display: flex; align-items: center; min-height: 68px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line);
    font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 600; font-stretch: 84%; letter-spacing: -.02em; color: var(--ink);
  }
  .nav__links a:not(.btn):hover { background: none; }
  .nav__links a.is-current { color: var(--g-700); }
  .nav__links a.is-current::after { display: none; }
  .nav__cta { margin: auto 0 0; height: 56px; font-size: 1.05rem; border-radius: 14px; }
  /* Los links entran escalonados al abrir: responde al toque, no es decorativo */
  .nav__links > * { opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .5s var(--ease); }
  .nav__links.is-open > * { opacity: 1; transform: none; }
  .nav__links.is-open > :nth-child(2) { transition-delay: .04s; }
  .nav__links.is-open > :nth-child(3) { transition-delay: .08s; }
  .nav__links.is-open > :nth-child(4) { transition-delay: .12s; }
  .nav__links.is-open > :nth-child(5) { transition-delay: .16s; }
  html.menu-open { overflow: hidden; }
  html.menu-open .nav { background: var(--paper); border-color: var(--line); }

  /* Áreas táctiles de 44 px como mínimo */
  .seg__tab { height: 44px; }
  .copy { height: 44px; padding: 0 14px; }
  .contact__mailrow a { min-height: 44px; }
  .opt span { height: 44px; }

  /* Textos chicos de la factura, el stock y el toast: 12 px como mínimo */
  .invoice__type { width: auto; min-width: 52px; padding: 0 7px; }
  .invoice__type small { font-size: 12px; }
  .invoice__cae dt, .pill, .toast__txt small, .invoice__id small { font-size: 12px; }

  .footer__nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; padding-top: 0; }
  .footer__nav a { display: flex; align-items: center; min-height: 48px; padding: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer__end a { display: flex; align-items: center; min-height: 44px; }

  .hero__top { grid-template-columns: 1fr; gap: 24px; }
  .hero__aside { padding-bottom: 0; }


  .split-head { grid-template-columns: 1fr; margin-bottom: 36px; }

  .mobile__grid, .arca { grid-template-columns: 1fr; gap: 56px; }
  .mobile__copy { order: -1; }
  .mobile__phones { height: 540px; max-width: 480px; width: 100%; margin-inline: auto; }
  .phone { width: 230px; }
  .phone--a { left: 2%; }
  .phone--b { left: auto; right: 2%; }

  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "stock stock" "branch users" "branch files"; }
  .tile--stock { grid-template-columns: 1fr; gap: 24px; }

  .contact__card { grid-template-columns: minmax(0, 1fr); }
  .contact__side { padding: 40px 32px; gap: 32px; }
  .form { padding: 40px 32px 32px; }

  .footer__inner { grid-template-columns: 1fr; gap: 20px; }
  .footer__nav { justify-content: start; }
  .footer__nav a::after { display: none; }
  .footer__end { justify-content: flex-start; flex-wrap: wrap; gap: 4px 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(1200px, 100% - 32px); }
  .section { padding: 72px 0; }

  /* Hero: texto compacto y el celular como protagonista */
  .hero { padding-top: 36px; }
  .hero__top { gap: 18px; }
  .hero__title { font-size: clamp(2.45rem, 11.8vw, 3.4rem); line-height: .97; }
  .hero__lead { font-size: 1.05rem; max-width: 34ch; }
  .hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .hero__ctas .btn { height: 52px; padding: 0 12px; }
  .hero__horizon { margin-top: 32px; padding-bottom: 44px; background: linear-gradient(180deg, transparent 0 48%, var(--g-900) 48%); }
  .stage__in { padding: 96px 0 28px; }
  .bezel--hero { width: 86%; padding: 4px; border-radius: 14px; }
  .bezel--hero img { border-radius: 10px; }
  .bezel--side { display: none; }
  .stage__phone { top: 0; bottom: auto; right: -1%; width: 46%; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .45)); }
  .toast { top: auto; bottom: 18px; left: 3%; right: auto; padding: 9px 14px 9px 9px; border-radius: 13px; gap: 10px; }
  .toast__ico { width: 28px; height: 28px; }
  .toast__ico svg { width: 15px; height: 15px; }
  .toast__txt b { font-size: .86rem; }
  .toast__txt small { display: none; }

  /* Módulos: grilla compacta de 2 columnas, sin descripciones */
  .suite { padding: 40px 0 72px; }
  .suite__intro { font-size: 1.45rem; margin-bottom: 24px; }

  .split-head { margin-bottom: 28px; gap: 12px; }
  .split-head h2 { font-size: clamp(2.1rem, 9.6vw, 2.6rem); }
  .split-head p { font-size: 1rem; }

  /* Funciones: pestañas desplazables con fundido en los bordes */
  .seg-wrap {
    margin: 0 -16px 24px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 32px), transparent);
  }
  .seg-wrap::-webkit-scrollbar { display: none; }
  .seg__tab { height: 46px; padding: 0 14px; }

  /* Cada pestaña: título → galería deslizable → beneficios */
  .panel { gap: 18px; }
  .panel__text { display: contents; }
  .panel__text h3 { order: 1; margin: 0; font-size: 1.7rem; }
  .panel__shots { order: 2; }
  .panel .checks { order: 3; margin-top: 6px; }
  .panel__shots {
    display: flex; align-items: center; gap: 12px;
    margin: 0 -16px; padding: 6px 16px 22px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .panel__shots::-webkit-scrollbar { display: none; }
  .panel__shots::before { display: none; }
  .panel__shots > .bezel { flex: 0 0 86%; scroll-snap-align: start; }
  .panel__shots > .bezel:only-child { flex-basis: 100%; }
  .bezel--float, .bezel--tall { position: relative; right: auto; bottom: auto; width: auto; }
  .panel__shots > .bezel--tall { flex-basis: 64%; }
  .bezel { padding: 4px; border-radius: 14px; }
  .bezel img { border-radius: 10px; }

  /* Celular */
  .mobile { padding: 72px 0; }
  .mobile__grid { gap: 40px; }
  .mobile__copy h2 { font-size: clamp(2.3rem, 10.5vw, 2.9rem); }
  .mobile__lead { font-size: 1.04rem; }
  .feats { margin-top: 28px; }
  .feats li { padding: 16px 0; align-items: flex-start; }
  .mobile__phones { height: auto; aspect-ratio: 1 / 1.08; max-width: 400px; }
  .phone { width: 47%; }
  .phone--a { left: 1%; }
  .phone--b { right: 1%; top: 9%; }

  /* ARCA */
  .arca { gap: 44px; }
  .arca__copy h2 { font-size: clamp(2.1rem, 9.6vw, 2.6rem); }
  .steps { margin-top: 28px; }
  .invoice { padding: 22px 18px; border-radius: 18px; }
  .invoice-wrap::before { inset: 12px 4px -12px 4px; transform: rotate(1.5deg); }
  .invoice__head { flex-wrap: wrap; gap: 12px; padding-bottom: 18px; }
  .invoice__head .badge { order: 3; }
  .invoice__total b { font-size: 1.55rem; }
  .invoice__cae { padding: 12px 14px; }

  /* Bento */
  .bento { grid-template-columns: 1fr; grid-template-areas: "stock" "branch" "users" "files"; gap: 12px; }
  .tile { padding: 24px 20px; border-radius: var(--r-lg); }
  .tile h3 { font-size: 1.35rem; }
  .stocklist li { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 10px; }
  .stocklist li > span:first-child { white-space: normal; overflow: visible; }
  .stocklist li > .num { display: none; }
  .branchpick { padding-top: 24px; }
  .fit { margin-top: 32px; font-size: .98rem; }

  /* Contacto: más compacto arriba, formulario cómodo para el pulgar */
  .contact { padding: 64px 0; }
  .contact__card { border-radius: var(--r-lg); }
  .contact__side { padding: 30px 20px 26px; gap: 26px; }
  .contact__intro h2 { font-size: 2.2rem; }
  .contact__intro p { font-size: 1rem; }
  .contact__steps { gap: 16px; }
  .contact__mail { padding-top: 18px; }
  .contact__mailrow a { font-size: 1rem; }
  .form { padding: 28px 20px 24px; gap: 20px; }
  .form__head h3 { font-size: 1.45rem; }
  .form__row { grid-template-columns: 1fr; }
  .form input[type="text"] { height: 52px; }
  .form textarea { min-height: 140px; }
  .opts__row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 0; background: none; box-shadow: none; }
  .opt span {
    width: 100%; height: 52px; justify-content: flex-start; gap: 12px; padding: 0 16px;
    border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 1rem;
  }
  .opt span::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b9c6c0; transition: box-shadow .2s ease; }
  .opt input:checked + span { background: var(--g-50); color: var(--g-700); box-shadow: inset 0 0 0 1.5px var(--g-500); }
  .opt input:checked + span::before { box-shadow: inset 0 0 0 6px var(--g-600); }
  .form__foot { gap: 12px; }
  .form__foot .btn { width: 100%; height: 54px; }
  .form__privacy { width: 100%; justify-content: center; }

  .footer { padding: 32px 0 calc(28px + env(safe-area-inset-bottom)); }
}

/* Pantallas muy angostas (320 a 359 px) */
@media (max-width: 359px) {
  .wrap { width: calc(100% - 28px); }
  .hero__ctas { grid-template-columns: 1fr; }
  .seg-wrap, .panel__shots { margin-inline: -14px; padding-inline: 14px; }
  .invoice__cae { grid-template-columns: 1fr; gap: 8px; }
  .footer__nav { grid-template-columns: 1fr; }
}

/* Pantallas táctiles: sin efectos de hover que queden "pegados" al tocar */
@media (hover: none) {
  .tile--users:hover, .tile--files:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
  .tile--users:hover .ico, .tile--files:hover .ico { background: var(--g-50); color: var(--g-700); }
  .tile--branch:hover .chev { transform: none; }
  .phone--a:hover img { transform: rotate(-4deg); }
  .phone--b:hover img { transform: rotate(4deg); }
  .nav__links a:not(.btn):active { background: rgba(127, 127, 127, .08); }
}

/* Tablet (641 a 900 px): dos columnas donde el ancho lo permite */
@media (min-width: 641px) and (max-width: 900px) {
  .hero__top { grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: end; }
  .hero__title { font-size: clamp(2.8rem, 6.9vw, 3.6rem); }
  .hero__lead { font-size: 1.05rem; }
  .hero__ctas { margin-top: 22px; }

  .mobile__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .mobile__copy { order: 0; }
  .mobile__copy h2 { font-size: clamp(2.3rem, 5.4vw, 2.9rem); }
  .mobile__phones { height: auto; aspect-ratio: 1 / 1.2; max-width: none; }
  .phone { width: 56%; }
  .phone--a { left: 0; }
  .phone--b { left: auto; right: 0; top: 9%; }

  .arca { grid-template-columns: 1fr 1fr; gap: 36px; }
  .arca__copy h2 { font-size: clamp(2.2rem, 5.2vw, 2.8rem); }
  .invoice { padding: 22px; }
  .invoice__head { flex-wrap: wrap; }
  .invoice__head .badge { order: 3; }
}

/* ===========================================================
   Mobile esencial (hasta 640 px): solo lo fundamental, para
   que el scroll no se haga largo. Escritorio y tablet no cambian.
   =========================================================== */
.tile__mico { display: none; }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .split-head { margin-bottom: 20px; }
  .split-head p { display: none; }

  /* Módulos: un carril de chips deslizable en vez de la grilla */
  .suite { padding: 32px 0 44px; }
  .suite__intro { font-size: 1.3rem; margin-bottom: 18px; max-width: 22ch; }

  /* Funciones: dos beneficios por pestaña */
  .panel .checks li:nth-child(n+3) { display: none; }
  .panel .checks { gap: 10px; }

  /* Celular: beneficios en una línea, teléfonos más bajos */
  .mobile { padding: 56px 0; }
  .mobile__grid { gap: 28px; }
  .feats { margin-top: 22px; }
  .feats li { padding: 10px 0; align-items: center; }
  .feats small { display: none; }
  .feats .ico { width: 36px; height: 36px; }
  .mobile__phones { aspect-ratio: 1 / .92; }
  .phone { width: 41%; }
  .phone--a { left: 6%; }
  .phone--b { right: 6%; top: 8%; }

  /* ARCA: pasos sin descripción */
  .arca { gap: 32px; }
  .steps { margin-top: 22px; }
  .steps li { padding-bottom: 14px; align-items: center; }
  .steps li:not(:last-child)::before, .steps li:not(:last-child)::after { top: 38px; bottom: -2px; }
  .steps small { display: none; }
  .steps b { padding-top: 0; }

  /* Crecer: cada función como fila compacta, sin las mini interfaces */
  .bento { gap: 10px; }
  .tile, .tile--stock {
    display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; align-items: start;
    padding: 16px 18px; border-radius: 18px;
  }
  .tile .ico, .tile__mico { display: grid; grid-row: span 2; margin: 2px 0 0; }
  .tile--stock .tile__text { display: contents; }
  .tile h3 { font-size: 1.12rem; line-height: 1.25; }
  .tile p { font-size: .94rem; line-height: 1.45; }
  .stocklist, .branchpick, .roles, .attach { display: none; }
  .fit { margin-top: 22px; font-size: .94rem; }

  /* Contacto: directo al formulario */
  .contact { padding: 48px 0; }
  .contact__steps { display: none; }
  .contact__side { gap: 18px; padding: 26px 20px 20px; }
  .contact__mail { padding-top: 14px; }

  /* Pie: el menú ya tiene los links */
  .footer__nav { display: none; }
  .footer { padding: 32px 0 calc(24px + env(safe-area-inset-bottom)); }
  .footer__inner { gap: 14px; }
}


/* Rendimiento en pantallas táctiles: sin efectos caros de redibujar al scrollear */
@media (hover: none), (pointer: coarse) {
  .nav, .nav.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav { background: rgba(243, 246, 244, .97); }
  .nav.is-scrolled { background: rgba(255, 255, 255, .97); }
  .stage__in::before, .panel__shots::before, .mobile__phones::before, .invoice-wrap::after { filter: none; will-change: auto; }
  .mobile { will-change: auto; }
}

/* ===========================================================
   Fondos: estilo "Planilla"
   Una grilla con ritmo de planilla (columnas de 96 px, filas de
   40 px) a muy baja opacidad, visible solo alrededor del contenido
   clave gracias a máscaras. Es la planilla que GestionUp reemplaza.
   Todo estático: sin animación, sin imágenes.
   =========================================================== */
:root {
  --cell-w: 96px;
  --cell-h: 40px;
  --grid-light: rgba(31, 94, 75, .075);
  --grid-dark: rgba(255, 255, 255, .07);
}

/* Base compartida de la grilla */
.hero::before, #funciones::before, #celular::after, #arca::before, .contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    var(--gm),
    linear-gradient(to right, var(--gl, var(--grid-light)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gl, var(--grid-light)) 1px, transparent 1px);
  background-size: 100% 100%, var(--cell-w) var(--cell-h), var(--cell-w) var(--cell-h);
  background-position: center, center top, center top;
}
.hero, #funciones, #arca, .contact { position: relative; isolation: isolate; }

/* Hero: la grilla se apaga hacia los bordes y hacia la captura */
.hero { --fog: #f5f7f6; --gm: radial-gradient(ellipse 70% 58% at 34% 26%, transparent 14%, var(--fog) 72%); }
/* Luz ambiental detrás del título que se une con la de la captura */
.hero__top { position: relative; }
.hero__top::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -12%; right: 20%; top: -40%; bottom: -80%;
  background: radial-gradient(closest-side, rgba(92, 201, 160, .1), transparent 100%);
}
/* Luz suave detrás de la captura, justo sobre el horizonte verde */
.hero__horizon {
  position: relative; isolation: isolate;
  background:
    radial-gradient(52% 34% at 50% 44%, rgba(92, 201, 160, .16), transparent 72%),
    linear-gradient(180deg, transparent 0 46%, var(--g-900) 46%);
}
/* Piso en perspectiva sobre el verde: las líneas fugan hacia la captura */
.hero__horizon::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; top: 46%; bottom: 0;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 420" preserveAspectRatio="xMidYMin slice"%3E%3Cdefs%3E%3CradialGradient id="f" cx="800" cy="420" r="900" gradientUnits="userSpaceOnUse" gradientTransform="translate%28800 420%29 scale%281 .62%29 translate%28-800 -420%29"%3E%3Cstop offset="0" stop-color="%23fff"/%3E%3Cstop offset=".45" stop-color="%23fff" stop-opacity=".9"/%3E%3Cstop offset="1" stop-color="%23fff" stop-opacity="0"/%3E%3C/radialGradient%3E%3ClinearGradient id="v" x1="0" y1="0" x2="0" y2="1"%3E%3Cstop offset="0" stop-color="%23fff" stop-opacity=".25"/%3E%3Cstop offset=".3" stop-color="%23fff"/%3E%3Cstop offset=".72" stop-color="%23fff"/%3E%3Cstop offset="1" stop-color="%23fff" stop-opacity="0"/%3E%3C/linearGradient%3E%3Cmask id="vm"%3E%3Crect width="1600" height="420" fill="url%28%23v%29"/%3E%3C/mask%3E%3Cmask id="m"%3E%3Crect width="1600" height="420" fill="url%28%23f%29" mask="url%28%23vm%29"/%3E%3C/mask%3E%3C/defs%3E%3Cg mask="url%28%23m%29" stroke="%23fff" stroke-opacity=".13" stroke-width="1" vector-effect="non-scaling-stroke"%3E%3Cline x1="-262.1" y1="0" x2="-1120.0" y2="420"/%3E%3Cline x1="-195.7" y1="0" x2="-1000.0" y2="420"/%3E%3Cline x1="-129.4" y1="0" x2="-880.0" y2="420"/%3E%3Cline x1="-63.0" y1="0" x2="-760.0" y2="420"/%3E%3Cline x1="3.4" y1="0" x2="-640.0" y2="420"/%3E%3Cline x1="69.8" y1="0" x2="-520.0" y2="420"/%3E%3Cline x1="136.2" y1="0" x2="-400.0" y2="420"/%3E%3Cline x1="202.6" y1="0" x2="-280.0" y2="420"/%3E%3Cline x1="268.9" y1="0" x2="-160.0" y2="420"/%3E%3Cline x1="335.3" y1="0" x2="-40.0" y2="420"/%3E%3Cline x1="401.7" y1="0" x2="80.0" y2="420"/%3E%3Cline x1="468.1" y1="0" x2="200.0" y2="420"/%3E%3Cline x1="534.5" y1="0" x2="320.0" y2="420"/%3E%3Cline x1="600.9" y1="0" x2="440.0" y2="420"/%3E%3Cline x1="667.2" y1="0" x2="560.0" y2="420"/%3E%3Cline x1="733.6" y1="0" x2="680.0" y2="420"/%3E%3Cline x1="800.0" y1="0" x2="800.0" y2="420"/%3E%3Cline x1="866.4" y1="0" x2="920.0" y2="420"/%3E%3Cline x1="932.8" y1="0" x2="1040.0" y2="420"/%3E%3Cline x1="999.1" y1="0" x2="1160.0" y2="420"/%3E%3Cline x1="1065.5" y1="0" x2="1280.0" y2="420"/%3E%3Cline x1="1131.9" y1="0" x2="1400.0" y2="420"/%3E%3Cline x1="1198.3" y1="0" x2="1520.0" y2="420"/%3E%3Cline x1="1264.7" y1="0" x2="1640.0" y2="420"/%3E%3Cline x1="1331.1" y1="0" x2="1760.0" y2="420"/%3E%3Cline x1="1397.4" y1="0" x2="1880.0" y2="420"/%3E%3Cline x1="1463.8" y1="0" x2="2000.0" y2="420"/%3E%3Cline x1="1530.2" y1="0" x2="2120.0" y2="420"/%3E%3Cline x1="1596.6" y1="0" x2="2240.0" y2="420"/%3E%3Cline x1="1663.0" y1="0" x2="2360.0" y2="420"/%3E%3Cline x1="1729.4" y1="0" x2="2480.0" y2="420"/%3E%3Cline x1="1795.7" y1="0" x2="2600.0" y2="420"/%3E%3Cline x1="1862.1" y1="0" x2="2720.0" y2="420"/%3E%3Cline x1="0" y1="10.0" x2="1600" y2="10.0"/%3E%3Cline x1="0" y1="32.6" x2="1600" y2="32.6"/%3E%3Cline x1="0" y1="64.9" x2="1600" y2="64.9"/%3E%3Cline x1="0" y1="105.8" x2="1600" y2="105.8"/%3E%3Cline x1="0" y1="154.6" x2="1600" y2="154.6"/%3E%3Cline x1="0" y1="210.8" x2="1600" y2="210.8"/%3E%3Cline x1="0" y1="274.0" x2="1600" y2="274.0"/%3E%3Cline x1="0" y1="343.8" x2="1600" y2="343.8"/%3E%3C/g%3E%3C/svg%3E') center top / 100% 100% no-repeat;
}
/* Halo apenas perceptible bajo el CTA principal del hero */
.hero__ctas .btn--primary {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(16,40,32,.2), 0 6px 16px -6px rgba(31,94,75,.55), 0 16px 40px -12px rgba(92, 201, 160, .45);
}

/* Funciones: grilla y luz solo alrededor de la captura activa */
#funciones { --fog: #ffffff; --gm: radial-gradient(ellipse 52% 46% at 32% 66%, transparent 8%, var(--fog) 70%); }
#funciones::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 36% 30% at 32% 66%, rgba(92, 201, 160, .17), transparent 72%);
}

/* Celular: grilla clara muy tenue alrededor de los teléfonos */
#celular { --fog: var(--g-800); --gl: var(--grid-dark); --gm: radial-gradient(ellipse 42% 58% at 27% 55%, transparent 10%, var(--fog) 72%); }

/* ARCA: renglones de libro contable detrás de la factura */
#arca {
  --fog: var(--mist);
  --gm: radial-gradient(ellipse 40% 62% at 74% 50%, transparent 12%, var(--fog) 74%);
  background: linear-gradient(180deg, var(--mist) 0, var(--mist) 78%, var(--paper) 100%);
}
#arca::before { background-image: var(--gm), linear-gradient(to bottom, var(--grid-light) 1px, transparent 1px); background-size: 100% 100%, 100% var(--cell-h); background-position: center, center top; }
#arca::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 30% 40% at 74% 50%, rgba(92, 201, 160, .18), transparent 72%);
}

/* Crecer: el tono baja suave hacia Contacto */
#extras { background: linear-gradient(180deg, var(--paper) 0, var(--paper) 62%, var(--mist) 100%); }

/* Contacto: la grilla asoma alrededor de la tarjeta y un halo amplio la destaca */
.contact { --fog: var(--mist); --gm: radial-gradient(ellipse 72% 72% at 50% 50%, transparent 30%, var(--fog) 78%); }
.contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 48% 52% at 50% 54%, rgba(92, 201, 160, .2), transparent 70%);
}

/* Tablet y celular: las capturas y la factura quedan centradas, abajo */
@media (max-width: 900px) {
  #celular { --gm: radial-gradient(ellipse 70% 40% at 50% 78%, transparent 10%, var(--fog) 72%); }
  #arca { --gm: radial-gradient(ellipse 70% 34% at 50% 78%, transparent 12%, var(--fog) 74%); }
  #arca::after { background: radial-gradient(ellipse 60% 26% at 50% 78%, rgba(92, 201, 160, .12), transparent 72%); }
}
@media (max-width: 640px) {
  :root { --cell-w: 72px; --cell-h: 36px; }
  .hero__horizon { background: radial-gradient(70% 30% at 50% 46%, rgba(92, 201, 160, .16), transparent 72%), linear-gradient(180deg, transparent 0 48%, var(--g-900) 48%); }
  .hero__horizon::after { top: 48%; }
  #funciones { --gm: radial-gradient(ellipse 80% 30% at 50% 58%, transparent 8%, var(--fog) 72%); }
  #funciones::after { background: radial-gradient(ellipse 70% 24% at 50% 58%, rgba(92, 201, 160, .11), transparent 72%); }
}
@media (min-width: 641px) and (max-width: 900px) {
  #celular { --gm: radial-gradient(ellipse 42% 58% at 25% 55%, transparent 10%, var(--fog) 72%); }
  #arca { --gm: radial-gradient(ellipse 40% 62% at 74% 50%, transparent 12%, var(--fog) 74%); }
  #arca::after { background: radial-gradient(ellipse 30% 40% at 74% 50%, rgba(92, 201, 160, .12), transparent 72%); }
}

/* ===========================================================
   Módulos: el menú del sistema, en vivo.
   Una ventana de GestionUp sobre el verde: a la izquierda el menú
   (réplica del lateral real), a la derecha la pantalla de cada
   módulo. Las capturas se recortan para ocultar su propio lateral.
   =========================================================== */
.suite { position: relative; isolation: isolate; }
/* Luz detrás de la ventana y la grilla del piso que sigue desde el hero */
.suite::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 46% at 50% 62%, rgba(92, 201, 160, .2), transparent 72%);
}
.suite::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 62%, transparent 10%, var(--g-900) 75%),
    linear-gradient(to right, var(--grid-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-dark) 1px, transparent 1px);
  background-size: 100% 100%, var(--cell-w) var(--cell-h), var(--cell-w) var(--cell-h);
  background-position: center, center top, center top;
}
.suite__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px 48px; align-items: end; margin-bottom: 36px; }
.suite__intro { margin: 0; color: #fff; }
.suite__hint { justify-self: end; color: rgba(255, 255, 255, .6); font-size: .98rem; padding-bottom: 4px; }

/* ---------- Notebook ----------
   El sistema se dibuja a tamaño de escritorio fijo (1180 × 620) y se
   escala para entrar en la pantalla: se ve igual de proporcionado en
   cualquier ancho. Todo en CSS, sin imágenes. */
/* ---------- Notebook ----------
   El marco (aluminio, bisel, muesca, base y sombras) es una imagen
   renderizada con transparencia en el hueco de la pantalla. El sistema
   en vivo va debajo y se ve por ese hueco: el marco no recibe el mouse.
   Hueco en la imagen 2400×1280: x 236–2164, y 66–1079. */
.laptop { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 2400 / 1280; transform-origin: 50% 100%; }
/* En pantallas anchas la notebook sale del ancho del texto y crece hasta casi todo el ancho de la ventana
   (sin pasar de la altura que se ve), así las pantallas del sistema se leen más grandes. */
@media (min-width: 1101px) {
  .laptop { --lw: min(1480px, 100vw - 32px, calc((100vh - 130px) * 1.875)); width: var(--lw); max-width: none; margin-left: calc(50% - var(--lw) / 2); margin-right: 0; }
}
.laptop__screen {
  position: absolute; z-index: 1; overflow: hidden; background: var(--paper);
  left: 9.8333%; top: 5.1563%; width: 80.3333%; height: 79.1406%;
}
.laptop__frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; user-select: none; }

/* El sistema dentro de la pantalla */
.app {
  position: absolute; top: 0; left: 0; width: 1040px; height: 547px; overflow: hidden;
  transform-origin: 0 0; transform: scale(var(--app-scale, .8)); background: var(--paper);
}
.app__body { display: grid; grid-template-columns: 190px minmax(0, 1fr); height: 100%; }
.app__side { background: #f6f8f7; border-right: 1px solid var(--line); padding: 18px 12px; }
.app__brand { display: flex; align-items: center; gap: 8px; padding: 2px 10px 18px; font-weight: 700; font-size: 1.08rem; font-stretch: 90%; letter-spacing: -.02em; color: var(--ink); }
.app__brand b { color: var(--g-600); }
.app__menu { position: relative; display: grid; gap: 2px; }
.app__marker {
  position: absolute; left: 0; right: 0; top: 0; height: 42px; border-radius: 10px;
  background: var(--g-50); box-shadow: inset 0 0 0 1px var(--g-100);
  transition: transform .45s var(--ease); will-change: transform;
}
.app__item {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 11px;
  height: 38px; padding: 0 11px; border: 0; border-radius: 9px; background: none; overflow: hidden;
  font-size: .8rem; font-weight: 500; color: var(--ink-2); text-align: left; white-space: nowrap;
  transition: color .25s ease;
}
.app__item svg { width: 16px; height: 16px; color: var(--ink-3); transition: color .25s ease; }
.app__item:hover { color: var(--ink); }
.app__item.is-active { color: var(--g-700); font-weight: 600; }
.app__item.is-active svg { color: var(--g-600); }
.app__item:focus-visible { outline-offset: -2px; }
.app__progress { display: none; }

.app__main { position: relative; background: var(--paper); height: 100%; }
.app__screens { position: relative; height: 100%; overflow: hidden; }
.app__screen {
  position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none;
  transform: scale(1.02) translateY(8px);
  transition: opacity .5s ease, transform .8s var(--ease);
}
.app__screen.is-active { opacity: 1; transform: none; pointer-events: auto; }
/* Recorte: se oculta el lateral propio de cada captura */
.app__screen img { position: absolute; top: 0; left: -15.4%; width: 115.4%; max-width: none; height: auto; }
.app__screen--phone { background: radial-gradient(60% 70% at 50% 55%, var(--g-50), var(--paper) 70%); }
.app__screen--phone img { top: 5%; left: 50%; width: auto; height: 90%; transform: translateX(-50%); }

/* Puntero de demostración: recorre el menú y "hace clic" */
.cursor {
  position: absolute; left: 0; top: 0; z-index: 4; width: 26px; height: 26px; pointer-events: none;
  transform: translate(var(--cx, 160px), var(--cy, 120px));
  transition: transform .9s cubic-bezier(.45, .05, .2, 1), opacity .35s ease;
  will-change: transform;
}
.cursor svg { width: 26px; height: 26px; fill: #111614; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); transition: transform .15s ease; transform-origin: 4px 3px; }
.cursor.is-click svg { transform: scale(.82); }
.cursor__ripple { position: absolute; left: 4px; top: 3px; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--g-500); opacity: 0; transform: scale(.3); }
.cursor.is-click .cursor__ripple { animation: ripple .6s var(--ease); }
@keyframes ripple { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }
.cursor.is-hidden { opacity: 0; }
/* Con el mouse encima, manda el usuario: se ve su propio cursor */
.laptop__screen.is-manual { cursor: default; }
/* Ver la pantalla en grande (abre la captura completa en el visor). Solo con pantalla ancha. */
.laptop__zoom {
  position: absolute; z-index: 5; right: 14px; bottom: 14px; display: none; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(11, 42, 33, .78); color: #fff; font-size: .84rem; font-weight: 600; letter-spacing: -.005em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .45s var(--ease), background-color .2s ease;
}
.laptop__zoom svg { width: 16px; height: 16px; }
.laptop__zoom[hidden] { display: none !important; }
@media (min-width: 641px) {
  .laptop__zoom { display: inline-flex; }
  .laptop__screen:hover .laptop__zoom, .laptop__zoom:focus-visible { opacity: 1; transform: none; }
  .laptop__zoom:hover { background: rgba(11, 42, 33, .92); }
}
@media (hover: none) and (min-width: 641px) { .laptop__zoom { opacity: .92; transform: none; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .laptop__zoom { transition: none; } }

/* Chips para elegir con el dedo (solo pantallas táctiles chicas) */
.app__chips { display: none; }

.app__caption { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; max-width: 1000px; margin: 28px auto 0; }
.app__caption p { color: rgba(255, 255, 255, .82); font-size: 1.05rem; transition: opacity .3s ease; }
.app__caption p.is-swap { opacity: 0; }
.app__caption a { display: inline-flex; align-items: center; min-height: 44px; color: var(--g-300); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(143, 220, 171, .4); text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
.app__caption a:hover { color: #fff; text-decoration-color: #fff; }

@media (max-width: 900px) {
  .suite__head { grid-template-columns: 1fr; margin-bottom: 28px; }
  .suite__hint { justify-self: start; }
}

@media (max-width: 640px) {
  .suite__head { margin-bottom: 20px; gap: 8px; }
  .suite__hint { font-size: .92rem; }
  /* Carril de chips debajo de la notebook */
  .app__chips {
    display: flex; gap: 8px; margin: 20px -16px 0; padding: 2px 16px 4px;
    overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 32px), transparent);
  }
  .app__chips::-webkit-scrollbar { display: none; }
  .app__chip {
    flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px;
    border: 0; border-radius: 99px; scroll-snap-align: start;
    background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    color: #fff; font-size: .94rem; font-weight: 600; white-space: nowrap;
  }
  .app__chip svg { width: 17px; height: 17px; color: var(--g-300); }
  .app__chip.is-active { background: var(--g-400); color: var(--g-950); box-shadow: none; }
  .app__chip.is-active svg { color: var(--g-950); }
  .app__caption { margin-top: 14px; }
  .app__caption p { font-size: .98rem; }
}
@media (max-width: 359px) {
  .app__chips { margin-inline: -14px; padding-inline: 14px; }
}

/* Las sombras de piso se agrandan al entrar: que nunca generen scroll horizontal */
.hero, .section, .suite, .contact { overflow-x: clip; }


/* Rendimiento al scrollear: la barra pierde el vidrio una vez que la página se mueve
   (el desenfoque se recalcula en cada cuadro) y las sombras de piso quedan fijas */
.nav.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .96); }
.stage__in::before, .panel__shots::before, .mobile__phones::before, .invoice-wrap::after { will-change: auto; }
.mobile { will-change: auto; }

/* Rendimiento de dibujo (placa de video):
   - la barra no usa vidrio: cambiarlo al empezar a scrollear era el pico más caro
   - las sombras de piso son solo un degradado (sin filtro de desenfoque)
   - el drop-shadow de los teléfonos es más corto */
.nav, .nav.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav { background: rgba(243, 246, 244, .97); }
.nav.is-scrolled { background: rgba(255, 255, 255, .97); }
.stage__in::before, .panel__shots::before, .mobile__phones::before, .invoice-wrap::after {
  filter: none;
  background: radial-gradient(closest-side, rgba(8, 32, 25, .34), rgba(8, 32, 25, .12) 55%, rgba(8, 32, 25, 0));
}
.stage__in::before { background: radial-gradient(closest-side, rgba(0, 0, 0, .42), rgba(0, 0, 0, .14) 55%, rgba(0, 0, 0, 0)); }
.mobile__phones::before { background: radial-gradient(closest-side, rgba(0, 0, 0, .4), rgba(0, 0, 0, .12) 55%, rgba(0, 0, 0, 0)); }
.phone { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .38)); }
.stage__phone { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .4)); }
.app__screen--phone img { filter: drop-shadow(0 14px 18px rgba(16, 40, 32, .28)); }

#celular::after { z-index: -2; }
/* La sombra de piso del hero termina antes del borde de la sección (si no, el bloque
   siguiente la cortaba en línea recta) */
.stage__in::before { bottom: -1%; height: 13%; translate: 0 8px; }
/* El hero se dibuja sobre la sección de módulos: la sombra ambiental de la captura
   se desvanece sobre el verde en lugar de cortarse en línea recta */
.hero { z-index: 1; }


/* Movimiento de fondo ligado al scroll: se probó (haz de luz, parallax de
   grillas, halos) y se quitó porque trababa el scroll en equipos con poca
   memoria de video. Los fondos quedan estáticos. */

/* "clip" recorta igual que "hidden" pero no crea un contenedor de scroll:
   así las animaciones ligadas al scroll siguen la página */
.mobile { overflow: clip; }




/* ===========================================================
   "Mirá cómo se ve tu día a día": carrusel de pantallas
   Pista horizontal con scroll nativo e imanes (scroll-snap): la
   mueve la placa de video y se puede deslizar con el dedo o el
   trackpad. El JS solo decide a qué pantalla ir y cuándo.
   =========================================================== */
.seg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.carousel { position: relative; }
.panels {
  position: relative; display: flex; gap: 180px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  /* aire para las sombras de las capturas (la pista recorta lo que sale de ella),
     compensado con márgenes negativos para no correr el diseño */
  margin: -48px -96px -124px; padding: 48px 96px 124px; scroll-padding-inline: 96px;
}
.panels::-webkit-scrollbar { display: none; }
.panels > .panel { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
/* Fundido del carrusel al saltar varias pantallas */
.panels { transition: opacity .32s ease; }
.panels.is-fading { opacity: 0; }

/* Salida y entrada de cada pantalla, atadas a su posición horizontal:
   la que se va se desvanece y se achica, la que llega aparece y crece.
   Funciona igual con el avance automático y al deslizar con el dedo. */
@supports (animation-timeline: view()) {
  .panels > .panel {
    animation: slideInOut linear both;
    animation-timeline: view(inline);
    animation-range: cover;
  }
  @keyframes slideInOut {
    0%   { opacity: 0; transform: scale(.9); }
    32%  { opacity: .15; transform: scale(.94); }
    50%  { opacity: 1; transform: none; }
    68%  { opacity: .15; transform: scale(.94); }
    100% { opacity: 0; transform: scale(.9); }
  }
}
/* Sin soporte: la pantalla activa resalta y el resto se atenúa */
@supports not (animation-timeline: view()) {
  .panels > .panel { transition: opacity .6s ease; }
  .panels > .panel:not(.is-active) { opacity: .25; }
}
.panels .bezel--float { right: -1%; }

/* Barra de progreso de la pantalla actual, en su pestaña */
.seg__progress {
  position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--g-500); transform: scaleX(0); transform-origin: left; opacity: .85; pointer-events: none;
}
.carousel-on .seg__tab.is-active .seg__progress { animation: segProgress var(--car-dur, 6s) linear forwards; }
.carousel-paused .seg__tab.is-active .seg__progress { animation-play-state: paused; }
@keyframes segProgress { to { transform: scaleX(1); } }

@media (max-width: 640px) {
  .panels { gap: 48px; margin: -10px -16px -40px; padding: 10px 16px 40px; scroll-padding-inline: 16px; }
  /* sin lugar para márgenes grandes: sombra corta que entra en la pista */
  .panels .panel .bezel { box-shadow: 0 0 0 1px rgba(16, 40, 32, .08), 0 10px 22px -10px rgba(16, 40, 32, .32); }
  /* dentro del carrusel, cada pantalla muestra su captura principal (sin galería anidada) */
  .panels .panel__shots { display: block; overflow: visible; margin: 0; padding: 4px 0 0; }
  .panels .panel__shots > .bezel { width: 100%; }
  .panels .bezel--float { display: none; }
}
@media (max-width: 359px) {
  .panels { margin-inline: -14px; padding-inline: 14px; scroll-padding-inline: 14px; }
}
.seg { flex: none; }

/* Versión celular: un celular real entra junto a la notebook (no dentro de su
   pantalla), apoyado delante de la base, mostrando la misma Caja */
.laptop__phone {
  position: absolute; z-index: 3; right: 2%; bottom: 1%; width: 17%; height: auto;
  pointer-events: none; opacity: 0; transform: translate3d(18%, 14%, 0) rotate(4deg);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45));
  transition: opacity .55s ease, transform .9s var(--ease);
}
.laptop.show-phone .laptop__phone { opacity: 1; transform: none; }

/* Al pasar el mouse, main.js inclina la notebook hacia el puntero cuadro a cuadro.
   La notificación sale de la pantalla y flota delante del marco: la capa de afuera
   sigue al mouse con más recorrido (profundidad); la de adentro aparece y, al
   cambiar de módulo, vuelve a entrar. */
#laptop { will-change: transform; }
.laptop__ping { position: absolute; z-index: 4; top: 9%; right: 9%; width: 0; height: 0; pointer-events: none; will-change: transform; }
.laptop__card {
  position: absolute; right: 0; top: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 11px; border-radius: 20px; white-space: nowrap;
  background: #fff; color: var(--g-900);
  box-shadow: 0 28px 56px -16px rgba(0, 0, 0, .65), 0 0 0 6px rgba(127, 220, 184, .18);
  opacity: 0; transform: translate(-30px, 40px) scale(.55); transform-origin: 0% 100%;
  transition: opacity .18s ease, transform .25s var(--ease);
  will-change: transform, opacity;
}
.laptop__card b { display: block; font-size: 15px; line-height: 1.2; }
.laptop__card small { display: block; font-size: 13px; color: var(--g-800); opacity: .75; }
.laptop__ping-ico {
  position: relative; width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--g-700); color: #fff;
}
.laptop__ping-ico svg { width: 20px; height: 20px; stroke-width: 2.2; }
.laptop__ping-ico::after { color: var(--g-700); }
.laptop__ping.is-on .laptop__card {
  opacity: 1; transform: translate(32px, -38px) scale(1);
  transition: opacity .2s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.laptop__ping.is-swap .laptop__card { animation: laptop-swap .5s cubic-bezier(.34, 1.56, .64, 1); }
.laptop__ping.is-on .laptop__ping-ico::after { animation: ping-ring .9s ease-out .2s; }
.laptop__ping.is-swap .laptop__ping-ico::after { animation: ping-ring .9s ease-out .15s; }
@keyframes laptop-swap {
  from { opacity: 0; transform: translate(32px, -14px) scale(.8); }
}
@media (max-width: 900px) {
  .laptop__card { padding: 8px 14px 8px 8px; gap: 9px; border-radius: 16px; }
  .laptop__ping-ico { width: 30px; height: 30px; border-radius: 10px; }
}
@media (max-width: 640px) {
  .laptop__phone { width: 21%; right: 0; }
}

/* ===========================================================
   Navbar de ancho completo
   Arriba de todo es transparente y se funde con el hero; al empezar a
   scrollear pasa a blanco sólido de lado a lado, con una línea fina y
   una sombra difusa abajo. El contenido sigue la grilla de 1200 px.
   Sin efecto de vidrio (rendimiento).
   =========================================================== */
:root { --nav-h: 68px; }
.nav, .nav.is-scrolled {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  margin-bottom: calc(-1 * var(--nav-h)); padding: 0;
  pointer-events: auto;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.nav { background: transparent; border: 0; box-shadow: none; }
.nav.is-scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 rgba(16, 40, 32, .08), 0 10px 28px -20px rgba(16, 40, 32, .4);
}
.nav__inner {
  position: relative; width: min(1200px, 100% - 40px); height: 100%; padding: 0;
  border-radius: 0; background: none; box-shadow: none;
}
/* el hero arranca debajo de la barra */
.hero { padding-top: calc(var(--nav-h) + clamp(32px, 4vw, 60px)); }

@media (min-width: 901px) {
  .nav__links { flex: 1; position: relative; gap: 2px; }
  /* links al centro, botón a la derecha */
  .nav__links > a:not(.btn):first-of-type { margin-left: auto; }
  .nav__cta { margin-left: auto; }
  .nav__links a:not(.btn) { z-index: 1; padding: 9px 14px; color: var(--ink-2); }
  .nav__links a:not(.btn):hover { background: none; color: var(--ink); }
  .nav__links a.is-current { color: var(--g-700); }
  .nav__links a.is-current::after { display: none; }
  .nav__glow {
    position: absolute; z-index: 0; left: 0; top: 50%; height: 38px; margin-top: -19px; border-radius: 11px;
    background: rgba(31, 94, 75, .075); box-shadow: inset 0 0 0 1px rgba(31, 94, 75, .08);
    opacity: 0; pointer-events: none;
    transition: transform .4s var(--ease), width .4s var(--ease), opacity .25s ease;
  }
  .nav__glow.is-on { opacity: 1; }
  .nav__cta { height: 42px; padding: 0 18px; border-radius: 12px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 62px; }
  .nav__inner { width: calc(100% - 32px); }
  .nav__glow { display: none; }
  html.menu-open .nav { background: var(--paper); box-shadow: 0 1px 0 rgba(16, 40, 32, .08); }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--nav-h) + 30px); }
}

/* ===========================================================
   Marca del sistema: logo "Escala" y Plus Jakarta Sans
   =========================================================== */
.brand { gap: 0; }
.brand__logo { display: block; height: 30px; width: auto; }
.footer .brand__logo { height: 28px; }
.app__brand { padding: 4px 10px 20px; }
.app__brand img { display: block; height: 26px; width: auto; }
@media (max-width: 900px) { .nav .brand__logo { height: 27px; } }

/* Plus Jakarta Sans es más ancha que la anterior: títulos con más peso,
   menos tamaño y tracking más cerrado; los números con ancho fijo */
body { font-feature-settings: "tnum" 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; word-spacing: 0; }
.hero__title { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 800; letter-spacing: -.032em; word-spacing: .04em; line-height: 1.02; }
.split-head h2, .arca__copy h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
.mobile__copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.suite__intro { font-weight: 700; letter-spacing: -.02em; word-spacing: 0; }
.contact__intro h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.num, .invoice__total b, .pill, .toast__txt small, .invoice__cae dd { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.nav__links a:not(.btn) { font-weight: 500; }
@media (max-width: 640px) {
  .hero__title { font-size: clamp(2.2rem, 10.4vw, 3rem); }
  .split-head h2, .arca__copy h2 { font-size: clamp(1.9rem, 8.4vw, 2.3rem); }
  .mobile__copy h2 { font-size: clamp(2rem, 9vw, 2.5rem); }
}

/* Logo con más protagonismo: grande arriba, compacto al scrollear */
:root { --nav-h: 80px; }
.nav { transition: height .35s var(--ease), background-color .3s ease, box-shadow .3s ease; }
.nav .brand__logo { height: 40px; transition: height .35s var(--ease); }
.nav.is-scrolled { height: 64px; }
.nav.is-scrolled .brand__logo { height: 32px; }
@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav .brand__logo { height: 32px; }
  .nav.is-scrolled { height: 60px; }
  .nav.is-scrolled .brand__logo { height: 28px; }
  /* el menú abierto se ubica debajo de la barra, sea cual sea su alto */
  .nav.is-scrolled .nav__links { top: 60px; height: calc(100dvh - 60px); }
}

/* ===========================================================
   Variantes de navbar para elegir (?nav=a … e en la dirección)
   A: actual · B: verde corporativo · C: con franja superior
   D: clásica SaaS · E: isla central
   =========================================================== */
.nav__strip, .brand__logo--dark, .nav__mail { display: none; }
.nav { display: flex; flex-direction: column; }
.nav__inner { flex: 1; min-height: 0; }

/* ---------- B: verde corporativo ---------- */
.nav-b .nav, .nav-b .nav.is-scrolled { background: #0E2A22; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 12px 30px -18px rgba(0,0,0,.55); }
.nav-b .brand__logo { display: none; }
.nav-b .brand__logo--dark { display: block; }
.nav-b .nav__toggle { color: #fff; }
@media (min-width: 901px) {
  .nav-b .nav__links a:not(.btn) { color: rgba(236, 243, 239, .78); }
  .nav-b .nav__links a:not(.btn):hover, .nav-b .nav__links a.is-current { color: #fff; }
  .nav-b .nav__glow { background: rgba(127, 220, 184, .12); box-shadow: inset 0 0 0 1px rgba(127, 220, 184, .18); }
  .nav-b .nav__cta { background: var(--g-300); color: #07130F; box-shadow: 0 6px 18px -8px rgba(127, 220, 184, .6); }
  .nav-b .nav__cta:hover { background: #A6EDD0; }
}
.nav-b .hero { padding-top: calc(var(--nav-h) + clamp(40px, 4.4vw, 68px)); }

/* ---------- C: con franja superior ---------- */
.nav-c { --strip-h: 38px; }
.nav-c .nav, .nav-c .nav.is-scrolled { height: calc(var(--nav-h) + var(--strip-h)); background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(16,40,32,.08), 0 10px 28px -20px rgba(16,40,32,.4); }
.nav-c .nav { margin-bottom: calc(-1 * (var(--nav-h) + var(--strip-h))); transition: transform .4s var(--ease), box-shadow .3s ease; }
.nav-c .nav.is-scrolled { height: calc(64px + var(--strip-h)); transform: translateY(calc(-1 * var(--strip-h))); }
.nav-c .nav__strip { display: block; flex: none; height: var(--strip-h); background: var(--g-700); color: rgba(236, 243, 239, .9); font-size: .86rem; font-weight: 500; }
.nav-c .nav__strip-in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-c .nav__strip-in span { display: inline-flex; align-items: center; gap: 8px; }
.nav-c .nav__strip-in svg { width: 16px; height: 16px; color: var(--g-300); }
.nav-c .nav__strip-in a { color: #fff; }
.nav-c .hero { padding-top: calc(var(--nav-h) + var(--strip-h) + clamp(32px, 4vw, 60px)); }
@media (max-width: 640px) { .nav-c .nav__strip-in a { display: none; } .nav-c .nav__strip-in { justify-content: center; } }
@media (max-width: 900px) { .nav-c .nav__links, .nav-c .nav.is-scrolled .nav__links { top: calc(var(--nav-h) + var(--strip-h)); height: calc(100dvh - var(--nav-h) - var(--strip-h)); } .nav-c .nav.is-scrolled .nav__links { top: 60px; height: calc(100dvh - 60px); } }

/* ---------- D: clásica SaaS (todo a la izquierda, contacto a la derecha) ---------- */
.nav-d .nav, .nav-d .nav.is-scrolled { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(16,40,32,.09); }
.nav-d .nav.is-scrolled { box-shadow: 0 1px 0 rgba(16,40,32,.09), 0 10px 28px -20px rgba(16,40,32,.4); }
@media (min-width: 901px) {
  .nav-d .brand { padding-right: 28px; margin-right: 14px; border-right: 1px solid var(--line); }
  .nav-d .nav__links > a:not(.btn):first-of-type { margin-left: 0; }
  .nav-d .nav__mail { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 16px; padding: 9px 6px; color: var(--ink-2); font-weight: 500; font-size: .94rem; }
  .nav-d .nav__mail svg { width: 17px; height: 17px; color: var(--g-500); }
  .nav-d .nav__mail:hover { color: var(--g-700); }
  .nav-d .nav__cta { margin-left: 0; }
}

/* ---------- E: isla central ---------- */
@media (min-width: 901px) {
  .nav-e .nav__group { padding: 4px; border-radius: 14px; background: rgba(14, 25, 22, .05); box-shadow: inset 0 0 0 1px rgba(14, 25, 22, .05); }
  .nav-e .nav__group a { padding: 8px 16px; }
  .nav-e .nav__glow { background: #fff; box-shadow: 0 0 0 1px rgba(16,40,32,.07), 0 2px 8px -2px rgba(16,40,32,.18); height: 34px; margin-top: -17px; border-radius: 10px; }
  .nav-e .nav__links a.is-current { color: var(--ink); }
}

/* Contenedor de los links: en escritorio centra el grupo; en celular no tiene caja */
@media (min-width: 901px) {
  .nav__group { display: flex; align-items: center; gap: 2px; margin-left: auto; position: static; }
  .nav__links > a:not(.btn):first-of-type { margin-left: 0; }
  .nav-d .nav__group { margin-left: 0; }
}
@media (max-width: 900px) {
  .nav__group { display: contents; }
  .nav__group > a { opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .5s var(--ease); }
  .nav__links.is-open .nav__group > a { opacity: 1; transform: none; }
  .nav__links.is-open .nav__group > a:nth-child(2) { transition-delay: .04s; }
  .nav__links.is-open .nav__group > a:nth-child(3) { transition-delay: .08s; }
  .nav__links.is-open .nav__group > a:nth-child(4) { transition-delay: .12s; }
}
@media (min-width: 901px) { .nav-d .nav__links > a.nav__mail:not(.btn) { margin-left: auto; } }

/* ===========================================================
   Variantes F a J
   F: con eslogan · G: verde al bajar · H: línea de marca
   I: logo al centro · J: progreso de lectura
   =========================================================== */
.brand__tag, .nav__progress { display: none; }

/* ---------- F: con eslogan ---------- */
@media (min-width: 1000px) {
  .nav-f .brand { gap: 16px; }
  .nav-f .brand__tag {
    display: block; padding-left: 16px; border-left: 1px solid var(--line-2);
    font-size: .78rem; line-height: 1.3; font-weight: 500; color: var(--ink-3); white-space: nowrap;
    transition: opacity .3s ease;
  }
  .nav-f .nav.is-scrolled .brand__tag { opacity: 0; width: 0; padding: 0; border: 0; overflow: hidden; }
}

/* ---------- G: transparente arriba, verde oscuro al bajar ---------- */
.nav-g .nav.is-scrolled { background: #0E2A22; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 12px 30px -18px rgba(0,0,0,.55); }
.nav-g .nav.is-scrolled .brand__logo { display: none; }
.nav-g .nav.is-scrolled .brand__logo--dark { display: block; }
.nav-g .nav.is-scrolled .nav__toggle { color: #fff; }
@media (min-width: 901px) {
  .nav-g .nav__links a:not(.btn) { transition: color .3s ease; }
  .nav-g .nav.is-scrolled .nav__links a:not(.btn) { color: rgba(236, 243, 239, .78); }
  .nav-g .nav.is-scrolled .nav__links a:not(.btn):hover, .nav-g .nav.is-scrolled .nav__links a.is-current { color: #fff; }
  .nav-g .nav.is-scrolled .nav__glow { background: rgba(127, 220, 184, .12); box-shadow: inset 0 0 0 1px rgba(127, 220, 184, .18); }
  .nav-g .nav.is-scrolled .nav__cta { background: var(--g-300); color: #07130F; }
}

/* ---------- H: línea con los colores del isotipo + subrayado deslizante ---------- */
.nav-h .nav, .nav-h .nav.is-scrolled { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(16,40,32,.08); }
.nav-h .nav.is-scrolled { box-shadow: 0 1px 0 rgba(16,40,32,.08), 0 10px 28px -20px rgba(16,40,32,.4); }
.nav-h .nav::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #7FDCB8 0%, #2B9C7A 45%, #1E5F4E 75%, #E8A33D 100%);
}
@media (min-width: 901px) {
  .nav-h .nav__glow {
    top: 50%; height: 2px; margin-top: 17px; border-radius: 2px;
    background: var(--g-700); box-shadow: none;
  }
  .nav-h .nav__links a.is-current { color: var(--ink); }
  .nav-h .nav__cta { border-radius: 99px; padding: 0 22px; }
}

/* ---------- I: logo al centro, links a los lados ---------- */
@media (min-width: 1100px) {
  .nav-i .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
  .nav-i .nav__links { flex: 1; }
  .nav-i .nav__group { flex: 1; margin-left: 0; }
  .nav-i .nav__group { margin-left: -14px; }
  .nav-i .nav__group > a:nth-child(3) { margin-left: auto; }
  .nav-i .nav__cta { margin-left: 18px; }
}

/* ---------- J: barra blanca con progreso de lectura ---------- */
.nav-j .nav, .nav-j .nav.is-scrolled { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(16,40,32,.08); }
.nav-j .nav { position: sticky; }
@supports (animation-timeline: scroll()) {
  .nav-j .nav__progress {
    display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; z-index: 1;
    background: linear-gradient(90deg, #2B9C7A, #1E5F4E 60%, #E8A33D);
    transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
    animation: navProgress linear both; animation-timeline: scroll(root);
  }
  @keyframes navProgress { to { transform: scaleX(1); } }
}
.nav-j .nav__inner { position: static; }

/* F (barra elegida): los links se agrupan a la derecha, junto al botón */
@media (min-width: 901px) {
  .nav-f .nav__links .nav__cta { margin-left: 22px; }
}

/* ===========================================================
   Estilos del resaltado de las opciones de la barra (?ind=1 … 5)
   1: píldora (actual) · 2: subrayado · 3: recuadro recto
   4: punto · 5: bloque verde
   =========================================================== */
@media (min-width: 901px) {
  .nav__links a.is-lit { transition: color .25s ease; }

  /* 2: subrayado fino que se desliza */
  .ind-2 .nav__glow { height: 2px; margin-top: 15px; border-radius: 2px; background: var(--g-700); box-shadow: none; }
  .ind-2 .nav__links a.is-lit { color: var(--ink); }

  /* 3: recuadro recto, esquinas mínimas */
  .ind-3 .nav__glow { height: 36px; margin-top: -18px; border-radius: 4px; background: rgba(30, 95, 78, .08); box-shadow: inset 0 0 0 1px rgba(30, 95, 78, .14); }
  .ind-3 .nav__links a.is-lit { color: var(--g-700); }

  /* 4: punto debajo del texto */
  .ind-4 .nav__glow { width: 5px !important; height: 5px; margin-top: 14px; border-radius: 50%; background: var(--g-700); box-shadow: none; }
  .ind-4 .nav__links a.is-lit { color: var(--ink); }

  /* 5: bloque verde lleno, texto blanco */
  .ind-5 .nav__glow { height: 38px; margin-top: -19px; border-radius: 4px; background: var(--g-700); box-shadow: 0 6px 14px -8px rgba(30, 95, 78, .7); }
  .ind-5 .nav__links a.is-lit, .ind-5 .nav__links a.is-lit:hover { color: #fff; }
}

/* El botón de la barra se muestra recién al pasar los botones del hero */
@media (min-width: 901px) {
  .nav__links .nav__cta { transition: opacity .3s ease, transform .4s var(--ease), visibility 0s .3s; }
  html:not(.cta-on) .nav__links .nav__cta { opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none; }
  html.cta-on .nav__links .nav__cta { transition: opacity .3s ease, transform .4s var(--ease); }
}
@media (min-width: 901px) {
  .nav__group { transition: transform .45s var(--ease); }
  html:not(.cta-on) .nav__group { transform: translateX(var(--cta-w, 0px)); }
  .nav__glow { transition: transform .4s var(--ease), width .4s var(--ease), opacity .25s ease; }
}

/* ===========================================================
   "Tu negocio, en el bolsillo": modo claro y oscuro en acción
   =========================================================== */
/* sin reflejo */
.phone::after { display: none !important; }

/* Al pasar el mouse, main.js mueve cuadro a cuadro el cuerpo de cada celular (se
   endereza, sube y se inclina hacia el puntero) y marca .is-hovering / .is-front.
   La sombra va en el cuerpo, que se mueve entero: no se redibuja en cada cuadro.
   El que no está señalado se apaga con opacidad, que no cuesta redibujar. */
#phones .phone { filter: none; }
.phone__body {
  position: relative; display: block;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .38));
  transition: opacity .45s ease; will-change: transform;
}
.phone--a .phone__body { transform: rotate(-4deg); }
.phone--b .phone__body { transform: rotate(4deg); }
#phones .phone img { transform: none; transition-property: clip-path; transition-duration: 1s; transition-timing-function: cubic-bezier(.65, 0, .35, 1); }
#phones.is-hovering .phone:not(.is-front) .phone__body { opacity: .45; }
#phones .phone.is-front { z-index: 3; }

/* Notificación: la capa de afuera sigue al mouse (main.js); la de adentro aparece */
.phone__ping { position: absolute; z-index: 4; top: 10%; left: 50%; width: 0; height: 0; pointer-events: none; will-change: transform; }
.phone__card {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 9px; border-radius: 18px; white-space: nowrap;
  background: rgb(18, 59, 48); color: #fff;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(127, 220, 184, .28);
  opacity: 0; transform: translate(-50%, 0) scale(.6); transform-origin: 50% 100%;
  transition: opacity .18s ease, transform .25s var(--ease), background-color .6s ease, color .6s ease;
  will-change: transform, opacity;
}
.phone__card b { display: block; font-size: 14px; line-height: 1.2; }
.phone__card small { display: block; font-size: 12.5px; opacity: .72; }
.phone__ping-ico {
  position: relative; width: 34px; height: 34px; border-radius: 11px; flex: none;
  display: grid; place-items: center; background: var(--g-300); color: var(--g-900);
}
.phone__ping-ico svg { width: 18px; height: 18px; stroke-width: 2.4; }
.phone__ping-ico::after, .laptop__ping-ico::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 2px currentColor; opacity: 0;
}
.phone__ping-ico::after { color: var(--g-300); }
#phones .phone.is-front .phone__card {
  opacity: 1; transform: translate(-50%, -56px) scale(1);
  transition: opacity .2s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1), background-color .6s ease, color .6s ease;
}
#phones .phone.is-front .phone__ping-ico::after { animation: ping-ring .9s ease-out .2s; }
@keyframes ping-ring {
  from { opacity: .9; transform: scale(1); }
  to { opacity: 0; transform: scale(1.9); }
}
/* en modo claro la notificación también es clara */
#phones.is-light .phone__card { background: #fff; color: var(--g-900); box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(23, 74, 60, .12); }
#phones.is-light .phone__ping-ico { background: var(--g-700); color: #fff; }
#phones.is-light .phone__ping-ico::after { color: var(--g-700); }

/* la versión clara va encima y aparece con un barrido circular desde arriba a la derecha */
.phone__light {
  position: absolute; inset: 0; width: 100%; height: auto;
  clip-path: circle(0% at 82% 8%);
  transition: clip-path 1s cubic-bezier(.65, 0, .35, 1);
}
.mobile__phones.is-light .phone__light { clip-path: circle(150% at 82% 8%); }
.mobile__phones.is-light .phone--b .phone__light { transition-delay: .12s; }
.mobile__phones:not(.is-light) .phone--a .phone__light { transition-delay: .12s; }

/* interruptor sincronizado */
.feat-theme > div { flex: 1; }
.theme-switch {
  position: relative; flex: none; width: 60px; height: 32px; border: 0; border-radius: 99px; padding: 0;
  background: #0b1f19; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 2px 4px rgba(0, 0, 0, .35);
  transition: background-color .5s ease; cursor: pointer;
}
.theme-switch.is-light { background: var(--g-300); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.theme-switch__knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--g-800);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  transform: translateX(28px); transition: transform .5s var(--ease);
}
.theme-switch.is-light .theme-switch__knob { transform: none; color: var(--amber-800); }
.theme-switch svg { position: absolute; width: 15px; height: 15px; stroke-width: 2.2; transition: opacity .3s ease, transform .5s var(--ease); }
.theme-switch .ts-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-switch.is-light .ts-sun { opacity: 1; transform: none; }
.theme-switch.is-light .ts-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
/* área táctil de 44 px */
.theme-switch::before { content: ""; position: absolute; inset: -6px -2px; }


/* Títulos que se escriben al scrollear (main.js reparte las palabras en .ink__w) */
.ink__w { display: inline-block; will-change: opacity, transform; }

/* ===========================================================
   Celulares (≤ 640 px): capturas legibles, formulario corto y pie ordenado
   En el celular, el marco de la notebook y el menú en miniatura dejaban la
   pantalla del sistema a una cuarta parte de su tamaño. Acá se muestra la
   pantalla sola, acercada a la zona con los datos (a la mitad del tamaño real
   de la captura), y el menú lo reemplazan los chips. En Funciones, cada
   captura se ve igual de cerca y al tocarla se abre completa en el visor.
   =========================================================== */
@media (max-width: 640px) {
  /* --- Módulos: ventana del sistema en lugar de la notebook --- */
  .laptop { aspect-ratio: 1 / .92; max-width: 520px; }
  .laptop__frame, .app__side, .cursor { display: none; }
  .laptop__screen {
    left: 0; top: 0; width: 100%; height: 100%; border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 28px 56px -22px rgba(0, 0, 0, .7);
  }
  .app { width: 100%; height: 100%; transform: none; }
  .app__body { grid-template-columns: 1fr; }
  /* la captura a escala .5, desde poco antes de donde termina su menú lateral (294 px de 1910) */
  .app__screen img { left: -132px; width: 955px; }
  .laptop__ping { top: 14px; right: 14px; }
  .laptop__phone { width: 34%; right: -3%; bottom: -7%; }

  /* --- Funciones: la captura principal, acercada y ampliable --- */
  .panels .panel__shots > .bezel:first-child {
    position: relative; aspect-ratio: 1 / .86; overflow: hidden; padding: 0; border-radius: 16px;
  }
  .panels .panel__shots > .bezel:first-child img {
    position: absolute; top: 0; left: -132px; width: 955px; max-width: none; border-radius: 0; box-shadow: none;
  }
  /* indica que se puede abrir completa */
  .panels .panel__shots > .bezel:first-child::after {
    content: ""; position: absolute; inset: auto 10px 10px auto; width: 36px; height: 36px; border-radius: 50%; opacity: 1; transition: none;
    background: rgba(11, 42, 33, .82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4);
  }

  /* --- Contacto: el mail con "Copiar" como ícono en la misma línea --- */
  .contact__side { gap: 16px; padding: 26px 20px 18px; }
  .contact__mail small { margin-bottom: 2px; }
  .contact__mailrow { flex-wrap: nowrap; gap: 8px; }
  .contact__mailrow a { min-width: 0; overflow-wrap: anywhere; }
  .copy { flex: none; width: 44px; padding: 0; justify-content: center; }
  .copy span { display: none; }

  /* --- Formulario: más compacto, el motivo en filas bajas y el mensaje más corto --- */
  .form { padding: 24px 20px 22px; gap: 16px; }
  .form__head h3 { font-size: 1.3rem; }
  .form__head p { display: none; }
  .form input[type="text"] { height: 50px; }
  .form textarea { min-height: 104px; }
  .opts__row { gap: 6px; }
  .opt span { height: 46px; gap: 10px; font-size: .96rem; }
  .opt span::before { width: 18px; height: 18px; }

  /* --- Pie: un solo bloque alineado a la izquierda --- */
  .footer__inner { gap: 0; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .footer__brand p { padding-left: 0; border-left: 0; }
  .footer__end { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 10px; }
  .footer__end small { padding-left: 0; border-left: 0; }
}


/* ===========================================================
   Menú móvil · panel verde suave
   Pantalla en verde de marca (más claro que el verde casi negro de antes) con la cuadrícula
   del hero. Las opciones arrancan arriba, bien a la vista; la sección donde estás se
   enciende en menta suave. Abajo quedan el botón de demo (claro, sin color fosforescente),
   el mail y la marca en grande. Todo el bloque vive en celular y tablet (hasta 900 px):
   la barra de escritorio no cambia.
   =========================================================== */
@media (max-width: 900px) {
  html .nav .nav__links, html .nav.is-scrolled .nav__links {
    top: 0; height: 100dvh; padding: calc(var(--nav-h) + 8px) 20px calc(20px + env(safe-area-inset-bottom));
    color: #fff; border-top: 0; z-index: 1;
    background-color: var(--g-800);
    background-image:
      radial-gradient(120% 55% at 100% 0%, rgba(92, 201, 160, .18), transparent 60%),
      linear-gradient(180deg, rgba(18, 59, 48, 0) 30%, rgba(18, 59, 48, .55) 100%),
      linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: auto, auto, 38px 38px, 38px 38px;
  }
  /* Logo y botón quedan por encima del panel y pasan a la versión clara */
  .brand, .nav__toggle { position: relative; z-index: 2; }
  html.menu-open header.nav { background: transparent; border-color: transparent; box-shadow: none; }
  html.menu-open .brand__logo:not(.brand__logo--dark) { display: none; }
  html.menu-open .brand__logo--dark { display: block; }
  html.menu-open .nav__toggle { color: #fff; }

  /* Opciones: arriba, justo debajo del encabezado */
  html .nav .nav__group > a:not(.btn) {
    display: flex; align-items: center;
    min-height: 80px; padding: 0; border-bottom: 1px solid rgba(255, 255, 255, .16);
    font-size: clamp(1.75rem, 8.4vw, 2.1rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em;
    color: rgba(255, 255, 255, .94);
  }
  html .nav .nav__group > a:not(.btn):first-child { margin-top: 28px; }
  html .nav .nav__group > a:not(.btn):last-child { margin-bottom: 22px; }
  html .nav .nav__group > a.is-current:not(.btn) { color: #A6DEC7; }
  html .nav__links a:not(.btn):active { background: rgba(255, 255, 255, .06); }
  html .nav__links a:not(.btn):focus-visible { outline: 3px solid var(--g-300); outline-offset: -3px; border-radius: 10px; }

  /* Pedir demo primero, mail como acción secundaria, firma al pie */
  html .nav__links .nav__cta {
    order: 1; flex: none; height: 58px; margin: auto 0 0; border-radius: 16px;
    background: #E3F1EA; color: var(--g-900); font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em;
    box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .5);
  }
  html .nav__links .nav__cta:active { background: #CFE3D9; }
  html .nav__links a.nav__mail {
    order: 2; flex: none; display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; margin-top: 6px; border-bottom: 0;
    font-size: .95rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: #DDEAE4;
  }
  html .nav__links a.nav__mail svg { width: 18px; height: 18px; }
  /* Marca en grande al pie (decorativa: el logo del encabezado ya es el enlace al inicio) */
  html .nav__links::before {
    content: ""; order: 3; flex: none; align-self: center; width: min(250px, 66%); aspect-ratio: 150 / 32;
    margin-top: 20px; background: url("assets/img/brand/logo-horizontal-oscuro.svg") center / contain no-repeat;
  }
  html .nav__links::after {
    content: "Sistema de gestión para comercios" / ""; order: 4; flex: none; padding-top: 10px;
    text-align: center; font-size: .82rem; color: rgba(236, 243, 239, .72);
  }
}

/* Celulares bajos: filas más compactas para que entre todo sin desplazar */
@media (max-width: 900px) and (max-height: 700px) and (orientation: portrait) {
  html .nav .nav__group > a:not(.btn) { min-height: 64px; font-size: clamp(1.5rem, 7.6vw, 1.9rem); }
  html .nav .nav__group > a:not(.btn):first-child { margin-top: 12px; }
  html .nav .nav__group > a:not(.btn):last-child { margin-bottom: 16px; }
  html .nav__links .nav__cta { height: 54px; }
  html .nav__links::before { width: min(200px, 56%); margin-top: 12px; }
}

/* Celular horizontal: dos columnas (opciones | acciones), el botón conserva su alto */
@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  html .nav__links {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 40px; align-content: center;
    padding: calc(var(--nav-h) + 2px) max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left));
  }
  html .nav .nav__group > a:not(.btn) { grid-column: 1; min-height: 58px; font-size: 1.5rem; }
  html .nav .nav__group > a:not(.btn):first-child { margin-top: 0; }
  html .nav .nav__group > a:not(.btn):last-child { margin-bottom: 0; }
  html .nav__links .nav__cta { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
  html .nav__links a.nav__mail { grid-column: 2; grid-row: 3 / span 2; align-self: start; margin-top: 10px; }
  html .nav__links::before, html .nav__links::after { display: none; }
}

/* Tablet vertical: el contenido se centra en una columna legible */
@media (min-width: 641px) and (max-width: 900px) and (orientation: portrait) {
  html .nav__links { padding-inline: max(32px, calc((100% - 600px) / 2)); }
  html .nav .nav__group > a:not(.btn) { font-size: 2.4rem; min-height: 96px; }
}


/* ===========================================================
   Pulido móvil · tipografía, tablet y formulario
   - (Solo celular y tablet; escritorio no cambia.) Títulos equilibrados y párrafos sin palabra suelta en la última línea
     ("celu.", "barrio.") — solo cambia dónde corta el renglón, no el texto.
   - Tablet vertical: "Varias sucursales" deja de estirarse a dos filas (quedaba un
     hueco enorme entre el texto y el selector) y "Notas y adjuntos" ocupa el ancho.
   - Campos del formulario: al enfocar con el teclado abierto no quedan bajo la barra.
   =========================================================== */
@media (max-width: 900px) {
  h1, h2, h3 { text-wrap: balance; }
  p, .feats li small, .tile p { text-wrap: pretty; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .bento { grid-template-areas: "stock stock" "branch users" "files files"; }
}

.form input, .form textarea { scroll-margin-block: 96px 140px; }


/* ===========================================================
   Visor de capturas · recorrer la captura en celular
   En un celular vertical la captura de escritorio entera mide ~340 px de ancho y no se
   lee nada. Ahora se muestra a un tamaño legible y se recorre arrastrando (también se
   puede pellizcar para acercar). Escritorio, tablet y celular horizontal no cambian:
   el contenedor desaparece (display: contents) y la imagen queda como antes.
   =========================================================== */
.lightbox__scroll { display: contents; }

@media (max-width: 640px) and (orientation: portrait) {
  .lightbox { padding: 0; cursor: default; }
  .lightbox__scroll {
    display: flex; position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;
    padding: 76px 20px max(32px, env(safe-area-inset-bottom));
  }
  .lightbox__scroll img {
    flex: none; margin: auto; max-width: none; max-height: none;
    height: min(72dvh, 560px); width: auto; border-radius: 12px;
  }
  /* El botón queda fijo arriba mientras se recorre la imagen */
  .lightbox__close { z-index: 2; background: rgba(8, 24, 19, .72); }
}


/* ===========================================================
   Controles táctiles · área de toque de 44 px
   Solo con puntero táctil. El interruptor de claro/oscuro del celular de ejemplo se ve igual
   (60×32) pero se puede tocar en un área de 44 px; las solapas de Funciones llegan a 44 px
   también en tablet horizontal, igual que el logo, el botón de copiar, el mail de contacto y los enlaces del pie.
   =========================================================== */
@media (pointer: coarse) {
  .seg__tab, .brand, .copy, .contact__mailrow a { min-height: 44px; }
  .footer__nav a, .footer__end a { display: inline-flex; align-items: center; min-height: 44px; }
  .theme-switch { position: relative; }
  .theme-switch::after { content: ""; position: absolute; inset: -6px -4px; }
}


/* ===========================================================
   Motivo · desplegable en celular
   En pantallas de hasta 640 px las tres filas del motivo se reemplazan por un desplegable
   (menos alto, el mismo dato). Lo arma main.js sobre los radios, que siguen siendo lo que se envía:
   sin JavaScript se ven las tres filas de siempre. Tablet y escritorio no cambian.
   =========================================================== */
.dd { display: none; position: relative; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  html.js .opts__row { display: none; }
  html.js .dd { display: block; }
  .dd__btn {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 52px; padding: 0 16px;
    font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); text-align: left; cursor: pointer;
    background: var(--paper); border: 1px solid var(--line-2); border-radius: 11px; box-shadow: 0 1px 2px rgba(16, 40, 32, .04);
    transition: border-color .2s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent;
  }
  .dd__btn:focus-visible, .dd.is-open .dd__btn { outline: none; border-color: var(--g-500); box-shadow: 0 0 0 4px rgba(47, 138, 107, .14); }
  .dd__chev {
    width: 9px; height: 9px; flex: none; margin: -4px 3px 0 0; border: solid var(--g-700); border-width: 0 2px 2px 0;
    transform: rotate(45deg); transition: transform .2s ease, margin .2s ease;
  }
  .dd.is-open .dd__chev { transform: rotate(-135deg); margin-top: 4px; }
  .dd__list {
    position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; outline: none;
    background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 2px 4px rgba(16, 40, 32, .06), 0 18px 36px -14px rgba(16, 40, 32, .3);
    animation: ddIn .16s ease-out;
  }
  .dd__list[hidden] { display: none; }
  .dd__opt {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 14px;
    border-radius: 10px; font-size: 1rem; font-weight: 500; color: var(--ink-2); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .dd__opt + .dd__opt { margin-top: 2px; }
  .dd__opt.is-hi { background: var(--mist); color: var(--ink); }
  .dd__opt[aria-selected="true"] { background: var(--g-50); color: var(--g-700); font-weight: 600; }
  .dd__opt[aria-selected="true"]::after {
    content: ""; width: 6px; height: 11px; flex: none; margin: -3px 5px 0 0;
    border: solid var(--g-600); border-width: 0 2px 2px 0; transform: rotate(45deg);
  }
  .dd__list:focus-visible .dd__opt.is-hi { box-shadow: inset 0 0 0 2px var(--g-500); }
}
@media (max-width: 640px) and (max-height: 700px) { .dd__btn { height: 50px; } .dd__opt { min-height: 48px; } }


/* ===========================================================
   WhatsApp · botón flotante y acceso en Contacto
   El botón flotante aparece apenas se abre la página y, la primera vez de la visita, despliega
   un mensaje («Te asesoramos por WhatsApp») unos segundos antes de plegarse a solo el ícono. Se
   esconde cuando ya está a la vista el bloque de Contacto o el pie (ahí hay un acceso propio) y
   mientras está abierto el menú. Con mouse también se despliega al pasar el cursor. Sin
   JavaScript queda siempre visible. Verde de marca con aro blanco para que se vea sobre
   fondos claros y oscuros.
   =========================================================== */
.wa-ico { fill: currentColor; stroke: none; }

.wa-fab {
  position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: row-reverse; align-items: center; height: 56px; border-radius: 28px;
  color: #fff; background: var(--g-700); -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .95), 0 12px 26px -8px rgba(11, 42, 33, .55), 0 2px 6px rgba(11, 42, 33, .25);
  transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.22, 1, .36, 1), background-color .25s ease, box-shadow .35s ease, visibility 0s;
}
.wa-fab__ico { display: grid; place-items: center; width: 56px; height: 56px; flex: none; }
.wa-fab__ico svg { width: 30px; height: 30px; }
.wa-fab__label {
  max-width: 0; overflow: hidden; white-space: nowrap; font-size: .95rem; font-weight: 700; letter-spacing: -.005em;
  opacity: 0; transform: translateX(10px);
  /* al plegarse: primero se apaga el texto y después se cierra la píldora */
  transition: max-width .55s cubic-bezier(.65, 0, .35, 1) .08s, padding .55s cubic-bezier(.65, 0, .35, 1) .08s, opacity .18s ease, transform .3s ease;
}
.wa-fab.is-open .wa-fab__label {
  max-width: 240px; padding-left: 22px; opacity: 1; transform: none;
  /* al abrirse: la píldora se estira y el texto aparece detrás, con un pequeño desfase */
  transition: max-width 1.1s cubic-bezier(.33, 1, .68, 1), padding 1.1s cubic-bezier(.33, 1, .68, 1), opacity .8s ease .3s, transform 1s cubic-bezier(.22, 1, .36, 1) .25s;
}
.wa-fab:focus-visible { outline: 3px solid var(--g-300); outline-offset: 5px; }
/* aro que late dos veces cuando se abre el mensaje, para llamar la atención sin insistir */
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; }
.wa-fab.is-attn::after { animation: waRing 1.5s ease-out 2; }
@keyframes waRing { 0% { opacity: .9; box-shadow: 0 0 0 0 rgba(30, 95, 78, .5); } 100% { opacity: 0; box-shadow: 0 0 0 20px rgba(30, 95, 78, 0); } }
@media (hover: hover) and (pointer: fine) {
  .wa-fab:hover { background: var(--g-800); }
  .wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label {
    max-width: 240px; padding-left: 22px; opacity: 1; transform: none;
    transition: max-width 1.1s cubic-bezier(.33, 1, .68, 1), padding 1.1s cubic-bezier(.33, 1, .68, 1), opacity .8s ease .3s, transform 1s cubic-bezier(.22, 1, .36, 1) .25s;
  }
  .wa-fab:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .95), 0 16px 30px -8px rgba(11, 42, 33, .6), 0 2px 6px rgba(11, 42, 33, .25); }
}
/* En celular, el botón y la letra del mensaje son más chicos y tapan menos pantalla (el área de toque sigue ≥ 44 px) */
@media (max-width: 640px) {
  .wa-fab { height: 52px; border-radius: 26px; }
  .wa-fab__ico { width: 52px; height: 52px; }
  .wa-fab__ico svg { width: 28px; height: 28px; }
  .wa-fab__label { font-size: .78rem; letter-spacing: 0; }
  .wa-fab.is-open .wa-fab__label { max-width: 212px; padding-left: 16px; }
}
@media (min-width: 901px) {
  .wa-fab { right: 28px; bottom: 28px; height: 60px; border-radius: 30px; }
  .wa-fab__ico { width: 60px; height: 60px; }
  .wa-fab__ico svg { width: 32px; height: 32px; }
}
/* Con JavaScript: aparece al abrir la página y se esconde cuando ya hay otro acceso a la vista */
html.js .wa-fab:not(.is-on) { opacity: 0; transform: translateY(26px) scale(.7); pointer-events: none; visibility: hidden; transition: opacity .35s ease, transform .45s ease, visibility 0s .45s; }
html.menu-open .wa-fab { opacity: 0; pointer-events: none; visibility: hidden; }
/* Con «reducir movimiento»: sin desplazamientos ni estirones, pero con un fundido suave (un cambio brusco tampoco es cómodo) */
@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: opacity .9s ease, background-color .25s ease, visibility 0s; }
  .wa-fab__label, .wa-fab.is-open .wa-fab__label { transform: none; transition: opacity .9s ease .1s, max-width 0s, padding 0s; }
  .wa-fab:not(.is-open) .wa-fab__label { transition: opacity .3s ease, max-width 0s .3s, padding 0s .3s; }
  html.js .wa-fab:not(.is-on) { transform: none; transition: opacity .4s ease, visibility 0s .4s; }
  .wa-fab.is-attn::after { animation: none; }
}

/* Contacto: WhatsApp como un canal más, con el mismo estilo que el mail */
.contact__mailrow--wa { margin-bottom: 12px; }
.contact__mailrow--wa .wa-ico { width: 1.25em; height: 1.25em; }

/* @@oscuro:inicio */
/* ===========================================================
   Modo oscuro
   Misma marca, de noche: verde profundo con tinte de la marca en lugar de negro puro, texto
   en blanco verdoso y la menta como acento. Las pantallas del sistema (notebook, celulares,
   factura) siguen claras, como en el producto real: son «ventanas» sobre la página.
   Se activa con html[data-theme="dark"] (elección guardada o la del dispositivo).
   =========================================================== */
html { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #E8F0EC; --ink-2: #B3C1BA; --ink-3: #8C9D96;
  --line: #1E2D27; --line-2: #2B3D36;
  --paper: #0C1613; --mist: #09110E;
  --g-50: #11231D; --g-100: #17302A;
  --amber-50: #2A2112; --amber-800: #F3C777; --red-50: #2D1815; --red-700: #FF9A8D;
  --grid-light: rgba(127, 220, 184, .06);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 6px -2px rgba(0, 0, 0, .35);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -10px rgba(0, 0, 0, .55);
  --sh-3: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 12px -4px rgba(0, 0, 0, .4), 0 24px 48px -16px rgba(0, 0, 0, .6), 0 64px 120px -32px rgba(0, 0, 0, .7);
  --sh-4: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 20px -6px rgba(0, 0, 0, .5), 0 36px 64px -20px rgba(0, 0, 0, .65), 0 90px 160px -40px rgba(0, 0, 0, .75);
  --card: #0F1E19;
}
html[data-theme="dark"] body { background: var(--paper); }

/* Las ventanas del producto conservan los colores claros del sistema */
html[data-theme="dark"] :is(.app, .invoice, .laptop__card, .toast) {
  color-scheme: light; color: var(--ink);
  --ink: #0E1916; --ink-2: #44514c; --ink-3: #66736e;
  --line: #e1e7e4; --line-2: #d2dbd7;
  --paper: #ffffff; --mist: #f3f6f4;
  --g-50: #eef5f1; --g-100: #dcebe4;
  --amber-50: #fdf3e2; --amber-800: #8a5410; --red-50: #fdecea; --red-700: #b3362b;
}

/* ---------- Botón del tema ---------- */
.theme-btn {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: 10px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--ink-2);
  transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .2s var(--ease);
}
.theme-btn:hover { color: var(--ink); border-color: var(--ink-3); background: rgba(127, 140, 134, .1); }
.theme-btn:active { transform: scale(.94); }
.theme-btn:focus-visible { outline: 3px solid var(--g-500); outline-offset: 3px; }
.theme-btn svg { position: absolute; width: 19px; height: 19px; transition: opacity .35s ease, transform .6s var(--ease); }
.theme-btn .tb-sun { opacity: 0; transform: rotate(-80deg) scale(.5); }
html[data-theme="dark"] .theme-btn .tb-sun { opacity: 1; transform: none; }
html[data-theme="dark"] .theme-btn .tb-moon { opacity: 0; transform: rotate(80deg) scale(.5); }
@media (min-width: 901px) { .nav__inner { justify-content: flex-start; } .nav__links { margin-left: auto; } }
@media (max-width: 900px) {
  .theme-btn { margin-left: auto; margin-right: 6px; position: relative; z-index: 2; }
  html.menu-open .theme-btn { color: #fff; border-color: rgba(255, 255, 255, .3); }
}

/* Cambio de tema con suavidad (solo durante el cambio, y no con «reducir movimiento») */
@media (prefers-reduced-motion: no-preference) {
  html.tema-anim :is(body, section, header, footer, main, div, a, p, h1, h2, h3, small, span, b, li, ul, button, input, textarea, label, figure, svg, img, article, aside, dl, dt, dd)
  { transition: background-color .45s ease, border-color .45s ease, color .45s ease, box-shadow .45s ease, fill .45s ease, stroke .45s ease !important; }
}

/* ---------- Barra superior ---------- */
html[data-theme="dark"] header.nav { background: rgba(9, 17, 14, .6); }
html[data-theme="dark"] header.nav.is-scrolled { background: rgba(9, 17, 14, .9); border-color: var(--line); }
html[data-theme="dark"].menu-open header.nav, html[data-theme="dark"].menu-open header.nav.is-scrolled { background: transparent; border-color: transparent; }
html[data-theme="dark"] .brand__logo:not(.brand__logo--dark) { display: none; }
html[data-theme="dark"] .brand__logo--dark { display: block; }
html[data-theme="dark"] .nav__links a:not(.btn):hover { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .nav__links a.is-current { color: var(--g-300); }
html[data-theme="dark"] .nav__links a.is-current::after { background: var(--g-400); }
html[data-theme="dark"] .brand__tag { color: var(--ink-3); border-color: var(--line-2); }

/* ---------- Botones ---------- */
html[data-theme="dark"] .btn--primary { background: #20765B; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 24px -8px rgba(43, 156, 122, .55); }
html[data-theme="dark"] .btn--primary:hover { background: #238060; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 12px 30px -8px rgba(43, 156, 122, .7); }
html[data-theme="dark"] .hero__ctas .btn--primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 24px -8px rgba(43, 156, 122, .55), 0 16px 44px -12px rgba(92, 201, 160, .4); }
html[data-theme="dark"] .btn--ghost { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .18); color: var(--ink); box-shadow: none; }
html[data-theme="dark"] .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--g-400); color: #fff; }

/* ---------- Fondos de las secciones ---------- */
html[data-theme="dark"] .hero { --fog: #0B1512; }
html[data-theme="dark"] #funciones { --fog: var(--paper); }
html[data-theme="dark"] .bezel { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
html[data-theme="dark"] .bezel--hero, html[data-theme="dark"] .panel .bezel { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), var(--sh-3); }
html[data-theme="dark"] .panel .bezel.is-hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), var(--sh-4); }

/* ---------- Formulario ---------- */
html[data-theme="dark"] .contact__card { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), var(--sh-3); }
html[data-theme="dark"] .form input[type="text"], html[data-theme="dark"] .form textarea { background: rgba(255, 255, 255, .04); border-color: #2D423A; box-shadow: none; }
html[data-theme="dark"] .form input:hover, html[data-theme="dark"] .form textarea:hover { border-color: #46635A; }
html[data-theme="dark"] .form input:focus, html[data-theme="dark"] .form textarea:focus { border-color: var(--g-400); box-shadow: 0 0 0 4px rgba(92, 201, 160, .16); }
html[data-theme="dark"] .form textarea::placeholder { color: #7B8E86; }
html[data-theme="dark"] .opts__row { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); }
html[data-theme="dark"] .opt input:checked + span { background: #1A3A30; color: var(--g-300); box-shadow: inset 0 0 0 1px rgba(127, 220, 184, .35); }
html[data-theme="dark"] .opt input:focus-visible + span { outline-color: rgba(127, 220, 184, .7); }
html[data-theme="dark"] .dd__btn { background: rgba(255, 255, 255, .04); border-color: #2D423A; box-shadow: none; }
html[data-theme="dark"] .dd__chev { border-color: var(--g-300); }
html[data-theme="dark"] .dd__list { background: #101F1A; border-color: var(--line-2); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); }
html[data-theme="dark"] .dd__opt.is-hi { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .dd__opt[aria-selected="true"] { background: #1A3A30; color: var(--g-300); }
html[data-theme="dark"] .dd__opt[aria-selected="true"]::after { border-color: var(--g-300); }
html[data-theme="dark"] .form__status.ok { color: var(--g-300); }

/* ---------- Tarjetas de «Pensado para crecer» ---------- */
html[data-theme="dark"] .tile--users, html[data-theme="dark"] .tile--files { background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-1); }
html[data-theme="dark"] .tile--users:hover, html[data-theme="dark"] .tile--files:hover { box-shadow: inset 0 0 0 1px #35514A, var(--sh-3); }
html[data-theme="dark"] .tile--stock { background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
html[data-theme="dark"] .stocklist { background: #0B1713; box-shadow: 0 0 0 1px var(--line-2); }
html[data-theme="dark"] .stocklist li:hover { background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .invoice__total b { color: var(--g-700); }
html[data-theme="dark"] .seg { background: rgba(255, 255, 255, .03); }

/* ---------- Detalles ---------- */
html[data-theme="dark"] .steps__n { color: var(--g-300); }
html[data-theme="dark"] .steps li:last-child .steps__n { color: #fff; }

/* Menú del celular: el botón de demo conserva el verde suave claro */
@media (max-width: 900px) {
  html[data-theme="dark"] .nav__links .nav__cta { background: #E3F1EA; color: var(--g-900); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .5); }
  html[data-theme="dark"] .nav__links .nav__cta:active { background: #CFE3D9; }
}
html[data-theme="dark"] .skip { background: #E8F0EC; color: #0E1916; }
html[data-theme="dark"] .pill--ok { background: rgba(92, 201, 160, .14); color: var(--g-300); }

/* alto de los degradados entre secciones */
:root { --fade: 110px; --fade-c: 70px; }
html[data-theme="dark"] { --fade: 260px; --fade-c: 220px; }

/* ---------- Inicio y entre secciones: el color se funde, sin cortes (claro y oscuro) ---------- */
html[data-theme="dark"] .hero { background: linear-gradient(180deg, #08110E 0%, #0A1511 55%, #0B1713 100%); }
.hero__horizon {
  background:
    radial-gradient(56% 36% at 50% 52%, rgba(92, 201, 160, .14), transparent 72%),
    linear-gradient(180deg, transparent 0, transparent 20%, rgba(18, 59, 48, .28) 36%, rgba(18, 59, 48, .62) 50%, rgba(18, 59, 48, .9) 61%, var(--g-900) 70%);
}
.hero__horizon::after {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%);
}
html[data-theme="dark"] .hero { --fog: #0A1511; }

/* ---------- Entre secciones: el color se funde, sin cortes (en claro los cambios ya son suaves) ---------- */
#funciones::before {
  background-image:
    linear-gradient(180deg, var(--g-900) 0, rgba(18, 59, 48, 0) 100%),
    linear-gradient(0deg, var(--g-800) 0, rgba(23, 74, 60, 0) 100%),
    var(--gm),
    linear-gradient(to right, var(--gl, var(--grid-light)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gl, var(--grid-light)) 1px, transparent 1px);
  background-size: 100% var(--fade), 100% var(--fade), 100% 100%, var(--cell-w) var(--cell-h), var(--cell-w) var(--cell-h);
  background-position: top, bottom, center, center top, center top;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
}
#arca::before {
  background-image:
    linear-gradient(180deg, var(--g-800) 0, rgba(23, 74, 60, 0) 100%),
    var(--gm),
    linear-gradient(to bottom, var(--grid-light) 1px, transparent 1px);
  background-size: 100% var(--fade), 100% 100%, 100% var(--cell-h);
  background-position: top, center, center top;
  background-repeat: no-repeat, no-repeat, repeat;
}
.contact::before {
  background-image:
    linear-gradient(0deg, #0B2A21 0, rgba(11, 42, 33, 0) 100%),
    var(--gm),
    linear-gradient(to right, var(--gl, var(--grid-light)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gl, var(--grid-light)) 1px, transparent 1px);
  background-size: 100% var(--fade-c), 100% 100%, var(--cell-w) var(--cell-h), var(--cell-w) var(--cell-h);
  background-position: bottom, center, center top, center top;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}
/* @@oscuro:fin */
