/* Sello · sistema visual
   Tinta azul de sello sobre superficies limpias. Una sola familia tipográfica (Onest). */
:root {
  --ink: #0e1526;
  --ink-2: #4a5468;
  --ink-3: #78829a;
  --line: #e4e7ee;
  --line-2: #d3d8e3;
  --bg: #f5f6f9;
  --white: #fff;
  --brand: #1d3fbb;
  --brand-d: #152f90;
  --brand-l: #eaefff;
  --ok: #0a7a52;
  --ok-l: #e1f4ec;
  --bad: #b3261e;
  --bad-l: #fbe9e7;
  --warn: #835400;
  --warn-l: #fdf1d6;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(14, 21, 38, .06), 0 8px 24px -12px rgba(14, 21, 38, .18);
  --font: 'Onest', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: 1.5rem; } h3 { font-size: 1.1rem; } h4 { font-size: 1rem; }
p { margin: 0; }
a { color: var(--brand); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .sm { font-size: .875rem; } .xs { font-size: .8rem; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.center { text-align: center; }

/* ---------- botones ---------- */
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .72rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; background: var(--ink); color: #fff; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: #1c2740; } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); } .btn.primary:hover { background: var(--brand-d); }
.btn.ok { background: var(--ok); } .btn.ok:hover { background: #086344; }
.btn.line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); } .btn.line:hover { background: #f1f3f8; }
.btn.ghost { background: transparent; color: var(--ink-2); } .btn.ghost:hover { background: rgba(14, 21, 38, .06); }
.btn.danger { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 1.5px #e6b9b4; } .btn.danger:hover { background: var(--bad-l); }
.btn.lg { padding: .95rem 1.4rem; font-size: 1.02rem; border-radius: 12px; }
.btn.sm { padding: .45rem .75rem; font-size: .85rem; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.black { background: #000; } .btn.black:hover { background: #222; }

/* ---------- formularios ---------- */
.field { display: grid; gap: .35rem; }
.field > label, .lbl { font-weight: 600; font-size: .9rem; }
.hint { font-size: .82rem; color: var(--ink-3); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: .72rem .85rem; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover { border-color: #b9c1d2; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29, 63, 187, .14); }
input.err { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
input[type=color] { width: 3rem; height: 2.6rem; padding: .15rem; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.code-in { font-size: 1.6rem; font-weight: 700; letter-spacing: .3em; text-align: center; padding: .85rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .85rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .12rem; accent-color: var(--brand); }

/* ---------- avisos y etiquetas ---------- */
.alert { border-radius: 10px; padding: .75rem .95rem; font-size: .92rem; font-weight: 500; display: flex; gap: .6rem; align-items: flex-start; }
.alert.bad { background: var(--bad-l); color: #7a1912; }
.alert.good { background: var(--ok-l); color: #075c3f; }
.alert.info { background: var(--brand-l); color: #16286e; }
.alert.warn { background: var(--warn-l); color: var(--warn); }
.chip { display: inline-block; font-size: .75rem; font-weight: 600; padding: .24rem .55rem; border-radius: 99px; background: var(--brand-l); color: #1b2f87; white-space: nowrap; }
.chip.ok { background: var(--ok-l); color: #075c3f; } .chip.warn { background: var(--warn-l); color: var(--warn); }
.chip.gray { background: #e8eaf0; color: #3f485c; } .chip.bad { background: var(--bad-l); color: #7a1912; }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--ok); }
.live::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: #17a56f; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(23, 165, 111, .5); } 70%, 100% { box-shadow: 0 0 0 .5rem rgba(23, 165, 111, 0); } }

/* ---------- superficies ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card h3 + p { margin-top: .25rem; }
.stack { display: grid; gap: 1rem; } .stack-sm { display: grid; gap: .6rem; } .stack-lg { display: grid; gap: 1.5rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.grow { flex: 1 1 0; min-width: 0; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.logo svg { width: 1.9rem; height: 1.9rem; }

/* ---------- tarjeta de sellos ---------- */
.tarjeta { --m: .65rem; position: relative; background: var(--marca, #134e4a); color: #fff; border-radius: 1.1rem; padding: 1.15rem 1.15rem 1.25rem; display: grid; gap: 1rem;
  box-shadow: 0 18px 32px -20px var(--marca, #134e4a), 0 2px 5px rgba(14, 21, 38, .2);
  -webkit-mask: radial-gradient(circle var(--m) at 0 3.95rem, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--m) at 100% 3.95rem, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--m) at 0 3.95rem, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--m) at 100% 3.95rem, #0000 98%, #000) right / 51% 100% no-repeat; }
.t-top { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; min-height: 1.9rem; }
.t-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.025em; line-height: 1.05; }
.t-who { font-size: .88rem; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-cut { border: 0; border-top: 2px dashed rgba(255, 255, 255, .42); margin: 0 -.3rem; }
.t-grid { display: grid; gap: .5rem; }
.t-dot { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(255, 255, 255, .5); color: rgba(255, 255, 255, .78); font-weight: 700; font-size: .85rem; }
.t-dot.on { border: 0; background: #fff; color: var(--marca, #134e4a); transform: rotate(var(--g, 0deg)); box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); }
.t-dot.on svg { width: 58%; height: 58%; }
.t-dot.new { animation: stamp .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stamp { from { transform: scale(2.3) rotate(calc(var(--g, 0deg) - 14deg)); opacity: 0; } to { transform: scale(1) rotate(var(--g, 0deg)); opacity: 1; } }
.t-foot { display: flex; justify-content: space-between; align-items: end; gap: .8rem; }
.t-prize { font-size: .88rem; line-height: 1.3; } .t-prize b { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.t-count { font-weight: 800; font-size: 1.8rem; line-height: 1; white-space: nowrap; } .t-count small { font-size: .55em; font-weight: 600; opacity: .85; }

/* ---------- pases de Wallet (vista previa) ---------- */
.apass { width: 100%; max-width: 300px; margin: 0 auto; border-radius: 14px; color: #fff; background: var(--marca); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .55); overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif; }
.apass .t { display: flex; align-items: center; gap: .55rem; padding: .8rem .9rem; } .apass .lg { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #fff; color: var(--marca); display: grid; place-items: center; font-weight: 800; }
.apass .t b { font-weight: 600; font-size: .95rem; flex: 1; } .apass .hf { text-align: right; line-height: 1.1; } .apass .hf small { display: block; font-size: .58rem; letter-spacing: .06em; opacity: .8; } .apass .hf span { font-size: 1.15rem; font-weight: 600; }
.apass .strip { background: rgba(255, 255, 255, .14); padding: .8rem .9rem; display: grid; gap: .4rem; }
.apass .strip i { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .6); display: grid; place-items: center; } .apass .strip i.on { background: #fff; border: 0; color: var(--marca); } .apass .strip i svg { width: 60%; height: 60%; }
.apass .fs { display: flex; justify-content: space-between; gap: .8rem; padding: .7rem .9rem; } .apass .fs small { display: block; font-size: .58rem; letter-spacing: .06em; opacity: .8; } .apass .fs span { font-size: .92rem; font-weight: 500; }
.apass .bc { background: #fff; margin: .2rem .9rem 1rem; border-radius: .6rem; padding: .7rem; display: grid; justify-items: center; gap: .3rem; color: #222; font-size: .7rem; }
.gpass { width: 100%; max-width: 300px; margin: 0 auto; border-radius: 18px; background: #fff; color: #1f1f1f; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .45); overflow: hidden; font-family: 'Google Sans', Roboto, 'Segoe UI', system-ui, sans-serif; border: 1px solid #e1e3e1; }
.gpass .t { display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; background: var(--marca); color: #fff; } .gpass .lg { width: 2rem; height: 2rem; border-radius: 50%; background: #fff; color: var(--marca); display: grid; place-items: center; font-weight: 800; }
.gpass .t small { display: block; font-size: .7rem; opacity: .85; } .gpass .t b { font-weight: 500; }
.gpass .m { padding: .9rem .9rem .3rem; } .gpass .m small { display: block; font-size: .72rem; color: #5f6368; } .gpass .m b { font-size: 1.8rem; font-weight: 500; }
.gpass .hero { margin: .3rem .9rem; background: var(--marca); border-radius: .8rem; padding: .7rem; display: grid; gap: .35rem; } .gpass .hero i { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .65); display: grid; place-items: center; } .gpass .hero i.on { background: #fff; border: 0; color: var(--marca); } .gpass .hero i svg { width: 60%; height: 60%; }
.gpass .rows { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .6rem .9rem; } .gpass .rows small { display: block; font-size: .7rem; color: #5f6368; } .gpass .rows span { font-size: .9rem; }
.gpass .q { display: grid; justify-items: center; gap: .25rem; padding: .4rem 0 1rem; font-size: .72rem; color: #5f6368; }

/* ---------- aplicación: panel del dueño ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 1.1rem .9rem; display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 0; height: 100vh; }
.nav { display: grid; gap: .2rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a svg { width: 1.2rem; height: 1.2rem; flex: none; }
.nav a:hover { background: #f1f3f8; color: var(--ink); }
.nav a[aria-current=page] { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.side .me { margin-top: auto; display: grid; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.main { padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem; max-width: 1180px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-head h1 { font-size: 1.75rem; letter-spacing: -.025em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .9rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; }
.stat b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: .15rem; }
.stat span { color: var(--ink-2); font-size: .88rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; align-items: start; }
.bar { height: .5rem; border-radius: 99px; background: #e5e8f0; overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); } .bar.full i { background: var(--ok); }
.li { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); } .li:first-child { border-top: 0; } .li .bar { grid-column: 1 / -1; }
.feed > div { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--line); font-size: .92rem; } .feed > div:first-child { border-top: 0; }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--brand); } .dot.g { background: #17a56f; } .dot.o { background: #e08a00; }
.tools { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.filters button { border: 1.5px solid var(--line-2); background: #fff; border-radius: 99px; padding: .4rem .85rem; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.filters button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tscroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .75rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th { font-size: .78rem; font-weight: 600; color: var(--ink-3); background: #fafbfd; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td .bar { width: 5rem; display: inline-block; vertical-align: middle; margin-right: .5rem; }
.swatches { display: flex; gap: .55rem; flex-wrap: wrap; }
.swatches button { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line-2); cursor: pointer; } .swatches button[aria-pressed=true] { box-shadow: 0 0 0 3px var(--ink); }
.stepper { display: flex; align-items: center; gap: .8rem; } .stepper button { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; } .stepper button:hover { background: #f1f3f8; } .stepper b { font-size: 1.6rem; min-width: 2ch; text-align: center; }
.tabsm { display: inline-flex; gap: .25rem; background: #e9ecf3; border-radius: 10px; padding: .25rem; } .tabsm button { border: 0; background: transparent; border-radius: 8px; padding: .45rem .8rem; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--ink-2); } .tabsm button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14, 21, 38, .15); }
.status-list { display: grid; gap: 0; } .status-list > div { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--line); } .status-list > div:first-child { border-top: 0; }
.status-list .ico { width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--brand-l); display: grid; place-items: center; color: var(--brand-d); } .status-list .ico svg { width: 1.2rem; height: 1.2rem; }
.qrbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem; display: grid; justify-items: center; gap: .6rem; text-align: center; }
.qrbox img, .qrbox canvas { display: block; max-width: 100%; height: auto; }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: .04em; }
.keybox { background: var(--ink); color: #fff; border-radius: 14px; padding: 1.1rem; display: grid; gap: .6rem; } .keybox .v { font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; word-break: break-all; }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); display: grid; gap: .5rem; z-index: 90; width: min(26rem, 92vw); }
.toast { background: var(--ink); color: #fff; padding: .8rem 1rem; border-radius: 12px; font-weight: 500; font-size: .92rem; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); animation: up .25s ease both; } .toast.bad { background: var(--bad); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.empty { padding: 2rem 1rem; text-align: center; color: var(--ink-2); }

/* ---------- páginas públicas (landing, login, cliente) ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 1120px; margin: 0 auto; padding: 1rem 1.25rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; padding: 3.5rem 0 4rem; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; margin-top: 1.1rem; }
.phone-wrap { display: grid; place-items: center; }
.phone { width: 300px; background: #0b1020; border-radius: 42px; padding: 11px; box-shadow: 0 30px 60px -28px rgba(14, 21, 38, .6); }
.phone .scr { background: #f3f4f8; border-radius: 32px; padding: 2.6rem 1rem 1.4rem; display: grid; gap: .9rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; counter-reset: s; }
.steps > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; counter-increment: s; }
.steps > div::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: .9rem; }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.feat > div { padding: 1.2rem 0; border-top: 2px solid var(--ink); } .feat h3 { margin-bottom: .35rem; }
.band { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 2.4rem clamp(1.2rem, 4vw, 3rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; } .band h2 { font-size: 1.7rem; max-width: 30rem; }
.foot { max-width: 1120px; margin: 3rem auto 0; padding: 1.5rem 1.25rem 2.5rem; color: var(--ink-3); font-size: .85rem; border-top: 1px solid var(--line); }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.panel-sm { width: min(26rem, 100%); }
.cli { max-width: 28rem; margin: 0 auto; padding: 1rem 1rem 3rem; display: grid; gap: 1rem; }
.cli-top { display: flex; justify-content: space-between; align-items: center; padding: .4rem .2rem; }
.sheet-back { position: fixed; inset: 0; background: rgba(10, 14, 28, .55); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; border-radius: 22px 22px 0 0; width: min(28rem, 100%); padding: 1.2rem 1.1rem 1.5rem; display: grid; gap: .9rem; max-height: 92vh; overflow: auto; animation: sheet .25s ease both; }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
#reader { width: 100%; border-radius: 14px; overflow: hidden; background: #0b1020; min-height: 16rem; } #reader video { width: 100% !important; display: block; }
.rcode { font-size: 2.6rem; font-weight: 800; letter-spacing: .25em; text-align: center; padding: 1rem .5rem; border: 2px dashed var(--ink); border-radius: 16px; background: #fff; }
.big-check { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto; animation: stamp .55s cubic-bezier(.2, 1.4, .4, 1) both; } .big-check svg { width: 55%; height: 55%; }
.big-check.bad { background: var(--bad); }

/* ---------- mostrador ---------- */
.ctr { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.ctr-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); }
.ctr-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.25rem; padding: 1.25rem 1.5rem 2rem; max-width: 1200px; width: 100%; margin: 0 auto; align-items: start; }
.ctr-qr { text-align: center; display: grid; gap: 1rem; justify-items: center; padding: 1.8rem 1.2rem; }
.ring { position: relative; width: min(21rem, 78vw); aspect-ratio: 1; }
.ring svg.r { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .qrin { position: absolute; inset: 7.5%; background: #fff; border-radius: 14px; display: grid; place-items: center; }
.ring .qrin canvas, .ring .qrin img { width: 100% !important; height: auto !important; }
.manual { font-size: 1.9rem; font-weight: 800; letter-spacing: .22em; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid var(--line); gap: 0; }
  .side .logo, .side .me { display: none; }
  .nav { display: flex; width: 100%; justify-content: space-around; } .nav a { flex-direction: column; gap: .15rem; font-size: .72rem; padding: .45rem .5rem; }
  .main { padding-bottom: 6rem; }
  .hero { grid-template-columns: 1fr; padding: 2rem 0 2.5rem; gap: 2rem; }
  .ctr-main { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { body { background: #fff; } body > *:not(#poster-area) { display: none !important; } #poster-area { display: block !important; } }

/* las columnas de sellos pueden encogerse en pantallas angostas (evita desbordes con 8 o más sellos) */
.tarjeta > *, .t-grid > * { min-width: 0; }
