/* Sellito by eDev Core — estilos únicos (diseño basado en los mockups de meta.ai, carpeta /design).
   Paleta: café oscuro #3C2415 · crema #F5E9D9 / #FDF6F0 · acento terracota #D86F45.
   --brand y --brand-2 se sobreescriben por negocio (colorPrimario / colorSecundario). */
:root {
  --brand: #3C2415;          /* principal: botones, sellos llenos, títulos */
  --brand-2: #F5E9D9;        /* secundario: crema (fondos suaves) */
  --accent: #D86F45;         /* terracota: escanear, textos de estado, íconos */
  --accent-ink: #fff;
  --cream: #FDF6F0;
  --bg: color-mix(in srgb, var(--brand-2) 28%, var(--cream));
  --surface: #fffdfb;
  --field: color-mix(in srgb, var(--brand-2) 55%, #fff);
  --ink: #2a1a10;
  --muted: #8a7666;
  --line: color-mix(in srgb, var(--brand-2) 70%, #e9dccd);
  --ok: #3f8f5a;
  --err: #c2412d;
  --wa: #25d366;
  --radius: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px -14px rgba(60, 36, 21, .28), 0 2px 6px rgba(60, 36, 21, .05);
  --shadow-sm: 0 6px 18px -10px rgba(60, 36, 21, .22), 0 1px 3px rgba(60, 36, 21, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.02em; color: var(--brand); font-weight: 700; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); } .tiny { font-size: .8rem; } .center { text-align: center; }
.hl { color: var(--accent); }
.accent-text { color: var(--accent); font-weight: 500; } .accent-text.small { font-size: .9rem; margin: .5rem 0 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: .4rem; }
[hidden] { display: none !important; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 1.3rem; border-radius: var(--radius-md); border: 0; font: 600 1rem var(--font);
  text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn svg { width: 1.35em; height: 1.35em; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 20px -12px var(--brand); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -10px var(--accent); }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost-light { background: rgba(255,255,255,.15); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-block { display: flex; width: 100%; margin-top: .7rem; }
.btn-small { padding: .5rem .9rem; font-size: .85rem; border-radius: var(--radius-sm); }
.btn-big { padding: 1.1rem; font-size: 1.15rem; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wallet { background: #1c1c1c; color: #fff; position: relative; padding: 1rem; }
.badge { position: absolute; right: .9rem; font-style: normal; font-size: .62rem; text-transform: uppercase; background: var(--brand-2); color: var(--brand); padding: .12rem .45rem; border-radius: 6px; font-weight: 700; }
.icon-btn { border: 0; background: var(--field); border-radius: 50%; width: 2.2rem; height: 2.2rem; display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; flex: none; color: var(--brand); }

/* ---------- Estructura (cliente) ---------- */
.shell { max-width: 480px; margin: 0 auto; padding: 1.2rem 1.25rem 2.5rem; }
.shell.narrow { max-width: 380px; padding-top: 12vh; }
.card { background: var(--surface); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.card.small { padding: .3rem 1.1rem; }
.alert { background: #fbe9e4; color: #8f2a17; border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .92rem; }
.toast-inline { background: var(--surface); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.is-customer { background: var(--bg); }
.biz-logo { width: 84px; height: 84px; border-radius: 24px; object-fit: cover; background: #fff; box-shadow: var(--shadow-sm); display: inline-grid; place-items: center; }
.biz-logo--initials { background: var(--brand); color: var(--brand-2); font: 800 1.4rem var(--display); display: inline-grid; place-items: center; }

/* Encabezado de marca (tarjeta) */
.card-brand { display: flex; align-items: center; gap: .75rem; margin: .6rem 0 1.4rem; }
.card-brand span { font: 700 1.6rem/1.1 var(--display); color: var(--brand); letter-spacing: -.02em; }
.brand-logo { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; flex: none; font-size: 1rem; }
.hello { font-size: 2.2rem; margin-bottom: 1.1rem; }

/* Registro */
.topbar { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 1rem; background: var(--brand-2); }
.topbar-logo { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; font-size: .8rem; }
.topbar-name { font: 700 1.25rem var(--display); color: var(--brand); letter-spacing: -.02em; }
.join-head { padding: 1.2rem 0 .4rem; }
.join-head h1 { font-size: 2.35rem; line-height: 1.08; margin-bottom: .5rem; }
.join-rule { display: inline-flex; align-items: center; gap: .5rem; margin: .4rem 0 0; font-size: .88rem; font-weight: 600; color: var(--brand); background: var(--surface); border-radius: 999px; padding: .35rem .8rem .35rem .45rem; box-shadow: var(--shadow-sm); }
.join-cups svg { width: 26px; height: 20px; display: block; }
.join-cups .cup-body { fill: var(--brand); } .join-cups .cup-handle { fill: none; stroke: var(--brand); stroke-width: 3; }

/* ---------- Formularios ---------- */
.form label, label { display: block; font-weight: 500; font-size: .9rem; margin: 1rem 0 0; color: var(--ink); }
input, select, textarea { width: 100%; font: 400 1rem var(--font); padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--field); color: var(--ink); margin-top: .4rem; }
input::placeholder, textarea::placeholder { color: #a8968a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
input[type=color] { padding: .25rem; height: 3rem; }
fieldset { border: 0; padding: 0; margin: 1rem 0 0; }
legend { font-weight: 500; font-size: .9rem; padding: 0; }
.bday { display: grid; grid-template-columns: 1fr 2fr; gap: .5rem; }
.bday legend { grid-column: 1 / -1; }
label.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 1.1rem; }
label.check input { appearance: none; -webkit-appearance: none; width: 1.5rem; height: 1.5rem; flex: none; margin: 0; padding: 0; border: 1.5px solid var(--accent); border-radius: 7px; background: #fff; display: grid; place-items: center; cursor: pointer; }
label.check input:checked { background: var(--accent); }
label.check input:checked::after { content: ""; width: .45rem; height: .8rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-2px) rotate(45deg); }
label.check a { color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.row-between select { width: auto; padding: .45rem .7rem; font-size: .85rem; margin: 0; }

/* ---------- Tarjeta de sellos (tazas) ---------- */
.loyalty-card { background: var(--surface); border-radius: var(--radius); padding: 1.4rem 1.3rem 1.5rem; box-shadow: var(--shadow); margin-bottom: 1rem; position: relative; }
.lc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: 1.3rem; }
.lc-head h2 { font-size: 1.35rem; margin-bottom: .2rem; } .lc-head p { margin: 0; font-size: .88rem; }
.lc-count { font-size: .9rem; color: var(--muted); white-space: nowrap; background: var(--field); border-radius: 999px; padding: .2rem .7rem; }
.lc-count b { font-size: 1.15rem; color: var(--brand); }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem .5rem; }
.stamp { display: grid; place-items: center; }
.stamp svg { width: 100%; max-width: 56px; height: auto; overflow: visible; }
.stamp .cup-body { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, var(--brand)); stroke-width: 1.6; }
.stamp .cup-handle { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, var(--brand)); stroke-width: 1.6; stroke-linecap: round; }
.stamp.is-filled .cup-body { fill: var(--brand); stroke: var(--brand); }
.stamp.is-filled .cup-handle { stroke: var(--brand); stroke-width: 3; }
.stamp.is-reward:not(.is-filled) .cup-body, .stamp.is-reward:not(.is-filled) .cup-handle { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 2.5; }
.stamp.is-reward.is-filled .cup-body { fill: var(--accent); stroke: var(--accent); } .stamp.is-reward.is-filled .cup-handle { stroke: var(--accent); }
.stamp.is-new svg { animation: stampIn .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stampIn { from { transform: scale(1.9) rotate(-18deg); opacity: 0; } to { transform: none; opacity: 1; } }
.loyalty-card.pulse { animation: pulse .8s ease; }
@keyframes pulse { 50% { transform: scale(1.02); } }
.lc-status { text-align: center; color: var(--accent); font-weight: 600; font-size: 1.05rem; margin: 1.1rem 0 1.2rem; }
.lc-status b { font-weight: 800; }
.qr-block { text-align: center; padding: 1.4rem 1.3rem 1rem; }
.qr-wrap { width: min(200px, 60vw); margin: 0 auto .8rem; }
.qr-wrap svg { display: block; width: 100%; height: auto; }
.qr-caption { font-size: .92rem; color: var(--ink); margin-bottom: .2rem; }
.actions { margin-bottom: 1rem; }
.ios-hint { font-size: .85rem; color: var(--muted); margin-top: .7rem; text-align: center; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.history li:last-child { border: 0; } .history time { color: var(--muted); font-size: .82rem; }
.link-row { display: flex; align-items: center; gap: .6rem; padding: .9rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; width: 100%; font: 500 .95rem var(--font); color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.link-row:last-child, form:last-child .link-row { border-bottom: 0; }
.link-row svg { width: 1.3rem; height: 1.3rem; color: var(--wa); flex: none; }
.link-row.danger { color: var(--err); }
.mini-footer { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 1.6rem; }
.mini-footer a { color: inherit; }
.prose h2 { margin-top: 1.4rem; } .prose li { margin-bottom: .3rem; } .back { display: inline-block; margin-bottom: 1rem; text-decoration: none; }

/* Wallet demo */
.wallet-mock { background: var(--brand); color: #fff; border-radius: 20px; padding: 1rem 1.1rem; margin: 1rem 0; box-shadow: var(--shadow); }
.wm-top { display: flex; align-items: center; gap: .6rem; font-weight: 600; } .wm-logo { width: 32px; height: 32px; border-radius: 50%; font-size: .7rem; }
.wm-label { margin: .8rem 0 0; font-size: .75rem; opacity: .8; } .wm-name { font: 700 1.3rem var(--display); margin: 0; }
.wm-row { display: flex; gap: 2rem; margin-top: .7rem; } .wm-row small { display: block; font-size: .7rem; opacity: .8; } .wm-row b { font-size: 1.2rem; }
.wm-qr { background: #fff; color: #111; width: 110px; height: 110px; margin: 1rem auto 0; border-radius: 10px; display: grid; place-items: center; }
.wm-qr svg { width: 80%; }
.tech pre { white-space: pre-wrap; word-break: break-all; font-size: .7rem; background: var(--field); padding: .7rem; border-radius: 8px; max-height: 320px; overflow: auto; }

/* ---------- Panel ---------- */
.is-panel { background: var(--bg); padding-bottom: 5.8rem; }
.panel-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: 1rem 1.25rem .8rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); max-width: 640px; margin: 0 auto; }
.panel-top h1 { font-size: 1.45rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-btn { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; flex: none; }
.panel-logo { width: 44px; height: 44px; border-radius: 50%; font-size: .85rem; object-fit: cover; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.panel { max-width: 640px; margin: 0 auto; padding: .4rem 1.25rem 1rem; }
.tab { display: none; } .tab.is-active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.login .biz-logo { margin-bottom: .8rem; }
.pin { text-align: center; font-size: 1.8rem; letter-spacing: .5em; }
.scan-btn { width: 100%; border: 0; border-radius: var(--radius); padding: 1.5rem 1.2rem; margin-bottom: 1rem; cursor: pointer; color: var(--accent-ink); font: 700 1.7rem var(--display); letter-spacing: -.02em;
  display: flex; align-items: center; justify-content: center; gap: .8rem; background: var(--accent); box-shadow: 0 16px 30px -14px var(--accent), inset 0 1px 0 rgba(255,255,255,.2); }
.scan-btn svg { width: 40px; height: 40px; }
.scan-btn:active { transform: scale(.98); }
.scanner { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 1rem; aspect-ratio: 3 / 4; max-height: 70vh; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18% 15%; border: 3px solid var(--accent); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scanner-close { position: absolute; top: .8rem; right: .8rem; }
.scanner-msg { position: absolute; bottom: .6rem; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: 1.2rem; }
.stat3 { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1rem .5rem 1.1rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .35rem; min-height: 9.5rem; }
.stat3 svg { width: 32px; height: 32px; color: var(--accent); }
.stat3 span { font-size: .82rem; font-weight: 500; line-height: 1.2; color: var(--ink); }
.stat3 b { font: 700 clamp(1.5rem, 7vw, 2.2rem)/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.search-box { margin-bottom: 1rem; } .search-box input { background: var(--surface); box-shadow: var(--shadow-sm); border-color: transparent; }
.search-box .list:empty { display: none; } .search-box .list { background: var(--surface); border-radius: var(--radius-md); padding: 0 1rem; box-shadow: var(--shadow-sm); }
.section-h { font-size: 1.35rem; margin: 1.4rem 0 .3rem; }
.activity .list-item { padding: .85rem 0; }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  color: hsl(var(--h) 35% 28%); background: hsl(var(--h) 45% 88%); box-shadow: inset 0 0 0 2px #fff, var(--shadow-sm); }
.activity .li-main b { font-size: 1.05rem; } .activity .li-main small { font-size: .85rem; }
.sheet { border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.sheet.is-full { border-color: var(--accent); }
.sheet-count { color: var(--muted); text-align: center; margin: .3rem 0 .8rem; font-size: 1.1rem; } .sheet-count b { font: 800 2.6rem var(--display); color: var(--brand); }
.stamps-sheet { gap: .7rem .4rem; margin-bottom: .4rem; } .stamps-sheet .stamp svg { max-width: 44px; }
.note { background: var(--field); border-radius: var(--radius-sm); padding: .6rem .8rem; margin-top: .8rem; font-size: .9rem; } .note.ok { background: color-mix(in srgb, var(--accent) 14%, #fff); color: #7a3216; }
.mini-stamps { display: inline-flex; flex-wrap: wrap; gap: 3px; max-width: 120px; justify-content: flex-end; }
.mini-stamps i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); } .mini-stamps i.on { background: var(--brand); }
.list { list-style: none; margin: .6rem 0 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-item:last-child { border: 0; }
.li-main { flex: 1; min-width: 0; } .li-main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 600; } .li-main small { color: var(--muted); font-size: .8rem; }
.li-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; } .li-side small { font-size: .75rem; color: var(--muted); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.chip { border: 0; border-radius: 999px; padding: .5rem .9rem; background: var(--field); font: 600 .85rem var(--font); color: var(--ink); cursor: pointer; }
.chip.is-active { background: var(--brand); color: #fff; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; padding-top: 1rem; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 60%, var(--brand))); }
.bar small { position: absolute; top: -2px; font-size: .65rem; color: var(--muted); } .bar span { font-size: .65rem; color: var(--muted); margin-top: 4px; }
#moreStats { margin: .8rem 0 0; }
.nfc-row { flex-wrap: wrap; } .nfc-row div { flex: 1; min-width: 0; } .nfc-row code { display: block; font-size: .8rem; word-break: break-all; color: var(--accent); } .nfc-row small { display: block; }
.nfc-row svg { color: var(--accent); }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: .45rem .4rem calc(.45rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -18px rgba(60,36,21,.4); }
.tabbar button { flex: 1; border: 0; border-left: 1px solid var(--line); background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font: 500 .74rem var(--font); color: var(--muted); padding: .3rem 0; cursor: pointer; }
.tabbar button:first-child { border-left: 0; }
.tabbar button svg { width: 1.6rem; height: 1.6rem; }
.tabbar button.is-active { color: var(--accent); font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 6rem; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s; background: var(--brand); color: #fff; padding: .75rem 1.1rem; border-radius: 999px; font-weight: 600; z-index: 20; max-width: 92vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.ok { background: var(--ok); } .toast.err { background: var(--err); }

/* ---------- Afiche imprimible ---------- */
.is-poster { background: #e9e3dc; }
.print-bar { display: flex; gap: .6rem; justify-content: center; padding: 1rem; }
.poster { width: 148mm; min-height: 210mm; margin: 0 auto 2rem; background: var(--cream); border-radius: 6px; padding: 14mm 12mm; text-align: center; display: flex; flex-direction: column; align-items: center;
  border-top: 14mm solid var(--brand); box-shadow: var(--shadow); }
.poster header { display: flex; flex-direction: column; align-items: center; gap: 4mm; }
.poster-logo { width: 26mm; height: 26mm; border-radius: 8mm; margin-top: -24mm; border: 3px solid #fff; font-size: 2rem; object-fit: cover; background: #fff; }
.poster h1 { font-size: 2rem; margin: 0; }
.poster-claim { font-size: 1.15rem; margin: 5mm 0; } .poster-claim span { display: inline-block; margin-top: 2mm; font: 800 1.6rem var(--display); color: var(--accent); }
.poster-qr { width: 72mm; padding: 3mm; background: #fff; border: 2.5mm solid var(--accent); border-radius: 6mm; } .poster-qr svg { display: block; width: 100%; height: auto; }
.poster-steps { text-align: left; margin: 7mm 0 4mm; padding-left: 6mm; font-size: 1rem; } .poster-steps li { margin-bottom: 2mm; } .poster-steps svg { width: 1.2em; height: 1.2em; vertical-align: -3px; color: var(--accent); }
.poster-url { font: 700 1rem var(--font); color: var(--muted); margin: 0; }
.poster footer { margin-top: auto; font-size: .75rem; color: var(--muted); padding-top: 4mm; }
@media print { @page { size: A5; margin: 0; } .no-print { display: none !important; } .is-poster { background: #fff; } .poster { box-shadow: none; margin: 0; border-radius: 0; width: 148mm; height: 210mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- Landing (eDev Core) ---------- */
.is-landing { background: var(--cream); }
.site-nav { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.2rem; background: color-mix(in srgb, var(--cream) 90%, transparent); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: .5rem; font: 800 1.3rem var(--display); color: var(--brand); text-decoration: none; letter-spacing: -.02em; }
.brand small { font: 500 .75rem var(--font); color: var(--muted); letter-spacing: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--brand-2); background: var(--brand); }
.landing { max-width: 1080px; margin: 0 auto; padding: 0 1.2rem; }
.hero { display: grid; gap: 2rem; padding: 2rem 0 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 3.7rem); }
.hero .hl { color: var(--accent); }
.lead { font-size: 1.12rem; color: #5a4636; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 .8rem; }
.hero-cta .btn-primary { background: var(--accent); box-shadow: 0 12px 24px -12px var(--accent); }
.hero-phone { display: flex; justify-content: center; }
.phone { width: 300px; border-radius: 44px; padding: 2.6rem 1rem 1.2rem; background: var(--bg); border: 10px solid #1d1410; box-shadow: 0 40px 80px -30px rgba(60, 36, 21, .5); position: relative; transform: rotate(2deg); }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 12px; background: #1d1410; }
.phone-hello { font: 700 1.4rem var(--display); color: var(--brand); margin: 0 0 .6rem; }
.loyalty-card.mini { padding: 1rem; border-radius: 20px; margin-bottom: .6rem; }
.loyalty-card.mini .lc-head { margin-bottom: .8rem; } .loyalty-card.mini .lc-head h2 { font-size: 1rem; }
.loyalty-card.mini .stamps { gap: .55rem .35rem; }
.phone .lc-status { font-size: .85rem; margin: .5rem 0 .7rem; }
.phone-qr { display: flex; align-items: center; gap: .6rem; background: var(--surface); border-radius: 14px; padding: .7rem; font-size: .8rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.phone-qr svg { width: 48px; height: 48px; color: var(--ink); }
.phone .btn-wallet { font-size: .85rem; padding: .75rem; cursor: default; margin-top: .6rem; }
.section { padding: 3rem 0; } .section.alt { background: var(--surface); border-radius: 32px; padding: 3rem 1.4rem; box-shadow: var(--shadow-sm); }
.section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); text-align: center; margin-bottom: 1.8rem; }
.grid-3, .grid-2 { display: grid; gap: 1rem; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.feature-n { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; color: #fff; font: 800 1.1rem var(--display); background: var(--accent); margin-bottom: .7rem; }
.feature p, .benefit p { color: #6b5545; margin: 0; }
.benefit { display: flex; gap: .9rem; font-size: 1.6rem; align-items: flex-start; padding: .6rem 0; } .benefit h3 { margin-bottom: .2rem; }
.benefit div { font-size: 1rem; }
.is-landing .chips .chip { background: var(--surface); box-shadow: var(--shadow-sm); cursor: default; font-size: .95rem; padding: .6rem 1rem; }
.section .chips { justify-content: center; }
.pricing { max-width: 420px; margin: 0 auto; text-align: center; }
.pricing .btn-primary { background: var(--accent); }
.price { font: 800 2.4rem var(--display); color: var(--brand); margin: .2rem 0 1rem; letter-spacing: -.02em; }
.ticks { list-style: none; padding: 0; text-align: left; margin: 0 0 1rem; } .ticks li { padding: .45rem 0 .45rem 1.8rem; position: relative; border-bottom: 1px dashed var(--line); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.faq { max-width: 720px; margin: 0 auto; } .faq details { background: var(--surface); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: .6rem; box-shadow: var(--shadow-sm); }
.faq summary { font-weight: 600; cursor: pointer; color: var(--brand); } .faq p { margin: .6rem 0 0; color: #6b5545; }
.cta-final { text-align: center; color: #fff; border-radius: 32px; padding: 3rem 1.4rem; margin: 1rem 0 2rem; background: radial-gradient(100% 120% at 0 0, var(--accent), transparent 65%), var(--brand); }
.cta-final h2 { font-size: 2rem; color: #fff; } .cta-final a:not(.btn) { color: #fff; } .cta-final .btn svg { color: var(--wa); }
.site-footer { text-align: center; padding: 1.5rem; color: var(--muted); font-size: .85rem; } .site-footer a { color: inherit; }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.15fr 1fr; padding: 4rem 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; }
}

/* ---------- Autoservicio: mensajes, canje, alertas ---------- */
.flash { display: flex; gap: .8rem; align-items: flex-start; border-radius: var(--radius-md); padding: .9rem 1rem; margin: -.3rem 0 1rem; background: var(--surface); box-shadow: var(--shadow-sm); border-left: 5px solid var(--accent); animation: flashIn .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.flash b { display: block; color: var(--brand); font-size: 1.02rem; } .flash small { display: block; color: var(--muted); font-size: .88rem; margin-top: .1rem; }
.flash small b { display: inline; font-size: inherit; color: var(--accent); }
.flash-icon { font-size: 1.6rem; line-height: 1; }
.flash > div { flex: 1; min-width: 0; }
.flash-ok { border-left-color: var(--ok); } .flash-wait { border-left-color: #d9a441; } .flash-warn { border-left-color: var(--err); }
.flash-gift { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.flash form { margin-top: .4rem; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.gift-note { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--brand); border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .92rem; margin: 0 0 .2rem; }
.how-card { display: flex; gap: .9rem; align-items: flex-start; }
.how-card h2 { font-size: 1.05rem; margin-bottom: .25rem; } .how-card p { font-size: .92rem; margin: 0; color: #5a4636; }
.how-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); }
.how-icon svg { width: 26px; height: 26px; }
.qr-details summary { list-style: none; } .qr-details summary::-webkit-details-marker { display: none; }
.qr-details .qr-wrap { margin-top: .6rem; }
.redeemed { text-align: center; }
.redeem-card { background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); color: #fff; border-radius: var(--radius); padding: 2rem 1.3rem 1.6rem; box-shadow: var(--shadow); margin: .5rem 0 1rem; }
.redeem-card h1 { color: #fff; font-size: 2rem; margin: .2rem 0; } .redeem-card .eyebrow { color: var(--brand-2); }
.redeem-check { width: 92px; height: 92px; margin: 0 auto 1rem; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both, glow 1.6s ease-in-out infinite .6s; }
.redeem-check svg { width: 54px; height: 54px; }
@keyframes pop { from { transform: scale(0); } } @keyframes glow { 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--accent) 25%, transparent); } }
.redeem-name { font-size: 1.1rem; opacity: .9; } .redeem-clock { font: 800 2.4rem var(--display); letter-spacing: .04em; margin: .6rem 0; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.self-banner { display: flex; gap: .8rem; align-items: center; background: var(--surface); border-radius: var(--radius-md); padding: .9rem 1rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.self-banner svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent); color: #fff; }
.self-banner b { display: block; color: var(--brand); } .self-banner small { color: var(--muted); font-size: .85rem; }
.alert-count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: 999px; background: var(--err); color: #fff; font-size: .8rem; vertical-align: 3px; margin-left: .3rem; }
.alerts { list-style: none; margin: .4rem 0 0; padding: 0; }
.alert-item { background: var(--surface); border-radius: var(--radius-md); padding: .85rem 1rem; margin-bottom: .6rem; box-shadow: var(--shadow-sm); border-left: 5px solid #d9a441; }
.alert-item.lvl-alta { border-left-color: var(--err); } .alert-item.lvl-ok { border-left-color: var(--ok); }
.alert-item b { display: block; color: var(--ink); font-size: .95rem; } .alert-item small { display: block; color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.alert-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; } .alert-actions:empty { display: none; }
.undo { flex: none; padding: .35rem .65rem; font-size: .78rem; }
.act.is-void .li-main b { text-decoration: line-through; color: var(--muted); }
.exceptions summary { cursor: pointer; list-style: none; } .exceptions summary::-webkit-details-marker { display: none; }
.exceptions[open] summary { margin-bottom: .6rem; }
.poster-head { font: 800 1.45rem/1.2 var(--display); color: var(--brand); margin: 5mm 0 0; letter-spacing: -.02em; }
.poster-claim { margin-top: 3mm; } .poster-claim span { display: inline; font-size: 1.15rem; }
