/* ==============================================================================
   FETCHDEVS · HOJA DE ESTILOS
   ------------------------------------------------------------------------------
   Sitio de una sola página. Sin preprocesador ni dependencias: se edita
   este archivo y listo.

   CÓMO ESTÁ ORGANIZADO
     01 · Tokens de diseño
     02 · Reinicio y base
     03 · Navegación
     04 · Portada (hero)
     05 · Demo del sistema
     06 · Franja de datos
     07 · Secciones de contenido
     08 · Estimador de proyecto
     09 · Preguntas frecuentes
     10 · Llamada a la acción y contacto
     11 · Elementos flotantes y pie
     12 · Animaciones, responsive y accesibilidad

   CONVENCIONES
     · Los colores no se escriben a mano: salen de los tokens de la
       sección 01, para que el tema claro y el oscuro cambien juntos.
     · Cada componente lleva su propio bloque; el responsive va agrupado
       al final, en la sección 12, y no repartido por el archivo.
   ============================================================================== */

/* ==============================================================================
   01 · TOKENS DE DISEÑO
   Paleta, tipografías, sombras y medidas. Todo lo que se repite
   vive aquí: cambiando un token cambia toda la página.
   ============================================================================== */
:root {
  --ink: #1d1d1f;
  --canvas: #ffffff;
  --surface: #ffffff;
  --fog: #f5f5f7;
  --fog-2: #ebebef;
  --line: #d2d2d7;
  --muted: #6e6e73;
  --blue: #0a84ff;
  --blue-hover: #0071e3;
  --indigo: #5e5ce6;
  --near-black: #0a0a0a;
  --on-dark: #f5f5f7;
  --on-dark-muted: #a1a1a6;
  --nav-bg: rgba(255,255,255,.72);
  --ok: #128a3a;
  --ok-bg: #e6f7ec;
  --warn: #9a6b00;
  --warn-bg: #fff6e0;
  --err: #c0392b;
  --err-bg: #ffecec;
  --grad: linear-gradient(118deg,#0a84ff 0%,#5e5ce6 100%);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.28);
  --shadow-md: 0 12px 40px -12px rgba(0,0,0,.22);
  --shadow-sm: 0 4px 14px -6px rgba(0,0,0,.18);

  /* Neblina gris del hero: solo vive en el tema claro, le da profundidad
  al fondo animado. En oscuro se apaga poniéndola transparente. */
  --fx-niebla-1: rgba(112,120,136,.26);
  --fx-niebla-2: rgba(138,146,162,.13);

  /* Velo claro justo detrás del texto del hero: mantiene el párrafo
  legible sobre la animación sin tener que apagarla. */
  --fx-velo-1: rgba(255,255,255,.80);
  --fx-velo-2: rgba(255,255,255,.34);

  /* El texto del hero se oscurece un punto en claro, porque compite
  con un fondo con textura. En oscuro se queda exactamente igual. */
  --hero-lede: #45454b;
  --hero-eyebrow: #0a56bd;

  /* Títulos que se despliegan letra por letra */
  --fold-ease: cubic-bezier(.165,.84,.44,1);

  /* equivale al power3.out de GSAP */
  --fold-dur: .65s;
  --fold-crease-max: .42;
  --fold-crease-rgb: 12,14,20;
  --radius: 22px;
  --font: "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono: "JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --maxw: 1120px;
  --nav-h: 56px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* El sistema pide oscuro y el usuario no forzó claro */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f5f5f7;
    --canvas: #0b0b0e;
    --surface: #151519;
    --fog: #111114;
    --fog-2: #1c1c21;
    --line: #2c2c33;
    --muted: #98989f;
    --blue: #3d9bff;
    --blue-hover: #5aabff;
    --indigo: #7b79ff;
    --near-black: #000000;
    --nav-bg: rgba(11,11,14,.72);
    --ok: #3ddc7f;
    --ok-bg: rgba(61,220,127,.13);
    --warn: #f5c451;
    --warn-bg: rgba(245,196,81,.13);
    --err: #ff6b5e;
    --err-bg: rgba(255,107,94,.13);
    --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.75);
    --shadow-md: 0 12px 40px -12px rgba(0,0,0,.6);
    --shadow-sm: 0 4px 14px -6px rgba(0,0,0,.55);
    --fx-niebla-1: transparent;
    --fx-niebla-2: transparent;
    --fx-velo-1: transparent;
    --fx-velo-2: transparent;
    --hero-lede: var(--muted);
    --hero-eyebrow: var(--blue);
    --fold-crease-max: .58;
  }
}

