@charset "utf-8";

:root { --bg: #E7EEFF; --bg-deep: #D8E3FB; --panel: #F0F3FF; --ink: #111C2D; --ink-soft: #3C4A42; --ink-faint: #6C7A71; --brand: #0000A0; --brand-deep: #000066; --brand-darker: #000033; --accent: #A4D62D; --accent-deep: #8CB524; --green: #10B981; --green-deep: #006C49; --danger: #BA1A1A; --danger-bg: #FFDAD6; --white: #FFFFFF; --sh-dark: #C1CDE6; --sh-light: #FFFFFF; --out: 9px 9px 20px var(--sh-dark), -9px -9px 20px var(--sh-light); --out-sm: 5px 5px 12px var(--sh-dark), -5px -5px 12px var(--sh-light); --out-xs: 3px 3px 7px  var(--sh-dark), -3px -3px 7px  var(--sh-light); --in: inset 6px 6px 12px var(--sh-dark), inset -6px -6px 12px var(--sh-light); --in-sm: inset 3px 3px 7px  var(--sh-dark), inset -3px -3px 7px  var(--sh-light); --r-card: 26px; --r-btn: 18px; --r-chip: 999px; --f-display: "Outfit", "Baloo 2", system-ui, sans-serif; --f-body: "Outfit", "Nunito Sans", system-ui, sans-serif; --ease: cubic-bezier(.2,.8,.3,1); }

* { box-sizing: border-box; margin: 0px; padding: 0px; }

html { text-size-adjust: 100%; }

body { font-family: var(--f-body); color: var(--ink); background: radial-gradient(900px 500px at 85% -10%, rgba(27,63,143,.10), transparent 60%),
    radial-gradient(700px 420px at -10% 100%, rgba(232,122,30,.08), transparent 55%),
    var(--bg); min-height: 100dvh; line-height: 1.5; }

body::before { content: ""; position: fixed; inset: 0px; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%231B3F8F' stroke-opacity='.06' stroke-width='2'%3E%3Cpath d='M10 40h50l20 20v60'/%3E%3Cpath d='M150 20v40l-30 30H60'/%3E%3Ccircle cx='10' cy='40' r='4'/%3E%3Ccircle cx='80' cy='120' r='4'/%3E%3Ccircle cx='150' cy='20' r='4'/%3E%3C/g%3E%3C/svg%3E"); background-size: 320px 320px; }

main, header, footer, .app { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; border: 0px; cursor: pointer; background: none; -webkit-tap-highlight-color: transparent; }

input, select, textarea { font: inherit; color: var(--ink); border: 0px; background: transparent; outline: none; width: 100%; }

::placeholder { color: var(--ink-faint); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; animation: auto ease 0s 1 normal none running none !important; }
}

.app { max-width: 430px; margin: 0px auto; padding: 20px 18px 110px; min-height: 100dvh; }

.app--tablet { max-width: 1080px; padding: 24px 28px 40px; }

@media (min-width: 520px) {
  .app:not(.app--tablet) { padding-top: 36px; }
}

@media (min-width: 760px) {
  .app:not(.app--tablet) { max-width: 760px; padding-left: 32px; padding-right: 32px; }
}

@media (min-width: 1100px) {
  .app:not(.app--tablet) { max-width: 1040px; }
  .app--tablet { max-width: 1300px; }
}

.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }

.brand__word { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.5px; color: var(--brand); line-height: 1; }

.brand__word em { font-style: normal; color: var(--accent); }

.brand__tag { font-family: var(--f-display); font-weight: 700; color: var(--accent); letter-spacing: 0.28em; text-transform: uppercase; line-height: 1; }

.brand--np .brand__word { color: var(--brand); }

.brand--np .brand__tag { color: var(--green); letter-spacing: 0.14em; }

.neo-card { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--out); padding: 22px; }

.neo-card--sm { box-shadow: var(--out-sm); border-radius: 20px; padding: 16px; }

