:root {
  --wall: #dfe5df;
  --wall-2: #d0d8d1;
  --paper: #f6f8f3;
  --ink: #18282a;
  --ink-2: #435657;
  --plate: #1d3436;
  --plate-2: #27474a;
  --plate-ink: #f1ead9;
  --plate-ink-2: #bccac3;
  --steel: #93a29f;
  --steel-hi: #dfe6e2;
  --orange: #f4623a;
  --orange-ink: #a8391a;
  --brass: #b8913f;
  --ok: #2f6b4f;
  --rule: #b9c4bc;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--orange); }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--steel) var(--wall-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--orange); color: var(--ink);
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 16px -8px rgba(168,57,26,.7);
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { background: #ff7650; }
.btn:active { transform: scale(.97); }
.btn-s { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-ghost { background: transparent; color: var(--plate-ink); box-shadow: inset 0 0 0 1.5px var(--plate-ink-2); }
.btn-ghost:hover { background: var(--plate-2); }

/* Barra superior: mapa de estaciones */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gut);
  background: color-mix(in srgb, var(--wall) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand img { width: 132px; height: auto; }
.map { position: relative; display: flex; gap: 22px; margin-left: auto; }
.map::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 6px; margin-top: -3px;
  border-radius: 3px; background: linear-gradient(var(--steel-hi), var(--steel));
}
.map a {
  position: relative; display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px;
  font-weight: 600; font-size: .9375rem; text-decoration: none;
}
.map a span, .map a { white-space: nowrap; }
.map a { background: var(--wall); border-radius: 999px; box-shadow: 0 0 0 4px var(--wall); }
.map i { width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2.5px var(--plate); transition: background-color .25s; }
.map a.on i, .map a:hover i { background: var(--orange); }
@media (max-width: 900px) { .map { display: none; } .bar .btn-s { margin-left: auto; } }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gut) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px;
  align-items: center;
}
.hero-copy { grid-column: 1 / span 6; }
.net { grid-column: 7 / span 6; margin: 0; }
h1 { font-size: clamp(3.25rem, 8.4vw, 6rem); text-transform: uppercase; max-width: 9ch; }
.lede { margin-top: 20px; max-width: 40ch; font-size: 1.1875rem; color: var(--ink-2); }

.send { margin-top: 32px; max-width: 520px; }
.send label { display: block; font-weight: 600; margin-bottom: 8px; }
.send-row {
  display: flex; gap: 6px; padding: 6px;
  background: var(--paper); border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--steel), 0 10px 24px -18px rgba(24,40,42,.6);
}
.send-row:focus-within { box-shadow: inset 0 0 0 2px var(--plate), 0 10px 24px -18px rgba(24,40,42,.6); }
.send input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px;
  font: 400 1rem var(--body); color: var(--ink); caret-color: var(--orange-ink);
}
.send input::placeholder { color: #55625f; }
.send input:focus { outline: none; }
.send-note { margin-top: 10px; font-size: .9375rem; color: var(--ink-2); }
.send-note a { font-weight: 600; }

/* Red de tubos */
.net-pick, .docs { display: flex; flex-wrap: wrap; gap: 8px; }
.net-pick button, .docs button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); font: 600 .9375rem var(--body);
  box-shadow: inset 0 0 0 1.5px var(--steel);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.net-pick button:hover, .docs button:hover { box-shadow: inset 0 0 0 1.5px var(--plate); }
.net-pick button[aria-pressed="true"], .docs button[aria-pressed="true"] { background: var(--plate); color: var(--plate-ink); box-shadow: none; }