/* El usuario forzó oscuro con el interruptor */
:root[data-theme="dark"] {
  --ink: #f5f5f7;
  --canvas: #0b0b0e;
  --surface: #151519;
  --fog: #111114;
  --fog-2: #1c1c21;
  --line: #2c2c33;
  --muted: #98989f;
  --blue: #3d9bff;
  --blue-hover: #5aabff;
  --indigo: #7b79ff;
  --near-black: #000000;
  --nav-bg: rgba(11,11,14,.72);
  --ok: #3ddc7f;
  --ok-bg: rgba(61,220,127,.13);
  --warn: #f5c451;
  --warn-bg: rgba(245,196,81,.13);
  --err: #ff6b5e;
  --err-bg: rgba(255,107,94,.13);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.75);
  --shadow-md: 0 12px 40px -12px rgba(0,0,0,.6);
  --shadow-sm: 0 4px 14px -6px rgba(0,0,0,.55);
  --fx-niebla-1: transparent;
  --fx-niebla-2: transparent;
  --fx-velo-1: transparent;
  --fx-velo-2: transparent;
  --hero-lede: var(--muted);
  --hero-eyebrow: var(--blue);
  --fold-crease-max: .58;
}

/* ==============================================================================
   02 · REINICIO Y BASE
   Normalización, tipografía base y utilidades compartidas.
   ============================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s var(--ease),color .4s var(--ease);
}

body.no-scroll {
  overflow: hidden
}

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

img,svg {
  max-width: 100%
}

::selection {
  background: rgba(10,132,255,.22)
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px
}

section[id],main[id] {
  scroll-margin-top: calc(var(--nav-h) + 18px)
}

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--canvas);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 600;
}

.skip:focus {
  left: 0
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 14px 26px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: transform .3s var(--ease),box-shadow .3s var(--ease),background .3s var(--ease),opacity .3s,color .3s;
  font-family: inherit;
  text-align: center;
}

.btn:disabled {
  opacity: .6;
  cursor: progress
}

.btn-primary {
  background: var(--blue);
  color: #fff
}

.btn-primary:hover:not(:disabled) {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(10,132,255,.6)
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding-left: 6px;
  padding-right: 6px
}

.btn-ghost:hover {
  transform: translateX(3px)
}

.btn-ghost::after {
  content: "›";
  font-size: 1.3em;
  line-height: 0;
  transition: transform .3s var(--ease)
}

.btn-ghost:hover::after {
  transform: translateX(3px)
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line)
}

.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px)
}

/* ==============================================================================
   03 · NAVEGACIÓN
   Barra superior, progreso de lectura y menú móvil.
   ============================================================================== */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: var(--grad);
  transition: width .1s linear;
  pointer-events: none;
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(128,128,128,.16);
  transition: box-shadow .3s var(--ease),background .4s var(--ease);
}

header.nav.scrolled {
  box-shadow: 0 6px 24px -14px rgba(0,0,0,.35)
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 18px
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -.02em;
  flex: none
}

.logo .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: .86rem;
  box-shadow: 0 4px 12px -3px rgba(94,92,230,.6);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: .9rem;
  font-weight: 500
}

.nav-links a {
  color: var(--ink);
  opacity: .75;
  transition: opacity .2s,color .2s;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav-links a:hover {
  opacity: 1;
  color: var(--blue)
}

.nav-links a.current {
  opacity: 1;
  color: var(--blue);
  font-weight: 600
}

.nav-links a.current::after {
  transform: scaleX(1)
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none
}

.nav-cta {
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 980px;
  background: var(--ink);
  color: var(--canvas);
  transition: transform .25s var(--ease),opacity .25s;
  white-space: nowrap
}

.nav-cta:hover {
  transform: scale(1.04);
  opacity: .9
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: background .25s,border-color .25s,transform .25s var(--ease);
}

.icon-btn:hover {
  background: var(--fog);
  transform: scale(1.06)
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round
}

.theme-btn .moon {
  display: none
}

:root[data-theme="dark"] .theme-btn .sun {
  display: none
}

:root[data-theme="dark"] .theme-btn .moon {
  display: block
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .theme-btn .sun {
    display: none
  }
  :root:not([data-theme="light"]) .theme-btn .moon {
    display: block
  }
}

/* Hamburguesa animada */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .35s var(--ease),opacity .25s
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

.mobile-nav {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 99;
  background: var(--canvas);
  padding: 24px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s var(--ease),transform .32s var(--ease),visibility .32s;
  overflow-y: auto;
}

.mobile-nav.open {
  opacity: 1;
  transform: none;
  visibility: visible
}

.mobile-nav a.m-link {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav a.m-link::after {
  content: "›";
  color: var(--muted);
  font-weight: 400
}

.mobile-nav .m-actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px
}

/* ==============================================================================
   04 · PORTADA (HERO)
   Titular, halo y fondo animado en WebGL.
   ============================================================================== */
.hero {
  padding: 96px 0 40px;
  text-align: center;
  position: relative
}

.hero .halo {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 900px;
  max-width: 100%;
  height: 520px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%,rgba(94,92,230,.16),rgba(10,132,255,.05) 55%,transparent 72%);
  filter: blur(10px);
  transform: translate(calc(-50% + var(--hx,0px)),var(--hy,0px));
  transition: transform .9s var(--ease);
}

