/* Tipografías servidas desde el propio sitio (Fontsource, licencia OFL) */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ORFEX GROUP — tokens */
:root {
  --tinta: #0F172A;
  --tinta-2: #1E293B;
  --tinta-3: #162033;
  --senal: #22E27C;
  --senal-hondo: #0A7A41;   /* verde legible sobre fondo claro */
  --pizarra: #475569;
  --pizarra-claro: #94A3B8;
  --niebla: #EEF2F6;
  --linea: #D6DEE8;
  --blanco: #FFFFFF;

  /* Marcas de producto (tomadas de ordensimple.cl y freightgo.cl) */
  --os: #007F53;
  --os-panel: #00704A;
  --os-ink: #006442;
  --os-light: #5BE0A6;
  --os-dot: #F2A649;
  --fg: #0870E8;
  --fg-panel: #0A5BC4;
  --fg-ink: #0757B8;
  --fg-light: #74B0FF;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(80px, 11vw, 144px);
  --header: 72px;

  --r-lg: 28px;   /* paneles grandes (eco del rx del isotipo) */
  --r-md: 14px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  background: var(--niebla);
  color: var(--tinta);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.06; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--senal); color: var(--tinta); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--tinta); color: var(--blanco); padding: 10px 16px; border-radius: var(--r-md);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--senal); outline-offset: 3px; border-radius: 6px; }

/* Evita el parpadeo antes de que GSAP tome el control */
.motion .hero { visibility: hidden; }
.split-line { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }

/* Botones */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-pill); border: 2px solid transparent;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .3s;
  will-change: transform;
}
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.btn-green { background: var(--senal); color: var(--tinta); }
.btn-green:hover { background: #3BEB8E; box-shadow: 0 12px 32px -10px rgba(34, 226, 124, .7); }
.btn-dark { background: var(--tinta); color: var(--blanco); }
.btn-dark:hover { background: var(--tinta-2); box-shadow: 0 12px 32px -12px rgba(15, 23, 42, .6); }
.btn-ghost { border-color: var(--tinta); color: var(--tinta); }
.btn-ghost:hover { background: var(--tinta); color: var(--blanco); }
.btn-os, .btn-fg { gap: 10px; background: var(--blanco); }
.btn-os { color: var(--os-ink); }
.btn-fg { color: var(--fg-ink); }
.btn-os:hover, .btn-fg:hover { box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .45); }
.btn-ext { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.btn:hover .btn-ext, .chip:hover .chip-ext { transform: translate(2px, -2px); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(238, 242, 246, .72);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, transform .45s var(--ease-out), background-color .3s;
}
.site-header.scrolled { border-bottom-color: rgba(214, 222, 232, .8); }
.site-header.hidden { transform: translateY(-100%); }
.site-header.on-dark { background: rgba(15, 23, 42, .72); border-bottom-color: rgba(51, 65, 85, .6); }
.site-header.on-dark .brand text:first-of-type { fill: #FFFFFF; }
.site-header.on-dark .brand rect { fill: #22E27C; }
.site-header.on-dark .brand line { stroke: #0F172A; }
.site-header.on-dark .brand polygon { fill: #0F172A; stroke: #22E27C; }
.site-header.on-dark .brand circle { fill: #0F172A; }
.site-header.on-dark .brand text:last-of-type { fill: #22E27C; }
.site-header.on-dark .site-nav a:not(.btn) { color: #CBD5E1; }
.site-header.on-dark .site-nav a:not(.btn):hover { color: #FFFFFF; }
.site-header.on-dark .btn-dark { background: var(--senal); color: var(--tinta); }
.site-header.on-dark .bars, .site-header.on-dark .bars::before, .site-header.on-dark .bars::after { background: #FFFFFF; }
.brand svg * { transition: fill .3s, stroke .3s; }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress i { display: block; height: 100%; background: var(--senal); transform-origin: left; transform: scaleX(0); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.brand { display: inline-flex; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) { position: relative; text-decoration: none; font-weight: 500; color: var(--pizarra); transition: color .2s; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--senal); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.site-nav a:not(.btn):hover { color: var(--tinta); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header) + 40px) 0 96px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  right: -12vw; top: 50%; translate: 0 -50%;
  background: radial-gradient(closest-side, rgba(34, 226, 124, .28), rgba(34, 226, 124, 0) 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-title { font-size: clamp(2.75rem, 6.6vw, 5.6rem); font-weight: 700; max-width: 11.5ch; }
.lede { margin-top: 28px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--pizarra); max-width: 46ch; }
.lede strong { color: var(--tinta); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-products { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 6px 14px 6px 6px;
  border: 1px solid var(--linea); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7);
  font-weight: 600; font-size: .9375rem; text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.chip:hover { border-color: var(--tinta); background: var(--blanco); }
.chip svg:first-child { width: 30px; height: 30px; border-radius: 9px; }
.chip-ext { width: 12px; height: 12px; color: var(--pizarra); transition: transform .3s var(--ease-out); }

.route { position: relative; margin: 0; width: 100%; max-width: 560px; justify-self: end; }
.route-stage { will-change: transform; }
.route-svg { width: 100%; height: auto; overflow: visible; }
.route-x { transform-box: fill-box; }
.tag {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .3);
  font-size: .875rem;
  will-change: transform;
}
.tag-name { font-family: var(--f-display); font-weight: 700; font-size: 1rem; }
.tag-text { color: var(--pizarra); }
.tag-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; }
.tag-body { display: grid; gap: 1px; }
.tag-os { left: 26%; bottom: 1%; }
.tag-fg { right: 30%; top: 0; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  display: grid; place-items: center; width: 44px; height: 64px;
}
.scroll-cue-track { position: relative; width: 2px; height: 48px; background: var(--linea); overflow: hidden; border-radius: 2px; }
.scroll-cue-track i { position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--tinta); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue-track i { animation: cue 1.8s var(--ease-out) infinite; }
}
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* Manifiesto */
.manifesto {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: var(--sec) 0;
  background: var(--tinta);
  color: var(--blanco);
  overflow: hidden;
}
.manifesto-x {
  position: absolute; right: -12vw; top: 50%;
  width: min(90vw, 980px); height: auto; translate: 0 -50%;
  color: #18233A;
  --iso-arrow: #123A28;
  pointer-events: none;
}
.manifesto-text {
  position: relative;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1.14; letter-spacing: -0.02em;
  max-width: 22ch;
}
.manifesto-text .hl-os { color: var(--os-light); }
.manifesto-text .hl-fg { color: var(--fg-light); }

.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: soft-light;
}

/* Encabezados de sección */
.section-head { max-width: 720px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head h2, .flow-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); font-weight: 700; }
.section-head p, .flow-head p { margin-top: 20px; color: var(--pizarra); font-size: 1.125rem; max-width: 56ch; }

/* Plataformas: paneles apilados */
.platforms { padding: var(--sec) 0; background: var(--blanco); }
.stack { position: relative; }
.product {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  min-height: min(700px, calc(100svh - var(--header) - 48px));
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-lg);
  color: var(--blanco);
  transform-origin: 50% 0;
  will-change: transform;
  overflow: hidden;
  scroll-margin-top: calc(var(--header) + 24px);
}
.product::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.14), transparent 60%);
}
.product > * { position: relative; }
.product + .product { margin-top: 24px; }
@media (min-width: 961px) and (min-height: 760px) {
  .product { position: sticky; top: calc(var(--header) + 24px); }
  .product + .product { margin-top: 12vh; }
}
.product-os { background: var(--os-panel); }
.product-fg { background: var(--fg-panel); box-shadow: 0 -30px 80px -40px rgba(15, 23, 42, .5); }
.product-shade { position: absolute !important; inset: 0; border-radius: inherit; background: var(--tinta); opacity: 0; pointer-events: none; z-index: 5; }

.product-name { display: flex; align-items: center; gap: 16px; font-size: clamp(2.1rem, 3.8vw, 3rem); font-weight: 700; }
.product-logo { width: 52px; height: 52px; flex: none; border-radius: 13px; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.product-claim { margin-top: 16px; font-family: var(--f-display); font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 500; line-height: 1.25; max-width: 26ch; }

.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; max-width: 50ch; }
.checks li { position: relative; padding-left: 32px; color: var(--blanco); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blanco) var(--check) center/18px no-repeat;
}
.product-os .checks li::before { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%2300704A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.product-fg .checks li::before { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%230A5BC4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.product-fineprint { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25); font-size: .9375rem; max-width: 50ch; }
.product-actions { margin-top: 28px; }

/* Mockup OrdenSimple: recibo de cierre de caja */
.mock { position: relative; }
.receipt {
  position: relative;
  width: min(100%, 380px);
  padding: 28px 28px 40px;
  background: #FFFDF8; color: #1F2937;
  font-family: var(--f-mono); font-size: .875rem;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 40px 70px -30px rgba(0, 40, 25, .65);
  rotate: 2deg;
  --zig: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
}
.receipt-head { display: grid; gap: 4px; text-align: center; padding-bottom: 16px; border-bottom: 2px dashed #D1D5DB; }
.receipt-head b { font-size: 1rem; letter-spacing: .04em; }
.receipt-head span { color: #6B7280; font-size: .8125rem; }
.receipt-rows { margin: 14px 0 0; display: grid; gap: 8px; }
.receipt-rows div { display: flex; justify-content: space-between; gap: 12px; }
.receipt-rows dt { color: #4B5563; }
.receipt-rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.receipt-rows .r-strong { padding-top: 8px; border-top: 1px dashed #D1D5DB; font-weight: 700; }
.receipt-rows .r-strong dt { color: #1F2937; }
.receipt-rows .r-neg dd { color: #B45309; }
.receipt-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 14px; border-top: 2px solid #1F2937;
  font-weight: 700;
}
.receipt-total b { font-size: 1.5rem; color: var(--os-ink); font-variant-numeric: tabular-nums; }
.stamp {
  position: absolute; right: 18px; bottom: 30px;
  padding: 6px 12px; border: 3px solid var(--os); border-radius: 8px;
  color: var(--os); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
  rotate: -9deg; background: rgba(255,253,248,.9);
}
.receipt-note { margin-top: 12px; font-family: var(--f-body); font-size: .75rem; color: #6B7280; }
.receipt-note.on-dark { margin: 0; padding: 0 20px 14px; text-align: left; color: #64748B; }

/* Mockup FreightGo: comparador */
.mock-fg {
  background: var(--blanco); color: var(--tinta);
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(2, 30, 70, .6);
  overflow: hidden; font-size: .9375rem;
  rotate: -1.5deg;
}
.cmp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--linea); }
.cmp-head b { display: block; font-family: var(--f-display); }
.cmp-head span { color: var(--pizarra); font-size: .8125rem; }
.cmp-head em { font-style: normal; font-size: .8125rem; font-weight: 600; padding: 6px 10px; border-radius: var(--r-pill); background: #E7F0FD; color: var(--fg-ink); white-space: nowrap; }
.cmp-rows { list-style: none; margin: 0; padding: 6px 12px; }
.cmp-rows li {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px;
  padding: 12px 10px; border-radius: 12px;
  font-variant-numeric: tabular-nums;
}
.cmp-rows li + li { border-top: 1px solid var(--niebla); }
.cmp-rows li.best { background: #E7F0FD; }
.cmp-rows li.best + li { border-top-color: transparent; }
.cmp-co { display: grid; font-weight: 600; }
.cmp-co small { font-weight: 400; color: var(--pizarra); font-size: .8125rem; }
.cmp-time { color: var(--pizarra); font-size: .875rem; }
.cmp-rows b { font-family: var(--f-display); }
.cmp-rows li.best b { color: var(--fg-ink); }
.cmp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--linea); font-size: .8125rem; color: var(--pizarra); }
.verified { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--os-ink); }
.verified::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--os) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2L10 5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }

/* Un día: línea de tiempo */
.flow { background: var(--niebla); overflow: hidden; }
.flow-pin { padding: var(--sec) 0; }
.flow-head { margin-bottom: clamp(40px, 6vw, 64px); }
.flow-head h2 { max-width: 16ch; }
.flow-viewport { padding-inline: var(--gutter); }
.flow-track { position: relative; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flow-route { position: absolute; left: 0; top: 0; width: 100%; height: 4px; overflow: visible; display: none; }
.flow-route line { stroke-width: 3; stroke-linecap: round; }
.flow-route-base { stroke: #C3CDD9; stroke-dasharray: 2 10; }
.flow-route-fill { stroke: var(--tinta); stroke-dasharray: 1; stroke-dashoffset: 1; }

.flow-card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 300px;
  padding: 28px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 22px;
}
.flow-card::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent, var(--tinta)); }
.flow-card.is-os { --accent: var(--os); }
.flow-card.is-fg { --accent: var(--fg); }
.flow-card-end { --accent: var(--senal); background: var(--tinta); color: var(--blanco); border-color: var(--tinta); }
.flow-time {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--tinta);
}
.flow-card-end .flow-time { color: var(--senal); }
.flow-card h3 { margin-top: 22px; font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.flow-card p { margin: 10px 0 24px; color: var(--pizarra); max-width: 32ch; }
.flow-card-end p { color: #CBD5E1; }
.flow-tag {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start; margin-top: auto;
  padding: 6px 12px 6px 6px; border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 600;
  background: var(--niebla); color: var(--tinta);
}
.flow-tag svg { width: 20px; height: 20px; border-radius: 6px; }
.flow-card-end .flow-tag { background: var(--tinta-2); color: #E2E8F0; }

/* Versión horizontal (la activa script.js en pantallas grandes) */
.flow.is-horizontal .flow-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header) + 24px) 0 48px; }
.flow.is-horizontal .flow-viewport { padding-inline: 0; }
.flow.is-horizontal .flow-track {
  --start: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  max-width: none; margin: 0;
  width: max-content;
  padding: 44px 12vw 0 var(--start);
}
.flow.is-horizontal .flow-list { display: flex; gap: 28px; }
.flow.is-horizontal .flow-card { width: clamp(320px, 30vw, 420px); min-height: clamp(320px, 44svh, 400px); padding: 32px; }
.flow.is-horizontal .flow-route { display: block; left: var(--start); width: calc(100% - 12vw - var(--start)); top: 6px; }
.flow.is-horizontal .flow-card::after {
  content: ""; position: absolute; left: 32px; top: -45px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--niebla); border: 3px solid var(--accent, var(--tinta));
}

/* Ciudades */
.cities { padding: var(--sec) 0 calc(var(--sec) * .8); background: var(--blanco); overflow: hidden; }
.cities-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--pizarra); font-weight: 500; margin-bottom: 40px; }
.marquee { display: grid; gap: 8px; }
.marquee-row {
  display: flex; align-items: center; gap: .45em;
  width: max-content;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(3rem, 9vw, 8.5rem); line-height: 1.05; letter-spacing: -0.03em;
  white-space: nowrap;
  will-change: transform;
}
.marquee-row svg { width: .56em; height: .56em; flex: none; border-radius: .14em; }
.marquee-row-b span { color: transparent; -webkit-text-stroke: 2px var(--tinta); }

