/* Bombo Comunicación · estilos.
   Estructura de espacio de trabajo: barra lateral oscura y compacta, barra superior con buscador, contenido en blanco.
   Sobriedad: una sola tipografía (Poppins), casi todo en negro, blanco y gris, y un único acento (el amarillo de marca).
   Las cuatro puertas de cada lead se dibujan como la «o» del logotipo: un aro con su punto. */
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bombo-marca: #f8c223;                                   /* se cambia en Ajustes → Marca */
  --bombo-marca-suave: color-mix(in srgb, var(--bombo-marca) 26%, white);
  --bombo-marca-fuerte: color-mix(in srgb, var(--bombo-marca) 88%, black);
  --bombo-side: #16181d; --bombo-side-2: #21242b; --bombo-side-3: #2c3038; --bombo-side-text: #cfd2d7; --bombo-side-muted: #8b9098;
  --bombo-ink: #171a20; --bombo-ink-2: #5c5e62; --bombo-ink-3: #85888e;
  --bombo-bg: #fff; --bombo-bg-2: #f6f6f7; --bombo-bg-3: #ececee; --bombo-line: #e7e8ea; --bombo-line-2: #cfd1d5; --bombo-edge: #8a8d93;
  --bombo-ok: #0e7a3c; --bombo-ok-bg: #e4f3ea; --bombo-bad: #c5281c; --bombo-bad-bg: #fbe7e4;
  --bombo-focus: #1f6feb;
  --bombo-font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bombo-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --bombo-r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--bombo-font); font-weight: 400; color: var(--bombo-ink); background: var(--bombo-bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--bombo-focus); outline-offset: 2px; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.07rem; margin: 2.4rem 0 .9rem; }
