/* =========================================================
   Snaptica — Landing corporativa
   Dirección: "Strategic Technology — Tecnología con propósito"
   Paleta y tipografía según Manual de Marca v1.0
   ========================================================= */

:root {
  /* Paleta oficial */
  --navy: #001B3D;        /* Principal: seriedad, confianza */
  --blue: #2563EB;        /* Acento: dinamismo */
  --sky: #60A5FA;         /* Complementario: detalles e interacción */
  --ice: #E0ECFF;         /* Fondos y soportes */
  --white: #FFFFFF;

  /* Derivados funcionales (tonos de la misma familia) */
  --navy-90: #0A2750;
  --navy-deep: #00142E;
  --ink: #001B3D;
  --ink-soft: #3E5476;
  --on-dark-soft: #A9C3EA;
  --line-light: #C9DBF7;
  --line-dark: rgba(96, 165, 250, .22);
  --paper: #F5F9FF;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 150px);
  --header-h: 84px;

  /* "Snap": transiciones breves y precisas */
  --snap: cubic-bezier(.2, .9, .1, 1);
  --t-fast: 160ms;
  --t-mid: 420ms;

  --cut: 12px; /* esquina diagonal característica */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
.problem :focus-visible, .services :focus-visible, .approach :focus-visible, .projects :focus-visible { outline-color: var(--blue); }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--white); color: var(--navy); font-weight: 600;
  transform: translateY(-150%); transition: transform var(--t-fast) var(--snap);
}
.skip-link:focus { transform: none; }

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--lg { width: 30px; height: 30px; }

/* ---------- Eyebrow + marcas "snap" (derivadas de las líneas de movimiento) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--sky); }
.eyebrow:has(.snap-marks)::before { display: none; }
.snap-marks { position: relative; width: 18px; height: 18px; flex: none; }
.snap-marks i { position: absolute; left: 50%; bottom: 0; width: 2px; height: 7px; background: currentColor; border-radius: 1px; transform-origin: 50% 160%; }
.snap-marks i:nth-child(1) { transform: rotate(-50deg); }
.snap-marks i:nth-child(2) { transform: rotate(0); height: 9px; }
.snap-marks i:nth-child(3) { transform: rotate(50deg); }

/* ---------- Botones: esquina diagonal "snap" (en ::before para no recortar el foco) ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: var(--white);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  color: var(--btn-fg); background: none; border: 0; cursor: pointer;
  transition: color var(--t-fast) var(--snap), transform var(--t-fast) var(--snap);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-bg);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background var(--t-fast) var(--snap), box-shadow var(--t-fast);
}
.btn .ico { transition: transform var(--t-fast) var(--snap); }
.btn:hover .ico, .btn:focus-visible .ico { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--primary:hover::before { background: #1D4FD8; }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--white); }
.btn--ghost-dark::before { box-shadow: inset 0 0 0 1.5px rgba(224, 236, 255, .45); }
.btn--ghost-dark:hover::before { background: rgba(96, 165, 250, .14); box-shadow: inset 0 0 0 1.5px var(--sky); }
.btn--ghost-dark:hover .ico { transform: translateY(3px); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); }
.btn--light:hover::before { background: var(--ice); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- Pills / esqueletos de UI ---------- */
.pill { display: inline-block; padding: 2px 9px; font-size: .68rem; font-weight: 600; letter-spacing: .02em; border-radius: 2px; background: var(--ice); color: var(--navy); white-space: nowrap; }
.pill--blue { background: var(--blue); color: var(--white); }
.pill--sky { background: rgba(96, 165, 250, .2); color: var(--sky); }
.pill--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-light); color: var(--ink-soft); }
.skel { display: block; height: 7px; width: var(--w, 60%); border-radius: 4px; background: #D5E3F8; }

/* =========================================================
   CABECERA
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background var(--t-mid) var(--snap), box-shadow var(--t-mid);
}
.site-header.is-solid { background: var(--navy); box-shadow: 0 1px 0 var(--line-dark); backdrop-filter: blur(10px); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: block; flex: none; background: var(--navy); isolation: isolate; }
/* Logo original con fondo azul marino: se funde con el fondo (lighten) y se suavizan
   solo los bordes vacíos del archivo; geometría y proporciones intactas. */
.brand__logo {
  display: block; height: 62px; width: auto;
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 11%, #000 87%, transparent 100%), linear-gradient(to left, transparent 0, #000 3.5%), radial-gradient(55% 34% at 100% 0, transparent 30%, #000 100%);
  -webkit-mask-composite: source-in, source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 11%, #000 87%, transparent 100%), linear-gradient(to left, transparent 0, #000 3.5%), radial-gradient(55% 34% at 100% 0, transparent 30%, #000 100%);
  mask-composite: intersect, intersect;
}
.brand__logo--footer { height: auto; width: min(300px, 80vw); }

.nav__menu { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.nav__menu a { white-space: nowrap; }
.nav__menu a:not(.btn) {
  position: relative; display: inline-block; padding: 6px 0;
  color: var(--ice); text-decoration: none; font-size: .9rem; font-weight: 600;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sky);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--snap);
}
.nav__menu a:not(.btn):hover::after, .nav__menu a[aria-current="true"]::after { transform: scaleX(1); }
.nav__toggle { display: none; }
.nav__login .btn { gap: 8px; }
.nav__login .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.nav__login .btn[aria-disabled="true"]:hover::before { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(224, 236, 255, .45); }
.nav__login .btn[aria-disabled="true"]:hover .ico { transform: none; }

