/* Permisoria — Dirección editorial-arquitectónica Fieldhand (inspiración de composición Zendesk, 100 % tokens Fieldhand, 0 JS, WCAG 2.2 AA). */

/* Fuentes OFL autoalojadas (font-src 'self') */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/geist-mono-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/geist-mono-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Tokens Fieldhand oficiales (reference/DESIGN.md) */
  --background: #fbfbf7;
  --surface: #ffffff;
  --stone: #f1f3e9;
  --foreground: #14170f;
  --muted-foreground: #4f5545;
  --fh-ink-3: #5b6150;
  --border: #e3e7d3;
  --fh-line-soft: #eef0e2;
  --input: #8a917a;
  --primary: #4a5d0e;
  --primary-foreground: var(--surface);
  --fh-olive-deep: #2f3d08;
  --fh-forest: #1e2906;
  --fh-obsidian: #141c05;
  --fh-footer: #111608;
  --accent: #e5eacb;
  --accent-foreground: #34430a;
  --fh-hover: #f8faec;
  --fh-lime: #b5c44c;
  --fh-lime-hover: #c5d45b;
  --fh-sage: #e4efd2;
  --fh-map-channel: #cbd8a1;
  --fh-blush: #fadfd0;
  --fh-lilac: #e7e1f5;
  --fh-warn-bg: #fbf0c8;
  --fh-warn-ink: #6b4e00;
  --fh-late: #9a3412;
  --fh-late-bg: #fce4d6;
  --fh-idle-bg: #eef0e6;
  --stage-por-someter: #285967;
  --stage-seguimiento: #70523c;
  --stage-sometido: #47534a;

  /* Elevaciones Fieldhand refinadas (estilo Zendesk) */
  --fh-shadow-card: 0 28px 64px -24px rgb(16 22 6 / 0.42);
  --fh-shadow-float: 0 1px 2px rgb(20 23 15 / 0.04), 0 16px 36px -18px rgb(20 23 15 / 0.14);

  --ease-out-expo: cubic-bezier(0.23, 1, 0.32, 1);

  /* Radios concéntricos arquitectónicos (32 -> 20 -> 14 -> 12 -> 8) */
  --radius-stage: 32px;
  --radius-card: 20px;
  --radius-frame: 14px;
  --radius-control: 12px;
  --radius-pill: 9999px;

  /* Tipografía Fieldhand (autoalojada) */
  --font-sans: "Instrument Sans", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Escala tipográfica monumental (piso >= 13px) */
  --text-display: clamp(2.375rem, 1.65rem + 3.1vw, 4.35rem);
  --text-title: clamp(1.75rem, 1.35rem + 1.45vw, 2.75rem);
  --text-lead: 1.125rem;
  --text-subheading: 1.3125rem;
  --text-body: 1rem;
  --text-meta: 0.875rem;
  --text-caption: 0.8125rem;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 4rem;
  --space-10: 5.5rem;

  --header-offset: 5rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --page-width: 78rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-anchor: none;
  scroll-padding-top: var(--header-offset);
  scrollbar-color: var(--input) var(--background);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-size-adjust: from-font;
  line-height: 1.6;
  overflow-wrap: break-word;
}

::selection {
  background: var(--fh-lime);
  color: var(--foreground);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--foreground);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.036em;
  overflow-wrap: anywhere;
  hyphens: auto;
  hyphenate-limit-chars: 14 5 5;
}

h2 {
  font-size: var(--text-title);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: var(--text-subheading);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.headline-accent {
  color: var(--primary);
}

p {
  margin: 0;
  max-width: 65ch;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
figure {
  margin: 0;
}

a {
  color: var(--primary);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  touch-action: manipulation;
}

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

.announce-bar :focus-visible,
.hero-stage :focus-visible,
.dark-monolith :focus-visible,
.closing-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--fh-lime);
}

.app-card :focus-visible {
  outline-color: var(--primary);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mono-val,
.mono-inline {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.mono-inline {
  font-size: 1em;
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--page-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Skip link */

.skip-link {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-4);
  border-radius: var(--radius-control);
  background: var(--fh-lime);
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-220%);
}

.skip-link:focus {
  transform: none;
}

/* Barra superior oscura estilo editorial Zendesk */

.announce-bar {
  background: var(--fh-footer);
  color: var(--background);
}

.announce-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 var(--space-4);
  padding-block: 8px;
  font-size: var(--text-caption);
}

.announce-inner p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  color: var(--accent);
}

.announce-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fh-lime);
  flex: none;
}

.announce-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fh-lime);
  font-weight: 600;
  text-underline-offset: 4px;
}

/* Cabecera editorial de 3 zonas (Marca | Píldora de navegación | Acciones) */

.site-header {
  background: rgb(251 251 247 / 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-1) var(--space-4);
  padding-block: var(--space-2);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: var(--space-2);
  flex-shrink: 0;
}

.header-actions .button {
  white-space: nowrap;
  flex-shrink: 0;
}

.header-actions .header-cta-desktop {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--foreground);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-dark {
  color: var(--background);
}

.mark {
  flex: none;
  width: 1.625rem;
  height: 1.625rem;
  color: var(--primary);
}

.mark-lime {
  color: var(--fh-lime);
}

.site-nav {
  grid-column: 1 / -1;
  border-top: 1px solid var(--fh-line-soft);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-2);
}

.nav-link,
.footer-link,
.text-link,
.faq-link,
.footer-accent-link {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.text-link,
.faq-link,
.footer-accent-link {
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-link {
  display: inline;
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}

.nav-link {
  justify-content: center;
  color: var(--foreground);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Botones (Lima Fieldhand #b5c44c + tinta #14170f = 9.46:1 WCAG AAA) */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  max-width: 100%;
  min-width: 44px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-control);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  touch-action: manipulation;
  transition: background-color 160ms var(--ease-out-expo), border-color 160ms var(--ease-out-expo), color 160ms var(--ease-out-expo);
}

.button-lime {
  border-color: var(--fh-lime);
  background: var(--fh-lime);
  color: var(--foreground);
}

.button-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.button-outline {
  border-color: var(--input);
  background: var(--surface);
  color: var(--foreground);
}

.button-ghost-dark {
  border-color: rgb(229 234 203 / 0.45);
  background: transparent;
  color: var(--background);
}

.button-compact {
  min-height: 44px;
  padding-inline: var(--space-4);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  flex: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  width: 100%;
}

.actions .button {
  flex: 1 1 100%;
}

/* Escenario Hero redondeado en Obsidiana-Oliva Fieldhand (composición Zendesk) */

.hero-wrap {
  padding-block: 16px var(--space-6);
}

.hero-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  border-radius: var(--radius-stage);
  background:
    radial-gradient(60% 70% at 88% 12%, rgb(74 93 14 / 0.55) 0%, transparent 68%),
    radial-gradient(50% 60% at 12% 85%, rgb(47 61 8 / 0.72) 0%, transparent 70%),
    var(--fh-obsidian);
  color: var(--background);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-contour-1 { fill: rgb(47 61 8 / 0.34); }
.hero-contour-2 { fill: rgb(181 196 76 / 0.08); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  min-width: 0;
}

.hero-kicker {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--fh-lime);
}

.hero-copy > * {
  min-width: 0;
  max-width: 100%;
}

.hero-copy h1 {
  color: var(--background);
}

.hero-lead {
  max-width: 48ch;
  color: var(--accent);
  font-size: var(--text-lead);
  line-height: 1.55;
}

.hero-meta {
  color: var(--accent);
  font-size: var(--text-caption);
}

/* Vitrina interactiva blanca flotando dentro del escenario oscuro Hero */

.hero-showcase {
  min-width: 0;
}

.app-card {
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--foreground);
  box-shadow: var(--fh-shadow-card);
  overflow: hidden;
}

.app-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 12px 20px;
  background: var(--stone);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-caption);
  color: var(--muted-foreground);
}

.chrome-app-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--foreground);
  font-size: var(--text-caption);
}

.chrome-app-brand strong {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.chrome-mark {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex: none;
}

.chrome-sep {
  color: var(--input);
}

.chrome-office {
  display: none;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--surface);
}

.app-main {
  min-width: 0;
  padding: 16px 24px;
}

.app-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.app-screen-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.app-screen-sub {
  font-size: var(--text-caption);
  color: var(--muted-foreground);
}

.app-filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.app-filters .glide-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--primary);
  background: var(--accent);
  transform-origin: top left;
  pointer-events: none;
  will-change: transform;
}

.app-filter {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--foreground);
  font-size: var(--text-caption);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
}