/* En oscuro el halo necesita más presencia para no desaparecer */
:root[data-theme="dark"] .hero .halo {
  background: radial-gradient(50% 50% at 50% 50%,rgba(94,92,230,.30),rgba(10,132,255,.10) 55%,transparent 72%);
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .hero .halo {
    background: radial-gradient(50% 50% at 50% 50%,rgba(94,92,230,.30),rgba(10,132,255,.10) 55%,transparent 72%);
  }
}

/* Fondo animado en WebGL. Arranca invisible y aparece cuando el primer
fotograma se dibujó: si la tarjeta no soporta WebGL2 nunca se muestra
y se queda el halo de siempre. Se difumina hacia abajo para fundirse
con el resto de la página. */
.hero-fx {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--nav-h));
  height: calc(100% + var(--nav-h));
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom,#000 0%,#000 54%,rgba(0,0,0,.5) 78%,transparent 100%);
  mask-image: linear-gradient(to bottom,#000 0%,#000 54%,rgba(0,0,0,.5) 78%,transparent 100%);
}

/* Neblina gris difuminada al centro. Va DEBAJO del lienzo, así el
corredor de cuadros se dibuja encima y gana profundidad en vez de
quedar lavado. En oscuro los tokens son transparentes y desaparece. */
.hero-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(64% 68% at 50% 42%, var(--fx-niebla-1) 0%, var(--fx-niebla-2) 44%, transparent 74%);
}

.hero-fx.listo {
  opacity: 1
}

.hero-fx canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1
}

/* Velo de lectura: va ENCIMA del lienzo pero dentro de .hero-fx, que
tiene su propio contexto de apilado, así nunca puede tapar el texto. */
.hero-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(46% 50% at 50% 44%, var(--fx-velo-1) 0%, var(--fx-velo-2) 54%, transparent 80%);
}

.hero .eyebrow {
  color: var(--hero-eyebrow)
}

.hero p.lede {
  color: var(--hero-lede)
}

.hero.con-fx .halo {
  display: none
}

.hero .wrap {
  position: relative;
  z-index: 1
}

h1 {
  font-size: clamp(2.7rem,7.2vw,5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 24px;
}

.hero p.lede {
  font-size: clamp(1.12rem,2.4vw,1.5rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 34px;
  font-weight: 400;
  line-height: 1.42;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px
}

.trust {
  margin-top: 26px;
  font-size: .86rem;
  color: var(--muted);
  font-weight: 500
}

.trust b {
  color: var(--ink);
  font-weight: 600
}

/* ==============================================================================
   05 · DEMO DEL SISTEMA
   El "antes y después": hoja de Excel contra mini-ERP navegable.
   ============================================================================== */
.showcase {
  padding: 20px 0 96px
}

.device {
  max-width: 940px;
  margin: 0 auto;
  border-radius: 26px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.device-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: var(--fog);
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%
}

.dot.r {
  background: #ff5f57
}

.dot.y {
  background: #febc2e
}

.dot.g {
  background: #28c840
}

.device-url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  background: var(--surface);
  border-radius: 7px;
  padding: 5px 12px;
  margin: 0 60px;
  border: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toggle-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding: 22px 0 4px
}

.segmented {
  display: inline-flex;
  background: var(--fog);
  border-radius: 980px;
  padding: 4px;
  position: relative;
  border: 1px solid var(--line);
}

.segmented button {
  position: relative;
  z-index: 2;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: .94rem;
  color: var(--muted);
  padding: 9px 26px;
  border-radius: 980px;
  transition: color .3s var(--ease);
}

/* El texto activo se invierte con el tema: sobre el pulgar oscuro va claro
y sobre el pulgar claro (modo oscuro) va oscuro. Sobre azul, siempre blanco. */
.segmented button.active {
  color: var(--canvas)
}

.segmented.after button.active {
  color: #fff
}

.seg-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: var(--ink);
  border-radius: 980px;
  transition: transform .42s var(--ease),background .42s var(--ease);
  z-index: 1;
}

.segmented.after .seg-thumb {
  transform: translateX(100%);
  background: var(--blue)
}

.demo-hint {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px
}

.demo-hint .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite
}

@keyframes pulse {
  0%,100% {
    opacity: 1;
    transform: scale(1)
  }
  50% {
    opacity: .35;
    transform: scale(.7)
  }
}

.screen {
  position: relative;
  min-height: 430px
}

