/* ====== Demos interactivas ====== */
.d-hero { position: relative; padding: 104px 0 46px; background: radial-gradient(90% 80% at 15% 0%, #15181a 0%, var(--black) 60%); overflow: hidden; }
.d-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.3px); background-size: 6px 6px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); pointer-events: none; }
.d-hero .wrap { position: relative; }
.d-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: #131516; border: 1px solid #1d2021; border-radius: 999px; width: max-content; max-width: 100%; margin-bottom: 40px; }
.d-tabs a { font-size: .78rem; padding: 7px 14px; border-radius: 999px; color: #a5aaa9; transition: color .2s, background .2s; white-space: nowrap; }
.d-tabs a:hover { color: var(--white); }
.d-tabs a.on { background: var(--white); color: var(--ink); }
.d-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.d-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -.035em; line-height: 1.04; margin-top: 10px; }
.d-head p { color: #a5aaa9; margin: 0; max-width: 46ch; font-size: 1.02rem; }
.d-note { display: flex; align-items: center; gap: 8px; margin: 30px 0 0; font-size: .74rem; color: #6f7372; }
.d-note span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
@media (max-width: 820px) { .d-head { grid-template-columns: 1fr; gap: 16px; } .d-tabs { border-radius: 14px; } }

.d-stage { background: var(--paper); color: var(--ink); padding: 56px 0 80px; }
.d-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.d-grid.wide { grid-template-columns: 1fr 320px; }
@media (max-width: 980px) { .d-grid, .d-grid.wide { grid-template-columns: 1fr; } }

.d-card { background: var(--white); border: 1px solid var(--line-l); border-radius: 16px; padding: 22px; box-shadow: 0 1px 2px rgba(16,17,18,.03); }
.d-card + .d-card { margin-top: 16px; }
.d-card h3 { font-size: 1.05rem; letter-spacing: -.01em; margin: 0 0 4px; }
.d-card .sub { color: var(--mute-l); font-size: .8rem; margin: 0 0 18px; }
.d-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.d-brand { display: flex; align-items: center; gap: 10px; }
.d-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-size: .85rem; color: #fff; background: var(--ink); flex: none; }
.d-label { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-l); margin: 16px 0 8px; display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip2 { all: unset; cursor: pointer; font-size: .8rem; padding: 8px 12px; border-radius: 9px; border: 1px solid #dfe2e0; background: var(--white); transition: border-color .2s, background .2s, color .2s; display: inline-flex; flex-direction: column; gap: 1px; }
.chip2 small { font-size: .68rem; color: var(--mute-l); }
.chip2:hover { border-color: #b9bdbb; }
.chip2.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.chip2:disabled { cursor: not-allowed; color: #b9bdbb; background: #f6f7f6; text-decoration: line-through; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.slots .chip2 { justify-content: center; text-align: center; }
.d-in { font: inherit; font-size: .84rem; border: 1px solid #dfe2e0; border-radius: 8px; padding: 9px 11px; width: 100%; background: var(--white); color: var(--ink); }
.d-in:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16,17,18,.08); }
.d-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--white); border-radius: 999px; padding: 11px 20px; font-size: .84rem; font-weight: 500; transition: transform .2s, opacity .2s, background .2s; }
.d-btn:hover { transform: translateY(-1px); background: #000; }
.d-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.d-btn.ghost { background: transparent; color: var(--ink); border: 1px solid #cfd2d0; }
.d-btn.ghost:hover { border-color: var(--ink); background: transparent; }
.d-btn.sm { padding: 7px 12px; font-size: .76rem; }
.d-btn.full { width: 100%; box-sizing: border-box; }

/* teléfono */
.pm { position: sticky; top: 80px; background: #0b0c0c; border-radius: 34px; padding: 10px; box-shadow: 0 30px 70px rgba(16,17,18,.22); }
.pm-in { background: #efeae2; border-radius: 26px; overflow: hidden; height: 600px; display: flex; flex-direction: column; }
.pm-top { display: flex; align-items: center; gap: 10px; padding: 26px 14px 10px; background: #0b0c0c; color: #fff; }
.pm-top::before { content: ""; position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: 70px; height: 18px; border-radius: 99px; background: #000; }
.pm-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 600; background: #fff; color: var(--ink); flex: none; }
.pm-top b { display: block; font-size: .84rem; font-weight: 600; }
.pm-top small { font-size: .66rem; color: #a5aaa9; }
.pm-chat { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1.4px); background-size: 10px 10px; scroll-behavior: smooth; }
/* sin barra de desplazamiento visible, como en un celular de verdad */
.pm-chat { scrollbar-width: none; -ms-overflow-style: none; }
.pm-chat::-webkit-scrollbar { display: none; }
.bb { overflow-wrap: anywhere; }
.pm-empty { margin: auto; text-align: center; font-size: .76rem; color: #8a8f8d; max-width: 22ch; }
.bb { max-width: 84%; min-width: 64px; padding: 7px 10px 16px; border-radius: 10px; font-size: .8rem; line-height: 1.4; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.06); animation: bbIn .35s cubic-bezier(.2,.8,.2,1); white-space: pre-line; }
.bb.in { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.bb.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 3px; }
.bb time { position: absolute; right: 8px; bottom: 3px; font-size: .58rem; color: #8a8f8d; }
.bb.sys { align-self: center; background: #fff7d6; font-size: .68rem; padding: 4px 10px; color: #6b5d1f; border-radius: 7px; }
.bb .qr { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.bb .qr button { all: unset; cursor: pointer; font-size: .74rem; padding: 6px 10px; border-radius: 8px; background: #f1f2f1; color: #1e6fd9; font-weight: 500; transition: background .2s; }
.bb .qr button:hover { background: #e3eefc; }
.bb .qr button:disabled { color: #a3a7a6; cursor: default; background: #f6f7f6; }
.bb .pay { all: unset; cursor: pointer; display: block; text-align: center; margin-top: 8px; padding: 8px; border-radius: 8px; background: #009ee3; color: #fff; font-weight: 600; font-size: .76rem; }
.bb .pay:disabled { background: #a3a7a6; cursor: default; }
.typing { align-self: flex-start; background: #fff; border-radius: 10px; padding: 9px 12px; display: flex; gap: 3px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #a3a7a6; animation: tp 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tp { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes bbIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.pm-bot { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; background: #efeae2; }
.pm-bot span { flex: 1; background: #fff; border-radius: 99px; padding: 8px 12px; font-size: .74rem; color: #a3a7a6; }
.pm-bot i { width: 32px; height: 32px; border-radius: 50%; background: #0b0c0c; }
@media (max-width: 980px) { .pm { position: relative; top: 0; max-width: 360px; margin: 0 auto; } .pm-in { height: 520px; } }

/* tablas */
.d-tbl { width: 100%; border-collapse: collapse; font-size: .82rem; }
.d-tbl th { text-align: left; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-l); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line-l); white-space: nowrap; }
.d-tbl td { padding: 10px; border-bottom: 1px solid #f0f1f0; vertical-align: middle; }
.d-tbl tr:last-child td { border-bottom: 0; }
.d-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-scroll { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.flash { animation: flash3 1.6s ease-out; }
@keyframes flash3 { from { background: #e3f0ff; } to { background: transparent; } }
.up { color: #b3261e; font-size: .68rem; font-weight: 500; margin-left: 4px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--line-l); border-radius: 12px; padding: 14px; }
.kpi small { display: block; font-size: .66rem; color: var(--mute-l); letter-spacing: .04em; }
.kpi b { display: block; font-size: 1.45rem; font-weight: 500; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.prog { height: 6px; background: #f1f2f1; border-radius: 9px; overflow: hidden; margin-top: 8px; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, #1c5fb3, #6fb6ff); border-radius: 9px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } }

/* feed de actividad */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.feed li { font-size: .78rem; border: 1px solid var(--line-l); border-radius: 10px; padding: 9px 11px; animation: bbIn .35s; background: var(--white); }
.feed li time { display: block; font-size: .64rem; color: var(--mute-l); margin-bottom: 2px; }
.feed li.bad { border-color: #f3c7c3; background: #fff8f7; }
.feed li.ok { border-color: #c7ead7; background: #f6fcf9; }
.feed:empty::before { content: "Todavía no pasó nada. Probá algo de la izquierda."; font-size: .78rem; color: var(--mute-l); }

/* llamada a la acción */
.d-cta { background: var(--paper); color: var(--ink); padding: 0 0 90px; }
.d-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 34px; }
.d-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.d-cta p { color: var(--mute-l); margin: 8px 0 0; }

