/* The guides (doo.chat/ayuda): the hub and each guide's page, built by orchestrator/app/guides.py
   from site/guias/*.md. A guide shows first (the demonstration in the phone), then each step with
   the moment it talks about, in the app's own pieces (site.css, «the app, drawn»). site/guia.js
   plays the drawings; without it, or with reduced motion, each one is drawn at its end. */

main { --g-body: 18px; }
@media (min-width: 760px) { main { --g-body: 20px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--verde-hondo); }
.crumbs a:hover { text-decoration: underline; }
.q { white-space: nowrap; }

/* ───────────────────────────── a guide's top: the words and the phone */
.g-top { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.g-top .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1024px) { .g-top .wrap { grid-template-columns: minmax(0, 1fr) 340px; gap: 88px; } }
.g-top h1 { margin-top: 14px; font-size: clamp(42px, 7.4vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.0; text-wrap: balance; }
.g-top .lead { margin-top: 20px; max-width: 26em; font-size: clamp(19px, 2.3vw, 23px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.say { margin-top: 32px; max-width: 30em; }
.say-h { display: block; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.say .a-user { display: block; width: fit-content; max-width: 100%; margin-top: 10px; padding: 14px 20px; border-radius: 22px 22px 6px 22px; font-size: clamp(18px, 2vw, 20px); }
.facts { margin-top: 26px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 600; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { flex: none; width: 16px; height: 16px; color: var(--verde); }

/* the phone (story.css's, for a page that has only this one) */
.dev {
  --w: min(340px, 84vw);
  position: relative; box-sizing: content-box; width: calc(var(--w) - 20px); aspect-ratio: 390 / 844; margin: 0 auto;
  background: #fff; border: 10px solid var(--ink); border-radius: 46px; overflow: hidden;
  box-shadow: 0 50px 90px -42px rgba(20,52,46,.55);
}
.screen { position: absolute; inset: 0; border-radius: 36px; overflow: hidden; background: var(--crema); }
.rec { margin: 0; }
.dev-cap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-align: center; }
.ctl { flex: none; width: 34px; height: 34px; border-radius: 50%; padding: 0; cursor: pointer; display: none; place-items: center; border: 1.5px solid currentColor; background: transparent; color: var(--ink); transition: background .15s, color .15s; }
.demo .ctl { display: grid; }
.ctl:hover { background: var(--ink); color: var(--crema); }
.ctl svg { display: none; width: 14px; height: 14px; }
.ctl[data-state="pause"] .i-pause, .ctl[data-state="play"] .i-play, .ctl[data-state="again"] .i-again { display: block; }

/* ───────────────────────────── the sections */
.g-sec { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--rule); }
.g-sec h2 { font-size: clamp(32px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
.g-text > * + * { margin-top: 14px; }
.g-text > h2 + * { margin-top: 18px; }
.g-text > p:not(.a-user), .g-text li, .st-text > p { max-width: 32em; font-size: var(--g-body); line-height: 1.6; text-wrap: pretty; }
.g-text a, .st-text a, .tile a, .tbl a { color: var(--verde-hondo); font-weight: 700; }
.g-text a:hover, .st-text a:hover, .tile a:hover, .tbl a:hover { text-decoration: underline; }
.g-text b, .st-text b { font-weight: 700; }
.g-text .a-user { display: block; width: fit-content; max-width: 100%; margin-top: 18px; padding: 12px 18px; border-radius: 20px 20px 6px 20px; font-size: clamp(17px, 1.8vw, 19px); line-height: 1.42; }
.g-text ul { padding-left: 1.2em; }
.g-text ul li + li { margin-top: 8px; }
.g-text ol { list-style: none; padding: 0; counter-reset: paso; max-width: 36em; }
.g-text ol li { counter-increment: paso; position: relative; padding: 16px 0 17px 54px; border-top: 1px solid var(--rule); }
.g-text ol li:last-child { border-bottom: 1px solid var(--rule); }
.g-text ol li::before { content: counter(paso); position: absolute; left: 0; top: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--verde); color: #fff; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* the steps: words on one side, the moment on the other; stacked on a phone */
.steps { margin-top: clamp(36px, 5vw, 56px); padding: 0; list-style: none; display: grid; gap: clamp(56px, 8vw, 96px); }
.step { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .step:has(.shot) { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; } }
.st-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--verde); color: #fff; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 18px; font-size: clamp(25px, 3vw, 32px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.st-text > p { margin-top: 12px; }
.st-text > p + p { margin-top: 10px; }
.mk { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; margin: 0 .12em; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72em; font-weight: 800; vertical-align: .14em; font-variant-numeric: tabular-nums; }

/* a section of words beside its picture */
.g-two { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .g-two { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; } }

/* a moment: the app's own pieces, large, on a deeper crema; sized from its own width */
.shot { position: relative; container-type: inline-size; margin: 0; padding: clamp(22px, 5cqw, 34px); border-radius: 28px; background: color-mix(in srgb, var(--ink) 5%, var(--crema)); }
.shot > .moment { display: flex; flex-direction: column; gap: .9em; font-size: min(16.5px, calc(100cqw / 19.5)); line-height: 1.45; font-weight: 500; color: var(--ink); }
.shot .a-user { align-self: flex-end; }
.shot .a-think { align-self: flex-start; }
.shot .a-text p { line-height: 1.5; }
.a-text ul, .a-text ol { margin: .6em 0 0; padding-left: 1.25em; }
.a-text ul { list-style: disc; }
.a-text ol { list-style: decimal; }
.a-text :is(ul, ol):first-child { margin-top: 0; }
.a-text :is(ul, ol) + p { margin-top: .6em; }
.a-text li + li { margin-top: .35em; }
.a-text b { font-weight: 700; }
.a-text .a-url { color: var(--verde-hondo); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--verde) 40%, transparent); text-underline-offset: 2px; }
.shot .a-comp { margin: 0; }
.shot .a-card { box-shadow: 0 18px 40px -26px rgba(20,52,46,.35); }
.shot .a-chips { padding: 0; flex-wrap: wrap; white-space: normal; }
/* pieces that take turns in one place (the status, then Doo's words; the typing, then the placeholder) */
.swap, .shot .a-field { display: grid; }
.swap > *, .shot .a-field > * { grid-area: 1 / 1; }
.swap > .a-think { justify-self: start; align-self: start; }
.swap > .a-user { justify-self: end; }
/* still: a moment is its end, and what leaves takes no room */
html:not(.demo) .shot [data-off] { display: none; }
.again { position: absolute; right: 12px; bottom: 12px; display: none; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(20,52,46,.15); opacity: 0; transition: opacity .3s; }
.again svg { width: 15px; height: 15px; }
.demo .again { display: grid; }
.shot.ended .again { opacity: 1; }
/* the numbered marks on a card: what the step asks you to look at */
[data-mk] { position: relative; }
[data-mk]::before { content: attr(data-mk); position: absolute; left: -2.55em; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; background: var(--ink); color: #fff; font-size: .78em; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 .25em color-mix(in srgb, var(--ink) 5%, var(--crema)); }
.shot.marks { padding-left: clamp(40px, 10cqw, 56px); }
.a-fields dt[data-mk]::before { left: -2.95em; }
/* a list's row in a card (DataTable.tsx on a phone): the name, then its figures */
.a-row + .a-row { padding-top: .75em; border-top: 1px solid var(--border); }
.a-row b { display: block; font-size: .95em; font-weight: 700; }
.a-row dl { margin-top: .25em; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: auto auto; grid-auto-flow: column; column-gap: .6em; align-items: center; }
.a-row dt { font-size: .78em; color: var(--muted); }
.a-row dd { font-size: .95em; font-variant-numeric: tabular-nums; }
/* a card's line with a description and an amount (a gasto's) gives the words the room */
.a-line dl.c2 { grid-template-columns: 2fr 1fr; }

/* a screen of Configuración (SettingsView.tsx, MembersSection.tsx), drawn: the tabs, then a
   section's card with its heading, its button, the invite form, the members and the invitations.
   Its pieces come and go in their place (s-x): the form opens where it is, as in the app. */
.s-tabs-w { flex: none; }
.s-tabs { display: flex; gap: 1.45em; padding: 0 1.15em; border-bottom: 1px solid var(--border); color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; }
.s-tabs span { position: relative; padding: .8em 0 .7em; }
.s-tabs span.on { color: var(--ink); font-weight: 700; }
.s-tabs span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--verde); }
.s-body { padding: .9em .85em 1.1em; }
.s-card { display: flex; flex-direction: column; gap: .8em; padding: 1.05em 1.1em; border: 1px solid var(--border); border-radius: .8em; background: #fff; box-shadow: 0 1px 3px rgba(20,52,46,.06); }
.s-head { display: flex; align-items: center; justify-content: space-between; gap: .6em; min-height: 2.35em; }
.s-label { font-size: .8em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
p.s-label { margin-top: .4em; }
.s-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 2.3em; padding: .3em .95em; border: 1px solid var(--border); border-radius: .6em; background: #fff; color: var(--muted); font-size: .92em; font-weight: 700; white-space: nowrap; }
.s-btn.yes { background: var(--verde); border-color: var(--verde); color: #fff; }
.s-btn.press::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; border: 2px solid rgba(255,255,255,.95); animation: tap .7s var(--out) both; }
.s-form { display: flex; flex-wrap: wrap; align-items: center; gap: .55em; }
.s-input { flex: 1 1 100%; min-height: 2.55em; display: flex; align-items: center; padding: .4em .85em; border: 1.5px solid var(--verde-claro); border-radius: .6em; background: #fff; overflow: hidden; white-space: nowrap; }
.s-ph { color: var(--muted); }
.s-select { display: inline-flex; align-items: center; gap: .5em; padding: .3em .55em .3em .7em; border: 1px solid var(--border); border-radius: .6em; background: #fff; color: var(--ink); font-size: .92em; white-space: nowrap; }
.s-select::after { content: ""; width: .42em; height: .42em; margin-top: -.2em; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
.s-member { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5em .8em; padding-top: .8em; border-top: 1px solid var(--border); }
.s-who { grid-column: 1 / -1; min-width: 0; }
.s-who b { display: block; font-weight: 700; }
.s-who b i { font-style: normal; font-weight: 600; color: var(--muted); }
.s-who small { display: block; font-size: .88em; color: var(--muted); overflow-wrap: anywhere; }
.s-member > .bdg { justify-self: end; }
.s-seen { font-size: .88em; color: var(--muted); }
.s-acts { justify-self: end; display: flex; gap: .4em; }
.s-inv { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .6em .8em; border: 1px solid var(--border); border-radius: .7em; background: var(--crema); }
.s-inv b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.s-inv small { display: block; font-size: .88em; color: var(--muted); }
/* in a step's picture the screen sits on the picture's ground, its tabs over the card */
.shot > .s-moment { gap: 0; }
.shot > .s-moment .s-tabs { padding: 0 .2em; }
.shot > .s-moment .s-tabs-w { margin-bottom: .9em; }
.demo .s-x[data-t]:not(.on), .demo .s-x[data-off]:not(.on), html:not(.demo) .s-x[data-off] { display: none; }
.demo .moment .s-x[data-t].on { animation: in .45s var(--out) both; }
.a-card .a-kpi b { font-size: 1.6em; }
.a-kpi i.pill { justify-self: start; margin-top: .2em; font-style: normal; font-size: .8em; }

/* «Para cobrar hoy» (OutboxCard): a message for each customer, sent from the person's WhatsApp */
.a-ob { gap: .7em; }
.a-ob ol { list-style: none; margin: 0; padding: 0; display: grid; }
.ob-row { display: grid; gap: .55em; padding: .85em 0; border-bottom: 1px solid var(--border); }
.ob-row:first-child { padding-top: .2em; }
.ob-row:last-child { border-bottom: 0; padding-bottom: .3em; }
.ob-head { display: flex; align-items: flex-start; gap: .6em; }
.ob-head p { flex: 1; min-width: 0; }
.ob-head b { display: block; font-size: .98em; font-weight: 700; }
.ob-head span { display: block; font-size: .84em; color: var(--muted); line-height: 1.4; }
.ob-edit { flex: none; font-size: .88em; font-weight: 600; color: var(--verde-hondo); }
.ob-text { padding: .65em .8em; border: 1px solid var(--border); border-radius: .8em; background: var(--crema); font-size: .93em; line-height: 1.5; }
.ob-acts { display: grid; }
.ob-acts .a-yes { gap: .5em; min-height: 2.8em; }
.ob-acts .a-yes svg { width: 1.1em; height: 1.1em; }
.ob-sent { display: flex; align-items: center; gap: .45em; min-height: 2.8em; color: var(--verde-hondo); font-size: .93em; font-weight: 700; }
.ob-sent svg { width: 1.1em; height: 1.1em; }
.ob-more { padding-top: .7em; border-top: 1px solid var(--border); font-size: .86em; color: var(--muted); }
.ob-left { font-size: .86em; font-weight: 600; color: var(--muted); }
.ob-foot { display: flex; padding-top: .7em; border-top: 1px solid var(--border); }
.ob-foot .a-no { flex: none; min-height: 2.6em; padding: .3em 1em; }

/* good to know: tiles */
.tiles { margin-top: 36px; display: grid; gap: 16px; }
@media (min-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; gap: 20px; } }
.tile { padding: 24px 26px 26px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.tile b { display: block; font-size: clamp(19px, 2vw, 21px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; }
.tile p { margin-top: 8px; font-size: calc(var(--g-body) - 1px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.notice { display: flex; gap: 14px; margin-top: 20px; padding: 20px 22px; border: 1px solid var(--coral-line); border-radius: 18px; background: var(--coral-tint); }
.notice svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--coral-tinta); }
.notice p { font-size: calc(var(--g-body) - 1px); line-height: 1.55; }
.notice p + p { margin-top: 8px; }
.notice a { color: var(--coral-tinta); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* a table (the roles): on a phone each row stacks */
.tbl { margin-top: 28px; overflow-x: auto; max-width: 52em; }
.tbl table { width: 100%; border-collapse: collapse; font-size: var(--g-body); line-height: 1.45; }
.tbl th { padding: 0 16px 12px 0; text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tbl td { padding: 16px 16px 16px 0; border-top: 1px solid var(--rule); vertical-align: top; text-wrap: pretty; }
.tbl td:first-child { font-weight: 800; }
.tbl tr:last-child td { border-bottom: 1px solid var(--rule); }
@media (max-width: 600px) {
  .tbl thead { display: none; }
  .tbl tr { display: block; padding: 14px 0 15px; border-top: 1px solid var(--rule); }
  .tbl tr:last-child { border-bottom: 1px solid var(--rule); }
  .tbl td { display: block; padding: 0; border: 0; }
  .tbl tr:last-child td { border: 0; }
  .tbl td + td { margin-top: 2px; color: var(--muted); }
}

/* related guides */
.rel { margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 760px) { .rel { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.rel a { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--ink); transition: border-color .15s, transform .15s var(--out); }
.rel a:hover { border-color: var(--verde); transform: translateY(-2px); }
.rel b { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.rel small { font-size: 16px; line-height: 1.5; color: var(--muted); }
.rel .go { margin-top: auto; padding-top: 6px; color: var(--verde-hondo); font-size: 15px; font-weight: 700; }

/* the close: when something did not go as the guide says */
.stuck { display: grid; gap: 18px 48px; align-items: center; }
@media (min-width: 820px) { .stuck { grid-template-columns: minmax(0, 1fr) auto; } }
.stuck h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.stuck p { margin-top: 10px; max-width: 34em; color: var(--muted); font-size: 18px; text-wrap: pretty; }
.stuck .btns { display: flex; flex-wrap: wrap; gap: 12px; }
section.band.g-close { padding: 64px 0; }

/* ───────────────────────────── the hub */
.g-hero { padding: clamp(40px, 6vw, 72px) 0 0; }
.g-hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.g-hero .lead { margin-top: 18px; max-width: 34em; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.find { position: relative; margin-top: 28px; max-width: 560px; }
.find input { width: 100%; min-height: 56px; padding: 0 16px 0 50px; border: 1px solid #879590; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 18px; }
.find input::placeholder { color: #6B7C77; }
.find svg { position: absolute; left: 17px; top: 18px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.find-count { margin-top: 10px; min-height: 1.5em; color: var(--muted); font-size: 15px; font-weight: 600; }
section.g-list { padding: 44px 0 88px; }
.cats { display: grid; gap: 48px 56px; }
@media (min-width: 860px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cat h2 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; }
.cat .rows { margin-top: 12px; }
.rows { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.rows a { display: block; padding: 15px 0 16px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.rows b { display: block; font-size: 18px; line-height: 1.3; transition: color .15s; }
.rows small { display: block; margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.rows a:hover b { color: var(--verde-hondo); }
.rows .pk { color: var(--verde-hondo); font-size: 13px; font-weight: 700; white-space: nowrap; }
.none { padding: 20px 0; font-size: 18px; color: var(--muted); }
.none b { color: var(--ink); }
/* a bar chart (ChartView.tsx) as a phone shows it: the bars in the app's azul, each with its
   short amount above it, the labels under the axis */
.a-chart { padding-top: .2em; }
.a-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 8.5em; border-bottom: 1px solid var(--border); }
.a-bars p { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; padding-top: 1.3em; }
.a-bars s { display: block; width: 66%; height: calc(var(--h) * .86); min-height: 3px; border-radius: 4px 4px 0 0; background: #126197; }
.a-bars i { font-style: normal; font-size: .74em; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: .3em; white-space: nowrap; }
.a-xl { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: .45em; font-size: .74em; font-weight: 500; color: var(--muted); text-align: center; white-space: nowrap; }
.a-xl span:last-child { text-align: right; }
/* a balance not yet due (the app's warning badge, ámbar) */
.pill.warn { background: #FBF0D9; color: #8C5500; }
.pill.info { background: #E4F0F9; color: #126197; }
.s-dato > b:has(.s-pen) { display: inline-flex; align-items: center; gap: .45em; }
.s-pen { display: inline-flex; color: var(--muted); font-style: normal; }
.s-pen svg { width: 1em; height: 1em; }

/* ───────────────────────────── batch 3: dictation, forms, the Panel, the voice mode */
/* dictation (Composer.tsx «voice-live»): while the mic is held, a strip over the box says what is
   heard; the mic itself turns coral. What it says takes turns in one place. */
.a-rec { flex: none; display: flex; align-items: center; gap: .6em; min-height: 2.35em; margin: .55em .85em 0; padding: .4em .95em; border-radius: 999px; background: #EEF1EC; color: var(--muted); font-size: .9em; }
.demo .a-rec:not(.on), html:not(.demo) .a-rec { display: none; }
.shot .a-rec { margin: 0; }
.a-dot { flex: none; width: .62em; height: .62em; border-radius: 50%; background: var(--coral); animation: rec 1.2s ease-in-out infinite; }
.a-rtx { flex: 1; min-width: 0; display: grid; }
.a-rtx > * { grid-area: 1 / 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.a-rtx .a-typed { color: var(--ink); }
.a-lvl { flex: none; width: 3.6em; height: .45em; border-radius: .3em; background: rgba(0,0,0,.08); overflow: hidden; }
.a-lvl i { display: block; width: 40%; height: 100%; background: var(--verde); animation: lvl 1.3s steps(1) infinite; }
.a-mic { position: relative; flex: none; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; color: var(--muted); }
.a-mic > svg, .a-mic > b svg { width: 1.2em; height: 1.2em; }
.a-mic > b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: #14342E; animation: rec 1.2s ease-in-out infinite; }
.demo .app .a-mic > b[data-t].on { animation: rec 1.2s ease-in-out infinite; }
.shot .a-tray { padding: 0; }
@keyframes rec { 0%, 100% { box-shadow: 0 0 0 0 rgba(252,133,85,.45); } 50% { box-shadow: 0 0 0 .5em rgba(252,133,85,0); } }
@keyframes lvl { 0% { width: 30%; } 18% { width: 72%; } 36% { width: 48%; } 54% { width: 88%; } 72% { width: 56%; } 90% { width: 36%; } }

/* a form's field (NegocioView.tsx and the sign-up, «auth-field»): its label, its box, its note;
   while it is typed in, the box takes the focus ring */
.s-field { display: grid; gap: .35em; }
.s-flabel { font-size: .88em; font-weight: 600; color: var(--muted); }
.s-box { position: relative; display: flex; align-items: center; min-height: 2.75em; padding: .45em .85em; border: 1px solid #879590; border-radius: .65em; background: #fff; color: var(--ink); white-space: nowrap; }
.s-box > .a-typed { overflow: hidden; text-overflow: ellipsis; }
.s-focus { position: absolute; inset: -1px; border: 2px solid var(--verde); border-radius: .65em; box-shadow: 0 0 0 .25em rgba(15,126,109,.14); pointer-events: none; }
.demo .s-field .s-focus[data-t].on { animation: none; }
.s-field small, .s-logo small, .s-swh small, .s-opt small { display: block; font-size: .84em; font-weight: 500; line-height: 1.4; color: var(--muted); }
/* the logo: its picture (a letter until there is one) and its button */
.s-logo { display: flex; align-items: center; gap: .9em; }
.s-logo-img { flex: none; display: grid; place-items: center; width: 2.5em; height: 2.5em; border: 1.5px solid var(--border); border-radius: .62em; background: #fff; color: var(--muted); font-size: 1.6em; font-weight: 700; }
.s-logo > div { display: grid; gap: .4em; justify-items: start; }
/* options (Configuración's «pref-option»): one chosen, its card tinted */
.s-elige { display: grid; gap: .45em; }
.s-opts { display: grid; gap: .5em; }
.s-opt { display: flex; align-items: flex-start; gap: .7em; padding: .75em .85em; border: 1px solid var(--border); border-radius: .65em; background: #fff; transition: border-color .2s ease, background-color .2s ease; }
.s-opt b { display: block; font-weight: 700; }
.s-opt:has(> .s-radio.sel:not(.s-x)), .demo .s-opt:has(> .s-radio.sel.on), html:not(.demo) .s-opt:has(> .s-radio.sel[data-t]) { border-color: var(--verde-claro); background: #E6F2EF; }
.s-radio { position: relative; flex: none; width: 1.2em; height: 1.2em; margin-top: .12em; border: 2px solid #879490; border-radius: 50%; background: #fff; }
.s-radio.sel { border-color: var(--verde); background: var(--verde); box-shadow: inset 0 0 0 .2em #fff; }
/* a switch (Configuración's «pref-toggle»), with its days and hour when it is on */
.s-sw { display: grid; gap: .65em; }
.s-sw + .s-sw, .s-confirm + .s-sw { padding-top: .8em; border-top: 1px solid var(--border); }
.s-swh { display: flex; align-items: center; justify-content: space-between; gap: .9em; }
.s-swh b { display: block; font-weight: 700; }
.s-tog { position: relative; flex: none; width: 2.9em; height: 1.75em; border-radius: 999px; background: #879490; }
.s-tog::before { content: ""; position: absolute; top: .19em; left: .19em; width: 1.37em; height: 1.37em; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.s-tog.sel { background: var(--verde); }
.s-tog.sel::before { transform: translateX(1.15em); }
.demo .s-sw .s-tog[data-t].on { animation: tog-bg .25s ease both; }
.demo .s-sw .s-tog.sel[data-t].on::before { animation: knob .25s var(--out) both; }
.demo .s-sw .s-tog:not(.sel)[data-t].on::before { animation: knob .25s var(--out) reverse both; }
.s-tog.press, .s-radio.press, .s-opt .press { filter: none; transform: none; }
.s-tog.press::after, .s-radio.press::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; border: 2px solid var(--verde); animation: tap .7s var(--out) both; }
.s-when { display: flex; flex-wrap: wrap; gap: .5em; }
@keyframes knob { from { transform: none; } to { transform: translateX(1.15em); } }
@keyframes tog-bg { from { filter: saturate(0) brightness(1.3); } }
/* a value to read, a note, and the card's main button (with its spinner and what is left after it) */
.s-dato { display: flex; align-items: center; justify-content: space-between; gap: .8em; }
.s-dato > span { font-size: .9em; color: var(--muted); }
.s-dato > b { font-weight: 700; text-align: right; }
.s-note { font-size: .88em; line-height: 1.45; color: var(--muted); }
.s-act { display: flex; flex-wrap: wrap; align-items: center; gap: .6em .9em; }
.s-btn.s-wide { min-height: 2.75em; padding: .4em 1.3em; font-size: .98em; }
.s-btn.s-wide > span { display: inline-flex; align-items: center; gap: .55em; }
.s-spin { flex: none; width: 1em; height: 1em; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.s-saved { display: inline-flex; align-items: center; gap: .4em; color: var(--verde-hondo); font-size: .92em; font-weight: 700; }
.s-saved svg { width: 1.1em; height: 1.1em; }
/* a preference and its select (Configuración's «pref-row», on a phone: the select under its words),
   a saved instruction and the box for a new one (NotesSection), a heading inside the card, the
   month's meter (BillingSection), a text button (the sign-in's «¿Olvidaste tu contraseña?») and the
   question a switch asks before it changes (the «pref-confirm») */
.s-pref { display: grid; gap: .55em; }
.s-pref + .s-pref, .s-sw + .s-pref, .s-pref + .s-sw { padding-top: .8em; border-top: 1px solid var(--border); }
.s-ptx { display: grid; gap: .2em; min-width: 0; }
.s-phead { display: flex; flex-wrap: wrap; align-items: center; gap: .2em .7em; }
.s-phead b { font-weight: 700; }
.s-ptx small { display: block; font-size: .84em; font-weight: 500; line-height: 1.4; color: var(--muted); }
.s-pick { position: relative; justify-content: space-between; width: 100%; min-height: 2.45em; font-weight: 600; }
.s-pick > .s-x { overflow: hidden; text-overflow: ellipsis; }
.s-pick.press::before, .s-link span.press::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; border: 2px solid var(--verde); animation: tap .7s var(--out) both; }
.s-swh .s-saved { margin-left: .6em; font-size: .85em; }
.s-swh b { display: inline; }
.s-noteit { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .5em .4em .5em .8em; border-radius: .65em; background: #eef1ec; font-size: .95em; line-height: 1.4; }
.s-del { flex: none; display: grid; place-items: center; width: 2em; height: 2em; color: var(--muted); }
.s-del svg { width: 1.05em; height: 1.05em; }
.s-add { display: flex; flex-wrap: wrap; gap: .55em; }
.s-add .s-box { flex: 1 1 100%; overflow: hidden; text-overflow: ellipsis; }
.s-label.s-sub { margin-top: .3em; }
.s-uso { display: grid; gap: .45em; }
.s-uline { display: flex; align-items: baseline; justify-content: space-between; gap: .7em; font-variant-numeric: tabular-nums; }
.s-uline b { flex: none; font-size: .85em; font-weight: 700; color: var(--muted); }
.s-track { display: block; height: 8px; border-radius: 999px; background: #eef1ec; overflow: hidden; }
.s-fill { display: block; height: 100%; border-radius: 999px; background: var(--verde-hondo); }
.s-fill.warn { background: #d97706; }
.s-fill.full { background: var(--rojo); }
.s-link { display: flex; justify-content: center; }
.s-link span { position: relative; padding: .5em; font-size: .9em; color: #7d8d88; text-decoration: underline; text-underline-offset: 3px; }
.s-confirm { display: grid; gap: .65em; padding: .8em .9em; border: 1px solid var(--verde-claro); border-radius: .8em; background: #E6F2EF; }
.s-confirm p { font-size: .95em; font-weight: 600; line-height: 1.45; color: var(--ink); }
.s-confirm .s-act { gap: .5em; }
/* «Ayuda»: the strip under the bar with «Mis solicitudes» (AyudaChat.tsx, as on a phone) */
.a-ayb { flex: none; display: flex; padding: .6em .85em 0; }
.a-ayb span { display: inline-flex; align-items: center; min-height: 2.1em; padding: .25em .85em; border: 1px solid var(--border); border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(20,52,46,.06); color: var(--verde-hondo); font-size: .88em; font-weight: 600; }
.shot .a-ayb { padding: 0 0 .1em; }
/* the sign-up and waiting screens (LoginScreen.tsx, GateScreen.tsx): no app bar, the brand on top */
.s-brand { display: flex; align-items: center; justify-content: center; gap: .55em; padding: .5em 0 .3em; }
.s-mark { flex: none; width: 2.6em; height: 2.6em; }
.s-mark svg { width: 100%; height: 100%; }
.s-brand b { font-size: 2.1em; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
/* … one white card on the crema (LoginScreen's «auth-card»): the brand, the two tabs as a
   segmented pair, the form; the button as wide as the form */
.s-authapp .a-flow, .shot > .s-authm { gap: 1.05em; padding: 1.5em 1.25em 1.3em; border: 1px solid var(--border); border-radius: 1.1em; background: #fff; box-shadow: 0 18px 40px -26px rgba(20,52,46,.35); }
.s-authapp .a-flow { margin: .9em .75em; }
.s-authapp .s-card, .s-authm .s-card { gap: .95em; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.s-authapp .s-card + .s-card, .s-authm .s-card + .s-card { padding-top: 1.05em; border-top: 1px solid var(--border); }
.s-authapp .s-tabs-w, .shot > .s-authm .s-tabs-w { margin: 0; }
.s-authapp .s-tabs, .s-authm .s-tabs { gap: 0; padding: .2em; border: 0; border-radius: 999px; background: #EEF1EC; }
.s-authapp .s-tabs span, .s-authm .s-tabs span { flex: 1; padding: .55em .4em; border-radius: 999px; font-size: .92em; text-align: center; }
.s-authapp .s-tabs span.on, .s-authm .s-tabs span.on { background: #fff; color: var(--verde-hondo); box-shadow: 0 1px 3px rgba(20,52,46,.14); }
.s-authapp .s-tabs span.on::after, .s-authm .s-tabs span.on::after { display: none; }
.s-authapp .s-head .s-label, .s-authm .s-head .s-label { font-size: 1.25em; font-weight: 800; letter-spacing: -0.015em; text-transform: none; color: var(--ink); }
.s-authapp .s-head, .s-authm .s-head { min-height: 0; }
.s-authapp .s-act .s-btn.s-wide, .s-authm .s-act .s-btn.s-wide { flex: 1 1 100%; min-height: 3em; padding-inline: .8em; }
.shot > .s-moment .s-brand { margin-bottom: .9em; }
.shot > .s-authm .s-brand { margin: 0; }
.shot > .s-moment .s-card + .s-card { margin-top: .9em; }
.shot > .s-authm .s-card + .s-card { margin-top: 0; }

/* the Panel (PanelView.tsx): its day, the decisions waiting (ámbar), then its cards */
.p-body { padding: .9em .85em 1.1em; }
.p-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6em; padding: 0 .15em; }
.p-head b { font-size: 1.55em; font-weight: 800; letter-spacing: -0.01em; }
.p-head p { font-size: .9em; color: var(--muted); }
.p-pend { padding: .85em .95em .95em; border: 1px solid #EBD3A6; border-radius: .85em; background: #FBF0D9; }
.demo .p-pend[data-off]:not(.on), html:not(.demo) .p-pend[data-off] { display: none; }
.p-ph { margin-bottom: .65em; font-size: .97em; font-weight: 700; color: #8C5500; }
.p-pend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; }
.p-row { display: flex; align-items: center; gap: .8em; min-height: 3.6em; padding: .6em .65em .6em .9em; border: 1px solid #EBD3A6; border-radius: .7em; background: #fff; }
.p-row p { flex: 1; min-width: 0; display: grid; gap: .12em; }
.p-row b { font-size: .95em; font-weight: 700; line-height: 1.35; }
.p-row small { overflow: hidden; font-size: .84em; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.p-go { position: relative; flex: none; display: grid; padding: .45em .85em; border-radius: .6em; background: var(--verde); color: #fff; font-size: .88em; font-weight: 700; }
.p-go > span { grid-area: 1 / 1; text-align: center; }
.p-go.press::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; border: 2px solid rgba(255,255,255,.95); animation: tap .7s var(--out) both; }
.p-pend li > .a-card { margin-top: .5em; }
.shot > .p-moment { gap: .9em; }
/* «Para cobrar hoy» (ChaseCard.tsx): who owes, biggest first, each with «Recordar» */
.a-ch ul { list-style: none; margin: .2em 0 0; padding: 0; }
.ch-row { display: flex; align-items: center; gap: .8em; padding: .75em 0; border-bottom: 1px solid var(--border); }
.ch-row:last-child { border-bottom: 0; }
.ch-who { flex: 1; min-width: 0; display: grid; gap: .15em; }
.ch-who > b { font-weight: 700; }
.ch-who span { font-size: .86em; line-height: 1.4; color: var(--muted); }
.ch-who span b { color: var(--rojo); font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-wa { flex: none; display: inline-flex; align-items: center; gap: .45em; min-height: 2.6em; padding: .45em 1em; border-radius: 999px; background: var(--verde); color: #fff; font-size: .9em; font-weight: 700; }
.ch-wa svg { width: 1.05em; height: 1.05em; }
.ch-more { margin-top: .4em; color: var(--verde-hondo); font-size: .9em; font-weight: 700; }

/* the voice mode in a step's picture: the docked screen on its own ground; Doo's face listens,
   then talks */
.v-moment .a-voz { display: flex; flex-direction: column; gap: 1em; padding: 1.2em 1.1em 1em; border: 1px solid var(--border); border-radius: 1.2em; background: var(--crema); }
.v-moment .v-sheet { overflow: visible; }
.v-face { position: relative; }
.v-face > i { position: absolute; width: 0; height: 0; }
.demo .v-face:has(> .v-hear.on) { animation: listen 1.6s ease-in-out infinite; }
.demo .v-face:has(> .v-talk.on) { animation: talk .45s ease-in-out infinite alternate; }
.a-kpi b.bad { color: var(--rojo); }
/* the Panel's figures (PanelView's «kpi-compact»): two to a row, smaller, without the change */
.p-body .a-card:has(> .a-kpi), .p-moment .a-card:has(> .a-kpi) { display: grid; grid-template-columns: 1fr 1fr; gap: .9em .8em; }
.p-body .a-card:has(> .a-kpi) > .a-h, .p-moment .a-card:has(> .a-kpi) > .a-h { grid-column: 1 / -1; }
.p-body .a-kpi, .p-moment .a-kpi { gap: .25em; }
.p-body .a-kpi b, .p-moment .a-kpi b { font-size: 1.3em; }
.p-body .a-kpi i.pill, .p-moment .a-kpi i.pill { display: none; }
/* the sign-up's hint under the tabs, centred as the app's «auth-hint» */
.s-authapp .s-tabs-w + .s-card > .s-note:first-child, .s-authm .s-tabs-w + .s-card > .s-note:first-child { text-align: center; }
/* a date or year token inside a chip is plain text of the chip, not a chip of its own */
.a-chips span span { padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; font-weight: inherit; }
/* a long value stays inside its card: one line, as the app's input, cut with an ellipsis */
.s-field { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.s-box { min-width: 0; }
.s-box > .a-typed, .s-box > span:not(.s-focus) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* a step's tabs keep every tab's name whole: tighter, and a fade where a narrow screen still cuts them, as the app's strip scrolls */
.shot > .s-moment .s-tabs { gap: 1.05em; font-size: .9em; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.shot > .s-authm .s-tabs { -webkit-mask-image: none; mask-image: none; font-size: inherit; }

/* A section's form (guides.py FORMS): how its steps and pictures sit, chosen by what it teaches */
.pt-n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-note h3, .cv-step h3 { margin-top: 12px; font-size: clamp(22px, 2.3vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.pt-note > p, .cv-step > p { margin-top: 8px; max-width: 26em; font-size: 17.5px; line-height: 1.55; text-wrap: pretty; }
.pt-note a, .cv-step a, .caso a, .ej-c a { color: var(--verde-hondo); font-weight: 700; }
/* fila: a short process, its steps side by side, each picture above its words */
.steps.fila { gap: 48px; }
.steps.fila .step { gap: 22px; align-items: start; }
.steps.fila .shot { order: -1; }
.steps.fila .st-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.steps.fila .st-n { width: 36px; height: 36px; font-size: 17px; }
.steps.fila h3 { margin-top: 0; font-size: clamp(21px, 2.2vw, 25px); }
.steps.fila .st-text > p { grid-column: 1 / -1; font-size: 17.5px; }
@media (min-width: 900px) {
  .steps.fila { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-template-rows: auto auto; gap: 26px 32px; }
  .steps.fila .step { grid-row: span 2; grid-template-rows: subgrid; grid-template-columns: none; gap: 26px; }
  .steps.fila .shot { display: grid; align-content: center; align-self: stretch; }
}
/* pantalla: one screen in the middle, its numbered parts explained around it, in turns */
.pantalla { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 8px; }
.pt-notes { display: contents; }
.pt-note { list-style: none; padding: 16px 0; }
@media (min-width: 1000px) {
  .pantalla { grid-template-columns: minmax(0, 1fr) minmax(0, 430px) minmax(0, 1fr); column-gap: 48px; row-gap: 0; align-items: center; }
  .pantalla > .shot { grid-column: 2; }
  .pt-note { max-width: 300px; }
  .pt-note:nth-child(odd) { justify-self: end; }
}
@media (max-width: 999px) {
  .pantalla { max-width: 560px; }
  .pt-note { grid-column: auto !important; grid-row: auto !important; }
  .pantalla > .shot { grid-row: auto !important; margin-bottom: 12px; }
}
/* casos: two or three ways side by side, with «o» between them */
.casos { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 28px; }
.caso { display: grid; gap: 24px; align-content: start; }
.cs-t h3 { font-size: clamp(25px, 3vw, 32px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.cs-t > p { margin-top: 12px; max-width: 30em; font-size: var(--g-body); line-height: 1.6; text-wrap: pretty; }
.cs-t .note { margin-top: 16px; }
.casos .o { justify-self: center; display: grid; place-items: center; }
.casos .o b { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--rule); border-radius: 50%; background: var(--crema); color: var(--muted); font-size: 17px; font-weight: 800; }
@media (min-width: 900px) {
  .casos { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 24px 28px; }
  .casos[style*="--n: 3"] { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); }
  .caso { grid-row: span 2; grid-template-rows: subgrid; }
  .caso > .shot { align-self: start; }
  .casos .o { grid-row: span 2; align-self: stretch; background: linear-gradient(var(--rule), var(--rule)) center / 1px 100% no-repeat; }
}
/* ejemplos: a wall of things to ask, each with what it brings */
.ejemplos { margin-top: clamp(32px, 4vw, 48px); padding: 0; list-style: none; display: grid; gap: 16px; }
.ejemplos li { display: grid; gap: 12px; justify-items: end; align-content: start; padding: 22px 22px 20px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.ejemplos .a-user { width: fit-content; max-width: 100%; padding: 11px 17px; border-radius: 20px 20px 6px 20px; font-size: 18px; line-height: 1.4; }
.ej-c { justify-self: stretch; font-size: 16.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
@media (min-width: 760px) { .ejemplos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .ejemplos { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 32px; } .ejemplos li:nth-child(3n+2) { translate: 0 32px; } }
/* conversación: one conversation held in place while its steps go by; the step in the middle of the
   screen lights its number in the conversation (guia.js) */
.conv { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 32px; }
.cv-steps { padding: 0; list-style: none; display: grid; gap: 32px; }
.cv-step { list-style: none; }
@media (min-width: 960px) {
  .conv { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 88px; align-items: start; }
  .conv > .shot { position: sticky; top: calc(var(--head, 64px) + 28px); }
  .cv-steps { padding: 12vh 0 34vh; gap: 0; }
  .cv-step { min-height: 38vh; }
  .conv.live .cv-step { opacity: .38; transition: opacity .3s; }
  .conv.live .cv-step.on { opacity: 1; }
  .conv [data-mk]::before { transition: background-color .25s, scale .25s; }
  .conv.live [data-mk].on::before { background: var(--verde); scale: 1.18; }
}
.shot .a-chips[data-mk] { overflow: visible; }
.s-box:not(:has(*)) { display: block; overflow: hidden; text-overflow: ellipsis; line-height: calc(2.75em - .9em - 2px); }