.neo-inset { background: var(--bg); border-radius: var(--r-btn); box-shadow: var(--in-sm); padding: 14px 16px; }

.neo-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 14px 22px; background: var(--panel); border-radius: var(--r-btn); box-shadow: var(--out-sm); font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--brand); transition: box-shadow .15s var(--ease), transform .15s var(--ease); }

.neo-btn:active, .neo-btn.is-pressed { box-shadow: var(--in-sm); transform: scale(0.99); }

.neo-btn--primary { background: linear-gradient(145deg, #A4D62D, #8CB524); color: #000033; box-shadow: 6px 6px 14px rgba(140,181,36,.35), -5px -5px 12px var(--sh-light); }

.neo-btn--primary:active { box-shadow: rgba(80, 110, 15, 0.5) 4px 4px 10px inset; }

.neo-btn--green { background: linear-gradient(145deg, rgb(51, 194, 88), rgb(34, 163, 68)); color: rgb(255, 255, 255); box-shadow: 6px 6px 14px rgba(30,143,58,.35), -5px -5px 12px var(--sh-light); }

.neo-btn--green:active { box-shadow: rgba(18, 100, 40, 0.5) 4px 4px 10px inset; }

.neo-btn--blue { background: linear-gradient(145deg, #0000A0, #000066); color: rgb(255, 255, 255); box-shadow: 6px 6px 14px rgba(0,0,160,.35), -5px -5px 12px var(--sh-light); }

.neo-btn--blue:active { box-shadow: rgba(0, 0, 60, 0.55) 4px 4px 10px inset; }

.neo-btn--xl { min-height: 68px; font-size: 19px; border-radius: 22px; }

.neo-btn[disabled], .neo-btn.is-disabled { color: var(--ink-faint); background: var(--bg-deep); box-shadow: var(--in-sm); cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--r-chip); background: var(--panel); box-shadow: var(--out-xs); font-size: 13px; font-weight: 700; color: var(--ink-soft); }

.chip--in { box-shadow: var(--in-sm); background: var(--bg); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-chip); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: var(--in-sm); }

.badge--pend { color: var(--accent-deep); background: rgb(238, 245, 218); }

.badge--ok { color: var(--green-deep); background: rgb(220, 238, 223); }

.badge--wait { color: var(--brand); background: rgb(221, 229, 244); }

.badge--off { color: var(--danger); background: var(--danger-bg); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentcolor; flex: 0 0 auto; }

.dot--pulse { animation: 1.6s ease 0s infinite normal none running pulse; }

@keyframes pulse { 
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field__label { font-size: 14px; font-weight: 800; color: var(--ink); }

.field__hint { font-size: 12.5px; color: var(--ink-soft); }

.field .neo-inset { display: flex; align-items: center; gap: 10px; }

.field .neo-inset svg { flex: 0 0 auto; color: var(--ink-faint); }

select { appearance: none; }

.check { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }

.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.check__box { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; background: var(--bg); box-shadow: var(--in-sm); display: grid; place-items: center; color: transparent; transition: color .15s var(--ease); }

.check input:checked + .check__box { color: var(--green); box-shadow: var(--out-xs); background: var(--panel); }

.check input:focus-visible + .check__box { outline: 3px solid var(--accent); outline-offset: 2px; }

.check__text { font-size: 14px; color: var(--ink-soft); font-weight: 600; }

.seg { display: flex; gap: 6px; padding: 6px; border-radius: var(--r-chip); background: var(--bg); box-shadow: var(--in-sm); }

.seg__btn { flex: 1 1 0%; padding: 10px 8px; border-radius: var(--r-chip); font-family: var(--f-display); font-weight: 700; font-size: 14.5px; color: var(--ink-soft); }

.seg__btn.is-active { background: var(--panel); box-shadow: var(--out-xs); color: var(--brand); }

.tx { display: flex; align-items: center; gap: 14px; background: var(--panel); border-radius: 20px; box-shadow: var(--out-sm); padding: 16px; }

.tx__icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; background: var(--bg); box-shadow: var(--in-sm); display: grid; place-items: center; color: var(--brand); }

.tx__body { flex: 1 1 0%; min-width: 0px; }

.tx__title { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tx__meta { font-size: 12.5px; color: var(--ink-soft); }

.tx__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.tx__amount { font-family: var(--f-display); font-weight: 800; color: var(--brand); }

.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: min(400px, 100% - 28px); display: flex; justify-content: space-around; align-items: center; padding: 10px 8px; border-radius: 26px; background: var(--panel); box-shadow: var(--out); z-index: 50; }

.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 14px; border-radius: 18px; font-size: 11px; font-weight: 800; color: var(--ink-faint); }

.bottom-nav a svg { width: 22px; height: 22px; }

.bottom-nav a.is-active { color: var(--accent-deep); box-shadow: var(--in-sm); background: var(--bg); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }

.page-head h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 6vw, 30px); line-height: 1.05; color: var(--brand); }