@media (max-width: 1080px) {
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
    background: none; border: 1.5px solid rgba(224, 236, 255, .35); color: var(--white); font-weight: 600; font-size: .85rem; cursor: pointer;
  }
  .nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; transition: transform var(--t-fast) var(--snap), opacity var(--t-fast);
  }
  .nav__toggle-bars { position: relative; }
  .nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav__toggle-bars::before { top: -6px; }
  .nav__toggle-bars::after { top: 6px; width: 12px; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); width: 18px; }

  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; background: var(--navy); box-shadow: 0 24px 40px rgba(0, 10, 30, .45);
    border-top: 1px solid var(--line-dark);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--t-fast) var(--snap), transform var(--t-fast) var(--snap), visibility 0s linear var(--t-fast);
  }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__menu li { border-bottom: 1px solid var(--line-dark); }
  .nav__menu a:not(.btn) { display: block; padding: 16px 0; font-size: 1.05rem; }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__menu .nav__login { border: 0; padding-top: 20px; }
  .nav__menu .nav__login .btn { width: 100%; min-height: 52px; }
  .nav__menu .nav__cta { border: 0; padding-top: 12px; }
  .nav__menu .nav__cta .btn { width: 100%; min-height: 52px; }
  .brand__logo { height: 52px; }
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 980px);
  padding: calc(var(--header-h) + clamp(40px, 8vh, 96px)) 0 clamp(80px, 9vw, 130px);
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 85% 15%, rgba(37, 99, 235, .28), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 0 100%);
}
.hero__ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 5vw, 72px); }

.hero__title { margin-top: 26px; font-size: clamp(2.35rem, 5.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.03em; }
.hero__title-accent { display: block; margin-top: .12em; color: var(--sky); }
.hero__lead { margin-top: 28px; max-width: 34rem; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--on-dark-soft); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__strip {
  margin-top: clamp(56px, 8vw, 96px);
  display: flex; flex-wrap: wrap; gap: 10px 36px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft);
}
.hero__strip span { display: inline-flex; align-items: center; gap: 12px; }
.hero__strip span + span::before { content: ""; width: 14px; height: 2px; background: var(--blue); transform: skewX(-30deg) rotate(-30deg); }

/* Composición: proceso conectado */
.flow { position: relative; margin: 0; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; justify-self: end; }
.flow__wire { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow__pulse { stroke-dasharray: 60 540; stroke-dashoffset: 600; animation: pulse 3.6s var(--snap) infinite; opacity: .9; }
@keyframes pulse { to { stroke-dashoffset: 0; } }

.panel {
  position: absolute; padding: 14px 16px 16px;
  background: var(--white); color: var(--navy);
  box-shadow: 0 30px 60px -20px rgba(0, 8, 24, .65), 0 0 0 1px rgba(96, 165, 250, .25);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: .78rem; font-weight: 700; }
.panel--orders { left: 0; top: 2%; width: 54%; background: var(--navy-90); color: var(--white); box-shadow: 0 30px 60px -20px rgba(0, 8, 24, .8), 0 0 0 1px var(--line-dark); }
.panel--orders .skel { background: rgba(224, 236, 255, .18); }
.panel--orders .pill { background: rgba(224, 236, 255, .12); color: var(--ice); }
.panel--orders .pill--blue { background: var(--blue); color: var(--white); }
.panel--orders .pill--line { background: transparent; box-shadow: inset 0 0 0 1px rgba(224, 236, 255, .3); color: var(--on-dark-soft); }
.panel__rows li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(224, 236, 255, .1); }
.dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--on-dark-soft); }
.dot--ok { background: var(--sky); box-shadow: none; }
.dot--run { background: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .3); }