/* Nosotros */
.about { padding: var(--sec) 0; background: var(--tinta); color: var(--blanco); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 96px); }
.about h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
.about-lede { margin-top: 22px; color: #CBD5E1; font-size: 1.125rem; max-width: 46ch; }
.principles { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 40px; }
.principles div { position: relative; padding-top: 22px; }
.principles div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--senal); transform-origin: left; }
.principles dt { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; }
.principles dd { margin: 8px 0 0; color: #CBD5E1; }

/* Contacto */
.contact { padding: var(--sec) 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); max-width: 14ch; }
.contact-copy p { margin-top: 18px; color: var(--pizarra); font-size: 1.125rem; max-width: 42ch; }
.contact-alt a { color: var(--senal-hondo); font-weight: 600; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--blanco); border-radius: var(--r-lg); border: 1px solid var(--linea);
  box-shadow: 0 40px 80px -50px rgba(15, 23, 42, .35);
}
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; color: var(--tinta);
  background: var(--niebla); border: 2px solid transparent; border-radius: var(--r-md);
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tinta); background: var(--blanco); }
.field [aria-invalid="true"] { border-color: #DC2626; }
.form-error { grid-column: 1 / -1; color: #B91C1C; font-weight: 500; }
.form-ok { grid-column: 1 / -1; color: var(--senal-hondo); font-weight: 600; }

/* Footer */
.site-footer { background: var(--tinta); color: #CBD5E1; padding: 64px 0 32px; overflow: hidden; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--senal); }
.footer-word {
  display: flex; justify-content: center;
  margin: 48px 0 8px;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(5rem, 27vw, 24rem); line-height: .8; letter-spacing: -0.04em;
  color: var(--tinta-2);
  overflow: clip;
  user-select: none;
}
.footer-word span { display: inline-block; }
.footer-word span:last-child { color: var(--senal); }
.footer-legal { padding-top: 24px; margin-top: 0; border-top: 1px solid var(--tinta-2); font-size: .875rem; color: var(--pizarra-claro); }

/* Responsive */
@media (max-width: 960px) {
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero-grid, .product, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .route { justify-self: center; }
  .scroll-cue { display: none; }
  .product { min-height: 0; }
  .product-fg .mock { order: 2; }
  .flow-list { grid-template-columns: 1fr 1fr; }
  .mock-os, .mock-fg { rotate: 0deg; }
  .receipt { rotate: 0deg; }
}

@media (max-width: 760px) {

  .principles { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .tag { font-size: .8125rem; padding: 10px 12px; }
  .tag-name { font-size: .9375rem; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-card { min-height: 0; }
  .marquee-row-b span { -webkit-text-stroke-width: 1.5px; }
}

@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ===== Preloader (solo primera visita de la sesión) ===== */
.loader { display: none; }
.preload .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--tinta); color: var(--blanco);
}
.loader-x { width: 88px; height: 88px; }
.loader-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader-arrow { opacity: 0; }
.loader-count {
  font-family: var(--f-display); font-weight: 700; font-size: .9375rem;
  color: var(--pizarra-claro); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: center;
}
.loader-count::after { content: " %"; }

/* ===== Hero: los chips "encienden" su etiqueta y el brillo toma el color de la marca ===== */
.hero-glow { transition: background .6s var(--ease-out); }
.hero[data-focus="os"] .hero-glow { background: radial-gradient(closest-side, rgba(0, 127, 83, .32), rgba(0, 127, 83, 0) 70%); }
.hero[data-focus="fg"] .hero-glow { background: radial-gradient(closest-side, rgba(8, 112, 232, .3), rgba(8, 112, 232, 0) 70%); }
.tag { transition: opacity .35s, box-shadow .35s, border-color .35s; }
.hero[data-focus] .tag { opacity: .45; }
.hero[data-focus="os"] .tag-os, .hero[data-focus="fg"] .tag-fg { opacity: 1; }
.hero[data-focus="os"] .tag-os { border-color: var(--os); box-shadow: 0 0 0 4px rgba(0, 127, 83, .15), 0 18px 40px -16px rgba(15, 23, 42, .3); }
.hero[data-focus="fg"] .tag-fg { border-color: var(--fg); box-shadow: 0 0 0 4px rgba(8, 112, 232, .15), 0 18px 40px -16px rgba(15, 23, 42, .3); }

/* ===== Demo OrdenSimple ===== */
.mock-os { display: grid; justify-items: center; gap: 18px; padding: 0 0 12px; }
.demo-tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(0, 0, 0, .18); border-radius: var(--r-pill);
}
.demo-tab {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: rgba(255, 255, 255, .85);
  font: 600 .875rem/1 var(--f-body); cursor: pointer;
  transition: background-color .25s, color .25s;
}
.demo-tab:hover { color: var(--blanco); }
.demo-tab[aria-selected="true"] { background: var(--blanco); color: var(--os-ink); }
.demo-tab#tab-venta[aria-selected="false"]::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%;
  background: var(--os-dot); vertical-align: 1px;
}
@media (prefers-reduced-motion: no-preference) {
  .demo-tab#tab-venta[aria-selected="false"]::after { animation: pulse-dot 1.6s ease-out infinite; }
}
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(242, 166, 73, .7); } 100% { box-shadow: 0 0 0 8px rgba(242, 166, 73, 0); } }
.demo-panel { width: 100%; display: grid; justify-items: center; }
.demo-panel[hidden] { display: none; }

