/* ==========================================================================
   Herramientas interactivas de cada página (simulador, piloto, consola SAP,
   integraciones, plano de oficina, diagnóstico)
   ========================================================================== */
.phero__note { max-width: 30ch; font-size: 1.02rem; line-height: 1.5; padding-top: 18px; border-top: 1.5px solid currentColor; }
.phero__note a { font-weight: 600; }
.kicker { font: 600 .8rem/1 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Simulador del agente ---------- */
.sim { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 28px; align-items: start; }
.sim fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.sim legend { padding: 0; margin-bottom: 12px; font: 600 .8rem/1 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.seg__opts { display: flex; padding: 4px; border-radius: 999px; background: var(--mist); }
.seg__opts input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opts label { flex: 1; padding: 10px 12px; border-radius: 999px; text-align: center; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background-color .25s, color .25s; }
.seg__opts input:checked + label { background: var(--ink); color: var(--white); }
.seg__opts input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.sim__qs { margin-top: 30px !important; }
.sim__qlist { display: grid; gap: 10px; }
.sim__qlist button { display: grid; gap: 6px; padding: 16px 18px; text-align: left; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); font: 500 1rem/1.35 var(--body); transition: border-color .2s, background-color .2s, transform .3s var(--ease); }
.sim__qlist button:hover { border-color: var(--ink); transform: translateX(4px); }
.sim__qlist button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.sim__tag { justify-self: start; font: 600 .72rem/1 var(--mono); letter-spacing: .02em; padding: 5px 8px; border-radius: 6px; }
.sim__tag--faq { background: var(--green-wash); color: var(--green-ink); }
.sim__tag--sap { background: var(--blue-wash); color: var(--blue-deep); }
.sim__tag--team { background: #f1ece2; color: #6b4e14; }
[aria-pressed="true"] .sim__tag--faq { background: var(--green); color: var(--ink); }
[aria-pressed="true"] .sim__tag--sap { background: var(--blue); color: var(--white); }
[aria-pressed="true"] .sim__tag--team { background: #e8d9b5; color: var(--ink); }

.phone { position: sticky; top: calc(var(--top-h) + 24px); display: flex; flex-direction: column; height: 600px; max-height: calc(100svh - var(--top-h) - 48px); border-radius: 34px; overflow: hidden; background: #eef1ef; border: 8px solid var(--ink); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .55); }
.phone__bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink); color: var(--white); }
.phone__avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #474747; }
.phone__avatar svg { width: 22px; height: 22px; fill: var(--green); }
.phone__who { display: grid; line-height: 1.3; }
.phone__who strong { font-size: .98rem; }
.phone__who small { font-size: .8rem; color: #cfd3d0; }
.phone__thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px; scrollbar-width: thin; }
.phone__note { padding: 9px 16px; font-size: .78rem; color: var(--ink-2); background: var(--mist-2); }
.msg { max-width: 88%; padding: 10px 13px 8px; border-radius: 14px; font-size: .94rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); animation: msg-in .45s var(--ease) both; }
.msg--in { align-self: flex-start; background: var(--white); border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: #dcefc4; border-top-right-radius: 4px; }
.msg--event { align-self: center; max-width: 94%; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: none; font-size: .8rem; color: var(--ink-2); }
.msg time { display: block; margin-top: 3px; text-align: right; font-size: .7rem; color: #6b716d; font-variant-numeric: tabular-nums; }
.msg table { width: 100%; margin: 8px 0; border-collapse: collapse; font: .84rem/1.3 var(--mono); }
.msg th, .msg td { padding: 5px 6px; text-align: left; border-bottom: 1px solid var(--mist-2); }
.msg th { font-weight: 600; color: var(--ink-2); font-size: .74rem; }
.msg .num { text-align: right; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sim__side { display: grid; gap: 22px; }
.route { width: 100%; height: auto; overflow: visible; }
.route__link { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 4 6; transition: stroke .3s; }
.route__link.is-lit { stroke: var(--green-ink); stroke-dasharray: none; stroke-width: 3; }
.route__node polygon { fill: var(--mist); stroke: var(--line-2); stroke-width: 1.5; transition: fill .35s, stroke .35s, transform .5s var(--ease); transform-box: fill-box; transform-origin: center; }
.route__node text { font: 600 13px var(--body); fill: var(--ink-2); text-anchor: middle; transition: fill .3s; }
.route__node.is-lit polygon { fill: var(--green); stroke: var(--green-ink); transform: scale(1.06); }
.route__node.is-lit text { fill: var(--ink); }
.route__node--agent polygon { fill: var(--ink); stroke: var(--ink); }
.route__node--agent .route__in { fill: var(--white); }
.route__node--agent.is-lit polygon { fill: var(--ink); stroke: var(--green); stroke-width: 3; }
.route__node--agent.is-lit .route__in { fill: var(--green); }
.route__node--sap.is-lit polygon { fill: var(--blue); stroke: var(--blue-deep); }
.route__packet { fill: var(--green); stroke: var(--ink); stroke-width: 2; opacity: 0; transition: opacity .2s; }
.route__packet.is-on { opacity: 1; }
.log { padding: 18px 20px; border-radius: 18px; background: var(--ink); color: #e9ece9; min-height: 196px; }
.log__title { margin-bottom: 10px; font-weight: 600; color: var(--white); }
.log__title span { font-weight: 400; color: #aab0ac; }
.log__lines { display: grid; gap: 6px; font-size: .8rem; line-height: 1.45; }
.log__lines li { animation: msg-in .35s var(--ease) both; }
.log__lines span { color: var(--green); margin-right: 6px; }
.sim__cta { display: grid; gap: 12px; padding: 20px; border-radius: 18px; background: var(--green-wash); animation: msg-in .5s var(--ease) both; }
.sim__cta p { font: 600 1.15rem/1.2 var(--display); }
.sim__cta .btn { justify-self: start; }

/* ---------- Piloto de 14 días ---------- */
.pilot__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: stretch; }
.pilot__track { --p: 0; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px; border-radius: 28px; background: var(--green); }
.pilot__track input { position: relative; z-index: 2; width: 100%; height: 44px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: grab; }
.pilot__track input:active { cursor: grabbing; }
.pilot__track input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) calc(var(--p) * 100%), rgba(51, 51, 51, .2) 0); }
.pilot__track input::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(51, 51, 51, .2); }
.pilot__track input::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
.pilot__track input::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -14px; border-radius: 50%; background: var(--ink); border: 4px solid var(--white); box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .4); }
.pilot__track input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 4px solid var(--white); }
.pilot__track input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.pilot__days { display: grid; grid-template-columns: repeat(14, 1fr); margin: 4px 10px 0; font: 500 .78rem/1 var(--mono); text-align: center; color: rgba(51, 51, 51, .55); }
.pilot__days span { padding-top: 8px; transition: color .2s; }
.pilot__days .is-past { color: var(--ink); }
.pilot__days .is-phase { font-weight: 700; }
.pilot__phase { min-height: 210px; }
.pilot__when { margin-bottom: 14px; }
.pilot__phase h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.pilot__phase p:last-child { margin-top: 14px; max-width: 46ch; font-size: 1.12rem; }
.calc { display: grid; gap: 4px; padding: 32px; border-radius: 28px; background: var(--ink); color: var(--white); }
.calc__title { font: 600 1.35rem/1.2 var(--display); margin-bottom: 8px; }
.calc__field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; margin-top: 14px; }
.calc__field label { font-size: .92rem; color: #dfe3e0; }
.calc__field output { font: 600 .95rem var(--mono); color: var(--green); }
.calc__field input { grid-column: 1 / -1; width: 100%; accent-color: var(--green); cursor: pointer; }
.calc__result { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #555; }
.calc__hours { font: 600 4rem/1 var(--display); letter-spacing: -.03em; color: var(--green); font-variant-numeric: tabular-nums; }
.calc__unit { font-weight: 600; }
.calc__unit small { display: block; font-weight: 400; color: #c3c8c4; }
.calc__fine { margin: 8px 0 18px; font-size: .8rem; color: #b9beba; }

@media (max-width: 1100px) {
  .sim { grid-template-columns: 1fr 1fr; }
  .sim__side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: start; }
  .sim__cta { grid-column: 1 / -1; }
  .pilot__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sim { display: flex; flex-direction: column; gap: 22px; }
  .sim__controls { display: contents; }
  .sim .seg { order: 1; }
  .sim .phone { order: 2; height: 460px; }
  .sim .sim__qs { order: 3; margin-top: 0 !important; width: 100%; min-width: 0; contain: inline-size; }
  .sim .sim__side { order: 4; }
  .sim__qlist { display: flex; overflow-x: auto; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .sim__qlist button { flex: 0 0 78%; scroll-snap-align: start; }
  .sim__side { grid-template-columns: 1fr; }
  .phone { position: relative; top: 0; height: 520px; }
  .seg__opts label { padding: 10px 6px; font-size: .9rem; }
  .pilot__track, .calc { padding: 26px 20px; }
  .pilot__days { font-size: .66rem; }
}

/* ---------- Consola "Pregúntele a su SAP Business One" ---------- */
.console { display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: var(--ink); color: var(--white); box-shadow: 0 50px 80px -50px rgba(20, 40, 80, .6); }
.console__ask { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 18px; background: #2a2a2a; border: 1.5px solid #4a4a4a; transition: border-color .2s; }
.console__ask:focus-within { border-color: var(--green); }
.console__prompt { color: var(--green); flex: none; }
.console__ask textarea { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: transparent; color: var(--white); font-size: 1.08rem; line-height: 1.4; resize: none; overflow: hidden; caret-color: var(--green); }
.console__ask textarea:focus { outline: none; }
.console__ask textarea::placeholder { color: #9aa09c; }
.console__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.console__chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid #555; background: transparent; color: #e3e6e4; font-size: .92rem; transition: border-color .2s, background-color .2s, color .2s; }
.console__chips button:hover { border-color: var(--green); color: var(--white); }
.console__chips button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--ink); font-weight: 600; }
.console__out { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; min-height: 300px; padding-top: 22px; border-top: 1px solid #474747; }
.console__query { margin: 0; padding: 18px; border-radius: 14px; background: #2a2a2a; color: #9fb7d9; font-size: .78rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; min-height: 180px; }
.console__query::before { content: "consulta generada"; display: block; margin-bottom: 10px; color: #7b817d; }
.console__answer { display: grid; gap: 18px; align-content: start; }
.console__lead { font: 500 clamp(1.25rem, 2vw, 1.6rem)/1.3 var(--display); letter-spacing: -.01em; }
.console__lead b { color: var(--green); font-weight: 600; }
.console__thinking { color: #9aa09c; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .4; } }
.console__src { font-size: .74rem; color: #8f9591; }
.console__note { font-size: .8rem; color: #a6aca8; }
.console .btn--ink { background: var(--white); color: var(--ink); justify-self: start; }
.bars { display: grid; gap: 12px; }
.bars__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: .95rem; }
.bars__bar { height: 14px; border-radius: 4px; background: #444; overflow: hidden; }
.bars__bar i { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--blue); border-radius: 4px; transform-origin: 0 50%; animation: grow .9s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.bars__row:first-child .bars__bar i { background: var(--green); }
.bars__v { font-size: .86rem; color: #e3e6e4; }
.bars__v em { font-style: normal; color: var(--green); margin-left: 4px; }
@keyframes grow { from { transform: scaleX(0); } }
.ctable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ctable th { padding: 0 0 10px; text-align: left; font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: #9aa09c; }
.ctable td { padding: 12px 0; border-top: 1px solid #474747; animation: msg-in .5s var(--ease) both; }
.ctable tr:nth-child(2) td { animation-delay: .08s; } .ctable tr:nth-child(3) td { animation-delay: .16s; } .ctable tr:nth-child(4) td { animation-delay: .24s; }
.ctable .r { text-align: right; }
.ctable td.mono { font-size: .88rem; }

.before { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.before__col { padding: 28px; border-radius: 22px; border: 1.5px solid var(--line); }
.before__col--now { border-color: var(--blue); background: var(--blue-wash); display: grid; gap: 18px; align-content: start; }
.before__steps { display: grid; gap: 12px; margin-top: 14px; }
.before__steps li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 1.02rem; }
.before__steps .mono { color: var(--ink-2); padding-top: .2em; }
.before__col:first-child li { color: var(--ink-2); }
.before__col:first-child li:last-child { color: #8a2a1e; }

/* ---------- Formatos: antes y después ---------- */
.layouts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.layouts__copy h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); }
.layouts__copy p { margin: 20px 0 26px; color: var(--ink-2); font-size: 1.1rem; max-width: 44ch; }
.compare { position: relative; aspect-ratio: 4 / 3.3; border-radius: 22px; overflow: hidden; background: var(--white); box-shadow: 0 40px 70px -46px rgba(0, 0, 0, .5); user-select: none; }
.doc { position: absolute; inset: 0; padding: 7% 7.5%; }
.doc--plain { font: 400 clamp(.56rem, .9vw, .76rem)/1.6 "Courier New", monospace; color: #222; background: #fff; }
.doc--brand { clip-path: inset(0 0 0 var(--x)); background: var(--white); color: var(--ink); font-size: clamp(.62rem, 1vw, .86rem); display: grid; align-content: start; gap: 1.6em; }
.doc__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1em; border-bottom: 3px solid var(--blue); }
.doc__logo { font: 700 2.3em/1 var(--display); letter-spacing: -.04em; color: var(--blue); }
.doc__logo::after { content: "."; color: var(--green); }
.doc__type { font: 500 1.1em var(--display); }
.doc__type b { font-weight: 700; }
.doc__meta { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 1em; }
.doc__meta small { display: block; color: var(--ink-2); font: 600 .78em var(--mono); text-transform: uppercase; }
.doc--brand table { width: 100%; border-collapse: collapse; }
.doc--brand th { text-align: left; padding: .6em 0; font: 600 .8em var(--mono); text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.doc--brand td { padding: .75em 0; border-bottom: 1px solid var(--mist-2); }
.doc--brand td:not(:first-child), .doc--brand th:not(:first-child) { text-align: right; }
.doc__total { justify-self: end; display: grid; justify-items: end; padding: 1em 1.4em; border-radius: .8em; background: var(--blue-wash); }
.doc__total small { color: var(--ink-2); }
.doc__total b { font: 700 1.8em var(--display); color: var(--blue-deep); }
.doc__foot { color: var(--ink-2); font-size: .9em; }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: var(--ink); pointer-events: none; }
.compare::before { content: "↔"; position: absolute; z-index: 3; top: 50%; left: var(--x); width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 1.1rem; pointer-events: none; }
.compare__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible ~ .compare__tag { outline: 2px solid var(--blue); }
.compare__tag { position: absolute; z-index: 2; bottom: 14px; padding: 6px 10px; border-radius: 8px; font: 600 .74rem var(--mono); background: var(--ink); color: var(--white); pointer-events: none; }
.compare__tag--l { left: 14px; }
.compare__tag--r { right: 14px; background: var(--blue); }

.honest { margin-top: 40px; padding: 22px 26px; border-left: 4px solid var(--blue); background: var(--blue-wash); border-radius: 0 16px 16px 0; max-width: 80ch; }

@media (max-width: 1020px) {
  .console__out, .layouts { grid-template-columns: 1fr; }
  .before { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .console__ask { flex-wrap: wrap; padding: 12px; }
  .console__ask .btn { width: 100%; }
  .bars__row { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; font-size: .86rem; }
  .before__steps li { grid-template-columns: 1fr; gap: 2px; }
  .doc__meta { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mapa de sistemas ---------- */
.flows { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6.4fr) minmax(0, 3fr); gap: 28px; align-items: start; }
.flows fieldset { margin: 0; padding: 0; border: 0; }
.flows legend { margin-bottom: 12px; font: 600 .8rem/1 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.flows__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.flows__chips button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 500; font-size: .95rem; transition: border-color .2s, background-color .2s, color .2s; }
.flows__chips button::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.flows__chips button:hover { border-color: var(--ink); }
.flows__chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.flows__chips button[aria-pressed="true"]::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--green); }
.flows__mode { display: flex; margin-top: 28px; padding: 4px; border-radius: 999px; background: var(--mist); }
.flows__mode button { flex: 1; padding: 12px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; transition: background-color .3s, color .3s; }
.flows__mode button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
[data-mode="auto"] .flows__mode button[aria-pressed="true"] { background: var(--green); color: var(--ink); }
.flows__count { margin-top: 22px; font: 500 1.3rem/1.3 var(--display); }
.flows__count b { font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; margin-right: 4px; color: #a23b2a; transition: color .3s; }
[data-mode="auto"] .flows__count b { color: var(--green-ink); }
.flows__stage { border-radius: 28px; background: var(--mist); padding: 18px 10px; transition: background-color .4s; }
[data-mode="auto"] .flows__stage { background: var(--ink); }
[data-mode="auto"] .flows__node text, [data-mode="auto"] .flows__node.is-on text { fill: #e6e9e7; }
[data-mode="auto"] .flows__node:not(.is-on) polygon { fill: #3d3d3d; stroke: #5a5a5a; }
.flows__map { width: 100%; height: auto; overflow: visible; }
.flows__link { fill: none; stroke: transparent; stroke-width: 2.5; transition: stroke .3s; }
.flows__link.is-on { stroke: #b8a9a0; stroke-dasharray: 6 7; }
[data-mode="auto"] .flows__link.is-on { stroke: var(--green); stroke-dasharray: none; stroke-width: 5; stroke-linecap: round; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.flows__tag { opacity: 0; transition: opacity .3s; }
.flows__tag.is-on { opacity: 1; }
.flows__tag rect { fill: #fbeee9; stroke: #d9a99c; }
.flows__tag text { font: 600 16px var(--mono); fill: #8a2a1e; text-anchor: middle; }
.flows__hub polygon { fill: var(--blue); }
.flows__hub text { font: 700 26px var(--display); fill: var(--white); text-anchor: middle; }
.flows__hub .flows__hub-sub { font: 500 12px var(--body); }
.flows__node { cursor: pointer; }
.flows__node polygon { fill: var(--white); stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 4; transition: fill .3s, stroke .3s; }
.flows__node text { font: 600 18px var(--body); fill: var(--ink-2); text-anchor: middle; }
.flows__ico { fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.flows__node.is-on .flows__ico { stroke: var(--white); }
[data-mode="auto"] .flows__node.is-on .flows__ico { stroke: var(--ink); }
.flows__packet { opacity: 0; pointer-events: none; }
.flows__packet:not(.is-on) { display: none; }
.flows__packet rect { fill: var(--white); stroke: var(--green-ink); stroke-width: 1.5; }
.flows__packet text { font: 600 17px var(--mono); fill: var(--ink); text-anchor: middle; }
.flows__node.is-on polygon { fill: var(--ink); stroke: var(--ink); stroke-dasharray: none; }
[data-mode="auto"] .flows__node.is-on polygon { fill: var(--green); stroke: var(--green-ink); }
.flows__node.is-on text { fill: var(--ink); }
.flows__list { display: grid; gap: 16px; }
.flows__list ul { display: grid; gap: 14px; }
.flows__list li { display: grid; gap: 3px; padding-top: 12px; border-top: 1.5px solid var(--line); animation: msg-in .45s var(--ease) both; }
.flows__list li b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.flows__list li span { color: var(--ink-2); font-size: .96rem; line-height: 1.5; }
[data-mode="auto"] .flows__list li { border-color: var(--green); }
.flows__list .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 1100px) {
  .flows { grid-template-columns: 1fr 1fr; }
  .flows__stage { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 720px) {
  .flows { grid-template-columns: 1fr; }
  .flows__node text { font-size: 22px; }
  .flows__tag { display: none; }
  .flows__hub text { font-size: 30px; }
}

/* ---------- Plano de oficina ---------- */
.status--card { padding: 18px 20px; border-radius: 18px; background: var(--white); box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .5); }
.office { display: grid; grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); gap: 28px; align-items: start; }
.office__plan { position: relative; border-radius: 28px; background: var(--mist); padding: 14px; }
.office__plan svg { width: 100%; height: auto; }
.room { fill: var(--white); stroke: var(--line-2); stroke-width: 2; transition: fill .3s; }
.room.is-on { fill: var(--green-wash); stroke: var(--green-ink); }
.room--tech { fill: #f3f6fb; }
.room--store { fill: #f6f8f2; }
.office__plan text { font: 600 11px var(--mono); letter-spacing: .06em; fill: #8b918d; }
.furn rect { fill: var(--mist); stroke: var(--line); }
.office__pins { position: absolute; inset: 14px; }
.pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; }
.pin__dot { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--white); border: 3px solid var(--white); box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .35); transition: background-color .25s, transform .3s var(--ease); }
.pin__dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ping 2.6s var(--ease) infinite; }
.pin__dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pin[aria-pressed="true"] .pin__dot { color: var(--ink); }
.pin__label { padding: 4px 9px; border-radius: 8px; background: var(--white); font-size: .8rem; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4); opacity: .92; transform: none; transition: opacity .2s, transform .3s var(--ease); pointer-events: none; }
.pin:hover .pin__label, .pin:focus-visible .pin__label, .pin[aria-pressed="true"] .pin__label { opacity: 1; transform: none; }
.pin:hover .pin__dot { transform: scale(1.15); }
.pin[aria-pressed="true"] .pin__dot { background: var(--green); transform: scale(1.2); }
.pin[aria-pressed="true"] .pin__dot::after { animation: none; opacity: 1; inset: -6px; }
.pin:nth-child(n+5) .pin__label { order: -1; }
.office__panel { display: grid; gap: 16px; padding: 30px; border-radius: 28px; background: var(--ink); color: var(--white); position: sticky; top: calc(var(--top-h) + 24px); }
.office__panel .kicker { color: #aab0ac; }
.office__panel h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.office__symptoms { margin: 0; padding: 0; border: 0; }
.office__symptoms > div { display: grid; gap: 8px; }
.sym { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #4c4c4c; cursor: pointer; transition: border-color .2s, background-color .2s; }
.sym input { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.sym:hover { border-color: #777; }
.sym:has(input:checked) { border-color: var(--green); background: #3c3c3c; }
.office__answer { padding-top: 16px; border-top: 1px solid #4c4c4c; display: grid; gap: 8px; min-height: 120px; }
.office__mode { justify-self: start; padding: 5px 10px; border-radius: 8px; font: 600 .78rem/1.2 var(--mono); background: var(--green); color: var(--ink); }
.office__mode[data-mode="site"] { background: var(--blue); color: var(--white); }
.office__mode[data-mode="both"] { background: var(--white); color: var(--ink); }
.office__answer p:last-child { color: #dfe3e0; }
.office__panel .btn { justify-self: start; }
@media (max-width: 1020px) { .office { grid-template-columns: 1fr; } .office__panel { position: static; } }
@media (max-width: 720px) {
  .pin__label { display: none; }
  .pin__dot { width: 34px; height: 34px; }
  .office__plan text { font-size: 14px; }
  .office__panel { padding: 24px 20px; }
}

/* ---------- Diagnóstico ---------- */
.dhero { padding: calc(var(--top-h) + 64px) 0 clamp(72px, 9vw, 120px); background: var(--white); }
.dhero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.dhero h1 { font-size: clamp(3.2rem, 7vw, 6.4rem); letter-spacing: -.035em; line-height: .95; }
.dhero__lead { margin-top: 24px; max-width: 38ch; font-size: clamp(1.12rem, 1.5vw, 1.3rem); color: var(--ink-2); }
.steps { display: grid; gap: 0; margin-top: 40px; border-top: 1.5px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps .num { padding-top: .35em; color: var(--green-ink); }
.steps b { font: 600 1.15rem/1.3 var(--display); }
.steps p { color: var(--ink-2); font-size: .98rem; }
.scope { margin-top: 26px; padding: 16px 18px; border-radius: 14px; background: #fbf4e6; font-size: .94rem; }
.builder { position: sticky; top: calc(var(--top-h) + 24px); display: grid; gap: 22px; padding: clamp(22px, 3vw, 34px); border-radius: 30px; background: var(--green); }
.builder__n { margin-bottom: 10px; font-weight: 600; color: rgba(51, 51, 51, .8); }
.builder__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.builder__chips button { padding: 9px 14px; border-radius: 999px; border: 1.5px solid rgba(51, 51, 51, .28); background: rgba(255, 255, 255, .55); font-weight: 500; font-size: .94rem; transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease); }
.builder__chips button:hover { border-color: var(--ink); background: var(--white); }
.builder__chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.builder__empty { font-size: .94rem; color: rgba(51, 51, 51, .75); }
.builder__preview { padding-top: 18px; border-top: 1.5px solid rgba(51, 51, 51, .2); }
.bubble { position: relative; max-width: 92%; margin-left: auto; padding: 12px 14px 8px; border-radius: 16px 4px 16px 16px; background: #dcf8c6; font-size: .95rem; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.bubble span { display: block; }
.bubble time { display: block; margin-top: 4px; text-align: right; font-size: .7rem; color: #6b716d; }
.builder__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.builder__actions .btn--green { background: var(--ink); color: var(--white); }
.builder__actions .btn--green:hover { background: var(--ink-deep); }
.builder .status { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .6); }
.builder .status.is-open .status__dot { background: var(--ink); }
.builder .status.is-open .status__dot::after { border-color: var(--ink); }
.formblock { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.formblock h2 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); }
.formblock > div > p { margin-top: 16px; color: var(--ink-2); max-width: 40ch; }
.formblock .lead { padding: 32px; border-radius: 26px; border: 1.5px solid var(--line); }
@media (max-width: 1020px) { .dhero__grid, .formblock { grid-template-columns: 1fr; } .builder { position: static; } }
@media (max-width: 720px) { .formblock .lead { padding: 22px 18px; } .bubble { max-width: 100%; } }

.pilot__out { display: grid; gap: 10px; }
.pilot__out-t { font-weight: 600; color: rgba(51, 51, 51, .75); }
.pilot__deliv { display: grid; gap: 6px; }
.pilot__deliv li { display: flex; align-items: center; gap: 10px; padding: 0; font-weight: 500; font-size: 1rem; animation: msg-in .45s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.pilot__deliv li::before { content: "◆"; font: 600 .7rem var(--mono); }
.pilot__track { gap: 28px; }
.pilot__phase { min-height: 0; }

/* ---------- Bloques "qué hacemos" propios de cada página ---------- */
.cmds { margin: 0; border-top: 1.5px solid var(--ink); }
.cmds__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8px 40px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.cmds__row:hover { background: linear-gradient(90deg, var(--blue-wash), transparent 70%); }
.cmds dt { display: grid; gap: 6px; font: 600 clamp(1.3rem, 2vw, 1.75rem)/1.15 var(--display); letter-spacing: -.02em; }
.cmds dt .mono { font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--blue); }
.cmds dt .mono::before { content: "> "; color: var(--green-ink); }
.cmds dd { margin: 0; color: var(--ink-2); align-self: center; max-width: 54ch; }

.cellgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.cellgrid__c { display: grid; gap: 12px; align-content: end; min-height: 300px; padding: clamp(28px, 4vw, 48px); }
.cellgrid__c h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); max-width: 16ch; }
.cellgrid__c p { max-width: 44ch; }
.cellgrid__c--1 { background: #4a4a4a; clip-path: polygon(0 0, 100% 0, 96% 100%, 0 92%); }
.cellgrid__c--2 { background: var(--blue); clip-path: polygon(4% 0, 100% 0, 100% 86%, 0 100%); }
.cellgrid__c--3 { background: #1f1f1f; clip-path: polygon(0 8%, 96% 0, 100% 100%, 0 100%); }
.cellgrid__c--4 { background: var(--green); color: var(--ink); clip-path: polygon(0 0, 100% 14%, 100% 100%, 4% 100%); }
.cellgrid__c .num { opacity: .8; }
.on-ink .cellgrid__c p { color: inherit; opacity: .88; }
.cellgrid--brand .cellgrid__c--1 { background: var(--green); color: var(--ink); }
.cellgrid--brand .cellgrid__c--2 { background: var(--blue); color: var(--white); }
.cellgrid--brand .cellgrid__c--3 { background: #4a4a4a; color: var(--white); }
.cellgrid--brand .cellgrid__c--4 { background: var(--mist); color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.split__c { display: grid; gap: 16px; align-content: start; padding: clamp(28px, 4vw, 52px); }
.split__c h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); max-width: 14ch; }
.split__c ul { display: grid; gap: 0; margin-top: 8px; }
.split__c li { padding: 14px 0; border-top: 1px solid currentColor; border-color: rgba(51, 51, 51, .2); font-size: 1.05rem; }
.split__c--remote { background: var(--green); color: var(--ink); clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); }
.split__c--remote .kicker { color: var(--ink); }
.split__c--site { background: var(--white); color: var(--ink); clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); padding-left: calc(6% + clamp(28px, 4vw, 52px)); }
.split__c--site .kicker { color: var(--blue); }
.split__also { margin-top: 32px; max-width: 60ch; font-size: 1.1rem; color: #d6dad7; }
@media (max-width: 860px) {
  .cmds__row, .split, .cellgrid { grid-template-columns: 1fr; }
  .cellgrid__c { min-height: 0; clip-path: none !important; }
  .split__c { clip-path: none !important; padding-left: clamp(24px, 6vw, 40px) !important; }
}

/* Plano en perspectiva: el piso se inclina y los equipos quedan de pie sobre él */
.office__plan { perspective: 1700px; overflow: hidden; padding: 40px 24px 56px; background: radial-gradient(120% 90% at 50% 0%, #fff, var(--mist) 70%); }
.office__floor { position: relative; transform: rotateX(42deg) rotateZ(-7deg) scale(.96); transform-style: preserve-3d; transform-origin: 50% 60%; transition: transform .8s var(--ease); }
.office__plan:hover .office__floor { transform: rotateX(36deg) rotateZ(-5deg) scale(.97); }
.office__floor svg { filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .16)); }
.office__floor .room { stroke: var(--ink); stroke-width: 3; }
.office__floor .office__pins { inset: 0; transform-style: preserve-3d; }
.office__floor .pin { transform: translate(-50%, -100%) rotateZ(7deg) rotateX(-42deg); transform-origin: 50% 100%; flex-direction: column; gap: 6px; }
.office__floor .pin::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 2px; height: 14px; margin-left: -1px; background: var(--ink); }
.office__floor .pin__label { order: -1; }
.office__plan:hover .office__floor .pin { transform: translate(-50%, -100%) rotateZ(5deg) rotateX(-36deg); }
@media (max-width: 720px) {
  .office__plan { padding: 24px 6px 36px; }
  .office__floor { transform: rotateX(32deg) rotateZ(-4deg) scale(.98); }
  .office__floor .pin { transform: translate(-50%, -100%) rotateZ(4deg) rotateX(-32deg); }
}
@media (prefers-reduced-motion: reduce) { .office__plan:hover .office__floor { transform: rotateX(42deg) rotateZ(-7deg) scale(.96); } }

/* ---------- Miniaturas del héroe ---------- */
.phero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.phero h1 { font-size: clamp(2.7rem, 4.5vw, 4.5rem); }
.phero__side { justify-items: stretch; gap: 26px; }
.mini { display: grid; gap: 12px; width: 100%; max-width: 440px; justify-self: end; padding: 16px; border-radius: 26px; text-decoration: none; color: var(--ink); background: var(--white); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .55); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.mini:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .6); }
.mini__foot { display: flex; justify-content: space-between; gap: 12px; font-size: .74rem; color: var(--ink-2); }
.mini__foot .mono { font-size: .72rem; }
.phero__side .phero__note { justify-self: end; max-width: 440px; width: 100%; }

/* teléfono */
.mini--phone { background: #eef1ef; padding: 0; overflow: hidden; border: 6px solid var(--ink); }
.mini__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ink); color: var(--white); }
.mini__bar b { display: block; font-size: .92rem; }
.mini__bar small { display: block; font-size: .76rem; color: #cfd3d0; }
.mini__av { width: 30px; height: 30px; border-radius: 50%; background: #474747 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M9 31 L20 8 L31 31 L26 31 L20 18 L14 31 Z' fill='%238bc34a'/%3E%3C/svg%3E") center / 20px no-repeat; }
.mini__thread { display: grid; gap: 8px; padding: 14px 12px; min-height: 150px; align-content: start; }
.mini__msg { max-width: 86%; padding: 9px 12px; border-radius: 13px; font-size: .9rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.mini__msg--out { justify-self: end; background: #dcefc4; border-top-right-radius: 4px; }
.mini__msg--in { justify-self: start; background: var(--white); border-top-left-radius: 4px; }
.mini__typing { display: none; gap: 4px; padding: 12px 14px; }
.mini__typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa09c; animation: dots 1s infinite; }
.mini__typing i:nth-child(2) { animation-delay: .15s; } .mini__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { transform: translateY(-4px); opacity: .5; } }
.mini--phone.is-q [data-mini-q], .mini--phone.is-a [data-mini-a], .mini--phone.is-done .mini__msg:not(.mini__typing) { opacity: 1; transform: none; }
.mini--phone.is-typing .mini__typing { display: flex; opacity: 1; transform: none; }
.mini--phone .mini__foot { padding: 0 14px 12px; }

/* consola */
.mini--console { background: var(--ink); color: var(--white); padding: 20px; }
.mini__ask { display: block; min-height: 2.9em; font-size: .9rem; line-height: 1.45; color: #e9ece9; }
.mini__prompt { color: var(--green); }
.mini__caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--green); animation: blink 1s steps(2) infinite; }
.mini__ans { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid #4a4a4a; }
.mini__row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; font-size: .86rem; }
.mini__row i { height: 10px; border-radius: 3px; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); width: calc(var(--w) * 100%); transition: transform .8s var(--ease); }
.mini__row:first-child i { background: var(--green); }
.mini__row b { font-size: .82rem; opacity: 0; transition: opacity .4s .3s; }
.mini--console.is-ans .mini__row i, .mini--console.is-done .mini__row i { transform: scaleX(1); }
.mini--console.is-ans .mini__row:nth-child(2) i { transition-delay: .1s; } .mini--console.is-ans .mini__row:nth-child(3) i { transition-delay: .2s; }
.mini--console.is-ans .mini__row b, .mini--console.is-done .mini__row b { opacity: 1; }
.mini--console .mini__foot { color: #a6aca8; }

/* flujo */
.mini--flow { background: #2a2a2a; color: var(--white); }
.mini--flow svg { width: 100%; height: auto; }
.mini__link { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; }
.mini__node polygon { fill: #474747; stroke: #5d5d5d; }
.mini__node--hub polygon { fill: var(--blue); stroke: var(--blue); }
.mini__node text { font: 600 15px var(--body); fill: #e3e6e4; text-anchor: middle; }
.mini__node--hub text { font: 700 22px var(--display); fill: var(--white); }
.mini__node--hub .mini__sub { font: 500 12px var(--body); }
.mini__packet rect { fill: var(--white); stroke: var(--green); stroke-width: 2; }
.mini__packet text { font: 600 13px var(--mono); fill: var(--ink); text-anchor: middle; }
.mini--flow .mini__foot { color: #b9beba; }
.mini--flow .mini__foot b { color: var(--green); }

/* plano */
.mini--plan { background: var(--white); perspective: 900px; overflow: hidden; }
.mini__floor { position: relative; display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 210px; margin: 8px 6px 0; border: 3px solid var(--ink); background: var(--white); transform: rotateX(40deg) rotateZ(-6deg); transform-style: preserve-3d; box-shadow: 0 20px 22px -14px rgba(0, 0, 0, .3); }
.mini__room { padding: 6px 8px; border: 1.5px solid var(--line-2); font: 600 .62rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: #8b918d; }
.mini__room--tech { background: #f3f6fb; }
.mini__dev { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--ink); border: 3px solid var(--white); }
.mini__dev--alert { background: var(--green); box-shadow: 0 0 0 0 rgba(139, 195, 74, .6); animation: alert 1.4s infinite; }
@keyframes alert { 70% { box-shadow: 0 0 0 14px rgba(139, 195, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 195, 74, 0); } }
.mini__ticket { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--white); font-size: .88rem; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.mini__ticket.is-in, .mini--plan.is-done .mini__ticket { opacity: 1; transform: none; }
.mini__ticket em { font-style: normal; color: var(--green); font-weight: 600; }
.phero--mist .status--card { justify-self: end; max-width: 440px; width: 100%; }

@media (max-width: 1020px) {
  .phero__grid { grid-template-columns: 1fr; }
  .mini, .phero__side .phero__note, .phero--mist .status--card { justify-self: start; }
}
@media (max-width: 720px) {
  .mini { max-width: none; }
  .mini__row { grid-template-columns: 100px 1fr auto; }
}
.mini__ico { fill: none; stroke: #cfd3d0; stroke-width: 2.4; stroke-linejoin: round; }

/* Plano: solo la etiqueta del equipo elegido (o el que se señala); salas legibles; muebles con volumen */
.office__floor .pin__label { opacity: 0; transform: translateY(4px); }
.office__floor .pin:hover .pin__label, .office__floor .pin:focus-visible .pin__label, .office__floor .pin[aria-pressed="true"] .pin__label { opacity: 1; transform: none; }
.office__floor .pin:hover, .office__floor .pin[aria-pressed="true"] { z-index: 3; }
.office__plan text { font-size: 15px; fill: #6f7571; }
.furn rect { fill: var(--white); stroke: #9aa19c; stroke-width: 1.5; }
.office__floor .furn { filter: drop-shadow(0 5px 0 #c9d0cb); }
@media (max-width: 720px) { .office__plan text { font-size: 20px; } }

.flows__stage { position: relative; }
.flows__mode--stage { display: none; }
@media (max-width: 720px) {
  .flows__panel .flows__mode { display: none; }
  .flows__mode--stage { display: flex; position: sticky; top: calc(var(--top-h) + 8px); z-index: 3; margin: 0 6px 6px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); }
  [data-mode="auto"] .flows__mode--stage { background: rgba(70, 70, 70, .92); color: var(--white); }
  .flows__node text { font-size: 24px; }
}

/* Las dos versiones comparten la misma retícula: al deslizar, cada fila coincide */
.doc { display: grid; align-content: start; gap: 1.6em; font-size: clamp(.62rem, 1vw, .86rem); }
.doc--plain { font-family: "Courier New", monospace; color: #222; background: #fbfbf7; line-height: 1.5; }
.doc--plain .doc__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1em; border-bottom: 1px dashed #777; }
.doc--plain .doc__logo { font-weight: 700; font-size: 1em; }
.doc--plain .doc__type { font-weight: 700; }
.doc--plain .doc__meta { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 1em; }
.doc--plain .doc__meta small { display: block; font-weight: 700; }
.doc--plain table { width: 100%; margin: 0; border-collapse: collapse; }
.doc--plain th, .doc--plain td { padding: .6em .3em; border: 1px solid #999; text-align: left; font-weight: 400; }
.doc--plain td:not(:first-child), .doc--plain th:not(:first-child) { text-align: right; }
.doc--plain .doc__total { justify-self: end; display: grid; justify-items: end; padding: 1em 0; }
.doc--plain .doc__total b { font-weight: 700; font-size: 1.2em; }
.compare__note { position: absolute; z-index: 2; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .92); font: 500 .72rem var(--mono); color: var(--ink-2); pointer-events: none; white-space: nowrap; }
.doc__foot { padding-bottom: 2.4em; }
.doc--plain .doc__logo { font: 700 1em/1.2 "Courier New", monospace; letter-spacing: 0; color: #222; }
.doc--plain .doc__logo::after { content: none; }
.doc--plain .doc__type { font: 700 1em "Courier New", monospace; }
.doc--plain .doc__total { background: none; }
.doc--plain .doc__total small { color: #222; }
.doc--plain .doc__total b { font: 700 1.2em "Courier New", monospace; color: #222; }
.doc .doc__head { height: 3.6em; align-items: flex-end; }
.doc .doc__meta { min-height: 3.4em; }
.doc th { height: 2.6em; vertical-align: middle; }
.doc td { height: 3em; vertical-align: middle; }
.doc .doc__total { min-height: 4.6em; }
@media (max-width: 720px) { .flows__stage { padding-top: 70px; } .flows__mode--stage { position: sticky; margin-top: -60px; } }

.office__floor .pin { flex-direction: row; align-items: center; gap: 8px; }
.office__floor .pin--left { flex-direction: row-reverse; }
.office__floor .pin__label { order: 0; }
.office__floor .pin::after { display: none; }
.office__floor .pin { transform: translate(-20px, -50%) rotateZ(7deg) rotateX(-42deg); transform-origin: 20px 50%; }
.office__floor .pin--left { transform: translate(calc(-100% + 20px), -50%) rotateZ(7deg) rotateX(-42deg); transform-origin: calc(100% - 20px) 50%; }
.office__plan:hover .office__floor .pin { transform: translate(-20px, -50%) rotateZ(5deg) rotateX(-36deg); }
.office__plan:hover .office__floor .pin--left { transform: translate(calc(-100% + 20px), -50%) rotateZ(5deg) rotateX(-36deg); }
@media (max-width: 720px) {
  .office__floor .pin { transform: translate(-17px, -50%) rotateZ(4deg) rotateX(-32deg); transform-origin: 17px 50%; }
  .office__floor .pin--left { transform: translate(calc(-100% + 17px), -50%) rotateZ(4deg) rotateX(-32deg); }
}
.mini__floor { margin: 10px 16px 0; }
.mini__room { font-size: .66rem; }
.mini__dev { width: 26px; height: 26px; margin: -13px; display: grid; place-items: center; color: var(--white); }
.mini__dev svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini__dev--alert { color: var(--ink); }
.doc--brand .doc__foot { text-align: right; justify-self: end; max-width: 60%; }

@media (min-width: 1021px) { .phero__grid { align-items: start; } .phero__side { padding-top: 64px; } .phero__grid > div { align-self: end; } }
@media (max-width: 1020px) {
  .phero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .phero__grid > div { display: contents; }
  .phero__crumb { order: 0; }
  .phero h1 { order: 1; }
  .phero__side { order: 2; margin-top: 26px; }
  .phero__lead { order: 3; }
  .phero__actions { order: 4; }
  .phero__side .phero__note { display: none; }
}
.office__floor .pin { transform: translate(-20px, -100%) rotateZ(7deg) rotateX(-42deg); transform-origin: 20px 100%; }
.office__floor .pin--left { transform: translate(calc(-100% + 20px), -100%) rotateZ(7deg) rotateX(-42deg); transform-origin: calc(100% - 20px) 100%; }
.office__plan:hover .office__floor .pin { transform: translate(-20px, -100%) rotateZ(5deg) rotateX(-36deg); }
.office__plan:hover .office__floor .pin--left { transform: translate(calc(-100% + 20px), -100%) rotateZ(5deg) rotateX(-36deg); }
@media (max-width: 720px) {
  .office__floor .pin { transform: translate(-17px, -100%) rotateZ(4deg) rotateX(-32deg); transform-origin: 17px 100%; }
  .office__floor .pin--left { transform: translate(calc(-100% + 17px), -100%) rotateZ(4deg) rotateX(-32deg); transform-origin: calc(100% - 17px) 100%; }
  .flows__stage { padding-top: 12px; }
  .flows__mode--stage { position: static; margin: 0 6px 10px; }
}
.office__floor .pin .pin__label { order: 0 !important; }

.flows__dot { display: none; fill: var(--green); stroke: var(--white); stroke-width: 3; }
.flows__packet.is-dot rect, .flows__packet.is-dot text { display: none; }
.flows__packet.is-dot .flows__dot { display: block; }
@media (max-width: 720px) {
  .flows__node:not(.is-on) { display: none; }
  .flows__node text { font-size: 28px; }
}

.mini__room { font-size: 0; }
.doc--plain .doc__total { justify-self: start; justify-items: start; }

@media (max-width: 720px) {
  .flows__packet rect, .flows__packet text { display: none; }
  .flows__packet .flows__dot { display: block; }
  .flows__stage::after { content: "- - -  línea punteada: alguien copia el dato a mano"; display: block; padding: 4px 12px 8px; font: 500 .74rem var(--mono); color: var(--ink-2); }
  [data-mode="auto"] .flows__stage::after { content: "●  cada punto es un dato que viaja solo"; color: #cfd3d0; }
}
.room.is-on + text, .office__floor .room.is-on { }
