/* AlvaroStore v2 — tema oscuro morado */
:root {
  --bg: #0d0d0d;
  --bg2: #12121c;
  --card: #1a1b2e;
  --card2: #22233a;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.13);
  --purple: #7b61ff;
  --purple2: #5b3fd4;
  --purple-soft: rgba(123, 97, 255, 0.16);
  --green: #00e676;
  --green-soft: rgba(0, 230, 118, 0.13);
  --orange: #ff9100;
  --orange-soft: rgba(255, 145, 0, 0.14);
  --red: #ff5370;
  --red-soft: rgba(255, 83, 112, 0.14);
  --blue: #5b8def;
  --text: #ffffff;
  --muted: #a0a0b8;
  --dim: #6b6b80;
  --r: 14px;
  --r-lg: 20px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  overflow-x: hidden;
}
body.con-hoja { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.ok { color: var(--green); }
.warn { color: var(--orange); }
.bad { color: var(--red); }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 22px; height: 22px; flex: none; }
.ico.sm { width: 18px; height: 18px; }
.ico.lg { width: 28px; height: 28px; }
@media (max-width: 520px) { .hide-sm { display: none; } }

/* ---------- Estructura ---------- */
.app { min-height: 100dvh; }
.main { padding: calc(var(--safe-t) + 4px) 0 calc(var(--nav-h) + var(--safe-b) + 16px); }
.screen { display: none; padding: 12px 16px 8px; max-width: 760px; margin: 0 auto; animation: aparecer 0.2s ease; }
.screen.is-on { display: block; }
@keyframes aparecer { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(13, 13, 13, 0.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.nav__brand, .nav .nav__sync { display: none; }
.nav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; color: var(--dim); font-size: 11px; font-weight: 600; padding: 6px 0;
}
.nav__item.is-on { color: var(--text); }
.nav__item.is-on .nav__ico { color: var(--purple); }
.nav__ico { display: grid; place-items: center; }

@media (min-width: 960px) {
  .nav {
    top: 0; right: auto; width: 230px; height: auto; flex-direction: column; justify-content: flex-start;
    gap: 4px; padding: 20px 14px; border-top: 0; border-right: 1px solid var(--line); background: var(--bg2);
  }
  .nav__brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
  .nav__brand strong { display: block; font-size: 16px; }
  .nav__brand span { font-size: 12px; }
  .nav__item { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px; padding: 11px 12px; border-radius: 12px; }
  .nav__item:hover { background: var(--card); color: var(--text); }
  .nav__item.is-on { background: var(--purple-soft); }
  .nav .nav__sync { display: flex; margin-top: auto; align-self: flex-start; }
  .main { margin-left: 230px; padding: 24px 0 40px; }
  .screen { max-width: 1180px; padding: 8px 32px; }
}

/* ---------- Encabezado de pantalla ---------- */
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.head p { margin: 2px 0 0; font-size: 13px; }
.head__acc { display: flex; gap: 8px; align-items: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; background: var(--card2); color: var(--text); white-space: nowrap;
  transition: transform 0.08s, background 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn--primary { background: linear-gradient(135deg, var(--purple), var(--purple2)); box-shadow: 0 6px 20px -8px var(--purple); }
.btn--green { background: var(--green); color: #04150c; }
.btn--ghost { background: transparent; border-color: var(--line2); }
.btn--danger { background: var(--red); }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--xl { min-height: 58px; font-size: 18px; border-radius: 16px; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); flex: none;
}
.icon-btn--purple { background: var(--purple); border-color: var(--purple); }
.row-btns { display: flex; gap: 10px; margin-top: 18px; }
.row-btns .btn { flex: 1; }

/* ---------- Formularios ---------- */
.input, .select, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--line2); color: var(--text); outline: none;
}
.input:focus, .select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.input::placeholder { color: var(--dim); }
.input--big { font-size: 26px; font-weight: 800; text-align: center; min-height: 60px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.search { position: relative; flex: 1; }
.search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search .input { padding-left: 42px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--card2); position: relative; flex: none; transition: background 0.2s; border: 1px solid var(--line2); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked { background: var(--purple); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.chip.is-on { background: var(--purple); border-color: var(--purple); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--card2); color: var(--muted); }
.badge--ok { background: var(--green-soft); color: var(--green); }
.badge--warn { background: var(--orange-soft); color: var(--orange); }
.badge--bad { background: var(--red-soft); color: var(--red); }
.badge--purple { background: var(--purple-soft); color: #b9a8ff; }

/* ---------- Tarjetas ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; }
.card h3 { margin: 0 0 10px; font-size: 15px; }
.card--tight { padding: 4px 0; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 960px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.kpi span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi strong { display: block; font-size: 22px; font-weight: 800; margin-top: 4px; letter-spacing: -0.01em; }
.kpi small { font-size: 12px; color: var(--dim); }
.kpi--hero { grid-column: 1 / -1; background: linear-gradient(135deg, #2a1f6b, #1a1b2e 70%); border-color: rgba(123, 97, 255, 0.35); }
.kpi--hero strong { font-size: 34px; }

/* ---------- Listas ---------- */
.list { display: flex; flex-direction: column; }
.li {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: inherit;
}
.li:last-child { border-bottom: 0; }
button.li:active { background: var(--card2); }
.li__main { flex: 1; min-width: 0; }
.li__main strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li__main small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li__end { text-align: right; flex: none; }
.li__end strong { display: block; }
.li__end small { font-size: 12px; color: var(--muted); }
.thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--card2); flex: none; display: grid; place-items: center; color: var(--dim); font-weight: 800; font-size: 18px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--purple-soft); color: #b9a8ff; display: grid; place-items: center; font-weight: 800; flex: none; }
.vacio { text-align: center; padding: 36px 16px; color: var(--muted); }
.vacio .ico { width: 42px; height: 42px; color: var(--dim); margin: 0 auto 8px; }
.sec-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin: 18px 4px 8px; }