.pos {
  width: min(100%, 400px);
  padding: 20px;
  background: var(--blanco); color: var(--tinta);
  border-radius: 20px;
  box-shadow: 0 40px 70px -30px rgba(0, 40, 25, .65);
}
.pos-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pos-head b { font-family: var(--f-display); font-size: 1.125rem; }
.pos-head span { font-size: .8125rem; color: var(--pizarra); }
.pos-today { font-weight: 700; color: var(--os-ink); font-variant-numeric: tabular-nums; }
.pos-hint { margin-top: 4px; font-size: .8125rem; color: var(--pizarra); }
.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pos-item {
  display: grid; gap: 2px; text-align: left;
  min-height: 64px; padding: 10px 12px;
  border: 1.5px solid var(--linea); border-radius: 14px;
  background: var(--blanco); color: var(--tinta);
  font: 500 .875rem/1.25 var(--f-body); cursor: pointer;
  transition: border-color .2s, background-color .2s, scale .15s;
}
.pos-item b { font-family: var(--f-display); font-size: 1rem; color: var(--os-ink); }
.pos-item:hover { border-color: var(--os); background: #F0FAF5; }
.pos-item:active { scale: .97; }
.pos-lines { list-style: none; margin: 14px 0 0; padding: 0; min-height: 24px; max-height: 128px; overflow: auto; font-size: .875rem; }
.pos-lines:empty::before { content: "Aún no agregas productos."; color: var(--pizarra-claro); font-size: .8125rem; }
.pos-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--linea); font-variant-numeric: tabular-nums; }
.pos-lines li span:first-child { color: var(--pizarra); }
.pos-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.pos-total { display: grid; }
.pos-total span { font-size: .8125rem; color: var(--pizarra); }
.pos-sum { font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pos-go { min-height: 48px; padding: 0 20px; white-space: nowrap; background: var(--os); color: var(--blanco); }
.pos-go:hover:not(:disabled) { background: var(--os-ink); }
.pos-go:disabled { background: var(--linea); color: var(--pizarra); cursor: not-allowed; }
.pos-toast { min-height: 1.4em; margin-top: 10px; font-size: .8125rem; font-weight: 600; color: var(--os-ink); }

/* ===== Demo FreightGo ===== */
.cmp-sort { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px 4px; }
.cmp-sort button {
  min-height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--linea); background: var(--blanco); color: var(--pizarra);
  font: 600 .8125rem/1 var(--f-body); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.cmp-sort button:hover { border-color: var(--fg); color: var(--fg-ink); }
.cmp-sort button[aria-checked="true"] { background: var(--fg); border-color: var(--fg); color: var(--blanco); }
.cmp-rows li { transition: background-color .35s; }
.cmp-rows li.best::after {
  content: "Mejor opción"; grid-column: 1 / -1; justify-self: start;
  margin-top: -4px; font-size: .75rem; font-weight: 700; color: var(--fg-ink);
}

/* ===== Reloj de Chile y tarjeta "ahora" ===== */
.clock {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px !important; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--blanco); border: 1px solid var(--linea);
  font-size: .9375rem !important; color: var(--tinta) !important;
}
.clock[hidden] { display: none; }
.clock-time { font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.clock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--senal); }
@media (prefers-reduced-motion: no-preference) {
  .clock-dot { animation: pulse 1.6s ease-out infinite; }
}
.flow-card.is-now { border-color: var(--tinta); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35); }
.flow-card-end.is-now { border-color: var(--senal); }
.now-badge {
  position: absolute; top: 24px; right: 24px;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--senal); color: var(--tinta);
  font-size: .75rem; font-weight: 700;
}

/* ===== Footer: letras que reaccionan al mouse ===== */
.footer-word span { will-change: transform; }

@media (max-width: 520px) {
  .pos-grid { grid-template-columns: 1fr; }
  .pos-item { min-height: 52px; }
  .cmp-rows li { grid-template-columns: 1fr auto; }
  .cmp-time { display: none; }
}

/* =====================================================================
   PÁGINAS INTERNAS
   ===================================================================== */
.site-nav { gap: 26px; }
.site-nav a[aria-current="page"] { color: var(--tinta); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header.on-dark .site-nav a[aria-current="page"] { color: #FFFFFF; }

.motion .page-hero { visibility: hidden; }

/* Hero de página */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header) + clamp(48px, 7vw, 96px)) 0 clamp(64px, 9vw, 120px);
}
.page-hero--os { background: var(--os-panel); color: var(--blanco); }
.page-hero--fg { background: var(--fg-panel); color: var(--blanco); }
.page-hero--dark { background: var(--tinta); color: var(--blanco); }
.page-hero--light { background: var(--niebla); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 85% 10%, rgba(255,255,255,.12), transparent 65%);
}
.page-hero--light::before { background: radial-gradient(45% 60% at 85% 20%, rgba(34,226,124,.18), transparent 65%); }
.page-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.page-hero-grid--single { grid-template-columns: minmax(0, 860px); }
.page-title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 700; max-width: 15ch; }
.page-hero .lede { color: inherit; opacity: .9; max-width: 52ch; }
.page-hero--light .lede { color: var(--pizarra); opacity: 1; }
.page-hero-mark {
  position: absolute; right: -6vw; top: 50%; translate: 0 -50%;
  width: min(48vw, 640px); height: auto; opacity: .1; pointer-events: none;
  filter: saturate(0) brightness(3);
}
.page-hero--light .page-hero-mark, .page-hero--dark .page-hero-mark { filter: none; }
.page-hero-mark-iso { color: var(--tinta); --iso-arrow: var(--senal); opacity: .07; }
.page-hero--dark .page-hero-mark-iso { color: #1E293B; --iso-arrow: #123A28; opacity: 1; }
.page-hero-aside { display: grid; justify-items: center; }
.page-hero--fg .page-hero-aside .mock-fg { width: min(100%, 460px); }

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font-size: .875rem; }
.crumbs a { opacity: .75; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .45; }
.crumbs [aria-current] { font-weight: 600; }

.product-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.14); font-weight: 600;
}
.product-badge svg { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }

.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 40px 0 0; border-top: 1px solid rgba(255,255,255,.25); }
.facts div { flex: 1 1 120px; padding: 16px 20px 0 0; }
.facts dt { font-size: .8125rem; opacity: .8; }
.facts dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.btn-ghost-light { border-color: rgba(255,255,255,.7); color: var(--blanco); }
.btn-ghost-light:hover { background: var(--blanco); color: var(--tinta); }
.btn-os-solid { background: var(--os); color: var(--blanco); }
.btn-os-solid:hover { background: var(--os-ink); }
.btn-fg-solid { background: var(--fg); color: var(--blanco); }
.btn-fg-solid:hover { background: var(--fg-ink); }
.link-light { display: inline-flex; align-items: center; gap: 6px; margin-left: 18px; color: var(--blanco); font-weight: 600; text-decoration: none; opacity: .9; }
.link-light:hover { opacity: 1; text-decoration: underline; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; }

