/* ==========================================================================
   QSAS Data — landing (home) and legal pages.
   Look: technical datasheet on paper, control-room screens in brand navy.
   Brand colours come from img/brand/lockup-color.svg (navy #152238,
   teal #0ea5b8, orange #f5a623) and are used sparingly.
   Charts on dark screens, validated with the dataviz palette checker
   (surface #132033): consumption #a3afbf (grey, de-emphasis) with the
   warning state #d07c0c, ΔE 17.9 under CVD; teal #0ea5b8 + #d07c0c pass all
   checks. Text tokens: ink-3 on paper 5.3:1, accent-ink on paper 4.9:1.
   ========================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter/Inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter/Inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter/Inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter/Inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/literata/literata-400.woff2') format('woff2'); }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/literata/literata-600.woff2') format('woff2'); }

:root {
  --paper: #f3f0e9;
  --paper-2: #ebe6dc;
  --card: #faf8f3;
  --ink: #15191f;
  --ink-2: #3b414a;
  --ink-3: #5e636b;
  --rule: #d8d1c3;
  --rule-strong: #b9b09e;
  --accent: #f5a623;
  --accent-hover: #e6951a;
  --accent-ink: #9a5800;

  --navy: #152238;
  --navy-2: #1c2c45;
  --navy-deep: #0e1827;
  --on-navy: #e9edf2;
  --on-navy-2: #a3afbf;
  --on-navy-3: #8794a6;
  --rule-navy: rgba(163, 175, 191, .2);
  --teal: #0ea5b8;
  --alarm: #d07c0c;
  --data: #a3afbf;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Literata', Georgia, serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --radius-lg: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Anchor jumps clear the sticky header on the pages with the new menu; the legal pages keep their behaviour. */
html:has(.nav-wide) { scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .bench :focus-visible, .legal-hero :focus-visible { outline-color: var(--on-navy); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.015em; }
h3, h4 { font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow, .kicker {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.dark .eyebrow, .tailored .eyebrow { color: var(--on-navy-2); }

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); margin-top: 14px; }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--ink-2); }
.dark { background: var(--navy); color: var(--on-navy); }
.dark .section-head p { color: var(--on-navy-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--navy); color: #fff; }
.dark .btn-primary, .site-header .btn-primary { background: var(--accent); color: var(--ink); }
.dark .btn-primary:hover, .site-header .btn-primary:hover { background: var(--accent-hover); color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--paper-2); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header (shared with the legal pages) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid var(--rule-navy); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--on-navy-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-links .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
.nav-menu { display: none; }
.nav-menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius); color: var(--on-navy); border: 1px solid var(--rule-navy);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { width: 22px; height: 22px; }
.nav-menu-panel {
  position: absolute; left: 0; right: 0; top: 68px; padding: 8px var(--gutter) 24px;
  background: var(--navy); border-bottom: 1px solid var(--rule-navy);
  display: grid; gap: 0;
}
.nav-menu-panel a { color: var(--on-navy); text-decoration: none; padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--rule-navy); }
.nav-menu-panel .btn { margin-top: 16px; border-bottom: 0; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
}
/* Main menu with groups (.nav-wide): dropdowns are <details>, so they work without JavaScript.
   The legal pages keep the short menu and the 920px breakpoint above. */