.page-head h1 em { font-style: normal; color: var(--accent); }

.icon-btn { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 16px; background: var(--panel); box-shadow: var(--out-sm); display: grid; place-items: center; color: var(--brand); }

.icon-btn:active { box-shadow: var(--in-sm); }

.section-title { font-family: var(--f-display); font-weight: 800; font-size: 16px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; margin: 22px 0px 12px; }

.section-title small { font-size: 12px; color: var(--ink-faint); font-family: var(--f-body); font-weight: 700; }

.stack { display: flex; flex-direction: column; gap: 14px; }

.row { display: flex; align-items: center; gap: 10px; }

.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.muted { color: var(--ink-soft); }

.small { font-size: 13px; }

.tab-rail { display: flex; gap: 10px; padding: 8px; border-radius: 22px; background: var(--bg); box-shadow: var(--in-sm); overflow-x: auto; }

.tab-rail__btn { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 12px 20px; border-radius: 16px; font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--ink-soft); white-space: nowrap; }

.tab-rail__btn.is-active { background: var(--panel); box-shadow: var(--out-xs); color: var(--brand); }

.tab-rail__btn .badge { padding: 2px 9px; font-size: 11px; }

.tab-panel { display: none; }

.tab-panel.is-active { display: block; animation: fadein .3s var(--ease); }

@keyframes fadein { 
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}

.desk-grid { display: grid; gap: 18px; }

@media (min-width: 720px) {
  .desk-grid--2 { grid-template-columns: 1.4fr 1fr; }
  .desk-grid--cards { grid-template-columns: repeat(3, 1fr); }
}

.counter-list { display: flex; flex-direction: column; gap: 12px; }

.counter-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; background: var(--panel); border-radius: 18px; box-shadow: var(--out-sm); padding: 14px 18px; }

.counter-row__code { font-family: var(--f-display); font-weight: 800; font-size: 17px; color: var(--brand); background: var(--bg); box-shadow: var(--in-sm); border-radius: 12px; padding: 8px 12px; }

@media (max-width: 700px) {
  .counter-row { grid-template-columns: auto 1fr; }
  .counter-row__end { grid-column: 2; justify-self: end; }
}

.stat { background: var(--panel); border-radius: 20px; box-shadow: var(--out-sm); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }

.stat b { font-family: var(--f-display); font-size: 26px; font-weight: 800; color: var(--brand); line-height: 1; }

.stat span { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }

.stat--accent b { color: var(--accent-deep); }

.stat--green b { color: var(--green-deep); }

.stat--danger b { color: var(--danger); }

.alert-banner { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(145deg, rgb(224, 69, 69), rgb(194, 47, 47)); color: rgb(255, 255, 255); border-radius: 20px; padding: 18px 20px; box-shadow: 7px 7px 16px rgba(194,47,47,.35), -5px -5px 12px var(--sh-light); }

