/* ============================================================
   SOLVO AI / css/styles.css
   World: "Las entregas de las 7:00". Light ground, ink type,
   violet only for agents and actions, pastel washes as STATE
   (mint = entregado, apricot = requiere aprobación,
   sky = en curso). Every rule is exactly 1px, one color.
   Mobile-first. Breakpoints: 640 / 900 / 1024.
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* surfaces */
  --bg: #FFFFFF;
  --fog: #F7F7F8;
  --fog-2: #EFEFF1;
  --ink: #17191C;
  --ink-2: #212429;
  --ash: #44474D;
  --muted: #686C77;        /* 5.2:1 on white */
  --dove: #A3A6AF;
  --rule: #E4E4E7;
  --rule-strong: #D4D4D8;

  /* accent: agents + actions only */
  --violet: #7C5CFF;
  --violet-deep: #5B4BD6;  /* 5.6:1 on white, for small violet text */
  --violet-wash: #ECE9FF;
  --violet-soft: #B9A9FF;  /* violet text on ink */

  /* state washes */
  --mint: #D7EDE0;      --mint-ink: #22573A;
  --apricot: #FBE1D1;   --apricot-ink: #8A3B12;
  --sky: #DDE7FB;       --sky-ink: #2C3E9E;

  /* inverse (single ink band) */
  --inv-text: #F4F4F5;
  --inv-muted: #A9ACB4;
  --inv-rule: rgba(255, 255, 255, 0.14);

  /* type */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-accent: "Instrument Serif", Georgia, serif;

  /* shape: buttons/pills are full pill, windows 20px, inner items 12px */
  --r-pill: 999px;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;

  --shadow-window: 0 1px 2px rgba(23, 25, 28, 0.05), 0 18px 32px -20px rgba(23, 25, 28, 0.22);
  --shadow-chip: 0 1px 2px rgba(23, 25, 28, 0.06), 0 6px 14px -8px rgba(23, 25, 28, 0.18);

  --container: 1200px;
  --gutter: 20px;
  --nav-h: 64px;
  --section-y: clamp(80px, 10vw, 136px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
}

/* ------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: var(--rule-strong) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--violet);
  overflow-x: clip;
}

::selection { background: var(--violet-wash); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }
a:not([class]) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------
   3. TYPE
   ------------------------------------------------------------ */
.hero-title, .section-title, .guarantee-title, .final-title {
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Emphasis: one serif italic phrase per heading, ink, never colored. */
h1 em, h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.08em;
  line-height: 1;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.06;
  max-width: 20ch;
}

.section-sub {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 1.0625rem;
  color: var(--ash);
  text-wrap: pretty;
}

.section { padding: var(--section-y) 0; }

/* ------------------------------------------------------------
   4. BUTTONS & SMALL PIECES
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2B2E34; transform: translateY(-1px); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--violet-wash); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--fog); }

.btn-xs { padding: 10px 14px; font-size: 0.8125rem; }
.btn-sm { padding: 9px 16px; font-size: 0.9375rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .2s;
}
.btn-link:hover { text-decoration-color: var(--ink); }
.btn-link i { transition: transform .25s var(--ease-out); }
.btn-link:hover i { transform: translate(2px, 1px); }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.pill-done { background: var(--mint); color: var(--mint-ink); }
.pill-run  { background: var(--sky); color: var(--sky-ink); }
.pill-hold { background: var(--apricot); color: var(--apricot-ink); }
.pill-wait { background: var(--fog-2); color: var(--ash); }

.seal {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 7px;
  border-radius: var(--r-pill);
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.seal i { font-size: 0.95rem; }
.seal-hold { background: var(--apricot); color: var(--apricot-ink); }
.seal-off { background: var(--fog-2); color: var(--ash); }

/* ------------------------------------------------------------
   5. NAVBAR
   ------------------------------------------------------------ */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.navbar.scrolled { border-bottom-color: var(--rule); }