.panel--stock { right: 0; top: 42%; width: 48%; }
.panel__sync { font-size: .64rem; font-weight: 600; color: var(--blue); letter-spacing: .04em; }
.panel__sync::before { content: "● "; }
.bars li { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; margin-top: 9px; font-size: .68rem; color: var(--ink-soft); }
.bars b { height: 8px; background: linear-gradient(90deg, var(--blue) calc(var(--v) * 100%), var(--ice) 0); }

.panel--report { left: 12%; bottom: 2%; width: 54%; }
.spark { width: 100%; height: 56px; }

.flow__caption {
  position: absolute; right: 0; bottom: -28px;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(169, 195, 234, .7);
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .flow { justify-self: center; max-width: 440px; margin-top: 12px; }
}
@media (max-width: 480px) {
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .flow { aspect-ratio: 1 / 1.22; }
  .flow__wire { display: none; }
  .panel { padding: 10px 12px 12px; }
  .panel--orders { width: 82%; top: 0; }
  .panel--stock { width: 66%; top: 39%; }
  .panel--report { width: 62%; left: 0; bottom: 4%; }
  .bars li { grid-template-columns: 58px 1fr; font-size: .62rem; white-space: nowrap; }
}

/* =========================================================
   Encabezados de sección (composición asimétrica)
   ========================================================= */
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.section-head__aside { color: var(--ink-soft); padding-bottom: 6px; border-left: 2px solid var(--blue); padding-left: 20px; }
.section-head--dark h2 { color: var(--white); max-width: 18ch; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; row-gap: 20px; }
}

/* =========================================================
   2. EL PROBLEMA — editorial claro
   ========================================================= */
.problem { padding: var(--section) 0; background: var(--white); margin-top: -6vw; padding-top: calc(var(--section) + 6vw); }
.problem__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.problem__head { position: sticky; top: calc(var(--header-h) + 32px); }
.problem__title { margin-top: 22px; font-size: clamp(1.9rem, 3.6vw, 3.05rem); line-height: 1.12; }
.problem__title em { font-style: normal; color: var(--blue); }

.scatter { position: relative; margin-top: 48px; aspect-ratio: 400 / 260; max-width: 460px; }
.scatter svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scatter svg > path { fill: none; stroke: var(--line-light); stroke-width: 2; stroke-dasharray: 6 8; }
.scatter__breaks path { fill: none; stroke: var(--blue); stroke-width: 2.25; stroke-linecap: round; }
.chip {
  position: absolute; left: var(--x); top: var(--y);
  padding: 6px 12px; font-size: .74rem; font-weight: 600; color: var(--ink-soft);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-light); white-space: nowrap;
}

.pains { counter-reset: p; border-top: 1px solid var(--line-light); }
.pain { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line-light); transition: background var(--t-fast); }
.pain__n { font-size: .82rem; font-weight: 700; color: var(--blue); letter-spacing: .08em; padding-top: 5px; position: relative; }
.pain__n::after { content: ""; position: absolute; left: 0; top: 30px; width: 22px; height: 2px; background: var(--blue); transform: scaleX(.4); transform-origin: left; transition: transform var(--t-mid) var(--snap); }
.pain:hover .pain__n::after { transform: scaleX(1); }
.pain h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.pain p { margin-top: 6px; color: var(--ink-soft); }

@media (max-width: 880px) {
  .problem__grid { grid-template-columns: 1fr; }
  .problem__head { position: static; }
  .scatter { margin-top: 36px; }
}
@media (max-width: 480px) {
  .problem { margin-top: -28px; padding-top: calc(var(--section) + 28px); }
  .pain { grid-template-columns: 44px 1fr; gap: 12px; }
  .chip { font-size: .66rem; padding: 5px 8px; }
}