/* Los dos paneles se cruzan al cambiar de pestaña. El entrante va en flujo
(para que el contenedor crezca con su contenido) y por encima, con fondo
opaco, para que nunca se lean los dos textos superpuestos. */
.panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--surface);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 26px 26px 30px;
  transition: opacity .5s var(--ease),visibility .5s var(--ease);
}

.panel.show {
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

/* --- ANTES: excel --- */
.xls-title {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--warn);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px
}

.xls-title::before {
  content: "⚠";
  font-size: 1rem
}

.xls-scroll {
  overflow-x: auto
}

.xls {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: .76rem;
  min-width: 520px
}

.xls th,.xls td {
  border: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  color: var(--ink);
  white-space: nowrap
}

.xls th {
  background: var(--fog-2);
  font-weight: 700;
  color: var(--muted)
}

.xls td.err {
  background: var(--err-bg);
  color: var(--err)
}

.xls .rowh {
  background: var(--fog);
  color: var(--muted);
  text-align: center;
  width: 34px
}

.xls-note {
  margin-top: 16px;
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap
}

.xls-note span {
  display: flex;
  align-items: center;
  gap: 6px
}

.xls-note .x {
  color: var(--err);
  font-weight: 700
}

/* --- DESPUÉS: mini-app real --- */
.dash {
  display: grid;
  grid-template-columns: 186px 1fr;
  gap: 22px;
  min-height: 378px
}

.dash-side {
  background: var(--fog);
  border-radius: 16px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.dash-brand {
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px
}

.dash-brand .mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--grad)
}

.dash-side button {
  font-family: inherit;
  font-size: .84rem;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 9px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background .25s,color .25s;
}

.dash-side button:hover {
  color: var(--ink);
  background: var(--fog-2)
}

.dash-side button.on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm)
}

.ic {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: currentColor;
  opacity: .55;
  flex: none
}

.dash-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap
}

.dash-head h4 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em
}

.dash-head .pill {
  font-size: .72rem;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-bg);
  padding: 4px 11px;
  border-radius: 980px;
  white-space: nowrap
}

.view {
  display: none;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  animation: fadeUp .45s var(--ease)
}

.view.on {
  display: flex
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px)
  }
  to {
    opacity: 1;
    transform: none
  }
}

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

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px
}

.kpi .lab {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em
}

.kpi .val {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: 4px
}

.kpi .val small {
  font-size: .72rem;
  color: var(--ok);
  font-weight: 700;
  margin-left: 6px
}

.chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.chart .ct {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted)
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 11px;
  height: 110px
}

.bar {
  flex: 1;
  background: var(--grad);
  border-radius: 6px 6px 3px 3px;
  opacity: .92;
  height: 0;
  transition: height .9s var(--ease)
}

.bars.in .bar {
  height: var(--h)
}

.bar-labels {
  display: flex;
  gap: 11px;
  font-size: .66rem;
  color: var(--muted);
  font-family: var(--mono)
}

.bar-labels span {
  flex: 1;
  text-align: center
}

/* Inventario con buscador funcional */
.tool-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap
}

.search {
  flex: 1;
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}

.search input {
  border: none;
  background: none;
  font-family: inherit;
  font-size: .85rem;
  color: var(--ink);
  width: 100%;
  outline: none
}

.search svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  flex: none
}

.tag {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 980px;
  white-space: nowrap
}

.tag.ok {
  color: var(--ok);
  background: var(--ok-bg)
}

.tag.low {
  color: var(--warn);
  background: var(--warn-bg)
}

.tag.out {
  color: var(--err);
  background: var(--err-bg)
}

.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem
}

.dtable th {
  text-align: left;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
  padding: 0 10px 9px;
  border-bottom: 1px solid var(--line);
}

.dtable td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink)
}

.dtable tr:last-child td {
  border-bottom: none
}

.dtable tbody tr {
  transition: background .2s
}

.dtable tbody tr:hover {
  background: var(--fog)
}

.dtable .num {
  text-align: right;
  font-family: var(--mono)
}

.empty-row td {
  text-align: center;
  color: var(--muted);
  padding: 24px 10px;
  font-style: italic
}

.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 8px 6px;
  flex: 1;
  overflow: auto
}

/* Punto de venta */
.pos {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 14px;
  flex: 1
}

.pos-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  align-content: start
}

.pos-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--ink);
  transition: transform .2s var(--ease),border-color .2s,box-shadow .2s;
}

.pos-item:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: var(--shadow-sm)
}

.pos-item:active {
  transform: scale(.97)
}

.pos-item .pn {
  font-size: .8rem;
  font-weight: 600;
  display: block;
  line-height: 1.3
}

.pos-item .pp {
  font-size: .75rem;
  color: var(--muted);
  font-family: var(--mono)
}