.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand-ai { color: var(--violet-deep); font-weight: 500; }

.nav-menu { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 0 12px;
  background: transparent; border: 1px solid var(--rule); border-radius: var(--r-pill);
  cursor: pointer;
}
.nt-bar { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out); }
body.nav-open .nt-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
body.nav-open .nt-bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1023px) {
  body.nav-open .nav-menu {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    animation: menuIn .3s var(--ease-out);
  }
  body.nav-open .nav-link { padding: 12px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--rule); }
  body.nav-open .nav-cta { margin-top: 16px; padding: 14px; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex; align-items: center; gap: 28px; }
  .nav-link { font-size: 0.9375rem; color: var(--ash); transition: color .2s; }
  .nav-link:hover, .nav-link.active { color: var(--ink); }
  .nav-cta { margin-left: 8px; }
}

/* ------------------------------------------------------------
   6. APP WINDOW (shared by hero, control, audit)
   ------------------------------------------------------------ */
.app {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}
.app-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 46px; padding: 0 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--fog);
}
.app-bar-end { display: inline-flex; align-items: center; gap: 8px; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 28px; padding: 3px 10px 3px 8px;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-pill);
  font-size: 0.75rem; color: var(--ash); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.motion-toggle:hover { border-color: var(--rule-strong); color: var(--ink); }
.motion-toggle i { font-size: 0.85rem; }
.app-title { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; }
.app-title i { color: var(--violet); font-size: 1.05rem; }
.app-mark { width: 18px; height: 18px; }
.app-sample {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  background: #fff;
  white-space: nowrap;
}

.app-query {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 14px 6px;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  min-height: 46px;
}
.app-query > i { color: var(--violet); font-size: 1.1rem; flex: none; }
.app-query-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-caret { width: 2px; height: 18px; background: var(--violet); flex: none; margin-left: -6px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------ */
.hero { padding: calc(var(--nav-h) + 40px) 0 72px; }

.hero-grid { display: grid; gap: 48px; align-items: center; }

.hero-title {
  font-size: clamp(2.5rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  max-width: 17ch;
}
.hero-title em { display: inline; padding-bottom: 0.06em; }
.hero-sub {
  margin-top: 24px;
  max-width: 42ch;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ash);
}
.hero-guarantee {
  margin-top: 28px;
  display: flex; align-items: flex-start; gap: 8px;
  max-width: 44ch;
  font-size: 0.9375rem; color: var(--ash);
}
.hero-guarantee i { font-size: 1.15rem; color: var(--violet-deep); flex: none; margin-top: 1px; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.app-feed-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 16px 8px;
}
.app-feed-title { font-size: 0.8125rem; font-weight: 600; }
.app-feed-count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }

.feed { position: relative; }
.delivery {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 12px;
  align-items: start;
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
}
.delivery .seal { grid-column: 2; justify-self: start; }
.delivery-time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.delivery-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.delivery-body strong { font-size: 0.875rem; font-weight: 500; line-height: 1.35; }
.delivery-meta { font-size: 0.75rem; color: var(--muted); }
.delivery-meta .sep { color: var(--dove); margin: 0 2px; }
.delivery.is-new { animation: land .7s var(--ease-out) both; }
@keyframes land {
  from { opacity: 0; transform: translateY(-10px); background: var(--violet-wash); }
  60% { background: var(--violet-wash); }
  to { opacity: 1; transform: none; background: transparent; }
}