.alert-banner svg { flex: 0 0 auto; margin-top: 2px; }

.alert-banner b { font-family: var(--f-display); font-size: 16px; display: block; }

.alert-banner p { font-size: 13.5px; opacity: 0.92; }

.meter { height: 18px; border-radius: var(--r-chip); background: var(--bg); box-shadow: var(--in-sm); overflow: hidden; position: relative; }

.meter__fill { height: 100%; border-radius: var(--r-chip); background: linear-gradient(90deg, var(--accent), var(--danger)); }

.scan-zone { border-radius: 24px; background: var(--bg); box-shadow: var(--in); min-height: 260px; display: grid; place-items: center; text-align: center; padding: 30px; position: relative; overflow: hidden; }

.scan-zone::after { content: ""; position: absolute; left: 12%; right: 12%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--green), transparent); top: 16%; opacity: 0.75; animation: scanline 2.6s var(--ease) infinite alternate; }

@keyframes scanline { 
  0% { top: 14%; }
  100% { top: 50%; }
}

.map-frame { border-radius: 24px; box-shadow: var(--in); background: rgb(220, 228, 241); overflow: hidden; position: relative; }

.map-frame svg { width: 100%; height: auto; }

.doc-well { background: var(--bg); box-shadow: var(--in); border-radius: 20px; padding: 20px 18px; max-height: 46dvh; overflow-y: auto; font-size: 13.5px; color: var(--ink-soft); }

.doc-well h3 { font-family: var(--f-display); color: var(--ink); font-size: 14.5px; margin: 14px 0px 4px; }

.doc-well h3:first-child { margin-top: 0px; }

.doc-well p { margin-bottom: 8px; }

.link-out { display: flex; align-items: center; gap: 10px; background: var(--bg); box-shadow: var(--in-sm); border-radius: 16px; padding: 14px 16px; font-weight: 800; font-size: 14px; color: var(--brand); overflow: hidden; }

.link-out span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, rgb(42, 80, 166), rgb(22, 54, 126)); color: rgb(255, 255, 255); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 15px; box-shadow: var(--out-xs); }

.avatar--orange { background: linear-gradient(145deg, #A4D62D, #8CB524); color: #000033; }

.avatar--green { background: linear-gradient(145deg, rgb(51, 194, 88), rgb(30, 143, 58)); }

.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin: 6px 0px; }

.divider::before, .divider::after { content: ""; flex: 1 1 0%; height: 2px; border-radius: 2px; background: var(--bg-deep); box-shadow: var(--in-sm); }

@media (min-width: 760px) {
  .reg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; align-items: start; }
  .reg-form .field--full, .reg-form .neo-btn { grid-column: 1 / -1; }
  .reg-extra { max-width: 520px; margin-left: auto; margin-right: auto; }
}

.term-grid { display: flex; flex-direction: column; flex: 1 1 0%; }

@media (min-width: 900px) {
  .term-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
  .term-grid .doc-well { max-height: 62vh; }
  .term-side { position: sticky; top: 26px; margin-top: 0px !important; }
}

@media (min-width: 760px) {
  #listaActivas, #listaHistorial { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
  #listaActivas .tx, #listaHistorial .tx { min-width: 0px; }
  .cta-principal { max-width: 460px; margin-left: auto !important; margin-right: auto !important; }
}

@media (min-width: 1100px) {
  #listaActivas, #listaHistorial { grid-template-columns: repeat(3, 1fr); }
}

.crear-grid { display: flex; flex-direction: column; gap: 14px; }

.crear-col { display: flex; flex-direction: column; gap: 14px; }

@media (min-width: 900px) {
  .crear-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
  #resultado { max-width: 760px; margin-left: auto; margin-right: auto; }
}

@media (min-width: 900px) {
  .mapa-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: start; }
  .mapa-col1 { position: sticky; top: 26px; }
  .mapa-col2 .section-title { margin-top: 0px; }
}