.ticket {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ticket h5 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted)
}

.ticket-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
  max-height: 150px
}

.tline {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  gap: 8px;
  align-items: center;
  animation: fadeUp .3s var(--ease)
}

.tline .tq {
  font-family: var(--mono);
  color: var(--muted);
  font-size: .72rem
}

.tline button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .9rem;
  line-height: 1;
  padding: 0 2px
}

.tline button:hover {
  color: var(--err)
}

.ticket-empty {
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
  padding: 8px 0
}

.ticket-total {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1rem
}

.pay-btn {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-family: inherit;
  font-weight: 700;
  font-size: .86rem;
  cursor: pointer;
  transition: background .25s,transform .2s
}

.pay-btn:hover {
  background: var(--blue-hover)
}

.pay-btn:disabled {
  opacity: .45;
  cursor: not-allowed
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%,16px);
  background: var(--ink);
  color: var(--canvas);
  font-size: .84rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 980px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease),transform .3s var(--ease);
  z-index: 6;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%,0)
}

/* Productos */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px
}

.prod {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .3s var(--ease),box-shadow .3s var(--ease)
}

.prod:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm)
}

.prod .ph {
  height: 56px
}

.prod .pb {
  padding: 10px 12px
}

.prod .pb b {
  font-size: .82rem;
  display: block
}

.prod .pb span {
  font-size: .74rem;
  color: var(--muted);
  font-family: var(--mono)
}

/* Reportes */
.rep {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 14px;
  flex: 1
}

.donut {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 6px auto 12px;
  background: conic-gradient(var(--blue) 0 46%,var(--indigo) 46% 74%,#34c759 74% 100%);
  display: grid;
  place-items: center;
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--surface)
}

.donut b {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  font-weight: 800
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .75rem;
  color: var(--muted)
}

.legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 7px
}

.hbars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  flex: 1
}

.hbar {
  display: grid;
  grid-template-columns: 74px 1fr 56px;
  gap: 10px;
  align-items: center;
  font-size: .78rem
}

.hbar .track {
  height: 9px;
  background: var(--fog-2);
  border-radius: 980px;
  overflow: hidden
}

.hbar .fill {
  height: 100%;
  background: var(--grad);
  border-radius: 980px;
  width: 0;
  transition: width 1s var(--ease)
}

.hbars.in .fill {
  width: var(--w)
}

.hbar .amt {
  text-align: right;
  font-family: var(--mono);
  color: var(--muted);
  font-size: .72rem
}

/* ==============================================================================
   06 · FRANJA DE DATOS
   Cifras destacadas bajo la demo.
   ============================================================================== */
.stats {
  padding: 0 0 96px
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--canvas);
  padding: 32px 24px;
  text-align: center
}

.stat b {
  display: block;
  font-size: clamp(2rem,4vw,2.8rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 500
}

/* ==============================================================================
   07 · SECCIONES DE CONTENIDO
   Servicios, casos, proceso, ventajas y tecnología.
   ============================================================================== */
section {
  padding: 110px 0
}

.sec-head {
  max-width: 720px;
  margin-bottom: 56px
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center
}

h2 {
  font-size: clamp(2rem,4.6vw,3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.06;
  margin-bottom: 18px
}

.sec-head p {
  font-size: clamp(1.05rem,2vw,1.28rem);
  color: var(--muted);
  font-weight: 400
}

/* SERVICIOS */
.services {
  background: var(--fog)
}

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

.svc {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease),box-shadow .4s var(--ease);
}

.svc:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md)
}

.svc .ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.svc h3 {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px
}

.svc p {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5
}

/* CASOS / INDUSTRIAS */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px
}

.case {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .4s var(--ease),border-color .3s,box-shadow .4s var(--ease);
}

.case:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
  box-shadow: var(--shadow-md)
}

.case .ci {
  font-size: 1.6rem;
  line-height: 1
}

.case h3 {
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -.015em
}

.case p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.5
}

.case ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px
}

.case li {
  font-size: .74rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--fog);
  border-radius: 980px;
  padding: 5px 11px
}

.note {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 26px;
  text-align: center
}

/* PROCESO */
.process {
  background: var(--near-black);
  color: var(--on-dark)
}

.process .eyebrow {
  color: #7ab4ff
}

.process h2 {
  color: #fff
}

.process .sec-head p {
  color: var(--on-dark-muted)
}

.steps {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 8px
}

.step {
  padding: 28px 20px 26px;
  border-top: 1px solid #2a2a2c;
  position: relative;
  transition: border-color .4s var(--ease)
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  transition: width .8s var(--ease);
}

.step.in::before {
  width: 100%
}