.day { padding: 14px 16px 14px; border-top: 1px solid var(--rule); background: var(--fog); }
.day-track { position: relative; height: 30px; margin: 0 4px; }
.day-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: var(--rule-strong);
}
.day-run {
  position: absolute; top: 15px; left: calc(var(--at) * 100%);
  width: 9px; height: 9px; margin-left: -4px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid var(--violet);
  transition: background-color .3s;
}
.day-run.is-done { background: var(--violet); }
.day-now { /* full-track layer; its left edge is the "ahora" light */
  position: absolute; top: 4px; bottom: 0; left: 0; width: 100%;
  transform: translateX(calc(var(--pos, 0.07) * 100%));
  border-left: 2px solid var(--violet);
  margin-left: -1px;
  pointer-events: none;
}
.day-now::before { /* trail: where the light has passed */
  content: ""; position: absolute; left: -66px; top: 13px; width: 64px; height: 5px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0), rgba(124, 92, 255, 0.28));
  border-radius: 3px;
}
.day-now-label {
  position: absolute; top: -12px; left: 6px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--violet-deep);
  font-variant-numeric: tabular-nums;
}
.day-track { overflow: visible; }
.day-hours { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }

@media (min-width: 640px) {
  .delivery { grid-template-columns: 46px 1fr auto; align-items: center; }
  .delivery .seal { grid-column: auto; }
}

@media (min-width: 1024px) {
  .hero { padding: calc(var(--nav-h) + 56px) 0 88px; min-height: min(100dvh, 920px); display: flex; align-items: center; }
  .hero > .container { width: 100%; }
  .hero-grid { grid-template-columns: 11fr 13fr; gap: 56px; }
}

/* ------------------------------------------------------------
   8. STRIP: marquee + systems
   ------------------------------------------------------------ */
.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 0 32px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 28px;
  padding-right: 28px;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ash);
  white-space: nowrap;
}
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

.systems { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.systems-label { font-size: 0.875rem; color: var(--muted); }
.systems-list { display: flex; flex-wrap: wrap; gap: 8px; }
.systems-list li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
}
.systems-list i { font-size: 1rem; color: var(--ash); }

/* ------------------------------------------------------------
   9. INVISIBLE COST (chaos -> order)
   ------------------------------------------------------------ */
.cost-grid { display: grid; gap: 48px; align-items: center; }
.cost-list { margin-top: 32px; display: grid; gap: 14px; }
.cost-list li { display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.cost-list i { font-size: 1.25rem; color: var(--ash); }

.chaos {
  position: relative;
  height: 460px;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--fog);
  overflow: hidden;
}
.chaos-field { position: absolute; inset: 24px 24px 50% 24px; }
.chip-src {
  position: absolute; left: var(--x); top: var(--y);
  transform: rotate(var(--r));
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-chip);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.chip-src i { font-size: 1rem; color: var(--ash); }

.chaos-agent { position: absolute; left: 0; right: 0; top: 58%; display: flex; justify-content: center; }
.agent-node {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--violet-deep); color: #fff;
  border-radius: var(--r-pill);
  font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 8px 18px -10px rgba(23, 25, 28, 0.45);
}
.chaos-out {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-chip);
  overflow: hidden;
}
.chaos-out-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.chaos-out-head strong { font-size: 0.9375rem; font-weight: 600; }
.chaos-out-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; font-size: 0.8125rem; border-bottom: 1px solid var(--rule); }
.chaos-out-rows li:last-child { border-bottom: 0; }
.chaos-out-rows li span:last-child { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 639px) {
  .chaos { height: 500px; }
  .chaos-field { inset: 16px 16px auto 16px; height: 150px; }
  .chip-src { left: var(--mx, var(--x)); top: var(--my, var(--y)); font-size: 0.75rem; padding: 6px 10px; max-width: 64%; overflow: hidden; text-overflow: ellipsis; }
  .chip-src:nth-child(1) { --mx: 0%;  --my: 0%; }
  .chip-src:nth-child(2) { --mx: 40%; --my: 18%; }
  .chip-src:nth-child(3) { --mx: 2%;  --my: 38%; }
  .chip-src:nth-child(4) { --mx: 44%; --my: 58%; }
  .chip-src:nth-child(5) { --mx: 0%;  --my: 76%; }
  .chip-src:nth-child(6) { display: none; }
  .chaos-agent { top: 186px; }
  .chaos-out { left: 16px; right: 16px; bottom: 16px; }
  .chaos-out-head { grid-template-columns: auto 1fr; }
  .chaos-out-head .seal { grid-column: 2; justify-self: start; }
}