@media (min-width: 900px) {
  .lobby-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: start; }
  .lobby-grid .section-title { margin-top: 0px; }
  .acciones { margin: 26px auto 0px; position: static !important; transform: none !important; left: auto !important; width: min(720px, 100%) !important; flex-direction: row !important; }
  .acciones .neo-btn { flex: 1 1 0%; }
  .app--lobby { padding-bottom: 60px !important; }
}

.elev-1 { box-shadow: var(--out-xs); }

.elev-2 { box-shadow: var(--out-sm); }

.elev-3 { box-shadow: var(--out); }

.elev-in { box-shadow: var(--in-sm); }

.t-1 { font-family: var(--f-display); font-weight: 800; line-height: 1.1; font-size: clamp(25px, 5.5vw, 36px); color: var(--brand); }

.t-2 { font-family: var(--f-display); font-weight: 800; line-height: 1.15; font-size: clamp(19px, 4.2vw, 26px); color: var(--brand); }

.t-3 { font-family: var(--f-display); font-weight: 700; line-height: 1.2; font-size: clamp(15px, 3.4vw, 18px); color: var(--ink); }

.tx__amount, .stat b, [data-usd], .code, .counter-row__code { font-variant-numeric: tabular-nums; }

.code { font-family: var(--f-display); font-weight: 800; letter-spacing: 0.14em; background: var(--bg); box-shadow: var(--in-sm); border-radius: 12px; padding: 8px 14px; color: var(--brand); display: inline-block; }

.brand__tag { color: var(--accent-deep); }

.edge-action { border-top: 4px solid var(--accent) !important; }

.edge-ok { border-top: 4px solid var(--green) !important; }

.edge-alert { border-top: 4px solid var(--danger) !important; }

body::after { content: ""; position: fixed; inset: 0px; pointer-events: none; z-index: 0; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }

body[data-ctx="vendedor"] { background: radial-gradient(900px 500px at 85% -10%, rgba(164,214,45,.14), transparent 60%),
    radial-gradient(700px 420px at -10% 100%, rgba(0,0,160,.10), transparent 55%),
    var(--bg); }

body[data-ctx="local"] { background: radial-gradient(900px 500px at 85% -10%, rgba(43,178,76,.13), transparent 60%),
    radial-gradient(700px 420px at -10% 100%, rgba(0,0,160,.10), transparent 55%),
    var(--bg); }

body[data-ctx="comprador"] { background: radial-gradient(900px 500px at 85% -10%, rgba(0,0,160,.13), transparent 60%),
    radial-gradient(700px 420px at -10% 100%, rgba(164,214,45,.09), transparent 55%),
    var(--bg); }

.brand__word em { position: relative; display: inline-block; }