h2.bombo-first { margin-top: 0; }
h3 { font-size: .93rem; margin: 1.3rem 0 .45rem; }
p { margin: 0 0 .8rem; }
strong, b { font-weight: 600; }
code, pre, .bombo-mono { font-family: var(--bombo-mono); font-size: .88em; }
pre { background: var(--bombo-bg-2); padding: .8rem 1rem; overflow: auto; border-radius: 6px; white-space: pre-wrap; word-break: break-all; margin: 0 0 .8rem; }
.bombo-skip { position: absolute; left: -999px; }
.bombo-skip:focus { left: .5rem; top: .5rem; background: var(--bombo-bg); padding: .5rem .8rem; z-index: 10; }
.bombo-hp { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.bombo-muted, td .bombo-muted, th .bombo-muted { color: var(--bombo-ink-2); font-size: .88em; font-weight: 400; }

/* --- Marco --- */
.bombo-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.bombo-side { background: var(--bombo-side); color: var(--bombo-side-text); padding: 12px 10px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
.bombo-side ul { list-style: none; margin: 0; padding: 0; }
.bombo-side li a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 30px; padding: 2px 10px; text-decoration: none; border-radius: 6px; font-size: .96rem; }
.bombo-side li a:hover { background: var(--bombo-side-2); color: #fff; }
.bombo-side li a[aria-current="page"] { background: var(--bombo-side-3); color: #fff; font-weight: 500; }
.bombo-ws { align-self: flex-start; display: inline-flex; align-items: center; padding: 8px 10px 6px; margin: 0 0 8px; text-decoration: none; color: #fff; border-radius: 6px; }
.bombo-ws:hover { background: var(--bombo-side-2); }
.bombo-brand-logo { height: 18px; width: auto; display: block; }
.bombo-brand-name { font-weight: 600; font-size: .95rem; }
.bombo-nav-group { font-size: .78rem; font-weight: 500; color: var(--bombo-side-muted); margin: 16px 10px 4px; letter-spacing: .02em; }
.bombo-count { font-size: .74rem; font-weight: 600; background: var(--bombo-marca); color: var(--bombo-ink); border-radius: 99px; padding: 0 7px; min-width: 20px; text-align: center; line-height: 18px; }
.bombo-who { margin-top: auto; padding: 12px 6px 0; display: flex; align-items: center; gap: 8px; font-size: .88rem; border-top: 1px solid var(--bombo-side-2); }
.bombo-who-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.bombo-linkbtn { font: inherit; font-size: .88rem; color: var(--bombo-side-muted); background: none; border: 0; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bombo-linkbtn:hover { color: #fff; }
.bombo-av { width: 28px; height: 28px; border-radius: 6px; background: var(--bombo-bg-3); color: var(--bombo-ink); display: inline-grid; place-items: center; font-size: .8rem; font-weight: 600; flex: none; }
.bombo-who .bombo-av { background: var(--bombo-marca); }
.bombo-work { min-width: 0; display: flex; flex-direction: column; }
.bombo-top { height: 52px; border-bottom: 1px solid var(--bombo-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; position: sticky; top: 0; background: var(--bombo-bg); z-index: 5; }
.bombo-top search { flex: 1; max-width: 520px; }
.bombo-top-search input { height: 34px; min-height: 34px; background: var(--bombo-bg-2); box-shadow: none; border-radius: 6px; font-size: .93rem; }
.bombo-top-state { display: flex; gap: 8px; }
.bombo-pill { font-size: .78rem; font-weight: 500; background: var(--bombo-bg-2); color: var(--bombo-ink-2); border-radius: 99px; padding: 3px 11px; text-decoration: none; white-space: nowrap; }
.bombo-pill:hover { background: var(--bombo-bg-3); color: var(--bombo-ink); }
.bombo-pill.bombo-bad { background: var(--bombo-bad-bg); color: var(--bombo-bad); }
main { padding: 28px 32px 72px; min-width: 0; max-width: 1360px; width: 100%; }
main:focus { outline: none; }
.bombo-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.bombo-sub { color: var(--bombo-ink-2); margin: .45rem 0 0; max-width: 68ch; }
.bombo-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.bombo-flash { padding: .7rem 1rem; border-radius: 6px; background: var(--bombo-bg-2); margin-bottom: 1rem; }
.bombo-flash.bombo-ok { background: var(--bombo-ok-bg); color: #08542a; }
.bombo-flash.bombo-err { background: var(--bombo-bad-bg); color: #8e1c13; }

/* --- Botones y formularios --- */
.bombo-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font: inherit; font-size: .93rem; font-weight: 500; background: var(--bombo-ink); color: #fff; border: 0; padding: 0 1.15rem; border-radius: var(--bombo-r); cursor: pointer; text-decoration: none; min-height: 36px; line-height: 1.2; white-space: nowrap; }
.bombo-btn:hover { background: #2a2e36; }
.bombo-btn.bombo-go { background: var(--bombo-marca); color: var(--bombo-ink); }
.bombo-btn.bombo-go:hover { background: var(--bombo-marca-fuerte); }
.bombo-btn.bombo-ghost { background: var(--bombo-bg-2); color: var(--bombo-ink); }
.bombo-btn.bombo-ghost:hover { background: var(--bombo-bg-3); }
.bombo-btn.bombo-danger { background: var(--bombo-bad-bg); color: var(--bombo-bad); }
.bombo-btn.bombo-danger:hover { background: var(--bombo-bad); color: #fff; }
.bombo-btn.bombo-small { min-height: 28px; padding: 0 .75rem; font-size: .84rem; }
.bombo-btn.bombo-wide { width: 100%; }
.bombo-btn:disabled { opacity: .5; cursor: progress; }
form.bombo-inline { display: inline; }
.bombo-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.05rem; max-width: 34rem; }
.bombo-field label, .bombo-check label { font-weight: 500; font-size: .88rem; color: var(--bombo-ink-2); }
.bombo-req { color: var(--bombo-bad); }
.bombo-hint { font-size: .84rem; color: var(--bombo-ink-2); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=month], input[type=time], input[type=datetime-local], input[type=tel], input[type=search], input:not([type]), select, textarea {
  font: inherit; font-size: max(1rem, 1em); color: var(--bombo-ink); background: var(--bombo-bg-2); border: 0; box-shadow: inset 0 -1px 0 var(--bombo-edge); border-radius: var(--bombo-r) var(--bombo-r) 0 0; padding: .45rem .7rem; width: 100%; min-height: 38px; }
input:hover, select:hover, textarea:hover { background: var(--bombo-bg-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--bombo-focus); outline-offset: 0; box-shadow: none; border-radius: var(--bombo-r); background: var(--bombo-bg); }
textarea { min-height: 5.5rem; resize: vertical; line-height: 1.5; }
input:user-invalid, select:user-invalid, textarea:user-invalid, input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { box-shadow: inset 0 -2px 0 var(--bombo-bad); }
/* Aviso de cada campo: aparece a la vez que la marca roja y siempre con texto, no solo con color */
.bombo-error { display: none; font-size: .88rem; font-weight: 500; color: var(--bombo-bad); }
.bombo-error::before { content: "▲ "; font-size: .7em; }
:is(input, select, textarea):user-invalid ~ .bombo-error, [aria-invalid="true"] ~ .bombo-error { display: block; }
.bombo-pass { display: flex; gap: .4rem; align-items: stretch; }
.bombo-pass input { flex: 1; min-width: 0; }
.bombo-pass .bombo-btn { min-height: 38px; }
.bombo-sheet .bombo-pass .bombo-btn { min-height: 48px; font-size: .88rem; }
.bombo-check .bombo-error { grid-column: 2; }
.bombo-check { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: start; margin-bottom: .9rem; max-width: 34rem; }
.bombo-check input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--bombo-ink); }
.bombo-check label { color: var(--bombo-ink); font-weight: 400; }
.bombo-check .bombo-hint { grid-column: 2; }
fieldset { border: 0; border-top: 1px solid var(--bombo-line); padding: 1.3rem 0 .4rem; margin: 0 0 1rem; min-width: 0; }
legend { font-weight: 600; font-size: .96rem; padding: 0 .8rem 0 0; }
.bombo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0 1rem; max-width: 54rem; }
.bombo-row .bombo-field { max-width: none; }
.bombo-filters { display: flex; gap: .7rem; flex-wrap: wrap; align-items: end; margin-bottom: 1.4rem; }
.bombo-filters .bombo-field { margin: 0; min-width: 9.5rem; }
details > summary { cursor: pointer; font-weight: 500; }

/* --- Tablas: filas con filete, sin caja --- */
.bombo-tbl { overflow: auto; max-width: 100%; margin-bottom: 1.2rem; }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--bombo-line); vertical-align: top; }
thead th { font-weight: 500; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--bombo-ink-3); border-bottom-color: var(--bombo-line-2); white-space: nowrap; padding-bottom: .5rem; background: var(--bombo-bg); position: sticky; top: 0; }
tbody th { font-weight: 500; }
tbody tr:hover { background: var(--bombo-bg-2); }
td.bombo-num, th.bombo-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td input, td select, td textarea { min-height: 32px; padding: .25rem .5rem; font-size: .93rem; }
td textarea { min-height: 4.2rem; min-width: 18rem; }
.bombo-empty { background: var(--bombo-bg-2); padding: 1.3rem 1.4rem; color: var(--bombo-ink-2); border-radius: 8px; max-width: 46rem; }

/* --- Etiquetas y puertas --- */
.bombo-badge { display: inline-block; font-weight: 500; font-size: .78rem; padding: 1px 8px; border-radius: var(--bombo-r); background: var(--bombo-bg-3); color: var(--bombo-ink); white-space: nowrap; }
.bombo-st-cualificado, .bombo-st-conversando, .bombo-st-agenda { background: var(--bombo-marca-suave); }
.bombo-st-agendada, .bombo-st-auditada, .bombo-st-propuesta, .bombo-st-cliente, .bombo-badge.bombo-ok { background: var(--bombo-ok-bg); color: #08542a; }
.bombo-st-descartado, .bombo-badge.bombo-ko { background: var(--bombo-bad-bg); color: #8e1c13; }
.bombo-gates { display: inline-flex; gap: 4px; vertical-align: middle; }
.bombo-gates i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bombo-line-2); background: var(--bombo-bg); }
.bombo-gates i.bombo-on { border-color: var(--bombo-ink); background: radial-gradient(circle, var(--bombo-marca) 0 42%, var(--bombo-bg) 48%); }
.bombo-gates i.bombo-fell { border-color: var(--bombo-bad); background: linear-gradient(135deg, transparent 42%, var(--bombo-bad) 42% 58%, transparent 58%); }
.bombo-score { font-weight: 600; font-variant-numeric: tabular-nums; }
.bombo-score.bombo-alto { color: var(--bombo-ok); } .bombo-score.bombo-medio { color: #8a5a00; } .bombo-score.bombo-bajo { color: var(--bombo-bad); }
.bombo-pts { font-weight: 600; } .bombo-pts.bombo-pos { color: var(--bombo-ok); } .bombo-pts.bombo-neg { color: var(--bombo-bad); }
.bombo-state { font-weight: 500; white-space: nowrap; } .bombo-state.bombo-good { color: var(--bombo-ok); } .bombo-state.bombo-bad { color: var(--bombo-bad); }

/* --- Cifras, tarjetas y listas --- */
.bombo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.4rem 0; margin-bottom: 2rem; }
.bombo-stat { padding: .2rem 1.4rem; border-left: 1px solid var(--bombo-line); display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.bombo-stat:first-child { border-left: 0; padding-left: 0; }
.bombo-stat-label { font-size: .84rem; color: var(--bombo-ink-2); }
.bombo-stat b { font-size: 1.9rem; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.bombo-stat-note { font-size: .8rem; color: var(--bombo-ink-3); min-height: 1.2em; }
a.bombo-stat:hover b { text-decoration: underline; text-decoration-color: var(--bombo-marca); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.bombo-ticket { display: block; text-decoration: none; padding: .55rem .5rem; border-bottom: 1px solid var(--bombo-line); border-radius: 0; }
a.bombo-ticket:hover { background: var(--bombo-bg-2); }
.bombo-ticket .bombo-t-name { font-weight: 500; display: block; overflow-wrap: anywhere; }
.bombo-ticket .bombo-t-meta { font-size: .82rem; color: var(--bombo-ink-2); display: flex; justify-content: space-between; gap: .5rem; margin-top: .2rem; align-items: center; }
.bombo-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 1fr); gap: 1.4rem; overflow-x: auto; padding-bottom: .6rem; align-items: start; }
.bombo-board section > h3 { margin: 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--bombo-ink); padding-bottom: .45rem; font-size: .84rem; font-weight: 500; }
.bombo-board section > h3 span { color: var(--bombo-ink-3); font-weight: 400; }
.bombo-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.4rem; align-items: start; }
.bombo-panel { border: 1px solid var(--bombo-line); border-radius: 8px; padding: 1.1rem 1.3rem; margin-bottom: 1.2rem; }
.bombo-panel > h2:first-child, .bombo-panel > h3:first-child { margin-top: 0; }
dl.bombo-data { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
dl.bombo-data dt { font-size: .84rem; color: var(--bombo-ink-2); }
dl.bombo-data dd { margin: 0; overflow-wrap: anywhere; }
.bombo-list { list-style: none; margin: 0; padding: 0; }
.bombo-list li { padding: .65rem 0; border-bottom: 1px solid var(--bombo-line); display: flex; gap: .8rem; justify-content: space-between; align-items: flex-start; }
.bombo-list li:last-child { border: 0; }
.bombo-when { font-size: .8rem; color: var(--bombo-ink-3); white-space: nowrap; font-weight: 400; }
.bombo-lvl-fallo { box-shadow: inset 3px 0 0 var(--bombo-bad); padding-left: .8rem !important; }

/* --- Actividad y conversación, como un canal --- */
.bombo-timeline, .bombo-feed { list-style: none; margin: 0; padding: 0; }
.bombo-timeline li { padding: .55rem 0 .55rem 1.1rem; border-bottom: 1px solid var(--bombo-line); position: relative; }
.bombo-timeline li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 7px; height: 7px; border-radius: 50%; background: var(--bombo-line-2); }
.bombo-timeline li.bombo-ev-puerta::before { background: var(--bombo-marca); box-shadow: 0 0 0 2px var(--bombo-ink); }
.bombo-timeline li.bombo-ev-salida::before { background: var(--bombo-bad); }
.bombo-timeline .bombo-when { display: block; }
.bombo-timeline .bombo-detail { white-space: pre-wrap; font-size: .88rem; color: var(--bombo-ink-2); margin: .15rem 0 0; }
.bombo-feed li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: .6rem 0; border-bottom: 1px solid var(--bombo-line); }
.bombo-feed .bombo-ev-puerta .bombo-av { background: var(--bombo-marca); } .bombo-feed .bombo-ev-firma .bombo-av { background: var(--bombo-ok-bg); color: var(--bombo-ok); } .bombo-feed .bombo-ev-salida .bombo-av { background: var(--bombo-bad-bg); color: var(--bombo-bad); }
.bombo-chat { max-height: 36rem; overflow-y: auto; border: 1px solid var(--bombo-line); border-radius: 8px; padding: 6px 0; display: flex; flex-direction: column-reverse; }
.bombo-chat-in { min-width: 0; }
.bombo-msg { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 7px 14px; }
.bombo-msg:hover { background: var(--bombo-bg-2); }
.bombo-msg .bombo-av { width: 32px; height: 32px; }
.bombo-msg.bombo-in .bombo-av { background: var(--bombo-marca); }
.bombo-msg.bombo-out .bombo-av { background: var(--bombo-side); color: #fff; }
.bombo-msg-head strong { font-size: .96rem; }
.bombo-msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.bombo-msg.bombo-email .bombo-msg-text { color: var(--bombo-ink-2); }
.bombo-msg.bombo-failed { box-shadow: inset 3px 0 0 var(--bombo-bad); }
.bombo-inbox { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
.bombo-inbox-list { list-style: none; margin: 0; padding: 0; max-height: 46rem; overflow-y: auto; }
.bombo-inbox-list a { display: block; padding: .55rem .7rem; text-decoration: none; border-radius: 6px; }
.bombo-inbox-list a:hover { background: var(--bombo-bg-2); }
.bombo-inbox-list a[aria-current] { background: var(--bombo-bg-3); }
.bombo-inbox-list .bombo-snip { display: block; font-size: .84rem; color: var(--bombo-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Agenda --- */
.bombo-week { display: grid; grid-template-columns: repeat(7, minmax(8.5rem, 1fr)); overflow-x: auto; border-top: 1px solid var(--bombo-line-2); }
.bombo-day { min-height: 10rem; padding: .7rem .6rem; border-right: 1px solid var(--bombo-line); }
.bombo-day:last-child { border-right: 0; }
.bombo-day.bombo-today { box-shadow: inset 0 3px 0 var(--bombo-marca); }
.bombo-day.bombo-off { background: var(--bombo-bg-2); }
.bombo-day h3 { margin: 0 0 .5rem; font-size: .84rem; font-weight: 500; display: flex; justify-content: space-between; color: var(--bombo-ink-2); }
.bombo-day.bombo-today h3 { color: var(--bombo-ink); }
.bombo-day .bombo-route { font-size: .74rem; font-weight: 500; background: var(--bombo-marca); color: var(--bombo-ink); padding: 0 .4rem; border-radius: 3px; }
.bombo-appt { display: block; text-decoration: none; background: var(--bombo-ok-bg); padding: .35rem .5rem; margin-bottom: .35rem; font-size: .84rem; border-radius: var(--bombo-r); }
.bombo-appt.bombo-pending { background: var(--bombo-marca-suave); }
.bombo-appt.bombo-block { background: var(--bombo-bg-3); }

/* --- Copiar código --- */
.bombo-copyable { display: flex; align-items: start; gap: .5rem; margin-bottom: 1rem; }
.bombo-copyable pre { flex: 1; margin: 0; min-width: 0; }
.bombo-copyable .bombo-copy { flex: none; position: relative; }
.bombo-copy-button { min-inline-size: 24px; min-block-size: 24px; }
.bombo-copy-button[data-copied] { background: var(--bombo-ok-bg); color: var(--bombo-ok); }
.bombo-copy-button[data-failed] { background: var(--bombo-bad-bg); color: var(--bombo-bad); }
.bombo-tip { position: absolute; inset-block-start: 100%; inset-inline-end: 0; margin-top: 4px; font-size: .78rem; color: var(--bombo-ink-2); white-space: nowrap; opacity: 0; transition: opacity .15s; }
.bombo-copy-button[data-copied] + .bombo-tip, .bombo-copy-button[data-failed] + .bombo-tip { opacity: 1; }

/* --- Embudo --- */
.bombo-flow { --bombo-flow-in: var(--bombo-marca); --bombo-flow-out: #9aa0a8; position: relative; background: var(--bombo-side); color: #fff; border-radius: 10px; padding: 18px 22px 14px; margin-bottom: 2.4rem; }
.bombo-flow-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .4rem; }
.bombo-flow-head h2 { margin: 0; font-size: .93rem; font-weight: 500; color: var(--bombo-side-text); }
.bombo-flow-toggle { background: var(--bombo-side-3); color: #fff; }
.bombo-flow-toggle:hover { background: #3a3f49; }
.bombo-flow-scroll { overflow-x: auto; }
.bombo-flow svg { display: block; width: 100%; min-width: 860px; height: auto; font-family: var(--bombo-font); }
.bombo-flow .bombo-ribbon { fill: rgb(255 255 255 / .10); stroke: rgb(255 255 255 / .30); stroke-width: 1; }
.bombo-flow .bombo-tick { stroke: rgb(255 255 255 / .16); stroke-width: 1; }
.bombo-flow .bombo-exit { fill: none; stroke: var(--bombo-flow-out); stroke-width: 1.25; opacity: .55; }
.bombo-flow .bombo-dot { stroke: var(--bombo-side); stroke-width: 1.5; }
.bombo-flow .bombo-hit { fill: transparent; }
.bombo-flow .bombo-stage { outline: none; cursor: default; }
.bombo-flow .bombo-stage:hover .bombo-hit, .bombo-flow .bombo-stage:focus-visible .bombo-hit { fill: rgb(255 255 255 / .05); }
.bombo-flow .bombo-stage:focus-visible .bombo-hit { stroke: #fff; stroke-width: 1.5; }
.bombo-flow .bombo-s-name { fill: var(--bombo-side-muted); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.bombo-flow .bombo-s-num { fill: #fff; font-size: 25px; font-weight: 500; }
.bombo-flow .bombo-s-pct { fill: var(--bombo-side-text); font-size: 12px; }
.bombo-flow .bombo-s-out { fill: var(--bombo-side-muted); font-size: 12.5px; }
.bombo-flow-legend { font-size: .82rem; color: var(--bombo-side-muted); margin: .3rem 0 0; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.bombo-flow-legend .bombo-key { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.bombo-flow-legend .bombo-key.bombo-in { background: var(--bombo-flow-in); } .bombo-flow-legend .bombo-key.bombo-out { background: var(--bombo-flow-out); margin-left: .9rem; }
.bombo-flow-empty { color: var(--bombo-side-text); padding: 2.4rem 0; max-width: 40rem; margin: 0; }
.bombo-flow-tip { position: absolute; z-index: 3; width: 250px; background: var(--bombo-bg); color: var(--bombo-ink); border-radius: 6px; padding: .7rem .85rem; box-shadow: 0 8px 28px rgb(0 0 0 / .35); pointer-events: none; font-size: .88rem; }
.bombo-flow-tip h3 { margin: 0 0 .35rem; font-size: .84rem; color: var(--bombo-ink-2); font-weight: 500; }
.bombo-flow-tip p { margin: 0; }
.bombo-flow-tip strong { font-size: 1.05rem; }
.bombo-meter-cell { min-width: 15rem; }
.bombo-meter { position: relative; display: inline-block; vertical-align: middle; width: calc(100% - 4.2rem); height: 8px; background: var(--bombo-bg-3); border-radius: 4px; overflow: clip; }
.bombo-meter .bombo-band { position: absolute; inset-block: 0; left: var(--bombo-lo); width: calc(var(--bombo-hi) - var(--bombo-lo)); background: var(--bombo-line-2); }
.bombo-meter .bombo-fill { position: absolute; inset-block: 0; left: 0; width: var(--bombo-v); background: var(--bombo-ink); border-radius: 0 4px 4px 0; transform-origin: left center; }
.bombo-meter-val { display: inline-block; width: 3.6rem; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bombo-bars { list-style: none; margin: 0; padding: 0; }
.bombo-bars li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(6rem, 40%) 2.2rem; gap: .9rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--bombo-line); }
.bombo-bar-track { height: 8px; }
.bombo-bar-track i { display: block; height: 100%; width: var(--bombo-v); min-width: 3px; background: var(--bombo-ink-2); border-radius: 0 4px 4px 0; transform-origin: left center; }
.bombo-bar-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes flow-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  .bombo-meter .bombo-fill, .bombo-bar-track i { animation: grow-x .7s cubic-bezier(.2, .7, .2, 1) both; }
  #flow.bombo-reveal .bombo-ribbon { animation: flow-reveal 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .bombo-btn, .bombo-side li a, .bombo-ticket, .bombo-radios label, .bombo-msg { transition: background-color .12s, color .12s; }
}

/* --- Diálogo de confirmación --- */
.bombo-dialog { border: 0; border-radius: 10px; padding: 1.4rem 1.5rem 1.2rem; inline-size: min(26rem, calc(100vw - 2rem)); color: var(--bombo-ink); background: var(--bombo-bg); box-shadow: 0 18px 50px rgb(0 0 0 / .28); }
.bombo-dialog h2 { margin: 0 0 .5rem; font-size: 1.07rem; }
.bombo-dialog p { margin: 0 0 1.2rem; color: var(--bombo-ink-2); }
.bombo-dialog .bombo-actions { justify-content: flex-end; }
.bombo-dialog:modal { overscroll-behavior: contain; }
.bombo-dialog::backdrop { background: rgb(22 24 29 / .55); overflow: hidden; overscroll-behavior: contain; }

/* --- Páginas públicas: una columna, mucho aire --- */
body.bombo-public { background: var(--bombo-bg); }
.bombo-sheet { max-width: 31rem; margin: 0 auto; padding: 28px 20px 72px; }
.bombo-sheet-brand { margin: 0 0 44px; min-height: 18px; }
.bombo-sheet-brand .bombo-brand-logo { height: 18px; }
.bombo-sheet h1 { font-size: 1.9rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: .9rem; }
.bombo-sheet .bombo-field { max-width: none; }
.bombo-sheet .bombo-field label, .bombo-radios legend { font-size: 1.07rem; font-weight: 500; color: var(--bombo-ink); }
.bombo-sheet input:not([type=checkbox]):not([type=radio]), .bombo-sheet select { min-height: 48px; }
.bombo-sheet .bombo-btn { min-height: 48px; font-size: 1rem; }
.bombo-lede { font-size: 1.07rem; color: var(--bombo-ink-2); white-space: pre-line; margin-bottom: 1.6rem; }
.bombo-trust { text-align: center; margin: .8rem 0 0; }
.bombo-todo li { margin-bottom: .9rem; }
.bombo-checks { list-style: none; padding: 0; font-size: .93rem; }
.bombo-checks .bombo-ok { color: var(--bombo-ok); } .bombo-checks .bombo-ko { color: var(--bombo-bad); font-weight: 600; }
.bombo-radios { border: 0; padding: 0; margin: 0 0 1.2rem; }
.bombo-radios legend { padding: 0; margin-bottom: .7rem; }
.bombo-radios label { display: flex; gap: .7rem; align-items: center; padding: .6rem .9rem; border-radius: var(--bombo-r); margin-bottom: .4rem; cursor: pointer; min-height: 50px; background: var(--bombo-bg-2); font-size: 1rem; font-weight: 400; color: var(--bombo-ink); box-shadow: inset 0 0 0 1px transparent; }
.bombo-radios label:hover { background: var(--bombo-bg-3); }
.bombo-radios label:has(input:checked) { background: var(--bombo-bg); box-shadow: inset 0 0 0 2px var(--bombo-ink); }
.bombo-radios label:has(input:focus-visible) { outline: 2px solid var(--bombo-focus); outline-offset: 2px; }
.bombo-radios input { width: 1.1rem; height: 1.1rem; accent-color: var(--bombo-ink); flex: none; }
.bombo-progress-wrap { margin: 0 0 1.8rem; display: flex; flex-direction: column; gap: .4rem; }
.bombo-progress-wrap label { font-size: .84rem; color: var(--bombo-ink-2); font-weight: 400; }
progress { appearance: none; border: 0 solid; overflow: clip; width: 100%; height: 4px; border-radius: 2px; background: var(--bombo-bg-3); display: block; }
progress::-webkit-progress-bar { background: transparent; }
progress::-webkit-progress-value { background: var(--bombo-ink); border-radius: 2px; transition: inline-size .3s; }
progress::-moz-progress-bar { background: var(--bombo-ink); border-radius: 2px; transition: inline-size .3s; }
form.bombo-steps.bombo-js .bombo-step-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1.4rem; }
form.bombo-steps.bombo-js .bombo-step-nav [data-next] { margin-left: auto; min-width: 9rem; }
form.bombo-onepage .bombo-step, form.bombo-steps:not(.bombo-js) .bombo-step { margin-bottom: 1.4rem; }
.bombo-slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: .5rem; margin-bottom: 1.4rem; }
.bombo-slotgrid button { font: inherit; font-weight: 500; font-size: 1rem; background: var(--bombo-bg-2); border: 0; border-radius: var(--bombo-r); padding: .7rem .4rem; cursor: pointer; min-height: 48px; }
.bombo-slotgrid button:hover { background: var(--bombo-marca); }
.bombo-lines { width: 100%; margin: 1rem 0; }
.bombo-lines td { padding: .9rem 0; }
.bombo-lines td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.bombo-report h2 { margin-top: 0; font-size: 1.5rem; } .bombo-report h3 { border-top: 1px solid var(--bombo-line); padding-top: 1rem; margin-top: 1.4rem; }
.bombo-login { max-width: 23rem; padding-top: 12vh; }
body.bombo-embed { background: transparent; }
body.bombo-embed .bombo-sheet { max-width: none; padding: 2px 2px 10px; }

@media (max-width: 900px) {
  .bombo-shell { grid-template-columns: 1fr; }
  .bombo-side { position: static; height: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; align-items: center; padding: 8px; gap: 4px; }
  .bombo-side ul { display: flex; gap: 2px; } .bombo-nav-group, .bombo-who-name { display: none; } .bombo-who { margin: 0; border: 0; padding: 0 6px; }
  .bombo-ws { margin: 0 6px 0 0; flex: none; } .bombo-side li a { white-space: nowrap; }
  .bombo-top { padding: 0 16px; position: static; } main { padding: 20px 16px 56px; }
  .bombo-cols, .bombo-inbox { grid-template-columns: 1fr; gap: 1.4rem; }
  .bombo-stat { padding: .2rem 1rem; }
}
@media print { .bombo-side, .bombo-top, .bombo-actions, .bombo-btn { display: none !important; } .bombo-shell { display: block; } }
/* Cifras de la página de métricas (mismo patrón que .bombo-stats) */
.bombo-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.4rem 0; margin-bottom: 1.6rem; }
.bombo-kpi { padding: .2rem 1.4rem; border-left: 1px solid var(--bombo-line); display: flex; flex-direction: column; }
.bombo-kpi:first-child { border-left: 0; padding-left: 0; }
.bombo-kpi b { font-size: 1.9rem; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.bombo-kpi span { font-size: .84rem; color: var(--bombo-ink-2); }