.app-filters.has-glide .app-filter {
  background: transparent;
}

.app-filters.has-glide .app-filter:has(.filter-radio:checked) {
  border-color: transparent;
  background: transparent;
}

.filter-radio {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.app-filter:has(.filter-radio:checked) {
  border-color: var(--primary);
  background: var(--accent);
  color: var(--accent-foreground);
}

.app-filter:has(.filter-radio:focus-visible) {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 0;
  margin: 0;
  padding: var(--space-2) 0 0;
  min-inline-size: 0;
}

.queue-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  min-height: 48px;
  padding: 8px 12px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
}

.demo-radio {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.queue-primary { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.queue-business { font-size: var(--text-meta); font-weight: 600; color: var(--foreground); }
.queue-filing { font-size: var(--text-caption); color: var(--muted-foreground); }

.queue-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  margin-left: auto;
}

.queue-date {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-variant-numeric: tabular-nums;
  color: var(--fh-ink-3);
  white-space: nowrap;
}

.queue-row:has(.demo-radio:checked) {
  border-color: var(--primary);
  background: var(--accent);
}

.queue-row:has(.demo-radio:checked) .queue-filing,
.queue-row:has(.demo-radio:checked) .queue-date {
  color: var(--accent-foreground);
}

.queue-row:has(.demo-radio:focus-visible) {
  outline: 3px solid var(--primary);
  outline-offset: -2px;
}

.app-shell:has(#filtro-atender:checked) .queue-row:not(.queue-row-1),
.app-shell:has(#filtro-agencia:checked) .queue-row:not(.queue-row-2) {
  display: none;
}

.app-shell:has(#filtro-atender:checked, #filtro-agencia:checked) .demo-radio {
  display: none;
}

.app-shell:has(#filtro-atender:checked, #filtro-agencia:checked) .queue-row {
  cursor: default;
}

.app-shell:has(#filtro-atender:checked) .queue-row-1,
.app-shell:has(#filtro-agencia:checked) .queue-row-2 {
  border-color: var(--primary);
  background: var(--accent);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.chip-late { background: var(--fh-late-bg); color: var(--fh-late); }
.chip-warn { background: var(--fh-warn-bg); color: var(--fh-warn-ink); }
.chip-sage { background: var(--fh-sage); color: var(--accent-foreground); }
.chip-lilac { background: var(--fh-lilac); color: var(--foreground); }
.chip-idle { background: var(--fh-idle-bg); color: var(--muted-foreground); }

.app-inspector {
  min-width: 0;
  display: grid;
  padding: 12px 24px 16px;
  background: var(--background);
  border-top: 1px solid var(--border);
  view-transition-name: expediente-inspector;
}

.inspector-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
}

.app-shell:has(#filtro-todos:checked):has(#demo-exp-1:checked) .inspector-panel-1,
.app-shell:has(#filtro-todos:checked):has(#demo-exp-2:checked) .inspector-panel-2,
.app-shell:has(#filtro-todos:checked):has(#demo-exp-3:checked) .inspector-panel-3,
.app-shell:has(#filtro-todos:checked):has(#demo-exp-4:checked) .inspector-panel-4,
.app-shell:has(#filtro-atender:checked) .inspector-panel-1,
.app-shell:has(#filtro-agencia:checked) .inspector-panel-2 {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.inspector-head { display: flex; flex-direction: column; gap: 2px; }

.inspector-code {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-variant-numeric: tabular-nums;
  color: var(--fh-ink-3);
}

.inspector-title { font-size: 0.9375rem; font-weight: 600; color: var(--foreground); }
.inspector-sub { font-size: var(--text-caption); color: var(--muted-foreground); }

.inspector-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-2);
  border-block: 1px solid var(--border);
  font-size: var(--text-caption);
}

.stage-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.stage-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stage-seguimiento { color: var(--stage-seguimiento); }
.stage-por-someter { color: var(--stage-por-someter); }
.stage-sometido { color: var(--stage-sometido); }

.inspector-pending { color: var(--muted-foreground); font-weight: 500; }
.inspector-section { display: flex; flex-direction: column; gap: var(--space-2); }
.inspector-label { font-size: var(--text-caption); font-weight: 600; color: var(--foreground); }

.vault-mini { display: flex; flex-direction: column; gap: 4px; }

.vault-mini li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: var(--text-caption);
  color: var(--foreground);
}

.hero-caption {
  margin-top: var(--space-2);
  color: var(--accent);
  font-size: var(--text-caption);
}

/* Franja unificada de cobertura PR + alcance del software bajo el Hero */

.trust-band {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.trust-coverage {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.trust-scope {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-4);
  border-top: 1px solid var(--fh-line-soft);
}

.scope-title {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--foreground);
}

.trust-scope p {
  max-width: none;
  color: var(--muted-foreground);
  font-size: var(--text-caption);
  line-height: 1.55;
}

.coverage-lead { color: var(--muted-foreground); font-size: var(--text-meta); }
.coverage-lead strong { color: var(--foreground); }

.coverage-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.coverage-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--background);
  color: var(--foreground);
  font-size: var(--text-meta);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.coverage-ico {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex: none;
}

.coverage-org {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--fh-ink-3);
  padding-inline-start: 6px;
  border-left: 1px solid var(--border);
}

/* Secciones editoriales */

.section { padding-block: var(--space-9); }

section[id],
div[id] {
  scroll-margin-top: 5.5rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.section-heading-center {
  align-items: center;
  text-align: center;
}

.section-heading p {
  color: var(--muted-foreground);
  font-size: var(--text-lead);
  line-height: 1.55;
}

/* Espina narrativa conectada (inspiración Zendesk: paneles piedra cálidos #f1f3e9 + línea central) */

.story-spine {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.story-spine::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 50%;
  width: 1px;
  background: var(--border);
  z-index: 0;
}

.story-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6);
  border-radius: var(--radius-stage);
  background: var(--stone);
}

.story-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.story-copy p { color: var(--muted-foreground); }

.checks {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  max-width: 100%;
}

.checks li {
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
  padding-inline-start: var(--space-5);
  color: var(--foreground);
}

.checks li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.62em;
  inset-inline-start: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--primary);
}

.editorial-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}

.editorial-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--fh-obsidian);
  aspect-ratio: 16 / 10;
}

.editorial-photo-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.editorial-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

.editorial-stage .story-visual {
  position: relative;
  z-index: 2;
  margin-top: -2.25rem;
  margin-inline: clamp(0.5rem, 2.5vw, 1.25rem);
}

.editorial-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-inline: clamp(0.5rem, 2.5vw, 1.25rem);
}

.editorial-caption {
  color: var(--fh-ink-3);
  font-size: var(--text-caption);
  line-height: 1.45;
}

.demo-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--foreground);
  font-size: var(--text-caption);
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.demo-replay svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.story-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--fh-shadow-float);
}

.vignette-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--fh-line-soft);
}

.vignette-head > * { min-width: 0; }
.vignette-title { font-size: 0.9375rem; font-weight: 600; color: var(--foreground); overflow-wrap: anywhere; }
.vignette-sub { font-size: var(--text-caption); color: var(--muted-foreground); overflow-wrap: anywhere; }

.stage-rail {
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--fh-idle-bg);
  overflow: hidden;
}

.stage-rail-fill {
  width: 78%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--primary);
  transform-origin: left center;
}

.stage-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.4rem), 1fr));
  gap: var(--space-2);
}

.stage-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--fh-ink-3);
  font-size: var(--text-caption);
  font-weight: 500;
  text-align: center;
}

.stage-done { border-color: var(--accent); background: var(--fh-sage); color: var(--accent-foreground); }
.stage-current { border-color: var(--stage-seguimiento); background: var(--surface); color: var(--stage-seguimiento); font-weight: 600; }

.stage-pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stage-seguimiento);
  flex: none;
}

.vignette-facts { display: flex; flex-direction: column; }

.vignette-facts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 10px;
  border-top: 1px solid var(--fh-line-soft);
  font-size: var(--text-meta);
}

.vignette-facts > div:first-child { border-top: 0; padding-top: 4px; }
.vignette-facts dt { color: var(--muted-foreground); }
.vignette-facts dd { font-weight: 500; color: var(--foreground); }

/* Escena radiografía de documento (inspiración Ramp, 100 % tokens Fieldhand) */

.xray-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: clamp(20px, 3.5vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 1px 1px, rgb(74 93 14 / 0.14) 1px, transparent 0),
    var(--background);
  background-size: 18px 18px;
  overflow: hidden;
}

.xray-doc {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  padding: 18px 20px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  background: var(--surface);
  box-shadow: var(--fh-shadow-float);
  overflow: hidden;
}