.brand__word em::after { content: ""; position: absolute; left: -18%; right: -18%; bottom: 6%; height: 0.42em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 26' preserveAspectRatio='none'%3E%3Cpath d='M2 20 C 30 26, 70 24, 98 4' fill='none' stroke='%23A4D62D' stroke-width='5' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E") center center / 100% 100% no-repeat; pointer-events: none; }

html[data-theme="dark"] { --bg: #252C40; --bg-deep: #1D2334; --panel: #2C3450; --ink: #E8EDF9; --ink-soft: #A9B4D0; --ink-faint: #76829F; --brand: #8FB0F5; --brand-deep: #6E93E8; --sh-dark: #151A28; --sh-light: #39445F; --white: #101627; --danger-bg: #442332; }

html[data-theme="dark"] body { background: radial-gradient(900px 500px at 85% -10%, rgba(164,214,45,.10), transparent 60%),
    radial-gradient(700px 420px at -10% 100%, rgba(43,178,76,.07), transparent 55%),
    var(--bg); color: var(--ink); }

html[data-theme="dark"] body::before { opacity: 0.5; filter: invert(0.85); }

html[data-theme="dark"] .badge--pend { background: rgb(45, 60, 20); color: rgb(180, 230, 80); }

html[data-theme="dark"] .badge--ok { background: rgb(31, 58, 40); color: rgb(111, 217, 140); }

html[data-theme="dark"] .badge--wait { background: rgb(36, 50, 82); color: rgb(157, 182, 238); }

html[data-theme="dark"] .badge--off { background: rgb(70, 36, 44); color: rgb(240, 138, 138); }

html[data-theme="dark"] .doc-well, html[data-theme="dark"] p, html[data-theme="dark"] .muted { color: var(--ink-soft); }

html[data-theme="dark"] .neo-btn--primary { box-shadow: 6px 6px 14px rgba(0,0,0,.45), -5px -5px 12px var(--sh-light); }

html[data-theme="dark"] .map-frame { background: rgb(29, 35, 52); }

html[data-theme="dark"] .leaflet-tile { filter: brightness(0.75) contrast(1.05) saturate(0.85); }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(16px); opacity: 0; z-index: 120; display: flex; align-items: center; gap: 9px; background: var(--panel); box-shadow: var(--out); border-radius: 16px; padding: 13px 22px; font-family: var(--f-display); font-weight: 700; font-size: 14.5px; color: var(--brand); pointer-events: none; transition: transform .25s var(--ease), opacity .25s var(--ease); max-width: min(400px, 90vw); text-align: center; }

.toast.is-on { transform: translateX(-50%); opacity: 1; }

.toast--ok { color: var(--green-deep); }

.toast--err { color: var(--danger); }

.skel { border-radius: 20px; background: var(--bg); box-shadow: var(--in-sm); min-height: 84px; animation: 1.1s ease-in-out 0s infinite normal none running skelpulse; }

@keyframes skelpulse { 
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.stepper { display: flex; gap: 7px; margin: 0px 0px 18px; }

.stepper span { flex: 1 1 0%; display: flex; flex-direction: column; gap: 5px; align-items: center; font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }

.stepper i { width: 100%; height: 6px; border-radius: 6px; background: var(--bg); box-shadow: var(--in-sm); }

.stepper .done i { background: var(--green); box-shadow: none; }

.stepper .done { color: var(--green-deep); }

.stepper .now i { background: var(--accent); box-shadow: none; }

.stepper .now { color: var(--accent-deep); }

.timeline { list-style: none; margin-top: 6px; }

.timeline li { position: relative; padding: 0px 0px 13px 24px; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }

.timeline li::before { content: ""; position: absolute; left: 0px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--panel); box-shadow: var(--out-xs); }

.timeline li:first-child::before { background: var(--accent); }

.timeline li::after { content: ""; position: absolute; left: 4.5px; top: 17px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--bg-deep); }

.timeline li:last-child::after { display: none; }

.timeline b { display: block; color: var(--ink); font-size: 11.5px; letter-spacing: 0.06em; }

.tx--hero { border-top: 4px solid var(--accent); padding: 20px 18px; }

.tx--hero .tx__title { font-size: 17px; white-space: normal; }

.tx--hero .tx__amount { font-size: 22px; }

@media (min-width: 760px) {
  .tx--hero { grid-column: span 2; }
}

.tag-hero { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); }

.bottom-nav { overflow: hidden; }

.nav-pill { position: absolute; top: 8px; bottom: 8px; border-radius: 18px; z-index: 0; background: var(--bg); box-shadow: var(--in-sm); transition: left .28s var(--ease), width .28s var(--ease); }

.bottom-nav a { position: relative; z-index: 1; }

.bottom-nav a.is-active { box-shadow: none; background: none; }

body.compacto .counter-row { padding: 8px 14px; gap: 10px; border-radius: 14px; }

body.compacto .counter-row__code { font-size: 13.5px; padding: 5px 9px; }

body.compacto .counter-row p { font-size: 13px; }

body.compacto .counter-row .small { font-size: 11.5px; }

body.compacto .counter-list { gap: 8px; }

