/* =========================================================
   Correo asistido · IA, MCP y administración pública
   Hoja única, sin dependencias.
   ========================================================= */

:root {
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --paper: #f3f1e9;
  --paper-2: #eae6d9;
  --surface: #fbfaf5;
  --surface-2: #f6f3ea;
  --ink: #10221f;
  --ink-2: #33443f;
  --muted: #6b7a73;
  --line: rgba(16, 34, 31, 0.14);
  --line-2: rgba(16, 34, 31, 0.28);
  --teal: #0e5b57;
  --teal-2: #147a72;
  --teal-soft: #dcebe4;
  --coral: #c45b43;
  --amber: #a86f16;
  --green: #2e7d5b;
  --red: #b3413a;
  --blue: #356f9e;
  --shadow: 0 24px 60px -34px rgba(16, 34, 31, 0.35);
  --radius: 10px;
  --max: 1180px;
  --pad: clamp(18px, 4vw, 44px);
}

html[data-theme="dark"] {
  --paper: #0c1513;
  --paper-2: #111d1a;
  --surface: #14211e;
  --surface-2: #182722;
  --ink: #eef3ec;
  --ink-2: #c9d4cc;
  --muted: #93a39a;
  --line: rgba(238, 243, 236, 0.14);
  --line-2: rgba(238, 243, 236, 0.28);
  --teal: #58b7a8;
  --teal-2: #79cabb;
  --teal-soft: #173b36;
  --coral: #e08b76;
  --amber: #e0b25e;
  --green: #7fc6a4;
  --red: #e58a80;
  --blue: #8ab6d6;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--teal); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
p { margin: 0 0 0.9em; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.mobile-nav { display: none; }

.wrap { width: min(var(--max), 100%); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--paper); } }