@media (min-width: 1024px) {
  .cost-grid { grid-template-columns: 5fr 7fr; gap: 72px; }
  .chaos { height: 520px; }
}

/* ------------------------------------------------------------
   10. TOOL vs RESULT
   ------------------------------------------------------------ */
.contrast { background: var(--fog); }
.contrast-title { max-width: 22ch; }
.versus { margin-top: 56px; width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule-strong); }
.versus thead { display: none; }
.versus tr { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.versus th, .versus td { padding: 0; text-align: left; font-weight: 400; vertical-align: baseline; }
.versus tbody th { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.versus td:nth-of-type(1) { color: var(--muted); }
.versus td:nth-of-type(2) { font-weight: 500; }
.versus td::before { content: attr(data-label) ": "; font-weight: 600; }
.versus td:nth-of-type(2)::before { color: var(--violet-deep); }

.contrast-note { margin-top: 40px; max-width: 58ch; font-size: 1.25rem; line-height: 1.45; color: var(--ash); }
.contrast-note strong { color: var(--ink); font-weight: 600; }

@media (min-width: 720px) {
  .versus thead { display: table-header-group; }
  .versus tr { display: table-row; padding: 0; }
  .versus th, .versus td { display: table-cell; padding: 20px 24px 20px 0; border-bottom: 1px solid var(--rule); }
  .versus thead th { padding-top: 16px; padding-bottom: 16px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
  .versus thead th:nth-child(3) { color: var(--violet-deep); }
  .versus tbody th { width: 200px; }
  .versus td { font-size: 1.0625rem; }
  .versus td::before { content: none; }
  .versus td:nth-of-type(2) { color: var(--ink); }
}

/* ------------------------------------------------------------
   11. CAPABILITIES (delivery slips)
   ------------------------------------------------------------ */
.slips { margin-top: 56px; border-top: 1px solid var(--rule-strong); }
.slip {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 6px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.slip .delivery-time { padding-top: 4px; }
.slip-main { min-width: 0; }
.slip h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.slip-cap { margin-top: 4px; color: var(--ash); font-size: 0.9375rem; max-width: 62ch; }
.slip-cap strong { color: var(--ink); font-weight: 500; }
.slip-agent { grid-column: 2; font-size: 0.8125rem; color: var(--muted); }
.slip .seal { grid-column: 2; justify-self: start; transform-origin: 30% 50%; transition: opacity .35s var(--ease-out), transform .5s var(--ease-out); }
.js .slip:not(.is-stamped) .seal { opacity: 0; transform: scale(1.25) rotate(-6deg); }

@media (min-width: 900px) {
  .slip { grid-template-columns: 64px 1fr 190px 120px; align-items: center; gap: 24px; padding: 22px 0; }
  .slip-agent, .slip .seal { grid-column: auto; }
  .slip .seal { justify-self: end; }
}

/* ------------------------------------------------------------
   12. INDUSTRIES (tabs)
   ------------------------------------------------------------ */
.tabs {
  margin-top: 40px;
  display: inline-flex; gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
}
.tab {
  padding: 9px 18px;
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 0.9375rem; font-weight: 500;
  color: var(--ash);
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: background-color .25s, color .25s;
}
.tab:hover { color: var(--ink); background: var(--fog); }
.tab:focus-visible { outline-offset: -3px; }
@media (max-width: 539px) {
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 16px; }
  .tab { white-space: normal; line-height: 1.2; padding: 10px 6px; border-radius: 12px; font-size: 0.875rem; }
}
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }

.tab-panel { margin-top: 40px; display: grid; gap: 32px; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering .proc-list li { animation: rise .6s var(--ease-out) both; }
.tab-panel.is-entering .proc-list li:nth-child(2) { animation-delay: .05s; }
.tab-panel.is-entering .proc-list li:nth-child(3) { animation-delay: .1s; }
.tab-panel.is-entering .proc-list li:nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.proc-list { display: grid; gap: 28px; align-content: start; }
.proc-list h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.proc-before, .proc-after { margin-top: 8px; font-size: 0.9375rem; max-width: 46ch; }
.proc-before { color: var(--muted); }
.proc-before::before { content: "Hoy: "; font-weight: 500; }
.proc-after::before { content: "Con Solvo: "; font-weight: 600; color: var(--violet-deep); }

.trace {
  align-self: start;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--fog);
  padding: 20px;
}
.trace-head { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; }
.trace-head i { color: var(--violet); font-size: 1.1rem; }
.trace-head .app-sample { margin-left: auto; }
.trace ol { margin-top: 16px; display: grid; gap: 10px; }
.trace li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; font-size: 0.875rem; }
.trace li span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); padding-top: 2px; }
.trace .trace-ok { padding: 8px 10px; margin: 2px -10px 0; background: var(--mint); color: var(--mint-ink); border-radius: var(--r-sm); font-weight: 500; }
.trace .trace-hold { padding: 8px 10px; margin: 2px -10px 0; background: var(--apricot); color: var(--apricot-ink); border-radius: var(--r-sm); font-weight: 500; }
.trace .trace-ok span, .trace .trace-hold span { color: inherit; }
.tab-panel.is-entering .trace li { animation: rise .45s var(--ease-out) both; }
.tab-panel.is-entering .trace li:nth-child(2) { animation-delay: .35s; }
.tab-panel.is-entering .trace li:nth-child(3) { animation-delay: .7s; }
.tab-panel.is-entering .trace li:nth-child(4) { animation-delay: 1.05s; }
.tab-panel.is-entering .trace li:nth-child(5) { animation-delay: 1.4s; }