.sticky-title { position: sticky; top: 0px; z-index: 6; padding: 10px 0px 8px; margin-top: 0px; background: linear-gradient(var(--bg) 75%, transparent); }

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: 0.16s ease 0s 1 normal both running vt-out; }

::view-transition-new(root) { animation: 0.22s ease 0s 1 normal both running vt-in; }

@keyframes vt-out { 
  100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes vt-in { 
  0% { opacity: 0; transform: translateY(8px); }
}

.check-draw path { stroke-dasharray: 32; stroke-dashoffset: 32; animation: draw .5s var(--ease) .05s forwards; }

@keyframes draw { 
  100% { stroke-dashoffset: 0; }
}

.flip-in { animation: flip3d .65s var(--ease) both; }

@keyframes flip3d { 
  0% { transform: perspective(900px) rotateY(80deg); opacity: 0; }
  100% { transform: perspective(900px) rotateY(0deg); opacity: 1; }
}

.vacio { text-align: center; padding: 26px 18px; }

.vacio svg { margin: 0px auto 12px; opacity: 0.95; }

.vacio p { font-size: 13.5px; color: var(--ink-soft); font-weight: 700; max-width: 280px; margin: 0px auto; }

.foto-arte { border-radius: 16px; box-shadow: var(--in-sm); overflow: hidden; margin-bottom: 12px; }

.foto-arte svg { width: 100%; height: auto; display: block; }

.sello { display: grid; place-items: center; }

@media print {
  body > :not(.imprimible) { display: none !important; }
  .imprimible { display: block !important; }
}

body[data-ctx="local"] .neo-btn--primary { background: linear-gradient(145deg, rgb(51, 194, 88), rgb(34, 163, 68)); box-shadow: 6px 6px 14px rgba(30,143,58,.35), -5px -5px 12px var(--sh-light); }

body[data-ctx="local"] .neo-btn--primary:active { box-shadow: rgba(18, 100, 40, 0.5) 4px 4px 10px inset; }

body[data-ctx="local"] .stat--accent b { color: var(--green-deep); }

body[data-ctx="local"] .icon-btn, body[data-ctx="local"] .page-head h1 em { color: var(--green-deep); }

.hub-split { display: grid; gap: 26px; align-items: center; margin-bottom: 34px; }

@media (min-width: 900px) {
  .hub-split { grid-template-columns: 1.15fr 0.85fr; }
}

.phone-mock { width: min(290px, 80vw); margin: 0px auto; aspect-ratio: 9 / 18.6; border-radius: 38px; background: var(--panel); box-shadow: var(--out), inset 0 0 0 10px var(--panel); padding: 12px; position: relative; }

.phone-mock::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 86px; height: 20px; border-radius: 12px; background: var(--bg); box-shadow: var(--in-sm); z-index: 2; }

.phone-mock iframe { width: 390px; height: 806px; border: 0px; border-radius: 28px; transform-origin: left top; pointer-events: none; background: var(--bg); }

.phone-mock .mock-clip { border-radius: 28px; overflow: hidden; width: 100%; height: 100%; box-shadow: var(--in-sm); }

.brand__word { white-space: nowrap; }
.page-head { flex-wrap: wrap; }

/* ================= AUTH & DESKTOP ALIGNMENT ================= */
.auth-wrapper {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}
.auth-logo img {
    max-height: 55px;
    margin: 0 auto;
}

/* ================= GLOBAL MODAL & POPUP ENHANCEMENTS ================= */
.adm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 32, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    padding: 16px;
    overflow-y: auto;
    box-sizing: border-box;
}
.adm-overlay.is-on {
    display: flex;
    align-items: center;
    justify-content: center;
}
.adm-modal {
    background: var(--panel);
    border-radius: 24px;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 40, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 20px 24px;
    max-width: 460px;
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    text-align: left;
    margin: auto;
}
.adm-modal--wide {
    max-width: 660px;
}