/* =========================================================
   3. SERVICIOS — dos líneas, mismo peso, distinto carácter
   ========================================================= */
.services { padding: var(--section) 0; background: linear-gradient(180deg, var(--paper), var(--ice)); position: relative; }
.services::before { /* diagonal que conecta con el lenguaje del manual */
  content: ""; position: absolute; right: 0; top: 0; width: 40%; height: 6px; background: linear-gradient(90deg, transparent, var(--blue));
}
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.5vw, 32px); }
.line { display: flex; flex-direction: column; min-width: 0; }
.line__visual { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 44px; overflow: hidden; }
.line__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3.5vw, 44px); }
.line__idx { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.line h3 { margin-top: 10px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.line__body > p:not(.line__idx) { margin-top: 14px; max-width: 32rem; }
.ticks { margin: 26px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; width: 100%; font-size: .92rem; font-weight: 600; }
.ticks li { position: relative; padding-left: 20px; line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 2px; background: currentColor; opacity: .55; transform: skewY(-35deg); }
.line .btn { margin-top: auto; }
.line__tag { position: absolute; left: 16px; bottom: 12px; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* A — Software: claro, preciso */
.line--software { background: var(--white); box-shadow: 0 0 0 1px var(--line-light); }
.line--software .line__visual { background: var(--ice); border-bottom: 1px solid var(--line-light); }
.line--software .line__idx, .line--software .ticks li::before { color: var(--blue); }
.line--software .line__body > p:not(.line__idx) { color: var(--ink-soft); }
.line--software .line__tag { color: var(--ink-soft); }

.app {
  width: 100%; max-width: 440px; display: grid; grid-template-columns: 40px 1fr; background: var(--white);
  box-shadow: 0 24px 50px -24px rgba(0, 27, 61, .35), 0 0 0 1px var(--line-light);
  transform: rotate(-2deg); transition: transform var(--t-mid) var(--snap);
}
.line--software:hover .app { transform: rotate(0); }
.app__rail { background: var(--navy); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.app__rail i { width: 14px; height: 14px; border: 1.5px solid rgba(224, 236, 255, .4); }
.app__rail i.on { background: var(--blue); border-color: var(--blue); }
.app__main { padding: 14px; min-width: 0; }
.app__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8rem; }
.app__kpis { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app__kpis div { padding: 8px 10px; box-shadow: inset 0 0 0 1px var(--line-light); }
.app__kpis small { display: block; font-size: .62rem; color: var(--ink-soft); font-weight: 600; }
.app__kpis strong { font-size: 1.2rem; line-height: 1.2; }
.app__kpis .is-accent { background: var(--navy); color: var(--white); box-shadow: none; }
.app__kpis .is-accent small { color: var(--on-dark-soft); }
.app__table { margin-top: 12px; }
.app__row { display: grid; grid-template-columns: 1fr 74px 28px; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #E6EEFA; font-size: .64rem; }
.app__row--head { color: var(--ink-soft); font-weight: 600; border-top: 0; padding-top: 0; }
.ava { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ice); color: var(--blue); font-style: normal; font-weight: 700; font-size: .55rem; }

/* B — Hardware: oscuro, conectado */
.line--hardware { background: var(--navy); color: var(--white); }
.line--hardware .line__visual { background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, .3), transparent 65%), var(--navy-deep); border-bottom: 1px solid var(--line-dark); }
.line--hardware .line__idx { color: var(--sky); }
.line--hardware .line__body > p:not(.line__idx) { color: var(--on-dark-soft); }
.line--hardware .ticks li::before { color: var(--sky); opacity: 1; }
.devices { width: 100%; max-width: 420px; }
.devices .dev { fill: none; stroke: var(--ice); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.devices__links path { stroke-dasharray: 4 6; animation: flowdash 1.8s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -20; } }
.devices__legend { position: absolute; left: 16px; right: 16px; bottom: 12px; display: flex; justify-content: space-between; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); }

@media (max-width: 960px) {
  .lines { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ticks { grid-template-columns: 1fr; }
  .line__visual { aspect-ratio: auto; min-height: 260px; }
  .line .btn { width: 100%; }
  .app__row { grid-template-columns: 1fr 64px 24px; }
}

/* =========================================================
   4. PROCESO — recorrido continuo
   ========================================================= */
.process {
  position: relative; padding: var(--section) 0; color: var(--white); overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
}
.process::after { /* banda diagonal del patrón gráfico */
  content: ""; position: absolute; right: -10%; top: -30%; width: 55%; height: 160%;
  background: linear-gradient(115deg, transparent 40%, rgba(37, 99, 235, .16) 40%, rgba(37, 99, 235, .16) 58%, transparent 58%);
  pointer-events: none;
}
.route { position: relative; z-index: 1; }
.route__line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 160px; overflow: visible; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.step { position: relative; padding-top: 196px; }
/* puntos sobre la curva: x = 10/30/50/70/90 %, y alterna 40/120 de 160 */
.step__dot {
  position: absolute; left: 50%; top: calc(var(--y, 40) * 1px); width: 18px; height: 18px; margin: -9px 0 0 -9px;
  background: var(--navy); border: 3px solid var(--sky); transform: rotate(45deg);
  transition: background var(--t-fast) var(--snap), transform var(--t-fast) var(--snap);
}
.step:nth-child(odd) .step__dot { --y: 40; }
.step:nth-child(even) .step__dot { --y: 120; }
.step:hover .step__dot { background: var(--blue); transform: rotate(45deg) scale(1.2); }
.step__n { position: absolute; left: 50%; top: calc(var(--y2) * 1px); transform: translateX(-50%); font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: var(--sky); }
.step:nth-child(odd) .step__n { --y2: 66; }
.step:nth-child(even) .step__n { --y2: 80; }
.step h3 { font-size: 1.12rem; font-weight: 700; }
.step p { margin-top: 10px; font-size: .92rem; color: var(--on-dark-soft); }

@media (max-width: 960px) {
  .route__line { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .steps::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--sky), var(--blue)); }
  .step { padding: 0 0 36px 48px; }
  .step:last-child { padding-bottom: 0; }
  .step__dot { left: 0; top: 6px; margin: 0; width: 18px; height: 18px; }
  .step__n { position: static; transform: none; display: block; margin-bottom: 4px; }
}