@media (min-width: 720px) { .proc-list { grid-template-columns: 1fr 1fr; gap: 32px 40px; } }
@media (min-width: 1024px) { .tab-panel { grid-template-columns: 7fr 5fr; gap: 56px; } }

/* ------------------------------------------------------------
   13. PLATFORM: Solvo Control
   ------------------------------------------------------------ */
.platform { padding: var(--section-y) 0; border-top: 1px solid var(--rule); }
.platform-grid { display: grid; gap: 40px; align-items: center; }

.views-nav { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.view-tab {
  position: relative;
  display: grid; gap: 4px;
  padding: 18px 0;
  text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.view-tab::after { /* progress of this step */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--violet); transform: scaleX(var(--step, 0)); transform-origin: left;
}
.view-tab[aria-selected="true"]::after { --step: 1; }
.view-tab-title { display: inline-flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 600; color: var(--muted); transition: color .3s; }
.view-tab-title i { font-size: 1.2rem; color: var(--dove); transition: color .3s; }
.view-tab-body { padding-left: 30px; font-size: 0.9375rem; color: var(--muted); max-width: 44ch; }
.view-tab[aria-selected="true"] .view-tab-title { color: var(--ink); }
.view-tab[aria-selected="true"] .view-tab-title i { color: var(--violet); }
.view-tab[aria-selected="true"] .view-tab-body { color: var(--ash); }

.js .control-views { display: grid; min-height: 420px; }
.view { padding: 18px; }
.no-js .view + .view { border-top: 1px solid var(--rule); }
.js .view {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
}
.js .view.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* chat */
.view-consultas { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.chat { display: grid; gap: 14px; }
.msg { max-width: 92%; font-size: 0.9375rem; line-height: 1.5; }
.msg-user { justify-self: end; padding: 10px 14px; background: var(--fog-2); border-radius: 14px 14px 4px 14px; }
.msg-agent { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 14px 14px 14px 4px; }
.msg-agent strong { font-weight: 600; }
.msg-sources { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.msg-sources span { padding: 3px 9px; border-radius: var(--r-pill); background: var(--violet-wash); color: var(--violet-deep); font-family: var(--font-mono); font-size: 0.75rem; }
.app-query-static { margin: 0; color: var(--muted); }

/* agents */
.agents { display: grid; }
.agent {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--rule);
}
.agent-name { display: grid; gap: 2px; min-width: 0; }
.agent-name strong { font-size: 0.875rem; font-weight: 600; }
.agent-name span { font-size: 0.8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--violet); transform: scaleX(var(--p-num, 1)); transform-origin: left; transition: transform 1.2s var(--ease-out); }
.log { margin-top: 16px; }
.log-title { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.log-list { margin-top: 8px; display: grid; gap: 6px; font-size: 0.8125rem; }
.log-list li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; }
.log-list li span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); padding-top: 1px; }
.log-list li.is-new { animation: land .7s var(--ease-out) both; }