.net-board { position: relative; margin-top: 16px; aspect-ratio: 560 / 420; }
.net-board svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tubes path {
  fill: none; stroke: var(--steel); stroke-width: 32; stroke-linecap: round;
  filter: drop-shadow(0 5px 4px rgba(24,40,42,.2));
  transition: stroke .3s;
}
.tubes path.glass { stroke: #c9d4d0; stroke-width: 24; filter: none; }
.tubes path.hi { stroke: #f4f7f5; stroke-width: 5; filter: none; transform: translate(-3px, -6px); opacity: .85; }
.tubes path.live { stroke: var(--brass); }
.capsule rect { fill: var(--orange); }
.capsule .cap-end { fill: var(--brass); }
.capsule { filter: drop-shadow(0 2px 2px rgba(24,40,42,.35)); }
.cap-label { font: 500 11px var(--mono); fill: var(--ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; }

.st {
  position: absolute; transform: translate(-50%, -50%);
  padding: 8px 12px; border-radius: 8px;
  background: var(--plate); color: var(--plate-ink);
  font: 700 clamp(.9375rem, 1.6vw, 1.125rem)/1 var(--display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  box-shadow: inset 0 0 0 2px var(--plate-2), 0 6px 14px -8px rgba(24,40,42,.7);
  transition: background-color .3s, color .3s;
}
.st.on { background: var(--orange); color: var(--ink); box-shadow: 0 6px 14px -8px rgba(168,57,26,.8); }
.st-app { left: 16%; top: 13%; }
.st-tienda { left: 84%; top: 13%; }
.st-wms { left: 84%; top: 87%; }
.st-api { left: 16%; top: 87%; }
.st-erp { left: 50%; top: 50%; padding: 16px 22px; font-size: clamp(1.375rem, 3vw, 2rem); }

.log {
  margin-top: 16px; padding: 16px 18px; border-radius: 12px;
  background: var(--paper); box-shadow: 0 1px 0 var(--rule), 0 12px 28px -20px rgba(24,40,42,.5);
  min-height: 172px;
}
.log-doc { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px dashed var(--rule); }
.log-doc b { font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.log-doc em { margin-left: auto; font: 500 .9375rem var(--mono); font-style: normal; font-variant-numeric: tabular-nums; }
.log ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.log li { display: grid; grid-template-columns: 52px 92px 1fr; gap: 8px; font-size: .9375rem; opacity: .28; transition: opacity .35s; }
.log li.in { opacity: 1; }
.log time { font: 500 .875rem var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.log li b { font-weight: 600; }
.net-note { margin-top: 8px; font-size: .8125rem; color: var(--ink-2); text-align: right; }

/* Línea principal: cada sección es una estación */
.line { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 24px; }
.line::before {
  content: ""; position: absolute; top: 0; bottom: 120px; left: calc(var(--gut) + 22px); width: 14px; border-radius: 7px;
  background: linear-gradient(90deg, var(--steel), var(--steel-hi) 45%, var(--steel));
  box-shadow: 0 4px 6px -3px rgba(24,40,42,.25);
}
.stop {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  padding: clamp(56px, 8vw, 112px) 0;
  border-top: 1px solid var(--rule);
}
.plate {
  grid-column: 1 / span 4; align-self: start; position: sticky; top: 100px;
  padding: 26px 24px 24px; border-radius: 14px;
  background: var(--plate); color: var(--plate-ink);
  box-shadow: inset 0 0 0 3px var(--plate-2), 0 18px 36px -24px rgba(24,40,42,.9);
}
.plate::before {
  content: ""; position: absolute; top: 24px; left: 18px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 4px var(--plate), 0 0 0 6px var(--brass);
}
.plate h2 { padding-left: 34px; font-size: clamp(1.875rem, 3.2vw, 2.75rem); text-transform: uppercase; letter-spacing: .005em; }
.plate p { margin-top: 14px; color: var(--plate-ink-2); }
.plate-go { background: var(--orange); color: var(--ink); box-shadow: 0 18px 36px -24px rgba(168,57,26,.9); }
.plate-go::before { background: var(--plate); box-shadow: 0 0 0 4px var(--orange), 0 0 0 6px var(--ink); }
.plate-go p { color: var(--ink); }
.stop-body { grid-column: 6 / span 7; min-width: 0; }

/* Terreno */
.terreno { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.queue {
  padding: 22px; border-radius: 14px; background: var(--plate); color: var(--plate-ink);
  box-shadow: inset 0 0 0 3px var(--plate-2);
}
.queue-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.queue-head b { font-family: var(--display); font-size: 1.375rem; text-transform: uppercase; letter-spacing: .03em; }
.queue-head span { font: 500 .9375rem var(--mono); color: var(--plate-ink-2); }
.queue.sent .queue-head b { color: #ffb59c; }
.queue-tube {
  position: relative; display: flex; gap: 10px; margin: 18px 0; padding: 10px; overflow: hidden;
  border-radius: 999px; background: linear-gradient(#12221f, #2d4a4c);
  box-shadow: inset 0 3px 6px rgba(0,0,0,.45), inset 0 -1px 0 rgba(255,255,255,.12);
}
.pod {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--orange); color: var(--ink);
  font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(90deg, var(--brass) 0 7px, var(--orange) 7px calc(100% - 7px), var(--brass) calc(100% - 7px));
  transition: transform .7s var(--ease), opacity .5s;
}
.pod b { font: 500 .8125rem var(--mono); }
.queue.sent .pod { transform: translateX(130%); opacity: 0; }
.queue.sent .pod:nth-child(2) { transition-delay: .12s; }
.queue.sent .pod:nth-child(3) { transition-delay: .24s; }

.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.feats li { display: grid; gap: 4px; padding-top: 14px; border-top: 2px solid var(--ink); }
.feats b { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.feats span { color: var(--ink-2); }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.phones img { border-radius: 12px; box-shadow: 0 0 0 1px var(--rule), 0 20px 40px -28px rgba(24,40,42,.8); background: var(--paper); }

/* Documentos */
.slot { position: relative; margin-top: 20px; padding: 14px 14px 0; border-radius: 14px 14px 0 0; background: var(--plate); }
.slot::before { content: ""; display: block; height: 8px; margin: 0 8px 0; border-radius: 4px; background: #0e1a19; }
.sheet {
  margin: -4px 8px 0; padding: 22px 22px 26px; background: var(--paper); color: var(--ink);
  border-radius: 0 0 4px 4px; box-shadow: 0 18px 30px -22px rgba(0,0,0,.6);
  transition: transform .35s var(--ease), opacity .25s;
}
.sheet.swap { transform: translateY(-14px); opacity: 0; }
.sheet-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sheet-top div { display: grid; }
.sheet-top b { font-weight: 600; }
.sheet-top span { font-size: .875rem; color: var(--ink-2); }
.sheet-no { text-align: right; }
.sheet-no b { font-family: var(--display); font-size: 1.75rem; line-height: 1; }
.sheet-no span { font-family: var(--mono); }
.sheet-meta { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 12px; margin: 18px 0; padding: 12px 0; border-block: 1px dashed var(--rule); }
.sheet-meta dt, .sheet-sum dt { font-size: .8125rem; color: var(--ink-2); }
.sheet-meta dd, .sheet-sum dd { margin: 0; font-size: .9375rem; }
.tbl { overflow-x: auto; }
.sheet table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.sheet th { text-align: left; font-weight: 600; font-size: .8125rem; color: var(--ink-2); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--ink); }
.sheet td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); }
.sheet td:first-child, .sheet td:nth-child(n+3), .sheet-sum dd { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .875rem; }
.sheet th:nth-child(n+3), .sheet td:nth-child(n+3) { text-align: right; }
.sheet-sum { display: grid; justify-content: end; gap: 4px; margin: 14px 0 0; }
.sheet-sum div { display: grid; grid-template-columns: 80px 130px; text-align: right; }
.sheet-sum div:last-child dd { font-weight: 600; font-size: 1rem; }

.board { margin-top: 40px; }
.board h3 { font-size: 1.75rem; text-transform: uppercase; }
.board dl { margin: 14px 0 0; border-radius: 12px; overflow: hidden; background: var(--plate); color: var(--plate-ink); }
.board dl div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--plate-2); }
.board dl div:first-child { border-top: 0; }
.board dt { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; color: #ffb59c; }
.board dd { margin: 0; }

/* Método */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 10px; border-radius: 5px;
  background: linear-gradient(var(--steel-hi), var(--steel));
}
.steps li { position: relative; display: grid; gap: 6px; padding-top: 40px; }
.steps li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 4px var(--plate);
}
.steps li:last-child::before { background: var(--orange); }
.steps b { font-family: var(--display); font-size: 1.75rem; text-transform: uppercase; line-height: 1; }
.steps span { color: var(--ink-2); }
.plan { width: 100%; margin-top: 44px; border-collapse: collapse; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.plan caption { text-align: left; padding-bottom: 10px; font-weight: 600; }
.plan th, .plan td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.plan th { font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.plan tr:last-child td { border-bottom: 0; }
.plan td:first-child { font-family: var(--mono); font-size: .9375rem; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; }
.tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.tag.ok { color: var(--ok); }
.tag.ok::before { background: var(--ok); }
.tag.go { color: var(--orange-ink); }
.tag.go::before { background: var(--orange); }

/* Clientes */
.names { list-style: none; margin: 0; padding: 0; columns: 3 200px; column-gap: 32px; }
.names li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 700; font-size: 1.3125rem; text-transform: uppercase; letter-spacing: .015em; line-height: 1.05; }
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; }
.apps div { padding-top: 12px; border-top: 2px solid var(--ink); }
.apps dt { font-weight: 600; }
.apps dd { margin: 2px 0 0; font-size: .9375rem; color: var(--ink-2); }

/* Preguntas */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 12px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 60ch; }

/* Contacto */
.send-big { margin-top: 0; max-width: none; }
.send-big label { font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.5rem); text-transform: uppercase; line-height: 1; margin-bottom: 16px; }
.send-big .send-row { padding: 8px; }
.send-big .btn { min-height: 54px; padding: 0 28px; }
.channels { margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.channels div { padding-top: 12px; border-top: 2px solid var(--ink); }
.channels dt { font-size: .875rem; color: var(--ink-2); }
.channels dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.channels a { display: inline-flex; min-height: 44px; align-items: center; }

.foot {
  max-width: var(--max); margin: 0 auto; padding: 32px var(--gut) 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  border-top: 1px solid var(--rule); font-size: .9375rem; color: var(--ink-2);
}
.foot img { width: 110px; }
.phones .foto { aspect-ratio: 717 / 440; object-fit: cover; }
.credit { flex-basis: 100%; font-size: .8125rem; }
.foot span:last-child { margin-left: auto; }

/* Tablet */
@media (max-width: 1080px) {
  .hero-copy, .net { grid-column: 1 / -1; }
  h1 { max-width: 12ch; }
  .net { max-width: 640px; }
  .plate { grid-column: 1 / span 5; }
  .stop-body { grid-column: 6 / span 7; }
}
@media (max-width: 860px) {
  .line::before { display: none; }
  .stop { display: block; }
  .plate { position: relative; top: 0; margin-bottom: 32px; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Teléfono */
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand img { width: 112px; }
  .feats, .steps, .channels { grid-template-columns: 1fr; }
  .steps::before { left: 12px; right: auto; top: 0; bottom: 0; width: 8px; height: auto; }
  .steps li { padding: 0 0 0 44px; }
  .steps li::before { top: 2px; }
  .phones { grid-template-columns: 1fr; }
  .log li { grid-template-columns: 46px 1fr; }
  .log li span { grid-column: 2; }
  .st { padding: 6px 8px; font-size: .8125rem; }
  .st-erp { padding: 12px 16px; font-size: 1.25rem; }
  .sheet { padding: 18px 14px 20px; }
  .sheet-meta { grid-template-columns: 1fr 1fr; }
  .sheet-meta div:first-child { grid-column: 1 / -1; }
  .sheet th:nth-child(4), .sheet td:nth-child(4) { display: none; }
  .board dl div { grid-template-columns: 1fr; gap: 2px; }
  .queue-tube { flex-direction: column; border-radius: 22px; }
  .pod { min-height: 38px; }
  .queue.sent .pod { transform: translateX(110%); }
  .send-big .send-row, .send-row { border-radius: 16px; }
  .foot span:last-child { margin-left: 0; }
}
@media (max-width: 400px) {
  .send-row { flex-direction: column; border-radius: 16px; }
  .send input { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