/* Secciones genéricas */
.section { padding: var(--sec) 0; background: var(--blanco); }
.section-tint { background: var(--niebla); }
.section-fg { background: var(--fg-panel); color: var(--blanco); }
.section-fg .section-head p { color: #DBEAFE; }
.section-fg .btn { margin-top: 28px; }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.two-col .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header) + 32px); }
.fineprint { margin-top: 28px; font-size: .9375rem; color: var(--pizarra); max-width: 70ch; }

/* Antes / después */
.swap { display: grid; gap: 20px; }
.swap-switch {
  display: inline-flex; justify-self: start; padding: 4px; gap: 4px;
  background: var(--niebla); border-radius: var(--r-pill);
}
.swap-switch button {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--pizarra); font: 600 .9375rem/1 var(--f-body); cursor: pointer;
  transition: background-color .25s, color .25s;
}
.swap-os .swap-switch button[aria-pressed="true"] { background: var(--os); color: var(--blanco); }
.swap-fg .swap-switch button[aria-pressed="true"] { background: var(--fg); color: var(--blanco); }
.swap-switch button[data-mode="antes"][aria-pressed="true"] { background: var(--tinta); color: var(--blanco); }
.swap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.swap-row {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border-radius: 16px; border: 1px solid var(--linea);
  font-size: 1.0625rem; min-height: 64px;
  transition: background-color .3s, border-color .3s;
}
.swap-icon { width: 24px; height: 24px; border-radius: 50%; margin-top: 1px; transition: background-color .3s; }
.swap[data-mode="ahora"].swap-os .swap-icon { background: var(--os) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.4l3.2 3.2L17 8.8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.swap[data-mode="ahora"].swap-fg .swap-icon { background: var(--fg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.4l3.2 3.2L17 8.8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.swap[data-mode="antes"] .swap-icon { background: #FDE2E2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 8.5l7 7M15.5 8.5l-7 7' fill='none' stroke='%23B91C1C' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; }
.swap[data-mode="antes"] .swap-row { background: #FAFAFA; color: var(--pizarra); }

/* Rubros */
.rubros { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.rubro-tabs { display: grid; gap: 6px; }
.rubro-tabs button {
  text-align: left; min-height: 52px; padding: 0 18px; border-radius: 14px;
  border: 1px solid transparent; background: transparent; color: var(--pizarra);
  font: 600 1rem/1.2 var(--f-body); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.rubro-tabs button:hover { background: var(--blanco); color: var(--tinta); }
.rubro-tabs button[aria-selected="true"] { background: var(--blanco); color: var(--tinta); border-color: var(--linea); box-shadow: inset 4px 0 0 var(--os); }
.rubro-panels { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); min-height: 380px; }
.rubro-panel h3 { margin-top: 18px; font-size: clamp(1.6rem, 2.8vw, 2.2rem); max-width: 22ch; }
.rubro-panel > p { margin-top: 14px; color: var(--pizarra); font-size: 1.125rem; max-width: 56ch; }
.plan-pill { display: inline-block; padding: 5px 12px; border-radius: var(--r-pill); background: #E3F5EC; color: var(--os-ink); font-size: .8125rem; font-weight: 700; }
.checks-dark li { color: var(--tinta); }
.checks-dark li::before { background: var(--os) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.page-fg .checks-dark li::before, .plans-2 .checks-dark li::before { background-color: var(--fg); }

/* Ficha */
.spec { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--r-lg); overflow: hidden; }
.spec div { background: var(--blanco); padding: 24px; }
.spec dt { font-size: .875rem; color: var(--pizarra); }
.spec dd { margin: 6px 0 0; font-family: var(--f-display); font-weight: 500; font-size: 1.125rem; line-height: 1.35; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 440px)); }
.plans[hidden] { display: none; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r-lg);
}
.plan h3 { font-size: 1.5rem; }
.plan-for { margin-top: 6px; color: var(--pizarra); min-height: 3em; }
.plan-price { display: grid; margin: 20px 0 4px; }
.plan-price b { font-family: var(--f-display); font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; }
.plan-price span { color: var(--pizarra); font-size: .9375rem; margin-top: 4px; }
.plan .checks { margin-bottom: 28px; }
.plan .btn { margin-top: auto; }
.plan-featured { border: 2px solid var(--os); box-shadow: 0 30px 60px -30px rgba(0, 112, 74, .45); }
.plan-featured .plan-pill { position: absolute; top: -13px; left: 32px; background: var(--os); color: var(--blanco); }
.plan-featured-fg { border-color: var(--fg); box-shadow: 0 30px 60px -30px rgba(10, 91, 196, .45); }
.plan-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 28px; background: var(--niebla); border-radius: var(--r-pill); flex-wrap: wrap; }
.plan-tabs button { min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--pizarra); font: 600 .9375rem/1 var(--f-body); cursor: pointer; }
.plan-tabs button[aria-selected="true"] { background: var(--fg); color: var(--blanco); }

/* Principios en fondo claro */
.principles-light div::before { background: var(--tinta); }
.principles-light dd { color: var(--pizarra); }
.principles-light { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--blanco); border: 1px solid var(--linea); border-radius: 16px; transition: border-color .2s; }
.faq-item[open] { border-color: var(--tinta); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 22px; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 700; font-size: 1.125rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--niebla) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 8v12M8 14h12' stroke='%230F172A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--pizarra); max-width: 64ch; }

/* Pasos fijados */
.steps-sticky { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.steps-aside { position: sticky; top: calc(var(--header) + 40px); }
.steps-aside h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
.steps-aside p { margin-top: 18px; color: var(--pizarra); font-size: 1.125rem; }
.steps-list { position: relative; }
.steps-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 10vh, 120px); }
.steps-rail { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 3px; background: var(--linea); border-radius: 3px; }
.steps-fill { position: absolute; inset: 0; background: var(--fg); transform-origin: top; border-radius: inherit; }
.step { position: relative; padding-left: 80px; opacity: .45; transition: opacity .4s; }
.step.is-active, .step:last-child.is-active { opacity: 1; }
.step-num {
  position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 15px;
  background: var(--blanco); border: 2px solid var(--linea);
  font: 700 1.25rem/1 var(--f-display); transition: background-color .3s, border-color .3s, color .3s;
}
.step.is-active .step-num { background: var(--fg); border-color: var(--fg); color: var(--blanco); }
.step h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); padding-top: 8px; }
.step p { margin-top: 10px; color: var(--pizarra); font-size: 1.0625rem; max-width: 46ch; }
.no-motion-steps .step, html:not(.motion) .step { opacity: 1; }

