/* Pautaly · main stylesheet. World: technical datasheet. Tokens, base, layout, components, pages.
   Dark ink is the default context; .band-gray, .form-card and .consent switch to the paper context
   by redefining the semantic tokens, so every component works in both. */
:root {
  /* Palette */
  --ink-900: #0E1216; --ink-800: #151B21; --ink-700: #1D252D; --ink-600: #26303A; --rule-dark: #2C3640;
  --hi: #F2F5F7; --mid: #A7B1BA; --low: #8A95A0;
  --paper: #F4F6F7; --paper-2: #E8ECEF; --rule-light: #C9D0D6; --ink-mid: #4A5560; --ink-low: #5F6B76;
  --accent: #00A6A0; --accent-hover: #1FC2BB; --accent-press: #008F8A; --accent-ink: #00726E; --accent-wash: #E1F2F1;
  --amber: #E0A526; --red: #B42318; --red-dark: #FF8A7A;

  /* Semantic tokens, dark context */
  --bg: var(--ink-900); --surface: var(--ink-800); --surface-2: var(--ink-700); --surface-hover: #222B34;
  --fg: var(--hi); --fg-mid: var(--mid); --fg-low: var(--low);
  --rule: var(--rule-dark); --rule-strong: #46535F;
  --link: var(--accent); --focus: var(--hi); --error: var(--red-dark);
  --grid-line: rgba(242, 245, 247, .045); --hero-line: rgba(242, 245, 247, .07);

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.6rem, 6.2vw, 5rem);
  --fs-h1: clamp(2.2rem, 4.4vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 3vw, 2.4rem);
  --fs-h3: 1.3rem;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  /* Space (4px base) */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --band-y: clamp(4rem, 8vw, 7.5rem);

  --radius: 2px;
  --container: 1240px; --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

.band-gray, .form-card, .consent, .theme-paper {
  --bg: var(--paper); --surface: #FFFFFF; --surface-2: var(--paper-2); --surface-hover: var(--paper-2);
  --fg: var(--ink-900); --fg-mid: var(--ink-mid); --fg-low: var(--ink-low);
  --rule: var(--rule-light); --rule-strong: #8994A0;
  --link: var(--accent-ink); --focus: var(--ink-900); --error: var(--red);
  --grid-line: rgba(14, 18, 22, .05);
  color: var(--fg); color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--rule-strong) var(--ink-900); color-scheme: dark; }