.step .num {
  font-family: var(--mono);
  font-size: .82rem;
  color: #7ab4ff;
  font-weight: 700;
  margin-bottom: 16px;
  display: block
}

.step h4 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 9px;
  letter-spacing: -.01em
}

.step p {
  font-size: .9rem;
  color: var(--on-dark-muted);
  line-height: 1.48
}

/* POR QUÉ */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: stretch
}

.why-lead {
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
}

.why-lead h3 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 16px
}

.why-lead p {
  opacity: .9;
  font-size: 1.05rem;
  line-height: 1.5
}

.why-lead .big {
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1
}

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.why-item {
  background: var(--fog);
  border-radius: 18px;
  padding: 26px 24px
}

.why-item .chk {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm)
}

.why-item h4 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 7px;
  letter-spacing: -.01em
}

.why-item p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45
}

/* TECNOLOGÍA */
.stack {
  background: var(--fog)
}

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

.stack-copy h2 {
  margin-bottom: 20px
}

.stack-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: 26px
}

.stack-copy ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.stack-copy li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 1rem;
  font-weight: 500
}

.stack-copy li::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
  margin-top: 1px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/70% no-repeat;
}

.chips {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .3s var(--ease),box-shadow .3s var(--ease)
}

.chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm)
}

.chip .d {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  flex: none
}

.chip small {
  display: block;
  color: var(--muted);
  font-family: var(--font);
  font-size: .78rem;
  margin-top: 2px
}

/* ==============================================================================
   08 · ESTIMADOR DE PROYECTO
   Selector de módulos y panel de resultado.
   ============================================================================== */
.est-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: start
}

.mod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.mod {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px;
  cursor: pointer;
  transition: border-color .25s,transform .25s var(--ease),background .25s;
}

.mod:hover {
  transform: translateY(-3px);
  border-color: var(--muted)
}

.mod input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0
}

.mod .box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  flex: none;
  margin-top: 2px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  transition: background .25s,border-color .25s,transform .2s var(--ease);
}

.mod .box::after {
  content: "✓";
  opacity: 0;
  transition: opacity .2s
}

/* La clase .checked la pone el JS: sirve de respaldo donde :has() no existe */
.mod.checked {
  border-color: var(--blue);
  background: linear-gradient(0deg,rgba(10,132,255,.05),rgba(10,132,255,.05)),var(--surface)
}

.mod.checked .box {
  background: var(--blue);
  border-color: var(--blue)
}

.mod.checked .box::after {
  opacity: 1
}

.mod input:focus-visible ~ .box {
  outline: 2px solid var(--blue);
  outline-offset: 3px
}

.mod b {
  font-size: .96rem;
  font-weight: 650;
  display: block;
  letter-spacing: -.01em
}

.mod span {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.4;
  display: block;
  margin-top: 3px
}

.est-card {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
  background: var(--near-black);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}

.est-card h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #7ab4ff;
  font-weight: 700
}

.est-big {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff
}

.est-big small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-dark-muted);
  letter-spacing: 0;
  margin-left: 8px
}

.est-meter {
  height: 7px;
  background: #2a2a2c;
  border-radius: 980px;
  overflow: hidden
}

.est-meter i {
  display: block;
  height: 100%;
  background: var(--grad);
  border-radius: 980px;
  width: 12%;
  transition: width .6s var(--ease)
}

.est-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: .88rem
}

.est-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--on-dark-muted)
}

.est-row b {
  color: #fff;
  font-weight: 600;
  text-align: right
}

.est-list {
  font-size: .82rem;
  color: var(--on-dark-muted);
  line-height: 1.55;
  border-top: 1px solid #2a2a2c;
  padding-top: 14px;
  min-height: 44px
}

.est-card .btn-primary {
  background: #fff;
  color: #0a0a0a;
  width: 100%
}

.est-card .btn-primary:hover {
  background: #f0f0f2
}

.est-legal {
  font-size: .74rem;
  color: #8e8e96;
  line-height: 1.45
}

/* ==============================================================================
   09 · PREGUNTAS FRECUENTES
   Acordeón.
   ============================================================================== */
.faq {
  max-width: 800px;
  margin: 0 auto
}

.qa {
  border-bottom: 1px solid var(--line)
}

.qa:first-child {
  border-top: 1px solid var(--line)
}

.qa button {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 26px 4px;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -.015em;
  transition: color .25s;
}

.qa button:hover {
  color: var(--blue)
}

.qa .sign {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  transition: background .3s,border-color .3s,transform .35s var(--ease);
}

.qa .sign::before,.qa .sign::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform .35s var(--ease),opacity .25s
}

.qa .sign::before {
  width: 11px;
  height: 1.8px
}

.qa .sign::after {
  width: 1.8px;
  height: 11px
}

.qa button[aria-expanded="true"] .sign {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: rotate(90deg)
}

