/* usualclub — panel del negocio v2 (diseño PanelNegocio de claude.ai/design).
   Lateral oscuro de 248 px en ordenador (≥980 px); en el móvil, barra de
   arriba oscura y barra de abajo con el botón «Sellar» en el centro.
   Tokens de color en app.css; aquí solo lo del panel. */

.pn { background: #F7F7FA; min-height: 100vh; display: flex; }
.pn-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pn ::-webkit-scrollbar { width: 3px; height: 3px; }
.pn ::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }
@supports not selector(::-webkit-scrollbar) { .pn * { scrollbar-width: thin; scrollbar-color: var(--orange) transparent; } }

@keyframes qzDrop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes qzUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes qzFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qzSlide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes qzToast { 0% { opacity: 0; transform: translateY(16px) scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes qzScan { 0%, 100% { top: 12%; } 50% { top: 84%; } }
@keyframes qzPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 74, .55); } 100% { box-shadow: 0 0 0 16px rgba(255, 107, 74, 0); } }

/* --- Lateral --------------------------------------------------------------- */
.pn-side { display: none; }
@media (min-width: 980px) {
  .pn-side { width: 248px; flex: none; background: var(--ink); color: #E5E7EB; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 20px; padding: 20px 14px; overflow-y: auto; }
}
.pn-logo { text-decoration: none; display: flex; align-items: center; font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: #fff; padding: 0 8px; }
.pn-logo:hover { color: #fff; }
.pn-logo .mk { width: 19px; height: 19px; border-radius: 50%; border: 3px solid var(--orange); display: inline-grid; place-items: center; margin-left: 3px; transform: rotate(-14deg); }
.pn-logo .mk::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.pn-biz { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.pn-biz b { display: block; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-biz span { font-size: 12px; color: var(--on-ink); }
.pn-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--c); display: grid; place-items: center; flex: none; overflow: hidden; }
.pn-mark img { width: 26px; height: 26px; display: block; }
.pn-mark img.full { width: 100%; height: 100%; object-fit: cover; }
.pn-mark.sm { width: 36px; height: 36px; border-radius: 10px; }
.pn-mark.sm img { width: 24px; height: 24px; }
.pn-nav { display: flex; flex-direction: column; gap: 14px; }
.pn-group { display: flex; flex-direction: column; gap: 2px; }
.pn-group > button { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border: 0; background: none; cursor: pointer; color: var(--mute); font: 700 11px var(--font); letter-spacing: .14em; text-transform: uppercase; text-align: left; }
.pn-group > button:hover { color: #E5E7EB; }
.pn-group > button span { flex: 1; }
.pn-group > button svg { transition: transform .25s; }
.pn-group.closed > button svg { transform: rotate(-90deg); }
.pn-group .items { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease-out); }
.pn-group.closed .items { grid-template-rows: 0fr; }
.pn-group .items > div { overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.pn-nav a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; text-decoration: none; font: 500 14.5px var(--font); color: var(--on-ink); transition: background .2s, color .2s; }
.pn-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.pn-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
.pn-nav a > span:not(.pn-badge) { flex: 1; }
.pn-nav .pn-badge { flex: none; }
.pn-badge { font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--ink); display: grid; place-items: center; }
.pn-badge.beta { background: rgba(255, 107, 74, .22); color: var(--orange-soft); height: auto; padding: 2px 8px; }
.pn-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.pn-side-foot button, .pn-side-foot a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--on-ink); text-decoration: none; font: 400 14px var(--font); background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.pn-side-foot button:hover, .pn-side-foot a:hover { background: rgba(255, 255, 255, .06); color: #fff; }

/* --- Barra de arriba (móvil) y cabecera ------------------------------------ */
.pn-mtop { background: var(--ink); padding: 10px 16px; position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; min-height: 58px; }
.pn-mtop .who { flex: 1; min-width: 0; }
.pn-mtop b { display: block; font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-mtop span.sub { font-size: 12px; color: var(--on-ink); }
.pn-av { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; text-decoration: none; }
@media (min-width: 980px) { .pn-mtop { display: none; } }

.pn-head { position: sticky; top: 58px; z-index: 30; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 16px clamp(16px, 3vw, 32px); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid rgba(27, 31, 59, .06); }
@media (min-width: 980px) { .pn-head { top: 0; } }
.pn-head .t { flex: 1; min-width: 220px; }
.pn-head h1 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.pn-head p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.pn-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 0 14px; min-height: 44px; box-shadow: 0 0 0 1px rgba(27, 31, 59, .1); min-width: 0; flex: 0 1 280px; margin: 0; }
.pn-search input { border: 0; outline: 0; background: none; font: 400 14.5px var(--font); min-width: 0; flex: 1; color: var(--ink); }
.pn-head .desk { display: none; }
@media (min-width: 980px) { .pn-head .desk { display: flex; } }
.pn-sellar { align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--orange); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(255, 107, 74, .8); text-decoration: none; }
.pn-sellar:hover { color: #fff; background: var(--orange-2); }
.pn-me { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; text-decoration: none; }
.pn-me:hover { color: #fff; }
@media (min-width: 980px) { .pn-me.desk { display: grid; } }

.pn-main { padding: clamp(16px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1440px; }
.pn-main > * { animation: qzUp .45s both; }
@media (max-width: 979px) { .pn-main { padding-bottom: 110px; } }

/* --- Piezas comunes -------------------------------------------------------- */
.pc { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 0 0 1px rgba(27, 31, 59, .07); min-width: 0; }
.pc h2 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.pc .sub { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.pc-dark { background: var(--ink); color: #fff; border-radius: 26px; padding: 24px; }
.pc-flush { padding: 0; overflow: hidden; }
.pc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.g-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.g-fill { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.g-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1180px) { .g-2 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.g-2b { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1100px) { .g-2b { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.g-even { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 14px; align-items: start; }

.pb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; font: 600 14.5px var(--font); cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; white-space: nowrap; }
.pb:hover { color: #fff; background: var(--ink-hover); }
.pb:disabled { opacity: .5; cursor: default; }
.pb.orange { background: var(--orange); color: var(--ink); font-weight: 700; }
.pb.orange:hover { background: var(--orange-2); color: var(--ink); }
.pb.green { background: var(--green); color: #fff; }
.pb.green:hover { background: #18734b; }
.pb.line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pb.line:hover { background: var(--bg); color: var(--ink); }
.pb.soft { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(27, 31, 59, .18); }
.pb.soft:hover { background: var(--bg); color: var(--ink); }
.pb.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.pb.ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pb.danger { background: none; color: var(--err-ink); padding: 0 12px; min-height: 36px; font-size: 13px; }
.pb.danger:hover { background: var(--err-bg); color: var(--err-ink); }
.pb.danger-line { background: #fff; color: var(--err); box-shadow: inset 0 0 0 1.5px var(--err); font-weight: 700; }
.pb.danger-line:hover { background: var(--err-bg); color: var(--err); }
.pb.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.pb.lg { min-height: 56px; padding: 0 32px; font-size: 17px; font-weight: 700; }
.pb.block { width: 100%; }

.pill { min-height: 40px; padding: 0 14px; border-radius: 12px; cursor: pointer; font: 600 13.5px var(--font); border: 1.5px solid rgba(27, 31, 59, .14); background: #fff; color: var(--ink); transition: all .2s; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed="true"], .pill[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill .n { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #F7F7FA; }
.pill[aria-pressed="true"] .n, .pill[aria-current="page"] .n { background: rgba(255, 255, 255, .18); }

.tag2 { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex: none; }
.tag2.ok { background: var(--green-bg); color: var(--green-ink); }
.tag2.warn { background: var(--peach); color: var(--rust-2); }
.tag2.blue { background: #E3ECF5; color: #1D4E7A; }
.tag2.mute { background: #EEF0F8; color: #4A4E66; }

.av { width: 38px; height: 38px; border-radius: 50%; background: var(--c, #2E4A62); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.av.lg { width: 52px; height: 52px; font-size: 18px; }
.av.xl { width: 56px; height: 56px; font-size: 20px; }
.av.md { width: 48px; height: 48px; font-size: 17px; }
.av.xs { width: 32px; height: 32px; font-size: 11px; }

.sw { width: 44px; height: 26px; border-radius: 999px; background: rgba(27, 31, 59, .2); position: relative; transition: background .2s; flex: none; display: inline-block; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: left .25s cubic-bezier(.3, 1.4, .5, 1); }
.swl { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; position: relative; }
.swl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swl input:checked + .sw { background: var(--green); }
.swl input:checked + .sw::after { left: 21px; }
.swl.orange input:checked + .sw { background: var(--orange); }
.swl input:focus-visible + .sw { outline: 3px solid var(--orange); outline-offset: 2px; }

.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.fld input:not([type=range]):not([type=checkbox]), .fld select, .fld textarea { min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid rgba(27, 31, 59, .18); background: var(--bg); font: 400 15.5px var(--font); color: var(--ink); outline-color: var(--orange); width: 100%; }
.fld textarea { padding: 12px 14px; resize: vertical; min-height: 0; }
.fld .hint { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.fld.white input, .fld.white select, .fld.white textarea { background: #fff !important; }
.err-box { font-size: 13.5px; color: var(--err-ink); background: var(--err-bg); padding: 10px 12px; border-radius: 12px; }
.ok-box { padding: 16px; border-radius: 16px; background: var(--green-bg); color: #123F2B; font-size: 14.5px; line-height: 1.5; }
.warn-box { padding: 14px 16px; border-radius: 16px; background: var(--peach); color: #5E2E0D; font-size: 14.5px; line-height: 1.5; }

/* --- Resumen ------------------------------------------------------------- */
.onb { background: var(--ink); color: #fff; border-radius: 26px; padding: clamp(20px, 3vw, 28px); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; }
.onb::before { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: var(--orange); filter: blur(100px); opacity: .45; }
.onb > * { position: relative; }
.onb .eyebrow2 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-soft); }
.onb h2 { margin: 6px 0 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.03em; text-wrap: balance; line-height: 1.15; }
.onb .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.onb .bar i { display: block; height: 100%; background: var(--orange); border-radius: 4px; transition: width .5s var(--ease-out); }
.onb .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.onb .step { background: rgba(255, 255, 255, .06); color: #fff; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; transition: all .3s; }
.onb .step.next { background: #fff; color: var(--ink); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.onb .step.done { opacity: .6; }
@media (max-width: 979px) { .onb .step.done { min-height: 0; } .onb .step.done .d { display: none; } }
.onb .step .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: rgba(255, 255, 255, .12); color: #fff; }
.onb .step.next .num { background: var(--orange); color: var(--ink); }
.onb .step.done .num { background: var(--green); color: #fff; }
.onb .step b { font-size: 16px; font-weight: 700; }
.onb .step.done b { text-decoration: line-through; }
.onb .step .d { font-size: 13.5px; line-height: 1.5; color: var(--on-ink); }
.onb .step.next .d { color: var(--ink-2); }
.onb .step .lnk { font-size: 13px; font-weight: 600; color: var(--orange-soft); }
.onb .step.next .lnk { color: var(--rust); }
.onb .step .pb { margin-top: auto; align-self: flex-start; background: rgba(255, 255, 255, .12); font-weight: 700; font-size: 14px; min-height: 42px; padding: 0 16px; }
.onb .step.next .pb { background: var(--ink); }

.kpi2 { background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 0 0 1px rgba(27, 31, 59, .07); }
.kpi2 .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.kpi2 .v { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; line-height: 1.2; }
.kpi2 .d { font-size: 13px; margin-top: 2px; font-weight: 600; color: var(--ink-2); }
.kpi2 .d.up { color: var(--green); }
.kpi2 .d.down { color: var(--err); }
.kpi2 .d.rust { color: var(--rust); }

.seg2 { display: flex; padding: 4px; background: #F7F7FA; border-radius: 14px; gap: 2px; }
.seg2 a { min-height: 34px; padding: 0 12px; border-radius: 12px; display: inline-flex; align-items: center; font: 600 13px var(--font); color: var(--ink); text-decoration: none; }
.seg2 a[aria-current="page"] { background: var(--ink); color: #fff; }

.chart { margin-top: 26px; height: 230px; display: flex; align-items: flex-end; gap: 8px; position: relative; border-bottom: 1px solid rgba(27, 31, 59, .1); }
.chart.dense { gap: 3px; }
.chart::before, .chart::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(27, 31, 59, .1); pointer-events: none; }
.chart::before { top: 0; }
.chart::after { top: 50%; }
.chart .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.chart .col i { display: block; width: 100%; max-width: 38px; border-radius: 8px 8px 3px 3px; background: #D9DBE5; transition: height .5s var(--ease-out), background .2s; min-height: 3px; }
.chart .col.today i { background: var(--orange); }
.chart .col:hover i { background: var(--ink); }
.chart .col.today:hover i { background: var(--orange); }
.chart .tip { position: absolute; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; white-space: nowrap; z-index: 2; display: none; pointer-events: none; }
.chart .col:hover .tip, .chart .col:focus-within .tip { display: block; animation: qzDrop .15s both; }
.chart-axis { display: flex; gap: 8px; margin-top: 8px; }
.chart-axis.dense { gap: 3px; }
.chart-axis span { flex: 1; text-align: center; font-size: 11px; color: var(--ink-3); }
.chart.vs { align-items: stretch; height: 240px; gap: 3px; }
.chart .col, .chart-axis span { min-width: 0; flex: 1 1 0; }
.chart, .chart-axis { max-width: 100%; overflow-x: clip; }
.chart-axis.dense { gap: 3px; } .chart.dense, .chart.vs { gap: 2px; }
.chart .tip { max-width: 70vw; }
.chart.vs .col { display: block; }
.chart.vs .col i { position: absolute; bottom: 0; max-width: none; }
.chart.vs .col i.prev { left: 0; right: 0; background: #E5E7EB; border-radius: 6px 6px 2px 2px; }
.chart.vs .col i.cur { left: 22%; right: 22%; width: auto; background: var(--orange); border-radius: 6px 6px 2px 2px; min-height: 0; }
.chart.vs .col:hover i.cur { background: var(--ink); }
.chart.vs .col:hover i.prev { background: #E5E7EB; }
.chart.vs .tip { left: 50%; transform: translateX(-50%); }
.chart.vs .col:nth-last-child(-n+5) .tip { transform: translateX(-90%); }
.chart.vs .col:nth-child(-n+5) .tip { transform: translateX(-10%); }
.chart.hours { height: 180px; gap: 6px; margin-top: 22px; }
.chart.hours .col.peak i { background: var(--orange); }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--orange); }
.legend i.prev { background: #E5E7EB; }

.plist { display: flex; flex-direction: column; gap: 4px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.prow .who { flex: 1; min-width: 0; }
.prow .who b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .who span { font-size: 13px; color: var(--ink-2); }
.prow .done { font-size: 13px; font-weight: 600; color: var(--green); padding: 0 6px; }
.prow .pb.sm[disabled] { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1.5px rgba(27, 31, 59, .12); opacity: 1; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(27, 31, 59, .06); font-size: 14.5px; }
.feed li .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ink)); flex: none; margin-top: 6px; }
.feed li .tx { flex: 1; }
.feed li time { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.empty2 { margin: 0; font-size: 14px; color: var(--ink-3); padding: 16px; border-radius: 14px; background: var(--bg); }

/* --- Sellar -------------------------------------------------------------- */
.scan-box { background: var(--ink); border-radius: 26px; padding: 24px; color: #fff; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; min-width: 0; }
.scan-box h2 { margin: 0; font-size: 20px; font-weight: 700; }
.today-pill { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; }
.viewfinder { position: relative; aspect-ratio: 4/3; border-radius: 20px; background: #0f171d; overflow: hidden; display: grid; place-items: center; }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder .cn { position: absolute; width: 40px; height: 40px; border: 0 solid var(--orange); z-index: 2; }
.viewfinder .cn.tl { left: 18%; top: 14%; border-left-width: 4px; border-top-width: 4px; border-radius: 10px 0 0 0; }
.viewfinder .cn.tr { right: 18%; top: 14%; border-right-width: 4px; border-top-width: 4px; border-radius: 0 10px 0 0; }
.viewfinder .cn.bl { left: 18%; bottom: 14%; border-left-width: 4px; border-bottom-width: 4px; border-radius: 0 0 0 10px; }
.viewfinder .cn.br { right: 18%; bottom: 14%; border-right-width: 4px; border-bottom-width: 4px; border-radius: 0 0 10px 0; }
.viewfinder .laser { position: absolute; left: 16%; right: 16%; height: 3px; background: var(--orange); box-shadow: 0 0 18px 5px rgba(255, 107, 74, .7); animation: qzScan 1.1s ease-in-out infinite; z-index: 2; display: none; }
.viewfinder.on .laser { display: block; }
.viewfinder .idle { opacity: .16; }
.viewfinder.on .idle { display: none; }
.viewfinder .msg:empty { display: none; }
.viewfinder .msg { background: none; padding: 0; border-radius: 0; box-shadow: none; position: absolute; bottom: 10px; left: 10px; right: 10px; text-align: center; font-size: 14px; color: #E5E7EB; z-index: 2; }
.scan-btn { min-height: 58px; border-radius: 12px; border: 0; background: var(--orange); color: var(--ink); font: 700 17px var(--font); cursor: pointer; animation: qzPulse 1.8s infinite; display: flex; align-items: center; justify-content: center; gap: 10px; }
.scan-btn.stop { background: rgba(255, 255, 255, .12); color: #fff; animation: none; }
.swl.light { justify-content: space-between; color: #fff; }
.find { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; }
.find label { display: block; font-size: 13px; color: var(--on-ink); margin-bottom: 8px; }
.find input { width: 100%; min-height: 48px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; padding: 0 14px; font: 400 15px var(--font); outline-color: var(--orange); }
.find input::placeholder { color: rgba(255, 255, 255, .5); }
.find .res { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.find .res button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; text-align: left; font: inherit; }
.find .res button:hover { background: rgba(255, 255, 255, .12); }
.find .res b { flex: 1; font-size: 14.5px; font-weight: 600; }
.find .res span.c { font-size: 13px; color: var(--on-ink); }
.find .none { font-size: 13px; color: var(--on-ink); padding: 6px 2px; }
.stage { background: #fff; border-radius: 26px; padding: 28px; box-shadow: 0 0 0 1px rgba(27, 31, 59, .07); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 600px; min-width: 0; position: relative; }
@media (max-width: 979px) { .stage { min-height: 0; padding: 22px 16px; } }
.stage .empty-s { text-align: center; max-width: 340px; }
.stage .empty-s h2 { margin: 14px 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stage .empty-s p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.stage .who-row { display: flex; align-items: center; gap: 12px; align-self: stretch; }
.stage .who-row .who { flex: 1; min-width: 0; }
.stage .who-row b { display: block; font-size: 18px; }
.stage .who-row .who span { font-size: 13.5px; color: var(--ink-2); }
.dup { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--peach); color: #5E2E0D; animation: qzDrop .3s both; }
.dup span { flex: 1; min-width: 200px; font-size: 14.5px; }
.full-banner { align-self: stretch; padding: 12px 16px; border-radius: 16px; background: var(--green-bg); color: #123F2B; font-size: 14.5px; text-align: center; animation: qzDrop .3s both; }
.stage .acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.stage .acts form { display: contents; }
.big-msg { align-self: stretch; text-align: center; font: 800 20px var(--font); letter-spacing: -.02em; color: var(--green-ink); animation: qzDrop .3s both; }
.big-msg.prize { color: var(--rust); }
.recover-link { background: none; border: 0; color: var(--ink-2); font: 600 13.5px var(--font); text-decoration: underline; cursor: pointer; }
.double-now { align-self: stretch; padding: 10px 14px; border-radius: 14px; background: rgba(255, 107, 74, .16); color: var(--orange-soft); font-size: 13.5px; font-weight: 600; }

/* --- Clientes ------------------------------------------------------------ */
.ctools { padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-bottom: 1px solid rgba(27, 31, 59, .07); }
.ctools .filters { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.tscroll { overflow-x: auto; }
.ctable { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 14.5px; }
.ctable thead tr { background: var(--bg); text-align: left; }
.ctable th { padding: 0; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.ctable th a, .ctable th span { display: block; padding: 12px; text-decoration: none; color: var(--ink-2); }
.ctable th:first-child a { padding-left: 18px; }
.ctable th:last-child span { padding-right: 18px; }
.ctable tbody tr { border-top: 1px solid rgba(27, 31, 59, .06); cursor: pointer; }
.ctable tbody tr:hover { background: var(--bg); }
.ctable td { padding: 10px 12px; }
.ctable td:first-child { padding-left: 18px; }
.ctable td:last-child { padding-right: 18px; }
.ctable .cl { display: flex; align-items: center; gap: 12px; }
.ctable .cl b { display: block; }
.ctable .cl span span { font-size: 13px; color: var(--ink-3); }
.ctable .cl a { text-decoration: none; }
.sbar { display: flex; align-items: center; gap: 10px; }
.sbar .tr { width: 90px; height: 8px; border-radius: 4px; background: #EEF0F8; overflow: hidden; }
.sbar .tr i { display: block; height: 100%; background: var(--orange); border-radius: 4px; }
.sbar .tr i.full { background: var(--green); }
.sbar b { font-size: 13px; font-weight: 600; }
.last { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green-ink); white-space: nowrap; }
.last.risk { background: var(--peach); color: var(--rust-2); }
.consent-y { font-size: 13px; font-weight: 600; color: var(--green-ink); }
.consent-n { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.cfoot { padding: 14px 18px; font-size: 13px; color: var(--ink-3); border-top: 1px solid rgba(27, 31, 59, .07); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.cempty { padding: 40px 20px; text-align: center; color: var(--ink-2); }

/* --- Ficha del cliente (panel lateral) ----------------------------------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(27, 31, 59, .4); z-index: 70; animation: qzFade .2s both; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 71; overflow-y: auto; box-shadow: -30px 0 60px -20px rgba(27, 31, 59, .4); animation: qzSlide .3s cubic-bezier(.2, .8, .2, 1) both; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.drawer .hd { display: flex; align-items: center; gap: 12px; }
.drawer .hd .who { flex: 1; min-width: 0; }
.drawer .hd b { display: block; font-size: 20px; letter-spacing: -.02em; }
.drawer .hd .who span { font-size: 13.5px; color: var(--ink-2); }
.xbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; cursor: pointer; color: var(--ink); flex: none; }
.drawer .two-b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer .two-b form { display: contents; }
.drawer .two-b .pb { min-height: 48px; border-radius: 14px; font-weight: 700; }
.drawer .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer .stats div { background: #fff; border-radius: 16px; padding: 12px 14px; }
.drawer .stats span { display: block; font-size: 12px; color: var(--ink-3); }
.drawer .stats b { font-size: 16px; }
.drawer .box2 { background: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.drawer .box2 .mono { font-family: var(--mono); letter-spacing: .12em; }
.drawer .hist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.drawer .hist li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(27, 31, 59, .06); font-size: 13.5px; }
.drawer .hist time { color: var(--ink-3); white-space: nowrap; }
.drawer .confirm { padding: 14px; border-radius: 16px; background: var(--err-bg); color: #5C1410; display: flex; flex-direction: column; gap: 10px; animation: qzDrop .25s both; }
.drawer .confirm .row2 { display: flex; gap: 8px; }
.drawer .wc { display: flex; justify-content: center; }

/* --- Modales --------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(27, 31, 59, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; overflow: auto; animation: qzFade .2s both; }
.modal > .in { background: var(--bg); border-radius: 28px; max-width: 420px; width: 100%; padding: 28px; animation: qzDrop .3s both; display: flex; flex-direction: column; gap: 14px; position: relative; }
.modal > .in.wide { max-width: 880px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.modal h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.modal .x { position: absolute; right: 14px; top: 14px; }
.modal .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal .center { text-align: center; align-items: center; }
.qr-frame { position: relative; display: inline-block; background: #fff; border-radius: 18px; padding: 16px; align-self: center; }
.qr-frame img { display: block; width: 200px; height: 200px; transition: all .3s; }
.qr-frame.expired img { opacity: .12; filter: blur(2px); }
.qr-frame .exp { position: absolute; inset: 0; display: none; place-items: center; font-weight: 800; font-size: 20px; color: var(--err-ink); }
.qr-frame.expired .exp { display: grid; }
.tbar { height: 6px; border-radius: 3px; background: #EEF0F8; overflow: hidden; }
.tbar i { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width 1s linear; }
.tbar.low i { background: var(--err); }
.code-big { align-self: center; font: 700 26px var(--mono); letter-spacing: .12em; padding: 8px 18px; border-radius: 12px; background: #fff; }

/* --- Mi tarjeta ------------------------------------------------------------ */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.tpl-grid label { cursor: pointer; }
.tpl-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tpl-grid span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; font: 600 12.5px var(--font); color: var(--ink); border: 2px solid transparent; background: #F7F7FA; transition: all .2s; text-align: center; }
.tpl-grid input:checked + span { border-color: var(--ink); background: var(--bg); transform: translateY(-2px); }
.tpl-grid input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.logo-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.logo-row .mark76 { width: 76px; height: 76px; border-radius: 20px; background: var(--c); display: grid; place-items: center; overflow: hidden; flex: none; transition: background .3s; }
.logo-row .mark76 img { width: 48px; height: 48px; }
.logo-row .mark76 img.full { width: 100%; height: 100%; object-fit: cover; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pn-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pn-swatches label { position: relative; cursor: pointer; }
.pn-swatches input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pn-swatches .dotc { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(27, 31, 59, .15); transition: transform .2s; }
.pn-swatches input:checked + .dotc { box-shadow: 0 0 0 2.5px var(--ink); transform: scale(1.1); }
.pn-swatches input:focus-visible + .dotc { outline: 3px solid var(--orange); outline-offset: 3px; }
.pn-swatches .custom { position: relative; overflow: hidden; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: conic-gradient(#FF6B4A, #F2C230, #21865B, #1B5683, #7E3570, #FF6B4A); box-shadow: 0 0 0 1px rgba(27, 31, 59, .15); flex: none; }
.pn-swatches .custom.on { box-shadow: 0 0 0 2.5px var(--ink); transform: scale(1.1); }
.pn-swatches .custom input { position: absolute; inset: -10px; width: 60px; height: 60px; opacity: 0; cursor: pointer; }
.hex { width: 112px; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1.5px solid rgba(27, 31, 59, .18); background: var(--bg); font: 600 14px var(--mono); color: var(--ink); text-transform: uppercase; outline-color: var(--orange); }
.light-warn { font-size: 13px; color: var(--rust-2); background: var(--peach); padding: 6px 10px; border-radius: 10px; }
.mini-poster { width: 150px; background: var(--bg); border-radius: 14px; padding: 14px; text-align: center; box-shadow: 0 12px 24px -14px rgba(27, 31, 59, .4); transform: rotate(-3deg); flex: none; }
.mini-poster .b { font-size: 9px; font-weight: 600; letter-spacing: .1em; color: var(--rust); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-poster .h { font-weight: 800; font-size: 14px; line-height: 1.1; margin-top: 4px; }
.mini-poster img { width: 90px; height: 90px; margin-top: 8px; }
.mini-poster .r { font-size: 9px; color: var(--ink-2); margin-top: 4px; }
.preview-col { position: sticky; top: 96px; background: var(--ink); border-radius: 26px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; overflow: hidden; min-width: 0; }
.preview-col::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--c); filter: blur(90px); opacity: .6; top: 10%; transition: background .4s; }
.preview-col > * { position: relative; }
.preview-col .eyebrow2 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-soft); }
.pn-notif { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 18px; background: rgba(240, 240, 240, .94); width: min(320px, 100%); }
.pn-notif .tx { font-size: 12.5px; color: #111; min-width: 0; }
.pn-notif .tx b { display: block; }
.range { accent-color: var(--orange); height: 28px; width: 100%; }
@media (max-width: 1099px) { .preview-col { position: relative; top: 0; } }

/* --- Campañas, equipo, plan ------------------------------------------------ */
.bar-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: #fff; border-radius: 22px; padding: 18px 22px; box-shadow: 0 0 0 1px rgba(27, 31, 59, .07); }
.bar-top .l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-2); }
.bar-top b { color: var(--ink); }
.camp { display: flex; flex-direction: column; gap: 14px; }
.camp .hd { display: flex; gap: 12px; align-items: center; }
.camp .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; flex: none; }
.camp .hd .who { flex: 1; min-width: 0; }
.camp .hd b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camp .hd .who span { font-size: 13px; color: var(--ink-3); }
.camp .msg { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.camp .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.camp .nums b { display: block; font-size: 20px; }
.camp .nums span { font-size: 12px; color: var(--ink-3); }
.camp .ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid rgba(27, 31, 59, .07); padding-top: 12px; }
.ctypes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ctypes label { cursor: pointer; position: relative; }
.ctypes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ctypes .t { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 16px; color: var(--ink); border: 2px solid transparent; background: #fff; transition: border-color .2s; height: 100%; }
.ctypes input:checked + .t { border-color: var(--ink); }
.ctypes input:focus-visible + .t { outline: 3px solid var(--orange); outline-offset: 2px; }
.ctypes .t b { display: block; font-size: 14px; }
.ctypes .t span { font-size: 12px; color: var(--ink-3); }
.lock { background: var(--ink); border-radius: 24px; padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 360px; position: relative; overflow: hidden; }
.lock::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--c); filter: blur(80px); opacity: .7; top: 20%; }
.lock > * { position: relative; }
.lock .clock { font-size: 58px; font-weight: 600; color: #fff; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; }
.lock .date { font-size: 13px; color: var(--on-ink); margin-bottom: 18px; }
.lock .n2 { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 20px; background: rgba(240, 240, 240, .94); width: 100%; max-width: 330px; }
.lock .n2 .tx { font-size: 13px; color: #111; min-width: 0; flex: 1; }
.lock .n2 .tx .r1 { display: flex; justify-content: space-between; gap: 8px; }
.lock .n2 .tx .r1 span { color: #555; }
.lock .n2 .tx .m { display: block; margin-top: 2px; word-break: break-word; }
.staff-card { display: flex; flex-direction: column; gap: 14px; }
.staff-card.off { opacity: .6; }
.staff-card .hd { display: flex; gap: 12px; align-items: center; }
.staff-card .hd .who { flex: 1; min-width: 0; }
.staff-card .hd b { display: block; font-size: 16px; }
.staff-card .hd .who span { font-size: 13px; color: var(--ink-3); }
.staff-card .meta { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.staff-card .ft { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(27, 31, 59, .07); padding-top: 12px; gap: 10px; flex-wrap: wrap; }
.staff-card .ft form { margin: 0; }
.add-card { min-height: 200px; border-radius: 22px; border: 2px dashed rgba(27, 31, 59, .25); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: var(--ink); font: 600 15px var(--font); }
.add-card:hover { border-color: var(--ink); background: #fff; }
.add-card .plus { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 24px; }
.info-green { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--green-bg); border-radius: 22px; padding: 16px 22px; }
.info-green span { flex: 1; min-width: 220px; font-size: 14.5px; color: #123F2B; line-height: 1.5; }
.plan-dark { background: var(--ink); color: #fff; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.plan-dark .e { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-soft); }
.plan-dark b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan-dark span { font-size: 15px; color: var(--on-ink); }
.usage { display: flex; flex-direction: column; gap: 16px; }
.usage .r { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.usage .tr { height: 10px; border-radius: 5px; background: #EEF0F8; margin-top: 8px; overflow: hidden; }
.usage .tr i { display: block; height: 100%; background: var(--orange); border-radius: 5px; transition: width .5s; }
.usage .tr i.red { background: var(--err); }
.usage .tr i.green { background: var(--green); }
.plan-opt { background: #fff; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 0 1px rgba(27, 31, 59, .07); }
.plan-opt.on { box-shadow: 0 0 0 2.5px var(--orange); }
.plan-opt .p b { font-size: 30px; letter-spacing: -.03em; }
.plan-opt .p span { color: var(--ink-2); }
.plan-opt .d { font-size: 14px; color: var(--ink-2); }
.plan-opt .pb { margin-top: 8px; }
.plan-opt.on .pb { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1.5px rgba(27, 31, 59, .15); cursor: default; }
.itable { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.itable th { padding: 12px; font-size: 13px; color: var(--ink-2); font-weight: 600; text-align: left; background: var(--bg); }
.itable th:first-child, .itable td:first-child { padding-left: 22px; }
.itable td { padding: 12px; border-top: 1px solid rgba(27, 31, 59, .06); }

/* --- Ayuda y cuenta -------------------------------------------------------- */
.help-search { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 14px; padding: 0 16px; min-height: 54px; box-shadow: inset 0 0 0 1.5px rgba(27, 31, 59, .1); }
.help-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 16px var(--font); color: var(--ink); }
.status-ok { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--green-ink); font-weight: 600; }
.status-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31, 138, 91, .15); }
.faq-g { padding-bottom: 6px; }
.faq-g + .faq-g { border-top: 1px solid rgba(27, 31, 59, .08); }
.faq-g h3 { display: flex; align-items: center; gap: 10px; padding: 16px 20px 8px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.faq-g h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.faq-g h3 small { font-size: 12px; color: var(--ink-3); letter-spacing: 0; text-transform: none; font-weight: 400; }
.faq-q { margin: 0 8px; border-radius: 14px; transition: background .2s; }
.faq-q:nth-of-type(even) { background: #FAFAFC; }
.faq-q[open] { background: var(--bg); }
.faq-q summary { display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 12px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary span { flex: 1; }
.faq-q summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-style: normal; background: var(--bg); transition: all .3s; }
.faq-q[open] summary i { background: var(--ink); color: #fff; transform: rotate(45deg); }
.faq-q .a { padding: 0 64px 16px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.faq-q .a p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.pw-meter { display: flex; gap: 4px; margin-top: 4px; }
.pw-meter i { flex: 1; height: 6px; border-radius: 3px; background: #EEF0F8; transition: background .2s; }

/* --- Barra de abajo (móvil) y hoja «Más» ---------------------------------- */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(27, 31, 59, .08); box-shadow: 0 -10px 30px -18px rgba(27, 31, 59, .35); padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
.bnav.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 980px) { .bnav { display: none; } }
.bnav a, .bnav button.it { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 54px; padding: 6px 2px; border: 0; background: none; cursor: pointer; font: 600 11px var(--font); color: #4A4E66; text-decoration: none; }
.bnav a[aria-current="page"], .bnav button.it.on { color: var(--rust); }
.bnav .fab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 6px; text-decoration: none; color: var(--ink); font-size: 11px; font-weight: 700; }
.bnav .fab span.c { width: 66px; height: 66px; border-radius: 50%; border: 5px solid #F7F7FA; background: var(--orange); color: var(--ink); display: grid; place-items: center; margin-top: -30px; box-shadow: 0 12px 24px -8px rgba(255, 107, 74, .8); transition: transform .2s; }
.bnav .fab[aria-current="page"] span.c { transform: scale(1.06); }
.sheet-bg { position: fixed; inset: 0; background: rgba(27, 31, 59, .45); z-index: 75; animation: qzFade .2s both; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 76; background: #fff; border-radius: 28px 28px 0 0; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); animation: qzUp .3s cubic-bezier(.2, .8, .2, 1) both; display: flex; flex-direction: column; gap: 2px; }
.sheet .grip { align-self: center; width: 44px; height: 5px; border-radius: 3px; background: rgba(27, 31, 59, .18); margin-bottom: 8px; }
.sheet a, .sheet button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 10px; border: 0; border-radius: 14px; background: none; font: 600 16px var(--font); color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.sheet a[aria-current="page"] { background: var(--bg); }
.sheet a span { flex: 1; }
.sheet .out { color: var(--err); border-top: 1px solid rgba(27, 31, 59, .07); margin-top: 6px; border-radius: 0; }

/* --- Avisos flotantes ------------------------------------------------------ */
.toasts { position: fixed; left: 0; right: 0; bottom: 104px; z-index: 95; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
@media (min-width: 980px) { .toasts { bottom: 22px; } }
.pn-toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: 0 20px 40px -12px rgba(27, 31, 59, .6); animation: qzToast .35s cubic-bezier(.2, 1.2, .3, 1) both; max-width: 560px; }
.pn-toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; background: #6FD3A3; }
.pn-toast.warn::before { background: var(--orange); }

@media (prefers-reduced-motion: reduce) { .pn *, .pn *::before, .pn *::after { animation: none !important; transition: none !important; } }
@media print { .pn-side, .pn-mtop, .pn-head, .bnav, .toasts { display: none !important; } }

/* --- Entrar (diseño Login) ------------------------------------------------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; background: var(--bg); }
.login-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(27, 31, 59, .14) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%); }
.login-blob { position: absolute; right: 10%; top: 10%; width: 380px; height: 380px; border-radius: 50%; background: var(--orange); opacity: .2; filter: blur(90px); animation: qzBlob 14s ease-in-out infinite; }
@keyframes qzBlob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.1); } }
.login-in { position: relative; width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 18px; animation: qzUp .5s both; }
.login-logo { align-self: center; text-decoration: none; display: flex; align-items: center; font-weight: 800; font-size: 28px; letter-spacing: -.03em; color: var(--ink); }
.login-logo:hover { color: var(--ink); }
.login-logo .mk { width: 24px; height: 24px; border-radius: 50%; border: 4px solid var(--orange); display: inline-grid; place-items: center; margin-left: 3px; transform: rotate(-14deg); }
.login-logo .mk::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.login-card { background: #fff; border-radius: 28px; padding: clamp(22px, 5vw, 34px); box-shadow: 0 40px 80px -40px rgba(27, 31, 59, .45), 0 0 0 1px rgba(27, 31, 59, .06); display: flex; flex-direction: column; gap: 16px; }
.login-card h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.login-card h1 + p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.login-tabs { display: grid; grid-template-columns: repeat(2, 1fr); padding: 5px; border-radius: 14px; background: #F7F7FA; position: relative; }
.login-tabs.three { grid-template-columns: repeat(3, 1fr); }
.login-tabs button { position: relative; z-index: 1; min-height: 44px; border: 0; background: none; border-radius: 12px; font: 600 14px var(--font); cursor: pointer; color: var(--ink); transition: color .3s; }
.login-tabs button[aria-selected="true"] { color: #fff; }
.login-tabs .pill-bg { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 2); border-radius: 12px; background: var(--ink); transition: left .4s cubic-bezier(.3, 1.3, .5, 1), background .3s; }
.login-tabs.three .pill-bg { width: calc((100% - 10px) / 3); }
[data-mode="empleado"] .login-tabs .pill-bg { left: calc(5px + (100% - 10px) / 2); }
[data-mode="empleado"] .login-tabs.three .pill-bg { left: calc(5px + (100% - 10px) / 3); }
[data-mode="admin"] .login-tabs .pill-bg { left: calc(5px + 2 * (100% - 10px) / 3); background: var(--orange); }
[data-mode="admin"] .login-tabs button[data-tab="admin"] { color: var(--ink); }
.code-in { min-height: 58px !important; font: 700 22px var(--mono) !important; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.login-links { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; flex-wrap: wrap; }

/* --- Superadmin (diseño PanelAdmin) ---------------------------------------- */
.pn.adm { background: #EEF0F8; }
.adm .pn-side { background: #14172E; }
.adm-badge { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 107, 74, .14); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--orange-soft); }
.adm-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.adm-mtop { background: #14172E; justify-content: space-between; }
.adm-mtop b { color: #fff; font-size: 20px; letter-spacing: -.03em; }
.adm-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; background: #14172E; scrollbar-width: none; }
.adm-tabs a { flex: none; min-height: 38px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; font: 600 13.5px var(--font); background: rgba(255, 255, 255, .08); color: #E5E7EB; text-decoration: none; white-space: nowrap; }
.adm-tabs a[aria-current="page"] { background: var(--orange); color: var(--ink); }
@media (min-width: 980px) { .adm-tabs { display: none; } }
.adm .pn-head { top: 0; }
.adm-health { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.adm-health div { background: #F7F7FA; border-radius: 14px; padding: 12px 14px; }
.adm-health b { display: block; font-size: 17px; }
.adm-health span { font-size: 12.5px; color: var(--ink-3); }
.adm-health .bad { background: var(--err-bg); }
.adm-health .bad b { color: var(--err-ink); }
.adm .adm-mtop { position: static; }