body { margin: 0; font: 400 var(--fs-body)/1.6 var(--font); font-stretch: 100%; color: var(--fg); background: var(--bg); caret-color: var(--accent); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--ink-900); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius); }
h1, h2, h3, h4, .h3, .h4 { font-family: var(--font); color: var(--fg); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; font-stretch: 90%; line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); font-weight: 700; font-stretch: 92%; line-height: 1.1; letter-spacing: -.015em; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
h4, .h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--fg-mid); max-width: 60ch; }
.muted { color: var(--fg-mid); }
.small { font-size: var(--fs-small); }
.note { margin-top: var(--s6); max-width: 80ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s4); top: -4rem; background: var(--accent); color: var(--ink-900); font-weight: 600; padding: .7rem 1rem; z-index: 100; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: var(--s3); }
.skip-link:hover { color: var(--ink-900); background: var(--accent-hover); }
.label { display: block; font: 600 var(--fs-label)/1.3 var(--font); font-stretch: 85%; text-transform: uppercase; letter-spacing: .09em; color: var(--fg-low); margin: 0 0 var(--s3); }

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 880px; }
.band { padding: var(--band-y) 0; background: var(--bg); }
.band-top { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--rule-dark); }
.band-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.band-flush { padding-top: clamp(2.5rem, 5vw, 4rem); }
.band-gray { background: var(--paper); }
.band-dark { --bg: var(--ink-800); --surface: var(--ink-700); --surface-2: var(--ink-600); --surface-hover: #252E38; background: var(--ink-800); border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
.band-dark + .band-dark, .band-top.band-dark { border-top: 0; }
.band-center { text-align: center; }
.band-center .lead { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: var(--s5); }
.grid-gap-lg { gap: clamp(2rem, 5vw, 4rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-head { margin-bottom: var(--s6); max-width: 820px; }
.section-head h2 { margin-bottom: 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); max-width: none; }
.band > .container > h2 { margin-bottom: var(--s6); }
.band h2.h3 { margin-bottom: var(--s4); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s6) 0 var(--s4); }
.actions-center { justify-content: center; }

/* Ruled grids: cells share a single 1px rule (outline + 1px gap), empty slots stay open */
.grid:has(> .card), .stats, .steps, .specs, .chips { gap: 1px; }
.grid:has(> .card) > *, .stats > *, .steps > li, .specs > div, .chips > li { outline: 1px solid var(--rule); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; font: 600 .9375rem/1.1 var(--font); font-stretch: 100%; letter-spacing: .005em; padding: .8rem 1.3rem; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.btn-lg { min-height: 52px; padding: .95rem 1.6rem; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: .55rem 1rem; font-size: .875rem; }
.btn-primary, .btn-accent { background: var(--accent); color: var(--ink-900); border-color: var(--accent); }
.btn-primary:hover, .btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink-900); }
.btn-primary:active, .btn-accent:active { background: var(--accent-press); border-color: var(--accent-press); }
.btn-secondary, .btn-outline-light { background: transparent; color: var(--fg); border-color: var(--rule-strong); }
.btn-secondary:hover, .btn-outline-light:hover { background: var(--surface-2); border-color: var(--fg); color: var(--fg); }
.btn-secondary:active, .btn-outline-light:active { background: var(--surface-hover); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--link); }
.link-arrow:hover { color: var(--fg); text-decoration: underline; }
.link-arrow svg { transition: transform .2s var(--ease); }
a:hover .link-arrow svg, .link-arrow:hover svg { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink-900); border-bottom: 1px solid var(--rule-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--hi); }
.logo:hover { color: var(--hi); }
.logo-word { font: 700 1.1rem/1 var(--font); font-stretch: 112%; letter-spacing: .16em; }
.logo-light { color: var(--hi); }
.logo-lg .logo-mark { width: 40px; height: 46px; }
.logo-lg .logo-word { font-size: 1.6rem; }
.main-nav { display: flex; align-items: center; gap: var(--s6); }
.main-nav ul { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.main-nav ul a { display: flex; align-items: center; min-height: var(--header-h); color: var(--mid); text-decoration: none; font-weight: 500; font-size: .9375rem; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s var(--ease), border-color .15s var(--ease); }
.main-nav ul a:hover { color: var(--hi); border-bottom-color: var(--rule-strong); }
.main-nav ul a[aria-current="page"] { color: var(--hi); border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: var(--s4); }
.lang-switch { display: inline-flex; align-items: center; min-height: 40px; font: 600 .8125rem/1 var(--font); letter-spacing: .06em; text-decoration: none; color: var(--hi); }
.lang-switch:hover { color: var(--accent); }
.lang-switch .sep { color: var(--rule-strong); }
.lang-switch .muted { color: var(--low); }
.menu-toggle { display: none; align-items: center; gap: .5rem; min-height: 44px; background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: .5rem .85rem; font: 600 .9rem var(--font); color: var(--hi); cursor: pointer; }
.menu-toggle:hover { border-color: var(--hi); }

/* Home hero: headline, action row, route sheet */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); background-color: var(--ink-900); border-top: 0; }
/* Sheet grid registered to the container: outer lines on the content edges, six columns, 80px rows */
.hero > .container { position: relative; }
.hero > .container::before { content: ""; position: absolute; top: -50vh; bottom: -50vh; left: var(--gutter); right: var(--gutter); pointer-events: none;
  border-right: 1px solid var(--hero-line);
  background-image: linear-gradient(90deg, var(--hero-line) 1px, transparent 1px), linear-gradient(var(--hero-line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%, 100% 80px; }
.hero > .container > * { position: relative; }
.hero h1 { font-size: var(--fs-display); font-stretch: 85%; line-height: .98; letter-spacing: -.025em; max-width: 20ch; margin-bottom: var(--s6); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s6); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero-row .lead { margin: 0; color: var(--mid); }
.hero-row .actions { margin: 0; flex: none; }

.route { margin: 0; background: var(--ink-800); border: 1px solid var(--rule-dark); }
.route-cap { display: flex; justify-content: space-between; gap: var(--s4); padding: .8rem var(--s5); border-bottom: 1px solid var(--rule-dark); font: 600 var(--fs-label)/1.3 var(--font); font-stretch: 85%; text-transform: uppercase; letter-spacing: .09em; color: var(--mid); }
.route-cap span:last-child { color: var(--accent); }
.route-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; }
/* Sheet columns sit on the hero's 12-column grid: 3 | 1 | 4 | 1 | 3 */
.route-grid > :nth-child(1), .route-grid > :nth-child(5) { grid-column: span 3; }
.route-grid > :nth-child(2), .route-grid > :nth-child(4) { grid-column: span 1; }
.route-grid > :nth-child(3) { grid-column: span 4; }
.route-col { padding: var(--s5); }
.route-col .label { color: var(--low); }
.route-col h2 { font-size: 1.25rem; font-stretch: 100%; letter-spacing: 0; margin: 0 0 var(--s4); }
.route-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.route-list li { padding: .55rem 0; border-top: 1px solid var(--rule-dark); color: var(--hi); font-weight: 500; }
.route-hub { background: var(--ink-700); border-left: 1px solid var(--rule-dark); border-right: 1px solid var(--rule-dark); }
.route-hub .label { color: var(--accent); }
.route-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.route-steps li { counter-increment: step; display: flex; gap: var(--s3); align-items: baseline; padding: .55rem 0; border-top: 1px solid var(--rule-dark); color: var(--hi); font-weight: 500; }
.route-steps li::before { content: counter(step, decimal-leading-zero); font-size: var(--fs-small); font-variant-numeric: tabular-nums; color: var(--accent); }
.route-link { position: relative; display: grid; place-items: center end; }
.route-link::before, .route-link::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--rule-strong); }
.route-link::after { background: var(--accent); height: 2px; margin-top: -.5px; transform-origin: left center; }
.route-link span { position: relative; z-index: 1; width: 10px; height: 10px; margin-right: 1px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .route-link::after { animation: route-draw .6s var(--ease) .1s both; }
  .route-link + .route-hub + .route-link::after { animation-delay: .45s; }
}
@keyframes route-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }


/* Cells (cards) */
.card { display: flex; flex-direction: column; background: var(--surface); border: 0; border-radius: 0; padding: clamp(1.5rem, 2.5vw, 2rem); color: inherit; }
.card p { color: var(--fg-mid); }
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-bottom: .45em; }
.card-link { text-decoration: none; transition: background-color .15s var(--ease); }
.card-link:hover { background: var(--surface-hover); color: inherit; }
.card-link:hover h2, .card-link:hover h3 { color: var(--link); }
.card-link .link-arrow { margin-top: auto; padding-top: var(--s4); }
.card-icon { display: block; width: 32px; height: 32px; margin-bottom: var(--s6); color: var(--link); }
.card-icon svg { width: 32px; height: 32px; stroke-width: 1.5; }
.card-icon-lg { width: 48px; height: 48px; margin: 0 auto var(--s5); }
.card-icon-lg svg { width: 48px; height: 48px; }
.card-media { display: grid; place-items: center; height: 160px; margin: calc(-1 * clamp(1.5rem, 2.5vw, 2rem)) calc(-1 * clamp(1.5rem, 2.5vw, 2rem)) var(--s5); color: var(--fg-low); border-bottom: 1px solid var(--rule); background-color: var(--surface-2); }
.card-media svg { width: 40px; height: 40px; stroke-width: 1.25; }
.card-product .badge { align-self: flex-start; }
.grid:has(> .card) > .card-dashed { outline-style: dashed; outline-color: var(--rule-strong); background: transparent; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 0; padding: clamp(1.75rem, 3.5vw, 3rem); }
.panel > :last-child { margin-bottom: 0; }
.panel p { color: var(--fg-mid); }
.panel .btn { margin-top: var(--s3); }
.panel-dark { background: var(--surface); }