/* Tramos */
.tramos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tramo { padding: 28px; border: 1px solid var(--linea); border-radius: var(--r-lg); background: var(--blanco); }
.tramo svg { width: 100%; max-width: 180px; height: 56px; fill: none; stroke: var(--fg); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tramo svg circle, .tramo svg rect { fill: #E7F0FD; }
.tramo h3 { margin-top: 18px; font-size: 1.4rem; }
.tramo p { margin-top: 8px; color: var(--pizarra); }

/* Verificación */
.verify { position: relative; }
.verify-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.verify-rail { position: absolute; left: 12px; right: 12px; top: 11px; height: 3px; background: var(--linea); border-radius: 3px; }
.verify-fill { position: absolute; inset: 0; background: var(--fg); transform-origin: left; border-radius: inherit; }
.verify-step { position: relative; padding-top: 44px; }
.verify-dot {
  position: absolute; top: 0; left: 0; width: 25px; height: 25px; border-radius: 50%;
  background: var(--niebla); border: 3px solid var(--linea); transition: background-color .3s, border-color .3s;
}
.verify-step.is-done .verify-dot, html:not(.motion) .verify-dot { background: var(--fg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.4l3.2 3.2L17 8.8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; border-color: var(--fg); }
.verify-step h3 { font-size: 1.15rem; }
.verify-step p { margin-top: 6px; color: var(--pizarra); font-size: .9375rem; }

/* Nosotros */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); color: var(--blanco); text-decoration: none;
  min-height: 340px; overflow: hidden; transition: translate .4s var(--ease-out), box-shadow .4s;
}
.duo-card:hover { translate: 0 -6px; box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .5); }
.duo-os { background: var(--os-panel); }
.duo-fg { background: var(--fg-panel); }
.duo-logo { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.duo-card h3 { margin-top: 18px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.duo-card p { max-width: 40ch; opacity: .92; }
.duo-more { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.duo-more::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .3s var(--ease-out); }
.duo-card:hover .duo-more::after { width: 34px; }
.nolist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nolist li { padding: 20px 22px; border-radius: 16px; background: var(--niebla); font-size: 1.0625rem; }
.nolist b { font-family: var(--f-display); }

/* Trabaja */
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.areas li { padding: 26px; border: 1px solid var(--linea); border-radius: 20px; }
.areas h3 { font-size: 1.3rem; }
.areas p { margin-top: 8px; color: var(--pizarra); }

/* Blog */
.filter { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter button {
  min-height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1.5px solid var(--linea); background: var(--blanco); color: var(--pizarra);
  font: 600 .9375rem/1 var(--f-body); cursor: pointer; transition: all .2s;
}
.filter button[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--blanco); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r-lg);
  transition: box-shadow .3s, translate .3s var(--ease-out);
}
.post[hidden] { display: none; }
.post:hover { translate: 0 -4px; box-shadow: 0 30px 60px -36px rgba(15, 23, 42, .4); }
.post-art { height: 150px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 10px; }
.post-os .post-art { background: linear-gradient(135deg, #00704A, #00A06A); }
.post-fg .post-art { background: linear-gradient(135deg, #0A5BC4, #3B8DF5); }
.post-art svg { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.post-meta { font-size: .8125rem; color: var(--pizarra); display: flex; gap: 8px; align-items: center; }
.post-prod { font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); }
.post-os .post-prod, .post-dialog .post-prod { background: #E3F5EC; color: var(--os-ink); }
.post-fg .post-prod { background: #E7F0FD; color: var(--fg-ink); }
.post-title { font-size: 1.5rem; line-height: 1.15; }
.post > p:not(.post-meta) { color: var(--pizarra); }
.post-open {
  align-self: flex-start; margin-top: auto; min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--tinta); font: 600 1rem/1 var(--f-body); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.post-open::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .3s var(--ease-out); }
.post-open:hover::after { width: 32px; }
.post-dialog {
  width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  padding: clamp(28px, 5vw, 56px); border: 0; border-radius: var(--r-lg);
  color: var(--tinta); background: var(--blanco); overflow: auto;
  box-shadow: 0 40px 100px -30px rgba(15, 23, 42, .6);
}
.post-dialog::backdrop { background: rgba(15, 23, 42, .6); backdrop-filter: blur(6px); }
.post-dialog h2 { margin-top: 14px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.post-body { margin: 24px 0 32px; }
.post-body h3 { margin-top: 28px; font-size: 1.25rem; }
.post-body p, .post-body li { margin-top: 10px; color: #334155; line-height: 1.7; max-width: 65ch; }
.post-body ul { padding-left: 20px; }
.dlg-close {
  position: sticky; top: 0; float: right; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--niebla); color: var(--tinta); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.dlg-close:hover { background: var(--linea); }
.post-dialog .post-prod { background: var(--niebla); color: var(--tinta); }

/* Banda final */
.cta-band { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 160px) 0; background: var(--tinta); color: var(--blanco); text-align: left; }
.cta-band.cta-os { background: var(--os-panel); }
.cta-band.cta-fg { background: var(--fg-panel); }
.cta-x { position: absolute; right: -8vw; bottom: -20%; width: min(60vw, 720px); color: rgba(255,255,255,.06); --iso-arrow: rgba(255,255,255,.1); pointer-events: none; }
.cta-inner { position: relative; }
.cta-band h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 16ch; }
.cta-band p { margin-top: 20px; font-size: 1.1875rem; opacity: .9; max-width: 50ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Footer en columnas */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 32ch; color: var(--pizarra-claro); }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h2 { font-size: .9375rem; color: var(--blanco); margin-bottom: 6px; letter-spacing: 0; }
.footer-col a { text-decoration: none; color: #CBD5E1; transition: color .2s; }
.footer-col a:hover { color: var(--senal); }

/* Navegación colapsada en tablets y móviles */
@media (max-width: 1100px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; border-radius: 12px; cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--tinta); border-radius: 2px; position: relative; transition: transform .25s var(--ease-out), background-color .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .site-header.on-dark .bars, .site-header.on-dark .bars::before, .site-header.on-dark .bars::after { background: #FFFFFF; }
  .site-header.on-dark .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .site-nav {
    position: absolute; top: var(--header); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--niebla); border-bottom: 1px solid var(--linea);
    display: none;
  }
  .site-header.on-dark .site-nav { background: var(--tinta); border-bottom-color: var(--tinta-2); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--linea); }
  .site-header.on-dark .site-nav a:not(.btn) { border-bottom-color: var(--tinta-2); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 16px; }
}

@media (max-width: 960px) {
  .page-hero-grid, .two-col, .steps-sticky, .rubros { grid-template-columns: 1fr; }
  .two-col .section-head, .steps-aside { position: static; }
  .two-col .section-head { margin-bottom: 8px; }
  .plans { grid-template-columns: 1fr; }
  .plans-2 { grid-template-columns: 1fr; }
  .tramos { grid-template-columns: 1fr; }
  .verify-list { grid-template-columns: 1fr; gap: 28px; }
  .verify-rail { left: 11px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .verify-fill { transform-origin: top; }
  .verify-step { padding: 0 0 0 48px; }
  .rubro-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  .rubro-tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--os); }
  .duo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero-mark { opacity: .06; }
}

@media (max-width: 640px) {
  .spec { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .facts div { flex-basis: 30%; padding-right: 10px; }
  .link-light { margin-left: 0; }
  .step { padding-left: 68px; }
}

.contact-copy h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); max-width: 14ch; }

/* ===== Pie legal ===== */
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-legal nav { display: flex; gap: 20px; }
.footer-legal a { color: var(--pizarra-claro); text-decoration: none; }
.footer-legal a:hover { color: var(--senal); text-decoration: underline; }
.form-legal { font-size: .875rem; color: var(--pizarra); }
.form-legal a { color: var(--tinta); font-weight: 600; }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 14px; border-radius: 999px;
  background: #25D366; color: #0B3B1E; font-weight: 700; text-decoration: none;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .45);
  transition: translate .3s var(--ease-out);
}
.wa-float:hover { translate: 0 -3px; }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 0 13px; } }