.xray-scan-beam {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--fh-lime);
  opacity: 0;
  pointer-events: none;
}

.xray-doc-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fh-line-soft);
}

.xray-doc-file {
  font-size: var(--text-caption);
  color: var(--fh-ink-3);
  overflow-wrap: anywhere;
}

.xray-doc-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.xray-doc-kicker {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary);
}

.xray-doc-org {
  font-size: var(--text-meta);
  font-weight: 600;
  color: var(--foreground);
}

.xray-doc-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xray-doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: var(--text-caption);
}

.xray-doc-row.is-highlighted {
  border-color: var(--accent);
  background: var(--fh-hover);
}

.xray-doc-row dt {
  color: var(--muted-foreground);
}

.xray-doc-row dd {
  font-weight: 600;
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.xray-doc-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}

.xray-doc-lines span {
  display: block;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--fh-idle-bg);
  width: 82%;
}

.xray-doc-lines span:last-child {
  width: 54%;
}

.xray-callouts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  width: 100%;
  margin-top: -18px;
}

.xray-callout {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--input);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--fh-shadow-float);
}

.xray-callout-guard {
  border-color: var(--fh-warn-ink);
  background: var(--fh-warn-bg);
}

.xray-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--foreground);
  border-radius: 1px;
}

.xray-callout-guard .xray-corner {
  background: var(--fh-warn-ink);
}

.xray-c-tl { top: -3px; left: -3px; }
.xray-c-tr { top: -3px; right: -3px; }
.xray-c-bl { bottom: -3px; left: -3px; }
.xray-c-br { bottom: -3px; right: -3px; }

.xray-callout-kicker {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fh-ink-3);
}

.xray-callout-guard .xray-callout-kicker {
  color: var(--fh-warn-ink);
}

.xray-callout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--text-caption);
  color: var(--muted-foreground);
}

.xray-callout-row strong {
  color: var(--foreground);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.xray-guard-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--fh-warn-ink);
  line-height: 1.45;
}

.xray-guard-line svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
}

/* Página dedicada /cobertura.html + tarjeta compacta de portada (#cobertura) */

.cob-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-stage);
  background: var(--stone);
}

.cob-teaser-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  min-width: 0;
  max-width: 100%;
}

.cob-teaser-copy h2,
.cob-teaser-copy p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cob-teaser-copy p {
  color: var(--muted-foreground);
  font-size: var(--text-body);
  line-height: 1.58;
  max-width: 56ch;
}

.cob-teaser-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: var(--space-3);
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cob-teaser-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  min-width: 0;
}

.cob-teaser-stat-featured {
  border-color: var(--primary);
  background: var(--accent);
}

.cob-teaser-num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--primary);
}

.cob-teaser-label {
  font-size: var(--text-caption);
  color: var(--foreground);
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.cob-teaser-note {
  font-size: var(--text-caption);
  color: var(--fh-ink-3);
  line-height: 1.5;
}

.cob-table-wrap {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}

.cob-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-meta);
  text-align: left;
}

.cob-table th,
.cob-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--fh-line-soft);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.cob-table thead th {
  border-bottom: 1px solid var(--border);
  background: var(--stone);
  color: var(--foreground);
  font-size: var(--text-caption);
  font-weight: 600;
}

.cob-table tbody th {
  color: var(--foreground);
  font-weight: 600;
  white-space: nowrap;
}

.cob-table tbody td {
  color: var(--muted-foreground);
  line-height: 1.5;
}

.cob-table tbody tr:last-child th,
.cob-table tbody tr:last-child td {
  border-bottom: 0;
}

.cob-table-foot {
  margin-top: var(--space-4);
  text-align: center;
  max-width: 68ch;
  margin-inline: auto;
  color: var(--fh-ink-3);
  font-size: var(--text-caption);
  line-height: 1.55;
}

.cob-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}

.cob-map-stage {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-5);
  min-width: 0;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-stage);
  background: var(--stone);
}

.cob-map-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--fh-shadow-float);
}

.cob-select-label {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--fh-ink-3);
}

.cob-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cob-select {
  width: 100%;
  min-height: 48px;
  padding: 10px 40px 10px 14px;
  border: 1.5px solid var(--input);
  border-radius: var(--radius-control);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: var(--text-body);
  font-weight: 500;
  appearance: none;
  cursor: pointer;
}

.cob-select:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.cob-select-ico {
  position: absolute;
  right: 14px;
  width: 16px;
  height: 16px;
  color: var(--primary);
  pointer-events: none;
}

.cob-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cob-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: var(--text-caption);
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.cob-quick-btn.is-active {
  border-color: var(--primary);
  background: var(--accent);
  color: var(--accent-foreground);
}

.cob-map-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-2);
  min-width: 0;
}

.cob-map-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Base neutra honesta para los 72 municipios sin detalle local + patrones SVG para WCAG 1.4.11 */
.cob-muni {
  fill: var(--surface);
  stroke: var(--input);
  stroke-width: 0.9;
  stroke-linejoin: round;
  cursor: pointer;
}

.cob-muni-local {
  fill: url(#cob-pat-local);
  stroke: var(--primary);
  stroke-width: 2;
}

.cob-muni-channel {
  fill: url(#cob-pat-channel);
  stroke: var(--primary);
  stroke-width: 2;
}

.cob-muni.is-active {
  fill: var(--primary);
  stroke: var(--fh-obsidian);
  stroke-width: 2.2;
}

.cob-map-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
}

.cob-map-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  background: var(--surface);
}

.cob-map-fact-kicker {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--primary);
}

.cob-map-fact strong {
  font-size: var(--text-meta);
  font-weight: 600;
  color: var(--foreground);
}

.cob-map-fact span {
  font-size: var(--text-caption);
  color: var(--muted-foreground);
  line-height: 1.5;
}

.cob-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: var(--text-caption);
  color: var(--muted-foreground);
}

.cob-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cob-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex: none;
  border: 1px solid var(--input);
}

.cob-swatch-active { background: var(--primary); border-color: var(--fh-obsidian); }
.cob-swatch-local {
  background: repeating-linear-gradient(45deg, var(--fh-lime), var(--fh-lime) 3px, var(--primary) 3px, var(--primary) 4.5px);
  border: 2px solid var(--primary);
}
.cob-swatch-channel {
  background: radial-gradient(circle, var(--primary) 1.3px, transparent 1.3px) 0 0 / 5px 5px, var(--fh-sage);
  border: 2px solid var(--primary);
}
.cob-swatch-base { background: var(--surface); }

.cob-detail-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  min-width: 0;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-stage);
  background: var(--surface);
  box-shadow: var(--fh-shadow-float);
}

.cob-detail-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.cob-detail-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--stone);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: var(--text-caption);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.cob-detail-tag.is-local {
  background: var(--fh-lime);
  border-color: var(--primary);
  color: var(--foreground);
}

.cob-detail-tag.is-channel {
  background: var(--fh-sage);
  border-color: var(--primary);
  color: var(--accent-foreground);
}

.cob-detail-channel {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--background);
  color: var(--muted-foreground);
  font-size: var(--text-caption);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cob-detail-channel strong {
  color: var(--foreground);
}

.cob-detail-head h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.cob-detail-summary {
  color: var(--muted-foreground);
  font-size: var(--text-meta);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cob-tramite-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cob-tramite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: var(--text-caption);
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.cob-tramite-btn.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.cob-wa-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--stone);
  min-width: 0;
}

.cob-wa-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.cob-wa-label {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--foreground);
}

.cob-wa-meta {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--fh-ink-3);
}

.cob-wa-preview {
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  background: var(--surface);
  color: var(--foreground);
  font-family: inherit;
  font-size: var(--text-caption);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cob-wa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cob-suggest-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px dashed var(--input);
  border-radius: var(--radius-frame);
  background: var(--background);
}

.cob-suggest-inline p {
  color: var(--muted-foreground);
  font-size: var(--text-caption);
  line-height: 1.5;
}

.cob-detail-note {
  color: var(--fh-ink-3);
  font-size: var(--text-caption);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.reminder-list { display: flex; flex-direction: column; }

.reminder-list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-block: 12px;
  border-top: 1px solid var(--fh-line-soft);
}

.reminder-list li:first-child { padding-top: 4px; border-top: 0; }
.reminder-list li:last-child { padding-bottom: 4px; }
.reminder-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.reminder-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reminder-name { font-size: var(--text-meta); font-weight: 600; color: var(--foreground); }
.reminder-date { font-size: var(--text-caption); color: var(--fh-ink-3); }