/* Technology index: one ruled row per technology */
.grid-3:has(> .card-link > .card-icon) { grid-template-columns: 1fr; }
.grid-3:has(> .card-link > .card-icon) > .card-link { display: grid; grid-template-columns: 28px minmax(200px, 1fr) minmax(0, 2fr) auto; column-gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; padding: 1.25rem clamp(1.25rem, 2.5vw, 2rem); }
.grid-3:has(> .card-link > .card-icon) > .card-link > * { margin: 0; padding-top: 0; }
.grid-3:has(> .card-link > .card-icon) > .card-link > .card-icon, .grid-3:has(> .card-link > .card-icon) > .card-link > .card-icon svg { width: 28px; height: 28px; }

/* Steps (a real sequence: numbers carry order) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps li { background: var(--surface); padding: clamp(1.5rem, 2.5vw, 2rem); }
.steps p { color: var(--fg-mid); margin: 0; }
.step-num { display: block; font: 600 2.25rem/1 var(--font); font-stretch: 85%; font-variant-numeric: tabular-nums; color: var(--link); margin-bottom: var(--s6); }

/* Tags, badges, lists */
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 .chips, .grid-3 .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips > li { background: var(--surface); }
.chip { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 56px; padding: .8rem var(--s4); text-decoration: none; color: var(--fg); font-weight: 500; transition: background-color .15s var(--ease), color .15s var(--ease); }
.chip::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); color: var(--fg-low); flex: none; transition: transform .2s var(--ease), color .15s; }
.chip:hover { background: var(--surface-hover); color: var(--link); }
.chip:hover::after { color: var(--link); transform: translateX(3px) rotate(45deg); }
.badge { display: inline-flex; align-items: center; gap: .5rem; font: 600 var(--fs-label)/1 var(--font); font-stretch: 90%; text-transform: uppercase; letter-spacing: .07em; padding: .45rem .65rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); color: var(--fg); margin-bottom: var(--s4); }
.badge::before { content: ""; width: 8px; height: 8px; background: var(--fg-low); flex: none; }
.badge-available_latam::before { background: var(--accent); }
.badge-on_request::before { background: var(--fg-mid); }
.badge-not_available_latam::before { background: var(--amber); }
.list-check, .list-x, .list-plain { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.list-check li, .list-x li { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid var(--rule); }
.list-check li:first-child, .list-x li:first-child { border-top: 0; padding-top: 0; }
.list-check svg { flex: none; color: var(--link); margin-top: .25rem; }
.list-x svg { flex: none; color: var(--fg-low); margin-top: .25rem; }
.list-plain li { padding: .55rem 0; border-top: 1px solid var(--rule); }
.list-plain li:first-child { border-top: 0; padding-top: 0; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 var(--s6); padding: 0; font-size: var(--fs-small); color: var(--fg-low); }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--rule-strong); }
.breadcrumbs a { color: var(--fg-mid); }
.breadcrumbs a:hover { color: var(--fg); }

