/* Página /whatsapp-business-api/: demo por rol, WhatsApp Voice y lista de funciones.
   Usa los tokens de style.css (--wu-navy, --wu-accent, ...). */

/* ---------- Demo interactiva ---------- */
.wa-demo { background: #fff; border: 1px solid rgba(10, 10, 110, .12); border-radius: 22px; padding: 1.25rem; box-shadow: 0 12px 44px rgba(10, 10, 110, .09); }
.wa-demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.wa-steps { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.wa-step { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem .45rem .5rem; border-radius: 999px; border: 1px solid rgba(10, 10, 110, .18); background: #fff; color: var(--wu-navy); font: 600 .82rem/1 Inter, sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.wa-step b { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: rgba(10, 10, 110, .08); font-size: .74rem; }
.wa-step.is-done b { background: var(--wu-success); color: #fff; }
.wa-step[aria-current="step"] { background: var(--wu-navy); border-color: var(--wu-navy); color: #fff; }
.wa-step[aria-current="step"] b { background: var(--wu-accent); color: #fff; }
.wa-step:focus-visible, .wa-btn:focus-visible, .wa-tab:focus-visible, .wa-vtab:focus-visible { outline: 2px solid var(--wu-accent); outline-offset: 2px; }
.wa-ctrl { display: flex; gap: .5rem; }
.wa-btn { padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(10, 10, 110, .2); background: #fff; color: var(--wu-navy); font: 600 .82rem/1 Inter, sans-serif; cursor: pointer; }
.wa-btn--primary { background: var(--wu-accent); border-color: var(--wu-accent); color: #fff; }
.wa-btn[disabled] { opacity: .4; cursor: default; }

.wa-stage { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.wa-label { margin: 0 0 .5rem; font: 700 .72rem/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--wu-text-dark-muted); }

/* Teléfono del cliente */
.wa-phone { border: 7px solid #17171c; border-radius: 30px; background: #efeae2; overflow: hidden; display: flex; flex-direction: column; height: 540px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.wa-phone-head { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; background: #075e54; color: #fff; }
.wa-av { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #fff; color: #075e54; font: 700 .72rem/1 Inter, sans-serif; flex: none; }
.wa-phone-head strong { display: block; font: 600 .86rem/1.1 Inter, sans-serif; }
.wa-phone-head small { opacity: .8; font-size: .7rem; }
.wa-callbtn { margin-left: auto; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: #fff; background: transparent; border: 0; }
.wa-callbtn.is-ring { background: rgba(255, 255, 255, .22); animation: wa-ring 1.2s ease-in-out infinite; }
.wa-chat { flex: 1; overflow-y: auto; padding: .75rem .6rem; display: flex; flex-direction: column; gap: .4rem; scroll-behavior: smooth; }
.wa-b { max-width: 84%; padding: .4rem .6rem; border-radius: 9px; font: 400 .8rem/1.35 Inter, sans-serif; color: #111; box-shadow: 0 1px 1px rgba(0, 0, 0, .13); word-wrap: break-word; }
.wa-b--in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-b--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.wa-b small { display: block; margin-bottom: .1rem; font-weight: 700; color: #075e54; font-size: .68rem; }
.wa-sys { align-self: center; max-width: 92%; padding: .25rem .6rem; border-radius: 8px; background: rgba(255, 255, 255, .8); color: #54656f; font: 500 .68rem/1.3 Inter, sans-serif; text-align: center; }
.wa-qr { display: flex; flex-wrap: wrap; gap: .3rem; align-self: flex-start; }
.wa-qr span { padding: .3rem .6rem; border-radius: 999px; background: #fff; color: #00a884; font: 600 .74rem/1 Inter, sans-serif; box-shadow: 0 1px 1px rgba(0, 0, 0, .13); }
.wa-receipt { width: 150px; padding: .5rem; border-radius: 6px; background: #fff; border: 1px dashed #b7b7b7; font: 500 .66rem/1.5 ui-monospace, Menlo, monospace; color: #333; }
.wa-receipt b { display: block; text-align: center; letter-spacing: .1em; margin-bottom: .2rem; }
.wa-receipt div { display: flex; justify-content: space-between; }
.wa-receipt .tot { border-top: 1px solid #999; margin-top: .2rem; padding-top: .2rem; font-weight: 700; }
.wa-callcard { align-self: center; display: flex; align-items: center; gap: .55rem; padding: .5rem .8rem; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); font: 600 .78rem/1.2 Inter, sans-serif; color: #111; }
.wa-callcard i, .wa-callcard svg { color: #00a884; }
.wa-callcard small { display: block; font-weight: 400; color: #54656f; }
.wa-callcard.is-live svg { animation: wa-ring 1.2s ease-in-out infinite; }
.wa-b.is-new, .wa-sys.is-new, .wa-callcard.is-new, .wa-qr.is-new { animation: wa-pop .35s ease-out; }

/* Panel de roles */
.wa-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.wa-tab { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 10px; border: 1px solid rgba(10, 10, 110, .16); background: #fff; color: var(--wu-navy); font: 600 .82rem/1 Inter, sans-serif; cursor: pointer; }
.wa-tab[aria-selected="true"] { background: var(--wu-navy); border-color: var(--wu-navy); color: #fff; }
.wa-tab.has-news::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--wu-accent); border: 2px solid #fff; }
.wa-panel { min-height: 420px; border: 1px solid rgba(10, 10, 110, .12); border-radius: 16px; background: #f7f8fc; padding: 1rem; }
.wa-cap { margin: .9rem 0 0; padding: .75rem .9rem; border-left: 3px solid var(--wu-accent); background: rgba(255, 61, 0, .06); border-radius: 0 10px 10px 0; font-size: .88rem; line-height: 1.5; color: var(--wu-text-dark); }
.wa-cap a { color: var(--wu-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.wa-disc { margin: 1rem 0 0; font-size: .76rem; color: var(--wu-text-dark-muted); }

.wa-card { background: #fff; border: 1px solid rgba(10, 10, 110, .1); border-radius: 12px; padding: .75rem .85rem; }
.wa-card + .wa-card { margin-top: .6rem; }
.wa-card h4 { margin: 0 0 .45rem; font: 700 .8rem/1.2 Inter, sans-serif; color: var(--wu-navy); }
.wa-empty { display: grid; place-items: center; min-height: 340px; text-align: center; color: var(--wu-text-dark-muted); font-size: .88rem; padding: 1rem; }
.wa-chip { display: inline-block; padding: .18rem .5rem; border-radius: 999px; font: 600 .68rem/1.2 Inter, sans-serif; background: rgba(10, 10, 110, .08); color: var(--wu-navy); }
.wa-chip--ok { background: rgba(34, 197, 94, .15); color: #15803d; }
.wa-chip--warn { background: rgba(255, 61, 0, .12); color: #c2410c; }
.wa-chip--bad { background: rgba(220, 38, 38, .12); color: #b91c1c; }
.wa-chip--live { background: rgba(10, 10, 110, .9); color: #fff; }
.wa-kv { display: grid; grid-template-columns: auto 1fr; gap: .25rem .6rem; font-size: .78rem; margin: 0; }
.wa-kv dt { color: var(--wu-text-dark-muted); }
.wa-kv dd { margin: 0; font-family: ui-monospace, Menlo, monospace; color: var(--wu-text-dark); overflow-wrap: anywhere; }

/* Bot: flujo */
.wa-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.wa-node { display: flex; gap: .6rem; align-items: center; padding: .5rem .65rem; border-radius: 10px; border: 1px solid rgba(10, 10, 110, .1); background: #fff; opacity: .45; transition: opacity .3s, border-color .3s, box-shadow .3s; }
.wa-node.is-on { opacity: 1; }
.wa-node.is-now { border-color: var(--wu-accent); box-shadow: 0 0 0 3px rgba(255, 61, 0, .12); }
.wa-node-ico { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: rgba(10, 10, 110, .08); color: var(--wu-navy); flex: none; }
.wa-node.is-now .wa-node-ico { background: var(--wu-accent); color: #fff; }
.wa-node strong { display: block; font: 700 .8rem/1.2 Inter, sans-serif; color: var(--wu-navy); }
.wa-node span { font-size: .74rem; color: var(--wu-text-dark-muted); line-height: 1.3; }

/* Agente */
.wa-agent { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: .6rem; }
.wa-agent .wa-card { margin: 0; }
.wa-hist { list-style: none; margin: 0; padding: 0; font-size: .74rem; display: flex; flex-direction: column; gap: .3rem; }
.wa-hist li { padding-left: .8rem; position: relative; color: var(--wu-text-dark-muted); }
.wa-hist li::before { content: ""; position: absolute; left: 0; top: .4em; width: 6px; height: 6px; border-radius: 50%; background: var(--wu-navy); }
.wa-tr { display: flex; flex-direction: column; gap: .35rem; font-size: .78rem; }
.wa-tr p { margin: 0; padding: .35rem .5rem; border-radius: 8px; background: #f1f3f9; }
.wa-tr p.me { background: rgba(10, 10, 110, .08); align-self: flex-end; }
.wa-tr p.bot { background: rgba(255, 61, 0, .08); }
.wa-sug { margin-top: .5rem; padding: .5rem .6rem; border-radius: 10px; border: 1px dashed var(--wu-accent); font-size: .76rem; background: rgba(255, 61, 0, .04); }
.wa-sug b { color: var(--wu-accent); }
.wa-call { margin-bottom: .5rem; padding: .5rem .65rem; border-radius: 10px; background: rgba(34, 197, 94, .12); color: #15803d; font: 600 .78rem/1.2 Inter, sans-serif; display: flex; align-items: center; gap: .5rem; }

/* Supervisor */
.wa-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.wa-tile { background: #fff; border: 1px solid rgba(10, 10, 110, .1); border-radius: 10px; padding: .55rem .6rem; }
.wa-tile b { display: block; font: 700 1.25rem/1 Inter, sans-serif; color: var(--wu-navy); }
.wa-tile span { font-size: .68rem; color: var(--wu-text-dark-muted); }
.wa-rows { width: 100%; border-collapse: collapse; font-size: .76rem; }
.wa-rows th { text-align: left; font: 700 .66rem/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--wu-text-dark-muted); padding: .35rem .4rem; }
.wa-rows td { padding: .5rem .4rem; border-top: 1px solid rgba(10, 10, 110, .08); vertical-align: middle; }
.wa-scroll { overflow-x: auto; }

/* Text Analytics */
.wa-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: .4rem 0 .2rem; }
.wa-scale i { display: block; height: 10px; border-radius: 3px; background: rgba(10, 10, 110, .14); font-style: normal; }
.wa-scale i.on { background: var(--wu-accent); }
.wa-scale-lbl { display: grid; grid-template-columns: repeat(5, 1fr); font-size: .6rem; text-align: center; color: var(--wu-text-dark-muted); line-height: 1.15; }
.wa-scale-lbl span.on { color: var(--wu-accent); font-weight: 700; }
.wa-bars { display: flex; flex-direction: column; gap: .4rem; font-size: .74rem; }
.wa-bar { display: grid; grid-template-columns: 120px 1fr 2.4rem; gap: .5rem; align-items: center; }
.wa-bar i { display: block; height: 7px; border-radius: 4px; background: rgba(10, 10, 110, .1); position: relative; overflow: hidden; }
.wa-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--wu-navy); border-radius: 4px; }
.wa-score { font: 800 2rem/1 Inter, sans-serif; color: var(--wu-navy); }

/* Agentic Analytics */
.wa-sub { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .6rem; }
.wa-sub span { padding: .3rem .6rem; border-radius: 8px; font: 600 .72rem/1 Inter, sans-serif; background: #fff; border: 1px solid rgba(10, 10, 110, .12); color: var(--wu-text-dark-muted); }
.wa-sub span.on { background: var(--wu-navy); color: #fff; border-color: var(--wu-navy); }
.wa-ask { display: flex; flex-direction: column; gap: .35rem; font-size: .76rem; }
.wa-ask .q { align-self: flex-end; max-width: 90%; padding: .4rem .6rem; border-radius: 10px; background: var(--wu-navy); color: #fff; }
.wa-ask .a { align-self: flex-start; max-width: 95%; padding: .4rem .6rem; border-radius: 10px; background: #fff; border: 1px solid rgba(10, 10, 110, .12); }
.wa-reco { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }

/* ---------- Listas de funciones ---------- */
.wa-list { margin: .5rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; line-height: 1.4; color: var(--wu-text-dark-muted); }
.wa-list li { position: relative; padding-left: 1.1rem; }
.wa-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--wu-accent); }
.wa-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; }

/* ---------- WhatsApp Voice ---------- */
.wa-vtabs [role="tablist"] { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.wa-vtab { padding: .65rem 1.1rem; border-radius: 999px; border: 1px solid rgba(10, 10, 110, .18); background: #fff; color: var(--wu-navy); font: 700 .88rem/1 Inter, sans-serif; cursor: pointer; }
.wa-vtab[aria-selected="true"] { background: var(--wu-navy); color: #fff; border-color: var(--wu-navy); }
.wa-vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.wa-vflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; counter-reset: v; margin: 0 0 1rem; padding: 0; list-style: none; }
.wa-vflow li { counter-increment: v; background: #fff; border: 1px solid rgba(10, 10, 110, .12); border-radius: 12px; padding: .75rem; font-size: .84rem; line-height: 1.35; color: var(--wu-text-dark); }
.wa-vflow li::before { content: counter(v); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-bottom: .4rem; border-radius: 50%; background: var(--wu-accent); color: #fff; font: 700 .78rem/1 Inter, sans-serif; }
.wa-callmock { max-width: 300px; border-radius: 14px; background: #efeae2; padding: .8rem; display: flex; flex-direction: column; gap: .4rem; }
.wa-callmock .wa-b { max-width: 100%; }
.wa-callmock .wa-tpl { margin-top: .4rem; padding-top: .4rem; border-top: 1px solid #e6e6e6; text-align: center; color: #00a884; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: .35rem; }
.wa-note { margin-top: 1rem; padding: .7rem .9rem; border-radius: 10px; background: rgba(10, 10, 110, .05); font-size: .82rem; color: var(--wu-text-dark-muted); line-height: 1.5; }
.wa-note a { color: var(--wu-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.wa-src { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.wa-src a { display: inline-block; padding: .45rem .8rem; border-radius: 999px; border: 1px solid rgba(10, 10, 110, .18); background: #fff; color: var(--wu-navy); font: 600 .8rem/1 Inter, sans-serif; text-decoration: none; }
.wa-src a:hover { border-color: var(--wu-accent); }

@keyframes wa-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes wa-ring { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) {
    .wa-b.is-new, .wa-sys.is-new, .wa-callcard.is-new, .wa-qr.is-new, .wa-callbtn.is-ring, .wa-callcard.is-live svg { animation: none; }
    .wa-chat { scroll-behavior: auto; }
}
@media (max-width: 900px) {
    .wa-stage { grid-template-columns: minmax(0, 1fr); }
    .wa-phone { height: 470px; max-width: 360px; margin: 0 auto; width: 100%; }
    .wa-vgrid, .wa-vflow { grid-template-columns: minmax(0, 1fr); }
    .wa-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wa-agent { grid-template-columns: minmax(0, 1fr); }
    .wa-bar { grid-template-columns: 90px 1fr 2.2rem; }
    .wa-btn, .wa-tab, .wa-step, .wa-vtab { min-height: 44px; }
    .wa-ctrl { width: 100%; }
    .wa-ctrl .wa-btn { flex: 1; }
}


/* ================= Extras compartidos: omnicanal e IA conversacional ================= */

/* Teléfono con canal activo (omnicanal) */
.om-chips { display: flex; flex-wrap: wrap; gap: .3rem; padding: .45rem .55rem; background: #e9e4dc; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.om-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .55rem; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .12); background: #fff; color: #333; font: 600 .7rem/1 Inter, sans-serif; cursor: pointer; }
.om-chip[aria-pressed="true"] { background: #17171c; border-color: #17171c; color: #fff; }
.om-chip:focus-visible { outline: 2px solid var(--wu-accent); outline-offset: 1px; }
.wa-phone-head.is-ig { background: #8a3ab9; }
.wa-phone-head.is-em { background: #3b5bdb; }
.wa-phone-head.is-vz { background: #17171c; }
.wa-phone-head.is-tx { background: #075e54; }
.wa-phone-head.is-vo { background: #17171c; }
.om-mail { align-self: stretch; max-width: 100%; background: #fff; border-radius: 8px; padding: .5rem .6rem; font: 400 .78rem/1.4 Inter, sans-serif; box-shadow: 0 1px 1px rgba(0, 0, 0, .13); }
.om-mail b { display: block; margin-bottom: .2rem; color: #3b5bdb; }
.om-wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.om-wave i { display: block; width: 3px; border-radius: 2px; background: #00a884; }

/* Línea de tiempo unificada */
.om-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.om-tl li { display: grid; grid-template-columns: 2rem 1fr; gap: .55rem; align-items: start; padding: .5rem .6rem; border-radius: 10px; background: #fff; border: 1px solid rgba(10, 10, 110, .1); font-size: .78rem; line-height: 1.35; }
.om-tl li.is-new { border-color: var(--wu-accent); box-shadow: 0 0 0 3px rgba(255, 61, 0, .1); }
.om-tl .om-ic { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: rgba(10, 10, 110, .08); color: var(--wu-navy); }
.om-tl strong { display: block; font: 700 .78rem/1.2 Inter, sans-serif; color: var(--wu-navy); }
.om-tl span { color: var(--wu-text-dark-muted); }
.om-tools { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }

/* Barras por canal */
.om-bars { display: flex; flex-direction: column; gap: .45rem; font-size: .76rem; }
.om-bar { display: grid; grid-template-columns: 130px 1fr 1.8rem; gap: .5rem; align-items: center; }
.om-bar i { display: block; height: 8px; border-radius: 4px; background: rgba(10, 10, 110, .1); position: relative; overflow: hidden; }
.om-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--wu-navy); border-radius: 4px; transition: width .4s; }

/* Rejilla de canales con detalle */
.om-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.om-card { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: .8rem; border-radius: 14px; border: 1px solid rgba(10, 10, 110, .14); background: #fff; color: var(--wu-navy); font: 700 .84rem/1.2 Inter, sans-serif; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.om-card .om-ic { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: rgba(10, 10, 110, .08); }
.om-card[aria-pressed="true"] { border-color: var(--wu-accent); box-shadow: 0 0 0 3px rgba(255, 61, 0, .12); }
.om-card[aria-pressed="true"] .om-ic { background: var(--wu-accent); color: #fff; }
.om-card:focus-visible { outline: 2px solid var(--wu-accent); outline-offset: 2px; }
.om-detail { padding: 1rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid rgba(10, 10, 110, .12); font-size: .92rem; line-height: 1.55; color: var(--wu-text-dark); }
.om-detail h3 { margin: 0 0 .4rem; font: 700 1.05rem/1.2 Inter, sans-serif; color: var(--wu-navy); }
.om-detail a { color: var(--wu-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Modo texto / voz (IA conversacional) */
.ia-mode { display: flex; gap: .3rem; padding: .45rem .55rem; background: #e9e4dc; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.ia-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.ia-log li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .5rem; align-items: start; padding: .45rem .55rem; border-radius: 9px; background: #fff; border: 1px solid rgba(10, 10, 110, .1); font-size: .76rem; line-height: 1.35; opacity: .45; }
.ia-log li.is-on { opacity: 1; }
.ia-log li.is-now { border-color: var(--wu-accent); box-shadow: 0 0 0 3px rgba(255, 61, 0, .1); }
.ia-log li > b { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(10, 10, 110, .1); color: var(--wu-navy); font-size: .7rem; }
.ia-log li.is-on > b { background: var(--wu-success); color: #fff; }
.ia-log li code, .ia-code { font-family: ui-monospace, Menlo, monospace; font-size: .72rem; }
.ia-code { display: block; margin: .3rem 0 0; padding: .5rem .6rem; border-radius: 8px; background: #11112e; color: #d7d9ff; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.ia-code .k { color: #ffb08a; }
.ia-inbox { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: .6rem; }
.ia-inbox .wa-card { margin: 0; }
.ia-item { padding: .45rem .5rem; border-radius: 8px; background: rgba(255, 61, 0, .08); border: 1px solid rgba(255, 61, 0, .3); font-size: .72rem; line-height: 1.3; }
.ia-item.is-done { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); }

/* Agentic Flow: diseñador de ejemplo */
.af { background: #fff; border: 1px solid rgba(10, 10, 110, .12); border-radius: 18px; padding: 1.1rem; box-shadow: 0 10px 36px rgba(10, 10, 110, .07); }
.af-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
.af-modes { display: flex; gap: .35rem; margin-bottom: .6rem; }
.af-prompt { padding: .8rem .9rem; border-radius: 12px; background: #f7f8fc; border: 1px solid rgba(10, 10, 110, .12); font-size: .86rem; line-height: 1.5; min-height: 7.5rem; color: var(--wu-text-dark); }
.af-prompt .caret { display: inline-block; width: 2px; height: 1em; background: var(--wu-accent); vertical-align: -2px; animation: wa-ring 1s steps(2) infinite; }
.af-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; min-height: 15rem; }
.af-flow li { animation: wa-pop .3s ease-out; }
.af-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.af-test { margin-top: .7rem; padding: .6rem .8rem; border-radius: 10px; background: rgba(34, 197, 94, .12); color: #15803d; font: 600 .8rem/1.3 Inter, sans-serif; }

@media (max-width: 900px) {
    .ia-inbox, .af-grid { grid-template-columns: minmax(0, 1fr); }
    .om-bar { grid-template-columns: 100px 1fr 1.6rem; }
    .om-chip, .om-card { min-height: 44px; }
}

/* Los botones de pasos usan data-step: anulan la regla global de style.css que oculta [data-step] (animación del hero de la home). */
.wa-steps [data-step] { opacity: 1; transform: none; }

/* Celular: sin alturas mínimas que dejan aire */
@media (max-width: 900px) {
    .wa-panel { min-height: 0; }
    .wa-empty { min-height: 150px; }
    .wa-demo { padding: 1rem; }
    .wa-phone { height: 400px; }
}
