/* V2-C — Activos Fijos: conteo físico en vivo
   Idea: la propuesta de valor se vive, no se explica. Lenguaje visual: etiquetas de activo y almacén. */
:root {
  --paper: #f1f4f1; --ink: #13201c; --ink2: #22322d; --muted: #566660; --line: #cdd8d3; --white: #fff;
  --sig: #f7c600; --teal: #0b6e5f;
  --ok: #17803d; --dmg: #c46a00; --mis: #2158c9; --miss: #d32626; --unv: #6b7a75;
  --wrap: 1200px;
  --fh: "Barlow Condensed", "Arial Narrow", sans-serif; --fb: "Barlow", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--fb); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; } ul, ol { padding: 0; list-style: none; }
a { color: inherit; } svg { display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--sig); color: var(--ink); font-weight: 700; } .skip:focus { left: 8px; }
.small { font-size: 14px; color: var(--muted); margin-top: 14px; }
.lead { font-size: 1.2rem; color: var(--ink2); margin-top: 20px; max-width: 54ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 8px; font: 700 16px/1 var(--fb); text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s; background: transparent; color: var(--ink); }
.btn:hover { transform: translateY(-2px); } .btn:active { transform: scale(.97); } .btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn--sig { background: var(--sig); } .btn--sig:hover { box-shadow: 0 6px 0 var(--ink); }
.btn--ghost:hover { background: rgba(19,32,28,.07); }
.btn--light { border-color: var(--ink); }

.top { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--ink); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--fh); letter-spacing: .04em; }
.brand small { display: block; font: 500 12px var(--fb); letter-spacing: 0; color: var(--muted); margin-top: 3px; }
.brand svg { color: var(--ink); } .brand--light { color: #fff; } .brand--light svg { color: #fff; } .brand--light small { color: #9fb0a9; }
.top__nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15.5px; }
.top__nav a:not(.btn) { text-decoration: none; color: var(--ink2); } .top__nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.top__cta { min-height: 42px; padding: 0 18px; font-size: 15px; }
.top__toggle { display: none; min-height: 42px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 8px; background: transparent; font: 700 15px var(--fb); cursor: pointer; }