.urgency-track { height: 4px; border-radius: var(--radius-pill); background: var(--fh-idle-bg); overflow: hidden; }
.urgency-bar { display: block; height: 100%; border-radius: var(--radius-pill); transform-origin: left center; }
.urgency-30 { width: 84%; background: var(--fh-late); }
.urgency-60 { width: 56%; background: var(--fh-warn-ink); }
.urgency-90 { width: 30%; background: var(--primary); }

/* Estadísticas verificadas de Puerto Rico (tablero editorial con gráficos SVG/barras) */

.stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--fh-shadow-float);
}

.stat-card-featured {
  border-color: var(--fh-obsidian);
  background:
    radial-gradient(65% 80% at 92% 10%, rgb(181 196 76 / 0.16) 0%, transparent 65%),
    var(--fh-obsidian);
  color: var(--background);
}

.stat-kicker {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--stone);
  border: 1px solid var(--border);
  color: var(--fh-ink-3);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 500;
}

.stat-card-featured .stat-kicker {
  background: rgb(181 196 76 / 0.14);
  border-color: rgb(181 196 76 / 0.34);
  color: var(--fh-lime);
}

.stat-figure {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--primary);
}

.stat-card-featured .stat-figure {
  color: var(--background);
}

.stat-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.stat-card-featured h3 {
  color: var(--background);
}

.stat-viz {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-frame);
  border: 1px solid var(--fh-line-soft);
  background: var(--background);
}

.stat-card-featured .stat-viz {
  border-color: rgb(229 234 203 / 0.16);
  background: rgb(16 23 4 / 0.55);
}

.stat-bar {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  gap: 4px;
}

.stat-bar-seg {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
}

.stat-bar-lime { width: 29%; background: var(--fh-lime); }
.stat-bar-dark-rest { width: 71%; background: rgb(229 234 203 / 0.22); }
.stat-bar-olive { width: 27%; background: var(--primary); }
.stat-bar-sage { width: 73%; background: var(--accent); }

.stat-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-caption);
  color: var(--muted-foreground);
}

.stat-card-featured .stat-legend {
  color: var(--accent);
}

.stat-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.stat-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.stat-dot-lime { background: var(--fh-lime); }
.stat-dot-dark-rest { background: rgb(229 234 203 / 0.42); }
.stat-dot-olive { background: var(--primary); }
.stat-dot-sage { background: var(--accent); border: 1px solid var(--primary); }

.stat-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.stat-sector-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  font-size: var(--text-caption);
  font-weight: 500;
}

.stat-sector-pill svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex: none;
}

.stat-gauge-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.stat-gauge {
  width: 148px;
  height: 82px;
  flex: none;
}

.stat-gauge-track {
  fill: none;
  stroke: var(--fh-idle-bg);
  stroke-width: 14;
  stroke-linecap: round;
}

.stat-gauge-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 62.32 226.19;
}

.stat-gauge-marker {
  fill: var(--fh-lime);
  stroke: var(--primary);
  stroke-width: 2.5;
}

.stat-gauge-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 11rem;
}

.stat-gauge-meta strong {
  font-size: var(--text-meta);
  font-weight: 600;
  color: var(--foreground);
}

.stat-gauge-meta span {
  font-size: var(--text-caption);
  color: var(--muted-foreground);
  line-height: 1.45;
}

.stat-note {
  color: var(--muted-foreground);
  font-size: var(--text-meta);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.stat-card-featured .stat-note {
  color: var(--accent);
}

.stat-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.stat-chain-node {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgb(229 234 203 / 0.22);
  background: rgb(47 61 8 / 0.55);
  color: var(--background);
  font-size: var(--text-caption);
  font-weight: 600;
}

.stat-chain-node-end {
  border-color: var(--fh-lime);
  background: rgb(181 196 76 / 0.18);
  color: var(--fh-lime);
}

.stat-chain-arrow {
  color: var(--fh-lime);
  font-size: var(--text-caption);
  font-weight: 600;
}

.stat-milestones {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.stat-milestone {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px var(--space-3);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--text-caption);
}

.stat-milestone strong {
  color: var(--foreground);
  font-weight: 600;
}

.stat-milestone span {
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 500;
}

.stat-payoff {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-frame);
  border: 1px solid var(--accent);
  background: var(--fh-sage);
}

.stat-payoff strong {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary);
}

.stat-payoff span {
  font-size: var(--text-meta);
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.stat-payoff-dark {
  border-color: rgb(181 196 76 / 0.42);
  background: rgb(181 196 76 / 0.14);
}

.stat-payoff-dark strong {
  color: var(--fh-lime);
}

.stat-payoff-dark span {
  color: var(--background);
}

/* Nota "Lo que viene", "¿Cuánto cuesta un descuido?" y "Haga la cuenta" */

.upcoming-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding: clamp(20px, 3.5vw, 28px);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--stone);
}

.upcoming-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.upcoming-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fh-ink-3);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 500;
}

.upcoming-note h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.upcoming-note p {
  font-size: var(--text-meta);
  line-height: 1.6;
  color: var(--muted-foreground);
  overflow-wrap: anywhere;
}

.upcoming-note .upcoming-source {
  font-size: var(--text-caption);
  color: var(--fh-ink-3);
}

.upcoming-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  align-content: center;
}

.upcoming-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-frame);
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
}

.upcoming-facts strong {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
}

.upcoming-facts span {
  font-size: var(--text-caption);
  color: var(--foreground);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.risk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.risk-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--fh-shadow-float);
}

.risk-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.risk-card p {
  font-size: var(--text-meta);
  line-height: 1.6;
  color: var(--muted-foreground);
  overflow-wrap: anywhere;
}

.risk-card .risk-kicker {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--stone);
  color: var(--fh-ink-3);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.3;
}

.risk-card .risk-figure {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.risk-card .risk-source {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--fh-line-soft);
  font-size: var(--text-caption);
  line-height: 1.45;
  color: var(--fh-ink-3);
}

.selfcheck-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-stage);
  background: var(--surface);
  box-shadow: var(--fh-shadow-float);
}

.selfcheck-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.selfcheck-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-frame);
  border: 1px solid var(--fh-line-soft);
  background: var(--background);
  min-width: 0;
}

.selfcheck-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: var(--fh-sage);
  color: var(--primary);
  font-size: var(--text-caption);
  font-weight: 600;
}

.selfcheck-item p {
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.5;
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.selfcheck-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  text-align: center;
}

.selfcheck-footer p {
  max-width: 56ch;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--foreground);
}

.stats-source {
  text-align: center;
  max-width: 68ch;
  margin-inline: auto;
}

/* Monolito oscuro redondeado interactivo (composición Zendesk "Designed for...") */

.monolith-section {
  padding-block: var(--space-4) var(--space-6);
}

.dark-monolith {
  min-width: 0;
  padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 32px);
  border-radius: var(--radius-stage);
  background:
    radial-gradient(60% 60% at 85% 95%, rgb(74 93 14 / 0.45) 0%, transparent 70%),
    var(--fh-obsidian);
  color: var(--background);
  overflow-wrap: anywhere;
}

.monolith-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.monolith-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 62ch;
}

.monolith-intro h2 { color: var(--background); }
.monolith-intro p { color: var(--accent); font-size: var(--text-lead); }

.security-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid rgb(229 234 203 / 0.16);
  border-radius: var(--radius-card);
  background: rgb(30 41 6 / 0.85);
}

.pipeline-step { display: flex; align-items: center; gap: var(--space-3); flex: 1 1 11rem; min-width: 0; }

.pipeline-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15em;
  min-height: 2.15em;
  padding-inline: 0.35em;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--fh-lime);
  color: var(--fh-lime);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 500;
  flex: none;
}

.pipeline-node-done { background: var(--fh-lime); color: var(--fh-obsidian); font-weight: 600; }
.pipeline-name { font-size: var(--text-meta); font-weight: 600; color: var(--background); }
.pipeline-meta { font-size: var(--text-caption); color: var(--accent); }
.pipeline-line { display: none; flex: 0 1 2rem; height: 1px; background: rgb(181 196 76 / 0.45); }

/* Rediseño arquitectónico Bento para Seguridad y privacidad */

.security-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.sec-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-5);
  min-width: 0;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid rgb(229 234 203 / 0.15);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgb(32 44 7 / 0.92) 0%, rgb(22 31 5 / 0.96) 100%);
}

.sec-card-wide {
  border-color: rgb(181 196 76 / 0.34);
  background:
    radial-gradient(60% 80% at 15% 15%, rgb(181 196 76 / 0.12) 0%, transparent 70%),
    linear-gradient(180deg, rgb(34 46 8 / 0.96) 0%, rgb(22 31 5 / 0.98) 100%);
}

