/* =========================================================
   CONPER — Demos interactivas
   ========================================================= */
.demo-hero { padding-bottom: 36px; }
.demo-wrap { padding-top: 40px; }

/* Selector de demo */
.demo-switch { display: grid; gap: 12px; margin-bottom: 20px; }
.demo-switch__btn {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 16px 18px; cursor: pointer;
  border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .9); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.demo-switch__btn:hover { border-color: #B9D8FB; }
.demo-switch__btn[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-700); color: #fff; box-shadow: var(--shadow); }
.demo-switch__btn b { display: block; font-size: 1.02rem; }
.demo-switch__btn small { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.demo-switch__btn[aria-selected="true"] small { color: #94A3B8; }
.demo-switch__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.demo-switch__btn[aria-selected="true"] .demo-switch__icon { background: var(--grad); color: #fff; }
@media (min-width: 768px) { .demo-switch { grid-template-columns: 1fr 1fr; } }

/* Reproductor */
.demo { display: grid; gap: 16px; }
.demo > * { min-width: 0; }
.demo__steps { overflow-x: auto; scrollbar-width: none; }
.demo__steps::-webkit-scrollbar { display: none; }
.demo__steps ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.demo__steps button {
  display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 7px 12px 7px 7px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .9); color: var(--muted); font: inherit; font-size: .84rem; font-weight: 600;
}
.demo__steps button span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: .75rem; font-weight: 800; flex-shrink: 0; }
.demo__steps button.is-done span { background: rgba(16, 185, 129, .15); color: #047857; }
.demo__steps button[aria-current="step"] { color: var(--ink); border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(7, 105, 233, .12); }
.demo__steps button[aria-current="step"] span { background: var(--grad); color: #fff; }

.demo__stage { background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.demo__head { padding: 22px 22px 0; }
.demo__count { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.demo__head h2 { font-size: clamp(1.3rem, 1.2vw + 1rem, 1.75rem); margin: 6px 0 8px; }
.demo__head p { color: var(--muted); max-width: 760px; }
.demo__body { padding: 20px 22px 24px; min-height: 360px; }
.demo__nav { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg); }
.demo__nav .btn svg { width: 16px; height: 16px; }
.demo__progress { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.demo__progress span { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .35s var(--ease); }
.demo__note { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 14px; color: var(--subtle); font-size: .85rem; text-align: center; }

@media (min-width: 1024px) {
  .demo { grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 20px; }
  .demo__steps { position: sticky; top: calc(var(--nav-h) + 16px); overflow: visible; }
  .demo__steps ol { flex-direction: column; gap: 4px; }
  .demo__steps button { white-space: normal; width: 100%; text-align: left; border-radius: 14px; padding: 9px 12px 9px 9px; line-height: 1.3; }
  .demo__head { padding: 28px 30px 0; }
  .demo__body { padding: 22px 30px 28px; }
  .demo__nav { padding: 14px 30px; }
}
@media (max-width: 520px) { .demo__nav .btn { padding: 0 12px; } }

/* ---------- Piezas comunes ---------- */
.dm-toggle { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 16px; }
.dm-toggle button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.dm-toggle button svg { width: 16px; height: 16px; }
.dm-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.dm-toggle--sm { margin: 6px 0 10px; }
.dm-toggle--sm button { padding: 5px 9px; font-size: .75rem; }
.dm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dm-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .88rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.dm-tabs button svg { width: 16px; height: 16px; }
.dm-tabs button[aria-pressed="true"] { border-color: var(--b, var(--blue)); color: var(--ink); box-shadow: 0 0 0 3px rgba(7, 105, 233, .1); }
.dm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--b, var(--blue)); display: inline-block; }
.dm-dot--ok { background: var(--green); }
.dm-grid2 { display: grid; gap: 20px; }
.dm-grid2 > * { min-width: 0; }
@media (min-width: 860px) { .dm-grid2 { grid-template-columns: 1fr 1fr; } .dm-grid2--phone { grid-template-columns: 1fr 340px; align-items: start; } }
.dm-h4 { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); margin: 14px 0 8px; }
.dm-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.dm-ic svg { width: 20px; height: 20px; }
.dm-small { display: block; color: var(--subtle); font-size: .8rem; margin-top: 10px; }
.dm-ref { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--blue); background: var(--blue-50); padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.dm-bad { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: #B91C1C; font-weight: 600; }
.dm-bad svg { width: 14px; height: 14px; }
.dm-st { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--bg); color: var(--muted); }
.dm-st--ok, .dm-st--entregado { background: rgba(16, 185, 129, .14); color: #047857; }
.dm-st--off { background: #F1F5F9; color: var(--subtle); }
.dm-st--ia { background: rgba(139, 92, 246, .14); color: #6D28D9; }
.dm-st--programado { background: rgba(7, 105, 233, .1); color: var(--blue-600); }
.dm-st--liberado { background: rgba(0, 200, 230, .16); color: #0E7490; }
.dm-st--en-alistamiento { background: rgba(245, 158, 11, .16); color: #B45309; }
.dm-st--despachado { background: rgba(139, 92, 246, .14); color: #6D28D9; }
.dm-st--aún-no-llega { background: #F8FAFC; color: #94A3B8; }
.dm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.dm-chips > small { color: var(--subtle); font-size: .8rem; margin-right: 2px; }
.dm-chips button, .dm-chips--static span, .dm-chips--static li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .82rem; font-weight: 700; color: var(--navy-700); cursor: pointer; list-style: none; }
.dm-chips--static { padding: 0; }
.dm-chips--static span, .dm-chips--static li { cursor: default; background: var(--bg); }
.dm-chips button svg { width: 15px; height: 15px; color: var(--blue); }
.dm-chips button:hover { border-color: #B9D8FB; }
.dm-chips button[aria-pressed="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.dm-chips button[aria-pressed="true"] svg { color: var(--cyan); }
.dm-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dm-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.dm-list li > svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.dm-list li > div { flex: 1; min-width: 0; }
.dm-list b { display: block; font-size: .92rem; }
.dm-list small { color: var(--muted); font-size: .8rem; }
.dm-banner { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--blue-50); color: var(--navy-700); font-size: .86rem; font-weight: 600; margin-bottom: 12px; }
.dm-banner svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.dm-banner--warn { background: #FFFBEB; color: #92400E; }
.dm-banner--warn svg { color: #D97706; }
.dm-linkbtn { border: 0; background: none; color: var(--blue); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 0; }
.dm-facts { display: grid; gap: 10px; margin-top: 16px; }
.dm-facts > div { display: grid; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.dm-facts svg { width: 20px; height: 20px; color: var(--blue); }
.dm-facts b { font-size: .92rem; }
.dm-facts small { color: var(--muted); font-size: .82rem; }
@media (min-width: 640px) { .dm-facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .dm-facts { grid-template-columns: repeat(4, 1fr); } .dm-facts--3 { grid-template-columns: repeat(3, 1fr); } }
.dm-field { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--navy-700); }
.dm-field input { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .95rem; color: var(--ink); }
.dm-field input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7, 105, 233, .12); }
.dm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.dm-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, var(--brand, var(--blue)), #00C8F0); opacity: .85; }
.dm-success, .dm-done { text-align: center; }
.dm-success { display: grid; justify-items: center; gap: 8px; padding: 30px 10px; }
.dm-success > svg { width: 52px; height: 52px; color: var(--green); }
.dm-success h3 { font-size: 1.3rem; }
.dm-success p { color: var(--muted); }
.dm-done { display: flex; align-items: center; gap: 8px; color: #047857; font-weight: 700; font-size: .9rem; }
.dm-done svg { width: 18px; height: 18px; }
.dm-ok { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(16, 185, 129, .12); color: #065F46; font-size: .86rem; margin: 10px 0; }
.dm-ok svg { width: 18px; height: 18px; flex-shrink: 0; }
.dm-endcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: var(--navy-900); color: #E2E8F0; }
.dm-endcta b { display: block; color: #fff; }
.dm-endcta small { color: #94A3B8; }
.dm-endcta .btn svg { width: 18px; height: 18px; }

/* ---------- Plataforma: reto ---------- */
.dm-reto { display: grid; gap: 14px; }
.dm-reto__ch { display: grid; gap: 8px; }
.dm-chcard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: border-color .3s, background .3s; }
.dm-chcard b { display: block; font-size: .92rem; margin-bottom: 3px; }
.is-sin .dm-chcard { border-style: dashed; border-color: #FCA5A5; background: #FFF7F7; }
.dm-reto__core { display: grid; align-content: center; justify-items: center; text-align: center; gap: 6px; padding: 20px; border-radius: 18px; background: var(--navy-900); color: #E2E8F0; }
.dm-reto__core b { color: #fff; font-size: 1.05rem; }
.dm-reto__core p { color: #94A3B8; font-size: .86rem; }
.dm-core__badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 0 0 8px rgba(0, 242, 254, .12); }
.dm-core__badge--off { background: #334155; box-shadow: none; }
.dm-mini { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; width: 100%; max-width: 280px; }
.dm-mini li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
@media (min-width: 860px) { .dm-reto { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Plataforma: marcas ---------- */
.dm-store { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.dm-store__top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--brand); color: #fff; }
.dm-store__top b { flex: 1; }
.dm-agent { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .2); padding: 4px 9px; border-radius: 999px; }
.dm-agent svg { width: 14px; height: 14px; }
.dm-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); font-weight: 800; font-size: .8rem; color: #fff; }
.dm-logo--sm { width: 28px; height: 28px; font-size: .68rem; border-radius: 8px; background: var(--brand, var(--blue)); }
.dm-store .dm-banner { margin: 12px 12px 0; }
.dm-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.dm-menu__item { display: grid; gap: 4px; font-size: .85rem; }
.dm-menu__item span { color: var(--muted); }
.dm-add { border: 0; border-radius: 8px; padding: 6px; background: var(--brand); color: #fff; font: inherit; font-size: .78rem; font-weight: 800; }
.dm-add:disabled { background: #CBD5E1; }
.dm-lock { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; }
.dm-lock svg { width: 34px; height: 34px; color: var(--subtle); }
.dm-lock small { color: var(--muted); }

/* ---------- Teléfono (tienda y WhatsApp) ---------- */
.dm-stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dm-stepper button, .dm-cap { display: flex; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.dm-cap { cursor: default; }
.dm-stepper span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--bg); color: var(--muted); font-size: .78rem; font-weight: 800; }
.dm-stepper b { display: block; font-size: .9rem; }
.dm-stepper small { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.dm-stepper .is-done span { background: rgba(16, 185, 129, .15); color: #047857; }
.dm-stepper [aria-current="true"], .dm-cap.is-on { border-color: var(--blue); background: var(--blue-50); }
.dm-stepper [aria-current="true"] span, .dm-cap.is-on span { background: var(--grad); color: #fff; }
.dm-phone { width: 100%; max-width: 340px; margin-inline: auto; border-radius: 34px; padding: 10px; background: var(--navy-900); box-shadow: var(--shadow-lg); }
.dm-phone__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 24px 24px 0 0; background: var(--brand, var(--blue)); color: #fff; font-weight: 800; font-size: .9rem; }
.dm-phone__bar small { display: block; font-weight: 500; font-size: .72rem; opacity: .85; }
.dm-phone__screen { background: #fff; height: 380px; overflow-y: auto; padding: 14px; scrollbar-width: thin; }
.dm-phone__screen h5 { font-size: .95rem; margin-bottom: 10px; letter-spacing: -.01em; }
.dm-phone__cta { width: 100%; border: 0; border-radius: 0 0 24px 24px; padding: 13px; background: var(--brand, var(--blue)); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-prod { display: grid; gap: 3px; font-size: .8rem; }
.ph-prod span { color: var(--muted); }
.ph-opt { display: flex; gap: 10px; align-items: center; padding: 11px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; }
.ph-opt svg { width: 20px; height: 20px; color: var(--muted); }
.ph-opt b { display: block; font-size: .88rem; }
.ph-opt small { color: var(--muted); font-size: .76rem; }
.ph-opt.is-on { border-color: var(--brand, var(--blue)); box-shadow: 0 0 0 2px rgba(7, 105, 233, .12); }
.ph-opt.is-on svg { color: var(--brand, var(--blue)); }
.ph-info, .ph-ok { padding: 11px; border-radius: 12px; background: var(--bg); font-size: .82rem; }
.ph-info b, .ph-ok b { display: block; }
.ph-info small, .ph-ok small { color: var(--muted); }
.ph-ok { display: flex; gap: 10px; align-items: center; background: rgba(16, 185, 129, .12); }
.ph-ok svg { width: 22px; height: 22px; color: var(--green); }
.ph-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.ph-line--sub { color: var(--muted); }
.ph-line--tot { border: 0; font-size: 1rem; }
.ph-req { display: flex; gap: 6px; align-items: center; font-size: .78rem; color: #B45309; font-weight: 700; margin-top: 6px; }
.ph-req svg { width: 14px; height: 14px; }
.ph-p { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.ph-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 12px; background: var(--navy-900); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.ph-btn svg { width: 16px; height: 16px; }
.ph-btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ph-small { display: block; text-align: center; color: var(--subtle); font-size: .74rem; }
.ph-time { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.ph-time li { position: relative; display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--subtle); font-weight: 600; }
.ph-time li span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #CBD5E1; background: #fff; flex-shrink: 0; }
.ph-time li.is-done { color: var(--ink); }
.ph-time li.is-done span { border-color: var(--green); background: var(--green); }
.ph-pin { padding: 10px 12px; border-radius: 12px; background: var(--blue-50); font-size: .85rem; margin-bottom: 8px; }
.ph-pin b { font-size: 1.1rem; letter-spacing: .15em; color: var(--blue); margin-left: 6px; }

/* WhatsApp */
.wa-bar { background: #075E54; }
.wa-screen { background: #ECE5DD; display: flex; flex-direction: column; gap: 8px; }
.wa-msg { max-width: 86%; }
.wa-msg p { padding: 8px 11px; border-radius: 12px; font-size: .84rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-msg--a { align-self: flex-start; }
.wa-msg--a p { background: #fff; border-top-left-radius: 4px; }
.wa-msg--c { align-self: flex-end; }
.wa-msg--c p { background: #DCF8C6; border-top-right-radius: 4px; }
.wa-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.wa-card { display: grid; gap: 2px; padding: 6px; border-radius: 10px; background: #fff; font-size: .74rem; }
.wa-card em { font-style: normal; color: #075E54; font-weight: 800; text-align: center; border-top: 1px solid #eee; padding-top: 4px; }
.wa-opts { display: grid; gap: 4px; margin-top: 4px; }
.wa-opts span { background: #fff; border-radius: 10px; padding: 6px; text-align: center; color: #0369A1; font-size: .8rem; font-weight: 700; }
.wa-pay { display: grid; justify-items: center; margin-top: 4px; padding: 8px; border-radius: 10px; background: #fff; color: #075E54; font-weight: 800; font-size: .84rem; }
.wa-pay svg { width: 16px; height: 16px; }
.wa-pay small { color: var(--subtle); font-weight: 500; font-size: .72rem; }
.wa-receipt { background: #fff; border-radius: 12px; padding: 10px 12px; font-size: .8rem; }
.wa-receipt > span { display: block; color: var(--blue); font-weight: 800; margin: 2px 0 6px; }
.wa-receipt ul { list-style: none; margin: 0 0 6px; padding: 0; }
.wa-receipt li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.wa-receipt li em { font-style: normal; }
.wa-receipt li.t { font-weight: 800; border-top: 1px solid #eee; margin-top: 4px; padding-top: 4px; }
.wa-receipt small { color: var(--muted); }
.wa-actions { display: flex; gap: 8px; padding: 10px; background: #fff; border-radius: 0 0 24px 24px; }
.wa-actions .btn:first-child { flex: 1; }
.wa-actions .btn svg { width: 16px; height: 16px; }

/* ---------- Atención humana ---------- */
.dm-omni { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dm-omni > *, .dm-inbox li, .dm-inbox button { min-width: 0; }
.dm-inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dm-inbox button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; }
.dm-inbox button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-50); }
.dm-inbox button > div { flex: 1; min-width: 0; }
.dm-inbox b { display: block; font-size: .88rem; }
.dm-inbox small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-700); color: #fff; font-weight: 800; flex-shrink: 0; }
.dm-conv { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); align-content: start; }
.dm-conv__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.dm-conv__msgs { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: #ECE5DD; }
.dm-tools { display: flex; flex-wrap: wrap; gap: 6px; font-size: .76rem; }
.dm-tools span { padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.dm-conv .btn { justify-self: start; }
.dm-conv .btn svg, .dm-soft .btn svg { width: 16px; height: 16px; }
.dm-tip p { font-size: .86rem; font-weight: 700; }
@media (min-width: 860px) { .dm-omni { grid-template-columns: 260px minmax(0, 1fr); } }
.dm-soft { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: var(--navy-900); color: #E2E8F0; align-content: start; }
.dm-soft__scr { display: grid; gap: 2px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.dm-soft__scr small { color: #94A3B8; font-size: .75rem; }
.dm-soft__scr b { color: #fff; font-size: 1.1rem; margin-top: 6px; }
.dm-soft__scr span { color: #CBD5E1; font-variant-numeric: tabular-nums; }
.dm-soft__scr em { font-style: normal; font-weight: 700; color: #67E8F9; margin-top: 6px; font-variant-numeric: tabular-nums; }
.dm-soft__scr em.is-live { color: #6EE7B7; }
.dm-callbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.dm-callbtn--end { background: var(--red); }
.dm-callbtn svg { width: 18px; height: 18px; }
.dm-soft .dm-tip p { color: #E2E8F0; }
.dm-soft .dm-chips button { background: rgba(255, 255, 255, .06); color: #E2E8F0; border-color: rgba(148, 163, 184, .25); }

/* ---------- VentasPos ---------- */
.dm-pos { display: grid; gap: 18px; }
.dm-pos > * { min-width: 0; }
.dm-shift { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(16, 185, 129, .12); color: #065F46; font-weight: 700; font-size: .82rem; }
.dm-poscat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dm-poscat button { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; transition: border-color .2s, transform .15s; }
.dm-poscat button:hover { border-color: var(--blue); }
.dm-poscat button:active { transform: scale(.98); }
.dm-poscat svg { width: 20px; height: 20px; color: var(--blue); }
.dm-poscat b { font-size: .86rem; }
.dm-poscat span { color: var(--muted); font-size: .8rem; }
.dm-ticket { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.dm-ticket h4 { margin-top: 0; }
.dm-ticket ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dm-ticket li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: .86rem; }
.dm-ticket li em { font-style: normal; font-weight: 700; }
.dm-ticket li button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; }
.dm-ticket__tot { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0; padding-top: 10px; border-top: 1px dashed #CBD5E1; }
.dm-ticket__tot b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.dm-empty { color: var(--subtle); font-size: .86rem; padding: 14px 0; text-align: center; }
.dm-change { font-size: .86rem; min-height: 1.4em; margin: 6px 0 10px; color: var(--muted); }
.dm-change b { color: #047857; }
@media (min-width: 860px) { .dm-pos { grid-template-columns: 1fr 320px; } .dm-poscat { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Trazabilidad ---------- */
.dm-trk__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.dm-trk__bar .dm-toggle { margin-bottom: 0; }
.dm-trk__btns { display: flex; gap: 8px; }
.dm-trk__btns .btn svg { width: 16px; height: 16px; }
.dm-trk { display: grid; gap: 12px; margin-top: 14px; }
.dm-trk > * { min-width: 0; }
.dm-pane { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.dm-pane h5 { display: flex; align-items: center; gap: 6px; font-size: .8rem; letter-spacing: .02em; color: var(--subtle); margin-bottom: 12px; }
.dm-pane h5 svg { width: 16px; height: 16px; color: var(--blue); }
.dm-pane--ops { background: var(--navy-900); border-color: var(--navy-700); }
.dm-pane--ops h5 { color: #94A3B8; }
.dm-kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dm-kanban > div { display: grid; gap: 6px; align-content: start; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .04); min-height: 120px; }
.dm-kanban small { color: #94A3B8; font-size: .68rem; font-weight: 700; }
.dm-kcard { padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: .68rem; color: #CBD5E1; }
.dm-kcard b { display: block; }
.dm-kcard.is-me { background: var(--grad); color: #fff; box-shadow: 0 0 0 3px rgba(0, 242, 254, .25); animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.dm-drv { padding: 14px; border-radius: 12px; background: var(--blue-50); }
.dm-drv b { display: block; color: var(--blue-600); }
.dm-drv small { color: var(--muted); }
.dm-drv.is-ok { background: rgba(16, 185, 129, .12); }
.dm-drv.is-ok b { color: #047857; }
.dm-drv.is-pend { background: #FFFBEB; }
.dm-drv.is-pend b { color: #B45309; }
@media (min-width: 1100px) { .dm-trk { grid-template-columns: 1fr 1.6fr 1fr; } }

/* ---------- Administración ---------- */
.dm-roledesc { color: var(--muted); margin-bottom: 12px; }
.dm-mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.dm-mods > div { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; border: 1px dashed #CBD5E1; color: #94A3B8; font-size: .84rem; font-weight: 600; transition: all .25s; }
.dm-mods svg { width: 16px; height: 16px; }
.dm-mods > div.is-on { border-style: solid; border-color: #B9D8FB; background: var(--blue-50); color: var(--ink); }
.dm-mods > div.is-on svg { color: var(--blue); }
@media (min-width: 640px) { .dm-mods { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .dm-mods { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cómo empezamos ---------- */
.dm-start { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dm-start li { display: grid; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.dm-start span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 4px; }
.dm-start small { color: var(--muted); font-size: .84rem; }
@media (min-width: 640px) { .dm-start { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .dm-start { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Preventa ---------- */
.dm-q { display: grid; gap: 12px; }
.dm-q > * { min-width: 0; }
.dm-qcard { display: grid; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; align-content: start; }
.dm-qcard small { color: var(--subtle); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.dm-qcard b { font-size: 1.05rem; }
.dm-qcard p { color: var(--muted); font-size: .88rem; }
.dm-week { padding: 16px; border-radius: 16px; background: var(--navy-900); color: #E2E8F0; text-align: center; }
.dm-week > small { color: #94A3B8; font-weight: 700; font-size: .78rem; }
.dm-week > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; }
.dm-week span { display: grid; gap: 4px; padding: 10px 4px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: .72rem; color: #CBD5E1; }
.dm-week span b { font-size: .86rem; color: #fff; }
.dm-week span.is-cut { background: var(--grad); color: #fff; }
.dm-week span.is-pick { background: rgba(245, 158, 11, .2); color: #FCD34D; }
.dm-week span.is-del { background: rgba(16, 185, 129, .2); color: #6EE7B7; }
.dm-week p { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: .76rem; color: #94A3B8; }
.dm-week p svg { width: 14px; height: 14px; }
@media (min-width: 900px) { .dm-q { grid-template-columns: 1fr 1.3fr 1fr; align-items: center; } }
.dm-model { display: grid; gap: 8px; margin: 0; }
.dm-model > div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.dm-model dt { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--subtle); }
.dm-model dd { margin: 2px 0 0; font-weight: 600; }
.dm-quote { display: grid; gap: 10px; align-content: center; padding: 20px; border-radius: 16px; background: var(--navy-900); color: #E2E8F0; }
.dm-quote small { color: #94A3B8; font-weight: 700; }
.dm-quote p { font-size: 1.08rem; color: #fff; font-weight: 600; }
.dm-quote b { display: flex; gap: 8px; align-items: flex-start; color: #6EE7B7; font-size: .9rem; }
.dm-quote b svg { width: 18px; height: 18px; flex-shrink: 0; }
.dm-sim { display: grid; gap: 18px; }
.dm-sim > * { min-width: 0; }
.dm-prod { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.dm-prod > div { flex: 1; min-width: 0; }
.dm-prod b { display: block; font-size: .92rem; }
.dm-prod small { color: var(--muted); font-size: .8rem; }
.dm-prod em { font-style: normal; font-weight: 800; color: var(--blue); }
.dm-dates { padding: 18px; border-radius: 18px; background: var(--navy-900); color: #E2E8F0; align-self: start; }
.dm-dates > small { color: #94A3B8; font-weight: 700; }
.dm-dates ul { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.dm-dates li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.dm-dates li svg { width: 20px; height: 20px; color: #94A3B8; flex-shrink: 0; }
.dm-dates li span { display: block; font-size: .76rem; color: #94A3B8; }
.dm-dates li b { color: #fff; }
.dm-dates li.is-rel { background: rgba(7, 105, 233, .25); }
.dm-dates li.is-rel svg { color: var(--cyan); }
.dm-dates li.is-del { background: rgba(16, 185, 129, .18); }
.dm-dates li.is-del svg, .dm-dates li.is-del b { color: #6EE7B7; }
.dm-dates .dm-small { color: #94A3B8; }
.dm-dates .dm-ok { background: rgba(16, 185, 129, .16); color: #A7F3D0; }
@media (min-width: 900px) { .dm-sim { grid-template-columns: 1.2fr 1fr; } }
.dm-dashbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dm-clock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dm-clock > svg { width: 18px; height: 18px; color: var(--blue); }
.dm-clock > small { font-weight: 800; color: var(--subtle); font-size: .78rem; margin-right: 4px; }
.dm-kpis { display: grid; gap: 8px; margin: 4px 0 14px; }
.dm-kpis > div { display: grid; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.dm-kpis small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.dm-kpis b { font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dm-kpis span { color: var(--subtle); font-size: .8rem; }
.dm-kpis .is-hi { background: var(--navy-900); border-color: var(--navy-700); }
.dm-kpis .is-hi small, .dm-kpis .is-hi span { color: #94A3B8; }
.dm-kpis .is-hi b { color: #67E8F9; }
@media (min-width: 640px) { .dm-kpis { grid-template-columns: repeat(3, 1fr); } }
.dm-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dm-table table { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 820px; }
.dm-table th, .dm-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dm-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--subtle); background: var(--bg); }
.dm-table td { font-variant-numeric: tabular-nums; }
.dm-table tr.is-ana td { background: rgba(0, 242, 254, .08); }
.dm-table tr.is-ana td:first-child { box-shadow: inset 3px 0 0 var(--cyan); }
.dm-table tr.is-future td { color: #CBD5E1; }
.dm-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dm-flow li { position: relative; display: grid; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.dm-flow li > span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 4px; }
.dm-flow li > span svg { width: 18px; height: 18px; }
.dm-flow b { font-size: .9rem; }
.dm-flow small { color: var(--muted); font-size: .8rem; }
.dm-flow em { font-style: normal; font-size: .74rem; font-weight: 800; color: #0E7490; margin-top: 4px; }
.dm-flow em.dm-cut { color: var(--blue); }
.dm-flow li.is-key { background: var(--navy-900); border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(0, 242, 254, .25); }
.dm-flow li.is-key b { color: #fff; }
.dm-flow li.is-key small { color: #94A3B8; }
.dm-flow li.is-key em { color: #67E8F9; }
.dm-flow li.is-key > span { background: var(--grad); color: #fff; }
@media (min-width: 640px) { .dm-flow { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .dm-flow { grid-template-columns: repeat(6, 1fr); } }
.dm-pilot { align-content: start; }
.dm-pilot b { font-size: 1rem; margin: 6px 0 4px; }
.dm-pilot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dm-pilot li { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--navy-700); }
.dm-pilot li svg { width: 16px !important; height: 16px !important; margin-top: 2px; color: var(--green) !important; flex-shrink: 0; }

/* =========================================================
   COMPACTACIÓN v2 — escritorio bajo, tablet y móvil
   ========================================================= */
.demo-hero { padding: 22px 0 18px; }
.demo-hero .page-hero__title { margin: 10px auto 6px; }
.demo-wrap { padding-top: 18px; padding-bottom: 34px; }
.demo-switch { gap: 10px; margin-bottom: 14px; }
.demo-switch__btn { padding: 11px 14px; gap: 12px; align-items: center; }
.demo-switch__btn b { font-size: .96rem; }
.demo-switch__btn small { font-size: .8rem; line-height: 1.35; }
.demo-switch__icon { width: 36px; height: 36px; border-radius: 10px; }
.demo-switch__icon svg { width: 18px; height: 18px; }
.demo { gap: 12px; }
.demo__head { padding: 16px 18px 0; }
.demo__head h2 { font-size: clamp(1.15rem, .9vw + .9rem, 1.5rem); margin: 4px 0 4px; }
.demo__head p { font-size: .9rem; line-height: 1.5; }
.demo__body { padding: 14px 18px 18px; min-height: 0; }
.demo__nav { padding: 10px 18px; }
.demo__note { margin-top: 10px; font-size: .8rem; }
.dm-toggle { margin-bottom: 12px; }
.dm-h4 { margin: 10px 0 6px; font-size: .74rem; }
.dm-facts { margin-top: 12px; gap: 8px; }
.dm-facts > div { padding: 11px 12px; gap: 3px; }
.dm-facts small { font-size: .78rem; line-height: 1.4; }
.dm-endcta { margin-top: 14px; padding: 14px 16px; }
.dm-phone__screen { height: 330px; padding: 12px; }
.dm-stepper button, .dm-cap { padding: 8px 10px; gap: 10px; }
.dm-chcard { padding: 10px; }
.dm-reto__core { padding: 16px; }
.dm-core__badge { width: 48px; height: 48px; }
.dm-qcard { padding: 14px; }
.dm-quote { padding: 16px; }
.dm-dates { padding: 14px; }
.dm-dates li { padding: 9px 10px; }
.dm-start li { padding: 12px; }
.dm-flow li { padding: 11px; }
.dm-kpis > div { padding: 11px 12px; }
.dm-success { padding: 18px 10px; }
@media (min-width: 1024px) {
  .demo { grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
  .demo__steps button { padding: 6px 10px 6px 7px; font-size: .8rem; }
  .demo__steps button span { width: 22px; height: 22px; }
  .demo__head { padding: 18px 24px 0; }
  .demo__body { padding: 14px 24px 20px; min-height: 300px; }
  .demo__nav { padding: 10px 24px; }
}
/* Escritorios bajos */
@media (min-width: 1024px) and (max-height: 820px) {
  .demo-hero { padding: 14px 0 12px; }
  .demo-hero .page-hero__lead { display: none; }
  .demo-switch__btn small { display: none; }
  .dm-phone__screen { height: 280px; }
}
/* Dos columnas desde tablet (antes desde 860 px) */
@media (min-width: 700px) {
  .dm-grid2, .dm-reto, .dm-sim { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dm-grid2--phone { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .dm-omni { grid-template-columns: 220px minmax(0, 1fr); }
  .dm-pos { grid-template-columns: minmax(0, 1fr) 270px; }
  .dm-poscat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-q { grid-template-columns: 1fr 1.25fr 1fr; align-items: center; }
  .dm-qcard b { font-size: .95rem; }
  .dm-start { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dm-trk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dm-trk .dm-pane--ops { grid-column: 1 / -1; order: -1; }
  .dm-kanban > div { min-height: 84px; }
}
@media (min-width: 1100px) {
  .dm-trk { grid-template-columns: 1fr 1.6fr 1fr; }
  .dm-trk .dm-pane--ops { grid-column: auto; order: 0; }
  .dm-poscat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .dm-phone { max-width: 300px; }
  .dm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Móvil */
@media (max-width: 699px) {
  .demo-hero { padding: 14px 0 10px; }
  .demo-hero .page-hero__lead { font-size: .88rem; }
  .demo-wrap { padding-top: 12px; }
  .demo-switch { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
  .demo-switch__btn { padding: 9px 10px; gap: 8px; }
  .demo-switch__btn small { display: none; }
  .demo-switch__btn b { font-size: .84rem; line-height: 1.25; }
  .demo-switch__icon { width: 30px; height: 30px; border-radius: 9px; }
  .demo-switch__icon svg { width: 16px; height: 16px; }
  .demo__steps button { padding: 5px 10px 5px 5px; font-size: .78rem; }
  .demo__steps button span { width: 22px; height: 22px; }
  .demo__head { padding: 12px 14px 0; }
  .demo__head h2 { font-size: 1.08rem; }
  .demo__head p { font-size: .84rem; }
  .demo__body { padding: 12px 14px 14px; }
  .demo__nav { padding: 8px 12px; gap: 8px; }
  .dm-toggle button { padding: 6px 9px; font-size: .78rem; }
  .dm-tabs { gap: 6px; margin-bottom: 12px; }
  .dm-tabs button { padding: 6px 10px; font-size: .78rem; }
  .dm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-facts > div { padding: 9px 10px; }
  .dm-facts b { font-size: .82rem; line-height: 1.25; }
  .dm-facts small { font-size: .72rem; }
  .dm-facts svg { width: 17px; height: 17px; }
  .dm-start { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dm-start li { padding: 10px; }
  .dm-start small { font-size: .76rem; }
  .dm-start span { width: 26px; height: 26px; font-size: .8rem; }
  .dm-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .dm-flow li { padding: 9px; }
  .dm-flow li > span { width: 30px; height: 30px; }
  .dm-flow b { font-size: .8rem; }
  .dm-flow small { font-size: .72rem; }
  .dm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .dm-kpis > div { padding: 8px; }
  .dm-kpis small { font-size: .66rem; line-height: 1.25; }
  .dm-kpis b { font-size: 1.02rem; }
  .dm-kpis span { font-size: .68rem; }
  .dm-reto__ch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-chcard { flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px; }
  .dm-chcard b { font-size: .82rem; }
  .dm-chcard .dm-ic { width: 32px; height: 32px; border-radius: 9px; }
  .dm-bad { font-size: .72rem; }
  .dm-ref { font-size: .7rem; padding: 2px 6px; }
  .dm-reto__core { padding: 12px; }
  .dm-mini li { padding: 4px 6px; }
  .dm-menu { gap: 8px; padding: 10px; }
  .dm-menu__item { font-size: .78rem; }
  .dm-thumb { aspect-ratio: 16 / 9; }
  .dm-list li { padding: 8px 10px; gap: 10px; }
  .dm-list b { font-size: .84rem; }
  /* Pasos de la tienda / WhatsApp: números en fila y el paso actual debajo */
  .dm-stepper { display: flex; flex-wrap: wrap; gap: 6px; }
  .dm-stepper li { flex: none; }
  .dm-stepper button, .dm-cap { padding: 0; border: 0; background: none; }
  .dm-stepper button > div, .dm-cap > div { display: none; }
  .dm-stepper li:has([aria-current="true"]), .dm-stepper li:has(.is-on) { order: 99; flex: 1 1 100%; }
  .dm-stepper [aria-current="true"], .dm-cap.is-on { padding: 8px 10px; border: 1px solid var(--blue); background: var(--blue-50); }
  .dm-stepper [aria-current="true"] > div, .dm-cap.is-on > div { display: block; }
  .dm-stepper small { font-size: .76rem; }
  .dm-phone { max-width: 300px; border-radius: 28px; padding: 8px; }
  .dm-phone__screen { height: 270px; }
  .dm-phone__bar { border-radius: 20px 20px 0 0; }
  .dm-phone__cta { border-radius: 0 0 20px 20px; padding: 11px; }
  .wa-actions { border-radius: 0 0 20px 20px; }
  .dm-inbox { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; scrollbar-width: none; }
  .dm-inbox small { display: none; }
  .dm-conv { padding: 10px; gap: 8px; }
  .dm-tools { display: none; }
  .dm-poscat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .dm-poscat button { padding: 8px; }
  .dm-poscat b { font-size: .74rem; line-height: 1.25; }
  .dm-poscat span { font-size: .72rem; }
  .dm-poscat svg { width: 16px; height: 16px; }
  .dm-ticket { padding: 12px; }
  .dm-trk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .dm-trk .dm-pane--ops { grid-column: 1 / -1; order: -1; }
  .dm-pane { padding: 10px; }
  .dm-pane h5 { font-size: .72rem; margin-bottom: 8px; }
  .dm-pane .ph-time { gap: 7px; }
  .dm-pane .ph-time li { font-size: .78rem; }
  .dm-drv { padding: 10px; }
  .dm-kanban > div { min-height: 70px; padding: 4px; }
  .dm-mods > div { padding: 7px 9px; font-size: .76rem; }
  .dm-qcard { padding: 12px; }
  .dm-qcard b { font-size: .92rem; }
  .dm-q { gap: 8px; }
  .dm-model > div { padding: 9px 11px; }
  .dm-quote p { font-size: .96rem; }
  .dm-sim { gap: 12px; }
  .dm-dates ul { margin: 8px 0; gap: 6px; }
  .demo__steps button:not([aria-current="step"]) { color: var(--subtle); }
}
@media (max-width: 380px) {
  .dm-poscat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo__nav .btn { font-size: .78rem; padding: 0 10px; }
}

/* =========================================================
   ANIMACIONES (estilo del inicio) — solo transform/opacity
   ========================================================= */
@keyframes dmUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dmPop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes dmPulse { 0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, .45); } 70% { box-shadow: 0 0 0 12px rgba(0, 242, 254, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); } }
@keyframes dmPulseG { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
@keyframes dmDash { to { background-position: 16px 0; } }
@keyframes dmShine { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes dmBreath { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .55; } 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .85; } }
@keyframes dmSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes dmBlink { 50% { opacity: .35; } }

/* Decoración del hero (anillos y orbe, como el inicio) */
.demo-hero { position: relative; overflow: hidden; }
.demo-hero > .container { position: relative; z-index: 1; }
.demo-hero::before, .demo-hero::after { content: ""; position: absolute; left: 50%; top: 50%; pointer-events: none; border-radius: 50%; }
.demo-hero::before { width: 520px; height: 520px; background: radial-gradient(circle, rgba(0, 242, 254, .22), rgba(7, 105, 233, .08) 45%, transparent 70%); transform: translate(-50%, -50%); }
.demo-hero::after { width: 380px; height: 380px; border: 1px dashed rgba(7, 105, 233, .25); transform: translate(-50%, -50%); }

/* El reproductor: borde con degradado y brillo en la barra */
.demo__stage { position: relative; }
.demo__stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); z-index: 2; }
.demo__progress span { position: relative; overflow: hidden; }
.demo__progress span::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: translateX(-100%); }

@media (prefers-reduced-motion: no-preference) {
  .demo-hero::before { animation: dmBreath 6s ease-in-out infinite; }
  .demo-hero::after { animation: dmSpin 40s linear infinite; }
  .demo__progress span::after { animation: dmShine 2.6s ease-in-out infinite; }
  .demo__steps button[aria-current="step"] span { animation: dmPulse 2.2s ease-out infinite; }

  /* Entrada de cada paso: encabezado y bloques escalonados */
  .dm-enter .demo__head > * { animation: dmUp .45s var(--ease) both; }
  .dm-enter .demo__head > :nth-child(2) { animation-delay: .05s; }
  .dm-enter .demo__head > :nth-child(3) { animation-delay: .1s; }
  .dm-enter .demo__body > * { animation: dmUp .5s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * .07s); }
  .dm-enter .demo__body .fx-seq { animation: dmPop .45s var(--ease) both; animation-delay: calc(.22s + var(--j, 0) * .05s); }

  /* Efectos vivos dentro de las escenas */
  .dm-core__badge:not(.dm-core__badge--off), .dm-flow li.is-key > span, .dm-week span.is-cut { animation: dmPulse 2.2s ease-out infinite; }
  .dm-dot--ok, .dm-st--ok::before { animation: dmPulseG 2s ease-out infinite; }
  .dm-st--ia { position: relative; }
  .dm-soft__scr em.is-live { animation: dmBlink 1.2s ease-in-out infinite; }
  .dm-callbtn:not(.dm-callbtn--end) { animation: dmPulseG 1.8s ease-out infinite; }
  .wa-screen > .wa-msg:last-child { animation: dmPop .35s var(--ease) both; transform-origin: left bottom; }
  .wa-screen > .wa-msg--c:last-child { transform-origin: right bottom; }
  .dm-ticket li:last-child { animation: dmPop .3s var(--ease) both; }
  .dm-dates li.is-rel, .dm-dates li.is-del { position: relative; overflow: hidden; }
  .dm-dates li.is-rel::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(0, 242, 254, .18), transparent); animation: dmShine 3s ease-in-out infinite; }
}
/* Pedidos que fluyen: canales → núcleo, y entre etapas del flujo */
@media (min-width: 700px) {
  .dm-reto.is-con .dm-chcard { position: relative; }
  .dm-reto.is-con .dm-chcard::after { content: ""; position: absolute; right: -15px; top: 50%; width: 15px; height: 2px; background: repeating-linear-gradient(90deg, var(--cyan) 0 5px, transparent 5px 8px); background-size: 16px 2px; }
}
@media (min-width: 1100px) {
  .dm-flow li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 28px; width: 10px; height: 2px; z-index: 1; background: repeating-linear-gradient(90deg, var(--blue) 0 4px, transparent 4px 8px); background-size: 16px 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .dm-reto.is-con .dm-chcard::after, .dm-flow li::after { animation: dmDash .7s linear infinite; }
}
/* Miniaturas de producto más bajas (menú de marca y tienda) */
.dm-menu .dm-thumb, .ph-prod .dm-thumb { aspect-ratio: 16 / 9; }
.dm-store .dm-banner { margin: 10px 10px 0; }
@media (max-width: 699px) {
  .dm-facts.dm-pilots { grid-template-columns: minmax(0, 1fr); }
  .dm-pilot { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; }
  .dm-pilot .dm-ic { width: 30px; height: 30px; border-radius: 9px; }
  .dm-pilot b { margin: 0; font-size: .88rem; }
  .dm-pilot ul { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; margin-top: 6px; }
  .dm-pilot li { font-size: .76rem; line-height: 1.35; gap: 5px; }
  .dm-pilot li svg { width: 13px !important; height: 13px !important; }
}