/* =========================================================
   5. DIFERENCIAL — Snap! + Táctica
   ========================================================= */
.approach { padding: var(--section) 0; background: var(--white); position: relative; overflow: hidden; }
.approach__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.equation { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .3em; font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 700; line-height: .95; letter-spacing: -.04em; }
.equation__a { color: var(--blue); }
.equation__op { color: var(--sky); font-weight: 400; }
.equation__b { color: var(--navy); }
.equation__gloss { margin-top: 18px; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.approach h2 { margin-top: clamp(36px, 5vw, 56px); padding-top: 28px; border-top: 2px solid var(--navy); font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 22ch; }
.approach h2 span { color: var(--blue); }

.principles { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.principle { padding: 32px 28px 34px; position: relative; }
.principle:nth-child(odd) { border-right: 1px solid var(--line-light); }
.principle:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
.principle dt { display: flex; flex-direction: column; gap: 18px; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.principle dt .ico { color: var(--blue); }
.principle dd { margin: 10px 0 0; color: var(--ink-soft); }
.principle::before { content: ""; position: absolute; left: 28px; top: 0; width: 0; height: 3px; background: var(--blue); transition: width var(--t-mid) var(--snap); }
.principle:hover::before { width: 40px; }

@media (max-width: 960px) { .approach__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .principle { padding: 26px 0; border-right: 0 !important; border-bottom: 1px solid var(--line-light); }
  .principle:last-child { border-bottom: 0; }
  .principle::before { left: 0; }
  .principle dt { flex-direction: row; align-items: center; gap: 14px; }
}

/* =========================================================
   6. PROYECTOS — fichas ampliables
   ========================================================= */
.projects { padding: var(--section) 0; background: var(--paper); border-top: 1px solid var(--line-light); }
.notice strong { color: var(--navy); }
.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.case { grid-column: span 4; display: flex; flex-direction: column; background: var(--white); box-shadow: 0 0 0 1px var(--line-light); transition: box-shadow var(--t-fast), transform var(--t-fast) var(--snap); }
.case:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.case:nth-child(2), .case:nth-child(3) { grid-column: span 6; }
.case:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--sky), 0 20px 40px -24px rgba(0, 27, 61, .35); }
.case__visual { position: relative; height: 150px; background: var(--navy); overflow: hidden; }
.case:first-child .case__visual { height: auto; min-height: 280px; }
.case:first-child .case__body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.case__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.case__badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 4px 10px; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--ice); color: var(--navy); }
.case__badge--real { background: var(--blue); color: var(--white); }
.case__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.case h3 { font-size: 1.25rem; }
.case:first-child h3 { font-size: 1.55rem; }
.case dl { margin: 0; display: grid; gap: 12px; }
.case dt { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.case dd { margin: 2px 0 0; font-size: .92rem; color: var(--ink-soft); }
.case__tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.case__tech li { padding: 3px 10px; font-size: .72rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-light); color: var(--navy); }
.case__result--empty { font-style: italic; }