.sec-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.sec-card h3 {
  color: var(--background);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.sec-card p {
  color: var(--background);
  opacity: 0.88;
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ssn-mock-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ssn-mock-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgb(229 234 203 / 0.35);
  background:
    linear-gradient(135deg, rgb(229 234 203 / 0.16) 0%, rgb(251 251 247 / 0.08) 100%);
  overflow: hidden;
}

.ssn-mock-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.ssn-mock-num {
  font-size: 1.0625rem;
  letter-spacing: 0.1em;
  color: var(--background);
  opacity: 0.55;
  text-decoration: line-through;
}

.ssn-mock-name {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--accent);
  opacity: 0.65;
}

.ssn-mock-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 2px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--fh-lime);
  color: var(--fh-obsidian);
  font-size: var(--text-caption);
  font-weight: 600;
}

.ssn-mock-stamp svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.ssn-mock-caption {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--fh-lime);
}

.sec-proof-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-proof-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgb(229 234 203 / 0.14);
  background: rgb(25 34 6 / 0.65);
  color: var(--background);
  font-size: var(--text-caption);
}

.sec-proof-badge {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgb(181 196 76 / 0.42);
  background: rgb(181 196 76 / 0.14);
  color: var(--fh-lime);
  font-weight: 600;
}

.sec-visual {
  padding: var(--space-4);
  border: 1px solid rgb(229 234 203 / 0.12);
  border-radius: var(--radius-frame);
  background: rgb(16 23 4 / 0.72);
  min-width: 0;
}

.iso-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  align-items: stretch;
  flex: 1;
}

.iso-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  border: 1px dashed rgb(229 234 203 / 0.18);
  border-radius: 10px;
  background: rgb(25 34 6 / 0.45);
}

.iso-cell-active {
  border: 1.5px solid var(--fh-lime);
  background: rgb(47 61 8 / 0.65);
}

.iso-cell-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--accent);
}

.iso-cell-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.iso-cell-active .iso-cell-head { color: var(--background); }
.iso-cell-head svg { width: 15px; height: 15px; color: var(--fh-lime); flex: none; }
.iso-cell-status { font-size: var(--text-caption); font-weight: 600; color: var(--fh-lime); }
.iso-cell-muted { font-size: var(--text-caption); font-weight: 500; color: var(--accent); }
.iso-cell-note { font-size: var(--text-caption); color: var(--background); opacity: 0.72; line-height: 1.4; }
.iso-wall { display: none; width: 1px; background: rgb(181 196 76 / 0.35); }

.guard-demo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.guard-file {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  color: var(--background);
  font-size: var(--text-caption);
  overflow-wrap: anywhere;
}

.guard-file svg { width: 16px; height: 16px; color: var(--fh-lime); flex: none; }

.sec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sec-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid rgb(181 196 76 / 0.38);
  border-radius: var(--radius-pill);
  background: rgb(181 196 76 / 0.12);
  color: var(--fh-lime);
  font-size: var(--text-caption);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.sec-pill-warn {
  border-color: var(--fh-lime);
  background: var(--fh-lime);
  color: var(--fh-obsidian);
}

.footnote { margin-top: var(--space-5); color: var(--fh-ink-3); font-size: var(--text-meta); }
.footnote-deep { color: var(--accent); }

/* Comparativa editorial espejada (Sin Permisoria vs Con Permisoria) */

.split-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}

.split-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-stage);
  background: var(--stone);
  border: 1px dashed var(--input);
  overflow: hidden;
}

.split-card-after {
  border: 2px solid var(--primary);
  background: var(--surface);
  box-shadow: var(--fh-shadow-float);
}

.split-card-after::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: var(--fh-lime);
}

.split-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.split-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-caption);
  font-weight: 600;
}

.split-badge-before {
  background: var(--surface);
  color: var(--fh-ink-3);
  border: 1px solid var(--border);
}

.split-badge-after {
  background: var(--accent);
  color: var(--accent-foreground);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  border-radius: var(--radius-frame);
}

.compare-item-before {
  background: rgb(251 251 247 / 0.65);
  border: 1px solid var(--border);
}

.compare-item-after {
  background: var(--background);
  border: 1px solid var(--fh-tint);
}

.compare-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  margin-top: 2px;
}

.compare-icon svg { width: 15px; height: 15px; }

.compare-icon-before {
  background: var(--fh-late-bg);
  color: var(--fh-late);
}

.compare-icon-after {
  background: var(--accent);
  color: var(--accent-foreground);
}

.compare-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.compare-copy strong {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.compare-copy p {
  color: var(--muted-foreground);
  font-size: var(--text-meta);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.compare-note,
.stats-bridge {
  margin-top: var(--space-5);
  margin-inline: auto;
  max-width: 62ch;
  text-align: center;
  color: var(--foreground);
  font-size: var(--text-meta);
  font-weight: 500;
}

/* Bloque puente de adopción #empezar */

.start-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius-stage);
  background: var(--stone);
}

.start-panel .section-heading {
  margin-bottom: 0;
}

.start-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.start-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.start-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-foreground);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  font-weight: 600;
  flex: none;
}

.start-step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
}

.start-step p {
  color: var(--muted-foreground);
  font-size: var(--text-meta);
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.start-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  padding-top: var(--space-2);
}

.start-footnote {
  max-width: 62ch;
  color: var(--muted-foreground);
  font-size: var(--text-caption);
  line-height: 1.55;
}

/* Bloque de solicitud #solicitar dentro de #planes */

.request-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-stage);
  background: var(--stone);
}

.request-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.request-head h3 {
  color: var(--foreground);
}

.request-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.request-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.request-step p {
  color: var(--foreground);
  font-size: var(--text-meta);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.request-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.request-fallback {
  color: var(--muted-foreground);
  font-size: var(--text-meta);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.request-fallback strong {
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.request-entity {
  color: var(--muted-foreground);
  font-size: var(--text-caption);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.plan-invite-link {
  color: var(--primary);
  font-size: var(--text-meta);
  font-weight: 500;
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.plain-list li {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted-foreground);
  padding-inline-start: var(--space-4);
  position: relative;
}

.plain-list li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.68em;
  inset-inline-start: 0;
  width: 6px;
  height: 2px;
  background: var(--input);
}

/* Resumen «Empiece gratis» en portada + Página dedicada /planes.html */

.free-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  padding: clamp(24px, 5vw, 48px);
  border: 2px solid var(--primary);
  border-radius: var(--radius-stage);
  background: var(--surface);
  box-shadow: var(--fh-shadow-float);
  overflow: hidden;
}

.free-spotlight::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: var(--fh-lime);
}

.free-spotlight-lead,
.free-spotlight-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  min-width: 0;
}

.free-spotlight-detail {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.page-hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 48px);
  border-radius: var(--radius-stage);
  background:
    radial-gradient(60% 70% at 85% 15%, rgb(74 93 14 / 0.55) 0%, transparent 68%),
    radial-gradient(50% 60% at 15% 85%, rgb(47 61 8 / 0.72) 0%, transparent 70%),
    var(--fh-obsidian);
  color: var(--background);
}

.page-hero-stage > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.page-hero-kicker {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--fh-lime);
}

.page-hero-stage h1 {
  max-width: 20ch;
  color: var(--background);
}

.page-hero-stage .hero-lead {
  max-width: 58ch;
}

.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--text-meta);
  text-align: left;
}

.compare-table-2col {
  min-width: 0;
}

.compare-table-2col th:first-child {
  width: 34%;
}

/* Matriz desplegable de funciones por categoría (estilo Zendesk) en /planes.html */

.plans-jump-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

.matrix-shell {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.matrix-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.matrix-summary-count {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--fh-ink-3);
}

.matrix-col-head {
  display: none;
}

.matrix-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.matrix-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 180ms var(--ease-out-expo);
}

.matrix-group[open] {
  border-color: var(--primary);
}

.matrix-group > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
  padding: var(--space-4) var(--space-5);
  background: var(--stone);
  color: var(--foreground);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.matrix-group > summary::-webkit-details-marker { display: none; }

.matrix-group-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  overflow-wrap: anywhere;
}

.matrix-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fh-ink-3);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 500;
}

.matrix-group[open] .faq-toggle {
  border-color: var(--primary);
  background: var(--accent);
}

.matrix-group[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.matrix-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.matrix-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2) var(--space-6);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--fh-line-soft);
}

.matrix-row:first-child {
  border-top: 0;
}