/* Product */
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.product-media img, .media-placeholder { width: 100%; aspect-ratio: 16 / 13; border-radius: 0; object-fit: cover; border: 1px solid var(--rule); }
.media-placeholder { display: grid; place-items: center; color: var(--fg-low); background-color: var(--surface); }
/* Spec drawing frame: schematic, height callout, title block */
.spec-frame { display: flex; flex-direction: column; align-items: stretch; }
.frame-art { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; padding: var(--s6); }
.spec-frame .frame-art svg { width: 220px; height: 220px; stroke-width: .45; color: var(--fg-mid); }
.frame-dim { position: relative; flex: none; width: 1px; height: 170px; margin-top: -4px; background: var(--accent); }
.frame-dim::before, .frame-dim::after { content: ""; position: absolute; left: -6px; width: 13px; height: 1px; background: var(--accent); }
.frame-dim::before { top: 0; }
.frame-dim::after { bottom: 0; }
.frame-dim span { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); white-space: nowrap; font: 600 .875rem/1 var(--font); font-variant-numeric: tabular-nums; color: var(--accent); }
.frame-block { display: grid; grid-template-columns: 1.6fr 1fr 1fr; border-top: 1px solid var(--rule); }
.frame-block span { padding: .7rem 1rem; font: 600 var(--fs-label)/1.35 var(--font); font-stretch: 85%; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-mid); }
.frame-block span + span { border-left: 1px solid var(--rule); }
.frame-block span:first-child { color: var(--fg); }
.media-placeholder svg { width: 64px; height: 64px; stroke-width: 1; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); margin: var(--s5) 0; }
.specs div { background: var(--surface); padding: .85rem 1rem; }
.specs dt { font: 600 var(--fs-label)/1.3 var(--font); font-stretch: 85%; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-low); margin-bottom: .35rem; }
.specs dd { margin: 0; font: 600 1.25rem/1.2 var(--font); font-variant-numeric: tabular-nums; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.spec-table th, .spec-table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--fg-mid); width: 50%; }
.spec-table td { font-weight: 600; }

/* Prose */
.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s7); font-size: 1.6rem; }
.prose h3 { margin-top: var(--s6); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--link); }
.prose-article { font-size: 1.125rem; }
.container.prose-article { max-width: 880px; }
.container.prose-article > * { max-width: 42rem; }
.sources { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rule); font-size: .9rem; color: var(--fg-mid); }
.sources ol { padding-left: 1.2rem; }
.related { margin-top: var(--s5); font-weight: 500; }

/* Stats */
.stats { margin-bottom: var(--s4); }
.stat { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem); }
.stat-value { display: block; font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 var(--font); font-stretch: 85%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--fg); margin-bottom: var(--s4); }
.stat-label { display: block; color: var(--fg-mid); max-width: 32ch; }

/* CTA band, trust */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: var(--s6); }
.cta-band h2 { margin: 0; max-width: 24ch; }
.cta-band p { margin: .6rem 0 0; }
.cta-band .btn { flex: none; }
.trust { display: flex; justify-content: space-between; align-items: center; gap: var(--s6); }
.trust p { margin: 0; color: var(--fg-mid); max-width: 90ch; }
.trust strong { color: var(--fg); }
body:has(.trust) .footer-note { display: none; }