@media (max-width: 880px) {
  .case, .case:first-child, .case:nth-child(2), .case:nth-child(3) { grid-column: 1 / -1; grid-row: auto; }
  .case:first-child { display: flex; }
  .case:first-child .case__visual { min-height: 190px; }
}

/* =========================================================
   7. CTA FINAL
   ========================================================= */
.closing { position: relative; overflow: hidden; isolation: isolate; padding: var(--section) 0; background: var(--navy); color: var(--white); }
.closing__ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.closing__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.closing h2 { margin-top: 22px; font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.06; letter-spacing: -.03em; }
.closing h2 span { display: block; color: var(--sky); }
.closing__lead { margin-top: 24px; max-width: 32rem; font-size: 1.08rem; color: var(--on-dark-soft); }
.contact-list { margin-top: 36px; display: grid; gap: 12px; }
.contact-list a { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--sky); }
.contact-list .ico { color: var(--sky); width: 20px; height: 20px; }

.form { position: relative; padding: clamp(24px, 3vw, 36px); background: var(--white); color: var(--navy); display: grid; gap: 18px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: .82rem; font-weight: 600; }
.field label span[aria-hidden] { color: var(--blue); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 0; border-radius: 0; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-light); font-size: 1rem; color: var(--navy);
  transition: box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1.5px var(--sky); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); background: var(--white); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #C0262D; }