.matrix-feat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.matrix-feat strong {
  font-size: var(--text-meta);
  font-weight: 600;
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.matrix-desc {
  font-size: var(--text-caption);
  color: var(--muted-foreground);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.matrix-val {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.matrix-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: var(--text-meta);
  font-weight: 600;
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.matrix-status-no {
  color: var(--muted-foreground);
  font-weight: 500;
}

.matrix-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
}

.matrix-ico svg {
  width: 13px;
  height: 13px;
}

.matrix-ico-yes {
  background: var(--accent);
  color: var(--accent-foreground);
}

.matrix-ico-no {
  background: var(--fh-idle-bg);
  color: var(--muted-foreground);
}

.matrix-sub {
  padding-inline-start: 30px;
  font-size: var(--text-caption);
  color: var(--muted-foreground);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.compare-table th,
.compare-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--fh-line-soft);
  vertical-align: top;
}

.compare-table thead th {
  border-bottom: 1px solid var(--border);
  background: var(--stone);
  color: var(--foreground);
  font-weight: 600;
}

.compare-table tbody th {
  color: var(--foreground);
  font-weight: 500;
}

.compare-table tbody td {
  color: var(--muted-foreground);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table .col-featured {
  background: var(--fh-tint);
  color: var(--foreground);
}

.compare-table thead th.col-featured {
  background: var(--accent);
  color: var(--accent-foreground);
}

/* Planes (tarjetas limpias y equilibradas estilo Zendesk) */

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  max-width: 60rem;
  margin-inline: auto;
  align-items: stretch;
}

.plans > * { min-width: 0; }

.plan {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-5);
  padding: clamp(24px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.plan-featured {
  position: relative;
  border: 2px solid var(--primary);
  box-shadow: var(--fh-shadow-float);
  overflow: hidden;
}

.plan-featured::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--fh-lime);
}

.plan-upcoming {
  background: var(--stone);
  border-color: var(--border);
}

.plan-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.plan-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-caption);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.plan-badge-live { background: var(--accent); color: var(--accent-foreground); }
.plan-badge-upcoming { background: var(--surface); color: var(--foreground); border: 1px solid var(--border); }

.plan-price-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}

.price-upcoming {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--primary);
}

.price span { color: var(--muted-foreground); font-size: var(--text-body); font-weight: 500; }

.plan-price-note {
  color: var(--muted-foreground);
  font-size: var(--text-caption);
  line-height: 1.45;
}

.plan-cta-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.button-block {
  width: 100%;
}

.plan-list-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.plan-list-title {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fh-ink-3);
}

.plan-text { min-width: 0; overflow-wrap: anywhere; color: var(--muted-foreground); font-size: var(--text-meta); line-height: 1.5; }
.plan-guarantee { padding-top: var(--space-2); color: var(--foreground); }

/* FAQ editorial en 2 columnas con tarjetas y botón +/− */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.faq-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.faq-aside > p {
  color: var(--muted-foreground);
  font-size: var(--text-lead);
}

.faq-help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--stone);
}

.faq-help-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
}

.faq-help-card p {
  color: var(--muted-foreground);
  font-size: var(--text-meta);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: border-color 180ms var(--ease-out-expo), background-color 180ms var(--ease-out-expo);
}

.faq-item[open] {
  border-color: var(--primary);
  background: var(--stone);
}

.faq-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 58px;
  padding: var(--space-4) var(--space-5);
  color: var(--foreground);
  font-size: var(--text-body);
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}

.faq-item > summary > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.faq-item > summary::-webkit-details-marker { display: none; }

.faq-toggle {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--background);
  flex: none;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-toggle {
  border-color: var(--primary);
  background: var(--accent);
}

.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-item::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.faq-item:not([open])::details-content { block-size: 0; }
.faq-answer { padding: 4px var(--space-5) var(--space-5); }
.faq-answer p { color: var(--muted-foreground); font-size: var(--text-meta); line-height: 1.62; }

/* Banda de cierre verde bosque + Pie arquitectónico de 4 columnas */

.closing-band {
  padding-block: clamp(64px, 8vw, 100px);
  background: var(--fh-forest);
  color: var(--background);
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.closing-inner h2 { color: var(--background); }
.closing-inner p { color: var(--accent); font-size: var(--text-lead); }
.closing-actions { justify-content: center; width: 100%; max-width: 100%; }

.site-footer {
  margin-top: auto;
  background: var(--fh-footer);
  color: var(--accent);
  border-top: 1px solid rgb(229 234 203 / 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  padding-block: 56px 48px;
  border-bottom: 1px solid rgb(229 234 203 / 0.14);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
}

.footer-summary {
  max-width: 38ch;
  color: var(--accent);
  font-size: var(--text-meta);
  line-height: 1.58;
}

.footer-mail-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid rgb(181 196 76 / 0.42);
  border-radius: var(--radius-pill);
  background: rgb(181 196 76 / 0.1);
  color: var(--fh-lime);
  font-size: var(--text-meta);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.footer-col-title {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fh-lime);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
}

.footer-link {
  justify-content: flex-start;
  color: var(--accent);
  font-size: var(--text-meta);
  font-weight: 500;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-5);
  font-size: var(--text-caption);
  color: var(--accent);
}

/* Página 404 */

.not-found {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-5);
  padding-block: var(--space-9);
}

.not-found .mark { width: 3rem; height: 3rem; }

/* Responsive */

@media (max-width: 63.99rem) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .header-actions {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .site-nav ul {
    justify-content: center;
    gap: 0 var(--space-2);
  }

  .nav-link {
    min-width: 44px;
    padding-inline: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

@media (min-width: 36rem) {
  .header-actions .header-cta-desktop {
    display: inline-flex;
  }
}

@media (max-width: 39.99rem) {
  .cob-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .cob-table,
  .cob-table tbody,
  .cob-table tr,
  .cob-table th,
  .cob-table td {
    display: block;
    width: 100%;
  }

  .cob-table tbody tr {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
  }

  .cob-table tbody tr:last-child {
    border-bottom: 0;
  }

  .cob-table tbody th,
  .cob-table tbody td {
    padding: 4px 0;
    border: 0;
    white-space: normal;
  }

  .cob-table tbody th {
    font-size: 1rem;
    padding-bottom: 6px;
  }

  .cob-table tbody td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--foreground);
  }
}

@media (max-width: 29.99rem) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1) var(--space-3);
  }
  .header-actions { margin-left: auto; max-width: 100%; }
  .header-actions .button { white-space: normal; text-align: center; }
  .site-nav { order: 3; flex: 1 0 100%; max-width: 100%; }
  .hero-lead { max-width: 100%; overflow-wrap: anywhere; }
  .queue-date { white-space: normal; }
  .app-main { padding-inline: min(var(--space-4), 5vw); }
  .queue-row { padding-inline: min(var(--space-3), 3.75vw); }
  .story-card { padding-inline: min(var(--space-6), 7.5vw); }
  .story-visual { padding-inline: min(var(--space-5), 6.25vw); }
  .xray-stage { padding: 16px; }
  .xray-doc { padding: 14px; }
  .cob-map-stage,
  .cob-detail-card,
  .cob-teaser { padding: 16px; }
  .chip { white-space: normal; max-width: 100%; }
}

@media (min-width: 30rem) {
  .actions .button { flex: 0 1 auto; }
  .vault-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cob-map-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xray-callouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xray-callout-3 { grid-column: 1 / -1; }
}

@media (min-width: 48rem) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chrome-office { display: inline-flex; }

  .hero-stage { padding: clamp(40px, 5vw, 64px) clamp(28px, 4.5vw, 56px); }
  .page-hero-stage { padding: clamp(52px, 7vw, 84px) clamp(28px, 5vw, 56px); }
  .dark-monolith { padding: var(--space-8); }
  .story-card { padding: var(--space-8); }

  .xray-stage {
    padding: 28px 24px;
  }

  .trust-scope { flex-direction: row; align-items: baseline; gap: var(--space-4); }
  .scope-title { white-space: nowrap; }

  .split-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .request-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .matrix-col-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
    gap: var(--space-6);
    align-items: center;
    padding: 0 var(--space-5);
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--fh-ink-3);
  }

  .matrix-col-head-plan {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--accent-foreground);
    justify-self: start;
  }

  .matrix-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  }
}