/* ---------- Banner ---------- */
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); margin-bottom: 12px; font-size: 14px; }
.banner--purple { background: var(--purple-soft); border: 1px solid rgba(123, 97, 255, 0.3); }
.banner--green { background: var(--green-soft); border: 1px solid rgba(0, 230, 118, 0.25); }
.banner--orange { background: var(--orange-soft); border: 1px solid rgba(255, 145, 0, 0.3); }
.banner { flex-wrap: wrap; }
.banner .grow { flex: 1; min-width: 150px; }
.banner strong { display: block; }

/* ---------- Hojas (bottom sheet / modal) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.2s; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg2); border: 1px solid var(--line2); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 8px 18px calc(18px + var(--safe-b)); transform: translateY(100%); transition: transform 0.22s ease;
}
.sheet--completa { height: 100dvh; max-height: 100dvh; border-radius: 0; max-width: 640px; padding-top: calc(10px + var(--safe-t)); }
.sheet--ancho { max-width: 760px; }
.sheet-wrap.is-open .sheet-bg { opacity: 1; }
.sheet-wrap.is-open .sheet { transform: none; }
.sheet__grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line2); margin: 4px auto 12px; }
.sheet--completa .sheet__grip { display: none; }
.sheet__title { margin: 0 0 12px; font-size: 19px; font-weight: 800; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet__head .sheet__title { margin: 0; }
@media (min-width: 700px) {
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 22px; border-bottom: 1px solid var(--line2); transform: translateY(20px) scale(0.98); opacity: 0; transition: transform 0.2s, opacity 0.2s; padding-bottom: 20px; }
  .sheet-wrap.is-open .sheet { opacity: 1; }
  .sheet--completa { height: auto; max-height: 92dvh; border-radius: 22px; }
}

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line2); font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); animation: aparecer 0.2s; transition: opacity 0.3s; }
.toast--ok { border-color: rgba(0, 230, 118, 0.4); }
.toast--error { border-color: rgba(255, 83, 112, 0.5); background: #2a1520; }
.toast.is-out { opacity: 0; }

/* ---------- Escáner ---------- */
.scan { display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.scan__head { display: flex; justify-content: space-between; align-items: center; }
.scan__head .sheet__title { margin: 0; }
.scan__visor { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; max-height: 46dvh; }
.scan__video { width: 100%; height: 100%; object-fit: cover; }
.scan__linea { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: var(--red); box-shadow: 0 0 14px var(--red); animation: barrer 1.8s ease-in-out infinite; }
@keyframes barrer { 0%, 100% { transform: translateY(-50px); } 50% { transform: translateY(50px); } }
.scan__aviso { position: absolute; inset: auto 12px 12px; margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.75); font-size: 13px; text-align: center; }
.scan__ok { min-height: 22px; margin: 0; text-align: center; font-weight: 700; color: var(--green); }
.scan__ok.is-flash { animation: flash 0.5s; }
@keyframes flash { from { transform: scale(1.15); } to { transform: none; } }
.scan__manual { display: flex; gap: 8px; }
.scan__diag { margin: -6px 0 0; text-align: center; font-size: 11px; color: var(--dim); min-height: 14px; }

