/* keepasa business · keepasa.com/negocios/ (plan §32, fase 2, paso 12). Lo propio de estas páginas: la cabecera, el
   portátil con el panel, la conversación con el asistente que monta el panel, el chat del negocio en el móvil, las
   tarjetas y el piloto. Lo común (letras, colores, botones, el móvil hecho en HTML, las preguntas, el cierre y el pie)
   viene de style.css. Cada página pone el color de su industria en --acc (r, g, b). */

.biz { --nav: 68px; --acc: 194, 65, 12; }
.b-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.b-ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--acc), .12); color: rgb(var(--acc)); }
.b-ico .i { width: 22px; height: 22px; }
.b-soon { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* ---------- Cabecera ---------- */
.bnav { position: sticky; top: 0; z-index: 50; height: var(--nav); background: rgba(251,250,248,.9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.bnav.scrolled { border-color: rgba(28,25,23,.08); }
.bnav-in { max-width: 1240px; margin: 0 auto; height: 100%; padding: 0 32px; display: flex; align-items: center; gap: 24px; }
.bnav .brand { font-size: 30px; gap: 9px; }
.bnav .brand .sym { width: 36px; }
.bnav .brand small { align-self: flex-end; margin: 0 0 3px 1px; font-family: "Outfit", var(--sys); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.blinks { flex: 1; display: flex; justify-content: center; gap: 2px; font-size: 16px; font-weight: 500; }
.blinks a { padding: 8px 14px; border-radius: 999px; color: var(--ink2); transition: background .2s, color .2s; }
.blinks a:hover, .blinks a[aria-current] { color: var(--primary); background: rgba(194,65,12,.07); }
.blogin { font-weight: 600; font-size: 15.5px; color: var(--ink2); padding: 8px 4px; }
.blogin:hover { color: var(--primary); }
.bnav .pill { padding: 9px 18px; font-size: 15px; }
:is(.blinks a, .blogin, .b-card, .b-ind, .b-other):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Portada ---------- */
.b-hero { padding: 5vh 0 11vh; overflow: hidden; }
.b-hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.b-copy h1 { font-size: clamp(44px, 5.4vw, 86px); }
.b-copy h1.long { font-size: clamp(40px, 4.6vw, 74px); }
.b-eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.b-eyebrow .i { width: 1.1em; height: 1.1em; }
.b-fine { margin: 18px 0 0; color: var(--ink3); font-size: 15px; line-height: 1.45; }
.b-visual { min-width: 0; }

/* ---------- El portátil con el panel: todo en unidades de su ancho (cqi), para que escale sin perder nitidez ---------- */
.laptop { container-type: inline-size; width: 100%; max-width: 680px; margin-left: auto; animation: rise 1.2s .15s cubic-bezier(.2,.7,.2,1) both; }
.lscreen { font-size: 1.62cqi; padding: 1.1em 1.1em 1.3em; border-radius: 1.6em 1.6em .7em .7em; background: linear-gradient(150deg, #48484a 0%, #1c1c1e 26%, #0b0b0c 72%, #3a3a3c 100%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.09), 0 0 0 1px #0b0b0c, 0 50px 90px -40px rgba(28,25,23,.5); }
.lwin { aspect-ratio: 16 / 10.4; border-radius: .6em; overflow: hidden; background: #f6f4ef; display: flex; flex-direction: column; font-family: var(--sys); color: #1c1917; letter-spacing: 0; line-height: 1.25; text-align: left; }
.lbar { flex: none; display: flex; align-items: center; gap: .45em; padding: .55em .8em; background: #ebe8e1; border-bottom: 1px solid #ddd8cf; }
.lbar i { width: .75em; height: .75em; border-radius: 50%; background: #d3cec4; }
.lbar span { margin-left: 1.2em; padding: .2em 1.2em; border-radius: 99px; background: #fff; color: #78716c; font-size: .9em; }
.lapp { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ltop { display: flex; align-items: center; gap: .7em; padding: .7em 1.1em; background: rgba(255,255,255,.75); border-bottom: 1px solid #e7e5e4; }
.lmark { flex: none; width: 1.9em; height: 1.9em; border-radius: .5em; display: grid; place-items: center; background: #c2410c; color: #fff; font-weight: 700; }
.ltop b { white-space: nowrap; }
.ltabs { display: flex; gap: .3em; margin-left: auto; min-width: 0; overflow: hidden; }
.ltabs span { padding: .35em .75em; border-radius: 99px; color: #57534e; white-space: nowrap; font-size: .92em; }
.ltabs .on { background: #fff1e8; color: #9a3412; font-weight: 600; }
.lbody { flex: 1; min-height: 0; padding: 1em 1.1em; display: flex; flex-direction: column; gap: .9em; }
.lkpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7em; }
.lkpis div { min-width: 0; padding: .7em .8em; border-radius: .8em; background: #fff; border: 1px solid #e7e5e4; }
.lkpis small { display: block; color: #78716c; font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lkpis b { display: block; margin-top: .15em; font-size: 1.7em; letter-spacing: -.02em; }
.lcols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: .9em; }
.lcard { min-width: 0; padding: .8em .9em; border-radius: .8em; background: #fff; border: 1px solid #e7e5e4; overflow: hidden; }
.lcard.wide { grid-column: 1 / -1; }
.lh { margin: 0 0 .55em; font-weight: 600; font-size: .95em; }
.lt-row { display: flex; align-items: center; gap: .7em; padding: .5em 0; border-top: 1px solid #f0eee9; }
.lt-row:first-of-type { border-top: 0; }
.lt-row b { flex: none; width: 3em; color: #9a3412; }
.lt-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-row em { font-style: normal; color: #78716c; }
.lboard { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .55em; }
.lcol { min-width: 0; display: flex; flex-direction: column; gap: .4em; padding: .5em; border-radius: .6em; background: #f6f4ef; }
.lcol small { color: #78716c; font-weight: 600; font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcol span { padding: .45em .55em; border-radius: .5em; background: #fff; border: 1px solid #e7e5e4; font-size: .86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.lses { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; align-items: center; gap: .3em .8em; padding: .55em 0; border-top: 1px solid #f0eee9; }
.lses:first-of-type { border-top: 0; }
.lses b { color: #9a3412; }
.lses-n { display: flex; flex-direction: column; gap: .35em; min-width: 0; }
.lses-n i { display: block; height: .45em; border-radius: 99px; background: linear-gradient(90deg, rgb(var(--acc)) var(--f), #efece6 var(--f)); }
.lses em { font-style: normal; color: #57534e; font-weight: 600; }
.lses small { grid-column: 2 / -1; color: #9a3412; font-weight: 600; font-size: .82em; }
.lbase { position: relative; height: 2.4cqi; margin: 0 -7%; border-radius: 0 0 2.8cqi 2.8cqi; background: linear-gradient(180deg, #e7e5e4, #a8a29e); box-shadow: 0 18px 30px -18px rgba(0,0,0,.45); }
.lbase::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 45%; transform: translateX(-50%); border-radius: 0 0 1.2cqi 1.2cqi; background: #8f8a85; opacity: .45; }

/* ---------- La conversación con el asistente y el panel que crece a su lado ---------- */
.b-window { container-type: inline-size; width: 100%; }
.bw-in { font-size: 1.75cqi; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 34em; border-radius: 1.6em; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 50px 100px -50px rgba(28,25,23,.45), 0 20px 40px -24px rgba(28,25,23,.18); font-family: var(--sys); letter-spacing: 0; line-height: 1.3; text-align: left; }
.b-hero .bw-in { animation: rise 1.2s .15s cubic-bezier(.2,.7,.2,1) both; }
.bw-chat { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fbfaf8; }
.bw-head { display: flex; align-items: center; gap: .5em; padding: 1em 1.2em; border-bottom: 1px solid var(--line); color: var(--primary); }
.bw-head b { color: var(--ink); }
.bw-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .7em; padding: 1.2em; }
.bw-b { margin: 0; max-width: 88%; padding: .75em 1em; border-radius: 1.2em; transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
.bw-b.me { align-self: flex-end; background: #fde3d3; border-bottom-right-radius: .35em; }
.bw-b.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: .35em; }
.bw-input { display: flex; align-items: center; justify-content: space-between; margin: 0 1.2em 1.2em; padding: .6em .6em .6em 1.1em; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink3); }
.bw-input .i { width: 1.9em; height: 1.9em; padding: .4em; border-radius: 50%; background: var(--primary); color: #fff; }
.bw-panel { min-width: 0; padding: 1.1em 1.2em; background: var(--cream); display: flex; flex-direction: column; gap: .9em; }
.bw-phead { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.bw-phead span { font-size: .85em; color: var(--muted); padding: .25em .7em; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.bw-pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7em; }
.bw-piece { position: relative; min-width: 0; display: flex; gap: .65em; align-items: flex-start; padding: .85em; border-radius: 1em; background: #fff; border: 1px solid var(--line); transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
.bw-pi { flex: none; width: 2.2em; height: 2.2em; border-radius: .7em; display: grid; place-items: center; background: rgba(var(--acc), .12); color: rgb(var(--acc)); }
.bw-pi .i { width: 1.2em; height: 1.2em; }
.bw-piece b { display: block; font-size: .98em; }
.bw-piece small { display: block; margin-top: .15em; color: var(--muted); font-size: .84em; }
.bw-piece .b-soon { position: absolute; top: -.7em; right: .6em; font-size: .72em; padding: .2em .6em; }
.anim .bw-b:not(.on) { opacity: 0; transform: translateY(1em) scale(.97); }
.anim .bw-piece:not(.on) { opacity: 0; transform: translateY(1em) scale(.95); }
.anim .bw-piece.on { animation: b-glow 1.1s ease-out; }
@keyframes b-glow { from { box-shadow: 0 0 0 0 rgba(194,65,12,.3); } to { box-shadow: 0 0 0 1em rgba(194,65,12,0); } }

/* ---------- La escena «Se monta hablando»: fija en el ordenador; en el móvil, cada cosa aparece al verla ---------- */
.b-scene { background: var(--cream); }
.b-scene-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 56px; align-items: center; padding: 12vh 0; }
.b-scene-copy h2 { font-size: clamp(40px, 4.6vw, 72px); }
.b-steps { list-style: none; counter-reset: s; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.b-steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.4; color: var(--ink); transition: color .4s; }
.b-steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; margin-top: -1px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; transition: background .4s, color .4s; }
@media (min-width: 900px) {
  .b-scene.anim { height: calc(var(--vh, 300) * 1vh); }
  .b-scene.anim .b-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
  .b-scene.anim .b-wrap { width: 100%; }
  .b-scene.anim .b-scene-grid { padding: calc(var(--nav) + 2vh) 0 3vh; }
  .b-scene.anim .b-steps li:not(.on) { color: var(--ink3); }
  .b-scene.anim .b-steps li:not(.on)::before { background: var(--line); color: var(--ink2); }
}

/* ---------- El chat del negocio en el móvil de un cliente ---------- */
.b-chat { padding: 13vh 0; background: var(--white); overflow: hidden; }
.b-chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; }
:is(.b-chat, .b-pieces, .b-made) h2 { font-size: clamp(38px, 4.4vw, 68px); }
.b-phone .phone { --pw: min(330px, 78vw); }
.bmsgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .55em; padding: .9em; overflow: hidden; }
.kc { align-self: flex-start; width: 86%; display: flex; flex-direction: column; gap: .12em; padding: .75em .85em .8em; border-radius: 1.15em; border-bottom-left-radius: .35em; background: #fff; border: 1px solid #e7e5e4; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.kc-k { display: flex; align-items: center; gap: .35em; font-size: .82em; font-weight: 600; color: rgb(var(--acc)); }
.kc-k .i { width: 1.15em; height: 1.15em; }
.kc b { margin-top: .2em; font-size: 1.08em; }
.kc-l { color: #57534e; font-size: .95em; }
.kc-f { margin-top: .25em; color: #78716c; font-size: .88em; }
.kc-btn { margin-top: .6em; padding: .55em .8em; border-radius: 99px; background: #c2410c; color: #fff; font-weight: 600; font-size: .95em; text-align: center; }
.b-points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 24px; max-width: 560px; }
.b-points li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; }
.b-points b { display: block; font-size: 19px; letter-spacing: -.01em; }
.b-points p { margin: 5px 0 0; color: var(--muted); font-size: 16.5px; line-height: 1.5; }

/* ---------- Lo que trae el panel ---------- */
.b-pieces { padding: 13vh 0; background: var(--white); }
.b-pieces + .b-pieces { padding-top: 0; }
.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 6vh; }
.b-card { position: relative; padding: 28px; border-radius: 24px; background: var(--bg); border: 1px solid var(--line); }
.b-card .b-soon, .b-made-item .b-soon { position: absolute; top: 24px; right: 24px; }
.b-card h3 { margin: 20px 0 8px; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.b-card p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.5; }

/* ---------- Hecho para cada industria (y los pasos de la página general) ---------- */
.b-made { padding: 13vh 0; background: var(--dark); color: #f5f5f4; }
.b-made .lede { color: #a8a29e; }
.b-made-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 6vh; }
.b-made-item { position: relative; padding: 28px; border-radius: 24px; background: #1c1917; border: 1px solid #292524; }
.b-made-item h3 { margin: 20px 0 8px; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.b-made-item p { margin: 0; color: #a8a29e; font-size: 16.5px; line-height: 1.5; }
.b-made .b-ico { background: rgba(249,115,22,.14); color: #fdba74; }
.b-made .b-soon { background: rgba(249,115,22,.16); color: #fdba74; }

/* ---------- Piloto ---------- */
.b-pilot { padding: 12vh 0; background: var(--bg); }
.b-pilot-card { max-width: 1000px; margin: 0 auto; padding: clamp(30px, 5vw, 64px); border-radius: 32px; background: linear-gradient(135deg, #fff1e8 0%, #fff 62%); border: 1px solid #fde3d3; }
.b-pilot-card h2 { font-size: clamp(36px, 4.2vw, 60px); }
.b-pilot-card > p:not(.eyebrow) { margin: 18px 0 0; max-width: 660px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); }

/* ---------- Las otras industrias y la página general ---------- */
.b-others { padding: 2vh 0 10vh; background: var(--cream); }
.b-others .eyebrow { margin-bottom: 16px; }
.b-others-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.b-other { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-size: 17px; transition: transform .25s, box-shadow .25s; }
.b-other .b-ico { width: 40px; height: 40px; border-radius: 12px; }
.b-other b { flex: 1; min-width: 0; }
.b-other > .i { color: var(--ink3); }
.b-other:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(28,25,23,.35); }
.b-inds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 6vh; }
.b-ind { display: flex; flex-direction: column; padding: 28px; border-radius: 24px; background: var(--bg); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.b-ind:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(28,25,23,.35); }
.b-ind h3 { margin: 20px 0 8px; font-size: 23px; letter-spacing: -.02em; line-height: 1.15; }
.b-ind p { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: 16.5px; line-height: 1.5; }

/* ---------- Tamaños ---------- */
@media (max-width: 1100px) {
  .b-inds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .b-wrap, .bnav-in { padding: 0 20px; }
  .bnav-in { gap: 12px; }
  .blinks { display: none; }
  .blogin { margin-left: auto; }
  .bnav .brand { font-size: 26px; }
  .bnav .brand .sym { width: 30px; }
  .b-hero { padding-top: 3vh; }
  .b-hero-grid, .b-scene-grid, .b-chat-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .b-scene-grid { padding: 10vh 0; }
  .bw-in { font-size: 3.2cqi; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .bw-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .b-phone { justify-self: center; }
  .b-made-grid, .b-others-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .b-grid, .b-inds { grid-template-columns: minmax(0, 1fr); }
  .lscreen { font-size: 1.75cqi; }
  .lkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  /* «business» se queda (dice dónde estás); «Entrar» sigue abajo, en el cierre y en el pie. */
  .blogin { display: none; }
  .bnav .pill { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .laptop, .b-hero .bw-in, .anim .bw-piece.on { animation: none; }
  .bw-b, .bw-piece, .b-other, .b-ind { transition: none; }
}