.qa button[aria-expanded="true"] .sign::after {
  opacity: 0
}

.qa .ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease)
}

.qa .ans p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 44px 26px 4px
}

/* ==============================================================================
   10 · LLAMADA A LA ACCIÓN Y CONTACTO
   Franja negra y formulario.
   ============================================================================== */
.cta {
  background: var(--near-black);
  color: #fff;
  text-align: center
}

.cta h2 {
  color: #fff;
  font-size: clamp(2.2rem,5vw,3.6rem);
  margin-bottom: 20px
}

.cta p {
  color: var(--on-dark-muted);
  font-size: 1.2rem;
  max-width: 560px;
  margin: 0 auto 34px
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap
}

.cta .btn-primary {
  background: #fff;
  color: #0a0a0a;
  font-size: 1.08rem;
  padding: 16px 34px
}

.cta .btn-primary:hover {
  background: #f5f5f7;
  box-shadow: 0 12px 40px -8px rgba(255,255,255,.3)
}

.cta .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.3);
  font-size: 1.08rem;
  padding: 16px 34px
}

.cta .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.06)
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start
}

.contact-copy h2 {
  margin-bottom: 18px
}

.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  margin-bottom: 28px
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px
}

.cd {
  display: flex;
  gap: 14px;
  align-items: center
}

.cd .cdi {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--fog);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex: none
}

.cd b {
  display: block;
  font-size: .98rem
}

.cd span {
  color: var(--muted);
  font-size: .9rem
}

.copy-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  margin-left: auto;
  flex: none;
  transition: all .25s;
}

.copy-btn:hover {
  color: var(--blue);
  border-color: var(--blue)
}

form {
  background: var(--fog);
  border-radius: var(--radius);
  padding: 34px 32px
}

.field {
  margin-bottom: 18px
}

.field label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: 8px
}

.field label .opt {
  color: var(--muted);
  font-weight: 400
}

.field input,.field textarea,.field select {
  width: 100%;
  font-family: inherit;
  font-size: .98rem;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border .2s,box-shadow .2s;
}

.field textarea {
  resize: vertical;
  min-height: 110px
}

.field input:focus,.field textarea:focus,.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10,132,255,.14)
}

.field input[aria-invalid="true"],.field textarea[aria-invalid="true"] {
  border-color: var(--err);
  box-shadow: 0 0 0 4px rgba(192,57,43,.1)
}

.field .msg {
  display: none;
  font-size: .8rem;
  color: var(--err);
  margin-top: 7px;
  font-weight: 500
}

.field .msg.show {
  display: block
}

.field.flash input,.field.flash textarea,.field.flash select {
  animation: flash 1.4s var(--ease)
}

@keyframes flash {
  0%,100% {
    box-shadow: 0 0 0 0 rgba(10,132,255,0)
  }
  30% {
    box-shadow: 0 0 0 6px rgba(10,132,255,.22)
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 18px;
  cursor: pointer
}

.check input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  accent-color: var(--blue)
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0
}

form .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 6px
}

.form-alt {
  text-align: center;
  font-size: .84rem;
  color: var(--muted);
  margin-top: 16px
}

.form-alt a {
  color: var(--blue);
  font-weight: 600
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.form-ok {
  display: none;
  background: var(--fog);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center
}

.form-ok.show {
  display: block;
  animation: fadeUp .5s var(--ease)
}

.form-ok .ok-ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: #fff;
  font-size: 2rem
}

.form-ok h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px
}

.form-ok p {
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto
}

.ok-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto
}

.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: .85rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 6px
}

.link-btn:hover {
  color: var(--ink)
}

/* ==============================================================================
   11 · ELEMENTOS FLOTANTES Y PIE
   WhatsApp, volver arriba y footer.
   ============================================================================== */
.float {
  position: fixed;
  right: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: transform .3s var(--ease),opacity .3s var(--ease),visibility .3s,box-shadow .3s
}

.wa {
  bottom: 22px;
  width: 54px;
  height: 54px;
  background: #25d366;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,.6)
}

.wa:hover {
  transform: scale(1.09)
}

.wa svg {
  width: 27px;
  height: 27px;
  fill: #fff
}

.top {
  bottom: 88px;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px)
}

.top.show {
  opacity: 1;
  visibility: visible;
  transform: none
}

.top:hover {
  transform: translateY(-3px)
}

.top svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round
}

footer {
  background: var(--canvas);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px
}

.foot-brand {
  max-width: 280px
}

.foot-brand p {
  color: var(--muted);
  font-size: .92rem;
  margin-top: 14px;
  line-height: 1.5
}

.foot-social {
  display: flex;
  gap: 10px;
  margin-top: 18px
}

.foot-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all .25s var(--ease);
}

