/* Vermouthera — estilos */
@font-face { font-family: 'Zilla Slab'; font-weight: 600; font-display: swap; src: url(assets/fonts/zilla-slab-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Zilla Slab'; font-weight: 700; font-display: swap; src: url(assets/fonts/zilla-slab-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url(assets/fonts/figtree-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 500; font-display: swap; src: url(assets/fonts/figtree-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url(assets/fonts/figtree-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url(assets/fonts/figtree-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url(assets/fonts/oswald-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url(assets/fonts/oswald-latin-700-normal.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --bordo: #8b1a1a;
  --bordo-2: #a8261c;
  --bordo-d: #5e0f0f;
  --tab: #7a1717;
  --cream: #fbf3e0;
  --cream-2: #f4e6c6;
  --paper: #fffaf0;
  --ink: #3a1a10;
  --ink-2: #6b4a3a;
  --muted: #8c7462;
  --line: #e8d5ae;
  --mustard: #e3a33b;
  --orange: #e8913a;
  --green: #3e8e41;
  --display: 'Zilla Slab', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tabh: 66px;
  --shadow: 0 1px 2px rgba(74, 31, 18, .08), 0 6px 18px rgba(74, 31, 18, .10);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--body); color: var(--ink); background: #2b0a08;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic.tiny { width: 14px; height: 14px; vertical-align: -2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 8px 4px; }
a { color: var(--bordo-2); font-weight: 600; }

/* ---------- escenario (escritorio) ---------- */
.stage { min-height: 100%; display: flex; align-items: center; justify-content: center; gap: 64px; padding: 20px; }
.stage-info { display: none; }
.phone { position: relative; }
.statusbar { display: none; }
.app { position: relative; overflow: hidden; background: var(--cream); width: 100vw; height: 100vh; height: 100dvh; }

@media (min-width: 600px) {
  body {
    background:
      radial-gradient(circle at 20% 10%, rgba(232, 145, 58, .18), transparent 45%),
      radial-gradient(circle at 85% 90%, rgba(168, 38, 28, .35), transparent 50%), #2b0a08;
  }
  .phone {
    width: 390px; height: min(844px, calc(100vh - 40px)); border-radius: 54px; padding: 12px;
    background: linear-gradient(145deg, #a8261c, #6e1212); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .12);
    display: flex; flex-direction: column;
  }
  .statusbar {
    display: flex; justify-content: space-between; align-items: center; height: 32px; padding: 0 26px 0 30px; background: var(--bordo);
    color: #fbf1dc; font: 600 14px var(--body); border-radius: 42px 42px 0 0; flex: none; position: relative;
  }
  .statusbar::after { content: ''; position: absolute; left: 50%; top: 6px; width: 96px; height: 22px; border-radius: 14px; background: #120403; transform: translateX(-50%); }
  .statusbar .sb-icons { display: flex; gap: 6px; align-items: center; }
  .statusbar .sb-icons i { display: block; width: 18px; height: 10px; border: 1.6px solid currentColor; border-radius: 3px; position: relative; }
  .statusbar .sb-icons i::after { content: ''; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: currentColor; border-radius: 1px; }
  .statusbar .sb-icons b { width: 16px; height: 10px; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 4.3px, currentColor 4.3px 7.3px, transparent 7.3px 8.6px, currentColor 8.6px 11.6px, transparent 11.6px 12.9px, currentColor 12.9px); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
  .app { width: 100%; height: auto; flex: 1; border-radius: 0 0 42px 42px; }
}
@media (min-width: 1000px) {
  .stage-info { display: block; width: 380px; color: #fbf1dc; }
  .stage-info h1 { font: 700 44px/1 var(--display); margin: 0 0 6px; }
  .stage-info .kicker { font: 600 13px var(--body); letter-spacing: 3px; text-transform: uppercase; color: var(--mustard); margin: 0 0 18px; }
  .stage-info .lead { color: #e9d7bd; line-height: 1.55; margin: 0 0 22px; }
  .stage-info .bubble { background: #f6e3bf; color: #6e1212; border-radius: 16px; padding: 14px 18px; margin: 0 0 12px; font: 600 15px/1.4 var(--body); }
  .stage-info .foot { margin-top: 22px; font-size: 12px; color: #b89c86; }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 14px;
  font-weight: 700; font-size: 15px; transition: transform .12s, background .2s, box-shadow .2s; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--bordo-2); color: #fff8ec; box-shadow: 0 3px 0 var(--bordo-d); }
.btn.primary:hover { background: #b92d21; }
.btn.outline { border: 1.6px solid var(--bordo-2); color: var(--bordo-2); background: transparent; }
.btn.light { background: #fbf1dc; color: var(--bordo); }
.btn.ghost-light { color: #fbf1dc; border: 1.6px solid rgba(251, 241, 220, .5); }
.btn.disabled { background: var(--cream-2); color: var(--muted); }
.btn.big { min-height: 54px; font-size: 17px; border-radius: 16px; }
.btn.pill { border-radius: 999px; padding: 14px 34px; line-height: 1.2; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.lnk { color: var(--bordo-2); font-weight: 600; font-size: 12px; margin-left: 10px; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

/* ---------- acceso ---------- */
.gate, .login { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 26px; text-align: center; overflow: auto; }
.gate { background: radial-gradient(circle at 50% 30%, #a8261c, #5e0f0f 75%); color: #fbf1dc; }
.gate-logo, .login-logo { width: 100%; max-width: 300px; }
.app-logo { width: 100%; height: auto; display: block; }
.gate h1 { font: 700 28px/1.15 var(--display); margin: 14px 0 8px; }
.gate p { color: #f0dcc0; line-height: 1.5; margin: 0 0 22px; max-width: 300px; }
.gate-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; }
.gate .btn.primary { background: var(--mustard); color: #3a1a10; box-shadow: 0 3px 0 #a86f1c; }
.gate .legal { margin-top: 28px; font-size: 11px; color: #d9b9a0; }
.legal { font-size: 11px; color: var(--muted); }
.login { background: var(--cream); }
.login-form { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; text-align: left; margin-top: 8px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input, textarea, select {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px 14px; font-size: 16px; font-weight: 500; color: var(--ink); width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--bordo-2); box-shadow: 0 0 0 3px rgba(168, 38, 28, .15); }
textarea { resize: none; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.g { font: 700 18px var(--body); color: #4285f4; }
.demo-note { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 20px; max-width: 320px; }

/* ---------- shell ---------- */
.views, .pages { position: absolute; left: 0; right: 0; top: 0; bottom: var(--tabh); }
.pages { pointer-events: none; z-index: 20; }
.view { height: 100%; display: flex; flex-direction: column; background: var(--cream); }
.scroll { flex: 1; overflow-y: auto; padding: 14px 16px 24px; overscroll-behavior: contain; }
.layer { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.layer > * { pointer-events: auto; }
.toasts { position: absolute; left: 0; right: 0; top: 64px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  display: flex; gap: 10px; align-items: center; background: #2b0f0a; color: #fbf1dc; padding: 11px 16px; border-radius: 14px; font-size: 14px; max-width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: toast-in .35s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .3s, transform .3s;
}
.toast .ic { color: var(--mustard); }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } }

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--tabh); background: var(--tab); display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center; z-index: 30; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 14px rgba(60, 10, 5, .18);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(251, 241, 220, .72); font-size: 10.5px; font-weight: 600; height: 100%; justify-content: center; }
.tab .ic { width: 24px; height: 24px; }
.tab.on { color: var(--mustard); }
.tab .badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--mustard); color: #3a1a10; font: 700 11px/18px var(--body); font-style: normal; padding: 0 5px; }
.tab-scan {
  justify-self: center; width: 62px; height: 62px; border-radius: 50%; background: var(--mustard); color: var(--bordo-d); display: grid; place-items: center;
  transform: translateY(-16px); border: 5px solid var(--tab); box-shadow: 0 6px 14px rgba(60, 10, 5, .35);
}
.tab-scan .ic { width: 28px; height: 28px; stroke-width: 2.2; }
.tab-scan.on { background: #fbf1dc; }

.bar { flex: none; height: 56px; background: var(--bordo); color: #fbf1dc; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 0 4px; }
.bar h1 { margin: 0; text-align: center; font: 700 22px var(--display); letter-spacing: 1.5px; text-transform: uppercase; }
.bar-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #fbf1dc; }
.bar-btn:hover { background: rgba(255, 255, 255, .08); }
.card { background: var(--paper); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.sec { font: 700 17px var(--display); color: var(--bordo); margin: 22px 2px 10px; }

/* ---------- mapa ---------- */
.map-view {
  position: relative; height: 100%; overflow: hidden;
  background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, .6), transparent 50%), radial-gradient(circle at 20% 80%, rgba(227, 163, 59, .12), transparent 50%), #f8ecd3;
}
.map-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
  background: linear-gradient(#f8ecd3 55%, rgba(248, 236, 211, 0));
}
.map-title { font: 700 22px/1 var(--display); color: var(--bordo); position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }
.map-title small { display: block; font: 600 10px var(--body); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.pts-chip { margin-left: auto; display: flex; align-items: center; gap: 5px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 9px; font-size: 14px; box-shadow: var(--shadow); }
.pts-chip .ic { width: 16px; height: 16px; fill: var(--mustard); stroke: var(--mustard); }
.back-arg { display: flex; align-items: center; gap: 2px; font-weight: 700; font-size: 14px; color: var(--bordo); background: var(--paper); border-radius: 999px; padding: 6px 12px 6px 6px; box-shadow: var(--shadow); transition: opacity .3s; }
.back-arg .ic { width: 18px; height: 18px; }
.mode-national .back-arg { opacity: 0; pointer-events: none; }
.mode-city .map-title { opacity: 0; }
.mode-city .map-top { background: linear-gradient(#cfe1db 40%, rgba(207, 225, 219, 0)); }
.map-stage { position: absolute; left: 0; right: 0; top: 50px; bottom: 62px; }
.mode-city .map-stage { top: 0; bottom: 0; }
.nat, .city { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.65, 0, .25, 1), opacity .55s ease; will-change: transform, opacity; }
.city { background: #cfe1db; }
.mode-national .city { opacity: 0; transform: scale(.3); pointer-events: none; }
.mode-city .nat { opacity: 0; transform: scale(7); pointer-events: none; }
.mode-city .city { transition-delay: .15s; }
.instant .nat, .instant .city { transition: none !important; }

.prov { stroke: #f8ecd3; stroke-width: .9; stroke-linejoin: round; cursor: pointer; transition: filter .2s; }
.prov:hover { filter: brightness(1.08) saturate(1.1); }
.prov.active { stroke-width: 1.4; }
.route-under { fill: none; stroke: #fbf1dc; stroke-width: 5.5; stroke-linecap: round; opacity: .85; }
.route { fill: none; stroke: #f0902f; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 8 6; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -28; } }
.pin-coming { cursor: pointer; }
.pc-ring { fill: #f8ecd3; stroke: #6f5a49; stroke-width: 1.5; stroke-dasharray: 2.6 2; }
.pc-dot { fill: #6f5a49; }
.pc-label { font: 600 9.5px var(--body); fill: #4a2a1a; text-anchor: middle; paint-order: stroke; stroke: #f8ecd3; stroke-width: 3px; stroke-linejoin: round; }
.pin-hub { cursor: pointer; }
.hub-pulse { fill: none; stroke: var(--bordo); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.hub-pill { fill: var(--paper); stroke: var(--bordo); stroke-width: 1.5; }
.hub-text { font: 700 13px var(--display); fill: var(--bordo); text-anchor: middle; }
.hub-count { fill: var(--green); stroke: #fbf1dc; stroke-width: 1.5; }
.hub-count-t { font: 700 11px var(--body); fill: #fff; text-anchor: middle; }
.mk-full { fill: var(--bordo); stroke: #fbf1dc; stroke-width: 3; }
.mk-empty { fill: #fbf3e0; stroke: var(--bordo); stroke-width: 2.2; stroke-dasharray: 4 3; }
.sea-label { font: 600 italic 14px var(--display); fill: #a08463; letter-spacing: 3px; text-anchor: middle; }
.isl-label { font: 600 9px var(--body); fill: #6f5a49; text-anchor: middle; }
.compass-n { font: 700 11px var(--display); fill: #6f5a49; text-anchor: middle; }
.pin-brand { cursor: pointer; }
.pin-brand:hover .bp-pill { fill: #fff; }
.bp-pill { fill: var(--paper); stroke: var(--bordo); stroke-width: 1; }
.pin-brand.tried .bp-pill { fill: var(--bordo); }
.bp-text { font: 700 10.5px var(--body); fill: var(--ink); text-anchor: middle; }
.pin-brand.tried .bp-text { fill: #fbf1dc; }
.city .barrio { font: 600 9px var(--body); fill: #9c7b55; text-anchor: middle; letter-spacing: 1px; text-transform: uppercase; }
.city .park { font: 600 8.5px var(--body); fill: #4f7a3a; text-anchor: middle; }
.city .sea { font: 600 italic 13px var(--display); fill: #6f948b; letter-spacing: 4px; text-anchor: middle; }
.city .city-name { font: 700 20px var(--display); fill: var(--bordo); opacity: .55; text-anchor: middle; }

.map-bottom { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; }
.card-mini { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 10px 14px; }
.legend { display: flex; justify-content: space-around; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot-coming { width: 14px; height: 14px; border-radius: 50%; border: 1.6px dashed #6f5a49; background: radial-gradient(circle, #6f5a49 2.5px, transparent 3px); }
.mode-national .city-only, .mode-city .nat-only { display: none; }
.zone { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 6px 12px; align-items: center; cursor: pointer; }
.zone b { display: block; font: 700 17px var(--display); color: var(--bordo); }
.zone small { color: var(--muted); font-size: 12px; }
.zone .prog { grid-column: 1; margin: 0; }
.zone .link { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 2px; color: var(--bordo-2); font-weight: 700; font-size: 13px; }

.prog { overflow: hidden; height: 6px; background: var(--cream-2); border-radius: 3px; display: block; padding: 0; margin: 6px 0 4px; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--mustard), var(--bordo-2)); border-radius: 3px; }

/* ---------- hojas ---------- */
.sheet-wrap { position: absolute; inset: 0; }
.sheet-bg { position: absolute; inset: 0; background: rgba(40, 12, 6, .45); opacity: 0; transition: opacity .25s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; overflow-y: auto; background: var(--cream); border-radius: 24px 24px 0 0;
  padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .3s cubic-bezier(.3, 1.1, .4, 1);
}
.sheet-wrap.in .sheet-bg { opacity: 1; }
.sheet-wrap.in .sheet { transform: none; }
.sheet-wrap.closing .sheet { transition-timing-function: ease-in; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 12px; }
.sheet-title { font: 700 23px/1.15 var(--display); color: var(--bordo); margin: 4px 0 6px; }
.sheet p { line-height: 1.5; }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; }
.coming-head { display: flex; gap: 12px; align-items: center; }
.coming-head p { margin: 0; }
.coming-ic { width: 46px; height: 46px; border-radius: 50%; border: 2px dashed #6f5a49; display: grid; place-items: center; color: #6f5a49; flex: none; }
.brand-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; }
.brand-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; text-align: left; background: var(--paper); border-radius: 14px; padding: 8px 10px 8px 8px; box-shadow: var(--shadow); }
.br-label .label-art { width: 52px; height: 52px; border-radius: 9px; display: block; }
.br-main b { display: block; font: 700 16px var(--display); }
.br-main small { color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 3px; }
.br-main .ic.tiny { fill: var(--mustard); stroke: var(--mustard); }
.br-state { display: flex; flex-direction: column; align-items: center; font-size: 10.5px; font-weight: 700; color: var(--ink-2); }
.copa-badge { display: block; }

/* ---------- páginas (pasaporte / ajustes) ---------- */
.page { position: absolute; inset: 0; background: var(--cream); display: flex; flex-direction: column; pointer-events: auto; }
.page.entering { animation: page-in .32s cubic-bezier(.2, .9, .3, 1); }
.page.leaving { animation: page-out .26s ease-in forwards; }
@keyframes page-in { from { transform: translateX(100%); } }
@keyframes page-out { to { transform: translateX(100%); } }
.page-body { flex: 1; overflow-y: auto; padding: 14px 14px 24px; overscroll-behavior: contain; }
.passport-card hr { border: 0; border-top: 1.5px solid var(--line); margin: 18px 0 14px; }
.passport-card h3 { font: 700 19px var(--display); color: var(--ink); margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; }
.passport-card h3 small { font: 600 13px var(--body); color: var(--muted); }
.pp-head { display: grid; grid-template-columns: 124px 1fr; gap: 14px; }
.pp-label { position: relative; }
.pp-label .label-art { width: 124px; height: 124px; border-radius: 10px; display: block; box-shadow: 0 3px 10px rgba(40, 10, 5, .25); }
.stamp {
  position: absolute; right: -10px; bottom: -14px; width: 70px; height: 70px; border-radius: 50%; border: 2.5px solid var(--green); color: var(--green); background: rgba(255, 250, 240, .92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-14deg); box-shadow: inset 0 0 0 3px rgba(255, 250, 240, .9), inset 0 0 0 4.5px var(--green);
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 1.15;
}
.stamp b { font: 700 14px var(--display); letter-spacing: 0; }
.stamp small { font-size: 8px; letter-spacing: .5px; }
.pp-info h2 { font: 700 24px/1.05 var(--display); margin: 0 0 4px; color: var(--ink); }
.pp-tag { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.pp-sub { display: block; font: 700 16px var(--display); color: var(--bordo); margin-bottom: 2px; }
.stars { display: inline-flex; gap: 1px; }
.star { width: 16px; height: 16px; }
.star.md { width: 21px; height: 21px; }
.star.xs { width: 12px; height: 12px; }
.star-bg { fill: #e8d5ae; }
.star-fg { fill: var(--mustard); }
.pp-score { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.pp-score .ic { width: 26px; height: 26px; fill: var(--mustard); stroke: var(--mustard); }
.pp-score b { font: 700 28px var(--display); }
.pp-score small { color: var(--muted); font-size: 12px; margin-left: 2px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 10px 12px; background: var(--cream); border-radius: 14px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.rate-input { display: flex; }
.rate-input button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; transition: transform .15s; }
.rate-input button:hover { transform: scale(1.15); }
.rate-input .star { width: 28px; height: 28px; }
.not-yet { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 12px; border: 1.5px dashed #c9a77a; border-radius: 14px; background: rgba(251, 243, 224, .6); }
.not-yet b { display: block; font: 700 16px var(--display); }
.not-yet small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; }
.not-yet .btn { grid-column: 1 / -1; }
.my-comment { background: #f6e7c4; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.my-comment p { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.my-comment small { color: var(--muted); font-size: 12px; }
.medal-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.medal-cell { display: flex; flex-direction: column; align-items: center; }
.medal-cell b { font-size: 11.5px; line-height: 1.15; margin-top: 2px; }
.medal-cell small { font-size: 10px; color: var(--muted); line-height: 1.2; }
.medal-cell.off b { color: var(--muted); }
.medal { display: block; transition: transform .2s; }
.medal.locked { filter: grayscale(1); opacity: .45; }
.medal-cell:not(.off) .medal { animation: medal-in .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes medal-in { from { transform: scale(.6) rotate(-10deg); } }
.composer { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.composer .btn { align-self: flex-end; }
.comments { display: flex; flex-direction: column; gap: 14px; }
.comment { display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 13px var(--body); flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.c-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-top b { font-size: 14px; }
.c-top small { color: var(--muted); font-size: 11.5px; margin-left: auto; }
.c-body p { margin: 3px 0 4px; font-size: 14.5px; line-height: 1.4; }
.like { font-size: 12px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; }
.like.on { color: var(--bordo-2); }
.like.on .ic { fill: currentColor; }
.about { display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.about-bottle .bottle-art { width: 84px; height: auto; display: block; }
.about-text p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; margin: 0 0 10px; }
dt { color: var(--muted); font-weight: 600; }
dd { margin: 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { background: var(--cream-2); color: var(--ink-2); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.serve { font-size: 13px !important; color: var(--ink-2); font-style: italic; }
.pp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.pp-actions .btn { font-size: 13px; padding: 8px 10px; }

/* ---------- escanear ---------- */
.scan-home { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 34px 24px 24px; background: radial-gradient(circle at 50% 25%, #fff8e8, var(--cream) 60%); }
.scan-logo { width: 100%; max-width: 300px; margin: 18px 0 30px; }
.scan-help { text-align: center; color: var(--ink-2); line-height: 1.5; font-size: 14.5px; margin: 26px 0 18px; max-width: 320px; }
.rules { width: 100%; max-width: 340px; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 6px 14px; }
.rule { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--cream-2); font-size: 14px; }
.rule:last-child { border: 0; }
.rule .ic { color: var(--bordo-2); }
.rule span { flex: 1; }
.rule b { color: var(--green); }

.scanner {
  position: absolute; inset: 0; background: #1c0b07; color: #fbf1dc; display: flex; flex-direction: column; overflow-y: auto;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.3, 1, .4, 1); z-index: 70;
}
.scanner.in { transform: none; }
.sc-top { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 6px 4px; }
.sc-top h2 { margin: 0; text-align: center; font: 700 19px var(--display); }
.viewfinder { position: relative; margin: 4px 22px 0; aspect-ratio: 1 / .82; border-radius: 22px; overflow: hidden; background: #2d150f; flex: none; }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.vf-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #cbb39a; font-size: 14px; }
.vf-idle .ic { width: 52px; height: 52px; color: #8a6a55; stroke-width: 1.4; }
.vf-idle p { margin: 0; }
.vf-frame { position: absolute; inset: 16%; opacity: 0; }
.vf-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--mustard); }
.vf-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.vf-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.vf-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.vf-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.vf-laser { position: absolute; left: 8%; right: 8%; height: 2px; background: var(--mustard); box-shadow: 0 0 12px var(--mustard); animation: laser 2s ease-in-out infinite alternate; }
@keyframes laser { from { top: 8%; } to { top: 92%; } }
.scanner.cam video, .scanner.cam .vf-frame { opacity: 1; }
.scanner.cam .vf-idle { display: none; }
.sc-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 22px 0; }
.sc-mode { display: flex; gap: 9px; align-items: center; text-align: left; background: #2d150f; border-radius: 14px; padding: 10px; border: 1.5px solid transparent; }
.sc-mode .ic { color: var(--mustard); }
.sc-mode b { display: block; font-size: 13px; }
.sc-mode small { display: block; font-size: 10.5px; color: #cbb39a; line-height: 1.25; }
.sc-mode.ok { border-color: rgba(62, 142, 65, .7); }
.sc-mode.todo small { color: #e8b866; }
.sc-status { margin: 10px 22px 0; min-height: 18px; font-size: 12.5px; color: #e9d3b8; line-height: 1.4; }
.sim { margin-top: auto; background: var(--cream); color: var(--ink); border-radius: 24px 24px 0 0; padding: 16px 16px 22px; }
.sim h3 { margin: 0; font: 700 18px var(--display); color: var(--bordo); display: flex; align-items: center; gap: 6px; }
.sim h3 small { font: 700 10px var(--body); background: var(--mustard); color: #3a1a10; border-radius: 6px; padding: 2px 6px; text-transform: uppercase; letter-spacing: 1px; }
.sim p { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.sim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sim-b { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); transition: transform .15s; }
.sim-b:hover { transform: translateY(-2px); }
.sim-b.pre { outline: 3px solid var(--mustard); }
.sim-b .bottle-art { height: 84px; width: auto; }
.sim-b span { font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; }
.sim-ok { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.sim-ok .ic { width: 12px; height: 12px; stroke-width: 3; }

.stamp-modal { position: absolute; inset: 0; z-index: 80; background: rgba(30, 8, 4, .62); display: grid; place-items: center; padding: 22px; opacity: 0; transition: opacity .25s; }
.stamp-modal.in { opacity: 1; }
.sm-card { position: relative; width: 100%; max-width: 330px; background: var(--paper); border-radius: 24px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.sm-bottle { height: 170px; display: flex; justify-content: center; }
.sm-bottle .bottle-art { height: 100%; width: auto; }
.sm-stamp { position: absolute; top: 74px; right: 16px; width: 130px; color: var(--bordo-2); transform: rotate(-14deg); opacity: 0; mix-blend-mode: multiply; }
.stamp-modal.in .sm-stamp { animation: stamp .55s .25s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stamp { from { opacity: 0; transform: scale(2.6) rotate(-35deg); } to { opacity: .92; transform: scale(1) rotate(-14deg); } }
.sm-card h2 { font: 700 22px/1.15 var(--display); color: var(--bordo); margin: 14px 0 4px; }
.sm-pts { font: 700 30px var(--display); color: var(--green); margin: 0; }
.sm-card p.muted { margin: 4px 0 14px; font-size: 14px; }
.sm-actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- mi ruta ---------- */
.profile { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.pf-main b { font: 700 19px var(--display); display: block; }
.pf-main small { font-size: 12px; color: var(--bordo-2); font-weight: 700; }
.pf-main small.muted { color: var(--muted); font-weight: 500; }
.pf-pts { text-align: center; background: var(--cream); border-radius: 14px; padding: 8px 12px; }
.pf-pts b { display: block; font: 700 26px/1 var(--display); color: var(--bordo); }
.pf-pts small { font-size: 11px; color: var(--muted); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stat { background: var(--paper); border-radius: 14px; padding: 10px 6px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font: 700 20px var(--display); }
.stat small { font-size: 11px; color: var(--muted); font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--cream-2); padding: 4px; border-radius: 14px; margin: 4px 0 14px; }
.seg-b { padding: 9px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.seg-b.on { background: var(--paper); color: var(--bordo); box-shadow: var(--shadow); }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shelf-item { background: var(--paper); border-radius: 16px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: var(--shadow); text-align: center; }
.shelf-bottle { position: relative; height: 120px; margin-bottom: 6px; }
.shelf-bottle .bottle-art { height: 100%; width: auto; display: block; }
.shelf-copa { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); }
.shelf-item b { font-size: 12.5px; line-height: 1.15; }
.shelf-item small { font-size: 11px; color: var(--green); font-weight: 600; }
.shelf-item.ghost small { color: var(--muted); }
.route-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 14px; }
.route-card .ic { color: var(--bordo-2); width: 28px; height: 28px; }
.route-card b { display: block; font: 700 16px var(--display); }
.route-card small { color: var(--muted); font-size: 12px; }
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ach { background: var(--paper); border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: var(--shadow); }
.ach b { font-size: 12px; line-height: 1.15; margin-top: 2px; }
.ach small { font-size: 10.5px; color: var(--muted); line-height: 1.25; margin: 2px 0 4px; flex: 1; }
.ach .prog { width: 80%; margin: 2px 0; }
.ach-p { font-size: 10.5px; font-weight: 700; color: var(--ink-2); }
.ach-ok { font-size: 10.5px; font-weight: 700; color: var(--green); }
.ach-soon { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.ach:not(.done) b { color: var(--ink-2); }
.balance { background: linear-gradient(135deg, var(--bordo-2), var(--bordo-d)); color: #fbf1dc; text-align: center; padding: 18px; }
.balance b { display: block; font: 700 44px/1.1 var(--display); color: var(--mustard); }
.balance span { font-size: 13px; color: #f0d9bd; }
.prizes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.prize { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: var(--paper); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); }
.prize-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--cream-2); color: var(--bordo-2); display: grid; place-items: center; }
.pz-main b { display: block; font-size: 14.5px; }
.pz-main small { font-size: 12px; color: var(--muted); line-height: 1.3; display: block; }
.coupon { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-align: left; background: var(--paper); border: 1.5px dashed var(--mustard); border-radius: 14px; padding: 10px; margin-bottom: 8px; }
.coupon b { display: block; font-size: 14px; }
.coupon small { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.coupon > .ic { color: var(--bordo-2); }
.history { background: var(--paper); border-radius: 14px; padding: 4px 14px; box-shadow: var(--shadow); }
.h-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--cream-2); font-size: 13.5px; }
.h-row:last-child { border: 0; }
.h-row small { display: block; color: var(--muted); font-size: 11.5px; }
.h-row .pos { color: var(--green); }
.h-row .neg { color: var(--bordo-2); }
.coupon-view { text-align: center; }
.qr-wrap { display: inline-block; padding: 14px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); margin: 8px 0 4px; }
.qr { display: block; }
.code { font: 700 20px ui-monospace, monospace; letter-spacing: 2px; color: var(--bordo); margin: 8px 0 4px; }
.confirm { text-align: center; padding-top: 6px; }
.confirm .prize-ic { margin: 0 auto 6px; width: 56px; height: 56px; }

/* ---------- cartelera ---------- */
.cork {
  background-color: #c79a68;
  background-image: radial-gradient(rgba(90, 50, 20, .25) 1px, transparent 1.5px), radial-gradient(rgba(255, 230, 190, .25) 1px, transparent 1.5px);
  background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px;
}
.board-note { display: flex; gap: 8px; background: #fff6c9; color: #5c4a1a; font-size: 12.5px; line-height: 1.4; padding: 10px 12px; border-radius: 4px; margin: 2px 0 12px; box-shadow: 0 3px 8px rgba(60, 30, 10, .2); transform: rotate(-.6deg); }
.board-note .ic { color: var(--bordo-2); width: 18px; height: 18px; }
.fchips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 2px; scrollbar-width: none; }
.fchip { flex: none; padding: 7px 13px; border-radius: 999px; background: rgba(255, 250, 240, .85); font-weight: 700; font-size: 13px; color: var(--ink-2); }
.fchip.on { background: var(--bordo); color: #fbf1dc; }
.poster { position: relative; background: var(--paper); border-radius: 4px; margin: 0 4px 18px; box-shadow: 0 6px 14px rgba(60, 30, 10, .28); transform: rotate(var(--r)); overflow: visible; }
.tape { position: absolute; top: -9px; left: 50%; width: 76px; height: 20px; background: rgba(250, 240, 210, .78); transform: translateX(-50%) rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); z-index: 1; }
.poster-top { display: grid; grid-template-columns: 64px 1fr; background: var(--c); color: #fbf1dc; border-radius: 4px 4px 0 0; }
.pdate { background: rgba(0, 0, 0, .22); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 4px; line-height: 1; }
.pdate b { font: 700 28px var(--display); }
.pdate small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.ptitle { padding: 12px 12px 12px 14px; }
.ptag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; opacity: .8; }
.ptitle h3 { margin: 2px 0 0; font: 700 19px/1.15 var(--display); }
.pbody { padding: 10px 14px 12px; }
.pbody p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; }
.pmeta { color: var(--ink-2); font-weight: 600; font-size: 12.5px !important; }
.pbody footer { display: flex; align-items: center; gap: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.pbody footer small { color: var(--muted); font-size: 11.5px; flex: 1; }
.interest { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--bordo-2); background: var(--cream); border-radius: 999px; padding: 6px 10px; }
.interest.on { background: var(--bordo-2); color: #fff; }
.interest.on .ic { fill: currentColor; }
.empty { text-align: center; color: #5c3a1a; padding: 30px 10px; }
.empty .ic { width: 40px; height: 40px; }
.ev-form { display: flex; flex-direction: column; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.swatches { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); flex-wrap: wrap; }
.swatches span { margin-right: 4px; }
.sw { position: relative; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 3px solid var(--cream); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.sw input:checked + i { box-shadow: 0 0 0 2.5px var(--mustard); }
.sw input:focus-visible + i { outline: 3px solid var(--mustard); }

/* ---------- avisos ---------- */
.notif { width: 100%; display: grid; grid-template-columns: 40px 1fr; gap: 12px; text-align: left; padding: 12px; border-radius: 14px; margin-bottom: 6px; background: transparent; align-items: start; }
.notif.unread { background: var(--paper); box-shadow: var(--shadow); }
.notif.unread .n-body > span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bordo-2); margin-right: 6px; vertical-align: 1px; }
.n-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--bordo-2); }
.n-ic .ic { width: 20px; height: 20px; }
.n-medal { background: var(--mustard); color: #3a1a10; }
.n-event { background: #1f6f78; }
.n-release { background: #6b3fa0; }
.n-like { background: #c0562b; }
.n-route { background: var(--green); }
.n-prize { background: #c9a24a; color: #3a1a10; }
.n-body { font-size: 14px; line-height: 1.4; }
.n-body small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- ajustes ---------- */
.settings .card { padding: 6px 14px; }
.name-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 0 4px; }
.name-form label { flex: 1; }
.settings .card > p { margin: 6px 0 10px; }
.toggle { flex-direction: row; display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--cream-2); cursor: pointer; }
.toggle:last-child { border: 0; }
.toggle span { flex: 1; }
.toggle b { display: block; color: var(--ink); font-size: 14.5px; }
.toggle small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { width: 46px; height: 28px; border-radius: 14px; background: #d9c6a3; position: relative; transition: background .2s; flex: none; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.toggle input:checked + i { background: var(--green); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 3px solid var(--mustard); outline-offset: 2px; }
.set-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--cream-2); text-align: left; }
.set-row:last-child { border: 0; }
.set-row .ic { color: var(--bordo-2); }
.set-row b { display: block; font-size: 14.5px; }
.set-row small { display: block; color: var(--muted); font-size: 12px; }
.about-app p { margin: 8px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 599px) {
  .stage { display: block; padding: 0; min-height: 0; }
  .phone { width: 100%; }
}