.header-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: 0 var(--pad);
  height: 66px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: #0e5b57; color: #fff; border-radius: 8px;
}
.brand-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy b { font-family: var(--serif); font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-copy small { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; gap: 17px; margin-left: auto; }
.nav a { font-size: 12px; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid transparent; padding: 3px 0; white-space: nowrap; }
.nav a:hover { color: var(--ink); border-color: var(--ink); }

.header-actions { display: flex; gap: 2px; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: transparent; border: 1px solid transparent; border-radius: 7px; cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress i { display: block; height: 100%; width: 0; background: var(--teal); transition: width 80ms linear; }

/* ---------- Portada ---------- */

.hero { position: relative; padding: clamp(44px, 7vw, 94px) 0 clamp(34px, 5vw, 64px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto;
  height: 90%;
  background:
    radial-gradient(40% 55% at 18% 30%, rgba(14, 91, 87, .14), transparent 70%),
    radial-gradient(35% 50% at 80% 15%, rgba(196, 91, 67, .12), transparent 70%),
    radial-gradient(30% 40% at 60% 80%, rgba(168, 111, 22, .09), transparent 70%);
  pointer-events: none;
}
html[data-theme="dark"] .hero::before { opacity: .55; }
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.kicker, .eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.kicker::before, .eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 1px; margin-right: 10px;
  vertical-align: 3px; background: currentColor; opacity: .65;
}
.hero h1 {
  font-size: clamp(2.8rem, 6.2vw, 5rem);
  line-height: .95;
  letter-spacing: -.045em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--teal); }
.deck { font-family: var(--serif); font-size: clamp(1.12rem, 1.6vw, 1.34rem); line-height: 1.5; color: var(--ink-2); max-width: 42ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 19px;
  border: 1.5px solid var(--ink); border-radius: 7px;
  background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .16s, color .16s, transform .16s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #0e5b57; border-color: #0e5b57; color: #fff; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 37px; padding: 0 13px; font-size: 9px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 11px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.disclaimer { margin-top: 14px; font-size: 11px; color: var(--muted); max-width: 56ch; border-left: 2px solid var(--line-2); padding-left: 10px; line-height: 1.45; }

/* Mock de bandeja */

.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 12px -12px -14px 18px;
  background: var(--teal); opacity: .12; border-radius: 18px; transform: rotate(2deg);
}
.mock {
  position: relative; background: #fbfaf5; color: #10221f;
  border: 1px solid rgba(16, 34, 31, .18); border-radius: 14px;
  box-shadow: 0 34px 70px -34px rgba(16, 34, 31, .55);
  padding: 14px; transform: rotate(-.8deg);
}
.mock-top { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: #6b7a73; padding: 2px 2px 10px; border-bottom: 1px solid rgba(16,34,31,.1); }
.mock-dots { display: flex; gap: 3px; }
.mock-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(16,34,31,.18); }
.mock-count { margin-left: auto; color: #0e5b57; }
.mock-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 10px 3px; border-bottom: 1px solid rgba(16,34,31,.08); }
.mock-row b { display: block; font-size: 11.5px; line-height: 1.25; font-weight: 600; }
.mock-row small { display: block; font-size: 9px; color: #6b7a73; margin-top: 2px; }
.avatar { width: 27px; height: 27px; border-radius: 50%; background: #dcebe4; color: #0e5b57; display: grid; place-items: center; font-family: var(--mono); font-size: 8px; font-weight: 700; }
.avatar-sand { background: #f0e5cf; color: #8a5d11; }
.avatar-red { background: #f6ddd6; color: #a3382d; }
.avatar-red svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tag { font-family: var(--mono); font-size: 7.5px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 6px; border-radius: 3px; white-space: nowrap; }
.tag-blue { background: #dcebe4; color: #0b4d49; }
.tag-sand { background: #f0e5cf; color: #7a520f; }
.tag-red { background: #f6ddd6; color: #9c352b; }
.mock-ai { margin-top: 12px; background: #0e5b57; color: #f4f0e4; border-radius: 9px; padding: 11px 12px; }
.mock-ai-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ai-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.13); padding: 3px 6px; border-radius: 3px; }
.ai-badge svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.confidence-label { font-family: var(--mono); font-size: 7.5px; opacity: .8; }
.mock-ai p { font-size: 10.5px; line-height: 1.4; margin: 0 0 8px; }
.mock-ai b { font-weight: 700; }
.confidence { height: 4px; background: rgba(255,255,255,.18); border-radius: 3px; overflow: hidden; }
.confidence i { display: block; height: 100%; background: #d9c27a; border-radius: 3px; }
.mock-actions { display: flex; align-items: center; gap: 12px; margin-top: 9px; }
.mock-approve { font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; background: #f4f0e4; color: #0e5b57; padding: 5px 8px; border-radius: 4px; }
.mock-link { font-size: 9px; opacity: .75; text-decoration: underline; }
.mock-foot { font-size: 8.5px; color: #6b7a73; margin: 9px 3px 0; }

/* ---------- Secciones ---------- */

.section { padding: clamp(56px, 7.5vw, 100px) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 790px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.35rem); margin-bottom: 13px; }
.lead { font-size: 15px; color: var(--ink-2); max-width: 66ch; margin: 0; }

.h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); margin-bottom: 10px; }
.muted { color: var(--ink-2); font-size: 14px; }
.note { font-size: 12px; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: 10px; margin-top: 16px; }

/* ---------- Tarjetas ---------- */

.cards-3, .cards-4 { display: grid; gap: 12px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.card h3 { font-size: 1.28rem; margin-bottom: 6px; }
.card h4 { font-family: var(--sans); font-size: 13.5px; font-weight: 700; letter-spacing: 0; margin-bottom: 5px; }
.card p { font-size: 13px; color: var(--ink-2); margin: 0; }
.card a { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.card-icon {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px;
  background: var(--teal-soft); color: var(--teal); margin-bottom: 14px;
}
.card-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-line { padding-top: 18px; }

.pull {
  margin: 34px auto 28px; max-width: 860px; text-align: center;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  padding: 26px 18px;
}
.pull p { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.25; margin: 0; }
.not-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; }
.not-title { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 6px 0 0; }
.not-list span:not(.not-title) { font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink-2); }

/* ---------- MCP ---------- */

.level-switch {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden;
  margin-bottom: 20px; background: var(--surface);
}
.level-tab {
  border: 0; background: transparent; padding: 10px 14px; cursor: pointer;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.level-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.level-panel { animation: fade .2s ease; }
@keyframes fade { from { opacity: .4; transform: translateY(2px); } to { opacity: 1; transform: none; } }

.analogy {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 22px; margin-bottom: 14px;
}
.analogy-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #0e5b57; color: #fff; }
.analogy-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.analogy h3 { font-size: 1.45rem; margin-bottom: 6px; }
.analogy p { font-size: 14px; color: var(--ink-2); margin: 0; }

.simple-flow {
  display: flex; align-items: stretch; justify-content: center; gap: 4px; margin-top: 22px;
  padding: 18px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.simple-flow > div {
  flex: 1 1 0; min-width: 100px; text-align: center; padding: 10px 6px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface);
}
.simple-flow > div span { display: block; font-family: var(--mono); font-size: 8px; color: var(--muted); margin-bottom: 4px; }
.simple-flow > div b { display: block; font-size: 13px; }
.simple-flow > div small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.simple-flow > div.is-accent { border-color: var(--teal); background: var(--teal-soft); }
.simple-flow > i { align-self: center; color: var(--muted); }
.simple-flow > i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.spec-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.spec-head h3 { font-size: 1.6rem; margin-bottom: 6px; }
.spec-head p { font-size: 14px; color: var(--ink-2); max-width: 64ch; margin: 0; }
.version-box {
  flex: 0 0 auto; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line-2); padding: 8px 10px; text-align: right; color: var(--muted); line-height: 1.5;
}
.version-box b { display: block; font-size: 13px; color: var(--ink); letter-spacing: .02em; }
.mcp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mcp-grid article { background: var(--surface); padding: 16px; }
.mcp-grid h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.mcp-grid p { font-size: 12px; color: var(--ink-2); margin: 0; }
.spec-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.spec-notes h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.spec-notes ul { margin: 0; padding-left: 16px; }
.spec-notes li { font-size: 12.5px; margin-bottom: 5px; color: var(--ink-2); }
code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: 1px 4px; border-radius: 3px; }

/* ---------- General ---------- */

.problem-cards { margin-bottom: 42px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 60px); align-items: start; margin-bottom: 42px; }
.day { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.day li { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 0 0 18px 18px; position: relative; }
.day li::before { content: ""; position: absolute; left: -4px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.day li:last-child { padding-bottom: 0; }
.day li > span { font-family: var(--mono); font-size: 10px; color: var(--muted); padding-top: 2px; }
.day b { display: block; font-size: 13.5px; }
.day p { font-size: 12.5px; color: var(--ink-2); margin: 2px 0 0; }

/* Demo */

.demo { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 46px; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.demo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-summary {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; padding: 10px 12px;
  background: var(--teal-soft); border-left: 3px solid var(--teal); border-radius: 4px;
  font-size: 12px; color: var(--ink-2);
}
.demo-summary b { color: var(--ink); }
.demo-list { display: grid; gap: 8px; margin-top: 14px; }
.demo-mail {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start;
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: var(--surface-2);
}
.demo-mail.is-danger { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); background: color-mix(in srgb, var(--red) 7%, var(--surface)); }
.demo-mail.is-done { opacity: .72; }
.demo-mail .avatar { width: 32px; height: 32px; }
.demo-mail b { display: block; font-size: 12.5px; }
.demo-mail small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.demo-mail p { font-size: 11.5px; color: var(--ink-2); margin: 4px 0 0; }
.demo-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.pill, .tag-mini {
  font-family: var(--mono); font-size: 8px; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 6px; border-radius: 3px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}
.pill-green { background: color-mix(in srgb, var(--green) 13%, transparent); color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.pill-amber { background: color-mix(in srgb, var(--amber) 13%, transparent); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.pill-red { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.demo-side { text-align: right; min-width: 92px; }
.demo-conf { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.demo-conf b { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.1; }
.demo-conf .confidence { display: block; margin-top: 4px; background: var(--paper-2); }
.avatar svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.demo-conf .confidence i { background: var(--teal); }
.demo-action { display: block; margin-top: 6px; font-size: 9.5px; color: var(--muted); line-height: 1.35; }
.demo-note { font-size: 10.5px; color: var(--muted); margin: 12px 0 0; }
.demo-approve { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.demo-done { font-size: 11px; color: var(--green); font-weight: 600; }

/* Ventajas y semáforo */

.benefits { margin-top: 8px; }
.benefits .cards-3 { margin-top: 14px; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 42px; }
.who article { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.who h3 { font-size: 1.3rem; margin-bottom: 8px; }
.traffic { margin-top: 44px; }
.traffic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.traffic-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.traffic-dot { display: block; width: 10px; height: 10px; border-radius: 50%; margin-bottom: 10px; }
.traffic-green { border-top: 3px solid var(--green); } .traffic-green .traffic-dot { background: var(--green); }
.traffic-amber { border-top: 3px solid var(--amber); } .traffic-amber .traffic-dot { background: var(--amber); }
.traffic-red { border-top: 3px solid var(--red); } .traffic-red .traffic-dot { background: var(--red); }
.traffic-card h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
.traffic-card p { font-size: 12px; color: var(--ink-2); margin: 0; }

.callout, .redlines {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px;
  margin-top: 34px; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface);
}
.callout-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #a86f16; color: #fff; }
.callout-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.callout h3, .redlines h3 { font-size: 1.35rem; margin-bottom: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin: 0; padding-left: 16px; }
.two-col li { font-size: 12.5px; color: var(--ink-2); }

/* Calculadora */

.calc {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px;
  margin-top: 40px; padding: 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.calc-inputs { display: grid; gap: 14px; margin-top: 14px; }
.calc-inputs label { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 12px; color: var(--ink-2); }
.calc-inputs output { font-family: var(--mono); font-size: 10px; color: var(--teal); font-weight: 700; }
.calc-inputs input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--teal); }
.calc-result { background: #0e5b57; color: #f4f0e4; border-radius: 8px; padding: 22px; display: flex; flex-direction: column; justify-content: center; }
.calc-label { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.calc-result strong { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; margin: 4px 0; }
.calc-unit { font-size: 12px; opacity: .85; }
.calc-result p { font-size: 12px; margin: 10px 0 6px; }
.calc-result small { font-size: 9.5px; opacity: .7; line-height: 1.4; }

/* FAQ */

.faq { margin-top: 46px; max-width: 860px; }
.faq h3 { margin-bottom: 12px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 13.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: 13px; color: var(--ink-2); margin: 8px 0 2px; max-width: 70ch; }

/* ---------- Sección técnica oscura ---------- */

.section-dark {
  --paper: #0b2320;
  --paper-2: #0f2c28;
  --surface: #123431;
  --surface-2: #163c38;
  --ink: #f1f5ef;
  --ink-2: #cddad3;
  --muted: #9db2a9;
  --line: rgba(238, 245, 240, .14);
  --line-2: rgba(238, 245, 240, .28);
  --teal: #72c9b8;
  --teal-2: #9adfd1;
  --teal-soft: #1a4a44;
  --green: #7fc6a4;
  --amber: #e0b25e;
  --red: #e58a80;
  --blue: #8ab6d6;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .7);
  background: var(--paper);
  color: var(--ink);
  border-top: 0;
}
.section-dark .card, .section-dark .demo, .section-dark .calc, .section-dark .analogy { background: var(--surface); }
.section-dark code { background: rgba(255,255,255,.09); }
.section-dark .note { color: var(--muted); }

/* Arquitectura */

.arch { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 12px; }
.arch-node {
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 12px; color: var(--ink); min-height: 94px;
  display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, background .15s, transform .15s;
}
.arch-node:hover { border-color: var(--teal); transform: translateY(-1px); }
.arch-node.is-active { border-color: var(--teal); background: var(--teal-soft); }
.arch-node span { font-family: var(--mono); font-size: 8px; color: var(--muted); }
.arch-node b { font-size: 13px; line-height: 1.15; }
.arch-node small { font-size: 10px; color: var(--muted); }
.arch-node-accent { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); }
.arch-node:not(:last-child)::after {
  content: "→"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; color: var(--muted); z-index: 1; background: var(--paper); padding: 2px 0;
}
.arch-detail {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 22px; margin-bottom: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.arch-detail h3 { font-size: 1.5rem; margin-bottom: 6px; }
.arch-detail p { font-size: 13px; color: var(--ink-2); margin: 0; }
.arch-detail h4 { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 5px; }
.arch-detail ul { margin: 0; padding-left: 15px; }
.arch-detail li { font-size: 12px; color: var(--ink-2); margin-bottom: 3px; }
.arch-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.tech-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; margin-bottom: 44px; align-items: start; }
.defs { margin: 0; }
.defs > div { border-top: 1px solid var(--line); padding: 9px 0; display: grid; grid-template-columns: 112px 1fr; gap: 12px; }
.defs dt { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); padding-top: 2px; }
.defs dd { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.code-card { background: #071c1a; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.1); font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: #a8c9be; }
.copy { background: transparent; border: 1px solid rgba(255,255,255,.2); color: #d8ebe2; border-radius: 4px; font-family: var(--mono); font-size: 8px; padding: 3px 6px; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.1); }
.code-card pre { margin: 0; padding: 14px; overflow: auto; font-family: var(--mono); font-size: 11px; line-height: 1.55; color: #d8ebe2; }
.code-card code { background: transparent; padding: 0; }
.code-note { font-size: 10px; color: #9db2a9; margin: 0; padding: 0 14px 12px; }

.seq { margin-bottom: 46px; }
.seq-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.seq-list li { display: grid; grid-template-columns: 28px 1fr; gap: 9px; background: var(--surface); padding: 14px; }
.seq-list li > span { font-family: var(--serif); font-size: 1.25rem; color: var(--teal); line-height: 1; }
.seq-list b { display: block; font-size: 12px; }
.seq-list p { font-size: 11.5px; color: var(--ink-2); margin: 3px 0 0; }

/* Herramientas */

.tool-section, .case, .pipeline, .security, .compliance, .deploy, .metrics, .rollout, .checklist, .mistakes { margin-top: 46px; }
.tool-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 10px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.risk { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.risk-read { background: var(--green); } .risk-write { background: var(--amber); } .risk-send { background: var(--blue); } .risk-destructive { background: var(--red); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 9px 11px; border-bottom: 1px solid var(--line-2); }
td { padding: 9px 11px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td b { color: var(--ink); }
.tools { min-width: 620px; }
.tools td:first-child { font-family: var(--mono); font-size: 10px; color: var(--teal); white-space: nowrap; }
.tools td:nth-child(3) { white-space: nowrap; }
.tools .risk { margin-right: 4px; }

/* Caso */

.case { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 32px); }
.case-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.case-badge { flex: 0 0 auto; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); padding: 8px 10px; text-align: center; color: var(--muted); line-height: 1.5; }
.case-flow { display: flex; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.case-flow > div { flex: 1 1 0; min-width: 120px; border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; background: var(--surface-2); }
.case-flow b { display: block; font-size: 12px; }
.case-flow small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.case-flow i { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.case-accent { border-color: var(--teal) !important; background: var(--teal-soft) !important; }
.case-flow-sub { margin-top: 8px; }
.case-flow-sub > div { background: transparent; }
.case-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.case-points h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 7px; }
.case-points ul { margin: 0; padding-left: 15px; }
.case-points li { font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
.case-quote { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.case-quote p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; margin: 0 0 5px; color: var(--ink); }
.case-quote span { font-size: 10.5px; color: var(--muted); }

/* Pipeline */

.pipe { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pipe li { background: var(--surface); padding: 15px; }
.pipe b { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; color: var(--teal); margin-bottom: 4px; }
.pipe p { margin: 0; font-size: 11.5px; color: var(--ink-2); }

/* Seguridad y tablas */

.security-table { min-width: 560px; }
.security-table td:first-child { width: 34%; color: var(--ink); font-weight: 600; }
.deploy-table { min-width: 700px; }
.use-table { min-width: 680px; }

/* Cumplimiento */

.cards-4 { grid-template-columns: repeat(4, 1fr); }
.section-dark .cards-4 .card h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }

/* Métricas */

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 14px; }
.metric-grid article { background: var(--surface); padding: 14px; }
.metric-grid strong { display: block; font-size: 12px; margin-bottom: 3px; }
.metric-grid span { font-size: 11px; color: var(--ink-2); }

/* Fases */

.phases { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.phases li { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--surface); }
.phases li > span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #06201d; font-family: var(--mono); font-size: 10px; font-weight: 700; margin-bottom: 7px; }
.phases b { display: block; font-size: 12px; }
.phases p { font-size: 11.5px; color: var(--ink-2); margin: 3px 0 0; }

/* Checklist */

.checklist { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; }
.check-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.check-list { display: grid; gap: 7px; margin: 14px 0 14px; }
.check-item { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.check-item input { accent-color: var(--teal); width: 16px; height: 16px; margin-top: 2px; }
.check-item input:checked + span { text-decoration: line-through; color: var(--muted); }
.check-progress { height: 6px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.check-progress i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .2s; }
.check-count { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 7px 0 0; }

/* ---------- Osakidetza ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; color: var(--teal); }
.stats span { display: block; font-size: 12px; margin-top: 5px; }
.stats small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 5px; }
.source-note { font-size: 10.5px; color: var(--muted); margin-bottom: 34px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 44px; }
.why-grid article { border-top: 2px solid var(--teal); padding: 16px 0 0; }
.why-grid h3 { font-size: 1.25rem; margin-bottom: 5px; }
.why-grid p { font-size: 13px; color: var(--ink-2); margin: 0; }
.use-cases { margin-bottom: 40px; }
.pill { display: inline-block; }
.redlines { border-left: 4px solid var(--red); }
.redlines .callout-icon { background: #b3413a; }
.governance { margin-top: 44px; }
.pilot { display: grid; grid-template-columns: 1fr .8fr; gap: 24px; margin-top: 46px; padding: 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); }
.checkbullets { list-style: none; margin: 12px 0 0; padding: 0; }
.checkbullets li { font-size: 12.5px; color: var(--ink-2); padding-left: 18px; position: relative; margin-bottom: 5px; }
.checkbullets li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pilot-kpis { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); align-content: start; }
.pilot-kpis div { background: var(--surface-2); padding: 10px 12px; }
.pilot-kpis b { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.pilot-kpis span { font-size: 11.5px; color: var(--ink-2); }
.final-callout { margin-top: 46px; padding: 28px; background: #0e5b57; color: #f4f0e4; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.final-callout p { font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.25; margin: 0; max-width: 760px; }
.final-callout .btn { border-color: #f4f0e4; background: #f4f0e4; color: #0b4d49; }

/* ---------- Glosario y fuentes ---------- */

.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.glossary > div { border-top: 1px solid var(--line); padding: 10px 0; display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.glossary dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; color: var(--teal); }
.glossary dd { margin: 0; font-size: 12px; color: var(--ink-2); }
.sources-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sources-grid h3 { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.sources-grid ul { list-style: none; margin: 0; padding: 0; }
.sources-grid li { font-size: 11.5px; margin-bottom: 6px; color: var(--ink-2); }
.sources-grid a { text-decoration-color: var(--line-2); }
.sources-grid p { font-size: 11.5px; color: var(--ink-2); }
.sources-date { margin-top: 24px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Pie ---------- */

.footer { background: #0b2320; color: #eef3ec; padding: 46px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-size: 1.9rem; margin: 0 0 8px; }
.footer p { font-size: 11px; opacity: .72; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; opacity: .8; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

.noscript { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); color: var(--paper); text-align: center; padding: 12px; font-size: 12px; }

/* ---------- Animaciones ---------- */

@media (prefers-reduced-motion: no-preference) {
  .card, .mock, .arch-node { transition: transform .18s, box-shadow .18s, border-color .15s; }
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .mock:hover { transform: rotate(0deg); }
  .demo-mail { animation: rise .28s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav { gap: 12px; }
  .nav a { font-size: 11px; }
  .hero-grid { grid-template-columns: 1fr .9fr; gap: 32px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  html { scroll-padding-top: 112px; }
  .mobile-nav {
    display: flex; align-items: center; gap: 18px;
    height: 38px; padding: 0 var(--pad);
    overflow-x: auto; white-space: nowrap;
    position: sticky; top: 66px; z-index: 46;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .mobile-nav a {
    font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase;
    text-decoration: none; color: var(--muted);
  }
  .mobile-nav a:hover { color: var(--ink); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .split, .tech-grid, .spec-notes, .calc, .pilot { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr 1fr; }
  .arch-node:nth-child(5) { grid-column: 1 / -1; }
  .arch-node:not(:last-child)::after { display: none; }
  .arch-detail { grid-template-columns: 1fr; }
  .arch-lists { grid-template-columns: 1fr 1fr; }
  .case-points, .seq-list, .pipe { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
  .traffic-grid, .stats, .who { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .sources-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-inner { height: 58px; }
  .brand-copy small { display: none; }
  .brand-copy b { font-size: 1.05rem; }
  html { scroll-padding-top: 104px; }
  .mobile-nav { top: 58px; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .cards-3, .cards-4, .case-points, .seq-list, .pipe, .phases, .glossary, .sources-grid, .why-grid { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }
  .arch-node { min-height: 0; }
  .arch-node:nth-child(5) { grid-column: auto; }
  .simple-flow { flex-wrap: wrap; }
  .simple-flow > div { flex: 1 1 42%; }
  .simple-flow > i { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .glossary > div { grid-template-columns: 1fr; gap: 2px; }
  .arch-lists { grid-template-columns: 1fr; }
  .demo-mail { grid-template-columns: 30px 1fr; }
  .demo-side { grid-column: 2; text-align: left; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .demo-conf b { font-size: 1rem; }
  .demo-conf .confidence { width: 70px; }
  .demo-action { margin: 0; }
  .case-head, .spec-head, .tool-head, .check-head { flex-direction: column; }
  .case-badge { align-self: flex-start; }
  .case-flow > div { min-width: 100px; }
  .final-callout { flex-direction: column; align-items: flex-start; }
  .metric-grid { grid-template-columns: 1fr; }
  .defs > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .simple-flow > div { flex: 1 1 100%; }
  .calc-result strong { font-size: 2.4rem; }
}

/* ---------- Impresión ---------- */

@media print {
  :root {
    --paper: #fff; --paper-2: #fff; --surface: #fff; --surface-2: #fff;
    --ink: #000; --ink-2: #222; --muted: #555;
    --line: #ddd; --line-2: #999; --teal: #0b4d49; --teal-soft: #eef4f1;
    --shadow: none;
  }
  html { scroll-padding-top: 0; }
  .site-header, .mobile-nav, .level-switch, .hero-actions, .demo-actions, .copy, .footer-links, .icon-btn, .progress, .hero-visual, .noscript { display: none !important; }
  body { font-size: 10.5pt; }
  .section, .hero { padding: 12pt 0; border-top: 0; }
  .section-dark { background: #fff; color: #000; }
  .section-dark * { color: #000 !important; background: transparent !important; border-color: #ccc !important; }
  .section-dark .code-card, .section-dark pre { background: #f4f4f4 !important; }
  .card, .demo, .calc, .case, .checklist, .pilot, .arch-detail { break-inside: avoid; box-shadow: none; }
  .arch { grid-template-columns: repeat(5, 1fr); }
  .arch-node:not(:last-child)::after { display: block; }
  .table-wrap { overflow: visible; }
  table { font-size: 8pt; }
  .faq details > *:not(summary) { display: block !important; }
  .pagebreak { page-break-before: always; }
}