.foot-social a:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px)
}

.foot-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor
}

.foot-col h5 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 700
}

.foot-col a {
  display: block;
  font-size: .94rem;
  color: var(--ink);
  opacity: .8;
  margin-bottom: 11px;
  transition: opacity .2s,color .2s
}

.foot-col a:hover {
  opacity: 1;
  color: var(--blue)
}

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .85rem;
  color: var(--muted)
}

/* ==============================================================================
   12 · ANIMACIONES, RESPONSIVE Y ACCESIBILIDAD
   Aparición al hacer scroll, títulos desplegables, puntos de
   ruptura y respeto por prefers-reduced-motion.
   ============================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease),transform .7s var(--ease)
}

.reveal.in {
  opacity: 1;
  transform: none
}

/* ---------- TÍTULOS QUE SE DESPLIEGAN (Fold Text) ----------
Cada letra es una hoja con bisagra arriba: entra girada 92° y cae
hasta quedar plana, una detrás de otra. Registramos --fold-crease
como propiedad para poder animar la sombra del pliegue. */
@property --fold-crease {
  syntax: "<number>";
  inherits: false;
  initial-value: 0
}

/* La palabra no se parte: los saltos de línea solo ocurren en espacios */
.fold-word {
  display: inline-block;
  white-space: nowrap
}

.fold-seg {
  display: inline-block;
  perspective: var(--fold-persp,700px)
}

.fold-piece {
  display: inline-block;
  position: relative;
  transform-origin: 50% 0%;
  transform: rotateX(-92deg);
  opacity: 0;
  --fold-crease: var(--fold-crease-max,.42);
  transition: transform var(--fold-dur,.65s) var(--fold-ease), opacity var(--fold-dur,.65s) var(--fold-ease), --fold-crease var(--fold-dur,.65s) var(--fold-ease);
}

/* Sombra del pliegue: se apaga conforme la letra termina de caer */
.fold-piece::after {
  content: "";
  position: absolute;
  inset: -.08em -.03em;
  pointer-events: none;
  background: rgba(var(--fold-crease-rgb,12,14,20),var(--fold-crease));
}

.fold-text.desplegado .fold-piece {
  transform: none;
  opacity: 1;
  --fold-crease: 0
}

/* will-change solo mientras dura la animación: son cientos de letras */
.fold-text.animando .fold-piece {
  will-change: transform,opacity
}

@media(max-width:1000px) {
  .est-grid {
    grid-template-columns: 1fr
  }
  .est-card {
    position: static
  }
}

@media(max-width:940px) {
  .svc-grid,.case-grid {
    grid-template-columns: 1fr 1fr
  }
  .steps {
    grid-template-columns: 1fr 1fr
  }
  .why-grid,.stack-grid,.contact-grid {
    grid-template-columns: 1fr
  }
  .dash {
    grid-template-columns: 1fr
  }
  .dash-side {
    flex-direction: row;
    flex-wrap: wrap
  }
  .dash-side button {
    flex: 1;
    min-width: 118px;
    justify-content: center
  }
  .dash-brand {
    width: 100%
  }
  .pos,.rep {
    grid-template-columns: 1fr
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:900px) {
  .nav-links {
    display: none
  }
  .menu-btn {
    display: flex
  }
  .nav-cta {
    display: none
  }
}

@media(max-width:640px) {
  section {
    padding: 76px 0
  }
  .hero {
    padding: 64px 0 30px
  }
  .wrap {
    padding: 0 20px
  }
  .svc-grid,.case-grid {
    grid-template-columns: 1fr
  }
  .steps {
    grid-template-columns: 1fr
  }
  .kpis {
    grid-template-columns: 1fr
  }
  .why-list {
    grid-template-columns: 1fr
  }
  .chips {
    grid-template-columns: 1fr
  }
  .form-row {
    grid-template-columns: 1fr
  }
  .mod-grid {
    grid-template-columns: 1fr
  }
  .device-url {
    margin: 0 14px
  }
  .panel {
    padding: 18px 16px 22px
  }
  .xls-title {
    font-size: .72rem
  }
  .xls {
    font-size: .66rem
  }
  .xls th,.xls td {
    padding: 5px 6px
  }
  .pos-grid,.prod-grid {
    grid-template-columns: 1fr 1fr
  }
  .why-lead {
    padding: 34px 26px
  }
  form {
    padding: 26px 20px
  }
  .qa button {
    font-size: 1rem;
    padding: 22px 2px
  }
  .qa .ans p {
    padding-right: 20px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
  *,*::before,*::after {
    animation-duration: .001ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .001ms!important
  }
  .reveal {
    opacity: 1;
    transform: none
  }
  .bars .bar {
    height: var(--h)
  }
  .hbars .fill {
    width: var(--w)
  }
}