@media (min-width: 64rem) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    padding-block: var(--space-3);
  }

  .header-actions .header-cta-desktop { display: inline-flex; }

  .site-nav {
    grid-column: auto;
    justify-self: center;
    border-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav ul {
    justify-content: center;
    gap: var(--space-1);
  }

  .nav-link {
    padding-inline: 12px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .hero-wrap > .container {
    max-width: 90rem;
  }

  .hero-stage {
    min-height: min(82dvh, 740px);
    display: flex;
    align-items: center;
    padding: clamp(32px, 3.6vw, 48px) clamp(40px, 5vw, 72px);
  }

  .hero-grid {
    width: 100%;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: clamp(36px, 4.5vw, 64px);
  }

  .hero-copy {
    gap: var(--space-5);
  }

  .queue-list { min-height: 14.5rem; }

  .trust-coverage { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-5); }

  .free-spotlight {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: var(--space-8);
    align-items: center;
  }

  .free-spotlight-detail {
    padding-top: 0;
    padding-left: 40px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .story-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: var(--space-9);
    padding: var(--space-8) var(--space-9);
  }

  .story-card-reverse .editorial-stage { order: -1; }

  .cob-explorer {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: var(--space-6);
  }

  .cob-teaser {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--space-8);
  }

  .upcoming-note {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
    gap: var(--space-6);
    align-items: center;
  }

  .risk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .selfcheck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .pipeline-line { display: block; }

  .iso-diagram {
    grid-template-columns: minmax(0, 1.25fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: var(--space-3);
  }

  .iso-wall { display: block; }

  .security-bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .sec-card { grid-column: span 2; }
  .sec-card-wide { grid-column: span 4; }
  .sec-card-guard { grid-column: span 2; }

  .faq-layout {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: var(--space-8);
  }

  .faq-aside {
    position: sticky;
    top: 5.5rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-8);
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .plan-price-block {
    min-height: 4.75rem;
    justify-content: flex-end;
  }

  .plan-cta-block {
    min-height: 6.25rem;
  }
}

@media (min-width: 75rem) {
  .site-nav ul { gap: var(--space-2); }
  .nav-link { padding-inline: 16px; }
}

/* Hover solo en controles realmente interactivos */

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    background: var(--stone);
    color: var(--foreground);
    text-decoration: none;
  }

  .text-link:hover,
  .faq-link:hover,
  .source-link:hover,
  .brand:hover {
    color: var(--fh-olive-deep);
    text-decoration: underline;
  }

  .brand-dark:hover,
  .footer-link:hover,
  .announce-link:hover {
    color: var(--fh-lime-hover);
    text-decoration: underline;
  }

  .footer-mail-pill:hover {
    border-color: var(--fh-lime);
    background: rgb(181 196 76 / 0.2);
    color: var(--background);
  }

  .button-lime:hover {
    border-color: var(--fh-lime-hover);
    background: var(--fh-lime-hover);
  }

  .button-primary:hover {
    border-color: var(--fh-olive-deep);
    background: var(--fh-olive-deep);
  }

  .button-lime:hover .btn-arrow,
  .button-primary:hover .btn-arrow {
    transform: translateX(3px);
  }

  .button-outline:hover {
    border-color: var(--primary);
    background: var(--fh-hover);
    color: var(--accent-foreground);
  }

  .button-ghost-dark:hover {
    border-color: var(--fh-lime);
    background: rgb(181 196 76 / 0.12);
    color: var(--background);
  }

  .app-filter:hover {
    border-color: var(--primary);
    background: var(--fh-hover);
    color: var(--accent-foreground);
  }

  .queue-row:hover { background: var(--fh-hover); }

  .vault-tab:hover {
    border-color: rgb(181 196 76 / 0.55);
    color: var(--background);
  }

  .demo-replay:hover,
  .cob-quick-btn:hover,
  .cob-tramite-btn:hover {
    border-color: var(--primary);
    background: var(--fh-hover);
    color: var(--accent-foreground);
  }

  .cob-tramite-btn.is-active:hover {
    background: var(--fh-olive-deep);
    color: var(--primary-foreground);
  }

  .cob-muni:hover {
    fill: var(--fh-lime-hover);
  }

  .cob-muni.is-active:hover {
    fill: var(--fh-olive-deep);
  }

  .faq-item > summary:hover { color: var(--fh-olive-deep); }
}

.button:active { transform: scale(0.985); }