/* ===== Páginas legales ===== */
.legal { max-width: 760px; }
.legal-note { padding: 16px 20px; border-radius: 14px; background: var(--niebla); color: var(--pizarra); }
.legal h2 { margin-top: 44px; font-size: 1.5rem; }
.legal p, .legal li { margin-top: 12px; color: #334155; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--tinta); font-weight: 600; }

/* ===== Artículos del blog ===== */
.page-hero--article { padding-bottom: clamp(40px, 6vw, 72px); }
.page-title--article { max-width: 20ch; font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
.page-hero--article .post-meta { margin-bottom: 18px; }
.post-prod-os { background: #E3F5EC; color: var(--os-ink); }
.post-prod-fg { background: #E7F0FD; color: var(--fg-ink); }
.article-section { padding-top: clamp(40px, 6vw, 72px); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.article-body { margin: 0; font-size: 1.125rem; }
.article-body > p:first-child { font-size: 1.25rem; color: var(--tinta); }
.article-body h3 { margin-top: 40px; font-size: 1.5rem; }
.article-aside { position: sticky; top: calc(var(--header) + 32px); }
.article-cta { padding: 28px; border-radius: var(--r-lg); color: var(--blanco); }
.article-cta-os { background: var(--os-panel); }
.article-cta-fg { background: var(--fg-panel); }
.article-cta svg { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.article-cta h2 { margin-top: 16px; font-size: 1.6rem; }
.article-cta p { margin: 8px 0 22px; opacity: .92; }
.article-cta .btn { background: var(--blanco); }
.article-cta-os .btn { color: var(--os-ink); }
.article-cta-fg .btn { color: var(--fg-ink); }
.related-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 28px; }
.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a {
  display: grid; gap: 12px; align-content: start; height: 100%; padding: 24px; border-radius: 20px;
  background: var(--blanco); border: 1px solid var(--linea); text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25;
  transition: translate .3s var(--ease-out), box-shadow .3s;
}
.related a:hover { translate: 0 -4px; box-shadow: 0 24px 50px -30px rgba(15, 23, 42, .4); }
.related .post-prod { justify-self: start; font-family: var(--f-body); font-size: .75rem; }
a.post-open { text-decoration: none; }

/* ===== 404 ===== */
.notfound { min-height: 100svh; display: flex; align-items: center; }
.nf-code {
  font-family: var(--f-display); font-weight: 700; line-height: .85; letter-spacing: -0.05em;
  font-size: clamp(6rem, 22vw, 16rem); color: var(--senal); margin-bottom: 12px;
}

@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .related { grid-template-columns: 1fr; }
}

/* ===== Test: ¿Qué plataforma necesitas? ===== */
.quiz-section { padding: var(--sec) 0; background: var(--niebla); }
.quiz-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.quiz-intro { position: sticky; top: calc(var(--header) + 32px); }
.quiz-intro h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
.quiz-intro p { margin-top: 18px; color: var(--pizarra); font-size: 1.125rem; max-width: 40ch; }
.quiz {
  min-height: 360px; padding: clamp(24px, 4vw, 44px);
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -50px rgba(15, 23, 42, .35);
}
.quiz-step { font-size: .875rem; font-weight: 600; color: var(--pizarra); }
.quiz-q { margin-top: 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); outline: none; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.quiz-opt {
  min-height: 64px; padding: 14px 18px; text-align: left;
  border: 1.5px solid var(--linea); border-radius: 16px; background: var(--blanco); color: var(--tinta);
  font: 600 1rem/1.3 var(--f-body); cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .15s;
}
.quiz-opt:hover { border-color: var(--tinta); background: var(--niebla); }
.quiz-opt:active { transform: scale(.98); }
.quiz-back, .quiz-restart {
  margin-top: 20px; min-height: 44px; padding: 0 4px; border: 0; background: none;
  color: var(--pizarra); font: 600 .9375rem/1 var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.quiz-back:hover, .quiz-restart:hover { color: var(--tinta); }
.quiz-cards { display: grid; gap: 14px; margin-top: 22px; }
.quiz-card { padding: 22px; border-radius: 20px; border: 1.5px solid var(--linea); }
.quiz-card-os { border-color: var(--os); background: #F3FBF7; }
.quiz-card-fg { border-color: var(--fg); background: #F3F8FF; }
.quiz-card-head { display: flex; align-items: center; gap: 12px; }
.quiz-card-head svg { width: 38px; height: 38px; border-radius: 10px; }
.quiz-card-head b { font-family: var(--f-display); font-size: 1.4rem; }
.quiz-why { margin-top: 12px; color: #334155; }
.quiz-plan { display: grid; gap: 2px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--blanco); }
.quiz-plan span { font-size: .8125rem; color: var(--pizarra); }
.quiz-plan b { font-family: var(--f-display); font-size: 1.15rem; }
.quiz-plan small { color: var(--pizarra); font-size: .875rem; }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 16px; }
.quiz-ext { font-weight: 600; color: var(--tinta); }

/* ===== Kit de prensa ===== */
.boiler { display: grid; gap: 16px; }
.boiler-item { padding: 26px; border: 1px solid var(--linea); border-radius: 20px; }
.boiler-item h3 { font-size: 1.25rem; }
.boiler-item p { margin-top: 10px; color: #334155; line-height: 1.7; }
.copy-btn {
  margin-top: 14px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--linea); background: var(--blanco); color: var(--tinta);
  font: 600 .875rem/1 var(--f-body); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.copy-btn:hover { border-color: var(--tinta); }
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.logo-card { margin: 0; border: 1px solid var(--linea); border-radius: 20px; overflow: hidden; background: var(--blanco); }
.logo-stage { display: grid; place-items: center; height: 180px; padding: 28px; background: var(--blanco); border-bottom: 1px solid var(--linea); }
.logo-card--dark .logo-stage { background: var(--tinta); }
.logo-stage img { max-height: 100%; max-width: 100%; }
.logo-card figcaption { display: grid; gap: 4px; padding: 18px 20px 20px; }
.logo-card figcaption b { font-family: var(--f-display); }
.logo-card figcaption span { color: var(--pizarra); font-size: .9375rem; }
.dl-link { justify-self: start; margin-top: 8px; font-weight: 600; color: var(--tinta); }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.swatch { display: grid; gap: 4px; align-content: start; }
.swatch-chip {
  display: flex; align-items: flex-end; height: 120px; padding: 12px; margin-bottom: 8px;
  border-radius: 16px; border: 1px solid var(--linea);
  font: 500 .8125rem/1 var(--f-mono); color: var(--tinta);
}
.swatch-chip--light { color: var(--blanco); border-color: transparent; }
.swatch b { font-family: var(--f-display); }
.swatch > span:not(.swatch-chip) { font-size: .875rem; color: var(--pizarra); }
.swatch .copy-btn { justify-self: start; margin-top: 6px; }
.type-specimen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.type-specimen > div { padding: 26px; border: 1px solid var(--linea); border-radius: 20px; }
.type-sample { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; }
.type-sample--display { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; }
.type-specimen span { display: block; margin-top: 10px; color: var(--pizarra); }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dodont > div { padding: 26px; border-radius: 20px; background: var(--blanco); border: 1px solid var(--linea); }
.dodont .do { box-shadow: inset 0 4px 0 var(--os); }
.dodont .dont { box-shadow: inset 0 4px 0 #DC2626; }
.dodont h3 { font-size: 1.3rem; }
.dodont ul { margin: 12px 0 0; padding-left: 20px; color: #334155; }
.dodont li { margin-top: 8px; }

@media (max-width: 960px) {
  .quiz-grid { grid-template-columns: 1fr; }
  .quiz-intro { position: static; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .quiz-options { grid-template-columns: 1fr; }
  .logo-grid, .type-specimen, .dodont { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
}

/* Lenis (antes desde CDN) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Antes / después: fundido suave sin saltos de altura */
.swap-text { display: grid; }
.swap-text > span { grid-area: 1 / 1; transition: opacity .35s ease, transform .45s var(--ease-out), visibility 0s linear 0s; }
.swap-row { transition: background-color .35s ease, color .35s ease, border-color .35s ease; transition-delay: calc(var(--i, 0) * 45ms); }
.swap-text > span { transition-delay: calc(var(--i, 0) * 45ms + 120ms), calc(var(--i, 0) * 45ms + 120ms), 0s; }
.swap[data-mode="ahora"] .s-antes, .swap[data-mode="antes"] .s-ahora {
  opacity: 0; transform: translateY(-10px); visibility: hidden;
  transition-delay: calc(var(--i, 0) * 45ms), calc(var(--i, 0) * 45ms), calc(var(--i, 0) * 45ms + 350ms);
}
.swap[data-mode="antes"] .s-antes, .swap[data-mode="ahora"] .s-ahora { transform: translateY(0); }
.swap-icon { transition: background-color .3s ease, transform .4s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
@media (prefers-reduced-motion: reduce) {
  .swap-text > span, .swap-row, .swap-icon { transition: none !important; }
}

/* ===== Transiciones entre páginas (navegadores compatibles) ===== */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .32s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .55s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ===== Hero de OrdenSimple: barras como las del logo ===== */
.hero-bars {
  position: absolute; right: 0; bottom: 0; left: 38%; height: 62%;
  display: flex; align-items: flex-end; gap: clamp(6px, 1vw, 14px);
  padding: 0 clamp(16px, 4vw, 48px);
  pointer-events: none;
  -webkit-mask: linear-gradient(to top, #000 30%, transparent);
  mask: linear-gradient(to top, #000 30%, transparent);
}
.hero-bars i {
  flex: 1; height: var(--h); border-radius: 999px 999px 0 0;
  background: rgba(255, 255, 255, .09);
  transform-origin: bottom;
}
.hero-bars i.is-dot { position: relative; }
.hero-bars i.is-dot::before {
  content: ""; position: absolute; left: 50%; top: -22px; translate: -50% 0;
  width: 12px; height: 12px; border-radius: 50%; background: var(--os-dot); opacity: .8;
}

/* ===== Hero de FreightGo: carriles en movimiento ===== */
.hero-roads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-roads .lane { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 34; stroke-linecap: round; }
.hero-roads .lane-dash { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2; stroke-dasharray: 26 34; }
.hero-roads .truck { fill: #FFFFFF; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .hero-roads .lane-dash { animation: lane-flow 2.4s linear infinite; }
}
@keyframes lane-flow { to { stroke-dashoffset: -60; } }
.page-hero--fg .page-hero-grid, .page-hero--os .page-hero-grid { z-index: 1; }

/* ===== Inicio más compacto en móvil ===== */
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--header) + 24px); padding-bottom: 48px; }
  .hero-title { font-size: clamp(2.4rem, 10.5vw, 3rem); }
  .lede { margin-top: 18px; }
  .hero-actions { margin-top: 26px; }
  .hero-products { margin-top: 18px; }
  .route { max-width: 340px; margin-top: -8px; }
  .hero-bars { left: 0; height: 40%; opacity: .7; }
}

/* ===== Nosotros: quiénes somos (carreras) ===== */
.careers { display: grid; gap: 16px; }
.career {
  position: relative; padding: clamp(24px, 3.5vw, 36px); border-radius: var(--r-lg);
  border: 1px solid var(--linea); background: var(--blanco); overflow: hidden;
}
.career::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.career-os::before { background: var(--os); }
.career-fg::before { background: var(--fg); }
.career-label {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: .8125rem; font-weight: 700;
}
.career-os .career-label { background: #E3F5EC; color: var(--os-ink); }
.career-fg .career-label { background: #E7F0FD; color: var(--fg-ink); }
.career h3 { margin-top: 16px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.career p { margin-top: 10px; color: var(--pizarra); font-size: 1.0625rem; max-width: 54ch; }
.career-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-weight: 600; color: var(--tinta); text-decoration: none;
}
.career-link svg { width: 28px; height: 28px; border-radius: 8px; }
.career-link::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .3s var(--ease-out); }
.career-link:hover::after { width: 32px; }
