    :root {
      --yellow: #ffd40f;
      --logo-accent: #ffd40f;
      --logo-text: #000000;
      --ink: #000000;
      --paper: #ffffff;
      --muted: rgba(0, 0, 0, 0.64);
      --rule: rgba(0, 0, 0, 0.18);
      --divider: rgba(0, 0, 0, 0.32);
      --nav-underline: rgba(0, 0, 0, 0.24);
      --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
      --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
      --font-mono: "IBM Plex Mono", "Courier New", monospace;
      --shell: min(1320px, calc(100% - clamp(32px, 6vw, 80px)));
      --grid-gap: clamp(12px, 1.6vw, 24px);
      --space-2xs: 4px;
      --space-xs: 8px;
      --space-sm: 12px;
      --space-md: 16px;
      --space-lg: 24px;
      --space-xl: 32px;
      --space-2xl: 48px;
      --space-3xl: 64px;
      --space-4xl: 96px;
      --text-display: clamp(2.8rem, 4.6vw, 4rem);
      --text-display-sm: clamp(2.05rem, 8.6vw, 2.85rem);
      --text-h2: clamp(2rem, 3.6vw, 3.2rem);
      --text-h3: clamp(1.2rem, 2vw, 1.6rem);
      --text-meta: 10px;
      --tracking-display: -0.045em;
      --tracking-label: 0.1em;
      --hero-top: clamp(44px, 5.4vw, 76px);
      --hero-bottom: clamp(52px, 6vw, 88px);
      --section-block: clamp(64px, 7.2vw, 104px);
      color-scheme: light;
    }

    :root[data-theme="dark"] {
      --logo-text: #f2f2ee;
      --ink: #f2f2ee;
      --paper: #0e0e0e;
      --muted: rgba(255, 255, 255, 0.66);
      --rule: rgba(255, 255, 255, 0.22);
      --divider: rgba(255, 255, 255, 0.32);
      --nav-underline: rgba(255, 255, 255, 0.28);
      color-scheme: dark;
    }

    *, *::before, *::after { box-sizing: border-box; }
    [hidden] { display: none !important; }

    html { scroll-behavior: smooth; scroll-padding-top: 96px; }

    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: var(--font-sans);
      font-size: 17px;
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    body.menu-open { overflow: hidden; }
    ::selection { background: var(--yellow); color: #000; }
    a { color: inherit; }
    h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
    ol, ul { padding: 0; list-style: none; }

    :focus-visible {
      outline: 2px solid var(--ink);
      outline-offset: 3px;
      box-shadow: 0 0 0 6px var(--yellow);
    }

    .skip-link {
      position: fixed;
      top: -100px;
      left: 16px;
      z-index: 300;
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      padding: 0 16px;
      background: var(--yellow);
      color: #000;
      border: 1px solid #000;
      font: 600 13px/1 var(--font-sans);
      text-decoration: none;
    }

    .skip-link:focus, .skip-link:focus-visible { top: 12px; box-shadow: none; }

    /* ---------- Retícula ---------- */

    .sheet {
      width: var(--shell);
      margin-inline: auto;
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      column-gap: var(--grid-gap);
    }

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

    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--paper);
      border-bottom: 1px solid var(--ink);
    }

    .header-shell {
      width: var(--shell);
      margin-inline: auto;
      min-height: 72px;
      display: flex;
      align-items: center;
      gap: clamp(14px, 2.2vw, 30px);
    }

    .brand-group {
      display: flex;
      align-items: center;
      gap: 9px;
      flex: 0 0 auto;
      min-width: 0;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      position: relative;
      text-decoration: none;
    }

    /* Área táctil de 44 × 44 sin mover el logo ni el separador. */
    .brand::after {
      content: "";
      position: absolute;
      inset: -9px -6px;
    }

    .brand-logo { width: 32px; height: auto; display: block; }
    .brand-logo__accent { fill: var(--logo-accent); }
    .brand-logo__ink { fill: var(--logo-text); }

    .brand-divider {
      flex: 0 0 auto;
      width: 1px;
      height: 18px;
      background: var(--divider);
    }

    .theme-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      position: relative;
      width: 36px;
      height: 36px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: transparent;
      color: var(--ink);
      cursor: pointer;
      transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out);
    }

    .theme-toggle::after {
      content: "";
      position: absolute;
      inset: -4px;
      border-radius: 50%;
    }

    .theme-toggle:hover { background: var(--yellow); color: #000; }

    .theme-toggle svg { width: 16px; height: 16px; }
    .theme-toggle .icon-sun { display: none; }
    [data-theme="dark"] .theme-toggle .icon-sun { display: block; }
    [data-theme="dark"] .theme-toggle .icon-moon { display: none; }

    .brand-label {
      display: inline-block;
      inline-size: 110px;
      color: var(--ink);
      font: 500 10px/1.2 var(--font-mono);
      letter-spacing: 0.04em;
      white-space: nowrap;
    }

    .desktop-nav {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: clamp(12px, 1.8vw, 26px);
    }

    .desktop-nav a {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      padding: 0;
      color: var(--ink);
      font: 500 13px/1 var(--font-sans);
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 5px;
      text-decoration-color: var(--nav-underline);
    }

    .desktop-nav a:hover { text-decoration-color: var(--ink); }

    .header-cta, .hero-cta, .closing-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 18px;
      border: 1px solid #000;
      border-radius: 2px;
      background: var(--yellow);
      color: #000;
      font: 600 13px/1 var(--font-sans);
      text-decoration: none;
      white-space: nowrap;
      transition: transform 120ms var(--ease-out);
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: clamp(10px, 1.6vw, 22px);
      flex: 0 0 auto;
    }

    .lang-switcher {
      display: flex;
      align-items: center;
      gap: 2px;
    }

    .lang-switcher a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 44px;
      min-height: 44px;
      color: var(--muted);
      font: 500 10px/1 var(--font-mono);
      letter-spacing: 0.06em;
      text-decoration: none;
      transition: color 140ms var(--ease-out);
    }

    .lang-switcher a:hover { color: var(--ink); }

    .lang-switcher a[aria-current="page"] {
      color: var(--ink);
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 4px;
      text-decoration-color: var(--yellow);
    }

    .lang-switcher span { color: var(--rule); font: 400 10px/1 var(--font-mono); }

    .header-cta:active, .hero-cta:active, .closing-cta:active { transform: scale(0.98); }

    .menu-toggle {
      display: none;
      margin-left: auto;
      flex: 0 0 auto;
      align-items: center;
      justify-content: center;
      min-width: 48px;
      min-height: 44px;
      padding: 0 10px;
      border: 1px solid var(--ink);
      border-radius: 2px;
      background: var(--paper);
      color: var(--ink);
      font: 500 11px/1 var(--font-mono);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
    }

    .mobile-menu {
      position: fixed;
      top: 72px;
      left: 0;
      right: 0;
      z-index: 95;
      max-height: calc(100dvh - 72px);
      overflow-y: auto;
      padding: 12px 20px 28px;
      background: var(--paper);
      border-bottom: 1px solid var(--ink);
      opacity: 0;
      transform: translateY(-8px);
      transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
    }

    .mobile-menu.is-open { opacity: 1; transform: translateY(0); }
    .mobile-nav { display: grid; }

    .mobile-nav a {
      display: flex;
      align-items: center;
      min-height: 48px;
      border-bottom: 1px solid var(--rule);
      color: var(--ink);
      font: 500 18px/1 var(--font-sans);
      text-decoration: none;
    }

    .mobile-lang {
      display: flex;
      align-items: center;
      gap: 2px;
      margin-top: 18px;
      padding-top: 8px;
      border-top: 1px solid var(--rule);
    }

    .mobile-cta {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      margin-top: 18px;
      border: 1px solid #000;
      border-radius: 2px;
      background: var(--yellow);
      color: #000;
      font: 600 14px/1 var(--font-sans);
      text-decoration: none;
    }

    /* ---------- Cuerpo: hero, ficha, TOC y contenido ---------- */

    .service-shell {
      grid-template-areas:
        "crumb crumb crumb crumb crumb crumb crumb crumb crumb crumb crumb crumb"
        "hero  hero  hero  hero  hero  hero  hero  hero  symp symp symp symp"
        "toc   toc   toc   body  body  body  body  body  body  ficha ficha ficha"
        "toc   toc   toc   related related related related related related . . .";
    }

    .breadcrumb {
      grid-area: crumb;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      padding-block: 26px 0;
      color: var(--muted);
      font: 500 10px/1.4 var(--font-mono);
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .breadcrumb a {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      text-decoration: underline;
      text-underline-offset: 3px;
      text-decoration-color: var(--divider);
    }

    .breadcrumb a:hover { text-decoration-color: var(--ink); }
    .breadcrumb span[aria-hidden="true"] { color: var(--rule); }
    .breadcrumb [aria-current="page"] { color: var(--ink); }

    .hero-copy {
      grid-area: hero;
      align-self: start;
      min-width: 0;
      padding-block: var(--hero-top) 0;
    }

    .hero-copy h1 {
      max-width: 24ch;
      font-size: var(--text-display);
      font-weight: 600;
      line-height: 0.98;
      letter-spacing: var(--tracking-display);
      text-wrap: balance;
      overflow-wrap: break-word;
      hyphens: auto;
    }

    .hero-standfirst {
      max-width: 46ch;
      margin-top: 22px;
      color: var(--muted);
      font-size: clamp(1rem, 1.3vw, 1.125rem);
      line-height: 1.5;
    }

    .hero-actions { margin-top: clamp(26px, 3.4vw, 38px); }

    .hero-cta { min-height: 48px; padding-inline: 20px; font-size: 14px; }

    .hero-meta {
      margin-top: clamp(20px, 2.4vw, 28px);
      padding-top: 14px;
      border-top: 1px solid var(--rule);
      color: var(--muted);
      font: 400 11px/1.6 var(--font-mono);
    }

    .symptoms {
      grid-area: symp;
      align-self: start;
      min-width: 0;
      padding-block: var(--hero-top) 0;
    }

    .panel-title {
      padding-bottom: 10px;
      border-bottom: 1px solid var(--ink);
      color: var(--muted);
      font: 500 10px/1.4 var(--font-mono);
      letter-spacing: var(--tracking-label);
      text-transform: uppercase;
    }

    .symptom-list { margin-top: 4px; }

    .symptom-list li {
      position: relative;
      max-width: 42ch;
      padding: 12px 0 12px 14px;
      border-bottom: 1px solid var(--rule);
      font-size: 15px;
      line-height: 1.45;
    }

    .symptom-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: calc(12px + 0.72em);
      width: 8px;
      height: 1px;
      background: var(--ink);
    }

    .symptom-note {
      margin-top: 12px;
      color: var(--muted);
      font: 400 11px/1.6 var(--font-mono);
    }

    /* Ficha lateral */

    .ficha-wrap {
      grid-area: ficha;
      align-self: stretch;
      min-width: 0;
      padding-top: var(--hero-bottom);
    }

    .ficha {
      position: sticky;
      top: 96px;
      min-width: 0;
      padding: 18px;
      border: 1px solid var(--rule);
      border-radius: 0;
      background: var(--paper);
    }

    .ficha-title {
      padding-bottom: 10px;
      border-bottom: 1px solid var(--ink);
      color: var(--muted);
      font: 500 10px/1.4 var(--font-mono);
      letter-spacing: var(--tracking-label);
      text-transform: uppercase;
    }

    .ficha-row {
      padding: 13px 0;
      border-bottom: 1px solid var(--rule);
    }

    .ficha-row dt {
      color: var(--muted);
      font: 500 10px/1.4 var(--font-mono);
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .ficha-row dd {
      margin-top: 5px;
      font-size: 14px;
      line-height: 1.45;
    }

    .price-entry {
      display: inline-block;
      padding: 5px 9px;
      border: 1px solid #000;
      background: var(--yellow);
      color: #000;
      font: 500 11px/1.3 var(--font-mono);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-variant-numeric: tabular-nums;
    }

    .ficha-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 44px;
      margin-top: 16px;
      padding: 10px 14px;
      border: 1px solid var(--ink);
      border-radius: 2px;
      background: transparent;
      color: var(--ink);
      font: 600 13px/1.3 var(--font-sans);
      text-align: center;
      text-decoration: none;
    }

    .ficha-cta:hover { border-color: var(--yellow); }

    .ficha-needs {
      margin-top: 16px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .ficha-needs span {
      display: block;
      margin-bottom: 3px;
      color: var(--ink);
      font: 500 9px/1.4 var(--font-mono);
      letter-spacing: var(--tracking-label);
      text-transform: uppercase;
    }

    /* Índice */

    .toc {
      grid-area: toc;
      align-self: start;
      position: sticky;
      top: 96px;
      min-width: 0;
      padding-top: var(--hero-bottom);
    }

    .toc-title {
      padding-bottom: 10px;
      border-bottom: 1px solid var(--ink);
      color: var(--muted);
      font: 500 10px/1.4 var(--font-mono);
      letter-spacing: var(--tracking-label);
      text-transform: uppercase;
    }

    .toc ol { margin-top: 4px; }

    .toc a {
      display: flex;
      align-items: baseline;
      gap: 9px;
      min-height: 44px;
      padding: 8px 0 8px 12px;
      border-left: 2px solid transparent;
      color: var(--muted);
      font: 400 11px/1.4 var(--font-mono);
      text-decoration: none;
    }

    .toc a:hover { color: var(--ink); }

    .toc a[aria-current="location"] {
      color: var(--ink);
      border-left-color: var(--yellow);
    }

    .toc-num {
      flex: 0 0 auto;
      font-size: 10px;
      letter-spacing: 0.04em;
    }

    .toc-mobile {
      grid-area: toc;
      display: none;
      margin-top: var(--hero-bottom);
      padding-top: 12px;
      border-top: 1px solid var(--ink);
      border-bottom: 1px solid var(--rule);
    }

    .toc-mobile summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 48px;
      cursor: pointer;
      font: 500 10px/1.4 var(--font-mono);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .toc-mobile summary::after { content: "+"; font-size: 16px; }
    .toc-mobile[open] summary::after { content: "\2212"; }

    .toc-mobile ol { display: grid; gap: 2px; padding-bottom: 10px; }

    .toc-mobile a {
      display: flex;
      align-items: baseline;
      gap: 9px;
      min-height: 44px;
      padding: 8px 0 8px 12px;
      border-left: 2px solid transparent;
      color: var(--muted);
      font: 400 11px/1.4 var(--font-mono);
      text-decoration: none;
    }

    .toc-mobile a:hover { color: var(--ink); }

    .toc-mobile a[aria-current="location"] {
      color: var(--ink);
      border-left-color: var(--yellow);
    }

    /* Prosa */

    .prose {
      grid-area: body;
      align-self: start;
      min-width: 0;
      max-width: 68ch;
      padding-top: var(--hero-bottom);
    }

    /* El desplazamiento de los anclas lo resuelve `scroll-padding-top: 96px` en `html`. */

    .prose section + section {
      margin-top: clamp(40px, 4.4vw, 60px);
      padding-top: clamp(28px, 3vw, 40px);
      border-top: 1px solid var(--rule);
    }

    .prose h2,
    .related-tail h2 {
      display: grid;
      gap: 8px;
      margin-bottom: 18px;
      font-size: var(--text-h2);
      font-weight: 600;
      line-height: 1.02;
      letter-spacing: -0.035em;
      text-wrap: balance;
    }

    .prose-index {
      display: block;
      color: var(--muted);
      font: 500 10px/1 var(--font-mono);
      letter-spacing: var(--tracking-label);
    }

    .prose h3 {
      margin: 30px 0 10px;
      font-size: var(--text-h3);
      font-weight: 600;
      line-height: 1.15;
      letter-spacing: -0.02em;
    }

    .prose p { margin: 0 0 16px; }
    .prose p strong { font-weight: 600; }

    .prose ul, .prose ol {
      display: grid;
      gap: 8px;
      margin: 0 0 18px;
      padding-left: 20px;
    }

    .prose ul { list-style: disc; }
    .prose ol { list-style: decimal; }
    .prose li { padding-left: 4px; }
    .prose li::marker { color: var(--muted); }

    .prose a {
      text-decoration: underline;
      text-underline-offset: 3px;
      text-decoration-color: var(--divider);
    }

    .prose a:hover { text-decoration-color: var(--ink); }

    .block-label {
      margin-bottom: 10px;
      color: var(--muted);
      font: 500 10px/1.4 var(--font-mono);
      letter-spacing: var(--tracking-label);
      text-transform: uppercase;
    }

    /* Listas propias del cuerpo: sin viñetas heredadas de `.prose ul/ol`. */
    .prose .flat-list {
      display: grid;
      gap: 8px;
      margin: 0 0 18px;
      padding: 0;
      list-style: none;
    }

    .prose .rel-list,
    .related-tail .rel-list {
      display: grid;
      gap: 0;
      margin: 0;
      padding: 0;
      list-style: none;
      border-top: 1px solid var(--ink);
    }

    .prose .stack-list,
    .related-tail .stack-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      margin: 0;
      padding: 14px 0 0;
      list-style: none;
      border-top: 1px solid var(--ink);
    }

    .prose .steps {
      display: grid;
      gap: 0;
      margin: 0 0 18px;
      padding: 0;
      list-style: none;
    }

    .scope-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: clamp(18px, 2.4vw, 32px);
    }

    .scope-grid > div {
      padding-top: 14px;
      border-top: 1px solid var(--ink);
    }

    .scope-grid h3 { margin: 0 0 12px; }

    .flat-list { display: grid; gap: 8px; }

    .flat-list li {
      position: relative;
      max-width: 62ch;
      padding-left: 14px;
      font-size: 15px;
      line-height: 1.5;
    }

    .flat-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.72em;
      width: 8px;
      height: 1px;
      background: var(--ink);
    }

    .steps { display: grid; gap: 0; margin: 0 0 18px; padding: 0; list-style: none; }

    .steps li {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      gap: 4px 14px;
      padding: 16px 0 16px 14px;
      border-top: 1px solid var(--rule);
    }

    .steps li:last-child { border-bottom: 1px solid var(--rule); }

    .step-num {
      grid-row: 1 / span 2;
      padding-top: 3px;
      color: var(--muted);
      font: 500 10px/1.4 var(--font-mono);
      letter-spacing: 0.05em;
    }

    .steps h3 {
      margin: 0 0 6px;
      font-size: 1.05rem;
      font-weight: 600;
      letter-spacing: -0.015em;
    }

    .steps p { margin: 0; font-size: 15px; line-height: 1.5; }

    .step-needs {
      margin-top: 7px !important;
      color: var(--muted);
      font: 400 12px/1.6 var(--font-mono);
    }

    .step-needs span {
      color: var(--ink);
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .step-needs span::after { content: ":"; }

    .callout {
      margin: 24px 0;
      padding: 14px 0 14px 16px;
      border-left: 4px solid var(--yellow);
    }

    .callout strong {
      display: block;
      margin-bottom: 6px;
      font: 500 9px/1.4 var(--font-mono);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .callout p { margin: 0; color: var(--muted); font-size: 15px; }

    .price-line {
      margin: 20px 0 24px;
      padding-top: 14px;
      border-top: 1px solid var(--ink);
      font: 500 13px/1.5 var(--font-mono);
      font-variant-numeric: tabular-nums;
    }

    .price-line span {
      display: block;
      margin-bottom: 4px;
      color: var(--muted);
      font: 500 9px/1.4 var(--font-mono);
      letter-spacing: var(--tracking-label);
      text-transform: uppercase;
    }

    .inline-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      margin-top: 8px;
      font: 500 13px/1.35 var(--font-sans);
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 4px;
      text-decoration-color: var(--divider);
    }

    .inline-link:hover { text-decoration-color: var(--ink); }
    .inline-link span { transition: transform 160ms var(--ease-out); }
    .inline-link:hover span { transform: translateX(4px); }

    .table-wrap { margin: 22px 0 4px; overflow-x: auto; border-top: 1px solid var(--ink); }

    .deliverables {
      width: 100%;
      border-collapse: collapse;
      font-size: 15px;
    }

    .deliverables caption {
      padding-bottom: 10px;
      color: var(--muted);
      font: 500 9px/1.4 var(--font-mono);
      letter-spacing: 0.08em;
      text-align: left;
      text-transform: uppercase;
    }

    .deliverables th {
      padding: 10px 14px 10px 0;
      border-bottom: 1px solid var(--ink);
      font: 500 9px/1.4 var(--font-mono);
      letter-spacing: 0.06em;
      text-align: left;
      text-transform: uppercase;
    }

    .deliverables td, .deliverables tbody th {
      padding: 13px 14px 13px 0;
      border-bottom: 1px solid var(--rule);
      vertical-align: top;
      text-align: left;
      font-weight: 400;
    }

    .deliverables tbody th { font-size: 15px; font-weight: 500; }
    .deliverables td { color: var(--muted); }
    .deliverables th:last-child, .deliverables td:last-child { padding-right: 0; }

    .faq { border-top: 1px solid var(--ink); }

    .faq-item { border-bottom: 1px solid var(--rule); }

    .faq-item summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      min-height: 56px;
      cursor: pointer;
      font-size: 1.05rem;
      font-weight: 500;
      list-style: none;
    }

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

    .faq-item summary::after {
      content: "+";
      color: var(--muted);
      font: 400 18px/1 var(--font-mono);
    }

    .faq-item[open] summary::after { content: "\2212"; }

    .faq-item p {
      max-width: 62ch;
      padding-bottom: 18px;
      color: var(--muted);
      font-size: 15px;
    }

    /* Separación mínima antes de la banda negra #cierre: no reducir. */
    .related-tail {
      grid-area: related;
      min-width: 0;
      max-width: 68ch;
      margin-top: clamp(40px, 4.4vw, 60px);
      padding-top: clamp(28px, 3vw, 40px);
      padding-bottom: clamp(68px, 7vw, 96px);
      border-top: 1px solid var(--rule);
    }

    .related-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: clamp(20px, 3vw, 40px);
    }

    .rel-list { border-top: 1px solid var(--ink); }

    .rel-list li { border-bottom: 1px solid var(--rule); }

    .rel-list a {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 2px 14px;
      align-items: baseline;
      min-height: 44px;
      padding: 13px 0;
      font: 500 15px/1.3 var(--font-sans);
      text-decoration: none;
    }

    .rel-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

    .rel-arrow { grid-column: 2; grid-row: 1; transition: transform 160ms var(--ease-out); }
    .rel-list a:hover .rel-arrow { transform: translateX(4px); }

    .rel-desc {
      grid-column: 1;
      color: var(--muted);
      font: 400 14px/1.45 var(--font-sans);
    }

    .stack-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      padding-top: 14px;
      border-top: 1px solid var(--ink);
    }

    .stack-list li {
      color: var(--muted);
      font: 400 12px/1.5 var(--font-mono);
      letter-spacing: 0.03em;
    }

    /* ---------- Cierre ---------- */

    .closing {
      padding-block: var(--section-block);
      background: var(--ink);
      color: var(--paper);
    }

    .closing-body { grid-column: 1 / span 8; min-width: 0; }

    .closing .panel-title {
      border-bottom-color: rgba(255, 255, 255, 0.32);
      color: rgba(255, 255, 255, 0.66);
    }

    .closing h2 {
      display: grid;
      gap: 8px;
      max-width: 18ch;
      margin-top: 18px;
      font-size: var(--text-h2);
      font-weight: 600;
      line-height: 1;
      letter-spacing: var(--tracking-display);
      text-wrap: balance;
    }

    .closing .prose-index { color: rgba(255, 255, 255, 0.66); }

    .closing-text {
      max-width: 52ch;
      margin-top: 16px;
      color: rgba(255, 255, 255, 0.66);
      font-size: 16px;
      line-height: 1.55;
    }

    .closing-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: clamp(18px, 3vw, 36px);
      margin-top: clamp(26px, 3.4vw, 40px);
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.28);
    }

    .closing-cta { min-height: 48px; padding-inline: 20px; font-size: 14px; border-color: var(--yellow); }

    .closing-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      color: var(--paper);
      font: 500 13px/1.35 var(--font-sans);
      text-decoration: underline;
      text-underline-offset: 4px;
      text-decoration-color: rgba(255, 255, 255, 0.42);
    }

    .closing :focus-visible { outline-color: var(--yellow); box-shadow: none; }

    [data-theme="dark"] .closing { background: var(--ink); color: var(--paper); }
    [data-theme="dark"] .closing .panel-title { border-bottom-color: rgba(0, 0, 0, 0.32); color: rgba(0, 0, 0, 0.56); }
    [data-theme="dark"] .closing .prose-index { color: rgba(0, 0, 0, 0.62); }
    [data-theme="dark"] .closing-text { color: rgba(0, 0, 0, 0.62); }
    [data-theme="dark"] .closing-actions { border-top-color: rgba(0, 0, 0, 0.28); }
    [data-theme="dark"] .closing-link { color: #0e0e0e; text-decoration-color: rgba(0, 0, 0, 0.42); }
    [data-theme="dark"] .closing :focus-visible { outline-color: #000; }
    [data-theme="dark"] .closing-cta { background: #000; color: #fff; border-color: #000; }

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

    .site-footer { padding-block: 28px 92px; border-top: 1px solid var(--ink); background: var(--paper); }

    .footer-body {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
      gap: clamp(18px, 3vw, 40px);
      align-items: start;
      min-width: 0;
    }

    .footer-legal { font-size: 14px; line-height: 1.45; }

    .footer-note { color: var(--muted); font-size: 13px; line-height: 1.45; }

    .footer-note span {
      display: block;
      margin-bottom: 3px;
      color: var(--ink);
      font: 500 9px/1.4 var(--font-mono);
      letter-spacing: var(--tracking-label);
      text-transform: uppercase;
    }

    .legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }

    .legal a {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      color: var(--ink);
      font-size: 12px;
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 4px;
      text-decoration-color: var(--divider);
    }

    .js .reveal {
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
    }

    .js .reveal.is-in { opacity: 1; transform: translateY(0); }

    @media (hover: hover) and (pointer: fine) {
      .toc a:hover, .toc-mobile a:hover { border-left-color: var(--yellow); }
    }

    @media (max-width: 980px) {
      .service-shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
          "crumb"
          "hero"
          "symp"
          "ficha"
          "toc"
          "body"
          "related";
      }

      .hero-copy, .symptoms { padding-top: clamp(32px, 5vw, 44px); }
      .hero-copy h1 { max-width: 20ch; }
      .symptom-list li { max-width: none; }
      .ficha-wrap { padding-top: clamp(32px, 5vw, 48px); }
      .ficha { position: static; }
      .toc { display: none; }
      .toc-mobile { display: block; }
      .prose { max-width: 68ch; padding-top: clamp(32px, 5vw, 48px); }
      .footer-body { display: block; }
      .footer-note { margin-top: 14px; }
      .legal { justify-content: flex-start; margin-top: 16px; }
    }

    @media (max-width: 960px) {
      .desktop-nav { display: none; }
      .menu-toggle { display: inline-flex; }
      .header-actions { display: none; }
      .header-shell { justify-content: space-between; }
    }

    @media (max-width: 640px) {
      :root { --shell: calc(100% - 40px); }
      .brand-label { inline-size: 92px; font-size: 9px; }
      .brand-logo { width: 28px; }
      .hero-copy h1 { font-size: var(--text-display-sm); max-width: none; }
      .hero-standfirst { max-width: 34ch; }
      .hero-cta { width: 100%; white-space: normal; text-align: center; }
      .scope-grid, .related-grid { grid-template-columns: 1fr; }
      .steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 4px 10px; padding-left: 10px; }
      .closing-body { grid-column: 1 / -1; }
      .closing-actions { flex-direction: column; align-items: flex-start; }
      .closing-cta { width: 100%; white-space: normal; text-align: center; }
      .site-footer { padding-bottom: 104px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
      .js .reveal { opacity: 1 !important; transform: none !important; }
    }

    /* Service single: tighten hero-to-body spacing and keep sticky ficha/TOC below admin bar + header. */
    .single-servicio .ficha-wrap,
    .single-servicio .toc,
    .single-servicio .prose {
      padding-top: 48px;
    }

    .single-servicio .prose section + section {
      margin-top: 48px;
      padding-top: 28px;
    }

    body.admin-bar.single-servicio .ficha,
    body.admin-bar.single-servicio .toc {
      top: 128px;
    }

    body.admin-bar.single-servicio .prose section {
      scroll-margin-top: 128px;
    }

    @media (max-width: 782px) {
      body.admin-bar.single-servicio .ficha,
      body.admin-bar.single-servicio .toc {
        top: 142px;
      }

      body.admin-bar.single-servicio .prose section {
        scroll-margin-top: 142px;
      }
    }