/* ---------- Caja ---------- */
.caja-grid { display: grid; gap: 14px; }
.caja-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .caja-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); align-items: start; }
  .ticket { position: sticky; top: 16px; }
}
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.ptile {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); text-align: left; color: inherit; min-width: 0;
}
.ptile:active { transform: scale(0.97); background: var(--card2); }
.ptile .thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; font-size: 26px; }
.ptile b { font-size: 12.5px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 30px; }
.ptile em { font-style: normal; font-weight: 800; font-size: 14px; color: var(--green); }
.ptile .stk { position: absolute; top: 12px; right: 12px; }
.ptile--agotado { opacity: 0.45; }
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ticket__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.ticket__head h3 { margin: 0; font-size: 16px; }
.tline { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.tline__n { flex: 1; min-width: 0; }
.tline__n strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tline__n small { color: var(--muted); font-size: 12px; }
.qty { display: flex; align-items: center; background: var(--bg2); border-radius: 10px; border: 1px solid var(--line2); }
.qty button { width: 34px; height: 34px; background: none; border: 0; display: grid; place-items: center; color: var(--text); }
.qty span { min-width: 26px; text-align: center; font-weight: 800; }
.tsum { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tsum div { display: flex; justify-content: space-between; gap: 10px; }
.tsum .desc { color: var(--green); }
.tsum .total { font-size: 22px; font-weight: 800; padding-top: 4px; }
.tcliente { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; color: inherit; }
.ticket__pay { padding: 12px 16px 16px; }
.cobrar-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 30; padding: 10px 16px; background: linear-gradient(transparent, var(--bg) 30%); }
@media (min-width: 960px) { .cobrar-bar { display: none; } }
.x-link { background: none; border: 0; color: var(--dim); padding: 2px 4px; display: inline-grid; place-items: center; vertical-align: middle; }

/* Cobro */
.metodos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.metodo { padding: 14px 10px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.metodo.is-on { border-color: var(--purple); color: var(--text); background: var(--purple-soft); }
.metodo:disabled { opacity: 0.35; }
.rapidos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.rapidos button { flex: 1; min-width: 70px; }
.cambio { text-align: center; padding: 16px; border-radius: 16px; background: var(--green-soft); margin: 6px 0 4px; }
.cambio span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.cambio strong { font-size: 36px; font-weight: 800; color: var(--green); }
.exito { text-align: center; padding: 10px 0; }
.exito__check { width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 6px auto 12px; }
.exito__check .ico { width: 40px; height: 40px; }

/* ---------- Inventario ---------- */
.acciones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .acciones { grid-template-columns: repeat(4, 1fr); } }
.accion { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-align: left; color: inherit; }
.accion strong { font-size: 14px; }
.accion small { color: var(--muted); font-size: 12px; }
.accion .ico { width: 26px; height: 26px; }
.accion--green .ico { color: var(--green); }
.accion--orange .ico { color: var(--orange); }
.accion--purple .ico { color: var(--purple); }
.accion--blue .ico { color: var(--blue); }
.foto-box { position: relative; width: 120px; height: 120px; border-radius: 18px; overflow: hidden; background: var(--card); border: 2px dashed var(--line2); display: grid; place-items: center; color: var(--muted); flex: none; }
.foto-box img { width: 100%; height: 100%; object-fit: cover; }
.foto-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pf-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.pf-top .grow { flex: 1; min-width: 0; }
.mov-line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mov-line:last-child { border-bottom: 0; }
.lote-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lote-line .thumb { width: 40px; height: 40px; }
.lote-total { display: flex; justify-content: space-between; padding: 12px 0; font-weight: 700; }

/* ---------- Finanzas ---------- */
.barras { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 8px; }
.barra { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; height: 100%; }
.barra i { display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--purple), var(--purple2)); min-height: 2px; }
.barra small { font-size: 10px; color: var(--dim); }
.tabla-res div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tabla-res div:last-child { border-bottom: 0; }
.tabla-res .fuerte { font-weight: 800; font-size: 16px; }
.tabs { display: flex; background: var(--card); border-radius: 12px; padding: 4px; margin-bottom: 14px; border: 1px solid var(--line); }
.tab { flex: 1; padding: 9px 6px; border-radius: 9px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px; }
.tab.is-on { background: var(--purple); color: #fff; }

/* ---------- Login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0%, #2a1f6b 0%, var(--bg) 60%); }
.login__box { width: 100%; max-width: 380px; text-align: center; }
.login__box img { margin: 0 auto 14px; }
.login__box h1 { margin: 0 0 4px; font-size: 28px; font-weight: 800; }
.login__box form { margin-top: 24px; text-align: left; }

/* ---------- Sync ---------- */
.sync-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.sync-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.sync-pill.is-ok i { background: var(--green); }
.sync-pill.is-pend i { background: var(--orange); }
.sync-pill.is-err i { background: var(--red); }

/* ---------- Tarjeta de sellos ---------- */
.regalo { display: inline-flex; margin-top: 4px; padding: 3px 9px; border-radius: 99px; border: 1px dashed var(--green); background: none; color: var(--green); font-size: 12px; font-weight: 700; }
.regalo.is-on { background: var(--green); color: #04150c; border-style: solid; }
.sellos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px auto 2px; max-width: 300px; }
.sello { aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 2px dashed var(--line2); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--dim); }
.sello.is-on { background: radial-gradient(circle at 35% 30%, #a594ff, var(--purple) 60%, var(--purple2)); border: 2px solid rgba(255, 255, 255, 0.35); color: #fff; box-shadow: 0 4px 14px -4px var(--purple); }
.sello--premio.is-on { background: var(--green); color: #04150c; }
.sello--premio { border-style: solid; border-color: var(--green); color: var(--green); font-size: 10px; text-align: center; line-height: 1.1; }
.qr-box { background: #fff; border-radius: 16px; padding: 14px; width: 220px; margin: 8px auto; }
.qr-box svg, .qr-box img { width: 100%; height: auto; display: block; }
.cli-strip { position: sticky; top: calc(var(--safe-t) + 6px); z-index: 20; background: #241a63; backdrop-filter: blur(10px); box-shadow: 0 10px 24px -14px #000; flex-wrap: nowrap; }
.cli-strip .grow { min-width: 0; }
.cli-strip strong, .cli-strip .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.sello { padding: 0; cursor: pointer; transition: transform .1s; }
button.sello:active { transform: scale(.88); }
button.sello:not(.is-on):not(.sello--premio):hover { border-color: var(--purple); }
.sellos--grande { max-width: 420px; gap: 12px; }
.sellos--grande .sello { font-size: 20px; }
.tarjeta-cuenta { font-size: 15px; color: var(--muted); white-space: nowrap; }
.tarjeta-cuenta b { font-size: 30px; color: var(--text); font-weight: 800; }