/* performance */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.kpi-label { font-size: 0.75rem; color: var(--muted); line-height: 1.3; }
.kpi-value { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.chart { margin-top: 18px; }
.chart-title { font-size: 0.8125rem; font-weight: 600; }
.chart-plot {
  position: relative; margin-top: 14px; height: 170px;
  background: repeating-linear-gradient(to top, var(--rule) 0 1px, transparent 1px 42.5px);
}
.chart-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; align-items: end; }
.chart-bar {
  position: relative; height: 100%; display: flex; align-items: flex-end;
  background: none; border: 0; padding: 0; cursor: default;
}
.chart-bar span {
  display: block; width: 100%; height: var(--h);
  background: var(--violet);
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  transition: transform 1s var(--ease-out), opacity .2s;
}
.chart-bar.is-below span { background: var(--violet-soft); }
.js .chart-plot:not(.is-drawn) .chart-bar span { transform: scaleY(0.04); }
.chart-bars:hover .chart-bar span { opacity: .55; }
.chart-bars:hover .chart-bar:hover span { opacity: 1; }
.chart-goal { position: absolute; left: 0; right: 0; bottom: var(--goal); height: 0; border-top: 1px dashed var(--ink); pointer-events: none; }
.chart-goal-label { position: absolute; left: 0; bottom: 4px; padding: 1px 6px; background: #fff; font-size: 0.75rem; font-weight: 500; border-radius: 4px; }
.chart-x { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 6px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); text-align: center; }
.chart-tip {
  position: absolute; z-index: 2; pointer-events: none;
  padding: 6px 10px; background: var(--ink); color: #fff; border-radius: var(--r-sm);
  font-size: 0.75rem; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -6px); transition: opacity .15s;
}
.chart-tip.is-on { opacity: 1; }

@media (min-width: 1024px) {
  .platform { min-height: 100dvh; display: flex; align-items: center; }
  .platform > .container { width: 100%; }
  .platform-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .js .control-views { min-height: 460px; }
  .view { padding: 22px; }
}

/* ------------------------------------------------------------
   14. GOVERNANCE
   ------------------------------------------------------------ */
.rules { background: var(--fog); }
.rules-grid { display: grid; gap: 48px; align-items: center; }
.rules-list { margin-top: 32px; display: grid; gap: 20px; }
.rules-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.rules-list i { font-size: 1.4rem; color: var(--violet-deep); padding-top: 1px; }
.rules-list strong { display: block; font-weight: 600; }
.rules-list span { display: block; margin-top: 2px; color: var(--ash); font-size: 0.9375rem; }