.nav-wide .nav-links { gap: 24px; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-drop { position: relative; }
.nav-drop summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; min-height: 44px;
  color: var(--on-navy-2); font-size: 15px; font-weight: 500;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after {
  content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-drop[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-drop summary:hover, .nav-drop[open] summary, .nav-drop.current summary { color: #fff; }
.nav-drop-panel {
  position: absolute; top: calc(100% + 12px); left: -14px; min-width: 250px; padding: 6px;
  display: grid; background: var(--navy); border: 1px solid var(--rule-navy); border-radius: var(--radius);
}
.nav-links .nav-drop-panel a { color: var(--on-navy); padding: 10px 12px; border-radius: 4px; }
.nav-links .nav-drop-panel a:hover { background: var(--navy-2); color: #fff; }
.nav-wide .nav-menu-panel { max-height: calc(100vh - 68px); overflow-y: auto; }
.nav-menu-panel .nav-group {
  margin: 18px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--rule-navy);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-3);
}
.nav-menu-panel a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
/* Language switcher, only on pages with a Catalan and an English version: plain links, current language underlined. */
.nav-lang { display: flex; align-items: center; gap: 2px; }
.nav-links .nav-lang a, .nav-menu-panel .nav-lang a {
  display: inline-grid; place-items: center; min-width: 34px; min-height: 44px; padding: 0 4px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--on-navy-3); border-bottom: 0;
}
.nav-links .nav-lang a:hover, .nav-menu-panel .nav-lang a:hover { color: #fff; }
.nav-lang a[aria-current="true"] { color: #fff; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.nav-menu-panel .nav-lang { gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--rule-navy); }
.nav-menu-panel .nav-lang a { min-width: 44px; font-size: 14px; }
@media (max-width: 1080px) {
  .nav-wide .nav-links { display: none; }
  .nav-wide .nav-menu { display: block; }
}

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--rule); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
  padding-block: clamp(44px, 6vw, 88px) clamp(56px, 7vw, 96px);
}
.hero h1 { margin-top: 18px; font-size: clamp(36px, 3.3vw, 48px); line-height: 1.06; }
.hero-lead { margin-top: 24px; font-size: clamp(18px, 1.5vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.access { display: grid; gap: 8px; margin-top: 30px; }
.access-k { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.access ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.access a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule-strong);
}
.access a:hover { color: var(--ink); border-color: var(--ink); }
.sector-list .more { margin-left: 4px; font-weight: 600; white-space: nowrap; }
.sector-list .more::after { content: " →"; }

/* inner pages (sector pages) */
.hero-page .wrap { padding-block: clamp(44px, 6vw, 88px) clamp(48px, 6vw, 80px); }
.hero-page h1 { max-width: 16em; }
.hero-page .hero-lead { max-width: 40em; }
.flowline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); counter-reset: flow; }
.flowline li { position: relative; padding: 18px 28px 6px 0; }
.flowline li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.flowline li::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); display: block; font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.flowline li:not(:last-child)::after { content: "→"; position: absolute; right: 8px; top: 18px; color: var(--ink-3); }
.flowline b { display: block; margin-top: 8px; font-size: 18px; font-weight: 600; }
.flowline span { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-3); }
@media (max-width: 860px) {
  .flowline { grid-template-columns: 1fr; }
  .flowline li, .flowline li + li { padding-left: 0; border-left: 0; }
  .flowline li + li { border-top: 1px solid var(--rule); margin-top: 12px; }
  .flowline li:not(:last-child)::after { content: "↓"; right: 0; }
}
.facts { margin: 32px 0 0; border-top: 1px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.facts dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.facts strong { color: var(--ink); font-weight: 600; }

/* ---------- rule simulator (hero) ---------- */
.bench {
  margin: 0; padding: clamp(16px, 2.2vw, 24px); border-radius: var(--radius-lg);
  background: var(--navy); color: var(--on-navy); border: 1px solid #24364f;
}
.bench-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.bench-title { font-family: var(--font); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.bench-tag { font-size: 12px; color: var(--on-navy-3); border: 1px solid var(--rule-navy); border-radius: 4px; padding: 1px 8px; }
.bench-hint { margin-top: 4px; font-size: 14px; color: var(--on-navy-2); }
.bench-pick { display: block; margin-top: 14px; }
.bench-pick select, .bench-place {
  width: 100%; min-height: 44px; padding: 10px 40px 10px 12px; border-radius: var(--radius);
  font: inherit; font-size: 15px; font-weight: 500; color: var(--on-navy);
  background: var(--navy-deep); border: 1px solid var(--rule-navy);
}
.bench-pick select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3afbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.bench-pick select option { background: var(--navy-deep); color: var(--on-navy); }
.bench-place { margin-top: 14px; }
.bench.is-live .bench-place { display: none; }
.bench:not(.is-live) .bench-hint,
.bench:not(.is-live) .bench-pick,
.bench:not(.is-live) .rule-top,
.bench:not(.is-live) .step button { display: none; }

.rule { margin-top: 12px; border: 1px solid var(--rule-navy); border-radius: var(--radius); }
.rule-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; padding: 6px 12px; border-bottom: 1px solid var(--rule-navy); }
.rule-name { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-3); }
.rule-row { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--rule-navy); align-items: baseline; }
.rule-row:last-child { border-bottom: 0; }
.rule-k { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-3); }
.rule-row p { font-size: 15px; color: var(--on-navy); }
.step { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.step button {
  width: 28px; height: 28px; padding: 0; border-radius: 4px; cursor: pointer;
  font: inherit; font-size: 17px; line-height: 1; color: var(--on-navy);
  background: transparent; border: 1px solid var(--rule-navy);
}
.step button:hover:not(:disabled) { background: rgba(163, 175, 191, .12); }
.step button:disabled { opacity: .35; cursor: default; }
.step output { min-width: 3.1em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.rule-switch {
  display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 2px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--on-navy); background: none; border: 0;
}
.rule-switch .sw { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #3a4a62; transition: background-color .2s ease; }
.rule-switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.rule-switch[aria-checked="true"] .sw { background: var(--teal); }
.rule-switch[aria-checked="true"] .sw::after { transform: translateX(16px); }

.bench-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.bench-figs > div { border-top: 1px solid var(--rule-navy); padding-top: 10px; }
.bench-figs span { display: block; font-size: 12px; color: var(--on-navy-3); }
.bench-figs b { display: block; margin-top: 2px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.01em; color: var(--on-navy); }
.bench-figs small { display: block; min-height: 1.4em; font-size: 12px; color: var(--on-navy-3); }

.plot-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-top: 18px; }
.plot-title { font-size: 13px; font-weight: 600; color: var(--on-navy-2); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--on-navy-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: block; }
.k-bar { width: 10px; height: 10px; border-radius: 2px; background: var(--data); }
.k-alarm { width: 10px; height: 10px; border-radius: 2px; background: var(--alarm); }
.k-ref { width: 12px; height: 2px; background: var(--on-navy); }
.k-band { width: 12px; height: 10px; border-radius: 2px; background: rgba(163, 175, 191, .16); }
.plot { position: relative; height: clamp(120px, 15vw, 150px); margin-top: 26px; border-bottom: 1px solid rgba(163, 175, 191, .45); }
.gl { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(163, 175, 191, .14); }
.gl i { position: absolute; left: 0; bottom: 3px; font-style: normal; font-size: 11px; line-height: 1; color: var(--on-navy-3); }
.gl-top { top: 0; }
.gl-mid { top: 50%; }
.cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.col { position: relative; height: 100%; }
.col.win { background: rgba(163, 175, 191, .08); }
.bar, .ref { position: absolute; left: 1px; right: 1px; max-width: 24px; margin: 0 auto; }
.bar { bottom: 0; height: calc(var(--v) * 100%); border-radius: 3px 3px 0 0; background: var(--data); }
.col.alarm .bar { background: var(--alarm); }
.ref { display: none; bottom: calc(var(--b) * 100% - 1px); height: 2px; background: var(--on-navy); }
.bench.is-on .col.win .ref { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .bench.is-live .bar { transition: height .5s cubic-bezier(.2, .8, .2, 1), background-color .25s ease; }
}
.tip {
  position: absolute; top: -8px; left: clamp(84px, calc(var(--x, .5) * 100%), calc(100% - 84px)); transform: translate(-50%, -100%);
  max-width: 200px; padding: 6px 9px; border-radius: 4px; pointer-events: none;
  font-size: 12px; line-height: 1.35; color: var(--on-navy); background: var(--navy-deep); border: 1px solid var(--rule-navy);
}
.tip[hidden] { display: none; }
.ticks { position: relative; height: 18px; margin-top: 6px; font-size: 11px; color: var(--on-navy-3); font-variant-numeric: tabular-nums; }
.ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ticks span:nth-child(1) { left: 0; transform: none; }
.ticks span:nth-child(2) { left: 25%; }
.ticks span:nth-child(3) { left: 50%; }
.ticks span:nth-child(4) { left: 75%; }
.ticks span:nth-child(5) { left: 100%; transform: translateX(-100%); }

.log { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--rule-navy); }
.ev { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule-navy); font-size: 13px; line-height: 1.45; color: var(--on-navy-2); }
.ev time { color: var(--on-navy-3); font-variant-numeric: tabular-nums; }
.ev-alarm { color: var(--on-navy); }
.ev-alarm svg { display: inline-block; width: 14px; height: 14px; margin: 0 4px -2px 0; fill: none; stroke: var(--alarm); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev-alarm b { font-weight: 600; }
.ev-note { color: var(--on-navy-3); }

.bench-data { margin-top: 10px; font-size: 13px; color: var(--on-navy-2); }
.bench-data summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.bench-data table { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.bench-data caption { text-align: left; padding-bottom: 6px; color: var(--on-navy-3); }
.bench-data th, .bench-data td { padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--rule-navy); font-weight: 400; }
.bench-data th:first-child { text-align: left; }
.bench-data thead th { color: var(--on-navy-3); font-weight: 600; }

/* ---------- shared section pieces ---------- */
.band { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.split-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(32px, 6vw, 88px); align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.split-head h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 48px); }
.split-head > p { font-size: 18px; color: var(--ink-2); max-width: 36em; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }

/* ---------- how we work ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps li { display: flex; flex-direction: column; padding: 20px 24px 4px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.step-n { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.steps h3 { margin-top: 8px; font-family: var(--font-serif); font-size: 24px; }
.steps p { margin-top: 10px; font-size: 16px; color: var(--ink-3); }
.steps .step-d { margin-top: auto; padding-top: 18px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 20px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); margin-top: 16px; }
}

/* ---------- rental portfolios ---------- */
.deliver { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.deliver li { padding-top: 16px; border-top: 1px solid var(--ink); }
.deliver h3 { font-size: 18px; }
.deliver p { margin-top: 8px; font-size: 15px; color: var(--ink-3); }
@media (max-width: 980px) { .deliver { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 560px) { .deliver { grid-template-columns: 1fr; gap: 22px; } }

.who { margin-top: clamp(56px, 8vw, 88px); }
.who-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 48px; align-items: baseline; margin-bottom: 20px; }
.who-head h3 { font-family: var(--font-serif); font-size: clamp(24px, 2.6vw, 30px); }
.who-head p { color: var(--ink-2); font-size: 17px; }
.who-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.who-table th, .who-table td { padding: 14px 20px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.who-table thead th { padding-top: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.who-table tbody th { width: 22%; font-weight: 600; color: var(--ink); }
.who-table td { color: var(--ink-2); }
@media (max-width: 860px) {
  .who-head { grid-template-columns: 1fr; }
  .who-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .who-table, .who-table tbody, .who-table tr, .who-table th, .who-table td { display: block; width: auto; }
  .who-table tr { padding: 14px 0; border-top: 1px solid var(--ink); }
  .who-table tbody th { width: auto; padding: 0 0 6px; border: 0; }
  .who-table td { padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .who-table td:last-child { border-bottom: 0; }
  .who-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
}
.rental .segment-res, #alquiler .segment-res, #lloguer .segment-res, #rental .segment-res { margin-top: clamp(56px, 8vw, 88px); }

/* common-area thermostat app (mock-ups with example data) */
.case { margin-top: clamp(56px, 8vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px clamp(32px, 5vw, 64px); align-items: center; }
.case h3 { margin-top: 10px; font-family: var(--font-serif); font-size: clamp(24px, 2.6vw, 30px); }
.case-copy > p { margin-top: 12px; max-width: 34em; font-size: 16px; color: var(--ink-2); }
.case-phones { display: flex; gap: 20px; align-items: flex-start; }
.case-phones .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 980px) { .case { grid-template-columns: 1fr; } .case-phones { justify-content: center; } }
@media (max-width: 600px) {
  .case-phones { flex-direction: column; align-items: center; }
  .case-phones .phone:nth-child(2) { margin-top: 0; }
}
.tm .phone-screen { padding: 20px 12px 14px; }
.tm-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; color: var(--on-navy-3); }
.tm-top b { font-size: 14px; font-weight: 600; color: #fff; }
.tm-rooms { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tm-rooms li { display: grid; gap: 1px; padding: 9px; border-radius: var(--radius); border: 1px solid var(--rule-navy); }
.tm-rooms li.on { border-color: rgba(14, 165, 184, .6); }
.tm-name { font-size: 12px; font-weight: 600; color: var(--on-navy); }
.tm-temp { margin-top: 2px; font-size: 22px; font-weight: 600; color: #fff; }
.tm-set, .tm-state { font-size: 11px; line-height: 1.35; color: var(--on-navy-3); }
.tm-rooms li.on .tm-state { color: var(--on-navy-2); }
.tm-rooms li.off .tm-temp { color: var(--on-navy-3); }
.tm-rooms li.off .tm-set::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--alarm); }
.tm-rule { margin-top: 10px; padding: 9px 10px; border-radius: var(--radius); border: 1px solid var(--rule-navy); font-size: 11px; line-height: 1.4; color: var(--on-navy-2); }
.tm-rule b { display: block; margin-bottom: 1px; font-size: 12px; color: #fff; }
.tm-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--rule-navy); border-radius: var(--radius); overflow: hidden; text-align: center; font-size: 11px; }
.tm-seg span { padding: 6px 0; color: var(--on-navy-2); }
.tm-seg .sel { background: rgba(163, 175, 191, .16); color: #fff; font-weight: 600; }
.tm-usage { display: grid; gap: 9px; margin-top: 12px; }
.tm-usage div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; font-size: 12px; color: var(--on-navy-2); }
.tm-usage b { font-weight: 600; color: #fff; }
.tm-usage i { grid-column: 1 / -1; position: relative; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(163, 175, 191, .2); }
.tm-usage i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--p) * 100%); border-radius: 2px; background: var(--teal); }
.tm-chart { margin-top: 14px; }
.tm-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 4px; font-size: 10px; color: var(--on-navy-2); }
.tm-legend i { display: inline-block; width: 12px; height: 2px; margin-right: 4px; vertical-align: middle; }
.l-real { background: var(--teal); }
.l-set { background: repeating-linear-gradient(90deg, var(--on-navy-2) 0 3px, transparent 3px 5px); }
.l-on { height: 5px !important; border-radius: 1px; background: var(--teal); opacity: .55; }
.tm-chart svg { width: 100%; height: auto; overflow: visible; }
.tm-chart svg text { font-size: 10px; fill: var(--on-navy-3); font-family: var(--font); }
.tm-grid-l line { stroke: rgba(163, 175, 191, .14); stroke-width: .8; }
.tm-set-l { stroke: var(--on-navy-2); stroke-width: 1; stroke-dasharray: 3 2; }
.tm-line { fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tm-off { fill: rgba(163, 175, 191, .18); }
.tm-on rect { fill: var(--teal); opacity: .55; }
.tm-days { display: flex; justify-content: space-between; padding: 3px 4px 0 20px; font-size: 10px; color: var(--on-navy-3); }

/* single-family home: live diagram and bill forecast (mock-ups with example data) */
.case-house { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
@media (max-width: 980px) { .case-house { grid-template-columns: 1fr; } }
.case-screens { display: grid; gap: 16px; }
.case-screens .screen { min-height: 0; margin: 0; }
.screen .panel-foot { color: var(--on-navy-3); }
.syn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.syn-chips span { padding: 1px 8px; border-radius: 4px; border: 1px solid var(--rule-navy); font-size: 11px; color: var(--on-navy-2); }
.syn-chips .on { border-color: rgba(14, 165, 184, .6); color: #fff; }
.syn-svg { width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.syn-svg text { font-family: var(--font); }
.syn-l { font-size: 11px; fill: var(--on-navy-3); }
.syn-v { font-size: 13px; font-weight: 600; fill: #fff; }
.syn-t { font-size: 12px; font-weight: 600; fill: var(--on-navy); }
.syn-box { fill: rgba(14, 24, 39, .55); stroke: var(--rule-navy); }
.syn-chip { fill: rgba(14, 165, 184, .16); stroke: rgba(14, 165, 184, .55); }
.syn-chip-t { font-size: 10.5px; font-weight: 600; fill: var(--on-navy); }
.syn-elec path { fill: none; stroke: #e0a800; stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .8; }
.syn-pv circle { fill: #e0a800; }
.syn-pv path { fill: none; stroke: #e0a800; stroke-width: 1.5; stroke-linecap: round; }
.syn-pv .syn-panel { fill: rgba(163, 175, 191, .1); stroke: var(--on-navy-2); stroke-width: 1.2; }
.syn-house path, .syn-grid-ic path { fill: none; stroke: var(--on-navy-2); stroke-width: 1.4; stroke-linejoin: round; }
.syn-pipe path { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.syn-pipe.hot path { stroke: #d9822c; }
.syn-pipe.cold path { stroke: #4f8fb0; }
.syn-flow path { fill: none; stroke: rgba(255, 255, 255, .65); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1.5 13; }
@media (prefers-reduced-motion: no-preference) {
  .syn-flow path { animation: syn-flow 1.4s linear infinite; }
}
@keyframes syn-flow { to { stroke-dashoffset: -14.5; } }
.syn-probe rect, .syn-probe-b { fill: rgba(14, 24, 39, .72); }
.syn-probe-t text { font-size: 11px; font-weight: 600; fill: #fff; }
.syn-coil { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; stroke-linejoin: round; }
.syn-list { display: none; list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule-navy); }
.syn-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule-navy); font-size: 13px; color: var(--on-navy-3); }
.syn-list b { font-weight: 600; color: #fff; text-align: right; }
@media (max-width: 640px) {
  .syn-svg { display: none; }
  .syn-list { display: block; }
}
.bill-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.bill-kpis div { padding-top: 8px; border-top: 1px solid var(--rule-navy); }
.bill-kpis span { display: block; font-size: 12px; color: var(--on-navy-3); }
.bill-kpis b { display: block; margin-top: 2px; font-size: 22px; font-weight: 600; color: #fff; }
.bill-kpis small { display: block; font-size: 11px; line-height: 1.35; color: var(--on-navy-3); }
.bill-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bill-table th, .bill-table td { padding: 6px 4px; border-bottom: 1px solid var(--rule-navy); }
.bill-table td { text-align: right; color: var(--on-navy); }
.bill-table thead th { font-size: 11px; font-weight: 600; color: var(--on-navy-3); text-align: right; }
.bill-table thead th:first-child, .bill-table tbody th, .bill-table tfoot th { text-align: left; }
.bill-table tbody th { font-weight: 400; color: var(--on-navy-2); }
.bill-table tfoot th, .bill-table tfoot td { font-weight: 600; color: #fff; border-top: 1px solid var(--on-navy-3); border-bottom: 0; }

/* ---------- platform view ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.feature { display: flex; flex-direction: column; }
.feature h3 { margin-top: 22px; font-size: 21px; }
.feature p { margin-top: 8px; color: var(--ink-3); font-size: 16px; }
.screen {
  padding: 18px; border-radius: var(--radius-lg); min-height: 330px; display: flex; flex-direction: column; color: var(--on-navy);
  background: var(--navy); border: 1px solid #24364f;
}
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } .screen { min-height: 0; } }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.chart-title { font-size: 13px; font-weight: 600; color: var(--on-navy-2); }
.screen .chart-title { margin-bottom: 12px; }
.screen > svg { margin-top: auto; margin-bottom: auto; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.k-pos { width: 10px; height: 10px; border-radius: 2px; background: var(--teal); }
.chart .pos { fill: var(--teal); }
.chart .neg, .chart .hi { fill: var(--alarm); }
.chart .base { stroke: rgba(163, 175, 191, .45); stroke-width: 1; }
.chart .grid { stroke: rgba(163, 175, 191, .14); stroke-width: 1; }
.chart .tick { fill: var(--on-navy-3); font-size: 11px; font-family: var(--font); }
.alerts-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule-navy); }
.alerts-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 2px; border-bottom: 1px solid var(--rule-navy); font-size: 13px; color: var(--on-navy-3); line-height: 1.4; }
.alerts-list b { display: block; color: var(--on-navy); font-size: 14px; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 4px; }
.dot.warn { background: var(--alarm); }
.dot.info { background: var(--teal); }
.dot.off { background: transparent; border: 2px solid var(--on-navy-3); }
.tank { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.tank-body { position: relative; height: 176px; border-radius: 44px; overflow: hidden; border: 1px solid rgba(163, 175, 191, .4); background: linear-gradient(180deg, #d9822c 0%, #cf9a4a 30%, #5b9cab 70%, #2f6b8a 100%); }
.probes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.probes li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule-navy); font-size: 13px; color: var(--on-navy-2); }
.probes b { white-space: nowrap; font-size: 18px; font-weight: 600; color: var(--on-navy); font-variant-numeric: tabular-nums; }

.controls { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule-navy); }
.controls li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 2px; border-bottom: 1px solid var(--rule-navy); font-size: 13px; color: var(--on-navy-3); line-height: 1.4; }
.controls b { display: block; color: var(--on-navy); font-size: 14px; font-weight: 600; }
.switch { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; background: #3a4a62; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.switch.on { background: var(--teal); }
.switch.on::after { transform: translateX(16px); }
.tag-prog { flex: none; font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; color: var(--on-navy-2); border: 1px solid var(--rule-navy); }

.tailored {
  margin-top: clamp(48px, 7vw, 72px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); color: var(--on-navy); background: var(--navy);
}
.tailored h3 { margin-top: 12px; font-family: var(--font-serif); font-size: clamp(26px, 3vw, 34px); color: #fff; }
.tailored-copy p { margin-top: 14px; color: var(--on-navy-2); font-size: 17px; }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule-navy); }
.roles li { padding: 14px 0; border-bottom: 1px solid var(--rule-navy); color: var(--on-navy-2); font-size: 15px; }
.roles b { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }
@media (max-width: 900px) { .tailored { grid-template-columns: 1fr; } }

/* ---------- install ---------- */
.install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.illus { position: relative; margin: 0; max-width: 560px; }
.illus img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--rule); }
.illus .badge {
  position: absolute; left: 16px; bottom: 16px; padding: 10px 14px; border-radius: var(--radius); background: var(--navy); color: #fff;
  font-size: 13px; line-height: 1.3;
}
.illus .badge b { display: block; font-size: 15px; }
.install-copy h2 { font-size: clamp(32px, 4vw, 48px); margin-top: 14px; }
.install-copy > p:not(.kicker) { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.callout { margin-top: 26px; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); }
.callout strong { display: block; font-size: 17px; }
.callout span { display: block; margin-top: 4px; color: var(--ink-3); font-size: 16px; }
.trades { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.trades li { display: flex; gap: 12px; align-items: flex-start; }
.trades svg { width: 22px; height: 22px; color: var(--accent-ink); flex: none; margin-top: 2px; }
.trades b { display: block; font-size: 16px; }
.trades span { font-size: 15px; color: var(--ink-3); }

/* ---------- other sectors ---------- */
.sector-list { margin: 0; border-top: 1px solid var(--ink); }
.sector-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 6px 48px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.sector-list dt { font-family: var(--font-serif); font-size: 21px; font-weight: 600; }
.sector-list dd { margin: 0; font-size: 17px; color: var(--ink-2); }
@media (max-width: 720px) { .sector-list > div { grid-template-columns: 1fr; } }

/* ---------- resident app ---------- */
.segment { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(24px, 3.2vw, 36px); }
.segment-res { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: center; }
.seg-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.segment h3 { margin-top: 10px; font-family: var(--font-serif); font-size: clamp(24px, 2.4vw, 30px); }
.seg-lead { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.seg-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.seg-list li { position: relative; padding-left: 18px; color: var(--ink-3); font-size: 15px; }
.seg-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--accent); }
.seg-list b { color: var(--ink); font-weight: 600; }
.phone { margin: 0; justify-self: center; width: 250px; padding: 10px; border-radius: 34px; background: var(--navy-deep); box-shadow: inset 0 0 0 2px #26364f; }
.phone-screen { border-radius: 26px; padding: 22px 14px 16px; background: var(--navy); color: var(--on-navy); }
.ph-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--on-navy-2); }
.ph-kwh { font-size: 22px; font-weight: 600; color: #fff; }
.ph-kwh small { font-size: 12px; color: var(--on-navy-2); font-weight: 600; }
.ph-legend { display: flex; gap: 12px; margin: 10px 0 6px; font-size: 11px; color: var(--on-navy-2); }
.ph-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ph-legend i { width: 9px; height: 9px; border-radius: 2px; display: block; }
.phone svg { width: 100%; height: auto; }
.phone .ph-lbl text { font-size: 10px; fill: var(--on-navy-2); font-family: var(--font); }
.b-v { fill: #0ea5b8; background: #0ea5b8; }
.b-l { fill: #8a7fd6; background: #8a7fd6; }
.b-p { fill: #d07c0c; background: #d07c0c; }
.ph-tip { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius); font-size: 12px; line-height: 1.4; color: var(--on-navy-2); border: 1px solid var(--rule-navy); }
.ph-tip b { display: block; color: #fff; font-size: 12px; margin-bottom: 2px; }
.panel-foot { margin-top: 10px; font-size: 11px; color: var(--ink-3); text-align: right; }
.phone .panel-foot { margin: 8px 6px 0; color: var(--on-navy-3); }
@media (max-width: 640px) { .segment-res { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list details:first-child { border-top: 1px solid var(--ink); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-size: 18px; font-weight: 600; min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--ink-3); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 640px; }

/* ---------- contact ---------- */
.contact { background: var(--navy); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(36px, 4.6vw, 56px); margin-top: 14px; color: #fff; }
.contact-lead { margin-top: 18px; font-size: 19px; color: var(--on-navy-2); max-width: 480px; }
.contact-ways { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule-navy); }
.contact-ways li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule-navy); }
.contact-ways .ico { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; color: var(--on-navy-2); border: 1px solid var(--rule-navy); flex: none; }
.contact-ways .ico svg { width: 20px; height: 20px; }
.contact-ways small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-3); }
.contact-ways a, .contact-ways b { color: #fff; font-weight: 600; text-decoration: none; }
.form {
  padding: clamp(22px, 3.6vw, 34px); border-radius: var(--radius-lg);
  background: var(--navy-2); border: 1px solid var(--rule-navy);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--on-navy-2); }
.field label .opt { color: var(--on-navy-3); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius); font: inherit; font-size: 16px;
  color: #fff; background: var(--navy-deep); border: 1px solid rgba(163, 175, 191, .3);
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--on-navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--on-navy-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.consent a { color: #fff; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: #9be8cf; }
.form-status.err { color: #ffb4a8; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer (shared with the legal pages) ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-3); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.footer-grid img { height: 28px; width: auto; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { color: var(--on-navy-2); text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-legal a[aria-current="page"] { color: #fff; text-decoration: underline; }
.section-more { margin-top: 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--on-navy); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-co a { color: inherit; text-decoration: none; }
.footer-co a:hover { color: #fff; text-decoration: underline; }
.footer-co { width: 100%; padding-top: 18px; border-top: 1px solid var(--rule-navy); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

/* ---------- legal pages ---------- */
.legal-hero { color: var(--on-navy); background: var(--navy); padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-navy-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.back-link:hover { color: #fff; }
.back-link svg { width: 18px; height: 18px; }
.legal-hero .wrap { max-width: 820px; }
.legal-hero h1 { margin-top: 12px; font-size: clamp(34px, 4.6vw, 52px); color: #fff; }
.legal-updated { margin-top: 12px; color: var(--on-navy-3); font-size: 15px; }
.prose { max-width: 820px; padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(64px, 9vw, 104px); color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); font-size: clamp(22px, 2.4vw, 28px); color: var(--ink); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 28px; font-size: 19px; color: var(--ink); }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 7px; height: 7px; background: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-family: var(--font-mono); font-size: .9em; padding: 2px 6px; border-radius: 4px; background: var(--paper-2); color: var(--ink); }
.prose a { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .install-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .facts > div { grid-template-columns: 1fr; }
  .rule-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .trades { grid-template-columns: 1fr; }
  .tank { grid-template-columns: 80px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .rule-switch .sw, .rule-switch .sw::after { transition: none; }
}

/* ---------- "Ver…" links that stand on their own line (Industria and the new pages) ---------- */
.section-more .more { display: inline-block; min-height: 44px; padding: 10px 0; line-height: 24px; font-weight: 600; }
.section-more .more::after { content: " →"; }

/* ---------- /servicios/ (body.pg-servicios) ---------- */
/* Servicios: index of the services, datasheet entries and the rules screen.
   Every selector is scoped to .pg-servicios; the parent moves this block into landing.css. */

/* Index of the five services, right under the hero */
.pg-servicios .svc-index { border-bottom: 1px solid var(--rule); }
.pg-servicios .svc-index ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pg-servicios .svc-index li + li { border-left: 1px solid var(--rule); }
.pg-servicios .svc-index a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 20px 26px; color: var(--ink); text-decoration: none; }
.pg-servicios .svc-index li:first-child a { padding-left: 0; }
.pg-servicios .svc-index li:last-child a { padding-right: 0; }
.pg-servicios .svc-index a:hover b { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pg-servicios .svc-index-n { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.pg-servicios .svc-index b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.pg-servicios .svc-index li:last-child b::after { content: "\00a0→"; }
.pg-servicios .svc-index-d { font-size: 14px; line-height: 1.45; color: var(--ink-3); }
@media (max-width: 980px) {
  .pg-servicios .svc-index ol { grid-template-columns: minmax(0, 1fr); }
  .pg-servicios .svc-index li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .pg-servicios .svc-index a,
  .pg-servicios .svc-index li:first-child a,
  .pg-servicios .svc-index li:last-child a { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 2px 8px; min-height: 44px; padding: 14px 0; }
  .pg-servicios .svc-index-n { grid-row: span 2; padding-top: 1px; }
}

/* One datasheet entry per service: heading on the left, specification table on the right */
.pg-servicios .svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 88px); align-items: start; }
.pg-servicios .svc-head { position: sticky; top: 108px; }
.pg-servicios .svc-n { display: inline-block; margin-right: 12px; padding-right: 12px; border-right: 1px solid var(--rule-strong); font-family: var(--font-serif); letter-spacing: 0; }
.pg-servicios .svc-head h2 { margin-top: 14px; font-size: clamp(30px, 3.4vw, 42px); }
.pg-servicios .svc-head > p:last-child { margin-top: 18px; max-width: 30em; font-size: 18px; color: var(--ink-2); }
@media (max-width: 980px) {
  .pg-servicios .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-servicios .svc-head { position: static; }
}

.pg-servicios .spec { width: 100%; border-collapse: collapse; font-size: 16px; }
.pg-servicios .spec th,
.pg-servicios .spec td { padding: 15px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.pg-servicios .spec tr:first-child > * { border-top: 1px solid var(--ink); }
.pg-servicios .spec th { width: 172px; padding-top: 18px; padding-right: 24px; font-size: 12px; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; color: var(--ink-3); }
.pg-servicios .spec td { color: var(--ink-2); }
.pg-servicios .spec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-servicios .spec li { position: relative; padding-left: 17px; }
.pg-servicios .spec li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--accent); }
.pg-servicios .spec li b { font-weight: 600; color: var(--ink); }
@media (max-width: 640px) {
  .pg-servicios .spec,
  .pg-servicios .spec tbody,
  .pg-servicios .spec tr,
  .pg-servicios .spec th,
  .pg-servicios .spec td { display: block; width: auto; }
  .pg-servicios .spec tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .pg-servicios .spec tr:first-child { border-top: 1px solid var(--ink); }
  .pg-servicios .spec th,
  .pg-servicios .spec td,
  .pg-servicios .spec tr:first-child > * { padding: 0; border: 0; }
  .pg-servicios .spec th { padding-bottom: 6px; }
}

.pg-servicios .svc-body > .callout { margin-top: 32px; }

/* Rules and orders already in use, drawn as a navy screen (diagram, no figures) */
.pg-servicios .svc-rules { min-height: 0; margin: clamp(40px, 5vw, 64px) 0 0; }
.pg-servicios .svc-rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pg-servicios .svc-rules .rule { margin-top: 0; }
.pg-servicios .svc-rules .rule-top { min-height: 44px; }
.pg-servicios .svc-rules .rule-name { letter-spacing: .06em; }
.pg-servicios .svc-rules .rule-row { grid-template-columns: 5.6em minmax(0, 1fr); }
.pg-servicios .svc-rules .rule-row p { font-size: 14px; line-height: 1.45; }
.pg-servicios .svc-rules .panel-foot { margin-top: 12px; }
@media (max-width: 760px) { .pg-servicios .svc-rules-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .pg-servicios .svc-rules .rule-row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Closing pointer to the fifth service, which has its own page */
.pg-servicios .svc-next .flowline { margin-top: 4px; }

/* ---------- /de-los-datos-al-ahorro/ (body.pg-ahorro) ---------- */
/* De los datos al ahorro: vertical sequence of steps, a deliverables table per step
   and the split of work. Every selector is scoped to .pg-ahorro; the parent moves
   this block into landing.css. */

/* The sequence: a numbered node per step, joined by a rail */
.pg-ahorro .tl { list-style: none; margin: 0; padding: 0; }
.pg-ahorro .tl > li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 72px); }
.pg-ahorro .tl > li:last-child { padding-bottom: 0; }
.pg-ahorro .tl > li::before { content: ""; position: absolute; left: 28px; top: 56px; bottom: 0; border-left: 1px solid var(--ink); }
.pg-ahorro .tl > li:last-child::before { content: none; }
.pg-ahorro .tl > li.tl-start::before { border-left-style: dashed; border-left-color: var(--rule-strong); }
.pg-ahorro .tl-n {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px;
  border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper);
  font-family: var(--font-serif); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pg-ahorro .tl-start .tl-n { border-style: dashed; color: var(--ink-3); }
.pg-ahorro .tl-k { margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.pg-ahorro .tl-body h3 { padding-top: 10px; font-family: var(--font-serif); font-size: clamp(26px, 2.6vw, 32px); }
.pg-ahorro .tl-k + h3 { padding-top: 0; }
.pg-ahorro .tl-body > p:not(.tl-k) { margin-top: 12px; max-width: 34em; font-size: 17px; color: var(--ink-2); }
.pg-ahorro .tl-body > p.tl-note { margin-top: 16px; padding: 2px 0 2px 16px; border-left: 3px solid var(--accent); font-size: 16px; color: var(--ink-3); }

/* Deliverables of each step and who does them */
.pg-ahorro .tl-out { align-self: start; width: 100%; border-collapse: collapse; font-size: 15px; }
.pg-ahorro .tl-out th,
.pg-ahorro .tl-out td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.pg-ahorro .tl-out th:last-child,
.pg-ahorro .tl-out td:last-child { padding-right: 0; }
.pg-ahorro .tl-out thead th { padding-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.pg-ahorro .tl-out td:first-child { width: 52%; font-weight: 500; color: var(--ink); }

/* Who does it: a filled mark for QSAS Data, an outlined one for the engineering partner.
   The partner's name stays in lower case in the source, so naming the firm later is one replacement. */
.pg-ahorro .party { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 1.45; text-transform: uppercase; color: var(--ink-2); }
.pg-ahorro .party + .party { margin-top: 6px; }
.pg-ahorro .party::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 3px; border: 1.5px solid var(--ink); }
.pg-ahorro .party-q::before { background: var(--ink); }

@media (max-width: 860px) {
  .pg-ahorro .tl > li { grid-template-columns: 44px minmax(0, 1fr); gap: 18px; }
  .pg-ahorro .tl > li::before { left: 22px; top: 44px; }
  .pg-ahorro .tl-n { width: 44px; height: 44px; font-size: 17px; }
  .pg-ahorro .tl-body h3 { padding-top: 5px; }
  .pg-ahorro .tl-out { grid-column: 2; }
}
@media (max-width: 640px) {
  .pg-ahorro .tl-out thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pg-ahorro .tl-out,
  .pg-ahorro .tl-out tbody,
  .pg-ahorro .tl-out tr,
  .pg-ahorro .tl-out td { display: block; width: auto; }
  .pg-ahorro .tl-out tbody { border-top: 1px solid var(--ink); }
  .pg-ahorro .tl-out tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .pg-ahorro .tl-out td,
  .pg-ahorro .tl-out td:first-child { width: auto; padding: 0; border: 0; }
  .pg-ahorro .tl-out td + td { margin-top: 8px; }
}

/* Who does what, in general terms */
.pg-ahorro .split { width: 100%; border-collapse: collapse; }
.pg-ahorro .split th,
.pg-ahorro .split td { padding: 20px 24px 20px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.pg-ahorro .split tr:first-child > * { border-top: 1px solid var(--ink); }
.pg-ahorro .split th { width: 34%; padding-top: 24px; font-weight: 400; }
.pg-ahorro .split td { padding-right: 0; font-size: 18px; color: var(--ink-2); }
@media (max-width: 640px) {
  .pg-ahorro .split,
  .pg-ahorro .split tbody,
  .pg-ahorro .split tr,
  .pg-ahorro .split th,
  .pg-ahorro .split td { display: block; width: auto; }
  .pg-ahorro .split tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .pg-ahorro .split tr:first-child { border-top: 1px solid var(--ink); }
  .pg-ahorro .split th,
  .pg-ahorro .split td,
  .pg-ahorro .split tr:first-child > * { padding: 0; border: 0; }
  .pg-ahorro .split td { margin-top: 10px; font-size: 17px; }
}

/* ---------- /integracion/ (body.pg-integracion) ---------- */
/* Integración: architecture diagram, protocol table, systems, API and security blocks.
   Page-scoped for now; the selectors move to landing.css as they are. */
.pg-integracion .nw { white-space: nowrap; }

/* architecture diagram: a wide drawing from 1000px, a tall one below */
.pg-integracion .arch { margin: 0; min-height: 0; padding: clamp(14px, 2.4vw, 24px); }
.pg-integracion .arch .chart-head { margin-bottom: 18px; }
.pg-integracion .arch-key i { width: 22px; height: 0; border-top: 2px solid var(--teal); }
.pg-integracion .arch-key .k-order { border-top: 2px dashed var(--on-navy-2); }
.pg-integracion .arch svg { width: 100%; height: auto; }
.pg-integracion .arch-tall { display: none; max-width: 360px; margin: 0 auto; }
@media (max-width: 999px) {
  .pg-integracion .arch-wide { display: none; }
  .pg-integracion .arch-tall { display: block; }
}
.pg-integracion .arch text { font-family: var(--font); }
.pg-integracion .a-zone { font-size: 12px; font-weight: 600; letter-spacing: .08em; fill: var(--on-navy-3); }
.pg-integracion .a-box { fill: var(--navy-deep); fill-opacity: .55; stroke: var(--on-navy-3); stroke-opacity: .45; }
.pg-integracion .a-cpd { fill: var(--navy-deep); fill-opacity: .3; stroke: var(--on-navy-3); }
.pg-integracion .a-vpn { fill: var(--on-navy-2); fill-opacity: .05; stroke: var(--on-navy-3); stroke-dasharray: 5 4; }
.pg-integracion .a-vlan { fill: none; stroke: var(--on-navy-3); stroke-dasharray: 3 3; }
.pg-integracion .a-t { font-size: 15px; font-weight: 600; fill: var(--on-navy); }
.pg-integracion .a-s { font-size: 13px; fill: var(--on-navy-2); }
.pg-integracion .a-s2 { font-size: 12px; fill: var(--on-navy-2); }
.pg-integracion .a-chip rect { fill: none; stroke: var(--on-navy-3); stroke-opacity: .6; }
.pg-integracion .a-chip text { font-size: 12px; font-weight: 500; fill: var(--on-navy); }
.pg-integracion .a-flow { fill: none; stroke: var(--teal); stroke-width: 2; }
.pg-integracion .a-flow-h { fill: var(--teal); }
.pg-integracion .a-order { fill: none; stroke: var(--on-navy-2); stroke-width: 2; stroke-dasharray: 6 4; }
.pg-integracion .a-order-h { fill: var(--on-navy-2); }
.pg-integracion .a-lbl { font-size: 13px; font-weight: 600; fill: var(--on-navy); }
.pg-integracion .a-lbl2 { font-size: 12px; fill: var(--on-navy-2); }
.pg-integracion .arch-tall .a-t { font-size: 14px; }
.pg-integracion .arch-tall .a-zone { font-size: 11.5px; }
.pg-integracion .arch-cap { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule-navy); font-size: 13px; line-height: 1.5; color: var(--on-navy-2); }

/* protocol table; below 640px each row becomes a stacked block */
.pg-integracion .proto-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.pg-integracion .proto-table th, .pg-integracion .proto-table td { padding: 16px 28px 16px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--rule); }
.pg-integracion .proto-table tr > :last-child { padding-right: 0; }
.pg-integracion .proto-table thead th { padding-top: 0; padding-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.pg-integracion .proto-table thead th:first-child { width: 18%; }
.pg-integracion .proto-table thead th:last-child { width: 34%; }
.pg-integracion .proto-table tbody th { font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.pg-integracion .proto-table td { color: var(--ink-2); }
.pg-integracion .proto-table td:last-child { color: var(--ink-3); }
@media (max-width: 640px) {
  .pg-integracion .proto-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pg-integracion .proto-table, .pg-integracion .proto-table tbody, .pg-integracion .proto-table tr, .pg-integracion .proto-table th, .pg-integracion .proto-table td { display: block; width: auto; }
  .pg-integracion .proto-table tbody tr { padding: 16px 0 8px; border-top: 1px solid var(--rule); }
  .pg-integracion .proto-table tbody tr:first-child { border-top-color: var(--ink); }
  .pg-integracion .proto-table tbody th { padding: 0 0 4px; border: 0; }
  .pg-integracion .proto-table td { padding: 8px 0; border: 0; }
  .pg-integracion .proto-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
}

/* systems by name, grouped by what they do */
.pg-integracion .sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 56px) clamp(32px, 6vw, 88px); align-items: start; }
.pg-integracion .sys-group { padding-top: 18px; border-top: 1px solid var(--ink); }
.pg-integracion .sys-group h3 { font-family: var(--font-serif); font-size: 22px; }
.pg-integracion .sys-list { margin: 10px 0 0; }
.pg-integracion .sys-list > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 20px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.pg-integracion .sys-list > div:last-child { border-bottom: 0; }
.pg-integracion .sys-list dt { font-weight: 600; }
.pg-integracion .sys-list dd { margin: 0; font-size: 16px; color: var(--ink-2); }
@media (max-width: 860px) { .pg-integracion .sys-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pg-integracion .sys-list > div { grid-template-columns: 1fr; } }

/* API and export */
.pg-integracion .api-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 6vw, 88px); align-items: start; }
.pg-integracion .api-grid h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 48px); }
.pg-integracion .api-lead { margin-top: 18px; max-width: 30em; font-size: 18px; color: var(--ink-2); }
@media (max-width: 860px) { .pg-integracion .api-grid { grid-template-columns: 1fr; } }

/* security and data, as two datasheet lists */
.pg-integracion .sec-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px clamp(32px, 6vw, 88px); align-items: start; }
.pg-integracion .sec-grid h3 { font-family: var(--font-serif); font-size: 22px; }
.pg-integracion .sec-grid .facts { margin-top: 16px; }
.pg-integracion .sec-grid .facts > div { grid-template-columns: 10.5em minmax(0, 1fr); }
.pg-integracion .sec-grid .facts dd { font-size: 16px; }
@media (max-width: 900px) { .pg-integracion .sec-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .pg-integracion .sec-grid .facts > div { grid-template-columns: 1fr; } }

/* ---------- /casos/ (body.pg-casos) ---------- */
/* /casos/ page: photo pair and challenge/work/result strip for case 01, comparison table for cases 02-04. */
.pg-casos .more { display: inline-block; min-height: 44px; padding: 10px 0; line-height: 24px; font-weight: 600; }
.pg-casos .more::after { content: " →"; }
.pg-casos .case-photos { display: grid; grid-template-columns: minmax(0, 1.138fr) minmax(0, .83fr); gap: 16px; align-items: start; margin-bottom: clamp(40px, 6vw, 64px); }
.pg-casos .case-photos figure { margin: 0; }
.pg-casos .case-photos img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2); }
.pg-casos .case-photos figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.pg-casos .rsr { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.pg-casos .rsr > div { padding-top: 16px; border-top: 1px solid var(--ink); }
.pg-casos .rsr dt { font-family: var(--font-serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.pg-casos .rsr dd { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); }
.pg-casos .case-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pg-casos .case-table th, .pg-casos .case-table td { padding: 18px 24px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.pg-casos .case-table td:last-child { padding-right: 0; }
.pg-casos .case-table thead th { padding-top: 0; padding-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.pg-casos .case-table tbody th { width: 21%; font-family: var(--font-serif); font-size: 19px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.pg-casos .case-no { display: block; margin-bottom: 6px; font-size: 15px; color: var(--accent-ink); }
.pg-casos .case-table tbody th small { display: block; margin-top: 8px; font-family: var(--font); font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--ink-3); }
.pg-casos .case-table td { color: var(--ink-2); }
.pg-casos .case-table td p + p { margin-top: 6px; }
@media (max-width: 980px) {
  .pg-casos .case-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pg-casos .case-table, .pg-casos .case-table tbody, .pg-casos .case-table tr, .pg-casos .case-table th, .pg-casos .case-table td { display: block; width: auto; }
  .pg-casos .case-table tr { padding-top: 16px; border-top: 1px solid var(--ink); }
  .pg-casos .case-table tr + tr { margin-top: 36px; }
  .pg-casos .case-table tbody th { width: auto; padding: 0 0 8px; border-bottom: 0; }
  .pg-casos .case-table td { padding: 12px 0; }
  .pg-casos .case-table td:last-child { border-bottom: 0; }
  .pg-casos .case-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
}
@media (max-width: 860px) { .pg-casos .rsr { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 600px) { .pg-casos .case-photos { grid-template-columns: 1fr; } }

/* ---------- /quienes-somos/ (body.pg-quienes) ---------- */
/* /quienes-somos/ page: company sheet, installation photo and the split of work with the engineering partner. */
.pg-quienes .more { display: inline-block; min-height: 44px; padding: 10px 0; line-height: 24px; font-weight: 600; }
.pg-quienes .more::after { content: " →"; }
.pg-quienes .sheet { margin: 0; border-top: 1px solid var(--ink); }
.pg-quienes .sheet > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 4px 48px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.pg-quienes .sheet dt { padding-top: 3px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pg-quienes .sheet dd { margin: 0; font-size: 17px; color: var(--ink-2); }
.pg-quienes .sheet-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.pg-quienes .sheet-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.pg-quienes .photo { margin: 0; }
.pg-quienes .photo img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2); }
.pg-quienes .photo figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.pg-quienes .split3 { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.pg-quienes .split3 > div { padding-top: 16px; border-top: 1px solid var(--ink); }
.pg-quienes .split3 dt { font-family: var(--font-serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.pg-quienes .split3 dd { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); }
@media (max-width: 860px) { .pg-quienes .split3 { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) { .pg-quienes .sheet > div { grid-template-columns: 1fr; } }