.field__error { font-size: .8rem; font-weight: 600; color: #B4232A; }
.field--choices { border: 0; margin: 0; padding: 0; }
.field--choices legend { margin-bottom: 8px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: inline-block; padding: 9px 14px; font-size: .84rem; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line-light); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.choices input:hover + span { box-shadow: inset 0 0 0 1.5px var(--sky); }
.choices input:checked + span { background: var(--navy); color: var(--white); box-shadow: none; }
.choices input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .8rem; color: var(--ink-soft); }
.form__status { font-size: .88rem; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #136A3A; }
.form__status.is-warn { color: #8A4B00; }
.form__status.is-error { color: #B4232A; }

@media (max-width: 960px) { .closing__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } }

/* =========================================================
   8. FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: var(--on-dark-soft); border-top: 1px solid var(--line-dark); font-size: .92rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.site-footer__slogan { margin-top: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.site-footer__h { margin-bottom: 14px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; transition: color var(--t-fast); }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.social { margin-top: 18px; display: flex !important; gap: 10px; }
.social[hidden] { display: none !important; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; box-shadow: inset 0 0 0 1px var(--line-dark); }
.social a:hover { box-shadow: inset 0 0 0 1px var(--sky); color: var(--sky); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: .78rem; letter-spacing: .06em; }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* =========================================================
   MODO OSCURO
   Las secciones claras pasan a tonos de azul marino de la paleta,
   manteniendo la alternancia narrativa (navy profundo ↔ navy elevado).
   Las interfaces ilustradas (hero y software) se conservan claras:
   representan pantallas.
   ========================================================= */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --d-1: #05193A;            /* sección "clara" en oscuro */
    --d-2: #082048;            /* sección alternativa */
    --d-card: #0C2A57;         /* tarjetas y formulario */
    --d-field: #071E42;        /* campos */
    --d-line: rgba(96, 165, 250, .24);
    --d-text: #EEF4FF;
    --d-soft: #A9C3EA;
  }
  body { background: var(--navy-deep); color: var(--d-text); }
  .problem :focus-visible, .services :focus-visible, .approach :focus-visible, .projects :focus-visible { outline-color: var(--sky); }

  .eyebrow { color: var(--sky); }
  .section-head__aside { color: var(--d-soft); }

  /* 2. Problema */
  .problem { background: var(--d-1); }
  .problem__title em { color: var(--sky); }
  .scatter svg > path { stroke: rgba(96, 165, 250, .35); }
  .scatter__breaks path { stroke: var(--sky); }
  .chip { background: var(--d-card); color: var(--d-soft); box-shadow: inset 0 0 0 1px var(--d-line); }
  .pains, .pain { border-color: var(--d-line); }
  .pain__n { color: var(--sky); }
  .pain__n::after { background: var(--sky); }
  .pain p { color: var(--d-soft); }

  /* 3. Servicios */
  .services { background: linear-gradient(180deg, var(--d-2), var(--d-1)); }
  .line--software { background: var(--d-card); box-shadow: 0 0 0 1px var(--d-line); }
  .line--software .line__visual { background: #11336A; border-bottom-color: var(--d-line); }
  .line--software .line__idx, .line--software .ticks li::before { color: var(--sky); }
  .line--software .line__body > p:not(.line__idx), .line--software .line__tag { color: var(--d-soft); }
  .line--hardware { box-shadow: 0 0 0 1px var(--d-line); }
  .app { color: var(--navy); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }

  /* 5. Diferencial */
  .approach { background: var(--d-1); }
  .equation__a { color: var(--sky); }
  .equation__op { color: var(--blue); }
  .equation__b { color: var(--white); }
  .equation__gloss { color: var(--d-soft); }
  .approach h2 { border-top-color: var(--sky); }
  .approach h2 span { color: var(--sky); }
  .principle:nth-child(odd), .principle:nth-child(-n+2), .principle { border-color: var(--d-line); }
  .principle dt .ico { color: var(--sky); }
  .principle dd { color: var(--d-soft); }

  /* 6. Proyectos */
  .projects { background: var(--d-2); border-top-color: var(--d-line); }
  .notice strong { color: var(--white); }
  .case { background: var(--d-card); box-shadow: 0 0 0 1px var(--d-line); }
  .case:hover { box-shadow: 0 0 0 1px var(--sky), 0 20px 40px -24px rgba(0, 0, 0, .6); }
  .case dt { color: var(--sky); }
  .case dd { color: var(--d-soft); }
  .case__tech li { color: var(--d-text); box-shadow: inset 0 0 0 1px var(--d-line); }

  /* 7. Formulario */
  .form { background: var(--d-card); color: var(--d-text); box-shadow: 0 0 0 1px var(--d-line); }
  .field label span[aria-hidden] { color: var(--sky); }
  .field input, .field textarea { background: var(--d-field); color: var(--d-text); box-shadow: inset 0 0 0 1.5px var(--d-line); }
  .field input:focus, .field textarea:focus { background: var(--d-field); box-shadow: inset 0 0 0 2px var(--sky); }
  .field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #FF8A8A; }
  .field__error, .form__status.is-error { color: #FF9B9B; }
  .form__status.is-ok { color: #7EE2A8; }
  .form__status.is-warn { color: #FFC266; }
  .choices span { box-shadow: inset 0 0 0 1.5px var(--d-line); }
  .choices input:checked + span { background: var(--blue); color: var(--white); }
  .choices input:focus-visible + span { outline-color: var(--sky); }
  .form__note { color: var(--d-soft); }
}

/* =========================================================
   Entradas "snap" (solo si JS está activo y se permite movimiento)
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--t-mid) var(--snap), transform var(--t-mid) var(--snap); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .route__line path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--snap); }
.js .route.is-in .route__line path { stroke-dashoffset: 0; }
.js .step { opacity: 0; transform: translateY(14px); transition: opacity var(--t-mid) var(--snap), transform var(--t-mid) var(--snap); transition-delay: calc(var(--i) * 110ms + 200ms); }
.js .route.is-in .step { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .step { opacity: 1; transform: none; }
  .js .route__line path { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .hero__ribbons, .closing__ribbons, .form { display: none; }
  .hero, .process, .closing, .site-footer { color: #000; background: #fff; clip-path: none; }
}

.site-footer__brand picture { display: block; width: fit-content; background: var(--navy); isolation: isolate; }