.audit-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; align-items: start;
  padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: 0.875rem;
}
.audit-list li:last-child { border-bottom: 0; }
.audit-list .seal { grid-column: 2; justify-self: start; }
.audit-time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); padding-top: 2px; }
.audit-hold { background: #FFF8F3; }
.audit-actions { grid-column: 2; display: flex; gap: 8px; margin-top: 6px; }
.audit-hold.is-resolved .audit-actions { display: none; }

@media (min-width: 640px) {
  .audit-list li { grid-template-columns: 44px 1fr auto; align-items: center; }
  .audit-list .seal { grid-column: auto; }
}
@media (min-width: 1024px) { .rules-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ------------------------------------------------------------
   15. GUARANTEE (the single ink band)
   ------------------------------------------------------------ */
.guarantee { background: var(--ink); color: var(--inv-text); padding: var(--section-y) 0; }
.guarantee ::selection { background: var(--violet); color: #fff; }
.guarantee :focus-visible { outline-color: var(--violet-soft); }
.guarantee-grid { display: grid; gap: 56px; }

.compare { margin-top: 32px; display: grid; gap: 14px; max-width: 460px; }
.compare-row { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 14px; }
.compare-label { font-size: 0.8125rem; color: var(--inv-muted); }
.compare-bar { display: block; height: 10px; border-radius: 3px; transform-origin: left; transform: scaleX(var(--w)); }
.compare-base { background: rgba(255, 255, 255, 0.28); }
.compare-goal { background: var(--violet); }
.compare-val { font-family: var(--font-mono); font-size: 0.875rem; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.guarantee-title { margin-top: 0; font-size: clamp(2rem, 4vw, 3.125rem); line-height: 1.08; max-width: 18ch; color: #fff; }
.guarantee-sub { margin-top: 20px; max-width: 52ch; color: var(--inv-muted); font-size: 1.0625rem; }
.guarantee .btn { margin-top: 32px; }

.terms { display: grid; gap: 22px; }
.terms li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.terms i { font-size: 1.35rem; color: var(--violet-soft); padding-top: 1px; }
.terms strong { display: block; font-weight: 600; color: #fff; }
.terms span { display: block; margin-top: 2px; color: var(--inv-muted); font-size: 0.9375rem; }

.calc { margin-top: 36px; padding: 24px; border: 1px solid var(--inv-rule); border-radius: var(--r-lg); }
.calc-title { font-weight: 600; color: #fff; }
.calc-field { margin-top: 18px; display: grid; gap: 8px; }
.calc-field label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; color: var(--inv-muted); }
.calc-val { font-family: var(--font-mono); color: #fff; font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; accent-color: var(--violet); height: 24px; background: transparent; cursor: pointer; }
.calc-result { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--inv-rule); display: grid; gap: 2px; }
.calc-num { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 0.8125rem; color: var(--inv-muted); }

@media (min-width: 1024px) { .guarantee-grid { grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; } }

/* ------------------------------------------------------------
   16. PROCESS
   ------------------------------------------------------------ */
.phases { position: relative; margin-top: 64px; display: grid; gap: 40px; }
.phases::before, .phases-line { /* rail */
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px; background: var(--rule-strong);
}
.phases-line { content: none; background: var(--violet); transform-origin: top; transform: scaleY(var(--progress, 1)); z-index: 0; }
.phase { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-content: start; }
.phase-node {
  position: relative; z-index: 1;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--rule-strong); border-radius: 50%;
  font-size: 1.25rem; color: var(--ink);
  transition: background-color .4s, color .4s, border-color .4s;
}
.phase.is-lit .phase-node { background: var(--violet); border-color: var(--violet); color: #fff; }
.phase-body h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; padding-top: 10px; }
.phase-time { margin-top: 4px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--violet-deep); }
.phase-body > p:not([class]) { margin-top: 12px; color: var(--ash); max-width: 40ch; }
.phase-out { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.9375rem; max-width: 40ch; }
.phase-out strong { font-weight: 600; }

@media (min-width: 900px) {
  .phases { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .phases::before, .phases-line { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 1px; }
  .phases-line { transform-origin: left; transform: scaleX(var(--progress, 1)); }
  .phase { grid-template-columns: 1fr; gap: 20px; }
}

/* ------------------------------------------------------------
   17. CASES
   ------------------------------------------------------------ */
.cases { border-top: 1px solid var(--rule); }
.case-rows { margin-top: 56px; display: grid; gap: 48px; }
.case { padding-top: 24px; border-top: 1px solid var(--rule-strong); }
.case h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; max-width: 22ch; text-wrap: balance; }
.case-by { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.9375rem; color: var(--muted); }
.case p:not(.case-by) { margin-top: 16px; color: var(--ash); max-width: 52ch; }
@media (min-width: 900px) { .case-rows { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ------------------------------------------------------------
   18. FAQ
   ------------------------------------------------------------ */
.faq { background: var(--fog); }
.faq-grid { display: grid; gap: 40px; }
.faq-item { border-bottom: 1px solid var(--rule-strong); }
.faq-item:first-child { border-top: 1px solid var(--rule-strong); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-size: 1.0625rem; font-weight: 500;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; font-size: 1.1rem; transition: transform .3s var(--ease-out); }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--violet-deep); }
.faq-body { padding: 0 40px 24px 0; color: var(--ash); max-width: 66ch; }
.faq-item[open] .faq-body { animation: rise .4s var(--ease-out); }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .faq-grid .section-title { position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* ------------------------------------------------------------
   19. FINAL CTA + FOOTER
   ------------------------------------------------------------ */
.final-inner { display: grid; justify-items: start; }
.final-title { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.04; max-width: 18ch; }
.final-sub { margin-top: 20px; max-width: 54ch; font-size: 1.125rem; color: var(--ash); }
.final-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.footer { border-top: 1px solid var(--rule); padding: 56px 0 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-tagline { margin-top: 12px; color: var(--muted); max-width: 32ch; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-head { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.footer-col a { color: var(--ash); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--muted); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ------------------------------------------------------------
   19b. DAY SPINE: scrolling the page = one work day, 06:00 -> 20:00
   ------------------------------------------------------------ */
.spine { display: none; }
@media (min-width: 1360px) {
  .js .spine.is-ready {
    display: block;
    position: fixed; z-index: 40;
    top: 22vh; bottom: 22vh;
    left: max(20px, calc((100vw - var(--container)) / 2 - 64px));
    width: 1px;
    pointer-events: none;
  }
  .spine-track { position: absolute; inset: 0; background: var(--rule-strong); }
  .spine-light {
    position: absolute; left: -1px; top: 0; width: 3px; height: 28px;
    background: var(--violet); border-radius: 2px;
    transform: translateY(calc(var(--p, 0) * (56vh - 28px)));
  }
  .spine-time {
    position: absolute; left: 10px; top: 6px;
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
    color: var(--violet-deep); white-space: nowrap; font-variant-numeric: tabular-nums;
  }
  .spine.on-ink .spine-track { background: rgba(255, 255, 255, 0.2); }
  .spine.on-ink .spine-time { color: var(--violet-soft); }
}

/* ------------------------------------------------------------
   20. REVEAL (fallback when GSAP is absent; GSAP handles its own)
   ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.revealed { opacity: 1; transform: none; }

/* Paused by the visitor (hero "Pausar" toggle) */
.motion-paused .marquee-track { animation-play-state: paused; }
.motion-paused .app-caret { animation: none; }

/* ------------------------------------------------------------
   21. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
  .marquee-track span:nth-child(n+7) { display: none; }
  .marquee { mask-image: none; }
  .app-caret { display: none; }
  .reveal { opacity: 1; transform: none; }
  .js .chart-plot:not(.is-drawn) .chart-bar span { transform: none; }
  .js .slip:not(.is-stamped) .seal { opacity: 1; transform: none; }
  .motion-toggle { display: none; }
}