/* Forms (paper context for long input) */
.tabs { display: flex; gap: 0; margin-bottom: -1px; }
.tab { display: inline-flex; align-items: center; min-height: 48px; padding: .8rem 1.25rem; border: 1px solid var(--rule-dark); border-bottom: 0; text-decoration: none; color: var(--mid); font-weight: 600; background: var(--ink-800); }
.tab + .tab { border-left: 0; }
.tab[aria-selected="true"] { background: var(--paper); color: var(--ink-900); border-color: var(--rule-light); }
.form-card { background: var(--paper); border: 1px solid var(--rule-light); border-radius: 0; padding: clamp(1.25rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s5); margin-bottom: var(--s5); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9375rem; color: var(--fg); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--fg); background: #FFFFFF; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: .75rem .9rem; min-height: 48px; width: 100%; transition: border-color .15s var(--ease); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-mid); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 0; border-color: var(--accent-ink); }
.field [aria-invalid="true"], .field .is-invalid { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: .875rem; font-weight: 500; margin: 0; }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .7rem; }
.field-check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: .2rem; flex: none; accent-color: var(--accent-ink); padding: 0; }
.field-check label { flex: 1; font-weight: 400; }
.field-check .field-error { flex-basis: 100%; }
.form-alert { background: #FCE9E7; color: var(--red); border: 1px solid #E8B4AE; border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: var(--s5); font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.type-choice { border: 0; padding: 0; margin: 0 0 var(--s5); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px; }
.type-choice legend { font-weight: 600; margin-bottom: var(--s3); padding: 0; }
.type-choice label { display: flex; align-items: center; gap: .7rem; min-height: 56px; padding: .85rem 1rem; outline: 1px solid var(--rule-strong); background: #FFFFFF; cursor: pointer; font-weight: 500; transition: background-color .15s var(--ease); }
.type-choice label:hover { background: var(--paper-2); }
.type-choice label:has(input:checked) { outline: 2px solid var(--accent-ink); outline-offset: -1px; background: var(--accent-wash); position: relative; z-index: 1; }
.type-choice label:has(input:focus-visible) { outline: 2px solid var(--ink-900); outline-offset: 2px; position: relative; z-index: 2; }
.type-choice input { accent-color: var(--accent-ink); width: 1.15rem; height: 1.15rem; flex: none; margin: 0; }
.lead-form .form-grid { margin-bottom: var(--s5); }
.lead-form .field-check { margin-bottom: var(--s5); }
.form-status { margin: var(--s4) 0 0; padding: .85rem 1rem; border-radius: var(--radius); font-weight: 500; border: 1px solid; }
.form-ok { background: var(--accent-wash); color: #00534F; border-color: #9FD4D1; }
.form-error { background: #FCE9E7; color: var(--red); border-color: #E8B4AE; }
#contacto, #contact { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Footer */
.site-footer { background: var(--ink-900); color: var(--low); padding: clamp(3rem, 6vw, 4.5rem) 0 var(--s6); font-size: .9375rem; border-top: 1px solid var(--rule-dark); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s6) var(--s7); }
.footer-brand p { margin: var(--s4) 0 0; max-width: 40ch; color: var(--mid); }
.site-footer a { color: var(--hi); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: .6rem; }
.footer-note, .footer-copy { grid-column: 1 / -1; margin: 0; font-size: .8125rem; color: var(--low); }
.footer-note { border-top: 1px solid var(--rule-dark); padding-top: var(--s5); max-width: none; }
.footer-copy { margin-top: calc(-1 * var(--s3)); }
.footer-note + .footer-copy { margin-top: 0; }

/* Consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-left: auto; background: var(--paper); border: 1px solid var(--rule-light); border-radius: 0; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); padding: 18px 20px; font-size: .9rem; }
.consent[hidden] { display: none; }
.consent-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Root language page and 404 */
.root-page { background: var(--ink-900); color: var(--hi); }
.root-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 48px var(--gutter);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 80px 80px; background-position: center; }
.root-inner { width: 100%; max-width: 760px; background: var(--ink-800); border: 1px solid var(--rule-dark); }
.root-inner .logo, .root-code { display: flex; justify-content: flex-start; margin: 0; padding: var(--s5) clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--rule-dark); }
.root-code { font: 700 2.5rem/1 var(--font); font-stretch: 85%; font-variant-numeric: tabular-nums; color: var(--accent); }
.root-hero h1, .root-hero > .root-inner > p { padding: 0 clamp(1.5rem, 4vw, 2.5rem); }
.root-hero h1 { margin: var(--s6) 0 var(--s4); font-size: clamp(2rem, 5vw, 3.2rem); }
.root-hero h1 span, .root-hero p span { display: block; }
.root-es { color: var(--mid); font-size: .8em; margin-top: .4rem; }
.root-hero p { color: var(--mid); margin-bottom: var(--s6); }
.root-hero p span:first-child { color: var(--hi); }
.root-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--rule-dark); }
.root-actions .btn { min-height: 64px; border-radius: 0; border: 0; justify-content: space-between; padding: 1rem clamp(1.5rem, 4vw, 2.5rem); }
.root-actions .btn + .btn { border-left: 1px solid var(--rule-dark); }
.root-actions .btn-outline-light:hover { background: var(--ink-700); }

