/* =========================================================
   DATHIUM — aplicaciones de demostración
   Ventana, componentes compartidos y las demos de Facturación,
   CRM, E-learning y Web Studio.
   ========================================================= */
/* ---------- Componentes compartidos ---------- */
.win { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13.5px; color: var(--ink); text-align: left; }
.win--dark { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-d); }
.win__bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: #fff; }
.win__dots { display: flex; gap: 6px; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3e8f2; }
.win__dots i:first-child { background: #ff6b6b; } .win__dots i:nth-child(2) { background: #ffc24b; } .win__dots i:last-child { background: #3ccf7a; }
.win__title { flex: 1; text-align: center; font-weight: 500; }
.win__live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }
.win__live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.win-toast { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--navy-900); color: #fff; font-size: 13.5px; box-shadow: var(--shadow); animation: fadeUp .3s ease; }
.win-toast .i { color: #4ade80; font-size: 18px; }

.app { display: grid; grid-template-columns: 210px 1fr; height: 620px; }
.app__main { min-width: 0; display: flex; flex-direction: column; background: var(--bg-soft); }
.app__view { flex: 1; overflow: auto; padding: 20px; }

.sb { background: var(--navy-900); color: #9aa6c0; padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; }
.sb__brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; font-weight: 700; font-family: var(--font-head); font-size: 15px; }
.sb__logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 12px; background: var(--acc); color: #fff; }
.sb__item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: #9aa6c0; font-size: 13.5px; font-weight: 500; text-align: left; transition: background .2s, color .2s; }
.sb__item .i { font-size: 17px; }
.sb__item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.sb__item.is-active { background: color-mix(in srgb, var(--acc) 22%, transparent); color: #fff; }
.sb__item.is-active .i { color: color-mix(in srgb, var(--acc) 60%, #fff); }
.sb__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line-d); }
.sb__foot b { display: block; color: #fff; font-size: 13px; }
.sb__foot small { font-size: 11.5px; }

.avatar { position: relative; flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #6c8cff, #a37bff); color: #fff; font-weight: 700; font-size: 12.5px; }
.avatar--xs { width: 24px; height: 24px; font-size: 9.5px; }
.avatar--sm { width: 30px; height: 30px; font-size: 11px; }
.avatar--lg { width: 64px; height: 64px; font-size: 20px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar h4 { font-size: 17px; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.icon-btn i { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis--4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi strong { font-family: var(--font-head); font-size: 19px; white-space: nowrap; }
.kpi em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.kpi em.up { color: var(--green); font-weight: 600; }
.kpi__i { position: absolute; top: 12px; right: 12px; color: #b4bfd1; font-size: 17px; }
.kpi--ok .kpi__i { color: var(--green); } .kpi--warn .kpi__i { color: var(--amber); } .kpi--bad .kpi__i { color: var(--red); }

.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: all .15s; }
.chips button:hover { border-color: #c5d0e3; }
.chips button.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 20, 50, .12); }

.seg--full { display: flex; }
.seg--full button { flex: 1; justify-content: center; }

.btn-s { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: all .15s; }
.btn-s:hover:not(:disabled) { border-color: #b9c5da; }
.btn-s--primary { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn-s--primary:hover:not(:disabled) { filter: brightness(1.08); border-color: var(--acc); }
.btn-s--ok { color: var(--green); border-color: #bfe8cf; background: var(--green-50); }
.btn-s--ai { color: #6d4aff; border-color: #ddd3ff; background: #f4f0ff; }
.btn-s--learn { background: var(--c-learn); border-color: var(--c-learn); color: #fff; }

.btn-s--block { width: 100%; }
.link-btn { border: 0; background: none; padding: 0; color: var(--blue-500); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 11px 14px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; color: var(--muted); font-size: 11.5px; }
.tbl tr.is-new td { background: #f3f7ff; animation: fadeUp .4s ease; }
.cell-prod { display: flex; align-items: center; gap: 10px; }
.cell-prod b { display: block; }
.empty { color: var(--muted); text-align: center; padding: 24px; }

.stockbar { width: 110px; height: 6px; border-radius: 99px; background: #edf0f5; overflow: hidden; margin-bottom: 4px; }
.stockbar i { display: block; height: 100%; border-radius: inherit; transition: width .5s; }
.stockbar i.ok { background: var(--green); } .stockbar i.warn { background: #f0a020; } .stockbar i.bad { background: var(--red); }
.stockbar--learn i { background: var(--c-learn); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.card h5 { font-size: 13.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card h5.mt { margin-top: 18px; }
.card--dark { background: rgba(255, 255, 255, .03); border-color: var(--line-d); color: #c4cee3; }
.card--dark h5 { color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split--wide { grid-template-columns: 1.5fr 1fr; }

.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 10px 0; }
.field input, .field select, .field textarea { width: 100%; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 400; font-size: 13.5px; outline: none; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 18%, transparent); }
.field__in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.field__in em { font-style: normal; padding: 0 10px; color: var(--muted); }
.field__in input { border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }

.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #cbd3e1; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--acc); }
.switch input:checked + span::after { transform: translateX(16px); }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--acc) 25%, transparent); border-top-color: var(--acc); animation: spin .8s linear infinite; }
.spinner--sm { width: 14px; height: 14px; border-width: 2px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }

.vchart { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 20px; }
.vchart__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.vchart__col i { width: 100%; max-width: 44px; height: var(--h); min-height: 3px; border-radius: 7px 7px 3px 3px; background: linear-gradient(var(--acc), color-mix(in srgb, var(--acc) 35%, #fff)); transform-origin: bottom; animation: grow .6s ease backwards; }
.vchart__col small { font-size: 11px; color: var(--muted); }
.vchart__val { font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
.vchart--dark .vchart__col i { background: linear-gradient(var(--acc), color-mix(in srgb, var(--acc) 30%, transparent)); }
.vchart--dark .vchart__val { color: #c4cee3; }
.vchart--dark .vchart__col small { color: #8390aa; }

.mbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mbars li { display: grid; grid-template-columns: 28px 100px 1fr 84px; gap: 10px; align-items: center; font-size: 12.5px; }
.mbars__ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.mbars__bar { height: 8px; border-radius: 99px; background: #edf0f5; overflow: hidden; }
.card--dark .mbars__bar { background: rgba(255, 255, 255, .07); }
.mbars__bar i { display: block; height: 100%; border-radius: inherit; transition: width .6s; }
.mbars b { text-align: right; }

/* ---------- Módulo Facturación / ERP ---------- */
.pos { display: grid; grid-template-columns: 1fr 330px; gap: 16px; height: 100%; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 0; background: none; font-size: 13.5px; color: var(--ink); }
.search:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 15%, transparent); }
small.ok { color: var(--green); } small.warn { color: var(--amber); } small.bad { color: var(--red); }
.ptile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); font-weight: 700; font-size: 13px; letter-spacing: .02em; flex: none; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12px; }
.qty button:hover { border-color: var(--acc); color: var(--acc); }
.qty b { min-width: 14px; text-align: center; }
.ticket__total { color: var(--ink); font-weight: 700; font-size: 17px; font-family: var(--font-head); margin-top: 4px; }
.emit { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(3px); animation: fadeUp .25s ease; }

.caja-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); }
.arqueo { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; margin-bottom: 12px; }
.arqueo .i { font-size: 24px; }
.arqueo b { display: block; }
.arqueo small { color: var(--muted); }
.arqueo--ok { background: var(--green-50); color: var(--green); }
.arqueo--warn { background: var(--amber-50); color: var(--amber); }
.arqueo-actions { display: flex; gap: 8px; justify-content: flex-end; }
.moves { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.moves li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.moves li small { display: block; color: var(--muted); font-size: 11px; }
.mv { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; }
.mv--in { background: var(--green-50); color: var(--green); }
.mv--out { background: var(--red-50); color: var(--red); }
.sunat-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border-radius: 16px; background: linear-gradient(100deg, #ecfbf2, #f3f9ff); border: 1px solid #cdeedb; }
.sunat-banner__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--green); color: #fff; font-size: 19px; }
.sunat-banner > span:nth-child(2) { flex: 1; }
.sunat-banner b { display: block; }
.sunat-banner small { color: var(--muted); }
.paytag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--c); white-space: nowrap; }

.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 12.5px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { margin-left: auto; }

/* ---------- Módulo CRM ---------- */
.win--dark .win__bar { background: var(--navy-900); border-color: var(--line-d); color: #8390aa; }
.app--rail { grid-template-columns: 72px 1fr; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; background: var(--navy-950); border-right: 1px solid var(--line-d); }
.rail__logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--acc); color: #fff; margin-bottom: 12px; font-size: 18px; }
.rail__item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 60px; padding: 9px 0; border: 0; border-radius: 12px; background: none; color: #7d89a3; font-size: 10px; font-weight: 600; transition: all .2s; }
.rail__item .i { font-size: 19px; }
.rail__item:hover { color: #fff; }
.rail__item.is-active { background: color-mix(in srgb, var(--acc) 22%, transparent); color: #fff; }
.rail__me { margin-top: auto; }
.app__main--flush { background: var(--navy-850); color: #c4cee3; }
.pad { padding: 20px; height: 100%; overflow: auto; }

.inbox { display: grid; grid-template-columns: 290px 1fr 250px; height: 100%; min-height: 0; }
.inbox > * { min-width: 0; min-height: 0; }
.inbox__list { display: flex; flex-direction: column; border-right: 1px solid var(--line-d); background: var(--navy-900); }
.inbox__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; color: #fff; font-size: 14.5px; }
.inbox__head .icon-btn { background: transparent; border-color: var(--line-d); color: #8390aa; }
.tabs-line { display: flex; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line-d); }
.tabs-line button { padding: 10px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: #8390aa; font-size: 12.5px; font-weight: 600; }
.tabs-line button em { font-style: normal; margin-left: 4px; padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: 11px; }
.tabs-line button.is-active { color: #fff; border-color: var(--acc); }
.convs { list-style: none; margin: 0; padding: 6px; overflow: auto; flex: 1; }
.conv { position: relative; width: 100%; display: flex; gap: 10px; padding: 11px 10px; border: 0; border-radius: 12px; background: none; text-align: left; color: #c4cee3; transition: background .15s; }
.conv:hover { background: rgba(255, 255, 255, .04); }
.conv.is-active { background: color-mix(in srgb, var(--acc) 16%, transparent); }
.conv__body { min-width: 0; flex: 1; }
.conv__top { display: flex; justify-content: space-between; gap: 6px; }
.conv__top b { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv__top small { color: #6f7b95; font-size: 11px; }
.conv__co { display: block; font-size: 11.5px; color: #8390aa; }
.conv__last { display: block; margin-top: 2px; font-size: 12px; color: #94a0b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { position: absolute; right: 10px; bottom: 12px; min-width: 18px; padding: 1px 5px; border-radius: 99px; background: var(--acc); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; text-align: center; }
.chb { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--c); color: #fff; font-size: 10px; border: 2px solid var(--navy-900); }
.chb .i { width: 10px; height: 10px; }
.kcard .chb { position: static; border: 0; width: 22px; height: 22px; }
.kcard .chb .i { width: 12px; height: 12px; }

.thread { display: flex; flex-direction: column; background: var(--navy-850); }
.thread--empty { align-items: center; justify-content: center; gap: 10px; color: #6f7b95; }
.thread--empty .i { font-size: 34px; }
.thread__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-d); }
.thread__head .chb { border-color: var(--navy-850); }
.thread__who { flex: 1; min-width: 0; }
.thread__who b { display: block; color: #fff; }
.thread__who small { color: #8390aa; font-size: 11.5px; }
.assign { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--line-d); color: #8390aa; }
.assign select { border: 0; background: none; color: #c4cee3; font-size: 12.5px; padding: 7px 0; outline: 0; cursor: pointer; }
.assign select option { color: var(--ink); }
.thread__head .btn-s { background: rgba(255, 255, 255, .04); border-color: var(--line-d); color: #c4cee3; }
.thread__head .btn-s--ok { background: rgba(18, 161, 80, .15); border-color: rgba(18, 161, 80, .35); color: #4ade80; }
.msgs { flex: 1; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.msgs__day { text-align: center; margin-bottom: 4px; }
.msgs__day span { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); font-size: 11px; color: #8390aa; }
.msg { max-width: 76%; padding: 9px 12px 18px; border-radius: 16px; font-size: 13px; line-height: 1.5; position: relative; animation: fadeUp .25s ease; }
.msg small { display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; opacity: .75; margin-bottom: 2px; }
.msg time { position: absolute; right: 10px; bottom: 4px; font-size: 10px; opacity: .6; }
.msg--c { align-self: flex-start; background: rgba(255, 255, 255, .07); color: #e4e9f4; border-bottom-left-radius: 4px; }
.msg--a { align-self: flex-end; background: var(--acc); color: #fff; border-bottom-right-radius: 4px; }
.msg--note { align-self: flex-end; background: #fef3c7; color: #6b4b00; border-bottom-right-radius: 4px; padding-bottom: 9px; }
.msg--typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a0b8; animation: blink 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .2s; } .msg--typing i:nth-child(3) { animation-delay: .4s; }
.composer { margin: 0 14px 14px; border-radius: 16px; border: 1px solid var(--line-d); background: var(--navy-900); overflow: hidden; }
.composer--note { background: #2a2410; border-color: rgba(250, 204, 21, .3); }
.composer__tabs { display: flex; gap: 14px; padding: 8px 12px 0; }
.composer__tabs button { border: 0; background: none; padding: 4px 0; font-size: 12px; font-weight: 600; color: #6f7b95; border-bottom: 2px solid transparent; }
.composer__tabs button.is-active { color: #fff; border-color: var(--acc); }
.composer--note .composer__tabs button.is-active { border-color: #facc15; }
.composer textarea { display: block; width: 100%; padding: 10px 12px; border: 0; background: none; color: #e4e9f4; font-size: 13px; resize: none; outline: 0; }
.composer textarea::placeholder { color: #6f7b95; }
.composer__bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line-d); }
.quick { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.quick button { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-d); background: none; color: #94a0b8; font-size: 11.5px; white-space: nowrap; }
.quick button:hover { color: #fff; border-color: #4b5a7a; }
.composer .btn-s--ai { background: rgba(124, 92, 255, .15); border-color: rgba(124, 92, 255, .4); color: #c4b5ff; }

.contact { padding: 16px; border-left: 1px solid var(--line-d); background: var(--navy-900); overflow: auto; }
.contact__card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding-bottom: 14px; border-bottom: 1px solid var(--line-d); }
.contact__card b { color: #fff; margin-top: 6px; }
.contact__card small { color: #8390aa; }
.contact__info { list-style: none; padding: 12px 0; margin: 0; display: grid; gap: 8px; font-size: 12px; border-bottom: 1px solid var(--line-d); }
.contact__info li { display: flex; align-items: center; gap: 8px; color: #94a0b8; }
.contact__info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact h6 { margin: 14px 0 8px; font-family: var(--font); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6f7b95; }
.labels { display: flex; flex-wrap: wrap; gap: 6px; }
.lbl { padding: 3px 9px; border-radius: 99px; border: 1px dashed #3a4763; background: none; color: #6f7b95; font-size: 11.5px; font-weight: 600; }
.lbl.is-on { border-style: solid; color: #fff; }
.lbl--cotizacion.is-on { background: rgba(61, 108, 255, .25); border-color: #3d6cff; }
.lbl--demo.is-on { background: rgba(124, 92, 255, .25); border-color: #7c5cff; }
.lbl--urgente.is-on { background: rgba(220, 53, 69, .25); border-color: #dc3545; }
.lbl--cliente.is-on { background: rgba(18, 161, 80, .25); border-color: #12a150; }
.attrs { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 0 0 14px; font-size: 12px; }
.attrs dt { color: #6f7b95; }
.attrs dd { margin: 0; color: #e4e9f4; text-align: right; }
.contact .btn-s--ai { background: rgba(124, 92, 255, .15); border-color: rgba(124, 92, 255, .4); color: #c4b5ff; }
.ai-sum { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(124, 92, 255, .12); border: 1px solid rgba(124, 92, 255, .3); font-size: 12px; line-height: 1.55; color: #ddd6ff; animation: fadeUp .3s ease; }

.won-total { color: #94a0b8; }
.won-total b { color: #4ade80; font-family: var(--font-head); font-size: 16px; }
.app__main--flush .toolbar .muted { color: #8390aa; display: inline-flex; align-items: center; gap: 6px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.kcol { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-d); border-radius: 16px; padding: 10px; min-height: 420px; }
.kcol--won { background: rgba(18, 161, 80, .06); border-color: rgba(18, 161, 80, .25); }
.kcol__head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 10px; }
.kcol__head b { color: #fff; font-size: 13px; }
.kcol__head small { color: #8390aa; font-size: 11.5px; }
.kcard { padding: 11px; margin-bottom: 8px; border-radius: 12px; background: var(--navy-800); border: 1px solid var(--line-d); animation: fadeUp .3s ease; }
.kcard__top { display: flex; align-items: center; gap: 8px; }
.kcard__top b { color: #fff; font-size: 12.5px; line-height: 1.3; }
.kcard__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.kcard__foot strong { flex: 1; color: #e4e9f4; font-size: 12.5px; }
.kcard__foot button { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 0; background: color-mix(in srgb, var(--acc) 25%, transparent); color: #fff; }
.kcard__foot button:hover { background: var(--acc); }
.kcard__won { color: #4ade80; font-size: 18px; display: grid; }

.auto { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-content: start; }
.auto h5 { color: #fff; font-size: 13.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.rule { padding: 14px; margin-bottom: 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-d); transition: opacity .2s; }
.rule.is-off { opacity: .5; }
.rule__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rule__head b { color: #fff; font-size: 13px; }
.rule__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rf { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; font-size: 11.5px; }
.rf--when { background: rgba(61, 108, 255, .15); color: #a9c0ff; }
.rf--if { background: rgba(250, 204, 21, .12); color: #fde68a; }
.rf--then { background: rgba(18, 161, 80, .15); color: #86efac; }
.rf__sep { color: #4b5a7a; }
.auto__sim .field { color: #c4cee3; }
.auto__sim .field textarea, .auto__sim .field select { background: var(--navy-900); border-color: var(--line-d); color: #e4e9f4; }
.sim-row { display: flex; align-items: flex-end; gap: 12px; }
.sim-row .field { flex: 1; }
.sim-row .check { padding-bottom: 20px; color: #c4cee3; }
.sim-log { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.sim-log li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(18, 161, 80, .1); color: #bbf7d0; font-size: 12.5px; animation: fadeUp .3s ease backwards; }
.sim-log li:nth-child(2) { animation-delay: .15s; } .sim-log li:nth-child(3) { animation-delay: .3s; } .sim-log li:nth-child(4) { animation-delay: .45s; } .sim-log li:nth-child(5) { animation-delay: .6s; }
.sim-log li b { color: #fff; }
.sim-log .log--in { background: rgba(61, 108, 255, .12); color: #c7d6ff; }
.sim-log .log--none { background: rgba(255, 255, 255, .04); color: #94a0b8; }
.app__main--flush .kpi { background: rgba(255, 255, 255, .03); border-color: var(--line-d); }
.app__main--flush .kpi strong { color: #fff; }
.app__main--flush .kpi span, .app__main--flush .kpi em { color: #8390aa; }
.app__main--flush .kpi em.up { color: #4ade80; }
.app__main--flush .kpi__i { color: color-mix(in srgb, var(--acc) 70%, #fff); }

/* ---------- Módulo E-learning ---------- */
.lms { display: flex; flex-direction: column; height: 660px; }
.lms__top { display: flex; align-items: center; gap: 24px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.lms__brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 15px; color: var(--acc); font-weight: 600; }
.lms__brand b { color: var(--ink); }
.lms__nav { display: flex; gap: 18px; flex: 1; font-size: 13px; color: var(--muted); }
.lms__nav span { padding: 6px 0; border-bottom: 2px solid transparent; }
.lms__nav .is-active { color: var(--ink); font-weight: 600; border-color: var(--acc); }
.lms__me { display: flex; align-items: center; gap: 10px; }
.lms__me .avatar { background: linear-gradient(135deg, var(--acc), var(--navy-700)); }
.lms__body { flex: 1; display: grid; grid-template-columns: 250px 1fr; min-height: 0; }
.lms__index { padding: 16px 12px; border-right: 1px solid var(--line); overflow: auto; background: #fff; }
.lms__index h6 { font-family: var(--font); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 8px 10px; }
.idx { margin-bottom: 4px; }
.idx__sec { width: 100%; display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 12.5px; font-weight: 600; }
.idx__sec:hover { background: var(--bg-soft); }
.idx__sec .i { color: var(--muted); transition: transform .2s; }
.idx__sec .i.rot { transform: rotate(90deg); }
.idx ul { list-style: none; padding: 0 0 4px 22px; margin: 0; display: grid; gap: 2px; }
.idx li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; font-size: 12px; color: var(--ink-2); }
.idx li .i { color: #a1abbe; }
.idx li.is-done .i { color: var(--green); }
.lms__main { min-width: 0; display: flex; flex-direction: column; background: var(--bg-soft); }
.course-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; color: #fff; background: radial-gradient(500px 200px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(120deg, var(--navy-800), var(--acc) 70%, #9db6dc); }
.course-head small { opacity: .85; font-size: 12px; }
.course-head h4 { font-size: 19px; margin-top: 2px; }
.course-prog { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.course-prog b { display: block; font-size: 13.5px; }
.course-prog small { opacity: .85; }
.ring-s { position: relative; width: 46px; height: 46px; }
.ring-s svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-s circle { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 4; }
.ring-s .fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: calc(100.5 - 100.5 * var(--p) / 100); transition: stroke-dashoffset .6s; }
.ring-s > b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; }
.lms__tabs { display: flex; gap: 4px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.lms__tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 11px 12px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lms__tabs button.is-active { color: var(--acc); border-color: var(--acc); }
.lms__view { flex: 1; overflow: auto; padding: 18px 20px; }
.csec { margin-bottom: 14px; padding: 6px 14px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.csec h5 { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14px; border-bottom: 1px solid #eef1f6; }
.csec h5 small { font-family: var(--font); font-size: 11.5px; color: var(--muted); font-weight: 500; }
.csec ul { list-style: none; padding: 0; margin: 0; }
.act { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f2f4f8; }
.act:last-child { border-bottom: 0; }
.act__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; font-size: 17px; flex: none; }
.act__ico--content { background: #2458a6; }
.act__ico--assess { background: #0284c7; }
.act__ico--collab { background: #4f46e5; }
.act__body { flex: 1; min-width: 0; }
.act__body small { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.act__body b { display: block; font-size: 13.5px; color: var(--ink); }
.act__body em { font-style: normal; font-size: 12px; color: var(--muted); }
.act__file { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 11.5px; color: var(--blue-600); }
.act__state { display: flex; align-items: center; gap: 8px; flex: none; }
.done-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.done-btn:hover { border-color: var(--green); color: var(--green); }
.done-btn.is-done { background: var(--green-50); border-color: #bfe8cf; color: var(--green); }
.grade { font-weight: 700; font-size: 13px; padding: 4px 9px; border-radius: 8px; }
.grade.ok { color: var(--green); background: var(--green-50); }
.grade.bad { color: var(--red); background: var(--red-50); }
.quiz { display: grid; grid-template-columns: 1fr 210px; gap: 16px; }
.quiz__q { display: grid; grid-template-columns: 130px 1fr; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.quiz__info { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: #fafbfd; border-right: 1px solid var(--line); font-size: 12px; }
.quiz__info b { font-size: 14px; }
.quiz__info small { color: var(--muted); }
.quiz__body { padding: 18px; background: #f6f9fd; }
.quiz__body > p { font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
.opts-q { display: grid; gap: 8px; }
.opts-q label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13.5px; transition: all .15s; }
.opts-q label:hover { border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); }
.opts-q label.is-sel { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 7%, #fff); }
.opts-q input { accent-color: var(--acc); }
.opts-q span { font-weight: 600; color: var(--muted); }
.quiz-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.quiz__nav { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; font-size: 12px; color: var(--muted); }
.quiz__nav h6 { font-family: var(--font); font-size: 12.5px; color: var(--ink); }
.qnav { display: flex; gap: 6px; }
.qnav button { position: relative; width: 32px; height: 38px; border-radius: 8px; border: 1px solid #cbd3e1; background: #fff; font-size: 12px; font-weight: 600; overflow: hidden; }
.qnav button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: #edf0f5; }
.qnav button.is-ans::after { background: #9aa6bd; }
.qnav button.is-cur { border-color: var(--acc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc) 25%, transparent); }
.quiz__nav small { display: flex; align-items: center; gap: 6px; }
.quiz-result__score { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; margin-bottom: 14px; }
.quiz-result__score > .i { font-size: 34px; }
.quiz-result__score small { display: block; font-size: 12px; opacity: .8; }
.quiz-result__score b { display: block; font-size: 16px; }
.quiz-result__score em { font-style: normal; font-size: 13px; }
.quiz-result__score.ok { background: var(--green-50); color: var(--green); }
.quiz-result__score.bad { background: var(--red-50); color: var(--red); }
.review { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.review li { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid; font-size: 13px; display: grid; gap: 4px; }
.review li.ok { border-left-color: var(--green); } .review li.bad { border-left-color: var(--red); }
.review li b { display: flex; gap: 8px; align-items: flex-start; }
.review li.ok b .i { color: var(--green); } .review li.bad b .i { color: var(--red); }
.review li small { color: var(--muted); background: var(--bg-soft); padding: 6px 10px; border-radius: 8px; }
.t-ok { color: var(--green); } .t-bad { color: var(--red); }
.tbl__total td { background: #fafbfd; }
.cert-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.cert-req { padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.cert-req h6 { font-size: 13.5px; margin-bottom: 10px; }
.cert-req ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.cert-req li { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); }
.cert-req li .i { font-size: 18px; color: #a1abbe; }
.cert-req li.ok { color: var(--ink); }
.cert-req li.ok .i { color: var(--green); }
.cert-req li small { display: block; color: var(--muted); }
.cert-req .link-btn { display: block; margin: 10px auto 0; color: var(--acc); }
.cert { position: relative; padding: 10px; border-radius: 16px; background: linear-gradient(135deg, #dbeafe, #fff, #dbeafe); box-shadow: var(--shadow-sm); }
.cert__inner { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 22px; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--acc) 45%, #fff); background: #fcfdff; text-align: center; font-size: 12.5px; color: var(--ink-2); }
.cert__seal { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 26px; margin-bottom: 6px; }
.cert__inner > small { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--acc); }
.cert__name { font-family: Georgia, serif; font-size: 24px; color: var(--ink); margin: 2px 0 4px; font-style: italic; }
.cert__inner > strong { font-family: var(--font-head); font-size: 16px; color: var(--ink); }
.cert__foot { display: flex; justify-content: center; gap: 24px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--muted); }
.cert__foot b { color: var(--ink); font-size: 12.5px; }
.cert.is-locked .cert__inner { filter: blur(3px) grayscale(.6); opacity: .6; }
.cert__lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.cert__lock .i { font-size: 30px; color: var(--acc); }

/* ---------- Responsive de las aplicaciones de demostración ---------- */
@media (max-width: 1180px) {
  .inbox { grid-template-columns: 260px 1fr; }
  .contact { display: none; }
  .pos { grid-template-columns: 1fr 300px; }
}
@media (max-width: 920px) {
  /* El menú lateral de cada app pasa arriba como pestañas */
  .app, .app--rail { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; }
  .sb, .rail { flex-direction: row; align-items: center; overflow-x: auto; padding: 8px; gap: 4px; scrollbar-width: none; }
  .sb__brand, .sb__foot, .rail__logo, .rail__me { display: none; }
  .sb__item { flex: none; padding: 8px 12px; }
  .rail__item { flex: none; width: auto; flex-direction: row; gap: 6px; padding: 8px 12px; font-size: 12px; }
  .app__view { max-height: 640px; }
  .pos { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .inbox__list { max-height: 250px; border-right: 0; border-bottom: 1px solid var(--line-d); }
  .thread { height: 460px; }
  .pad { height: auto; max-height: 640px; }
  .auto { grid-template-columns: 1fr; }
  .split, .split--wide { grid-template-columns: 1fr; }
  .lms { height: auto; }
  .lms__body { grid-template-columns: 1fr; }
  .lms__index { display: none; }
  .lms__view { max-height: 600px; }
  
  
  
}
@media (max-width: 640px) {
  .kpis { gap: 6px; }
  .kpi { padding: 9px 10px; }
  .kpi strong { font-size: 15px; }
  .kpis--4 { grid-template-columns: 1fr 1fr; }
  .win { border-radius: 16px; font-size: 13px; }
  .win__title { display: none; }
  .win__bar { justify-content: space-between; }
  .app__view, .pad, .lms__view { padding: 14px; }
  .topbar { padding: 12px 14px; }
  .topbar .chip { display: none; }
  .mbars li { grid-template-columns: 28px 1fr 74px; }
  .mbars__bar { grid-column: 2 / 4; grid-row: 2; }
  .thread__head { flex-wrap: wrap; }
  .thread__who { flex-basis: calc(100% - 50px); }
  .assign { flex: 1; }
  .msg { max-width: 88%; }
  .composer__bar { flex-wrap: wrap; }
  .quick { flex-basis: 100%; }
  .composer__bar .btn-s { flex: 1; }
  .kanban { grid-template-columns: repeat(4, 200px); }
  .kcol { min-height: 300px; }
  .lms__top { gap: 10px; padding: 10px 14px; }
  .lms__nav { display: none; }
  .lms__me { margin-left: auto; }
  .course-head { flex-direction: column; align-items: flex-start; padding: 16px; }
  .act { flex-wrap: wrap; }
  .act__state { margin-left: 48px; }
  .quiz, .quiz__q, .cert-wrap { grid-template-columns: 1fr; }
  .quiz__info { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  
  
  
  
  
  
  
}

/* ---------- Punto de venta y cobro (pos-kit.js) ---------- */
.i.flip { transform: rotate(180deg); }
.pk { display: grid; grid-template-columns: 1fr 320px; gap: 14px; min-height: 480px; font-size: 13.5px; }
.pk > * { min-width: 0; }
.pk__cat { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pk__tools { display: flex; gap: 8px; }
.pk__search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.pk__search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: none; }
.pk__search:focus-within { border-color: var(--acc); }
.pk__new { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--navy-900); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pk__cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pk__cats button { flex: none; padding: 11px 18px; border: 0; border-radius: 12px; background: #8a96ab; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px; transition: background .15s; }
.pk__cats button.is-on { background: var(--navy-900); }
.pk__low { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: var(--amber-50); color: #7a4a00; font-size: 12.5px; }
.pk__low b { font-weight: 600; }
.pk__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; max-height: 470px; overflow-y: auto; padding: 2px; }
.pcard2 { position: relative; display: flex; flex-direction: column; border-radius: 16px; border: 1.5px solid #edf1f7; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pcard2:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pcard2.is-sel { border-color: var(--navy-900); }
.pcard2.is-out { opacity: .5; }
.pcard2__badge { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--navy-900); color: #fff; font-size: 12px; font-weight: 800; }
.pcard2__main { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 4px; border: 0; background: none; text-align: left; }
.pcard2__main b { min-height: 2.7em; font-size: 13px; line-height: 1.35; }
.pcard2__main strong { text-align: center; font-size: 14.5px; }
.pcard2__code { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 11px; color: var(--muted); }
.pcard2__code em { padding: 1px 7px; border-radius: 99px; background: var(--bg-soft); font-style: normal; font-weight: 700; color: var(--ink-2); }
.pcard2__acts { display: flex; justify-content: center; gap: 8px; padding: 6px 8px 10px; }
.pcard2__acts button { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 12px; border: 1px solid #e6ebf3; background: #fff; color: var(--muted); }
.pcard2__acts button:hover { color: var(--acc); border-color: var(--acc); }
.pthumb { position: relative; display: grid; place-items: center; height: 110px; border-radius: 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, #fff), color-mix(in srgb, var(--c) 6%, #fff)); color: var(--c); font-size: 40px; }
.pthumb .i { width: 46px; height: 46px; stroke-width: 1.5; }
.pthumb em { position: absolute; bottom: 8px; right: 10px; padding: 2px 7px; border-radius: 8px; background: #fff; font-style: normal; font-size: 11px; font-weight: 700; color: var(--c); }
.pthumb--img { overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pthumb--img img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.pthumb--book { background: #f3f5f9; }
.pthumb--book::before { content: ""; width: 62%; height: 88%; border-radius: 3px 8px 8px 3px; background: linear-gradient(90deg, rgba(0, 0, 0, .25) 0 7%, transparent 7% 10%, rgba(255, 255, 255, .08) 10%), var(--c); box-shadow: 2px 4px 10px -4px rgba(0, 0, 0, .5); }
.pthumb--book em { top: 18px; bottom: auto; right: auto; background: none; color: rgba(255, 255, 255, .8); font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.pk__cart { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: #f6f8fc; border: 1px solid #edf1f7; }
.pk__lines { flex: 1; display: grid; gap: 8px; align-content: start; max-height: 360px; overflow-y: auto; }
.pk__line { padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #edf1f7; animation: fadeUp .25s ease; }
.pk__line-h { display: flex; justify-content: space-between; gap: 8px; }
.pk__line-h b { font-size: 13px; line-height: 1.35; }
.pk__line-h button { flex: none; width: 26px; height: 26px; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.pk__line-h button:hover { background: var(--red-50); color: var(--red); }
.pk__line-b { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.pk__step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pk__step button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: #fff; }
.pk__step b { min-width: 34px; text-align: center; border-inline: 1px solid var(--line); line-height: 32px; }
.pk__price { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.pk__price em { font-style: normal; color: var(--muted); font-size: 12px; }
.pk__price input { width: 80px; padding: 7px 0; border: 0; outline: 0; background: none; text-align: right; font-weight: 700; font-size: 14px; }
.pk__price--lg input { width: 100%; text-align: left; font-size: 20px; }
.pk__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 10px; color: #9aa6bd; text-align: center; }
.pk__empty .i { font-size: 30px; }
.pk__client { display: flex; gap: 6px; }
.pk__cli { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 12px; border: 0; border-radius: 12px; background: #eef1f6; text-align: left; font-size: 12.5px; }
.pk__cli span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk__cli-add { width: 40px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pk__pay { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 15px; border: 0; border-radius: 16px; background: var(--navy-900); color: #fff; font-weight: 800; letter-spacing: .04em; font-size: 14px; transition: filter .15s; }
.pk__pay b { font-family: var(--font-head); font-size: 17px; letter-spacing: 0; }
.pk__pay:hover:not(:disabled) { filter: brightness(1.2); }
.pk--pay { grid-template-columns: 1fr 330px; }
.pk__payl { display: flex; flex-direction: column; gap: 10px; }
.pk__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid #edf1f7; }
.pk__docs { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pk__docs button { padding: 8px 12px; border: 0; background: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.pk__docs button.is-on { background: var(--navy-900); color: #fff; }
.pk__warn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--amber-50); color: #7a4a00; font-size: 12.5px; }
.pk__warn button { padding: 4px 10px; border: 0; border-radius: 8px; background: #fff; font-weight: 700; color: var(--amber); }
.pk__warn--info { background: var(--blue-50); color: var(--blue-600); }
.pk__amount { padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #edf1f7; text-align: center; }
.pk__amount small { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pk__amount b { display: block; font-family: var(--font-head); font-size: clamp(30px, 4vw, 42px); }
.pk__box { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #edf1f7; }
.pk__box-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pk__box-h small { display: block; font-size: 12px; color: var(--muted); }
.pk__disc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.pk__disc button { padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.pk__disc button.is-on { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.pk__disc span { margin-left: auto; color: var(--green); }
.pk__methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.pk__methods button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 12px; border: 1.5px solid #edf1f7; background: #fff; font-size: 12.5px; font-weight: 600; }
.pk__methods button > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: #fff; font-size: 19px; }
.pk__methods button.is-on { border-color: var(--navy-900); background: #f3f5f9; }
.pk__methods button i { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: 10px; }
.pk__split { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--bg-soft); }
.pk__cash { display: grid; grid-template-columns: 1fr 170px; gap: 10px; margin-top: 12px; }
.pk__cash small { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pk__quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pk__quick button { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; }
.pk__change { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 12px; border-radius: 12px; background: #f0fae4; border: 1px solid #cfe9b1; }
.pk__change b { font-family: var(--font-head); font-size: 26px; color: #4d8a12; }
.pk__change.is-bad { background: var(--red-50); border-color: #f5c2c7; }
.pk__change.is-bad b { color: var(--red); }
.pk__sum { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #edf1f7; }
.pk__sum-h { display: flex; justify-content: space-between; }
.pk__sum-h small { color: var(--muted); }
.pk__sum-c { display: grid; gap: 2px; padding: 10px 0; border-block: 1px solid #edf1f7; font-size: 12.5px; }
.pk__sum-c small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pk__sum-l { flex: 1; display: grid; gap: 8px; align-content: start; margin: 0; padding: 0; list-style: none; max-height: 180px; overflow-y: auto; }
.pk__sum-l li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; font-size: 12.5px; }
.pk__sum-l em { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 8px; background: var(--bg-soft); font-style: normal; font-weight: 700; }
.pk__sum-t { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding-top: 10px; border-top: 1px solid #edf1f7; color: var(--muted); }
.pk__sum-t b { margin-top: 6px; font-family: var(--font-head); font-size: 22px; color: var(--ink); }
.pk__confirm { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 15px; border: 0; border-radius: 16px; background: #5aa312; color: #fff; font-weight: 800; letter-spacing: .04em; box-shadow: 0 12px 24px -12px #5aa312; }
.pk__cancel { border: 0; background: none; color: var(--muted); font-size: 13px; }
.pk--done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 380px; text-align: center; }
.pk--done h4 { font-size: 20px; }
.pk__ok { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--green-50); color: var(--green); font-size: 38px; animation: fadeUp .4s ease; }
.pk__num { font-family: var(--font-head); font-size: 18px; color: var(--acc); }
.pk__done-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0; }
.pk__done-grid span { padding: 10px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 12px; color: var(--muted); }
.pk__done-grid b { display: block; font-size: 14px; color: var(--ink); }

/* ---------- Secuencia de uso en las demos de rubro ---------- */
.rbx__steps { display: flex; gap: 4px; margin: 0; padding: 10px 14px; list-style: none; overflow-x: auto; border-bottom: 1px solid #edf1f7; scrollbar-width: none; counter-reset: st; }
.rbx__steps li { flex: 1 0 auto; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: #9aa6bd; white-space: nowrap; counter-increment: st; transition: all .2s; }
.rbx__steps li::before { content: counter(st); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #edf1f7; font-size: 11px; }
.rbx__steps li.is-done { color: var(--green); }
.rbx__steps li.is-done::before { content: "✓"; background: var(--green); color: #fff; }
.rbx__steps li.is-cur { background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); }
.rbx__steps li.is-cur::before { background: var(--acc); color: #fff; }

/* ---------- Restaurante (app de mozo) ---------- */
.mz { display: grid; gap: 12px; }
.mz__nav { display: flex; gap: 6px; padding: 8px; border-radius: 16px; background: #0f3d33; overflow-x: auto; scrollbar-width: none; }
.mz__nav button { flex: none; padding: 9px 14px; border: 0; border-radius: 12px; background: #1b5446; color: #d6efe7; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; }
.mz__nav button.is-on { background: #f59e0b; color: #fff; }
.mz__nav button em { margin-left: 6px; padding: 1px 6px; border-radius: 99px; background: #fff; color: #b45309; font-style: normal; font-size: 11px; }
.mz__body { display: grid; grid-template-columns: 1fr 280px; gap: 12px; }
.mz__body > * { min-width: 0; }
.mz__panel { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #edf1f7; }
.mz__show { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; }
.mz__show label { display: inline-flex; align-items: center; gap: 6px; }
.mz__show input { accent-color: #16a34a; }
.mz__floors { display: flex; gap: 16px; margin: 12px 0; border-bottom: 1px solid #edf1f7; }
.mz__floors button { padding: 8px 2px; border: 0; border-bottom: 2px solid transparent; background: none; font-weight: 600; color: var(--muted); }
.mz__floors button.is-on { color: #16a34a; border-color: #16a34a; }
.mz__tables { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mz__t { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; border: 2px solid transparent; font-family: var(--font-head); font-size: 22px; font-weight: 800; transition: transform .15s; }
.mz__t small { position: absolute; bottom: 8px; font-family: var(--font); font-size: 10.5px; font-weight: 600; }
.mz__t:hover { transform: translateY(-2px); }
.mz__t.is-sel { border-color: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .2); }
.st-libre { background: #e3f1ea; color: #14532d; }
.st-pend { background: #fde2e2; color: #b42318; }
.st-serv { background: #fdebd3; color: #b45309; }
.st-pre { background: #dbeafe; color: #1d4a8e; }
.st-off { background: #eef1f6; color: #9aa6bd; }
.mz__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; font-size: 11.5px; color: var(--ink-2); }
.mz__legend span { display: inline-flex; align-items: center; gap: 6px; }
.mz__legend i { width: 14px; height: 14px; border-radius: 4px; }
.mz__side h5 { font-family: var(--font-head); font-size: 18px; }
.mz__side h5 small { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }
.mz__field { display: grid; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.mz__field input, .mz__field select, .mz__field textarea { width: 100%; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink); }
.mz__btn { width: 100%; margin-top: 12px; padding: 12px; border: 0; border-radius: 12px; background: #16a34a; color: #fff; font-weight: 700; }
.mz__btn--alt { background: #1d4a8e; }
.mz__btn--dark { background: var(--navy-900); }
.mz__btn:disabled { opacity: .45; }
.mz__menu { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mz__menu button { padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; text-align: left; }
.mz__menu button b { display: block; color: #16a34a; }
.mz__cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mz__cats button { flex: none; padding: 6px 12px; border-radius: 99px; border: 0; background: #eef1f6; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.mz__cats button.is-on { background: #0f3d33; color: #fff; }
.mz__order { display: grid; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.mz__order li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #f6f8fc; font-size: 12.5px; }
.mz__order li em { font-style: normal; color: var(--muted); }

/* ---------- Hotel (recepción) ---------- */
.ht { display: grid; gap: 12px; }
.ht__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #edf1f7; }
.ht__head b { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.ht__filters { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }
.ht__filters select, .ht__filters input { width: 100%; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; }
.ht__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.room { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; font-size: 12.5px; animation: fadeUp .3s ease; }
.room__type { font-size: 11.5px; color: #8a96ab; }
.room__n { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 24px; font-weight: 800; }
.room__n .i { width: 24px; height: 24px; }
.room__row { display: flex; align-items: center; gap: 6px; }
.room__amen { color: var(--ink-2); line-height: 1.5; }
.room__msg { text-align: center; color: var(--ink-2); }
.room__msg b { display: flex; justify-content: center; align-items: center; gap: 6px; color: #ea580c; font-size: 13.5px; }
.room__acts { display: flex; gap: 6px; margin-top: auto; }
.room__btn { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 10px; border: 0; border-radius: 12px; color: #fff; font-weight: 700; font-size: 12.5px; }
.room__btn--ok { background: #5aa312; }
.room__btn--out { background: #dc2626; }
.room__btn--clean { background: #0ea5e9; }
.room__btn--key { flex: none; width: 42px; background: #dc2626; }
.room__btn--mod { flex: none; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.room--libre { background: #e5f5e5; }
.room--ocupada { background: #fde4ea; }
.room--mant { background: #fff1e0; }
.room--limpieza { background: #e0f0fd; }
.ht__modal { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; background: rgba(10, 31, 68, .45); backdrop-filter: blur(2px); animation: fadeUp .2s ease; }
.ht__dialog { width: min(420px, 100%); max-height: 100%; overflow-y: auto; padding: 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); }
.ht__dialog h5 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-family: var(--font-head); font-size: 17px; }
.ht__dialog h5 button { border: 0; background: none; color: var(--muted); }

@media (max-width: 1080px) {
  .pk, .pk--pay, .mz__body { grid-template-columns: 1fr; }
  .pk__grid { max-height: 380px; }
}
@media (max-width: 640px) {
  .pk__grid { grid-template-columns: repeat(2, 1fr); }
  .pthumb { height: 86px; }
  .pk__methods { grid-template-columns: repeat(2, 1fr); }
  .pk__cash { grid-template-columns: 1fr; }
  .pk__docs { margin-left: 0; }
  .pk__new { display: none; }
  .mz__tables { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .mz__t { font-size: 17px; }
  .ht__filters { grid-template-columns: 1fr 1fr; }
  .ht__filters input { grid-column: 1 / -1; grid-row: 1; }
  .ht__grid { grid-template-columns: 1fr 1fr; }
  .room__n { font-size: 19px; }
}

/* ---------- Dashboard del sistema de facturación ---------- */
.db__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.db__kpi { min-width: 0; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.db__kpi small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.db__kpi > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 2px; }
.db__kpi b { font-family: var(--font-head); font-size: 20px; white-space: nowrap; }
.db__kpi em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.db__kpi em.up { color: var(--green); }
.db__kpi em.down { color: var(--red); }
.db__spark { width: 70px; height: 32px; flex: none; }
.db__spark path { fill: none; stroke: var(--blue-500); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.db__spark path.fill { fill: rgba(36, 88, 166, .1); stroke: none; }
.db__grid { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 12px; }
.db__grid h5 { flex-direction: column; align-items: flex-start; gap: 0; }
.db__grid h5 small { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }
.db__grid .ring { width: 150px; height: 150px; }
.db__grid .ring span { inset: 20px; }
.db__legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.db__legend span { display: inline-flex; align-items: center; gap: 6px; }
.db__legend i { width: 9px; height: 9px; border-radius: 50%; }
.db__chart { display: block; width: 100%; height: 200px; margin-top: 10px; overflow: visible; }
.db__chart line { stroke: #eef1f6; stroke-dasharray: 4 5; }
.db__plot { position: relative; margin-top: 10px; }
.db__plot .db__chart { margin-top: 0; }
.db__chart path { fill: none; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.db__chart .area { fill: url(#dbFill); stroke: none; }
.db__chart .nv { stroke: var(--navy-900); stroke-width: 2; }
.db__chart .cp { stroke: #6b8fc9; stroke-width: 2; }
.db__chart .tt { stroke: var(--blue-500); stroke-width: 3.2; }
.db__chart path:not(.area) { stroke-dasharray: 2000; animation: dbDraw 1.6s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes dbDraw { from { stroke-dashoffset: 2000; } }
.db__dot { position: absolute; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(36, 88, 166, .2); transform: translateY(-50%); }
.db__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--blue-500); animation: moWave 1.8s ease-out infinite; }
.db__low { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; max-height: 220px; overflow-y: auto; }
.db__low li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef1f6; font-size: 12.5px; text-transform: uppercase; }
.db__low b.bad { color: var(--red); }
.db__low b.warn { color: var(--amber); }
@media (max-width: 1080px) {
  .db__kpis { grid-template-columns: 1fr 1fr; }
  .db__grid { grid-template-columns: 1fr; }
}
.ht > *, .mz > *, .pk__payl > * { min-width: 0; }
@media (max-width: 640px) {
  .ht__head { flex-wrap: wrap; gap: 8px; }
  .db__kpis { grid-template-columns: 1fr; }
  #dbMonth button { padding: 6px 8px; font-size: 11.5px; }
}
.ht__grid > * { min-width: 0; }
.room__msg { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .room { padding: 10px; }
  .room__acts { flex-wrap: wrap; }
  .room__btn { padding: 9px 6px; font-size: 12px; }
}

/* =========================================================
   App móvil: misiones + celular interactivo
   ========================================================= */
.am { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; max-width: 1080px; margin: 0 auto; }
.am__side h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.am__side > p.muted { margin-top: 10px; }
.am__missions { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.am__m { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.am__m.is-on { border-color: color-mix(in srgb, var(--acc) 45%, #fff); box-shadow: var(--shadow-sm); }
.am__m > button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: none; text-align: left; }
.am__m > button > .i { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); }
.am__m > button b { display: block; font-size: 15px; }
.am__m > button small { color: var(--muted); font-size: 12.5px; }
.am__m > button i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: var(--acc); transition: width .4s; }
.am__m.is-done > button > .i { background: var(--green-50); color: var(--green); }
.am__m.is-done > button i { background: var(--green); }
.am__m ol { list-style: none; margin: 0; padding: 0 16px 14px 66px; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.am__m ol li { display: flex; align-items: center; gap: 8px; }
.am__m ol .i { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; border: 1.5px solid var(--line); color: transparent; }
.am__m ol li.ok { color: var(--muted); text-decoration: line-through; }
.am__m ol li.ok .i { background: var(--green); border-color: var(--green); color: #fff; }
.am__stage { display: grid; justify-items: center; gap: 10px; }
.am__note { display: flex; align-items: center; gap: 6px; min-height: 20px; font-size: 12.5px; color: var(--muted); text-align: center; }
.am__note .i { color: var(--blue-500); flex: none; }

.ph { --app: #2458a6; --pbg: #f3f5f9; --pcard: #fff; --pink: #0d1424; --pmut: #6b7385; --pline: #e6e9f0;
  position: relative; width: 340px; height: 680px; padding: 12px; border-radius: 50px; background: #0b1220;
  box-shadow: 0 0 0 2px #2a3446, var(--shadow-lg); }
.ph.is-dark { --pbg: #0f1522; --pcard: #182033; --pink: #eef2f8; --pmut: #8c96aa; --pline: #263049; }
.ph__notch { position: absolute; top: 22px; left: 50%; z-index: 4; width: 92px; height: 24px; border-radius: 16px; background: #0b1220; transform: translateX(-50%); }
.ph__screen { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 38px; overflow: hidden; background: var(--pbg); color: var(--pink); font-size: 13px; line-height: 1.4; }
@keyframes phIn { from { opacity: 0; transform: translateX(10px); } }
.ph button { font: inherit; color: inherit; cursor: pointer; }
.ph .i { width: 16px; height: 16px; }
@keyframes phSpin { to { transform: rotate(360deg); } }
@keyframes phPop { from { transform: scale(.4); opacity: 0; } }
@keyframes phUp { from { transform: translateY(100%); } }
.ph__cam { position: absolute; inset: 12px; z-index: 5; display: none; place-content: center; justify-items: center; gap: 18px; border-radius: 38px; background: radial-gradient(circle at 50% 40%, #2b3548, #05080f); color: #fff; }
.ph__cam.is-on { display: grid; animation: phIn .2s; }
.ph__frame { position: relative; width: 210px; height: 120px; border: 2px solid rgba(255,255,255,.85); border-radius: 16px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 2px, transparent 2px 5px, rgba(255,255,255,.75) 5px 6px, transparent 6px 10px) center / 150px 70px no-repeat; }
.ph__frame i { position: absolute; left: 8px; right: 8px; top: 10%; height: 2px; background: #ef4444; box-shadow: 0 0 12px #ef4444; animation: phScan 1.2s ease-in-out infinite alternate; }
@keyframes phScan { to { top: 88%; } }
.ph__cam small { font-size: 12.5px; opacity: .8; }
.ph__toast { position: absolute; left: 50%; bottom: 90px; z-index: 6; width: max-content; max-width: 280px; padding: 9px 14px; border-radius: 12px; background: rgba(13, 20, 36, .92); color: #fff; font-size: 12.5px; text-align: center; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; transition: all .25s; }
.ph__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.vers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; }
.vers__card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.vers__card--pro { border-color: color-mix(in srgb, var(--acc) 45%, #fff); box-shadow: var(--shadow); }
.vers__tag { position: absolute; top: 20px; right: 20px; padding: 4px 10px; border-radius: 99px; background: var(--acc); color: #fff; font-size: 11.5px; font-weight: 700; }
.vers__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); }
.vers__ico .i { width: 24px; height: 24px; }
.vers__card h3 { margin-top: 16px; font-size: 22px; }
.vers__price { margin: 4px 0 8px; color: var(--muted); }
.vers__price b { font-size: 26px; color: var(--ink); font-weight: 800; }
.vers__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.vers__list li { display: flex; gap: 10px; font-size: 14.5px; }
.vers__list .i { flex: none; margin-top: 3px; color: var(--blue-500); }
.vers__foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.amf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.amf > div { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: transform .2s, box-shadow .2s; }
.amf > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.amf span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); }
.amf b { display: block; margin-top: 14px; font-size: 15.5px; }
.amf p { margin-top: 6px; font-size: 14px; color: var(--muted); }

@media (max-width: 980px) {
  .am { grid-template-columns: 1fr; gap: 28px; }
  .am__stage { order: -1; }
  .amf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vers, .amf { grid-template-columns: 1fr; }
  .ph { width: min(340px, 100%); height: 640px; }
}

/* Restaurante: tablero de cocina, notas por plato y cobro rápido */
.kb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kb__col { display: grid; align-content: start; gap: 8px; min-height: 180px; padding: 10px; border-radius: 12px; background: #f6f8fc; }
.kb__col h6 { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-family: var(--font); font-size: 12.5px; color: var(--ink-2); }
.kb__col h6 .i { width: 14px; height: 14px; }
.kb__col h6 em { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: #fff; font-style: normal; font-size: 11px; }
.kb__col--0 h6 { color: #2458a6; }
.kb__col--1 h6 { color: #d97706; }
.kb__col--2 h6 { color: #7c3aed; }
.kb__col--3 h6 { color: var(--green); }
.kb__card { padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-top: 3px solid currentColor; font-size: 12px; animation: phIn .25s ease; }
.kb__col--0 .kb__card { border-top-color: #2458a6; }
.kb__col--1 .kb__card { border-top-color: #d97706; }
.kb__col--2 .kb__card { border-top-color: #7c3aed; }
.kb__col--3 .kb__card { border-top-color: var(--green); opacity: .75; }
.kb__card.is-late { background: #fef2f2; }
.kb__card.is-late .kb__time { color: var(--red); }
.kb__head { display: flex; justify-content: space-between; }
.kb__head span { color: var(--muted); }
.kb__card ul { margin: 6px 0; padding-left: 14px; }
.kb__card li small { display: block; color: #b45309; font-style: italic; }
.kb__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kb__time { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kb__time .i { width: 12px; height: 12px; }
.kb__time i { font-style: normal; }
.kb__btn { padding: 5px 10px; border: 0; border-radius: 8px; background: var(--navy-900); color: #fff; font-size: 11.5px; font-weight: 700; }
.kb__empty { margin: 8px 0; font-size: 12px; color: var(--muted); text-align: center; }
.mz__note { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border: 1px dashed #cbd5e1; border-radius: 99px; background: #fff; font-size: 11px; color: var(--muted); }
.mz__note .i { width: 11px; height: 11px; }
.mz__note.is-on { border-style: solid; border-color: #f59e0b; background: #fffbeb; color: #b45309; }
.mz__nt { display: block; color: #b45309; font-style: italic; }
.mz__split { display: flex; align-items: center; gap: 6px; margin: 8px 0; font-size: 12px; color: var(--muted); }
.mz__split span { margin-right: auto; }
.mz__split button, .mz__bills button { padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; }
.mz__split button.is-on, .mz__bills button.is-on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); }
.mz__split button:disabled, .mz__bills button:disabled { opacity: .4; cursor: not-allowed; }
.mz__bills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mz__change { display: flex; justify-content: space-between; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--green-50); color: var(--green); font-size: 13px; }
@media (max-width: 860px) { .kb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kb { grid-template-columns: 1fr; } .kb__col { min-height: 0; } }

/* Dashboard: meta, deudores, medios de pago y estado SUNAT */
.db__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
.goal { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.goal b { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--navy-900); }
.goal small { color: var(--muted); font-size: 12px; }
.goal__bar { height: 10px; margin: 8px 0; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.goal__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--acc), var(--green)); transition: width .5s; }
.goal__note { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; font-size: 12px; color: var(--muted); }
.goal__note .i { flex: none; color: var(--green); }
.debt { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.debt li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eef1f6; font-size: 12px; }
.debt li > span { flex: 1; min-width: 0; }
.debt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.debt small { color: var(--muted); }
.debt small.bad { color: var(--red); font-weight: 600; }
.debt em { font-style: normal; font-weight: 700; white-space: nowrap; }
.debt .btn-s { padding: 4px 8px; font-size: 11.5px; }
.paybar { display: flex; height: 14px; margin: 10px 0 12px; border-radius: 99px; overflow: hidden; }
.paybar i { display: block; height: 100%; transition: width .4s; }
.sunat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 6px; padding: 0; list-style: none; text-align: center; }
.sunat3 li { padding: 10px 4px; border-radius: 12px; }
.sunat3 b { display: block; font-family: var(--font-head); font-size: 18px; }
.sunat3 small { font-size: 11px; }
.sunat3 .ok { background: var(--green-50); color: var(--green); }
.sunat3 .warn { background: var(--amber-50); color: var(--amber); }
.sunat3 .bad { background: var(--red-50); color: var(--red); }
@media (max-width: 1100px) { .db__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .db__grid--4 { grid-template-columns: 1fr; } }

/* Facturación: flujo de emisión, adelanto de la app e integraciones */
.sflow { max-width: 1080px; margin: 0 auto; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.sflow__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sflow__ctrl .btn { margin-left: auto; }
.sflow__sw { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.sflow__sw input { position: absolute; opacity: 0; }
.sflow__sw span { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #d5dbe6; transition: background .2s; }
.sflow__sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sflow__sw input:checked + span { background: var(--amber); }
.sflow__sw input:checked + span::after { transform: translateX(16px); }
.sflow__sw input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.sflow__track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 26px 0 20px; padding: 0; list-style: none; counter-reset: s; }
.sflow__track li { position: relative; display: grid; justify-items: center; gap: 4px; padding: 16px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-soft); text-align: center; transition: all .25s; }
.sflow__track li:not(:last-child)::after { content: ""; position: absolute; top: 38px; right: -11px; width: 12px; height: 2px; background: var(--line); }
.sflow__track li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--muted); border: 1px solid var(--line); transition: all .25s; }
.sflow__track b { font-size: 14px; }
.sflow__track small { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.sflow__track li.is-run { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 6%, #fff); transform: translateY(-3px); }
.sflow__track li.is-run > span { background: var(--acc); border-color: var(--acc); color: #fff; animation: sfPulse .7s ease infinite; }
.sflow__track li.is-ok > span { background: var(--green); border-color: var(--green); color: #fff; }
.sflow__track li.is-ok:not(:last-child)::after { background: var(--green); }
.sflow__track li.is-wait { border-color: var(--amber); background: var(--amber-50); }
.sflow__track li.is-wait > span { background: var(--amber); border-color: var(--amber); color: #fff; animation: sfPulse .9s ease infinite; }
@keyframes sfPulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, currentColor 0%, rgba(36, 88, 166, .15)); } }
.sflow__foot { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.sflow__log { height: 190px; overflow-y: auto; padding: 14px 16px; border-radius: 16px; background: #0b1426; color: #c9d4e8; font: 12.5px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.sflow__log p { margin: 0; }
.sflow__log .muted { color: #8090ab; }
.sflow__log time { margin-right: 10px; color: #5f6f8c; }
.sflow__log b { color: #fff; }
.sflow__log .ok { color: #4ade80; }
.sflow__log .ok b { color: #4ade80; }
.sflow__log .warn { color: #fbbf24; }
.sflow__log .soft { color: #8090ab; }
.sflow__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sflow__stats div { padding: 14px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.sflow__stats div:last-child { grid-column: 1 / -1; }
.sflow__stats b { display: block; font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--navy-900); }
.sflow__stats div:last-child b { font-size: 16px; }
.sflow__stats small { font-size: 12.5px; color: var(--muted); }

.apptease { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1040px; margin: 0 auto; }
.apptease h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.apptease > div > p.muted { margin-top: 14px; font-size: 16.5px; }

.integ { max-width: 1080px; margin: 0 auto; }
.integ__f { justify-content: center; margin-bottom: 20px; }
.integ__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.integ__card { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; animation: phIn .25s ease; transition: transform .2s, box-shadow .2s; }
.integ__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.integ__card span { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 10%, #fff); color: var(--acc); }
.integ__card b { font-size: 14.5px; }
.integ__card small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.integ__card em { grid-column: 2; margin-top: 6px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--acc); }

@media (max-width: 980px) {
  .sflow__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sflow__track li::after { display: none; }
  .sflow__foot, .apptease { grid-template-columns: 1fr; }
  .integ__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sflow { padding: 16px; }
  .sflow__ctrl .btn { margin-left: 0; width: 100%; justify-content: center; }
  .sflow__ctrl .seg { width: 100%; }
  .sflow__ctrl .seg button { flex: 1; justify-content: center; padding: 6px 4px; }
  .sflow__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integ__grid { grid-template-columns: 1fr; }
}

/* Transporte: guía de remisión */
.gr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gr__box { padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; min-width: 0; }
.gr__box--wide { grid-column: 1 / -1; }
.gr__box h6 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-family: var(--font); font-size: 13px; }
.gr__box h6 .i { color: var(--acc); }
.gr__ok, .gr__hint, .gr__warn { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; }
.gr__ok { color: var(--green); font-weight: 600; }
.gr__hint { color: var(--muted); }
.gr__warn { color: var(--red); font-weight: 600; }
.gr__route { margin-top: 0; padding: 0; background: none; }
.gr__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.gr__foot b { color: var(--ink); }
.gr-done { display: grid; justify-items: center; gap: 6px; padding: 28px 12px; text-align: center; }
.gr-done__ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--green-50); color: var(--green); animation: phPop .35s cubic-bezier(.3,1.6,.6,1); }
.gr-done__ico .i { width: 28px; height: 28px; }
.gr-done small { color: var(--muted); }
.gr-done__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
@media (max-width: 640px) { .gr { grid-template-columns: 1fr; } .gr__route { grid-template-columns: 1fr; } }

/* =========================================================
   Facturación: adelanto de la app móvil (celulares y tarjetas flotantes)
   ========================================================= */
.apptease { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; max-width: 1140px; }
.apptease__copy > p.muted { max-width: 520px; }
/* Tonos de la app */
/* Funciones */
.tzf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 18px; }
.tzf > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tzf > div:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue-500) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.tzf span { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; }
.tzf b { font-size: 14.5px; }
.tzf small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
/* Versiones */
.tzv { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tzv span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.tzv b { padding: 3px 9px; border-radius: 99px; background: var(--bg-soft); color: var(--ink); font-size: 12px; }
.tzv .is-pro b { background: linear-gradient(135deg, #3069bd, var(--blue-600)); color: #fff; }
.apptease .hero__actions { margin-top: 0; }

/* Escena */
.tz { position: relative; height: 560px; isolation: isolate; }
.tz__glow { position: absolute; inset: 8% 4% 6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(142, 156, 241, .55), rgba(36, 88, 166, .12) 60%, transparent); filter: blur(24px); }
.tz__ph { position: absolute; left: 50%; top: 10px; width: 264px; height: 540px; margin-left: -150px; padding: 9px; border-radius: 42px; background: #0b1220; box-shadow: 0 0 0 2px #2a3446, 0 50px 90px -40px rgba(16, 29, 53, .6); animation: tzFloat 7s ease-in-out infinite; }
.tz__ph::before { content: ""; position: absolute; top: 18px; left: 50%; z-index: 2; width: 74px; height: 20px; border-radius: 14px; background: #0b1220; transform: translateX(-50%); }
.tz__ph--back { top: 56px; height: 460px; width: 226px; margin-left: 30px; transform: rotate(9deg); opacity: .96; animation: tzFloatBack 8s ease-in-out infinite; }
@keyframes tzFloat { 50% { transform: translateY(-10px); } }
@keyframes tzFloatBack { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(9deg) translateY(8px); } }
.tz__scr { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 34px; background: #f6f7fb; color: #0b1437; font-size: 10px; line-height: 1.3; }
.tz__scr .i { width: 13px; height: 13px; }
.tz__status { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 6px 24px; background: #fff; font-size: 10.5px; }
.tz__status span { display: flex; align-items: flex-end; gap: 1.5px; }
.tz__status span i { width: 2.5px; background: #0b1437; border-radius: 1px; }
.tz__status span i:nth-child(1) { height: 4px; } .tz__status span i:nth-child(2) { height: 6px; } .tz__status span i:nth-child(3) { height: 8px; }
.tz__status em { width: 18px; height: 9px; margin-left: 4px; border: 1.5px solid #0b1437; border-radius: 3px; background: linear-gradient(90deg, #facc15 70%, transparent 70%) content-box; padding: 1px; }
.tz__bar { display: flex; align-items: center; gap: 6px; padding: 4px 10px 8px; background: #fff; border-bottom: 1px solid #e7e9f2; }
.tz__bar img { border-radius: 7px; }
.tz__bar span { flex: 1; min-width: 0; }
.tz__bar b { display: block; font-size: 9.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz__bar small { display: block; font-size: 8px; color: #5a6487; }
.tz__bar em { display: inline-flex; align-items: center; gap: 3px; padding: 4px 6px; border: 1px solid #e7e9f2; border-radius: 10px; font-style: normal; font-size: 8px; font-weight: 700; white-space: nowrap; }
.tz__bar em .i { width: 10px; height: 10px; }
.tz__hero { margin: 10px 10px 0; padding: 11px; border-radius: 14px; background: linear-gradient(135deg, #b9c4f7, #9eacf3); }
.tz__hero > small { display: block; font-size: 7.5px; font-weight: 800; letter-spacing: .07em; opacity: .85; }
.tz__hero > b { display: block; margin: 1px 0 5px; font-size: 16px; font-weight: 800; }
.tz__hero > b i { color: #2b3cb0; font-weight: 700; }
.tz__amt { display: flex; align-items: baseline; gap: 3px; margin: 2px 0 6px; font-size: 11px; font-weight: 700; }
.tz__amt b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tz__amt i { font-style: normal; font-size: 10px; }
.tz__stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 6px; border-top: 1px solid rgba(11, 20, 55, .12); text-align: center; font-size: 8px; }
.tz__stats b { display: block; font-size: 13px; }
.tz__h { margin: 10px 12px 6px; font-size: 7.5px; font-weight: 800; letter-spacing: .08em; color: #5a6487; }
.tz__short { display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 8px; text-align: center; font-size: 7.5px; font-weight: 600; }
.tz__short i, .tz__grid i { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 4px; border-radius: 10px; }
.tz__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 10px; }
.tz__grid span { padding: 9px; border: 1px solid #e7e9f2; border-radius: 12px; background: #fff; }
.tz__grid i { margin: 0 0 10px; width: 28px; height: 28px; border-radius: 9px; }
.tz__grid b { display: block; font-size: 9.5px; font-weight: 800; }
.tz__grid small { display: block; font-size: 7.5px; color: #5a6487; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz__fab { position: absolute; right: 12px; bottom: 18px; display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border-radius: 11px; background: #0b1437; color: #fff; font-size: 9.5px; font-weight: 700; box-shadow: 0 10px 20px -8px rgba(11, 20, 55, .6); }
.tz__fab .i { width: 11px; height: 11px; }
/* Celular trasero */
.tz__scr--done { justify-content: center; align-items: center; gap: 6px; padding: 20px; text-align: center; }
.tz__ok { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 50%; background: #e3f5ea; color: #15a050; }
.tz__ok .i { width: 26px; height: 26px; }
.tz__scr--done > b { font-size: 14px; font-weight: 800; }
.tz__scr--done > small { color: #5a6487; font-size: 10px; margin-bottom: 10px; }
.tz__wa, .tz__ghost { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; padding: 9px; border-radius: 11px; font-size: 9.5px; font-weight: 700; }
.tz__wa { background: #16a34a; color: #fff; }
.tz__ghost { background: #fff; border: 1px solid #e7e9f2; }
/* Tarjetas flotantes */
.tz__float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(230, 235, 242, .9); box-shadow: 0 20px 40px -20px rgba(16, 29, 53, .4); overflow: hidden; animation: tzFloat 6s ease-in-out infinite; }
.tz__float > span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; }
.tz__float > span .i { width: 17px; height: 17px; }
.tz__float p { margin: 0; line-height: 1.25; }
.tz__float b { display: block; font-size: 13px; color: var(--ink); }
.tz__float small { font-size: 11.5px; color: var(--muted); }
.tz__float em { margin-left: 4px; padding: 5px 10px; border-radius: 9px; background: #0b1437; color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; }
.tz__float--a { left: -6px; top: 70px; animation-delay: -1s; }
.tz__float--b { right: -10px; top: 250px; animation-delay: -3s; }
.tz__float--c { left: 4px; bottom: 54px; animation-delay: -4.5s; }
.tz__scanline { position: absolute; left: 10px; top: 8px; width: 34px; height: 2px; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: tzScan 1.6s ease-in-out infinite alternate; }
@keyframes tzScan { to { top: 40px; } }

@media (max-width: 980px) {
  .apptease { grid-template-columns: 1fr; gap: 28px; }
  .tz { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .tzf { grid-template-columns: 1fr; }
  .tz { height: 500px; }
  .tz__ph { width: 236px; height: 484px; margin-left: -118px; }
  .tz__ph--back { display: none; }
  .tz__float { padding: 8px 10px 8px 8px; }
  .tz__float b { font-size: 12px; }
  .tz__float small { font-size: 10.5px; }
  .tz__float--a { left: 0; top: 40px; }
  .tz__float--b { right: 0; top: 220px; }
  .tz__float--c { left: 0; bottom: 30px; }
  .tz__float em { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tz__ph, .tz__ph--back, .tz__float, .tz__scanline { animation: none; } }
@media (min-width: 981px) and (max-width: 1180px) { .tz__ph--back { display: none; } .tz__ph { margin-left: -132px; } .tz__float--b { right: 0; } }

/* Logo de DATHIUM en la esquina superior de las demos de facturación */
.sb__logo:has(img), .rx-erp__brand span:has(img) { overflow: hidden; background: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.sb__logo img, .rx-erp__brand span img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Ecosistema (Facturación) ---------- */
.eco { position: relative; max-width: 1040px; margin: 0 auto; }
.eco img { display: block; width: 100%; height: auto; }
.eco__pins button {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 10px;
  border: 0; border-radius: var(--r-pill, 99px); background: rgba(255, 255, 255, .94);
  color: var(--ink); font-family: inherit; font-size: 13.5px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 29, 53, .12), inset 0 0 0 1px var(--line);
  backdrop-filter: blur(6px); transition: transform .2s, box-shadow .2s, color .2s;
}
.eco__pins button .i { width: 16px; height: 16px; color: var(--blue-500); }
.eco__pins button::before {
  content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 10px; margin-left: -1px;
  background: linear-gradient(var(--blue-300), transparent);
}
.eco__pins button:hover, .eco__pins button:focus-visible {
  transform: translate(-50%, calc(-50% - 3px)); color: var(--blue-500);
  box-shadow: 0 10px 24px rgba(36, 88, 166, .2), inset 0 0 0 1px var(--blue-300);
}
@media (max-width: 760px) {
  .eco__pins { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
  .eco__pins button { position: static; transform: none; }
  .eco__pins button::before { display: none; }
  .eco__pins button:hover, .eco__pins button:focus-visible { transform: none; }
}
.eco-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.eco__text h2 { margin-top: 14px; font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.eco__text > p:not(.eyebrow) { margin-top: 14px; font-size: 17px; color: var(--muted-lg); }
.eco__text .ticks { --acc: var(--blue-500); margin: 22px 0 26px; }
.eco__text .ticks li { font-size: 15px; }
.eco-wrap .eco { max-width: none; margin: 0; }
.eco-wrap .eco__pins button { padding: 7px 12px 7px 9px; font-size: 12.5px; }
.eco-wrap .eco__pins button .i { width: 14px; height: 14px; }
@media (max-width: 980px) {
  .eco-wrap { grid-template-columns: 1fr; gap: 32px; }
  .eco__text { max-width: 640px; margin: 0 auto; text-align: center; }
  .eco__text .ticks { display: inline-grid; text-align: left; }
}

/* ---------- Ventanas de sistema: el contenido se desplaza dentro y no se corta ---------- */
@media (min-width: 921px) { .app { grid-template-rows: minmax(0, 1fr); } }
.app__main, .app__view { min-height: 0; }
.app__view { scrollbar-width: thin; scrollbar-color: #cfd8e5 transparent; }

/* ---------- Punto de venta: pantalla de cobro más ordenada ---------- */
.pk__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pk__top .pk__amount { display: flex; flex-direction: column; justify-content: center; padding: 14px; }
.pk__amount span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.pk__box--disc { display: flex; flex-direction: column; justify-content: center; }
.pk__hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.pk--pay .pk__methods { margin-top: 10px; }
.pk--pay .pk__methods button { flex-direction: row; justify-content: center; gap: 8px; padding: 10px 6px; }
.pk--pay .pk__methods button > span { width: 30px; height: 30px; border-radius: 10px; font-size: 15px; }
.pk--pay .pk__methods button > span .i--logo { width: 20px; height: 20px; }
.pk--pay .pk__cash { grid-template-columns: minmax(0, 1fr) 190px; align-items: stretch; }
.pk--pay .pk__change { align-items: center; text-align: center; }
.pk--pay .pk__change b { font-size: 28px; }
.pk__send { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; }
.pk__send > span small { display: block; font-size: 12px; color: var(--muted); }
.pk__send > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pk__send button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pk__send button .i { width: 15px; height: 15px; }
.pk__send button.is-on { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.pk__sum-c small { display: flex; justify-content: space-between; align-items: center; }
.pk__sum-c small button { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 0; border-radius: 8px; background: var(--bg-soft); font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--blue-500); }
.pk__sum-c small button .i { width: 12px; height: 12px; }
.pk--pay .pk__sum { position: sticky; top: 0; align-self: start; max-height: 100%; }
/* La demo principal de Facturación tiene algo más de alto para que el cobro entre completo */
@media (min-width: 921px) { #erpApp .app { height: 680px; } }
@media (max-width: 900px) {
  .pk__top { grid-template-columns: 1fr; }
  .pk--pay .pk__methods { grid-template-columns: repeat(2, 1fr); }
  .pk--pay .pk__cash { grid-template-columns: 1fr; }
  .pk--pay .pk__sum { position: static; }
}

/* ---------- Facturación: módulo de comprobantes ---------- */
.sunat-banner--warn { background: linear-gradient(100deg, #fff7e6, #f3f9ff); border-color: #f7dfae; }
.sunat-banner--warn .sunat-banner__ico { background: var(--amber); }
.dtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.dsearch { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.dsearch input { flex: 1; min-width: 0; padding: 9px 0; border: 0; outline: 0; background: none; font-size: 13px; }
.dsearch:focus-within { border-color: var(--acc); }
.dtools .seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 20, 50, .12); }
.chips--st button.is-active { background: var(--blue-500); border-color: var(--blue-500); }
.tbl--docs td { white-space: nowrap; }
.tbl--docs td:nth-child(3) { white-space: normal; min-width: 150px; }
.tbl--docs tbody tr { cursor: pointer; transition: background .15s; }
.tbl--docs tbody tr:hover td { background: #f7f9fc; }
.tbl--docs tr.is-void td:not(:nth-child(6)) { color: #9aa6bb; }
.tbl--docs tr.is-void td b { text-decoration: line-through; }
.tbl--docs .pill .i { width: 12px; height: 12px; }
.dsent { color: var(--muted); }
.dsent span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 3px; border-radius: 7px; background: var(--bg-soft); }
.dsent .i { width: 13px; height: 13px; }
.dfoot { margin: 10px 2px 0; font-size: 12px; color: var(--muted); }
/* Detalle del comprobante */
.app__main { position: relative; }
.ddet { position: absolute; inset: 0; z-index: 4; display: flex; justify-content: flex-end; padding: 14px; background: rgba(16, 29, 53, .32); backdrop-filter: blur(2px); animation: ddFade .2s ease; }
@keyframes ddFade { from { background: transparent; } }
.ddet__card { display: flex; flex-direction: column; width: min(720px, 100%); max-height: 100%; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -20px rgba(16, 29, 53, .5); animation: ddIn .3s cubic-bezier(.2, .8, .3, 1); }
@keyframes ddIn { from { transform: translateX(24px); } }
.ddet__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ddet__head > span:first-child { flex: 1; }
.ddet__head small { display: block; font-size: 11.5px; color: var(--muted); }
.ddet__head b { font-family: var(--font-head); font-size: 17px; }
.ddet__x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: var(--bg-soft); color: var(--ink-2); }
.ddet__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; padding: 16px; overflow-y: auto; scrollbar-width: thin; }
.dticket { padding: 16px; border-radius: 14px; background: #fbfcfe; border: 1px dashed #d5dde8; font-size: 12.5px; }
.dticket__top { padding-bottom: 10px; border-bottom: 1px dashed #d5dde8; text-align: center; }
.dticket__top b { display: block; font-size: 13.5px; }
.dticket__top small, .dticket__meta small { color: var(--muted); }
.dticket__meta { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px dashed #d5dde8; color: var(--muted); font-size: 11.5px; }
.dticket__meta b { display: block; font-size: 12.5px; color: var(--ink); }
.dticket__items { width: 100%; margin: 8px 0; border-collapse: collapse; }
.dticket__items td { padding: 4px 0; vertical-align: top; }
.dticket__items td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.dticket__tot { display: grid; grid-template-columns: 1fr auto; gap: 3px; padding-top: 8px; border-top: 1px dashed #d5dde8; color: var(--muted); }
.dticket__tot b { margin-top: 4px; font-family: var(--font-head); font-size: 17px; color: var(--ink); }
.dticket__qr { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.dticket__qr small { font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.dqr { flex: none; width: 64px; height: 64px; padding: 4px; border-radius: 6px; background: #fff; border: 1px solid var(--line); fill: var(--navy-900); shape-rendering: crispEdges; }
.dside { display: flex; flex-direction: column; gap: 8px; }
.dside h6 { margin: 8px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dstate { display: flex; gap: 10px; padding: 12px; border-radius: 12px; font-size: 12.5px; }
.dstate > .i { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.dstate b { display: block; }
.dstate small { color: var(--ink-2); }
.dstate--ok { background: var(--green-50); color: var(--green); }
.dstate--warn { background: var(--amber-50); color: #8a5300; }
.dstate--bad { background: var(--red-50); color: var(--red); }
.dstate--info { background: var(--blue-50); color: var(--blue-600); }
.dbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.dnote { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 12.5px; color: var(--green); }
@media (max-width: 920px) {
  .ddet { position: fixed; z-index: 60; padding: 10px; align-items: flex-end; }
  .ddet__card { width: 100%; max-height: 88vh; }
  .ddet__body { grid-template-columns: 1fr; }
  .sunat-banner { flex-wrap: wrap; }
  .sunat-banner > span:nth-child(2) { flex: 1 1 180px; }
  .sunat-banner > .btn-s { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ddet, .ddet__card { animation: none; } }

/* ---------- Desarrollo web: panel de administración del sitio ---------- */
#webApp { --o-bg: #0f1115; --o-side: #0b0d10; --o-card: #15181d; --o-line: #262a31; --o-ink: #e7e9ee; --o-mut: #8b919c; --o-acc: #8ab4ff; --o-ok: #34d399; }
#webApp.win--dark .win__bar { background: var(--o-side); border-color: var(--o-line); }
.ops { display: grid; grid-template-columns: 236px minmax(0, 1fr); height: 760px; background: var(--o-bg); color: var(--o-ink); font-size: 13.5px; }
.ops__side { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; border-right: 1px solid var(--o-line); background: var(--o-side); }
.ops__lbl { padding: 0 4px; font-size: 12px; font-weight: 600; color: var(--o-ink); }
.ops__site, .ops__search { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid var(--o-line); border-radius: 9px; font-size: 13px; }
.ops__site span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ops__site .ops__chev { transform: rotate(90deg); color: var(--o-mut); }
.ops__search { color: var(--o-mut); }
.ops__site .i, .ops__search .i { width: 16px; height: 16px; flex: none; }
.ops__nav { display: grid; gap: 2px; margin-top: 6px; }
.ops__nav button { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: #c9cdd5; font-size: 13.5px; font-weight: 500; text-align: left; transition: background .15s, color .15s; }
.ops__nav button:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.ops__nav button.is-active { background: rgba(255, 255, 255, .09); color: #fff; font-weight: 600; }
.ops__nav .i { width: 17px; height: 17px; color: var(--o-mut); }
.ops__nav button.is-active .i { color: #fff; }
.ops__managed { display: flex; align-items: center; gap: 8px; margin: auto 0 0; padding: 10px; border-radius: 9px; border: 1px solid var(--o-line); font-size: 12px; color: var(--o-acc); }
.ops__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 22px 28px 28px; overflow: auto; scrollbar-width: thin; scrollbar-color: #2c3038 transparent; }
.ops__main > * { min-width: 0; }
.ops__crumbs { display: flex; align-items: center; gap: 8px; color: var(--o-mut); font-size: 12.5px; }
.ops__crumbs .i { width: 14px; height: 14px; }
.ops__crumbs b { color: var(--o-ink); }
.ops__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -4px; }
.ops__title h4 { margin: 0; font-size: 21px; font-weight: 600; color: #fff; }
.ops-card { padding: 18px 20px; border: 1px solid var(--o-line); border-radius: 12px; background: var(--o-card); }
.ops-card__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ops-card__h > b { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; }
.ops-card__h > small { color: var(--o-mut); font-size: 12px; }
.ops-btn { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 14px; border: 1px solid #fff; border-radius: 8px; background: #fff; color: #0b0d10; font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background .2s, opacity .2s; }
.ops-btn:hover { background: #dfe3ea; }
.ops-btn--ghost { border-color: var(--o-line); background: transparent; color: var(--o-ink); }
.ops-btn--ghost:hover { background: rgba(255, 255, 255, .06); }
.ops-btn[disabled] { opacity: .6; cursor: default; }
.ops-btn .i { width: 15px; height: 15px; }
.ops-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: none; color: var(--o-mut); }
.ops-icon:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.ops-pill { display: inline-flex; align-items: center; flex: none; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ops-pill--ok { background: rgba(52, 211, 153, .13); color: #6ee7b7; }
.ops-pill--run, .ops-pill--info { background: rgba(138, 180, 255, .15); color: var(--o-acc); }
.ops-pill--plan { background: rgba(251, 191, 36, .13); color: #fcd34d; }
.ops-pill--muted { background: rgba(255, 255, 255, .06); color: var(--o-mut); }
.ops-ok { display: inline-flex; align-items: center; gap: 6px; color: #6ee7b7; font-weight: 600; }
.ops-ok .i { width: 15px; height: 15px; }
.ops code { padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); color: var(--o-acc); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; }
/* Sitio */
.ops-site { padding: 0; }
.ops-site__top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--o-line); }
.ops-site__top > div { flex: 1; min-width: 0; }
.ops-site__top b { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 15px; }
.ops-site__top b .i { width: 13px; height: 13px; color: var(--o-mut); }
.ops-site__top small { display: block; margin-top: 2px; color: var(--o-mut); font-size: 12.5px; }
.ops-site__ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--o-line); background: var(--o-bg); }
.ops-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; }
.ops-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--o-line); border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--o-ink); }
.ops-chip .i { width: 14px; height: 14px; color: var(--o-ok); }
/* Datos clave */
.ops-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; margin: 0; }
.ops-kv div { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; font-size: 12.5px; }
.ops-kv dt { color: var(--o-mut); }
.ops-kv dt::after { content: ":"; }
.ops-kv dd { margin: 0; min-width: 0; color: var(--o-ink); font-weight: 600; }
/* Esenciales y listas */
.ops-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ops-col { display: grid; gap: 16px; }
.ops-list { display: grid; margin: 0 -20px -18px; padding: 0; list-style: none; }
.ops-list li { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--o-line); }
.ops-list li > .i { width: 18px; height: 18px; flex: none; color: var(--o-mut); }
.ops-list li > div { flex: 1; min-width: 0; }
.ops-list b { display: block; color: #fff; font-size: 13.5px; font-weight: 600; }
.ops-list small { display: block; margin-top: 1px; color: var(--o-mut); font-size: 12.5px; }
/* Rendimiento */
.ops-ring { position: relative; display: grid; place-items: center; flex: none; width: 66px; height: 66px; border-radius: 50%;
  background: conic-gradient(var(--o-ok) calc(var(--v) * 1%), #262a31 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); transition: --v .6s; }
.ops-ring b { position: absolute; inset: 0; display: grid; place-items: center; }
.ops-perf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ops-perf > div { display: flex; align-items: center; gap: 12px; }
.ops-perf > div + div { padding-left: 12px; border-left: 1px solid var(--o-line); }
.ops-perf p, .ops-big small { margin: 0; }
.ops-perf p b { display: block; color: #fff; font-size: 13.5px; }
.ops-perf p small { color: var(--o-mut); font-size: 11.5px; line-height: 1.4; }
.ops-big { display: grid; justify-items: center; gap: 10px; padding: 6px 0; }
.ops-big small { color: var(--o-mut); font-size: 12px; }
.ops-ring--lg { width: 110px; height: 110px; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); }
/* El número del anillo va fuera de la máscara */
.ops-ring { -webkit-mask: none; mask: none; background: none; }
.ops-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--o-ok) calc(var(--v) * 1%), #262a31 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); }
.ops-ring--lg::before { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); }
.ops-ring b { color: #6ee7b7; font-size: 17px; }
.ops-ring--lg b { font-size: 30px; }
.ops-ring--disk::before { background: conic-gradient(var(--o-acc) calc(var(--v) * 1%), #262a31 0); }
/* Recursos */
.ops-res { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.ops-res__disk { display: flex; align-items: center; gap: 14px; }
.ops-res__disk .ops-ring { width: 76px; height: 76px; }
.ops-res dl { display: grid; gap: 6px; margin: 0; }
.ops-res dl div { display: grid; font-size: 12px; }
.ops-res dt { color: var(--o-mut); }
.ops-res dd { margin: 0; color: var(--o-mut); }
.ops-res dd b { color: var(--o-acc); font-size: 13px; }
.ops-res__live { display: grid; gap: 10px; padding-left: 16px; border-left: 1px solid var(--o-line); }
.ops-res__live > div { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 10px; }
.ops-res__live > div small { grid-column: 1 / -1; color: var(--o-mut); font-size: 12px; }
.ops-res__live b { color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.ops-line { width: 100px; height: 26px; }
.ops-line path { fill: none; stroke: var(--o-acc); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ops-res__note { display: flex; align-items: center; gap: 6px; color: var(--o-mut); font-size: 11.5px; }
/* Despliegues */
.ops-run { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; padding: 16px; border: 1px solid var(--o-line); border-radius: 12px; background: var(--o-card); }
.ops-run ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ops-run li { display: flex; align-items: center; gap: 10px; color: var(--o-mut); font-size: 13px; }
.ops-run li > em, .ops-run li > .i, .ops-run li > .spinner { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--o-line); font-style: normal; font-size: 11px; }
.ops-run li.ok { color: var(--o-ink); }
.ops-run li.ok > .i { padding: 4px; border-color: transparent; background: #10b981; color: #fff; }
.ops-run li.go { color: #fff; font-weight: 600; }
.ops-run pre { margin: 0; padding: 12px 14px; min-height: 120px; border-radius: 8px; background: #08090b; color: #a7f3d0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.ops-deps { display: grid; margin: 0 -20px -18px; padding: 0; list-style: none; }
.ops-deps li { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--o-line); }
.ops-deps li > div:nth-child(2) { flex: 1; min-width: 0; }
.ops-deps b { display: block; color: #fff; font-size: 13.5px; font-weight: 600; }
.ops-deps small { color: var(--o-mut); font-size: 12px; }
.ops-deps__t { display: grid; justify-items: end; }
/* Core Web Vitals */
.ops-vitals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ops-vitals > div { display: grid; gap: 3px; justify-items: start; }
.ops-vitals span { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--o-mut); }
.ops-vitals b { color: #fff; font-size: 20px; }
.ops-vitals small { margin-bottom: 4px; color: var(--o-mut); font-size: 12px; line-height: 1.35; }
.ops-grid--2 { grid-template-columns: 1fr 1fr; }
/* DNS */
.ops-dns { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ops-dns th { padding: 0 10px 8px 0; color: var(--o-mut); font-weight: 500; text-align: left; }
.ops-dns td { padding: 9px 10px 9px 0; border-top: 1px solid var(--o-line); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
/* Solicitudes */
.ops-ask { display: flex; gap: 8px; }
.ops-ask input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--o-line); border-radius: 8px; background: var(--o-bg); color: #fff; font: inherit; font-size: 13.5px; outline: 0; }
.ops-ask input::placeholder { color: #626874; }
.ops-ask input:focus { border-color: var(--o-acc); }
@media (max-width: 1080px) {
  .ops-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 920px) {
  .ops { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ops__side { flex-direction: row; align-items: center; gap: 8px; padding: 10px; border-right: 0; border-bottom: 1px solid var(--o-line); overflow-x: auto; scrollbar-width: none; }
  .ops__lbl, .ops__site, .ops__search, .ops__managed { display: none; }
  .ops__nav { display: flex; margin: 0; }
  .ops__nav button { flex: none; }
  .ops__main { min-height: 560px; padding: 18px 16px 20px; overflow: visible; }
}
@media (max-width: 640px) {
  .ops { font-size: 13px; }
  .ops__title h4 { font-size: 18px; }
  .ops__title { flex-wrap: wrap; }
  .ops-card { padding: 14px; }
  .ops-list, .ops-deps { margin: 0 -14px -14px; }
  .ops-list li, .ops-deps li { padding: 12px 14px; gap: 12px; }
  .ops-site__top { padding: 14px; }
  .ops-site__top > .ops-pill, .ops-card__h .ops-btn--ghost[data-go] { display: none; }
  .ops-chips { padding: 12px 14px; gap: 6px; }
  .ops-kv { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ops-perf { grid-template-columns: minmax(0, 1fr); }
  .ops-perf > div + div { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--o-line); }
  .ops-res { grid-template-columns: minmax(0, 1fr); }
  .ops-res__live { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--o-line); }
  .ops-line { width: 120px; }
  .ops-run { grid-template-columns: minmax(0, 1fr); }
  .ops-deps__t, .ops-deps li > .ops-pill { display: none; }
  .ops-vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-grid--2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ops-ring--lg { width: 84px; height: 84px; }
  .ops-ring--lg b { font-size: 24px; }
  .ops-ask { flex-direction: column; }
  .ops-ask input { font-size: 16px; }
  .ops-dns th:nth-child(4), .ops-dns td:nth-child(4) { display: none; }
}

/* ---------- Desarrollo web: referencias visuales ---------- */
.wr { text-align: left; }
.wr__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.wr__tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.wr__tabs button:hover { border-color: #c9d5e8; }
.wr__tabs button.is-active { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.wr__tabs .i { width: 16px; height: 16px; }
.wr__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: center; }
.wr__stage { position: relative; padding: 0 40px 36px 0; }
.wr-desk { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 40px 80px -36px rgba(16, 29, 53, .45), 0 0 0 1px rgba(16, 29, 53, .08); }
.wr-desk__bar { display: flex; align-items: center; gap: 14px; padding: 9px 14px; background: #f1f4f9; border-bottom: 1px solid #e3e8f0; }
.wr-url { display: inline-flex; align-items: center; gap: 6px; flex: 1; max-width: 340px; margin: 0 auto; padding: 4px 12px; border-radius: 6px; background: #fff; color: #5b6476; font-size: 12px; }
.wr-url .i { width: 12px; height: 12px; color: #16a34a; }
.wr-screen { position: relative; overflow: hidden; aspect-ratio: 1200 / 700; }
.wr-phone { position: absolute; right: 0; bottom: 0; width: 25%; min-width: 150px; padding: 8px; border-radius: 30px; background: #0b0d10; box-shadow: 0 30px 60px -20px rgba(16, 29, 53, .55); }
.wr-phone .wr-screen { aspect-ratio: 390 / 800; border-radius: 22px; }
.ws { position: absolute; top: 0; left: 0; width: 1200px; height: 700px; overflow: hidden; transform: scale(var(--k, .5)); transform-origin: 0 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
.ws--m { width: 390px; height: 800px; }
.is-swap .ws { animation: wsIn .45s ease; }
@keyframes wsIn { from { opacity: 0; } }
.wr__info { padding: 4px 0; }
.wr__type { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-500); }
.wr__info h3 { margin: 4px 0 10px; font-size: 24px; }
.wr__goal { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.wr__goal b { color: var(--ink); }
.wr__info h6 { margin: 0 0 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wr__info ul { display: grid; gap: 7px; margin: 0 0 18px; padding: 0; list-style: none; }
.wr__info li { display: flex; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.wr__info li .i { flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 50%; background: #e3f5ea; color: #15a050; }
.wr__stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.wr__stack span { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-2); }
.wr__cta { width: 100%; justify-content: center; }
.wr__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Piezas comunes de las maquetas */
.ws .i { width: 1em; height: 1em; }
.ws h3, .ws h4 { margin: 0; font-family: var(--fh); color: inherit; }
.ws-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fh); font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.ws-logo em { font-style: normal; color: var(--a); }
.ws-nav { display: flex; align-items: center; gap: 36px; height: 76px; padding: 0 56px; }
.ws-nav nav { display: flex; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 500; opacity: .85; }
.ws-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: var(--r, 8px); background: var(--a); color: var(--on-a, #fff); font-size: 15px; font-weight: 700; white-space: nowrap; }
.ws-btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.ws-btn--full { display: flex; width: 100%; }
.ws-acts { display: flex; gap: 12px; margin-top: 26px; }
.ws-promo { padding: 9px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; text-align: center; }
.ws-pnav { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; }
.ws-pnav .ws-logo { font-size: 20px; }
.ws-burger { display: grid; gap: 6px; width: 24px; }
.ws-burger i { height: 2px; border-radius: 2px; background: currentColor; }
.ws-pphoto { height: 260px; background: center / cover no-repeat; }
.ws-pphoto--tall { height: 380px; }
.ws-cart { position: relative; display: grid; place-items: center; width: 42px; height: 42px; font-size: 22px; }
.ws-cart em { position: absolute; top: 2px; right: 0; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--a); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.ws-form, .ws-pdp, .ws-steps, .ws-order { display: grid; gap: 12px; padding: 24px 20px; }
.ws-form > b, .ws-pdp > b, .ws-steps > b, .ws-order > b { font-family: var(--fh); font-size: 22px; }
.ws-form label, .ws-login label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; opacity: .8; }
.ws-form label span, .ws-login label span { padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-s); background: var(--field); font-size: 16px; font-weight: 500; opacity: 1; }
.ws-form small, .ws-login small { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; opacity: .7; }

/* Restaurante: azul profundo y turquesa, tipografía con serifa */
.ws--rest { --bg: #0b1f2e; --ink: #f4efe6; --a: #2dd4bf; --on-a: #062b28; --fh: Georgia, "Times New Roman", serif; --line-s: rgba(255, 255, 255, .14); --field: rgba(255, 255, 255, .06); --r: 99px; }
.ws--rest .ws-nav { position: absolute; z-index: 2; left: 0; right: 0; }
.ws--rest .ws-logo { font-weight: 700; font-size: 28px; }
.ws-hero { position: relative; display: flex; align-items: center; height: 500px; padding: 76px 56px 0; background: center 40% / cover no-repeat; }
.ws-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 31, 46, .94) 30%, rgba(11, 31, 46, .35)); }
.ws-hero > div { position: relative; max-width: 560px; }
.ws-hero small { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--a); }
.ws-hero h3 { margin: 10px 0 14px; font-size: 54px; line-height: 1.08; font-weight: 400; }
.ws-hero p { margin: 0; font-size: 18px; opacity: .8; }
.ws-dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -60px; padding: 0 56px; position: relative; }
.ws-dishes div { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: #12293a; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.ws-dishes i { grid-row: span 1; width: 70px; height: 70px; border-radius: 12px; background: #1d3a4d center / cover no-repeat; }
.ws-dishes b { font-family: var(--fh); font-weight: 400; font-size: 18px; }
.ws-dishes span { color: var(--a); font-weight: 700; }

/* Tienda: crema cálido y terracota */
.ws--shop { --bg: #faf6f0; --ink: #2b1d14; --a: #b4532a; --fh: "Trebuchet MS", var(--font); --line-s: #e7ddd1; --field: #fff; --r: 4px; }
.ws--shop .ws-logo { letter-spacing: .18em; font-size: 20px; }
.ws--shop .ws-nav nav { margin-left: 40px; margin-right: auto; }
.ws-split { display: grid; grid-template-columns: 1fr 1fr; height: 330px; margin: 0 56px; overflow: hidden; border-radius: 4px; background: #efe5d8; }
.ws-split > div { align-self: center; padding: 0 48px; }
.ws-split small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--a); }
.ws-split h3 { margin: 10px 0 22px; font-size: 40px; line-height: 1.12; }
.ws-split > i { background: center / cover no-repeat; }
.ws-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 24px 56px; }
.ws-grid div { display: grid; gap: 4px; }
.ws-grid i { height: 230px; margin-bottom: 8px; border-radius: 4px; background: #efe5d8 center / cover no-repeat; }
.ws-grid b { font-size: 15px; }
.ws-grid span { color: var(--a); font-weight: 700; }
.ws-pdp strong { font-size: 24px; color: var(--a); }
.ws-sizes, .ws-pays { display: flex; gap: 8px; }
.ws-sizes span { display: grid; place-items: center; width: 46px; height: 42px; border: 1px solid var(--line-s); border-radius: 4px; font-weight: 600; }
.ws-sizes .on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.ws-pays span { padding: 6px 12px; border-radius: 99px; background: #efe5d8; font-size: 13px; font-weight: 600; }

/* Botica: blanco clínico y verde */
.ws--pharma { --bg: #ffffff; --ink: #10302a; --a: #0f9f6e; --fh: var(--font-head); --line-s: #dbe7e2; --field: #f4f8f6; --r: 10px; }
.ws--pharma .ws-promo { background: #0f9f6e; color: #fff; }
.ws--pharma .ws-logo { color: var(--a); }
.ws-search { display: flex; align-items: center; gap: 10px; flex: 1; height: 48px; padding: 0 18px; border-radius: 99px; border: 1.5px solid #cfe3da; background: #f4f8f6; color: #5d7a71; font-size: 15px; }
.ws-banner { display: grid; grid-template-columns: 1.1fr 1fr; height: 330px; margin: 6px 56px 0; overflow: hidden; border-radius: 20px; background: #e8f6f0; }
.ws-banner > div { align-self: center; padding: 0 48px; }
.ws-banner small { font-size: 13px; font-weight: 700; color: var(--a); }
.ws-banner h3 { margin: 8px 0 10px; font-size: 40px; line-height: 1.12; }
.ws-banner p { margin: 0 0 22px; color: #47665d; }
.ws-banner > i { background: center / cover no-repeat; }
.ws-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 24px 56px; }
.ws-cats div { display: grid; justify-items: center; gap: 10px; padding: 20px 10px; border-radius: 16px; border: 1px solid var(--line-s); font-size: 14px; font-weight: 600; }
.ws-cats .i { width: 30px; height: 30px; padding: 12px; box-sizing: content-box; border-radius: 50%; background: #e8f6f0; color: var(--a); }
.ws-psearch { display: flex; align-items: center; gap: 10px; margin: 0 20px; padding: 14px 16px; border-radius: 99px; background: #f4f8f6; border: 1.5px solid #cfe3da; color: #47665d; }
.ws-order { justify-items: center; text-align: center; padding-top: 34px; }
.ws-ok { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e8f6f0; color: var(--a); font-size: 30px; }
.ws-order small { color: #47665d; }
.ws-order ul { display: grid; gap: 10px; width: 100%; margin: 10px 0 0; padding: 16px; border-radius: 14px; background: #f4f8f6; list-style: none; text-align: left; font-size: 14px; }
.ws-order li, .ws-tot { display: flex; justify-content: space-between; gap: 10px; }
.ws-tot { width: 100%; padding: 0 16px; font-size: 18px; }
.ws-tot b { color: var(--a); }

/* Constructora: grafito y amarillo, tipografía fuerte */
.ws--build { --bg: #121212; --ink: #f2f2f0; --a: #facc15; --on-a: #121212; --fh: var(--font-head); --line-s: #333; --field: #1c1c1c; --r: 0; }
.ws--build .ws-logo { letter-spacing: .06em; }
.ws-bhero { background: center / cover no-repeat; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; padding: 70px 56px 40px; }
.ws-bhero small { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--a); }
.ws-bhero h3 { margin: 12px 0 28px; font-size: 66px; line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.ws-bhero dl { display: grid; gap: 0; margin: 0; border-top: 1px solid #333; }
.ws-bhero dl div { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #333; }
.ws-bhero dt { font-weight: 700; }
.ws-bhero dd { margin: 0; color: #9a9a96; }
.ws-proj { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; padding: 0 56px; }
.ws-proj div { display: flex; flex-direction: column; justify-content: flex-end; height: 200px; padding: 18px; background: #222 center / cover no-repeat; }
.ws-proj b { font-size: 20px; }
.ws-proj span { color: var(--a); font-size: 14px; }
.ws-steps small { color: #9a9a96; }
.ws-steps > i { height: 4px; background: #2a2a2a; }
.ws-steps > i b { display: block; height: 100%; background: var(--a); }
.ws-steps > span:not(.ws-btn) { padding: 16px; border: 1px solid #333; font-weight: 600; }
.ws-steps > span.on { border-color: var(--a); color: var(--a); }

/* Portal a medida: interfaz de aplicación */
.ws--portal { --bg: #f5f7fb; --ink: #111827; --a: #4f46e5; --fh: var(--font-head); --line-s: #e5e7eb; --field: #fff; --r: 8px; }
.ws-app { display: grid; grid-template-columns: 220px 1fr; height: 100%; }
.ws-app aside { display: grid; align-content: start; gap: 4px; padding: 24px 16px; background: #111827; color: #cbd5e1; }
.ws-app aside .ws-logo { margin: 0 8px 20px; color: #fff; font-size: 20px; }
.ws-app aside span { padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.ws-app aside span.on { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.ws-app__main { padding: 30px 36px; }
.ws-app__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ws-app__top h3 { font-size: 28px; }
.ws-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.ws-kpis div { padding: 18px; border-radius: 12px; border: 1px solid var(--line-s); background: #fff; }
.ws-kpis small { color: #6b7280; }
.ws-kpis b { display: block; font-size: 30px; }
.ws-app table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-s); font-size: 15px; }
.ws-app th { padding: 14px 18px; background: #f9fafb; color: #6b7280; font-weight: 600; text-align: left; }
.ws-app td { padding: 14px 18px; border-top: 1px solid var(--line-s); }
.ws-app em { padding: 4px 10px; border-radius: 99px; font-style: normal; font-size: 13px; font-weight: 600; }
.ws-app .st-ok { background: #dcfce7; color: #166534; }
.ws-app .st-run { background: #e0e7ff; color: #3730a3; }
.ws-app .st-wait { background: #fef3c7; color: #92400e; }
.ws-login { display: grid; gap: 16px; align-content: center; height: 100%; padding: 28px; background: linear-gradient(180deg, #eef2ff, #f5f7fb 40%); }
.ws-login .ws-logo { color: var(--a); font-size: 24px; }
.ws-login h4 { font-size: 26px; margin-bottom: 6px; }

@media (max-width: 1080px) {
  .wr__body { grid-template-columns: minmax(0, 1fr); }
  .wr__info { max-width: 640px; }
}
@media (max-width: 640px) {
  .wr__tabs { flex-wrap: nowrap; justify-content: flex-start; margin: 0 -16px 16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .wr__tabs button { flex: none; padding: 8px 14px; font-size: 13.5px; }
  .wr__stage { padding: 0 24px 28px 0; }
  .wr-phone { min-width: 0; width: 34%; padding: 5px; border-radius: 18px; }
  .wr-phone .wr-screen { border-radius: 14px; }
  .wr-url { font-size: 11px; }
  .wr__info h3 { font-size: 21px; }
}

/* Turismo: arena cálida y verde andino, fotos reales de Perú */
.ws--tour { --bg: #fbf8f3; --ink: #1f2a24; --a: #e2683c; --fh: Georgia, "Times New Roman", serif; --line-s: #e8e1d6; --field: #fff; --r: 99px; }
.ws-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Hotel boutique: piedra clara y bronce; reutiliza las piezas de Turismo */
.ws--hotel { --bg: #f8f6f2; --ink: #1e1b18; --a: #9a7443; --fh: Georgia, "Times New Roman", serif; --line-s: #e7e0d5; --field: #fff; --r: 99px; }
.ws--hotel .ws-incl span { background: #f3ede4; color: #6b5330; }
.ws--hotel .ws-thero::after { background: linear-gradient(180deg, rgba(20, 16, 12, .45), rgba(20, 16, 12, .1) 40%, rgba(20, 16, 12, .5)); }
.ws-thero { position: relative; height: 436px; color: #fff; }
.ws-thero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 50, .35), transparent 35%, rgba(20, 30, 30, .45)); }
.ws-thero > :not(.ws-scene) { position: relative; z-index: 1; }
.ws-thero .ws-nav nav { opacity: .95; }
.ws-thero .ws-logo { font-family: var(--fh); font-weight: 700; }
.ws-lang { font-size: 13px; font-weight: 700; opacity: .85; }
.ws-thero__txt { max-width: 640px; padding: 34px 56px 0; }
.ws-thero__txt small { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ws-thero__txt h3 { margin: 10px 0 10px; font-size: 56px; line-height: 1.04; font-weight: 400; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.ws-thero__txt p { margin: 0; font-size: 18px; opacity: .92; }
.ws-book { position: absolute !important; left: 56px; right: 56px; bottom: -40px; display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 6px; padding: 10px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(20, 30, 30, .55); }
.ws-book > div { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-right: 1px solid var(--line-s); }
.ws-book > div .i { width: 22px; height: 22px; color: var(--a); }
.ws-book small { display: block; font-size: 12px; color: #7a8079; }
.ws-book b { font-size: 16px; }
.ws-book .ws-btn { height: 56px; padding: 0 28px; gap: 8px; }
.ws-tours { padding: 60px 56px 0; }
.ws-tours__h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.ws-tours__h h4 { font-size: 26px; font-weight: 400; }
.ws-tours__h span { display: inline-flex; align-items: center; gap: 6px; color: var(--a); font-weight: 700; font-size: 15px; }
.ws-tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ws-tgrid article { position: relative; height: 150px; overflow: hidden; border-radius: 18px; }
.ws-tgrid article > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; background: linear-gradient(transparent, rgba(15, 25, 20, .75)); color: #fff; }
.ws-tgrid b { display: block; font-family: var(--fh); font-size: 21px; font-weight: 400; }
.ws-tgrid small { font-size: 13px; opacity: .9; }
.ws-tgrid strong { font-size: 15px; }
.ws-tag { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.ws-tdet { position: relative; height: 300px; overflow: hidden; border-radius: 0 0 28px 28px; }
.ws-tdet .ws-tag { top: auto; bottom: 16px; left: 18px; }
.ws-tdet__top { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 1; display: flex; justify-content: space-between; }
.ws-tdet__top i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); }
.ws-tdet__top i:first-child .i { transform: rotate(180deg); }
.ws-tinfo { display: grid; gap: 12px; padding: 18px 20px; }
.ws-tinfo > small { color: var(--a); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ws-tinfo h4 { margin-top: -6px; font-size: 26px; font-weight: 400; }
.ws-iti { display: grid; gap: 8px; margin: 0; padding: 0 0 0 14px; border-left: 2px dashed #e0c9b5; list-style: none; }
.ws-iti li { display: grid; font-size: 14px; }
.ws-iti b { color: var(--a); font-size: 12.5px; }
.ws-incl { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-incl span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: #eef4ec; color: #3f6b3a; font-size: 12.5px; font-weight: 700; }
.ws-dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ws-dates span { display: grid; justify-items: center; padding: 8px 0; border-radius: 14px; border: 1px solid var(--line-s); background: #fff; }
.ws-dates small { font-size: 11px; color: #7a8079; text-transform: uppercase; }
.ws-dates b { font-size: 18px; }
.ws-dates span.on { border-color: var(--a); background: var(--a); color: #fff; }
.ws-dates span.on small { color: #fff; }
.ws-tbuy { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 22px; background: #fff; box-shadow: 0 -10px 24px -16px rgba(20, 30, 30, .35); }
.ws-tbuy small { display: block; color: #7a8079; font-size: 11.5px; line-height: 1.2; }
.ws-tbuy b { font-size: 24px; line-height: 1.1; }
.ws-tbuy .ws-btn { height: 52px; padding: 0 26px; }

/* ---------- Hotel: check-in en 4 pasos con resumen ---------- */
.ht__dialog--ci { width: min(760px, 100%); padding: 18px 20px; }
.ci { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; }
.ci__form h6 { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.ci__form h6 i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-900); color: #fff; font-style: normal; font-size: 11px; }
.ci__room { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #f3f9ef; border: 1px solid #dcefd0; }
.ci__room > span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: #3f7d0c; }
.ci__room > div { flex: 1; min-width: 0; }
.ci__room b { display: block; font-family: var(--font-head); font-size: 16px; }
.ci__room small { color: var(--muted); font-size: 12.5px; }
.ci__room em { padding: 3px 10px; border-radius: 99px; background: #5aa312; color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; }
.ci__amen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ci__amen span { padding: 3px 9px; border-radius: 99px; background: var(--bg-soft); color: var(--ink-2); font-size: 11.5px; }
.ci__seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.ci__seg button { display: grid; gap: 1px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font-size: 12.5px; transition: border-color .15s, background .15s; }
.ci__seg button small { color: var(--muted); font-size: 12px; }
.ci__seg button.is-on { border-color: var(--navy-900); background: #f2f5fb; box-shadow: inset 0 0 0 1px var(--navy-900); }
.ci__guest { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ci__guest .mz__field { margin-top: 0; }
.ci__step { display: inline-flex; align-items: center; gap: 8px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.ci__step button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--bg-soft); color: var(--ink); font-size: 16px; font-weight: 700; }
.ci__step b { min-width: 22px; text-align: center; font-size: 13px; color: var(--ink); white-space: nowrap; }
.ci__stay { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ci__stay > div { display: grid; padding: 8px 12px; border-radius: 12px; background: var(--bg-soft); }
.ci__stay > div small { color: var(--muted); font-size: 11px; }
.ci__stay > div b { font-size: 13px; }
.ci__stay > .i { color: var(--muted); }
.ci__stay .ci__step { margin-left: auto; }
.ci__pays { margin-top: 8px; }
.ci__sum { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--bg-soft); align-self: start; position: sticky; top: 0; }
.ci__sum > small { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ci__sum ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ci__sum li { display: flex; justify-content: space-between; gap: 8px; }
.ci__sum li span { color: var(--ink-2); }
.ci__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px dashed #d6deea; }
.ci__total b { font-family: var(--font-head); font-size: 24px; }
.ci__sum p { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink-2); font-size: 12px; }
.ci__sum .mz__btn { margin-top: 2px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .ci { grid-template-columns: 1fr; }
  .ci__sum { position: static; }
  .ci__seg { grid-template-columns: 1fr; }
  .ci__stay .ci__step { margin-left: 0; }
}

/* ---------- Hotel: módulo Habitaciones ---------- */
.hx { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.hx:has(.hx__panel) { grid-template-columns: minmax(0, 1fr) 250px; }
.hx__tbl td small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.hx__tbl tr.is-off td:not(:nth-last-child(-n+2)) { opacity: .45; }
.hx__act { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 3px 9px; border: 1px solid #fed7aa; border-radius: 99px; background: #fff7ed; color: #c2410c; font-size: 11px; font-weight: 700; }
.hx__act .i { width: 12px; height: 12px; }
.hx__act--ok { border-color: #bae6fd; background: #f0f9ff; color: #0369a1; }
.hx__sw { position: relative; width: 36px; height: 20px; padding: 0; border: 0; border-radius: 99px; background: #cbd3e1; transition: background .2s; }
.hx__sw i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.hx__sw.is-on { background: #16a34a; }
.hx__sw.is-on i { transform: translateX(16px); }
.hx__edit { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink-2); }
.hx__edit.is-on { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.hx__edit .i { width: 15px; height: 15px; }
.hx__panel { display: grid; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); animation: fadeUp .25s ease; }
.hx__ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hx__ph b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.hx__ph button { border: 0; background: none; color: var(--muted); }
.hx__panel > small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hx__price { display: flex; align-items: center; justify-content: space-between; padding: 6px; border-radius: 12px; background: var(--bg-soft); }
.hx__price b { font-family: var(--font-head); font-size: 20px; }
.hx__price button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: #fff; font-size: 18px; font-weight: 700; box-shadow: var(--shadow-sm); }
.hx__panel ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.hx__panel li { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 8px; background: var(--bg-soft); }
.hx__amen { display: flex; flex-wrap: wrap; gap: 5px; }
.hx__amen button { padding: 4px 9px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 11.5px; color: var(--ink-2); }
.hx__amen button.is-on { border-color: #16a34a; background: #f0fdf4; color: #15803d; font-weight: 700; }
.hx__panel p { display: flex; gap: 6px; margin: 4px 0 0; color: var(--muted); font-size: 11.5px; }
@media (max-width: 900px) {
  .hx:has(.hx__panel) { grid-template-columns: 1fr; }
}
.ci__title { display: inline-flex; align-items: center; gap: 8px; }
.ci > *, .ci__form > * { min-width: 0; }
@media (max-width: 760px) {
  .ht__modal:has(.ht__dialog--ci) { padding: 8px; }
  .ht__dialog--ci { padding: 14px; }
  .ci__guest { grid-template-columns: 1fr; }
  .ci__guest .ci__step { justify-self: start; }
  .ci__room { flex-wrap: wrap; }
  .ci__stay > div { flex: 1; }
}