.hero { position: relative; padding: 0; }
.story { --s1: 1; --s2: 1; --s3: 1; }
.story[data-mode="scroll"] { height: 280vh; }
.story__stage { position: relative; min-height: calc(100svh - 70px); display: flex; flex-direction: column; justify-content: center; padding: 52px 0 24px; }
.story[data-mode="scroll"] .story__stage { position: sticky; top: 70px; height: calc(100svh - 70px); min-height: 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.draw { width: 100%; height: auto; max-height: calc(100svh - 230px); overflow: visible; }
.layer--sketch use { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - min(1, max(0, var(--s1) * 2.2 - var(--d)))); opacity: calc(1 - var(--s2)); }
.layer--clean use { fill: none; stroke: rgba(19,32,28,.5); stroke-width: 1.4; opacity: var(--s2); }
.layer--fill .f { opacity: min(1, max(0, var(--s2) * 2.4 - var(--d))); }
.f-win { fill: #fff; } .f-side { fill: var(--ink); } .f-sline { fill: #fff; } .f-k1 { fill: #dff3e6; } .f-k2 { fill: #fff0dc; } .f-k3 { fill: #e1ebff; }
.f-kt rect { fill: var(--ink); } .d-ok { fill: #17803d; } .d-dmg { fill: #c46a00; } .d-mis { fill: #2158c9; } .d-miss { fill: #d32626; }
.f-chart { fill: #eef3f0; } .f-bar { fill: #0b6e5f; } .f-ring { stroke: var(--sig); } .f-table { fill: #f4f7f5; } .f-row { fill: #b9c8c2; }
.f-phone { fill: var(--ink); } .f-prow { fill: #2c3f39; } .f-btn { fill: var(--sig); }
.f-tag { fill: #fff; stroke: var(--ink); stroke-width: 2.5; } .f-bc rect { fill: var(--ink); } .f-code { fill: var(--ink); font-family: var(--fh); }
.layer--live { opacity: var(--s3); } .live-line { stroke: var(--ink); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--s3)); }
.notes { fill: #b45f00; stroke: #b45f00; font-family: var(--fb); opacity: calc((1 - var(--s2) * 1.6) * min(1, max(0, var(--s1) * 3 - 1.6))); } .notes text { stroke: none; }
.tags { fill: var(--muted); font-family: var(--fh); opacity: calc(var(--s2) * .95); }
.live { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; opacity: var(--s3); }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 99px; background: #e0f4e8; color: #0b4a27; border: 2px solid var(--ink); font: 700 13.5px var(--fb); }
.badge i { width: 9px; height: 9px; border-radius: 50%; background: #17803d; animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(23,128,61,.6); } 100% { box-shadow: 0 0 0 10px rgba(23,128,61,0); } }
.checks { display: flex; gap: 14px; font: 700 13px var(--fb); color: var(--ink2); } .checks em { font-style: normal; } .checks em::before { content: "✓ "; color: #17803d; }
.rail { display: grid; grid-template-columns: repeat(3, 1fr); width: min(100% - 40px, var(--wrap)); margin: 20px auto 0; font: 800 15px var(--fh); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); gap: 6px 0; }
.rail span { opacity: .5; transition: opacity .3s, color .3s; } .rail span:nth-child(2) { text-align: center; } .rail span:nth-child(3) { text-align: right; }
.story[data-stage="1"] [data-rail="1"], .story[data-stage="2"] [data-rail="2"], .story[data-stage="3"] [data-rail="3"] { opacity: 1; color: var(--ink); }
.rail__bar { grid-column: 1 / -1; height: 8px; background: #d9e2dd; border-radius: 4px; overflow: hidden; } .rail__bar b { display: block; height: 100%; width: calc(var(--p, 1) * 100%); background: var(--sig); border-right: 2px solid var(--ink); }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(135deg, var(--sig) 0 18px, var(--ink) 18px 36px); }
.kicker { font: 700 15px var(--fh); text-transform: uppercase; letter-spacing: .16em; color: var(--teal); margin-bottom: 12px; }
.kicker--sig { color: var(--sig); }
h1 { font: 800 clamp(2.9rem, 1rem + 5.6vw, 6rem)/.92 var(--fh); text-transform: uppercase; letter-spacing: -0.005em; }
h1 span { display: inline-block; margin-top: 6px; padding: 0 .12em; background: var(--sig); box-decoration-break: clone; }

/* ===== El conteo ===== */
.board { padding: 24px 0 70px; }
.board__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.room-wrap { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; }
.room__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 2px solid var(--ink); font-size: 15px; background: var(--paper); }
.room__head b { font: 800 19px var(--fh); text-transform: uppercase; letter-spacing: .06em; } .room__head span { color: var(--muted); font-weight: 500; }
.room { position: relative; aspect-ratio: 8 / 5; }
.room__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.crack { opacity: 0; stroke-dasharray: 60; stroke-dashoffset: 60; } .crack.show { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .5s ease .1s, opacity .1s; }
.ghost { opacity: 0; transition: opacity .4s; } .room.is-closed .ghost { opacity: 1; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.asset { position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h); padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 6px; }
.asset::before { content: ""; position: absolute; inset: -10px; } /* área táctil mayor */
.asset:hover, .asset:focus-visible { outline: 3px dashed var(--sig); outline-offset: 4px; background: rgba(247,198,0,.15); }
.asset.is-scanning { outline: 3px solid var(--sig); outline-offset: 4px; }
.beam { position: absolute; left: -8%; right: -8%; top: 0; height: 3px; background: var(--sig); box-shadow: 0 0 14px 4px rgba(247,198,0,.8); opacity: 0; pointer-events: none; }
.is-scanning .beam { opacity: 1; animation: sweep .65s linear; }
@keyframes sweep { from { top: 0; } to { top: 100%; } }
.legend { padding: 16px 18px 18px; border-top: 2px solid var(--ink); background: var(--paper); }
.legend__t { font: 800 15px var(--fh); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.legend ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-top: 12px; }
.legend li { display: grid; gap: 4px; justify-items: start; font-size: 14px; color: var(--ink2); line-height: 1.35; }
.legend__n { margin-top: 14px; font-weight: 700; font-size: 14.5px; }
.asset--below .tag { bottom: auto; top: 100%; transform: translate(calc(-50% + var(--tx, 0px)), 4px); }
.tag { position: absolute; left: 50%; bottom: 100%; transform: translate(calc(-50% + var(--tx, 0px)), -4px); padding: 2px 8px 9px; background: #fff; border: 2px solid var(--ink); border-radius: 4px; white-space: nowrap; text-align: center; pointer-events: none; line-height: 1.1; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.tag b { display: block; font: 700 13px var(--fh); letter-spacing: .06em; }
.tag small { display: block; font: 700 11.5px var(--fb); margin-top: 2px; white-space: normal; max-width: 92px; } .tag small:empty { display: none; }
.tag::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 7px); }
.is-ok .tag { background: #e3f5ea; border-color: var(--ok); color: #0b4a27; }
.is-dmg .tag { background: #fff0dc; border-color: var(--dmg); color: #7a3d00; }
.is-mis .tag { background: #e4edff; border-color: var(--mis); color: #14388a; }
.is-ok .tag::after, .is-dmg .tag::after, .is-mis .tag::after { display: none; }
.asset[class*="is-"]:not(.is-scanning) { background: transparent; }
.ghost-tag { position: absolute; left: 67.4%; top: 50.4%; transform: translate(-50%, -4px) translateY(-100%); padding: 2px 8px 4px; background: #fde4e4; border: 2px solid var(--miss); border-radius: 4px; text-align: center; color: #7a1717; opacity: 0; line-height: 1.1; pointer-events: none; transition: opacity .4s; }
.ghost-tag b { display: block; font: 700 13px var(--fh); letter-spacing: .06em; } .ghost-tag small { font: 700 11.5px var(--fb); }
.room.is-closed .ghost-tag { opacity: 1; }
.room.is-closed .asset.is-ok, .room.is-closed .asset.is-unv { opacity: .55; }
.asset.is-unv .tag { display: none; }

.reg { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 18px; }
.reg__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; } .reg__head b { font: 800 19px var(--fh); text-transform: uppercase; letter-spacing: .06em; } .reg__head span { font-weight: 600; font-size: 14px; color: var(--muted); }
.meter { height: 10px; background: #e4ebe7; border-radius: 5px; margin: 12px 0 8px; overflow: hidden; } .meter i { display: block; height: 100%; width: 0; background: var(--sig); border-right: 2px solid var(--ink); transition: width .4s cubic-bezier(.16,1,.3,1); }
.reg__t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.reg__t th { text-align: left; font: 700 12.5px var(--fh); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 8px 6px; border-bottom: 2px solid var(--ink); }
.reg__t td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; } .reg__t td:first-child { font: 700 15px var(--fh); letter-spacing: .04em; white-space: nowrap; }
.reg__t td b { display: block; font-weight: 600; line-height: 1.2; } .reg__t td small { color: var(--muted); font-size: 12.5px; }
.reg__t tr.is-done { background: #f6f9f7; }
.st, .chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font: 700 12.5px/1.4 var(--fb); white-space: nowrap; }
.st--pend { background: #e8eeea; color: var(--unv); } .st--ok, .chip--ok { background: #e0f4e8; color: #0b4a27; } .st--dmg { background: #fff0dc; color: #7a3d00; }
.st--mis, .chip--mis { background: #e1ebff; color: #14388a; } .st--miss, .chip--miss { background: #fde2e2; color: #7a1717; } .st--unv { background: #e8eeea; color: #3a4a45; font-style: italic; }
.reg__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#close-btn.is-ready { animation: ready 1.2s ease-in-out infinite; }
@keyframes ready { 50% { box-shadow: 0 0 0 6px rgba(247,198,0,.55); } }
.reg__note { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.result { margin-top: 24px; padding: 28px 30px 30px; background: var(--white); border: 2px solid var(--ink); border-left: 14px solid var(--sig); border-radius: 12px; animation: pop .45s cubic-bezier(.16,1,.3,1); }
.result[hidden] { display: none; }
@keyframes pop { from { transform: translateY(14px); opacity: 0; } }
.result h2 { font: 800 clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem)/1.05 var(--fh); text-transform: uppercase; }
.result__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; } .result__chips .st { font-size: 14px; padding: 5px 14px; }
.result__text { margin-top: 16px; max-width: 70ch; color: var(--ink2); }
.result__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ===== Secciones ===== */
.section { padding: 90px 0; } .section--soft { background: #e6ece8; border-block: 2px solid var(--ink); } .section--ink { background: #101a17; color: #fff; }
.head { max-width: 700px; margin-bottom: 44px; } .head h2 { margin-bottom: 0; }
.head p:not(.kicker) { margin-top: 12px; color: var(--ink2); font-size: 1.1rem; } .head--light p:not(.kicker) { color: #b6c6bf; }
h2 { font: 800 clamp(2rem, 1.2rem + 2.6vw, 3.3rem)/1.02 var(--fh); text-transform: uppercase; letter-spacing: .005em; }
h3 { font: 700 1.5rem/1.1 var(--fh); text-transform: uppercase; letter-spacing: .03em; }

.labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.label { position: relative; padding: 30px 26px 58px; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; }
.label::before { content: ""; position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.label p { margin-top: 10px; color: var(--ink2); font-size: 16px; }
.barcode { position: absolute; left: 26px; right: 26px; bottom: 18px; height: 22px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 15px); }

.ledger { border-top: 1px solid #2b3a35; }
.ledger details { border-bottom: 1px solid #2b3a35; transition: background-color .2s; } .ledger details[open] { background: #16231f; }
.ledger summary { display: grid; grid-template-columns: 90px 1.2fr 1fr 28px; gap: 16px; align-items: center; padding: 20px 14px; cursor: pointer; list-style: none; }
.ledger summary::-webkit-details-marker { display: none; }
.ledger summary::after { content: "+"; justify-self: end; font: 400 28px/1 var(--fb); color: var(--sig); transition: transform .25s; } .ledger details[open] summary::after { transform: rotate(45deg); }
.ledger .c { font: 700 17px var(--fh); letter-spacing: .08em; color: var(--sig); } .ledger b { font: 700 1.3rem var(--fh); letter-spacing: .02em; text-transform: uppercase; } .ledger em { font-style: normal; color: #9fb0a9; }
.ledger summary:hover b { text-decoration: underline; text-underline-offset: 5px; }
.ledger p { padding: 0 14px 24px 120px; color: #c3d1cb; max-width: 82ch; }

.calcwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lead--ink { color: var(--ink2); }
.rules { display: grid; gap: 14px; margin-top: 26px; } .rules li { display: flex; gap: 12px; align-items: flex-start; }
.d { flex: none; width: 16px; height: 16px; margin-top: 6px; border-radius: 50%; border: 2px solid var(--ink); } .d--ok { background: #3ec16b; } .d--rev { background: var(--sig); } .d--rep { background: #ff5a5a; }
.calc { padding: 28px; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; }
input { width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; font: 500 16px var(--fb); color: var(--ink); background: #fff; }
.calc__out { padding: 18px; border-radius: 10px; border: 2px solid var(--ink); background: #fff3c4; color: #4a3600; transition: background-color .25s, color .25s; }
.calc[data-state="keep"] .calc__out { background: #dff3e6; color: #0b4a27; } .calc[data-state="replace"] .calc__out { background: #fde2e2; color: #7a1717; }
.calc__verdict { font: 800 2.6rem/1 var(--fh); text-transform: uppercase; } .calc__why { margin: 6px 0 14px; font-size: 15px; }
.bar { height: 12px; border-radius: 6px; background: rgba(0,0,0,.12); overflow: hidden; } .bar span { display: block; height: 100%; width: var(--w); max-width: 100%; background: currentColor; transition: width .5s cubic-bezier(.16,1,.3,1); }
.bar__label { display: flex; justify-content: space-between; margin: 6px 0 12px; font-size: 14px; }

.vs { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 0; align-items: center; }
.vs__mid { text-align: center; font: 800 2.6rem var(--fh); }
.sheet { background: #fff; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.sheet__bar { padding: 10px 14px; border-bottom: 2px solid var(--ink); background: var(--paper); font-size: 14px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet--messy { transform: rotate(-1.2deg); font-family: Arial, sans-serif; } .sheet--messy th, .sheet--messy td { border: 1px solid #c9c9c9; padding: 9px 10px; font-size: 13.5px; text-align: left; } .sheet--messy th { background: #efefef; color: #666; font-weight: 400; }
.sheet--messy .hl { background: #fff4a8; } .sheet--messy .err { color: #c0392b; font-weight: 700; }
.sheet--clean th { text-align: left; font: 700 12.5px var(--fh); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 9px 10px; border-bottom: 2px solid var(--ink); }
.sheet--clean td { padding: 10px; border-bottom: 1px solid var(--line); font-size: 14px; } .sheet--clean tr:last-child td { border-bottom: 0; } .sheet--clean td:first-child { font: 700 15px var(--fh); letter-spacing: .04em; }
.note { margin-top: 28px; padding: 18px 22px; border: 2px dashed var(--ink); border-radius: 10px; max-width: 800px; color: var(--ink2); background: rgba(255,255,255,.6); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { position: relative; padding: 30px 26px; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; }
.steps li span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sig); border: 2px solid var(--ink); font: 800 1.6rem var(--fh); margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--ink2); font-size: 16px; }

.faq { max-width: 880px; } .faq__list { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 2px solid var(--ink); border-radius: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: "+"; font: 400 28px/1 var(--fb); transition: transform .25s; } .faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { background: #fff8d6; } .faq details p { padding: 0 22px 20px; color: var(--ink2); }

.cta { background: var(--sig); border-block: 2px solid var(--ink); padding: 90px 0; }
.cta__in { text-align: center; }
.cta__tag { display: inline-block; margin-bottom: 22px; padding: 6px 16px 14px; background: #fff; border: 2px solid var(--ink); border-radius: 4px; position: relative; transform: rotate(-2deg); line-height: 1.1; }
.cta__tag b { display: block; font: 800 22px var(--fh); letter-spacing: .08em; } .cta__tag small { font: 600 13px var(--fb); }
.cta__tag::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 5px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 7px); }
.cta h2 { max-width: 16ch; margin-inline: auto; } .cta p:not(.small) { margin: 16px auto 0; max-width: 50ch; font-size: 1.15rem; }
.cta .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; } .cta .small { color: var(--ink2); }
.cta .btn--sig { background: var(--ink); color: #fff; } .cta .btn--sig:hover { box-shadow: 0 6px 0 rgba(0,0,0,.35); }

.foot { background: #101a17; color: #9fb0a9; padding: 34px 0; }
.foot__in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; } .foot nav a { text-decoration: none; } .foot nav a:hover { color: #fff; } .foot .small { margin: 0; color: #9fb0a9; }

.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 24px; } .story__stage { padding-top: 44px; } .draw { max-height: 46svh; } .rail { display: none; }
  .board__grid, .calcwrap { grid-template-columns: 1fr; }
  .labels, .steps { grid-template-columns: 1fr 1fr; }
  .vs { grid-template-columns: 1fr; gap: 14px; } .vs__mid { transform: rotate(90deg); }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .top__toggle { display: inline-flex; align-items: center; }
  .top__nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--paper); border-bottom: 2px solid var(--ink); display: none; }
  .top__nav.is-open { display: flex; }
  .top__nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); } .top__cta { margin-top: 14px; }
  .hero { padding-top: 40px; } .section { padding: 60px 0; } .cta { padding: 60px 0; }
  .labels, .steps { grid-template-columns: 1fr; }
  .ledger summary { grid-template-columns: 1fr 28px; gap: 4px 12px; } .ledger summary .c { grid-column: 1; } .ledger summary b { grid-column: 1; } .ledger summary em { grid-column: 1; } .ledger summary::after { grid-column: 2; grid-row: 1 / span 3; }
  .ledger p { padding: 0 14px 22px; }
  .calc__grid { grid-template-columns: 1fr; } .calc { padding: 20px; }
  .result { padding: 22px 20px; border-left-width: 10px; } .result__cta .btn, .cta .btn { width: 100%; }
  /* en pantallas pequeñas, las etiquetas se reducen a un punto de estado */
  .tag b, .tag small { display: none; } .tag { width: 22px; height: 22px; padding: 0; border-radius: 50%; transform: translate(-50%, 0); bottom: 60%; }
  .tag::after { display: none; } .tag::before { content: "?"; display: grid; place-items: center; width: 100%; height: 100%; font: 800 13px var(--fh); }
  .is-ok .tag::before { content: "✓"; } .is-dmg .tag::before { content: "!"; } .is-mis .tag::before { content: "↔"; }
  .ghost-tag { display: none; }
  .sheet--clean .chip { white-space: normal; font-size: 11.5px; padding: 2px 8px; } .sheet--clean td, .sheet--clean th { padding: 8px 6px; }
  .reg__t { font-size: 13.5px; } .reg__t th:nth-child(3), .reg__t td:nth-child(3) { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .room.is-closed .ghost, #close-btn.is-ready { animation: none; } .result { animation: none; }
  .btn, .meter i, .bar span { transition: none; }
}

/* Selector de idioma (EN / ES) */
.lang-sw { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 36px; padding: 0 11px; border: 1.5px solid #cfdcf5; border-radius: 8px; font: 600 13px/1 var(--f-body, system-ui); letter-spacing: .06em; color: #1651c9; text-decoration: none; background: #fff; transition: background-color .2s, border-color .2s; }
.lang-sw:hover { background: #eaf1ff; border-color: #1f6bff; }
.lang-sw::after { display: none !important; }
