@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./assets/fonts/bricolage-grotesque.woff2") format("woff2-variations"), url("./assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
/* Paleta de la versión actual: noche, cobalto y amarillo. Los nombres de las variables se conservan de la versión anterior. */
:root {
  --paper: #FFFFFF; --white: #FFFFFF; --ink: #15102B; --green: #2433FF;
  --muted: #56516E; --mint: #EEEDFB; --amber: #FFD21F; --line: #D9D7EA;
  --forest: #15102B; --error: #B3261E; --max-width: 1200px;
  --ease: 200ms cubic-bezier(.2,.8,.2,1); --reading-progress: 0;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none; color: var(--ink); background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.65; background: var(--paper); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: #FFDA4733; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
p, h1, h2, h3, h4, blockquote, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; margin: 0; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
.intro :focus-visible, .method-section :focus-visible, dialog :focus-visible { outline-color: var(--amber); }
::selection { background: #FBE692; color: var(--forest); }
.container { width: min(var(--max-width),calc(100% - 88px)); margin-inline: auto; }
main { animation: enter-page 240ms ease-out both; }
main[id], section[id], blockquote[id], #order-result { scroll-margin-top: 110px; }
@keyframes enter-page { from { opacity: .65; transform: translateY(5px); } to { opacity: 1; transform: none; } }
h1,h2,h3 { font-weight: 800; font-stretch: 80%; line-height: 1.02; letter-spacing: -.026em; text-wrap: balance; }
h1 { font-size: clamp(48px,5.7vw,82px); }
h2 { font-size: clamp(34px,3.6vw,49px); }
h3 { font-size: 30px; }
p { text-wrap: pretty; }
.page-label { font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--green); margin-bottom: 22px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 52px; padding: 14px 24px; border: 1px solid var(--green); border-radius: 999px; color: white; background: var(--green); position: relative; isolation: isolate; overflow: hidden; font-size: 15px; line-height: 1.5; font-weight: 600; transition: color var(--ease), border-color var(--ease), transform var(--ease); }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform 320ms cubic-bezier(.2,.8,.2,1); }
.button:hover:not(:disabled)::before, .button:focus-visible::before { transform: scaleX(1); }
.button:hover:not(:disabled) { border-color: var(--forest); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button svg { width: 20px; height: 20px; transition: transform var(--ease); }
.button:hover svg, .button:focus-visible svg { transform: translateX(3px); }
.button-arrow { display: flex; align-items: center; }
.button-outline { color: var(--green); background: transparent; }
.button-outline:hover:not(:disabled), .button-outline:focus-visible { color: var(--white); }
.text-link, .plain-link { display: inline-flex; gap: 16px; align-items: center; min-height: 48px; padding-block: 9px; position: relative; font-size: 15px; font-weight: 600; }
.text-link::after, .plain-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(.24); transition: transform 260ms ease; }
.text-link:hover::after, .text-link:focus-visible::after, .plain-link:hover::after, .plain-link:focus-visible::after { transform: scaleX(1); }
.text-link svg, .plain-link svg { width: 19px; height: 19px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; padding: 12px 20px; border: 2px solid var(--green); background: var(--white); color: var(--ink); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.page-wipe { position: fixed; z-index: 100; inset: 0; background: var(--forest); transform: translateY(101%); pointer-events: none; transition: transform 190ms cubic-bezier(.65,0,.35,1); }
.is-leaving .page-wipe { transform: translateY(0); }

/* Un encabezado que conserva el contexto de la lectura. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); transition: background 280ms ease, color 280ms ease, border-color 280ms ease; }
.header-inner { width: min(1320px,calc(100% - 88px)); min-height: 86px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.wordmark { font-size: 27px; font-weight: 800; font-stretch: 82%; letter-spacing: -.03em; line-height: 1.2; white-space: nowrap; }
.wordmark > span { color: var(--green); }
.primary-nav { display: flex; gap: 27px; align-items: center; margin-left: auto; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; position: relative; font-size: 14px; }
.primary-nav a::after { content: ""; position: absolute; height: 1px; background: currentColor; bottom: 5px; left: 0; right: 0; transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
.primary-nav a:hover::after, .primary-nav a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 25px; }
.header-consult { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 600; }
.header-consult svg { width: 17px; height: 17px; transition: transform var(--ease); }
.header-consult:hover svg { transform: translate(2px,-2px); }
.consult-mobile { display: none; }
.menu-toggle, .menu-close { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 0 9px 15px; background: transparent; border: 0; border-left: 1px solid currentColor; color: inherit; font-size: 14px; }
.menu-toggle svg, .menu-close svg { width: 20px; height: 20px; }
.menu-toggle:hover, .menu-close:hover { color: var(--green); }
.reading-progress { display: block; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--green); transform-origin: left; transform: scaleX(var(--reading-progress)); }
[data-page="index"]:not(.header-light) .site-header { background: var(--forest); color: var(--paper); border-color: #322D5B; }
[data-page="index"]:not(.header-light) .site-header .wordmark > span { color: #A8A3D5; }
[data-page="index"]:not(.header-light) .site-header .reading-progress { background: var(--amber); }
[data-page="index"]:not(.header-light) .site-header :focus-visible { outline-color: var(--amber); }
[data-page="index"]:not(.header-light) .menu-toggle:hover { color: var(--amber); }
body.menu-open { overflow: hidden; }
#site-menu { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--forest); color: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
#site-menu::backdrop { background: var(--forest); }
#site-menu .wordmark > span { color: #A8A3D5; }
.menu-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 44px; min-height: 86px; }
.menu-close:hover { color: var(--amber); }
.menu-layout { width: min(var(--max-width),calc(100% - 88px)); margin-inline: auto; padding-block: 44px; min-height: calc(100dvh - 165px); display: grid; grid-template-columns: .85fr 1.15fr; gap: 85px; align-items: center; }
.menu-intro { position: relative; isolation: isolate; }
.menu-intro > p:first-child { color: #A8A3D5; font-size: 14px; margin-bottom: 24px; }
.menu-intro > p:nth-child(2) { font-size: 52px; line-height: 1.05; letter-spacing: -.045em; }
.menu-thread { position: absolute; width: 100%; height: auto; inset: -50% 0 auto; z-index: -1; color: #6C66A0; opacity: .35; stroke-width: 1; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 16px; font-size: clamp(27px,3.3vw,45px); line-height: 1.15; letter-spacing: -.035em; border-bottom: 1px solid #383365; transition: color var(--ease); }
.menu-links a > span { transition: transform 220ms ease; }
.menu-links a:hover { color: var(--amber); }
.menu-links a:hover > span { transform: translateX(7px); }
.menu-links a svg { width: 25px; height: 25px; }
.menu-links a:last-child { color: #FEE379; font-size: clamp(25px,2.8vw,38px); }
#site-menu[open] .menu-links a { animation: menu-link-in 300ms cubic-bezier(.2,.8,.2,1) both; }
#site-menu[open] .menu-links a:nth-child(2) { animation-delay: 25ms; }
#site-menu[open] .menu-links a:nth-child(3) { animation-delay: 50ms; }
#site-menu[open] .menu-links a:nth-child(4) { animation-delay: 75ms; }
#site-menu[open] .menu-links a:nth-child(5) { animation-delay: 100ms; }
#site-menu[open] .menu-links a:nth-child(6) { animation-delay: 125ms; }
@keyframes menu-link-in { from { opacity: .25; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.menu-foot { padding: 23px 44px; font-size: 14px; color: #A8A3D5; border-top: 1px solid #383365; }

/* Una escena continua: los mismos hilos cambian de forma con el recorrido. */
.intro { background: var(--forest); color: var(--paper); }
.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; grid-template-rows: 1fr auto; align-items: start; gap: 38px 60px; min-height: 1200px; padding-top: 100px; padding-bottom: 55px; }
.intro-copy { grid-column: 1; grid-row: 1; padding-top: 34px; min-width: 0; }
.intro-copy .page-label { display: flex; align-items: center; gap: 11px; color: #B6B3D6; margin-bottom: 30px; }
.label-dash { width: 20px; height: 1px; background: var(--amber); }
.intro h1 { font-size: clamp(52px,5.7vw,82px); line-height: 1.04; letter-spacing: -.053em; font-weight: 600; }
.intro h1 > span { color: var(--amber); }
.intro-description { color: #C4C1DC; font-size: 18px; line-height: 1.75; margin-top: 30px; max-width: 450px; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 23px; margin-top: 31px; }
.intro .button { background: var(--amber); border-color: var(--amber); color: var(--forest); }
.intro .button::before { background: var(--mint); }
.intro .button:hover { border-color: var(--mint); }
.intro-actions .text-link { font-weight: 500; font-size: 14px; }
.intro-purpose { display: flex; align-items: baseline; gap: 15px; margin-top: 58px; font-size: 19px; line-height: 1.5; letter-spacing: -.015em; }
.purpose-hook { color: var(--amber); font-size: 24px; }
.flow-figure { grid-column: 2; grid-row: 1/3; position: sticky; top: 112px; align-self: start; min-width: 0; margin: 0; }
.flow-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 14px; color: #A8A4CB; padding-bottom: 17px; border-bottom: 1px solid #332D62; }
.flow-topline > span:last-child { font-size: 14px; color: #CDCBE2; white-space: nowrap; }
.flow-stage { position: relative; width: 100%; aspect-ratio: 4/3; --clarity: 0; --probe-x: 50%; --probe-y: 50%; isolation: isolate; }
.flow-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at var(--probe-x) var(--probe-y),#3E377829,transparent 45%); opacity: 0; transition: opacity 250ms ease; z-index: -1; }
.flow-stage.is-pointed::before { opacity: 1; }
.flow-svg { display: block; width: 100%; height: 100%; stroke-width: .85; overflow: visible; }
.flow-strand { stroke: #9E99CD; opacity: .22; vector-effect: non-scaling-stroke; }
.flow-strand:nth-child(3n) { opacity: .4; }
.flow-strand.strand-accent { stroke: var(--amber); opacity: .72; stroke-width: 1.3; }
.flow-guides { stroke: #615C93; stroke-width: .5; opacity: var(--clarity); }
.flow-marker { fill: #FFDA47; stroke: var(--forest); stroke-width: 1.5; }
.flow-tokens { position: absolute; inset: 0; pointer-events: none; }
.flow-token { position: absolute; font-size: 14px; white-space: nowrap; line-height: 1.5; color: #DFDDEF; padding: 3px 0; text-shadow: 0 0 5px var(--forest), 0 0 10px var(--forest), 0 0 14px var(--forest); }
.flow-field-labels { position: absolute; inset: 0; pointer-events: none; opacity: calc(var(--clarity) * var(--clarity)); color: #A29ECA; font-size: 14px; }
.flow-field-labels span { position: absolute; left: 33%; line-height: 1.3; }
.flow-field-labels span:nth-child(1) { top: 13%; }
.flow-field-labels span:nth-child(2) { top: 40%; }
.flow-field-labels span:nth-child(3) { top: 67%; }
.flow-stage[data-phase="1"] .flow-field-labels { opacity: .8; }
.flow-stage.is-narrow .flow-field-labels span { left: 23%; }
.flow-stage.is-narrow .flow-field-labels span:nth-child(1) { top: 8%; }
.flow-stage.is-narrow .flow-field-labels span:nth-child(2) { top: 35%; }
.flow-stage.is-narrow .flow-field-labels span:nth-child(3) { top: 62%; }
.flow-probe { position: absolute; top: var(--probe-y); left: var(--probe-x); width: 27px; height: 27px; border: 1px solid #A8A4CB70; border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; opacity: 0; transition: opacity 180ms ease; }
.flow-stage.is-pointed .flow-probe { opacity: 1; }
.flow-figure figcaption { min-height: 100px; padding: 7px 0 17px; }
.flow-figure figcaption strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.025em; margin-bottom: 7px; }
.flow-figure figcaption > span { display: block; color: #B4B0D6; font-size: 15px; line-height: 1.65; max-width: 520px; }
.flow-controls { position: relative; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #3B3669; --clarity: 0; }
.flow-controls button { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 15px 3px 13px; min-height: 51px; background: transparent; border: 0; color: #A9A5CD; font-size: 14px; text-align: left; transition: color var(--ease); }
.flow-controls button > span { color: #8984B7; font-size: 14px; }
.flow-controls button[aria-pressed="true"], .flow-controls button:hover { color: var(--paper); }
.flow-controls button[aria-pressed="true"] > span { color: var(--amber); }
.flow-control-line { position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--amber); transform: scaleX(calc(.08 + var(--clarity) * .92)); transform-origin: left; pointer-events: none; }
.flow-note { font-size: 14px; color: #9994C4; margin-top: 7px; }
.intro-bottom { grid-column: 1; grid-row: 2; display: flex; gap: 25px; align-items: flex-end; justify-content: space-between; padding-top: 32px; border-top: 1px solid #332D62; color: #A29ECB; font-size: 14px; }
.scroll-cue { display: flex; gap: 13px; align-items: center; min-height: 44px; flex-shrink: 0; font-size: 14px; }
.scroll-cue > span { max-width: 80px; line-height: 1.4; }
.scroll-cue svg { width: 20px; height: 27px; transition: transform var(--ease); color: var(--amber); }
.scroll-cue:hover svg { transform: translateY(4px); }

/* Servicios reunidos: cambia el foco, se mantiene el espacio de lectura. */
.services-section { padding-block: 86px 55px; }
.section-heading { display: flex; gap: 60px; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.section-heading > p { color: var(--muted); max-width: 365px; font-size: 17px; line-height: 1.7; padding-bottom: 3px; }
.services-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 95px; }
.service-navigation { min-width: 0; }
.service-tabs { display: flex; flex-direction: column; border-top: 1px solid #A5A2C5; }
.service-tabs button { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 24px 8px 24px 0; min-height: 112px; border: 0; border-bottom: 1px solid #BAB8D1; background: transparent; color: var(--muted); font-size: 29px; font-weight: 500; line-height: 1.15; letter-spacing: -.035em; text-align: left; transition: color var(--ease); }
.service-tabs button svg { width: 24px; height: 24px; opacity: .35; transition: transform 240ms ease, opacity 240ms ease; }
.service-tabs button[aria-selected="true"] { color: var(--green); }
.service-tabs button[aria-selected="true"] svg { opacity: 1; transform: translateX(5px); }
.service-tabs button:hover { color: var(--green); }
.service-side-note { color: var(--muted); font-size: 15px; line-height: 1.75; margin-top: 28px; max-width: 340px; }
.service-weave { display: block; width: 90%; height: 130px; margin-top: 30px; color: #9490B8; stroke-width: .8; }
.service-panels { min-height: 600px; min-width: 0; }
.service-panel { padding-top: 0; }
.service-panel + .service-panel { margin-top: 40px; }
.services-ready .service-panel + .service-panel { margin-top: 0; }
.service-index { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 19px; }
.service-panel h3 { font-size: clamp(30px,3.4vw,43px); line-height: 1.1; margin-bottom: 21px; }
.service-panel > p:not(.service-index):not(.boundary-note) { font-size: 17px; color: var(--muted); line-height: 1.75; max-width: 560px; }
.service-path { display: flex; align-items: center; gap: 13px; font-size: 14px; padding-block: 26px; color: var(--muted); }
.service-path > i { flex: 1; height: 1px; background: #ADAAC8; position: relative; }
.service-path > i::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-top: 1px solid #746FA6; border-right: 1px solid #746FA6; transform: rotate(45deg); }
.service-path > strong { color: var(--green); font-weight: 600; }
.service-features { list-style: none; }
.service-features li { padding-block: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.service-features li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 10px; border: 1px solid var(--green); border-radius: 50%; vertical-align: middle; }
.boundary-note { margin-top: 22px; border-left: 2px solid var(--amber); padding-left: 14px; font-size: 14px; line-height: 1.75; }
.service-demo-link { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 14px; min-height: 50px; color: var(--green); font-size: 15px; font-weight: 600; border-bottom: 1px solid #9E9AC0; margin-top: 19px; }
.service-demo-link svg { width: 22px; height: 22px; transition: transform var(--ease); }
.service-demo-link:hover svg { transform: translate(3px,-3px); }
.scope-note { border-top: 1px solid var(--line); padding-top: 25px; color: var(--muted); font-size: 14px; margin-top: 26px; }
.method-section { background: var(--forest); color: var(--paper); padding-block: 76px; }
.method-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.method-section .page-label { color: #B0ACD4; }
.method-description { font-size: 17px; line-height: 1.75; color: #B0ACD4; max-width: 395px; margin-top: 25px; }
.method-section .text-link { margin-top: 27px; }
.method-steps { border-top: 1px solid #413B73; }
.method-steps details { border-bottom: 1px solid #413B73; }
.method-steps summary { display: grid; grid-template-columns: 26px 1fr 20px; align-items: baseline; gap: 14px; padding-block: 23px; list-style: none; cursor: pointer; font-size: 25px; font-weight: 500; line-height: 1.25; letter-spacing: -.03em; }
summary::-webkit-details-marker { display: none; }
.step-index { color: var(--amber); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.accordion-icon { position: relative; display: inline-block; width: 18px; height: 18px; flex-shrink: 0; }
.accordion-icon::before, .accordion-icon::after { content: ""; position: absolute; top: 8px; left: 1px; width: 16px; height: 1px; background: currentColor; }
.accordion-icon::after { transform: rotate(90deg); transition: transform var(--ease); }
details[open] .accordion-icon::after { transform: rotate(0); }
.method-steps summary:hover { color: #FEE47F; }
.step-copy { padding: 0 22px 24px 40px; }
.step-copy p:first-child { font-size: 17px; }
.step-copy p:last-child { color: #B0ACD4; font-size: 15px; margin-top: 13px; }
.method-steps details[open] .step-copy { animation: enter-page 180ms ease-out; }

.page-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: end; padding-block: 60px 40px; }
.page-intro { font-size: 17px; color: var(--muted); max-width: 380px; }
.next-page { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 30px; margin-top: 20px; border-top: 1px solid var(--line); font-size: 26px; font-weight: 500; letter-spacing: -.035em; line-height: 1.2; }
.next-page svg { width: 31px; height: 31px; }
.next-page:hover { color: var(--green); }

.examples-page { padding-bottom: 20px; }
.page-heading.compact { padding-block: 48px 38px; }
.page-heading.compact h1 { font-size: clamp(52px,5.7vw,78px); }
.demo-tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); margin-bottom: 19px; }
.demo-tabs button { display: flex; align-items: center; gap: 10px; padding: 12px 0 16px; min-height: 50px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-weight: 500; font-size: 16px; color: var(--muted); transition: color var(--ease), border-color var(--ease); }
.demo-tabs button[aria-selected="true"] { border-color: var(--green); color: var(--green); }
.demo-tabs button:hover { color: var(--green); }
.demo-tabs svg { width: 20px; height: 20px; }
.demo-disclaimer { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--muted); padding-block: 5px 24px; }
.demo-disclaimer svg { width: 18px; height: 18px; margin-top: 2px; }
.demo-columns { display: grid; grid-template-columns: 1fr 1fr; }
.demo-input { min-width: 0; padding: 25px 48px 40px 0; }
.demo-output { min-width: 0; border-left: 1px solid var(--line); padding: 25px 0 40px 40px; min-height: 770px; }
.demo-column-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 25px; margin-bottom: 30px; }
.mini-label { font-size: 14px; font-weight: 600; }
.input-type { font-size: 14px; color: var(--muted); }
.output-symbol { width: 19px; height: 19px; color: var(--green); }
.sender { display: flex; align-items: center; margin-bottom: 21px; }
.sender-avatar, .sender > svg { display: none; }
.sender strong { display: block; font-size: 15px; font-weight: 550; }
.sender > div > span { display: block; font-size: 14px; color: var(--muted); }
.message-source blockquote { font-size: clamp(20px,1.75vw,25px); font-weight: 450; line-height: 1.5; letter-spacing: -.025em; }
.input-note { color: var(--muted); font-size: 14px; max-width: 390px; line-height: 1.75; margin-top: 25px; }
.demo-reveal { margin-top: 28px; }
.result-placeholder { min-height: 610px; display: flex; flex-direction: column; justify-content: center; padding: 15px 0; }
.result-placeholder > svg { display: none; }
.result-placeholder h3 { font-size: clamp(36px,3.3vw,48px); font-weight: 550; line-height: 1.1; margin-bottom: 23px; }
.result-placeholder p { max-width: 370px; font-size: 17px; color: var(--muted); }
.result-placeholder > span { font-size: 14px; color: var(--muted); margin-top: 32px; }
.result-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.result-title h3 { font-size: 27px; }
.result-tag { color: var(--muted); font-size: 14px; }
.data-label { color: var(--green); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.order-facts { margin-bottom: 22px; }
.order-facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; border-bottom: 1px solid var(--line); padding-block: 10px; }
.order-facts dt { font-size: 14px; color: var(--muted); }
.order-facts dd { font-size: 15px; line-height: 1.65; font-weight: 500; }
.confirm-box { padding: 10px 0 10px 18px; border-left: 3px solid var(--amber); margin-block: 23px; }
.confirm-box .data-label { color: var(--ink); }
.confirm-box > p:last-child, .draft-box > p:last-child { font-size: 15px; line-height: 1.75; }
.draft-box { border-top: 1px solid #A4A1C6; padding-top: 20px; }
.draft-box .data-label::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--green); margin-right: 8px; }
.case-label { display: block; font-size: 14px; margin-bottom: 8px; font-weight: 550; }
select { width: 100%; min-height: 48px; padding: 10px 32px 10px 0; border: 0; border-bottom: 1px solid #666192; border-radius: 0; background-color: var(--paper); color: var(--ink); font-size: 16px; }
.commercial-message { margin-top: 32px; }
.outcome-list { list-style: none; margin-bottom: 27px; }
.outcome-list li { position: relative; padding: 13px 0 13px 24px; border-bottom: 1px solid var(--line); font-size: 16px; }
.outcome-list li::before { content: ""; position: absolute; top: 23px; left: 0; width: 6px; height: 6px; border: 1px solid var(--green); border-radius: 50%; }
.followup-boundary { margin-top: 24px; padding-left: 15px; border-left: 2px solid var(--amber); color: var(--muted); font-size: 14px; }
.demo-footer-note { color: var(--muted); font-size: 14px; padding-block: 24px; border-top: 1px solid var(--line); }
.no-js-title { padding-block: 24px; }
.demos-ready .no-js-title { display: none; }
.noscript-note { padding: 15px; background: #FBF1C8; font-size: 15px; color: var(--ink); }
.noscript-cases { padding-block: 26px; border-top: 1px solid var(--line); }
.noscript-cases h4 { margin-top: 25px; }
.noscript-cases p, .noscript-cases blockquote { margin-top: 12px; }


.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 26px; min-height: 80px; font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.faq-list summary:hover { color: var(--green); }
.faq-list details > p { padding: 0 35px 28px 0; color: var(--muted); font-size: 16px; }


.consultation-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; padding-block: 60px 75px; }
.consultation-intro, .method-intro, .questions-intro { min-width: 0; }
.consultation-intro h1 { font-size: clamp(68px,7.4vw,106px); line-height: 1; }
.consultation-intro > p:not(.page-label) { color: var(--muted); font-size: 18px; max-width: 370px; margin-top: 29px; }
.consult-side-note { display: flex; gap: 16px; margin-top: 55px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 370px; color: var(--muted); font-size: 14px; }
.consult-side-note > span { color: var(--green); font-size: 25px; }
.consult-form { padding-top: 3px; min-width: 0; }
.field { margin-bottom: 27px; }
.field label, .summary-heading label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.field label > span { font-size: 14px; font-weight: 400; color: var(--muted); }
input, textarea { display: block; width: 100%; min-height: 48px; border: 0; border-bottom: 1px solid #666192; border-radius: 0; padding: 10px 0; background: transparent; color: var(--ink); font-size: 17px; line-height: 1.6; }
textarea { resize: vertical; min-height: 72px; }
input::placeholder, textarea::placeholder { color: #5E5B78; opacity: 1; }
input:hover, textarea:hover { border-color: var(--green); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-width: 2px; outline-offset: 4px; }
[aria-invalid="true"] { border-color: var(--error); }
.field-hint { color: var(--muted); font-size: 14px; margin-top: 7px; }
.field-error { color: var(--error); font-size: 14px; margin-top: 7px; }
.privacy-notice { color: var(--muted); font-size: 14px; line-height: 1.75; margin-bottom: 22px; }
.privacy-notice strong { color: var(--ink); font-weight: 600; }
.form-actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }
.clear-button { min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.clear-button:hover { color: var(--ink); }
.form-status { min-height: 24px; margin-top: 12px; color: var(--green); font-size: 14px; }
.summary-area { padding-top: 28px; margin-top: 24px; border-top: 1px solid var(--line); }
.summary-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 15px; }
.summary-heading label { margin-bottom: 0; }
.summary-heading .mini-label { color: var(--muted); font-weight: 400; }
#summary { min-height: 320px; border: 1px solid #666192; padding: 15px; background: var(--white); }
.summary-area .button { margin-top: 20px; }
.copy-status { min-height: 24px; font-size: 14px; color: var(--green); margin-top: 13px; }



/* El detalle se puede comprobar: cada dato vuelve a su fuente. */
.source-help { font-size: 14px; color: var(--muted); margin-bottom: 13px; }
.source-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; line-height: 1.45; text-align: left; transition: color var(--ease); }
.source-button::after { content: "↖"; opacity: 0; transition: opacity var(--ease); }
.source-button:hover, .source-button[aria-pressed="true"] { color: var(--green); }
.source-button:hover::after, .source-button[aria-pressed="true"]::after { opacity: 1; }
.source-span { transition: background-color 200ms ease; border-radius: 2px; }
.source-span.is-highlighted { background: #FAEAA8; color: var(--ink); box-shadow: 0 2px 0 var(--amber); }
.source-return { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); text-decoration: underline; text-underline-offset: 5px; font-size: 14px; margin-top: 15px; }
.source-date-button { padding: 9px 0 0; min-height: 44px; display: inline-flex; align-items: center; color: var(--green); background: transparent; border: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.demo-output { min-height: 940px; }
.order-facts > div { align-items: center; padding-block: 6px; }
.result-placeholder { min-height: 750px; }
.consultation-page { grid-template-columns: 1fr 1.15fr; gap: 90px; padding-bottom: 60px; }
.consultation-intro h1 { font-size: clamp(56px,6.1vw,84px); }
.consult-side-note { margin-top: 30px; }
.consult-faq-link { margin-top: 23px; font-size: 14px; }
.consult-faq { display: grid; grid-template-columns: 1fr 1.15fr; gap: 90px; border-top: 1px solid var(--line); padding-block: 60px 75px; }
.consult-faq h2 { font-size: 43px; }
.faq-list details[open] > p { animation: enter-page 180ms ease-out; }
.site-footer { width: min(1320px,calc(100% - 88px)); margin-inline: auto; padding-top: 39px; }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-bottom: 30px; }
.footer-main > div > p { font-size: 14px; color: var(--muted); margin-top: 12px; }
.site-footer .wordmark { font-size: 27px; }
.site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding-block: 15px 20px; font-size: 14px; color: var(--muted); }
.motion-toggle { display: inline-flex; align-items: center; gap: 9px; background: transparent; border: 0; color: var(--muted); font-size: 14px; min-height: 44px; padding: 8px 0; }
.motion-toggle svg { width: 18px; height: 18px; }
.motion-toggle:hover, .motion-toggle[aria-pressed="true"] { color: var(--green); }
.motion-toggle:disabled { opacity: 1; }

@media (max-width: 1199px) {
  .header-inner { gap: 22px; }
  .primary-nav { gap: 21px; }
  .header-actions { gap: 20px; }
  .intro-grid { grid-template-columns: .9fr 1.1fr; gap: 35px; min-height: 1020px; padding-top: 76px; }
  .intro h1 { font-size: 65px; }
  .intro-description { font-size: 17px; }
  .intro-purpose { font-size: 18px; }
  .flow-topline { flex-wrap: wrap; gap: 6px; }
  .flow-figure figcaption { min-height: 115px; }
  .flow-controls button { font-size: 14px; gap: 7px; }
  .flow-controls button > span { display: none; }
  .flow-token { font-size: 14px; }
  .services-layout, .method-layout { gap: 60px; }
  .service-panels { min-height: 660px; }
  .section-heading { gap: 40px; }
  .section-heading > p { max-width: 315px; }
  .page-heading { gap: 45px; }
  .demo-input { padding-right: 35px; }
  .demo-output { padding-left: 30px; min-height: 1050px; }
  .order-facts > div { grid-template-columns: 130px 1fr; gap: 13px; }
  .consultation-page, .consult-faq { gap: 60px; }
}
@media (max-width: 1023px) {
  .header-inner { min-height: 78px; flex-wrap: wrap; gap: 0; }
  .primary-nav { order: 3; width: 100%; padding-bottom: 14px; margin-left: 0; }
  .menu-ready .primary-nav { display: none; }
  .header-actions { gap: 25px; }
  .intro-grid { gap: 32px; min-height: 980px; }
  .intro-copy { padding-top: 15px; }
  .intro h1 { font-size: 56px; }
  .intro-actions { gap: 10px; }
  .intro-purpose { margin-top: 36px; font-size: 17px; }
  .intro-purpose br { display: none; }
  .flow-figure { top: 102px; }
  .flow-stage { aspect-ratio: 1.14; }
  .flow-svg { overflow: hidden; }
  .flow-token { font-size: 14px; }
  .flow-controls button { padding-inline: 4px; font-size: 14px; line-height: 1.45; }
  .flow-figure figcaption strong { font-size: 18px; }
  .flow-figure figcaption > span { font-size: 14px; }
  .intro-bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
  .scroll-cue > span { max-width: none; }
  .services-layout { grid-template-columns: .8fr 1.2fr; gap: 45px; }
  .services-section { padding-block: 70px 50px; }
  .service-tabs button { font-size: 26px; }
  .service-panel h3 { font-size: 34px; }
  .service-panels { min-height: 690px; }
  .service-path { gap: 8px; flex-wrap: wrap; }
  .service-path > i { min-width: 15px; }
  .section-heading > p { max-width: 270px; }
  .method-layout { grid-template-columns: .9fr 1.1fr; gap: 45px; }
  .method-section { padding-block: 65px; }
  .method-steps summary { grid-template-columns: 22px 1fr 18px; gap: 10px; font-size: 23px; }
  .step-copy { padding-left: 32px; padding-right: 5px; }
  .menu-layout { gap: 45px; grid-template-columns: .8fr 1.2fr; }
  .menu-intro > p:nth-child(2) { font-size: 42px; }
  .menu-links a { font-size: 34px; }
  .menu-links a:last-child { font-size: 30px; }
  .page-heading { grid-template-columns: 1.15fr .85fr; gap: 30px; }
  .page-heading.compact h1 { font-size: 54px; }
  .page-intro { font-size: 16px; }
  .demo-input { padding-right: 24px; }
  .demo-output { padding-left: 24px; min-height: 1170px; }
  .order-facts > div { display: block; }
  .source-button { min-height: 44px; }
  .result-title { flex-wrap: wrap; }
  .input-type { display: none; }
  .result-placeholder { padding-right: 8px; }
  .result-placeholder h3 { font-size: 36px; }
  .message-source blockquote { font-size: 21px; }
  .consultation-page, .consult-faq { grid-template-columns: .9fr 1.1fr; gap: 45px; }
  .consultation-intro h1 { font-size: 63px; }
  .consultation-intro > p:not(.page-label) { font-size: 17px; }
  .consult-side-note { max-width: 280px; }
}
@media (max-width: 767px) {
  .container, .header-inner, .site-footer { width: calc(100% - 40px); }
  main[id], section[id], blockquote[id], #order-result { scroll-margin-top: 95px; }
  h2 { font-size: 36px; }
  .header-inner { min-height: 76px; }
  .wordmark { font-size: 26px; }
  .header-actions { gap: 18px; }
  .header-consult { font-size: 14px; }
  .header-consult svg, .consult-desktop { display: none; }
  .consult-mobile { display: inline; }
  .menu-toggle { gap: 9px; padding-left: 14px; }
  .primary-nav { gap: 20px; flex-wrap: wrap; padding-top: 6px; }
  .intro-grid { display: block; min-height: 0; padding-top: 46px; padding-bottom: 37px; }
  .intro-copy { padding-top: 0; }
  .intro-copy .page-label { margin-bottom: 22px; }
  .intro h1 { font-size: clamp(49px,11.8vw,72px); line-height: 1.05; }
  .intro h1 br { display: initial; }
  .intro-description { max-width: 530px; margin-top: 24px; font-size: 17px; }
  .intro-actions { margin-top: 25px; gap: 12px 22px; }
  .intro-actions .text-link { font-size: 14px; }
  .intro-purpose { margin-top: 27px; font-size: 17px; }
  .flow-figure { position: relative; top: auto; width: 100%; max-width: 560px; margin: 42px auto 0; }
  .flow-topline { gap: 5px 12px; font-size: 14px; padding-bottom: 14px; }
  .flow-topline > span:last-child { font-size: 14px; }
  .flow-stage { aspect-ratio: 1.28; }
  .flow-field-labels span { left: 23%; font-size: 14px; }
  .flow-token { font-size: 14px; }
  .flow-figure figcaption { min-height: 118px; padding-top: 10px; }
  .flow-figure figcaption strong { font-size: 19px; }
  .flow-figure figcaption > span { font-size: 15px; }
  .flow-controls button { justify-content: center; min-height: 62px; padding: 12px 7px; font-size: 14px; line-height: 1.4; text-align: center; }
  .flow-note { font-size: 14px; margin-top: 12px; line-height: 1.6; }
  .intro-bottom { display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 25px; font-size: 14px; }
  .intro-bottom > p { max-width: 225px; }
  .scroll-cue { gap: 8px; }
  .scroll-cue > span { max-width: 70px; font-size: 14px; }
  .scroll-cue svg { width: 17px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading > p { margin-top: 22px; max-width: 500px; font-size: 17px; }
  .services-section { padding-block: 58px 39px; }
  .services-layout { grid-template-columns: 1fr; gap: 30px; }
  .service-tabs { flex-direction: row; gap: 20px; border-top: 0; }
  .service-tabs button { flex: 1; gap: 8px; font-size: 22px; padding: 13px 8px 18px 0; min-height: 90px; border-bottom-width: 2px; }
  .service-tabs button[aria-selected="true"] { border-color: var(--green); }
  .service-tabs button svg { width: 18px; height: 18px; }
  .service-side-note { max-width: 540px; margin-top: 20px; font-size: 14px; }
  .service-weave { display: none; }
  .service-panels { min-height: 680px; }
  .service-panel h3 { font-size: 34px; }
  .service-panel > p:not(.service-index):not(.boundary-note) { font-size: 17px; }
  .service-index { font-size: 14px; }
  .service-features li { font-size: 16px; padding-block: 11px; }
  .service-path { font-size: 14px; gap: 9px; }
  .scope-note { margin-top: 8px; font-size: 14px; }
  .method-layout { grid-template-columns: 1fr; gap: 32px; }
  .method-section { padding-block: 57px; }
  .method-description { max-width: 530px; margin-top: 23px; }
  .method-section .text-link { margin-top: 22px; }
  .method-steps summary { font-size: 24px; padding-block: 24px; gap: 12px; }
  .step-copy { padding-left: 34px; }
  .menu-top { padding: 18px 20px; min-height: 76px; }
  .menu-layout { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 25px; padding-block: 25px; align-content: center; }
  .menu-intro > p:first-child { margin-bottom: 0; }
  .menu-intro > p:nth-child(2), .menu-thread { display: none; }
  .menu-links a { font-size: 29px; padding-block: 16px; }
  .menu-links a:last-child { font-size: 27px; }
  .menu-foot { padding: 22px 20px; }
  .page-heading { grid-template-columns: 1fr; gap: 24px; }
  .page-heading.compact { padding-block: 39px 28px; }
  .page-heading.compact h1 { font-size: 48px; }
  .page-intro { max-width: 500px; font-size: 17px; }
  .demo-tabs { gap: 17px; margin-bottom: 17px; }
  .demo-tabs button { flex: 1; gap: 7px; font-size: 14px; line-height: 1.45; text-align: left; align-items: flex-start; padding-block: 12px; }
  .demo-tabs svg { width: 18px; height: 18px; margin-top: 2px; }
  .demo-disclaimer { font-size: 14px; padding-bottom: 18px; }
  .demo-columns { grid-template-columns: 1fr; }
  .demo-input { padding: 20px 0 29px; min-height: 610px; }
  .demo-output { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 28px; min-height: 1220px; }
  .demo-column-heading { margin-bottom: 25px; }
  .input-type { display: initial; }
  .message-source blockquote { font-size: 22px; }
  .input-note { margin-top: 21px; }
  .result-placeholder { min-height: 1000px; justify-content: flex-start; padding-top: 60px; }
  .result-placeholder h3 { font-size: 40px; }
  .result-title { flex-wrap: nowrap; }
  .result-title h3 { font-size: 27px; }
  .order-facts > div { padding-block: 6px 10px; }
  .order-facts dd { font-size: 16px; }
  .confirm-box > p:last-of-type, .draft-box > p:last-child { font-size: 16px; }
  .source-help { font-size: 14px; }
  .source-button { min-height: 44px; }
  .next-page { font-size: 26px; margin-top: 12px; padding-block: 27px; }
  .next-page svg { width: 27px; height: 27px; }
  .consultation-page { grid-template-columns: 1fr; gap: 35px; padding-block: 42px 47px; }
  .consultation-intro h1 { font-size: 56px; }
  .consultation-intro h1 br { display: none; }
  .consultation-intro > p:not(.page-label) { max-width: 530px; font-size: 17px; margin-top: 24px; }
  .consult-faq-link { margin-top: 20px; }
  .consult-side-note { max-width: none; margin-top: 21px; padding-top: 19px; }
  .field { margin-bottom: 25px; }
  .form-actions { gap: 22px; }
  .form-actions .button { gap: 16px; padding-inline: 17px; }
  .summary-heading { display: block; }
  .summary-heading .mini-label { display: block; margin-top: 6px; }
  .consult-faq { grid-template-columns: 1fr; gap: 28px; padding-block: 47px 55px; }
  .consult-faq h2 { font-size: 37px; }
  .faq-list summary { font-size: 19px; padding-block: 22px; }
  .faq-list details > p { font-size: 17px; padding-right: 15px; }
  .site-footer { padding-top: 32px; }
  .footer-main { flex-direction: column; gap: 22px; padding-bottom: 24px; }
  .site-footer nav { gap: 5px 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 7px; padding-block: 18px; }
}
@media (max-width: 374px) {
  .header-actions { gap: 13px; }
  .wordmark { font-size: 25px; }
  .menu-toggle { padding-left: 12px; gap: 7px; }
  .intro h1 { font-size: 48px; }
  .flow-topline { flex-direction: column; align-items: flex-start; }
  .flow-stage { aspect-ratio: 1.12; }
  .flow-controls button { padding-inline: 5px; }
  .flow-token { font-size: 14px; }
  .intro-bottom { align-items: flex-start; }
  .intro-bottom > p { max-width: 190px; }
  .service-tabs { gap: 15px; }
  .service-tabs button { font-size: 20px; }
  .service-panel h3 { font-size: 32px; }
  .service-panels { min-height: 735px; }
  .method-steps summary { font-size: 22px; }
  .page-heading.compact h1 { font-size: 44px; }
  .demo-tabs { gap: 12px; }
  .demo-input { min-height: 650px; }
  .demo-output { min-height: 1290px; }
  .input-type { display: none; }
  .result-title { flex-wrap: wrap; }
  .consultation-intro h1 { font-size: 53px; }
  .form-actions { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flow-probe, .flow-stage::before { display: none; }
}
[data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after { animation: none !important; transition: none !important; }
[data-motion="reduced"] .flow-probe, [data-motion="reduced"] .flow-stage::before { display: none; }