/* Responsive */
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink-900); border-bottom: 1px solid var(--rule-dark); padding: var(--s2) var(--gutter) var(--s5); flex-direction: column; align-items: stretch; gap: var(--s4); max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: 0 16px 32px rgba(0, 0, 0, .4); }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { min-height: 52px; border-bottom: 1px solid var(--rule-dark); margin: 0; font-size: 1.0625rem; }
  .main-nav ul a[aria-current="page"] { border-bottom-color: var(--rule-dark); box-shadow: inset 0 -2px 0 var(--accent); }
  .nav-actions { justify-content: space-between; }
  .steps-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .product-hero, .grid-2, .grid-3, .footer-inner { grid-template-columns: 1fr; }
  .steps, .steps-5 { grid-template-columns: 1fr; }
  .step-num { margin-bottom: var(--s4); }
  .cta-band, .trust, .section-head-row { flex-direction: column; align-items: flex-start; }
  .route-grid { grid-template-columns: 1fr; }
  .route-grid > * { grid-column: 1 / -1 !important; }
  .product-hero .product-media { order: 2; }
  .product-media .spec-frame { aspect-ratio: auto; }
  .route-hub { border-left: 0; border-right: 0; }
  .route-link { height: 44px; place-items: end center; }
  .route-link span { margin: 0 0 1px; transform: rotate(135deg); }
  .route-link::before, .route-link::after { top: 0; bottom: 0; left: 50%; right: auto; width: 1px; height: auto; }
  .route-link::after { width: 2px; margin: 0 0 0 -.5px; transform-origin: center top; }
  @keyframes route-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  .route-cap { flex-direction: column; gap: .25rem; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Technology cells become a compact index on phones */
  .grid-3:has(> .card-link > .card-icon) > .card-link { grid-template-columns: 28px 1fr; column-gap: var(--s4); align-items: start; padding: var(--s5); }
  .grid-3:has(> .card-link > .card-icon) > .card-link > * { grid-column: 2; }
  .grid-3:has(> .card-link > .card-icon) > .card-link > .card-icon { grid-column: 1; grid-row: 1 / span 3; }
  .grid-3:has(> .card-link > .card-icon) > .card-link > p { margin-top: .3rem; }
  .grid-3:has(> .card-link > .card-icon) > .card-link > .link-arrow { padding-top: var(--s2); }
}
@media (max-width: 560px) {
  .grid-4, .form-grid, .specs, .type-choice { grid-template-columns: 1fr; }
  .tabs .tab { flex: 1; justify-content: center; padding: .8rem .5rem; font-size: .9rem; }
  .actions .btn, .hero-row .actions .btn, .cta-band .btn { width: 100%; }
  .hero-row .actions { width: 100%; }
  .chips { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 2rem; }
  .hero h1 { margin-bottom: var(--s5); }
  .hero-row { margin-bottom: var(--s6); }
  .route-col { padding: var(--s4) 1.25rem; }
  .route-col .label { margin-bottom: var(--s2); }
  .route-list li { padding: .45rem 0; }
  .route-link { height: 32px; }
  .frame-block { grid-template-columns: 1fr; }
  .frame-block span + span { border-left: 0; border-top: 1px solid var(--rule); }
  .spec-frame .frame-art { padding: var(--s5); }
  .spec-frame .frame-art svg { width: 120px; height: 120px; }
  .frame-dim { height: 93px; margin-top: -2px; }
  .root-actions { grid-template-columns: 1fr; }
  .root-actions .btn + .btn { border-left: 0; border-top: 1px solid var(--rule-dark); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