/* Coreografía de movimiento (<= 380ms entradas, 0 bucles infinitos) */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html { scroll-behavior: smooth; }

  .button,
  .btn-arrow,
  .nav-link,
  .footer-link,
  .text-link,
  .announce-link,
  .app-filter,
  .queue-row,
  .vault-tab,
  .cob-quick-btn,
  .cob-tramite-btn,
  .faq-item > summary,
  .faq-item > summary::before {
    transition-property: color, background-color, border-color, transform;
    transition-duration: 150ms;
    transition-timing-function: var(--ease-out-expo);
  }

  .cob-muni {
    transition: fill 140ms var(--ease-out-expo), stroke 140ms var(--ease-out-expo);
  }

  .faq-item::details-content {
    transition-property: block-size, content-visibility, display;
    transition-duration: 240ms;
    transition-timing-function: var(--ease-out-expo);
    transition-behavior: allow-discrete;
  }

  .faq-item[open] .faq-answer {
    transition: opacity 220ms var(--ease-out-expo), transform 220ms var(--ease-out-expo);
    opacity: 1;
    transform: translateY(0);
  }

  @starting-style {
    .faq-item[open] .faq-answer {
      opacity: 0;
      transform: translateY(-6px);
    }
  }

  .glide-pill {
    transition: transform 240ms var(--ease-out-expo);
  }

  .glide-pill.glide-snap {
    transition: none;
  }

  .inspector-panel,
  .vault-panel {
    transition: opacity 220ms var(--ease-out-expo), transform 220ms var(--ease-out-expo), visibility 220ms;
  }

  .vault-panel {
    opacity: 0;
    transform: translateY(6px);
  }

  .vault-console:has(#vault-espacio:checked) .vault-panel-1,
  .vault-console:has(#vault-cifrado:checked) .vault-panel-2,
  .vault-console:has(#vault-ssn:checked) .vault-panel-3,
  .vault-console:has(#vault-acceso:checked) .vault-panel-4,
  .vault-console:has(#vault-privacidad:checked) .vault-panel-5 {
    opacity: 1;
    transform: translateY(0);
  }

  /* Entrada táctil universal (Safari/Firefox + Chrome) sin ocultar contenido bajo el pliegue */
  .reveal-ready {
    transform: translateY(14px) scale(0.992);
    transition: transform 340ms var(--ease-out-expo);
  }

  .reveal-ready.in-view {
    transform: none;
  }

  ::view-transition-old(expediente-inspector) {
    animation: 150ms var(--ease-out-expo) both fh-vt-out;
  }

  ::view-transition-new(expediente-inspector) {
    animation: 220ms var(--ease-out-expo) both fh-vt-in;
  }

  .mark-path {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: fh-mark-draw 380ms var(--ease-out-expo) 40ms both;
  }

  .mark-dot {
    transform-origin: 40px 40px;
    animation: fh-dot-land 240ms var(--ease-out-expo) 260ms both;
  }

  .enter-lead { animation: fh-rise-lead 340ms var(--ease-out-expo) 0ms both; }
  .enter-support { animation: fh-rise-support 300ms var(--ease-out-expo) 60ms both; }
  .enter-showcase { animation: fh-showcase-land 380ms var(--ease-out-expo) 120ms both; }

  .stage-pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--stage-seguimiento);
    animation: fh-stamp-ring 380ms var(--ease-out-expo) 220ms 1 both;
  }

  /* Demostraciones play-once estilo Zendesk (~3.2s por etapas, paran limpiamente) */
  [data-demo-seq="expediente"].demo-play .stage-rail-fill {
    animation: fh-bar-grow 480ms var(--ease-out-expo) 0ms both;
  }

  [data-demo-seq="expediente"].demo-play .stage-item:nth-child(1) {
    animation: fh-demo-pop 320ms var(--ease-out-expo) 350ms both;
  }

  [data-demo-seq="expediente"].demo-play .stage-item:nth-child(2) {
    animation: fh-demo-pop 320ms var(--ease-out-expo) 700ms both;
  }

  [data-demo-seq="expediente"].demo-play .stage-item:nth-child(3) {
    animation: fh-demo-pop 360ms var(--ease-out-expo) 1100ms both;
  }

  [data-demo-seq="expediente"].demo-play .stage-pulse::after {
    animation: fh-stamp-ring 440ms var(--ease-out-expo) 1280ms 1 both;
  }

  [data-demo-seq="expediente"].demo-play .vignette-facts > div:nth-child(1) {
    animation: fh-demo-step 320ms var(--ease-out-expo) 1550ms both;
  }

  [data-demo-seq="expediente"].demo-play .vignette-facts > div:nth-child(2) {
    animation: fh-demo-step 320ms var(--ease-out-expo) 1850ms both;
  }

  [data-demo-seq="expediente"].demo-play .vignette-facts > div:nth-child(3) {
    animation: fh-demo-step 320ms var(--ease-out-expo) 2150ms both;
  }

  [data-demo-seq="lectura"].demo-play .xray-doc {
    animation: fh-demo-step 340ms var(--ease-out-expo) 0ms both;
  }

  [data-demo-seq="lectura"].demo-play .xray-scan-beam {
    animation: fh-ocr-scan 480ms var(--ease-out-expo) 360ms both;
  }

  [data-demo-seq="lectura"].demo-play .xray-callout-1 {
    animation: fh-demo-pop 340ms var(--ease-out-expo) 820ms both;
  }

  [data-demo-seq="lectura"].demo-play .xray-callout-2 {
    animation: fh-demo-pop 340ms var(--ease-out-expo) 1240ms both;
  }

  [data-demo-seq="lectura"].demo-play .xray-callout-3 {
    animation: fh-demo-pop 340ms var(--ease-out-expo) 1680ms both;
  }

  [data-demo-seq="lectura"].demo-play .xray-doc-top .chip {
    animation: fh-demo-pop 320ms var(--ease-out-expo) 2100ms both;
  }

  [data-demo-seq="avisos"].demo-play .reminder-list li:nth-child(1) {
    animation: fh-demo-step 340ms var(--ease-out-expo) 0ms both;
  }

  [data-demo-seq="avisos"].demo-play .reminder-list li:nth-child(1) .urgency-bar {
    animation: fh-bar-grow 460ms var(--ease-out-expo) 260ms both;
  }

  [data-demo-seq="avisos"].demo-play .reminder-list li:nth-child(2) {
    animation: fh-demo-step 340ms var(--ease-out-expo) 620ms both;
  }

  [data-demo-seq="avisos"].demo-play .reminder-list li:nth-child(2) .urgency-bar {
    animation: fh-bar-grow 460ms var(--ease-out-expo) 880ms both;
  }

  [data-demo-seq="avisos"].demo-play .reminder-list li:nth-child(3) {
    animation: fh-demo-step 340ms var(--ease-out-expo) 1240ms both;
  }

  [data-demo-seq="avisos"].demo-play .reminder-list li:nth-child(3) .urgency-bar {
    animation: fh-bar-grow 460ms var(--ease-out-expo) 1500ms both;
  }

  [data-demo-seq="avisos"].demo-play .vignette-head .chip {
    animation: fh-demo-pop 340ms var(--ease-out-expo) 2020ms both;
  }

  [data-demo-seq="seguridad"].demo-play .pipeline-step:nth-of-type(1) {
    animation: fh-demo-pop 320ms var(--ease-out-expo) 0ms both;
  }

  [data-demo-seq="seguridad"].demo-play .pipeline-step:nth-of-type(2) {
    animation: fh-demo-pop 320ms var(--ease-out-expo) 360ms both;
  }

  [data-demo-seq="seguridad"].demo-play .pipeline-step:nth-of-type(3) {
    animation: fh-demo-pop 320ms var(--ease-out-expo) 720ms both;
  }

  [data-demo-seq="seguridad"].demo-play .pipeline-step:nth-of-type(4) {
    animation: fh-demo-pop 360ms var(--ease-out-expo) 1080ms both;
  }

  @supports (animation-timeline: view()) {
    /* Momento 1: el escenario del héroe respira y sus colinas hacen parallax al bajar */
    .hero-stage {
      transform-origin: center top;
      animation: fh-hero-breathe linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 90%;
    }

    .hero-contour-1 {
      animation: fh-contour-drift-1 linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }

    .hero-contour-2 {
      animation: fh-contour-drift-2 linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }

    /* Momento 3: foto editorial y tarjeta de producto en dos planos */
    .editorial-photo-frame {
      animation: fh-photo-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }

    .editorial-stage .story-visual {
      animation: fh-card-settle linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 40%;
    }

    /* Momento 4: el hilo del trámite */
    .story-spine::before {
      transform-origin: top center;
      animation: fh-spine-draw linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 65%;
    }

    /* Momento 5: apertura del monolito oscuro y secuencia 01 -> 04 */
    .dark-monolith {
      animation: fh-monolith-open linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }

    .pipeline-line {
      transform-origin: left center;
      animation: fh-bar-grow linear both;
      animation-timeline: view();
      animation-range: entry 12% cover 36%;
    }

    /* Momento 6: de hojas sueltas a orden */
    .split-card-before .compare-item:nth-child(odd) {
      animation: fh-sheet-level-a linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 38%;
    }

    .split-card-before .compare-item:nth-child(even) {
      animation: fh-sheet-level-b linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 38%;
    }
  }
}

@keyframes fh-demo-pop {
  from { opacity: 0.25; transform: scale(0.94) translateY(5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fh-demo-step {
  from { opacity: 0.25; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fh-vt-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-4px); }
}

@keyframes fh-vt-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fh-hero-breathe {
  from { transform: scale(1); }
  to { transform: scale(0.975); }
}

@keyframes fh-contour-drift-1 {
  from { transform: translateY(0); }
  to { transform: translateY(-20px); }
}

@keyframes fh-contour-drift-2 {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@keyframes fh-photo-drift {
  from { transform: translateY(10px); }
  to { transform: translateY(-10px); }
}

@keyframes fh-card-settle {
  from { transform: translateY(18px); }
  to { transform: translateY(0); }
}

@keyframes fh-spine-draw {
  from { transform: scaleY(0.08); }
  to { transform: scaleY(1); }
}

@keyframes fh-monolith-open {
  from { clip-path: inset(0 2.5% round 28px); }
  to { clip-path: inset(0 0% round 28px); }
}

@keyframes fh-sheet-level-a {
  from { transform: rotate(-1.2deg) translateY(6px); }
  to { transform: rotate(0deg) translateY(0); }
}

@keyframes fh-sheet-level-b {
  from { transform: rotate(1.1deg) translateY(6px); }
  to { transform: rotate(0deg) translateY(0); }
}

@keyframes fh-mark-draw {
  from { stroke-dashoffset: 240; }
  to { stroke-dashoffset: 0; }
}

@keyframes fh-dot-land {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fh-rise-lead {
  from { transform: translateY(10px); }
  to { transform: translateY(0); }
}

@keyframes fh-rise-support {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fh-showcase-land {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fh-panel-swap {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fh-vault-item {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fh-stamp-ring {
  0% { opacity: 0.75; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(2); }
}

@keyframes fh-ocr-scan {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 0.9; }
  85% { opacity: 0.9; transform: translateY(58px); }
  100% { opacity: 0; transform: translateY(62px); }
}

@keyframes fh-bar-grow {
  from { transform: scaleX(0.2); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glide-pill,
  .reveal-ready,
  .inspector-panel,
  .vault-panel {
    transition: none;
    transform: none;
  }
}

@media (max-width: 12.5em) {
  .editorial-stage .story-visual {
    margin-top: 0.5rem;
    margin-inline: 0;
  }

  .editorial-meta-row {
    padding-inline: 0;
  }

  .hero-stage,
  .page-hero-stage,
  .free-spotlight,
  .trust-band,
  .stat-card,
  .dark-monolith,
  .vault-stage,
  .story-card,
  .story-visual,
  .split-card,
  .start-panel,
  .start-step,
  .request-block,
  .request-step,
  .plan {
    padding: 0.75rem;
  }

  .chip {
    white-space: normal;
    text-align: center;
  }

  .button {
    padding-inline: var(--space-2);
    border-radius: 1rem;
  }

  .button .btn-arrow {
    display: none;
  }
}

/* Contraste forzado */

@media (forced-colors: active) {
  .glide-pill { display: none; }

  .checks li::before,
  .stage-dot::before,
  .live-dot,
  .stage-pulse,
  .pipeline-node-done {
    background: CanvasText;
  }

  .queue-row { border-color: Canvas; }

  .queue-row:has(.demo-radio:checked),
  .app-filter:has(.filter-radio:checked),
  .vault-tab:has(.vault-radio:checked) {
    border: 2px solid Highlight;
  }

  .chip,
  .plan-badge,
  .app-filter,
  .coverage-list li,
  .hero-stage,
  .dark-monolith,
  .security-pipeline,
  .start-panel,
  .request-block,
  .matrix-group,
  .plan-featured {
    border: 1px solid CanvasText;
  }
}
