:root {
  --bg: #0e0e10;
  --bg2: #16161a;
  --panel: #1d1d22;
  --panel2: #26262c;
  --line: #2c2c33;
  --text: #f2f3f5;
  --text-dim: #9a9aa5;
  --accent: #6c8cff;
  --green: #5fb878;
  --red: #ff5b6e;
  --gold: #e8b84b;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text); overscroll-behavior-y: none;
}
#app { max-width: 980px; margin: 0 auto; min-height: 100%; position: relative; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--accent); text-decoration: none; }
.hidden { display: none !important; }
input, select, textarea { font-family: inherit; }

/* Splash */
.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.splash-name { font-size: 22px; font-weight: 800; letter-spacing: .5px; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(14,14,16,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; min-width: 0; flex-shrink: 1; }
.brand .brand-ic { display: flex; flex-shrink: 0; cursor: pointer; transition: color .15s; }
.brand .brand-ic:hover { color: var(--accent); }
.brand .brand-ic svg { display: block; }
.brand .brand-tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; cursor: pointer; }
.topbar .sp { flex: 1; min-width: 8px; }
.iconbtn { width: 40px; height: 40px; border-radius: 11px; background: var(--panel); display: flex; align-items: center; justify-content: center; color: var(--text); }
.bell-badge { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg); }
.iconbtn:active { background: var(--panel2); }
.topbar .iconbtn { flex-shrink: 0; }
/* Chip de saldo en la barra (reemplaza al menú; nunca se recorta) */
.bal-chip { display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 11px; border-radius: 11px; background: var(--panel); color: var(--text); font-size: 13.5px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.bal-chip b { font-weight: 800; }
.bal-chip svg { color: var(--accent); flex-shrink: 0; }
.bal-chip:active { background: var(--panel2); }
/* Indicador de conexión (red intermitente) */
.net-bar { position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%); z-index: 90;
  margin-top: max(10px, env(safe-area-inset-top)); padding: 9px 16px; border-radius: 22px;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.45); transition: transform .32s cubic-bezier(.22,.61,.36,1); }
.net-bar.show { transform: translate(-50%, 0); }
.net-bar.ok { background: var(--green); color: #06210f; }
.net-bar .net-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: netpulse 1s infinite; }
@keyframes netpulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Search bar */
.searchbar { display: flex; align-items: center; gap: 8px; margin: 12px 16px; padding: 11px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.searchbar input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 16px; }
.searchbar .ico { color: var(--text-dim); }
.searchbar .sb-add { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; border: none; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.coins-bar { display: flex; gap: 10px; align-items: center; padding: 0 16px 4px; }
.coins-bar .btn { flex: 1; }
.coins-bar .filt-btn { flex-shrink: 0; }
/* Oferta OFICIAL de USDT, destacada y vistosa */
.usdt-card { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 16px; border-radius: 16px; cursor: pointer; text-align: left;
  background: linear-gradient(135deg, rgba(38,161,123,.22), rgba(38,161,123,.06)); border: 1.5px solid rgba(38,161,123,.55); box-shadow: 0 8px 24px rgba(38,161,123,.18); }
.usdt-card:active { transform: scale(.99); }
.usdt-card .usdt-ic { flex-shrink: 0; display: flex; }
.usdt-info { flex: 1; min-width: 0; }
.usdt-t { font-size: 17px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.usdt-tag { font-size: 11px; font-weight: 800; background: #26a17b; color: #fff; padding: 2px 8px; border-radius: 20px; }
.usdt-s { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.usdt-p { font-size: 20px; font-weight: 900; color: var(--text); text-align: right; line-height: 1; }
.usdt-p span { display: block; font-size: 11px; font-weight: 600; color: var(--text-dim); margin-top: 3px; }

/* Chips de categorías */
.chips-row { display: flex; align-items: flex-start; gap: 4px; padding-right: 12px; }
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 16px 8px; scrollbar-width: none; flex: 1; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
/* Expandida: todas visibles en varias filas, sin scroll horizontal */
.chips.wrap { flex-wrap: wrap; overflow-x: visible; }
.chip { white-space: nowrap; flex-shrink: 0; padding: 7px 13px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); color: var(--text-dim); font-size: 13px; font-weight: 600; }
.chip.active { background: var(--text); color: var(--bg); border-color: transparent; }
.chip-fav { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); border-color: rgba(108,140,255,.4); }
/* Botón para desplegar/contraer las categorías */
.chips-toggle { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--line); color: var(--text-dim); display: flex; align-items: center; justify-content: center; transition: transform .22s ease, background .15s; }
.chips-toggle.open { transform: rotate(180deg); background: var(--panel2); color: var(--text); }
.chips-toggle:active { background: var(--panel2); }

/* Grid de productos */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 8px 14px 90px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .08s; }
.card:active { transform: scale(.985); }
.card .ph { width: 100%; aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; }
.card .ph.empty { background: var(--panel); color: var(--text-dim); }
.card .body { padding: 10px 11px 12px; }
.card .t { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .loc { font-size: 11.5px; color: var(--text-dim); margin: 3px 0 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .price { font-size: 17px; font-weight: 800; }
/* Descuentos: precio original tachado + etiqueta "-X%". */
.price-old { color: var(--text-dim); text-decoration: line-through; font-weight: 600; font-size: .82em; margin-right: 5px; }
.disc-badge { display: inline-block; margin-left: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; vertical-align: middle; letter-spacing: .2px; }
.card .price .disc-badge { font-size: 10px; padding: 1px 5px; margin-left: 4px; }
.card .price .price-old { font-size: .78em; }

/* Detalle de producto */
.detail { padding-bottom: 90px; }
.detail .hero { width: 100%; aspect-ratio: 1; max-height: 420px; background: #fff; display: flex; align-items: center; justify-content: center; }
.detail .hero img { width: 100%; height: 100%; object-fit: contain; }
.detail .pad { padding: 16px; }
.detail h1 { font-size: 22px; margin: 0 0 6px; }
.detail .big-price { font-size: 26px; font-weight: 800; margin: 8px 0 14px; }
.detail .big-price .price-unit { font-size: 16px; font-weight: 600; color: var(--text-dim); }
.meta { color: var(--text-dim); font-size: 14px; line-height: 1.9; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.stat-row { display: flex; gap: 18px; color: var(--text-dim); font-size: 13.5px; margin: 4px 0 10px; }
.stat-row span { display: flex; align-items: center; gap: 5px; }

/* Floating top buttons */
.floatbar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); z-index: 5; }
.floatbar .sp { flex: 1; }
.floatbtn { width: 42px; height: 42px; border-radius: 12px; background: rgba(20,20,24,.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; color: #fff; margin-left: 8px; }

/* Tienda pública */
.store-banner { position: relative; width: 100%; height: 190px; background-size: cover; background-position: center; background-color: #14141a; }
.store-head { display: flex; align-items: center; gap: 14px; padding: 0 16px; margin-top: -36px; position: relative; }
.store-logo { width: 78px; height: 78px; border-radius: 18px; border: 3px solid var(--bg); background-size: cover; background-position: center; background-color: var(--panel); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 24px; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.store-info { padding-top: 38px; min-width: 0; }
.store-info h1 { margin: 0; font-size: 22px; }
.store-sub { color: var(--text-dim); font-size: 13.5px; margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.store-desc { padding: 12px 16px 4px; color: var(--text-dim); font-size: 14.5px; line-height: 1.5; }
.store-link { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; margin: 12px 0; }
.store-link:active { background: var(--panel); }
.sl-logo { width: 42px; height: 42px; border-radius: 11px; background-size: cover; background-position: center; background-color: var(--panel); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; }
.sl-info { flex: 1; min-width: 0; } .sl-name { font-weight: 700; font-size: 15px; } .sl-sub { font-size: 12.5px; color: var(--accent); }

/* Botones */
.btn { width: 100%; padding: 15px; border-radius: 13px; font-size: 16px; font-weight: 800; background: var(--green); color: #06210f; }
.btn:active { opacity: .9; }
.btn.block { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn.accent { background: var(--accent); color: #08122e; }
.btn:disabled { opacity: .5; }
.btn-pay { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 980px;
  padding: 14px 16px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--bg) 30%); z-index: 20; }

/* Formularios / cards */
.sheet { padding: 16px; padding-bottom: 100px; }
.box { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.box h3 { margin: 0 0 12px; font-size: 16px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.input { width: 100%; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 16px; outline: none; }
.input:focus { border-color: var(--accent); }
select.input { appearance: none; }
textarea.input { resize: vertical; min-height: 80px; }
.row2 { display: flex; gap: 10px; } .row2 > * { flex: 1; }
.err { color: var(--red); font-size: 13px; min-height: 16px; margin-top: 4px; text-align: center; }
.vtitle { padding: 6px 4px 10px; font-size: 22px; font-weight: 800; }
.back { display: flex; align-items: center; gap: 6px; color: var(--text-dim); padding: 14px 16px 2px; font-size: 14.5px; }

/* Pago: método */
.paysel { display: flex; gap: 10px; margin-bottom: 12px; }
.paysel button { flex: 1; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 13px; }
.paysel button.active { border-color: var(--accent); color: var(--accent); }
.eta-banner { display: flex; align-items: center; gap: 11px; background: rgba(95,184,120,.1); border: 1px solid rgba(95,184,120,.28); border-radius: 12px; padding: 11px 13px; margin-bottom: 12px; color: var(--text); font-size: 14px; line-height: 1.4; }
.eta-banner svg { stroke: var(--green); flex-shrink: 0; }
.eta-banner small { color: var(--text-dim); font-size: 12px; }
.summary { background: var(--panel); border-radius: 12px; padding: 12px 14px; }
.summary .sr { display: flex; justify-content: space-between; padding: 4px 0; color: var(--text-dim); font-size: 14px; }
.summary .sr.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-size: 17px; color: var(--text); font-weight: 800; }

/* Wallet */
.wallet-card { background: linear-gradient(135deg, #2a2f4a, #1a1c28); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 14px; }
.wallet-card .lbl { color: var(--text-dim); font-size: 13px; }
.wallet-card .bal { font-size: 36px; font-weight: 800; margin: 4px 0 14px; }
.wallet-card .bal small { font-size: 16px; color: var(--text-dim); font-weight: 600; }
.held-bal { font-size: 12.5px; color: var(--gold); margin: 2px 0 12px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.held-bal b { color: var(--gold); }
.held-bal span { color: var(--text-dim); font-weight: 400; }
.wallet-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 400px) { .wallet-actions { grid-template-columns: repeat(2, 1fr); } }
.wallet-actions button { padding: 11px 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12.5px; white-space: nowrap; }
.wd-calc { background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; font-size: 13.5px; color: var(--text-dim); margin: 4px 0 12px; }
/* Tarjeta exclusiva */
.card-visual { background: linear-gradient(135deg, #2a2f45, #161821); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; color: #fff; }
.card-visual.expired { opacity: .6; filter: grayscale(.4); }
.card-visual .cv-brand { font-weight: 800; letter-spacing: 1px; font-size: 15px; opacity: .9; }
.card-visual .cv-num { font-size: 19px; letter-spacing: 2px; margin: 16px 0 8px; font-variant-numeric: tabular-nums; }
.card-visual .cv-st { font-size: 12.5px; color: #b9c0d0; }
.card-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-acts button { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 12px 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.card-acts button.go { border-color: var(--green); color: var(--green); }
.card-acts button:disabled { opacity: .5; }
.dcard-frozen { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 16px; letter-spacing: 1px; color: #cfe6ff; background: rgba(20,40,70,.45); backdrop-filter: blur(2px); }
/* Tarjeta PREMIUM */
.dcard { position: relative; border-radius: 18px; padding: 18px 18px 16px; color: #fff; aspect-ratio: 1.586; overflow: hidden;
  box-shadow: 0 14px 36px rgba(0,0,0,.45); isolation: isolate; }
/* En pantallas anchas (PC) la tarjeta no debe verse gigante: tamaño de tarjeta real. */
@media (min-width: 451px) {
  .dcard { max-width: 380px; }
  .card-tiers .dcard, .card-visual { max-width: 380px; }
}
.dcard-mc { background: linear-gradient(135deg, #2b3350 0%, #1b1f30 55%, #0e1018 100%); }
.dcard-visa { background: linear-gradient(135deg, #1a3a6b 0%, #142a4d 55%, #0c1626 100%); }
.dcard.susp { filter: grayscale(.5) brightness(.85); }
.dcard-sheen { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.12), transparent 50%),
  radial-gradient(80% 60% at 100% 100%, rgba(95,184,120,.18), transparent 55%); }
.dcard-head { display: flex; justify-content: space-between; align-items: center; }
.dcard-logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; letter-spacing: .3px; }
.dcard-net { height: 30px; display: flex; align-items: center; }
.brand-mc { position: relative; display: inline-flex; width: 46px; height: 30px; }
.brand-mc i { position: absolute; top: 0; width: 30px; height: 30px; border-radius: 50%; }
.brand-mc i:first-child { left: 0; background: #eb001b; }
.brand-mc i:last-child { right: 0; background: #f79e1b; mix-blend-mode: hard-light; }
.brand-visa { font-style: italic; font-weight: 800; font-size: 24px; letter-spacing: 1px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.dcard-chip { width: 40px; height: 30px; border-radius: 7px; margin: 16px 0 12px;
  background: linear-gradient(135deg, #e6c878, #b48f3e); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; }
.dcard-chip::after { content: ""; position: absolute; inset: 6px 8px; border: 1px solid rgba(0,0,0,.25); border-radius: 3px; }
.dcard-num { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 19px; letter-spacing: 2.5px; font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.dc-eye { color: #fff; opacity: .85; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.dc-eye:active { background: rgba(255,255,255,.15); }
.dcard-foot { display: flex; gap: 18px; }
.dcard-f label { display: block; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.dcard-f div { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dcard-bal { display: flex; justify-content: space-between; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 14px; }
.dcard-bal b { font-size: 18px; color: var(--green); }
.card-mini { font-size: 12px; color: var(--text-dim); margin-top: 8px; text-align: center; }
.dcard .copyable { cursor: pointer; position: relative; }
.dcard .copyable:active { opacity: .6; }
.dcard-num .copyable, .dcard-f .copyable { text-decoration: underline dotted rgba(255,255,255,.4); text-underline-offset: 3px; }
.tx-group { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text-dim); margin: 14px 2px 6px; }
.tx-group:first-child { margin-top: 2px; }
/* Aviso para activar notificaciones */
.notif-banner { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 980px; z-index: 48;
  display: flex; align-items: center; gap: 11px; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top));
  background: var(--panel2); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: nbIn .32s cubic-bezier(.22,.61,.36,1); }
@keyframes nbIn { from { transform: translateX(-50%) translateY(-100%); } to { transform: translateX(-50%) translateY(0); } }
.notif-banner .nb-ico { color: var(--accent); flex-shrink: 0; display: flex; }
.notif-banner .nb-txt { flex: 1; min-width: 0; font-size: 13px; color: var(--text); line-height: 1.35; }
.notif-banner .nb-go { flex-shrink: 0; padding: 9px 15px; border-radius: 10px; background: var(--green); color: #06210f; font-weight: 800; font-size: 13px; }
.notif-banner .nb-x { flex-shrink: 0; color: var(--text-dim); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.card-warn { font-size: 12.5px; color: var(--gold); margin-top: 8px; text-align: center; }
.reveal-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.reveal-row span { color: var(--text-dim); font-size: 13.5px; }
.reveal-row b { font-variant-numeric: tabular-nums; letter-spacing: .5px; }
/* Selector de productos de tarjeta */
.card-tiers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.tier { text-align: left; padding: 13px 14px; border-radius: 13px; background: var(--bg2); border: 1.5px solid var(--line); color: var(--text); }
.tier.active { border-color: var(--green); background: var(--panel2); }
.tier-top { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.tier-top span { font-weight: 800; color: var(--green); }
.tier-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.acct-row { display: flex; gap: 8px; align-items: center; }
.acct-row .input { flex: 1; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tx .ti { width: 38px; height: 38px; border-radius: 10px; background: var(--panel); display: flex; align-items: center; justify-content: center; color: var(--text-dim); flex-shrink: 0; }
.tx .tb { flex: 1; min-width: 0; } .tx .tt { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tx .ts { font-size: 12px; color: var(--text-dim); }
.tx .ta { font-weight: 800; font-size: 15px; flex-shrink: 0; }
.tx .ta.pos { color: var(--green); } .tx .ta.neg { color: var(--text); }

/* Listas (monedas, pedidos) */
.lrow { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; }
.lrow .li { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex-shrink: 0; font-size: 12px; }
.coin-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; vertical-align: middle; }
.coin-logo svg { width: 100%; height: 100%; display: block; }
/* Filas de la tienda cripto: un poco más premium */
.crypto-row { background: linear-gradient(180deg, #141b2b 0%, var(--bg2) 100%); }
.lrow .lb { flex: 1; min-width: 0; } .lrow .lt { font-weight: 700; font-size: 15px; }
.lrow .ls { font-size: 12.5px; color: var(--text-dim); }
.lrow .lp { font-weight: 800; font-size: 16px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 16px; font-size: 12px; font-weight: 700; }
.badge.pendiente { background: rgba(232,184,75,.16); color: var(--gold); }
.badge.pagado, .badge.completado { background: rgba(95,184,120,.16); color: var(--green); }
.badge.cancelado { background: rgba(255,91,110,.16); color: var(--red); }

/* Menú lateral */
.drawer-ov { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 60; opacity: 0; transition: opacity .2s; }
.drawer-ov.show { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: 84%; max-width: 340px; background: var(--bg2); z-index: 61; transform: translateX(-100%); transition: transform .22s ease; display: flex; flex-direction: column; padding: 16px 14px; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 0 4px; }
.drawer-head .brand { font-size: 18px; } .drawer-head .sp { flex: 1; }
.menu-item { display: flex; align-items: center; gap: 13px; padding: 14px 14px; border-radius: 12px; background: var(--panel); margin-bottom: 9px; font-size: 15.5px; font-weight: 600; color: var(--text); }
/* Página de menú a pantalla completa (móvil): perfil anclado abajo */
.menu-page { display: flex; flex-direction: column; min-height: calc(100dvh - 150px); }
/* La campana sobra en móvil: Avisos ya está en la barra de abajo (sin repetir) */
/* La campana vive en el topbar (ya no hay pestaña Avisos en la barra inferior). */
.menu-item:active { background: var(--panel2); }
.menu-item.active { outline: 1.5px solid var(--accent); }
.menu-item .mr { margin-left: auto; color: var(--text-dim); font-size: 13px; }
.menu-spacer { flex: 1; }
.menu-wallet { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: 12px; background: var(--panel); margin-bottom: 9px; }

/* ── Sidebar fijo en PC (menú siempre visible al costado, estilo Shopify) ──────── */
#pc-sidebar { display: none; }
@media (min-width: 1000px) {
  #pc-sidebar {
    display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0;
    width: 248px; background: var(--bg2); border-right: 1px solid var(--line, rgba(255,255,255,.07));
    padding: 16px 12px; overflow-y: auto; z-index: 40;
  }
  #pc-sidebar .menu-item, #pc-sidebar .menu-wallet { cursor: pointer; }
  #app { margin-left: 248px; max-width: 1180px; }
  .topbar #tb-menu2 { display: none; }     /* en PC el menú ya está fijo: no hace falta el ☰ */
  /* El candado/marca ya está en el sidebar → quitar el duplicado de la barra superior (todas las páginas). */
  .topbar .brand .brand-ic { display: none; }
  /* El saldo ya se ve grande en el sidebar → quitar el chip pequeño de la barra superior en PC. */
  .topbar .bal-chip { display: none; }
}
/* Saldo destacado en el sidebar de PC (sustituye al chip pequeño, bien grande). */
.side-balance { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%;
  margin: 6px 0 16px; padding: 14px 16px; border-radius: 16px; cursor: pointer; text-align: left;
  background: linear-gradient(135deg, rgba(108,140,255,.18), rgba(108,140,255,.05));
  border: 1px solid rgba(108,140,255,.30); transition: border-color .15s; }
.side-balance:hover { border-color: var(--accent); }
.sb-bal-lbl { font-size: 11.5px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.sb-bal-amt { font-size: 27px; font-weight: 900; color: var(--text); letter-spacing: -.5px; line-height: 1.1; }
.menu-wallet .mw-b { font-weight: 800; font-size: 16px; } .menu-wallet .mw-u { margin-left: auto; color: var(--text-dim); font-size: 12px; }

/* Auth */
.auth-wrap { padding: 30px 18px 40px; }
.auth-logo { text-align: center; margin-bottom: 18px; }
.auth-logo .splash-name { margin-top: 8px; }
.seg { display: flex; gap: 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 5px; margin-bottom: 14px; }
.seg button { flex: 1; padding: 11px; border-radius: 10px; color: var(--text-dim); font-weight: 700; }
.seg button.active { background: var(--accent); color: #fff; }

/* FAB */
.fab { position: fixed; right: 18px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #06210f; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(95,184,120,.4); z-index: 40; }

/* Modal de login/registro (hoja clara que sube sobre el marketplace) */
.auth-ov { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 70; opacity: 0; transition: opacity .2s; }
.auth-ov.show { opacity: 1; }
.auth-sheet { position: fixed; left: 50%; transform: translateX(-50%) translateY(30px); bottom: 0; width: 100%; max-width: 560px; top: 62px;
  background: var(--bg2); color: var(--text); border-radius: 22px 22px 0 0; z-index: 71; overflow-y: auto;
  padding: 10px 20px max(24px, env(safe-area-inset-bottom)); opacity: 0; transition: opacity .22s, transform .22s; box-shadow: 0 -8px 30px rgba(0,0,0,.5); }
.auth-sheet.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.auth-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 14px; }
.auth-seg { display: flex; background: var(--panel); border-radius: 30px; padding: 5px; margin: 0 0 24px; }
.auth-seg button { flex: 1; padding: 12px; border-radius: 24px; font-weight: 700; font-size: 16px; color: var(--text-dim); }
.auth-seg button.active { background: var(--panel2); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.lf { margin-bottom: 18px; }
.lf label { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.lf .wrap { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--panel); }
.lf .wrap:focus-within { border-color: var(--accent); }
.lf .wrap .ci { color: var(--accent); display: flex; }
.lf .wrap input { flex: 1; border: none; outline: none; font-size: 16px; color: var(--text); background: none; }
.lf .wrap input::placeholder { color: var(--text-dim); }
.lf .wrap select { flex: 1; border: none; outline: none; font-size: 16px; color: var(--text); background: none; appearance: none; }
.lf .wrap select option { background: var(--panel); color: var(--text); }
.lf .wrap .eye { color: var(--text-dim); display: flex; }
.phone-row { display: flex; gap: 8px; }
.phone-row .phone-cc { flex: 0 0 auto; max-width: 158px; padding-left: 12px; padding-right: 6px; }
.phone-row .phone-cc select { font-size: 15px; cursor: pointer; }
.phone-row .phone-num { flex: 1; min-width: 0; }
@media (max-width: 360px) { .phone-row .phone-cc { max-width: 130px; } .phone-row .phone-cc select { font-size: 14px; } }
.auth-btn { width: 100%; padding: 16px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-btn:active { opacity: .9; }
.auth-title { font-size: 20px; font-weight: 800; color: var(--text); margin: 2px 0 6px; }
.auth-note { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; line-height: 1.45; }
.auth-link { text-align: center; color: var(--text-dim); font-size: 14.5px; margin-top: 16px; cursor: pointer; }
.auth-link b { color: var(--accent); font-weight: 700; }
.auth-err { color: var(--red); font-size: 13px; min-height: 16px; text-align: center; margin-top: 2px; }

/* Bottom sheet oscuro (Depositar / Transferir) */
.sheet-ov { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 70; opacity: 0; transition: opacity .2s; }
.sheet-ov.show { opacity: 1; }
.bottom-sheet { position: fixed; left: 50%; transform: translateX(-50%) translateY(30px); bottom: 0; width: 100%; max-width: 560px;
  background: var(--bg2); color: var(--text); border-radius: 22px 22px 0 0; z-index: 71; max-height: 88vh; overflow-y: auto;
  padding: 8px 20px max(24px, env(safe-area-inset-bottom)); opacity: 0; transition: opacity .22s, transform .22s; box-shadow: 0 -8px 30px rgba(0,0,0,.5); }
.bottom-sheet.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bs-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 10px; }
.bs-title { text-align: center; font-size: 22px; margin: 4px 0 16px; }
.seg-dark { display: flex; background: var(--panel); border-radius: 26px; padding: 5px; margin-bottom: 18px; }
.seg-dark button { flex: 1; padding: 11px; border-radius: 22px; font-weight: 700; color: var(--text-dim); font-size: 15px; }
.seg-dark button.active { background: var(--panel2); color: var(--text); }
.dep-method { display: flex; align-items: center; gap: 13px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.dep-method[data-sq] { border-radius: 12px; padding: 14px; margin-bottom: 10px; }
/* ── Cuadro de pago con tarjeta (Square) — diseño Desbloqueados ──────────────── */
.sq-pay-wrap { padding-bottom: 4px; }
.sq-total { background: linear-gradient(135deg, rgba(108,140,255,.16), rgba(108,140,255,.04)); border: 1px solid rgba(108,140,255,.28); border-radius: 16px; padding: 16px 18px; text-align: center; margin-bottom: 16px; }
.sq-total-lbl { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.sq-total-lbl svg { stroke: var(--accent); }
.sq-total-amt { font-size: 34px; font-weight: 900; letter-spacing: -.5px; margin-top: 4px; color: var(--text); }
/* Panel "tarjeta": marco oscuro con acento que contiene el campo blanco de Square (intencional, no "en blanco"). */
.sq-cardpanel { background: linear-gradient(160deg, #20212b, #16161b); border: 1px solid rgba(108,140,255,.22); border-radius: 16px; padding: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.sq-cardpanel-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 11px; }
.sq-chip { width: 30px; height: 22px; border-radius: 5px; flex-shrink: 0; background: linear-gradient(135deg, #f3d27a, #c79a3b); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); position: relative; }
.sq-chip::after { content: ""; position: absolute; inset: 5px 7px; border: 1px solid rgba(0,0,0,.22); border-radius: 2px; }
.sq-cardpanel-title { flex: 1; font-size: 13.5px; font-weight: 700; color: var(--text); }
.sq-brands { color: var(--text-dim); display: inline-flex; }
.sq-brands svg { stroke: var(--text-dim); }
/* Campo blanco de Square (su iframe es claro): se presenta como una franja limpia dentro del panel. */
.sq-card-box { background: #fff; border-radius: 11px; padding: 10px 12px; min-height: 52px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.sq-cards-row { display: none; }
.sq-pay-btn { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; }
.sq-pay-btn svg { stroke: currentColor; }
.sq-trust { display: flex; align-items: flex-start; gap: 8px; color: var(--text-dim); font-size: 11.5px; line-height: 1.5; margin-top: 12px; }
.sq-trust svg { stroke: var(--green); flex-shrink: 0; margin-top: 1px; }
.sq-sandbox { color: var(--gold); font-size: 11.5px; line-height: 1.5; margin-top: 8px; background: rgba(232,184,75,.1); border: 1px solid rgba(232,184,75,.25); border-radius: 10px; padding: 8px 11px; }
.dm-ico { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex-shrink: 0; }
.dm-body { flex: 1; min-width: 0; } .dm-name { font-size: 16px; } .dm-sub { color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.dm-link { width: 44px; height: 38px; border-radius: 10px; background: var(--accent); color: #08122e; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bs-info { list-style: none; padding: 0; margin: 0 0 12px; }
.bs-info li { padding: 4px 0; color: var(--text-dim); font-size: 15px; }
.bs-info li b { color: var(--text); }
.bs-note { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; margin: 0 0 18px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--panel2); color: var(--text); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.5); border: 1px solid var(--line); max-width: 90%; text-align: center; animation: toastIn .26s cubic-bezier(.34,1.56,.64,1); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.empty { text-align: center; color: var(--text-dim); padding: 40px 24px; font-size: 14.5px; line-height: 1.6; }
.loading { text-align: center; color: var(--text-dim); padding: 36px; }

/* Database — panel admin */
.db-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 16px 12px; scrollbar-width: none; }
.db-tabs::-webkit-scrollbar { display: none; }
.db-tab { position: relative; flex-shrink: 0; width: 52px; height: 48px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); color: var(--text-dim); display: flex; align-items: center; justify-content: center; transition: transform .12s, background .15s, color .15s, border-color .15s; }
.db-tab:active { transform: scale(.9); }
.tab-pending { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
/* Sub-filtros de la Database (estado / tipo de usuario) */
.db-subfilter { display: flex; gap: 7px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.db-subfilter::-webkit-scrollbar { display: none; }
.dbsf { flex: 0 0 auto; padding: 7px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: var(--text-dim); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.dbsf.on { background: var(--accent); color: #fff; border-color: transparent; }
.db-tab.active { background: var(--panel2); color: var(--text); border-color: var(--accent); }
.db-img { width: 100%; max-height: 240px; object-fit: contain; background: #fff; border-radius: 10px; margin: 4px 0 8px; cursor: pointer; display: block; }
/* Barra de mejora de foto (IA) */
.enhance-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.enhance-bar .eh-label { font-size: 12.5px; color: var(--text-dim); margin-right: 2px; }
.eh-btn { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); transition: background .15s, opacity .15s; }
.eh-btn:active { background: var(--panel); }
.eh-btn:disabled { opacity: .55; cursor: default; }
.eh-btn.eh-revert { color: var(--text-dim); }
.order-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 13px 14px; }
.order-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.order-top .oc { font-weight: 700; font-size: 15.5px; }
.order-line { font-size: 13.5px; color: var(--text-dim); padding: 1px 0; }
/* Línea de tiempo del pedido */
.otl { display: flex; align-items: flex-start; margin: 12px 2px 8px; }
.otl-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; width: 58px; }
.otl-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--panel2); border: 2px solid var(--line); color: var(--text-dim); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.otl-step.done .otl-dot { background: var(--green); border-color: var(--green); color: #06210f; }
.otl-step.active .otl-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(108,140,255,.15); }
.otl-l { font-size: 11px; color: var(--text-dim); text-align: center; line-height: 1.2; }
.otl-step.done .otl-l, .otl-step.active .otl-l { color: var(--text); font-weight: 600; }
.otl-bar { flex: 1; height: 2px; background: var(--line); margin-top: 13px; border-radius: 2px; }
.otl-bar.on { background: var(--green); }
.otl-cancel { display: flex; align-items: center; gap: 7px; margin: 10px 2px 4px; color: var(--red); font-size: 13px; font-weight: 600; }
/* Animación de reparto (doble video, bucle perfecto + póster instantáneo) — en camino */
.dlv { margin: 10px 0 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #1a1f3e; }
.dlv-frame { position: relative; width: 100%; padding-bottom: 60.2%; /* 650/1080 */
  background: #1a1f3e center/cover no-repeat; }
.dlv-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none; transition: opacity .14s linear; }
.dlv-label { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 0 9px; }
@media (prefers-reduced-motion: reduce) { .dlv-rig, .dlv-wheel, .dlv-ground, .dlv-speed { animation: none; } }
.order-line b { color: var(--text); }
.order-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.order-actions button { padding: 8px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 700; background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.order-actions button.go { background: var(--green); color: #06210f; border: none; }
.order-actions button.no { background: var(--red); color: #fff; border: none; }
/* Toggle (switch) para admin cripto */
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--panel2); border-radius: 24px; transition: .2s; cursor: pointer; }
.slider:before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider:before { transform: translateX(18px); }

/* ════════ Animaciones / fluidez ════════ */
@media (prefers-reduced-motion: no-preference) {
  /* Transición de vista: las vistas raíz suben (fade-up); el detalle/formularios
     (más "profundos") entran deslizando desde la derecha → sensación de jerarquía. */
  #app > .view, #app > .auth-wrap { animation: viewIn .2s cubic-bezier(.22,.61,.36,1) both; }
  #app > .detail, #app > .sheet { animation: pushIn .22s cubic-bezier(.22,.61,.36,1) both; }
  @keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes pushIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }

  /* Entrada escalonada de tarjetas de producto */
  .grid .card { animation: cardIn .26s cubic-bezier(.22,.61,.36,1) both; }
  .grid .card:nth-child(1){animation-delay:.01s}.grid .card:nth-child(2){animation-delay:.03s}
  .grid .card:nth-child(3){animation-delay:.05s}.grid .card:nth-child(4){animation-delay:.07s}
  .grid .card:nth-child(5){animation-delay:.09s}.grid .card:nth-child(6){animation-delay:.11s}
  .grid .card:nth-child(7){animation-delay:.13s}.grid .card:nth-child(n+8){animation-delay:.15s}
  @keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

  /* Filas de listas */
  .lrow, .tx, .dep-method, .order-card { animation: rowIn .22s cubic-bezier(.22,.61,.36,1) both; }
  @keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

  /* Imágenes aparecen suave */
  .card .ph img, .detail .hero img, .store-banner { animation: imgFade .5s ease both; }
  @keyframes imgFade { from { opacity: 0; } to { opacity: 1; } }

  /* Chips */
  .chip { transition: background .18s, color .18s, transform .12s; }
  .chip:active { transform: scale(.94); }
}

/* Micro-interacciones (siempre) */
.card, .lrow, .menu-item, .iconbtn, .btn, .coin-card, .dep-method[data-np], .store-link {
  transition: transform .12s cubic-bezier(.22,.61,.36,1), box-shadow .18s, background .18s, border-color .18s, opacity .18s;
}
.card:active { transform: translateY(1px) scale(.985); }
.lrow:active { transform: scale(.99); background: var(--panel); }
.iconbtn:active { transform: scale(.9); }
.fab { transition: transform .14s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
.fab:active { transform: scale(.88); }
.btn:active { transform: translateY(1px) scale(.99); }

/* Skeleton loaders (shimmer) */
.skel { position: relative; overflow: hidden; background: var(--bg2); border-radius: 12px; }
.skel::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transform: translateX(-100%); animation: shimmer 1.3s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skel-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.skel-card .skel-ph { width: 100%; aspect-ratio: 1; }
.skel-line { height: 12px; border-radius: 6px; margin: 10px 11px; }
.skel-line.sm { width: 55%; height: 10px; }

/* Pulso sutil del logo en el splash */
.splash svg { animation: floaty 2.6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Ripple al tocar — OJO: NO incluir .fab en position:relative (rompería su fixed). */
.card, .btn, .lrow, .iconbtn, .chip, .auth-btn, .menu-item, .cc-save, .dm-link { position: relative; }
.card, .btn, .lrow, .iconbtn, .chip, .fab, .auth-btn, .menu-item, .cc-save { overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.22); pointer-events: none; z-index: 1; animation: rippleAnim .55s ease-out forwards; }
@keyframes rippleAnim { to { transform: scale(2.6); opacity: 0; } }

/* Transición de elemento compartido (la foto vuela al detalle) */
.fly-clone { position: fixed; z-index: 300; object-fit: contain; background: #fff; pointer-events: none;
  will-change: transform, width, height, top, left; transition: left .32s cubic-bezier(.22,.61,.36,1), top .32s cubic-bezier(.22,.61,.36,1), width .32s cubic-bezier(.22,.61,.36,1), height .32s cubic-bezier(.22,.61,.36,1), border-radius .32s; }

/* Pull-to-refresh */
.ptr { height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; opacity: 0; transition: height .2s, opacity .2s; }
.ptr .spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; }
.ptr.spin .spinner { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Evitar el auto-zoom de iOS al enfocar un campo (necesita >= 16px) */
input, select, textarea, .input, .lf .wrap input, .lf .wrap select { font-size: 16px !important; }

/* Botón flotante para instalar la PWA (aparece solo si el navegador lo permite) */
.install-fab { position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 26px;
  background: var(--green); color: #06210f; font-weight: 800; font-size: 14.5px;
  box-shadow: 0 10px 28px rgba(95,184,120,.45); animation: toastIn .3s cubic-bezier(.34,1.56,.64,1); }
.install-fab:active { transform: translateX(-50%) scale(.95); }

/* ── Escritorio / PC: la app se ve como un shell centrado, no flotando en negro ── */
@media (min-width: 1000px) {
  body { background: #08080a; }
  /* Fondo decorativo sutil detrás del shell */
  body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(60vw 60vh at 12% -8%, rgba(108,140,255,.10), transparent 60%),
      radial-gradient(55vw 55vh at 95% 105%, rgba(95,184,120,.10), transparent 60%);
  }
  #app {
    background: var(--bg);
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
    box-shadow: 0 0 60px rgba(0,0,0,.55);
    min-height: 100vh;
  }
  /* La burbuja "+" es solo para móvil (en PC manda el sidebar con "Negocios") */
  .fab { display: none; }
  .topbar { left: 0; right: 0; }
  /* Cuatro columnas aprovechan mejor el ancho en monitores grandes */
  .grid { grid-template-columns: repeat(3, 1fr); padding: 12px 18px 100px; }
  /* Detalle/imagen no se estiran exageradamente */
  .detail .hero { max-height: 460px; }
  /* Hover states (solo donde hay puntero fino, evita "sticky hover" en táctil) */
  .card { transition: transform .12s ease, box-shadow .12s ease; }
  .card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
  .chip { cursor: pointer; }
  .chip:hover { color: var(--text); border-color: var(--text-dim); }
}
@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Calificaciones / estrellas ─────────────────────────────────────────────── */
.rate-row { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-dim); margin: 3px 0 1px; }
.rate-row b { color: var(--gold); }
.rate-row.none { opacity: .65; }
.stars { line-height: 0; }
.reviews { margin-top: 6px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); padding-top: 4px; }
.review { padding: 10px 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.06)); }
.review:last-child { border-bottom: none; }
.rv-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.rv-head b { font-size: 13.5px; }
.rv-body { font-size: 13.5px; color: var(--text); line-height: 1.45; margin: 4px 0 2px; }
.rv-date { font-size: 11.5px; color: var(--text-dim); }
/* Selector de estrellas en el modal */
.star-pick { display: flex; justify-content: center; gap: 6px; margin: 8px 0 4px; }
.sp-star { background: none; border: none; padding: 2px; cursor: pointer; line-height: 0; transition: transform .1s ease; }
.sp-star:active { transform: scale(.88); }
.sp-star.on { transform: scale(1.06); }
.sp-label { text-align: center; font-size: 13.5px; color: var(--gold); font-weight: 700; min-height: 18px; margin-bottom: 6px; }

/* ── Gestor Municipal ────────────────────────────────────────────────────────── */
.g-video { display: block; position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 16/9; background: #000; }
.g-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.g-video .g-play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; background: rgba(220,0,0,.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.g-video .g-vlabel { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px; color: #fff; font-weight: 800; font-size: 15px; line-height: 1.25; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.g-reqs { margin: 0; padding-left: 4px; list-style: none; counter-reset: greq; }
.g-reqs li { counter-increment: greq; position: relative; padding: 7px 0 7px 34px; font-size: 14px; line-height: 1.4; border-bottom: 1px solid var(--line, rgba(255,255,255,.06)); }
.g-reqs li:last-child { border-bottom: none; }
.g-reqs li::before { content: counter(greq); position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
/* Postulaciones en admin */
.g-app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 8px 0 2px; }
.g-app-grid > div { display: flex; flex-direction: column; }
.g-app-grid b { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .3px; }
.g-app-grid span { font-size: 13.5px; color: var(--text); }

/* ── Vista previa de imagen (publicar/editar) ─────────────────────────────────── */
.img-prev { width: 100%; aspect-ratio: 4/3; border-radius: 12px; background: #fff; overflow: hidden; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line, rgba(255,255,255,.08)); }
.img-prev img { width: 100%; height: 100%; object-fit: contain; }
.img-prev .img-prev-empty { color: #9aa; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* ── Estadísticas / gráficas ──────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat-card { background: var(--card, #16171c); border: 1px solid var(--line, rgba(255,255,255,.07)); border-radius: 14px; padding: 14px; }
.sc-val { font-size: 22px; font-weight: 800; color: var(--text); }
.sc-lbl { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.sc-sub { font-size: 11.5px; color: var(--green); margin-top: 2px; }
.chart-box { background: var(--card, #16171c); border: 1px solid var(--line, rgba(255,255,255,.07)); border-radius: 14px; padding: 14px 12px 10px; }
.chart-title { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.bar-chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; }
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; min-height: 2px; background: linear-gradient(180deg, var(--accent), #4a5cc4); border-radius: 3px 3px 0 0; transition: height .3s ease; }
.bar-labels { display: flex; gap: 2px; margin-top: 5px; }
.bar-labels span { flex: 1; font-size: 9.5px; color: var(--text-dim); text-align: center; white-space: nowrap; overflow: hidden; }

/* ── Pestañas de la billetera (Desbloqueados / Tarjeta) ───────────────────────── */
.wallet-tabs { display: flex; gap: 6px; background: var(--card, #16171c); border: 1px solid var(--line, rgba(255,255,255,.07)); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.wtab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border: none; background: transparent; color: var(--text-dim); font-size: 14px; font-weight: 700; border-radius: 9px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.wtab.active { background: var(--accent); color: #fff; }
.wtab svg { vertical-align: middle; }

/* ── Lista deslizable (movimientos/transacciones): muestra ~5 y hace scroll DENTRO ──── */
.list-scroll { max-height: min(360px, 50vh); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.list-scroll::-webkit-scrollbar { width: 6px; }
.list-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.list-scroll::-webkit-scrollbar-track { background: transparent; }

/* ── Notificaciones (clickeables, no leídas resaltadas) ──────────────────────── */
.notif-row { cursor: pointer; transition: background .12s ease; align-items: center; }
.notif-row:active { background: rgba(255,255,255,.04); }
.notif-row.unread { background: rgba(108,140,255,.08); border-radius: 10px; }
.notif-row.unread .ti { color: var(--accent); }
.notif-go { color: var(--text-dim); display: flex; align-items: center; padding-left: 4px; }

/* ── Formulario de producto estilo Shopify ───────────────────────────────────── */
.pf .pf-card { margin-bottom: 14px; }
.pf .pf-card h3 { margin: 0 0 12px; font-size: 15px; }
.pf-desc { min-height: 120px; resize: vertical; line-height: 1.5; }
.pf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.pf-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line, rgba(255,255,255,.08)); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-main { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 10.5px; text-align: center; padding: 2px; font-weight: 700; }
.pf-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pf-add { aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed var(--line, rgba(255,255,255,.18)); background: transparent; color: var(--text-dim); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-size: 11.5px; }
.pf-add:active { background: rgba(255,255,255,.04); }
.pf-var { background: rgba(255,255,255,.03); border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 12px; padding: 10px; margin-bottom: 12px; }
.pf-var-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.pf-var-head .pf-vname { flex: 1; }
.pf-var .pf-del { position: static; width: 30px; height: 30px; flex-shrink: 0; }
.pf-vvlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.pf-vv { display: grid; grid-template-columns: 46px 1fr 92px auto; gap: 7px; align-items: center; }
.pf-vv-photo { width: 46px; height: 46px; border-radius: 10px; border: 1.5px dashed var(--line, rgba(255,255,255,.2)); background: rgba(255,255,255,.03); color: var(--text-dim); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; padding: 0; }
.pf-vv-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-vv .input { padding: 9px 10px; }
.pf-addval { width: 100%; font-size: 13px; padding: 9px; }

/* Galería de fotos en el detalle del producto + selectores de variantes */
.gal-thumbs { display: flex; gap: 8px; padding: 10px 16px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gal-t { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; padding: 0; cursor: pointer; }
.gal-t.active { border-color: var(--accent); }
.gal-t img { width: 100%; height: 100%; object-fit: cover; }
.pv-variants { margin: 6px 0 14px; }
.pv-opt { margin-bottom: 10px; }
.pv-name { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.pv-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-val { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line, rgba(255,255,255,.14)); background: transparent; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.pv-val.active { border-color: var(--accent); background: rgba(108,140,255,.15); color: #fff; }
.pv-val.has-img { padding: 5px 12px 5px 5px; }
.pv-thumb { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; }
.pv-price { color: var(--accent); font-weight: 800; font-size: 13px; }
.pv-pick { color: var(--text); font-weight: 700; }
/* Swatches de imagen estilo Temu/Shopify: el cliente toca y cambia foto + precio */
.pv-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.pv-sw { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; padding: 5px; border-radius: 13px; border: 2px solid var(--line, rgba(255,255,255,.14)); background: transparent; color: var(--text); cursor: pointer; }
.pv-sw img, .pv-sw-noimg { width: 62px; height: 62px; border-radius: 9px; object-fit: cover; }
.pv-sw-noimg { display: flex; align-items: center; justify-content: center; background: var(--panel2, rgba(255,255,255,.06)); color: var(--text-dim); font-weight: 800; }
.pv-sw-l { font-size: 12px; font-weight: 600; max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-sw .pv-price { font-size: 12px; }
.pv-sw.active { border-color: var(--accent); background: rgba(108,140,255,.12); }

/* ════════════════════════════════════════════════════════════════════════════
   MEJORAS PRO (build 75) — navegación inferior, saludo, toasts, micro-interacciones
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Barra de navegación inferior (app nativa) ─────────────────────────────── */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; justify-content: space-around; align-items: flex-end;
  padding: 6px 6px max(6px, env(safe-area-inset-bottom));
  background: rgba(18,18,22,.82); backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid rgba(255,255,255,.07);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 2px 5px; color: var(--text-dim); font-size: 10.5px; font-weight: 600;
  position: relative; transition: color .15s ease;
}
.tab .tab-ic { position: relative; display: flex; align-items: center; justify-content: center; transition: transform .18s cubic-bezier(.34,1.56,.64,1); }
.tab.active { color: var(--accent); }
.tab.active .tab-ic { transform: translateY(-2px); }
.tab:active .tab-ic { transform: scale(.86); }
.tab.center .tab-ic {
  width: 50px; height: 50px; margin-top: -18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #4a5cc4); color: #fff;
  box-shadow: 0 8px 22px rgba(108,140,255,.5); border: 3px solid var(--bg);
}
.tab.center.active .tab-ic { transform: translateY(-2px) scale(1.03); }
.tab-dot { position: absolute; top: -2px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
/* deja espacio para que la barra no tape el contenido */
#app { padding-bottom: 78px; }
/* la barra se esconde cuando hay algo modal encima (checkout, hojas, menú, login) */
body:has(.btn-pay) #tabbar,
body:has(.bottom-sheet.show) #tabbar,
body:has(.drawer.show) #tabbar,
body:has(.auth-sheet) #tabbar,
body:has(.modal-ov) #tabbar { transform: translateY(120%); }
/* en PC manda el sidebar: no hay barra inferior */
@media (min-width: 1000px) { #tabbar { display: none; } #app { padding-bottom: 0; } }
/* En PC el menú lateral ya tiene Database → se oculta el acceso duplicado del perfil */
@media (min-width: 1000px) { .pf-mobile-only { display: none; } }

/* ── Saludo personalizado en el inicio ─────────────────────────────────────── */
.greet-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; animation: viewIn .4s ease; }
.greet-row .greet { flex: 1; min-width: 0; animation: none; }
.greet-row .filt-btn { flex-shrink: 0; margin: 14px 16px 0 0; }
.greet { padding: 14px 16px 2px; font-size: 20px; font-weight: 800; line-height: 1.2; animation: viewIn .4s ease; }
.greet b { color: var(--accent); }
.greet span { display: block; font-size: 13px; font-weight: 500; color: var(--text-dim); margin-top: 3px; }

/* ── Toast con animación de entrada/salida e iconos de estado ──────────────── */
.toast { display: flex; align-items: center; gap: 8px; animation: none;
  opacity: 0; transform: translateX(-50%) translateY(16px);
  transition: opacity .26s ease, transform .26s cubic-bezier(.34,1.56,.64,1); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-ic { display: flex; align-items: center; }
.toast-ok { border-color: var(--green); } .toast-ok .toast-ic { color: var(--green); }
.toast-error { border-color: var(--red); } .toast-error .toast-ic { color: var(--red); }

/* ── Micro-interacciones (sensación premium) ───────────────────────────────── */
.btn, .card, .lrow, .menu-item, .iconbtn, .floatbtn { transition: transform .12s cubic-bezier(.34,1.56,.64,1), box-shadow .15s ease, filter .15s ease; }
.btn:active { transform: scale(.97); }
.card:active { transform: scale(.985); }
.lrow:active { transform: scale(.99); }
.btn.accent { background-image: linear-gradient(135deg, var(--accent), #4a5cc4); box-shadow: 0 6px 18px rgba(108,140,255,.28); }
.btn.accent:active { box-shadow: 0 3px 10px rgba(108,140,255,.35); }
.searchbar { transition: box-shadow .2s ease, border-color .2s ease; }
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,140,255,.15); }
.chip { transition: background .15s ease, color .15s ease, transform .12s ease; }
.chip:active { transform: scale(.94); }
.chip.active { background: linear-gradient(135deg, var(--accent), #4a5cc4); color: #fff; border-color: transparent; }

/* ── Tarjeta de billetera con brillo premium ───────────────────────────────── */
.wallet-card { position: relative; overflow: hidden; background-image: linear-gradient(135deg, #23314f 0%, #1a1d2e 60%, #14151f 100%); }
.wallet-card::before { content: ""; position: absolute; top: -60%; right: -20%; width: 70%; height: 200%;
  background: radial-gradient(circle, rgba(108,140,255,.22), transparent 70%); pointer-events: none; }
.bal { position: relative; }

/* ════════ MEJORAS PRO 2 (build 76): favoritos, confetti, lightbox, badge ════════ */

/* Confetti */
.confetti-cv { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }

/* Corazón de favorito en las cards */
.card .ph { position: relative; }
.card-fav { position: absolute; top: 7px; right: 7px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.42); backdrop-filter: blur(4px); color: #fff; display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: transform .15s ease, background .15s ease; z-index: 2; }
.card-fav svg { fill: none; }
.card-fav.on { background: rgba(255,91,110,.92); }
.card-fav.on svg { fill: #fff; }
.card-fav.pop { animation: favPop .32s cubic-bezier(.34,1.8,.5,1); }
@keyframes favPop { 0%{transform:scale(1)} 40%{transform:scale(1.35)} 100%{transform:scale(1)} }
/* Corazón en el detalle (floatbar) */
.floatbtn.fav-on { color: var(--red); }
.floatbtn.fav-on svg { fill: var(--red); }
.floatbtn.pop { animation: favPop .32s cubic-bezier(.34,1.8,.5,1); }

/* Badge "Nuevo" */
.card-new { position: absolute; top: 7px; left: 7px; background: linear-gradient(135deg, var(--green), #3f9c5c);
  color: #06210f; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 8px; z-index: 2; letter-spacing: .3px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3); }

/* Lightbox (foto a pantalla completa) */
.lightbox { position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .22s ease; padding: 20px; }
.lightbox.show { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; transform: scale(.94); transition: transform .25s cubic-bezier(.22,.61,.36,1); }
.lightbox.show img { transform: scale(1); }
.lb-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; }
.hero img { cursor: zoom-in; }

/* ════════ NIVEL MAGISTRAL (build 77): vendedor, destacados, filtros ════════ */

/* Enlace al vendedor */
.seller-link { color: var(--accent); font-weight: 600; cursor: pointer; }
.seller-link svg { vertical-align: -1px; }

/* Perfil de vendedor */
.seller-hero { text-align: center; padding: 22px 16px 6px; }
.seller-av { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.seller-name { font-size: 21px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.seller-sub { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.badge-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; }
.badge-pill.gestor { background: rgba(95,184,120,.18); color: var(--green); }
.badge-pill.top { background: rgba(232,184,75,.18); color: var(--gold); }
.seller-stats { display: flex; gap: 10px; padding: 14px 16px; }
.seller-stats .ss { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 6px; text-align: center; }
.seller-stats .ssv { font-size: 20px; font-weight: 800; }
.seller-stats .ssl { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }

/* Carrusel de destacados en la home */
.feat-head { display: flex; align-items: center; gap: 7px; padding: 6px 16px 8px; font-size: 16px; font-weight: 800; }
.feat-head .fh-spark { color: var(--gold); }
.feat-rail { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.feat-rail::-webkit-scrollbar { display: none; }
.feat-card { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 16/10; background: #1a1a20; box-shadow: 0 10px 28px rgba(0,0,0,.4); cursor: pointer; }
.feat-card img { width: 100%; height: 100%; object-fit: cover; }
.feat-card .fc-grad { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.85)); }
.feat-card .fc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; }
.feat-card .fc-title { color: #fff; font-weight: 800; font-size: 16px; line-height: 1.2; margin-bottom: 4px; }
.feat-card .fc-price { color: #fff; font-weight: 900; font-size: 18px; }
.feat-card .fc-badge { position: absolute; top: 10px; left: 10px; background: rgba(232,184,75,.95); color: #2a1e00; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 8px; }

/* Botón y panel de filtros */
.filt-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; background: var(--panel);
  border: 1px solid var(--line); color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.filt-btn.active { border-color: var(--accent); color: var(--accent); }
.filt-btn .fb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sort-opt { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.sort-opt:last-child { border-bottom: none; }
.sort-opt.on { color: var(--accent); font-weight: 700; }

/* ════════ Fix Database (build 78): la lista llena la pantalla, sin espacio vacío ════════ */
.db-scroll { max-height: calc(100dvh - 348px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.db-scroll.multi { max-height: 42vh; }        /* varias secciones a la vez → cada una más baja */
.db-scroll::-webkit-scrollbar { width: 6px; }
.db-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.db-scroll::-webkit-scrollbar-track { background: transparent; }
@media (min-width: 1000px) { .db-scroll { max-height: calc(100dvh - 270px); } }  /* PC: sin tab bar */

/* ════════ Database: tarjeta de usuario + modificador (build 81) ════════ */
.user-card .uc-tag { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 3px 10px; border-radius: 8px; text-transform: capitalize; margin-bottom: 8px; }
.uc-tag.creador { background: rgba(232,184,75,.18); color: var(--gold); }
.uc-tag.admin { background: rgba(108,140,255,.18); color: var(--accent); }
.uc-tag.gestor { background: rgba(95,184,120,.18); color: var(--green); }
.uc-name { font-size: 16.5px; font-weight: 800; }
.uc-meta { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; line-height: 1.45; }
.uc-bal { font-size: 20px; font-weight: 800; margin-top: 9px; }
.uc-bal span { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.uc-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.uc-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .12s; }
.uc-btn.wa { background: rgba(95,184,120,.15); color: var(--green); border-color: transparent; }
.uc-btn:active { transform: scale(.95); }
.uw-bal { display: flex; align-items: center; justify-content: space-between; background: var(--panel); border-radius: 12px; padding: 14px 16px; }
.uw-bal span { color: var(--text-dim); font-size: 13px; }
.uw-bal b { font-size: 22px; font-weight: 800; }

/* ════════ Perfil: avatar + foto (build 83) ════════ */
.pr-avatar-wrap { text-align: center; padding: 8px 0 18px; }
.pr-avatar { position: relative; width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 800; color: #fff; background-size: cover; background-position: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.pr-cam { position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid var(--bg); }
.pr-avatar-name { font-size: 18px; font-weight: 800; }
.pr-photo-btn { margin-top: 8px; padding: 7px 16px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; }

/* ════════ Pedidos en billetera: detalle + liberar/cancelar (build 86) ════════ */
.od-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.od-row:last-of-type { border-bottom: none; }
.od-row span { color: var(--text-dim); }
.od-row b { text-align: right; }
.od-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text); margin: 6px 2px 4px; cursor: pointer; }
.od-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.ord-st { text-transform: capitalize; }
.ord-st.pendiente { color: var(--gold); }
.ord-st.completado { color: var(--green); }
.ord-st.cancelado { color: var(--red); }

/* ════════ Billetera en 2 columnas en PC (en móvil apilado) (build 87) ════════ */
@media (min-width: 1000px) {
  .w-cols { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
  .w-cols .wallet-card { margin-bottom: 0; }
  .w-cols .w-left { position: sticky; top: 80px; }
  .w-cols .db-card-wrap, .w-cols .dcard { max-width: 360px; }
  .w-cols .list-scroll { max-height: calc(100dvh - 220px); }
}

/* ════════ Info de la tarjeta en filas (no se rompe) (build 88) ════════ */
.card-info { margin: 10px 0 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.card-info .ci { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.card-info .ci:last-child { border-bottom: none; }
.card-info .ci label { color: var(--text-dim); }
.card-info .ci span { font-weight: 700; text-align: right; }
/* Popup de información de la tarjeta: filas copiables y dirección por campos */
.ci-group { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.ci-section { color: var(--text-dim); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin: 16px 2px 8px; }
.ci-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--text-dim); transition: background .12s; }
.ci-copy:last-child { border-bottom: none; }
.ci-copy:active { background: var(--panel); }
.ci-copy-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-copy-t label { color: var(--text-dim); font-size: 12px; }
.ci-copy-t span { color: var(--text); font-weight: 700; font-size: 14.5px; word-break: break-word; }
.ci-copy svg { flex-shrink: 0; opacity: .7; }
/* PIN de seguridad */
.pin-setup { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 12px 14px; margin: 4px 0 12px; font-size: 13px; color: var(--text-dim); }
.pin-setup b { color: var(--text); }
.pin-setup .btn { padding: 11px; font-size: 14px; }
.pf-sec-title { display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin: 18px 2px 10px; }
.pf-sec-tag { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-dim); background: var(--panel2); padding: 2px 8px; border-radius: 10px; }
.box-h { display: flex; align-items: center; gap: 8px; }
.hcount { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--panel); color: var(--text-dim); font-size: 12px; font-weight: 700; }
/* Botón y guía para agregar la tarjeta a Apple/Google Pay */
.card-wallet-btn { margin: 12px 0 0; background: transparent; border: 1.5px solid var(--accent); color: var(--accent); font-size: 14px; padding: 13px; }
.wallet-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.wallet-steps li { color: var(--text); font-size: 13.5px; line-height: 1.55; }
.wallet-steps li::marker { color: var(--accent); font-weight: 800; }

/* ── QR / Recibir / Escanear / Animación de envío ─────────────────────────── */
.wallet-actions button { font-size: 12.5px; padding: 11px 4px; }
.qr-load { padding: 40px; text-align: center; color: var(--text-dim); }
.qr-card { display: flex; justify-content: center; margin: 6px 0 14px; }
.qr-frame { background: #fff; padding: 15px; border-radius: 18px; width: 196px; height: 196px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.qr-frame .qrsvg { width: 100%; height: 100%; display: block; }
.qr-acct { text-align: center; margin-bottom: 14px; }
.qr-acct-lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 5px; }
.qr-acct-no { font-size: 20px; font-weight: 800; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.qr-acts { display: flex; gap: 10px; }
.qr-acts .btn { flex: 1; }
.tr-name { min-height: 18px; margin: -6px 0 10px; font-size: 13.5px; font-weight: 600; }
.tr-name.ok { color: var(--green); }
.tr-name.bad { color: var(--red); }

.scan-wrap { position: relative; width: 100%; aspect-ratio: 1; max-width: 320px; margin: 0 auto 12px; border-radius: 18px; overflow: hidden; background: #000; }
.scan-wrap video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 17%; border: 2px solid rgba(255,255,255,.85); border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
.scan-frame::before { content: ""; position: absolute; left: -2px; right: -2px; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: scanline 2.2s ease-in-out infinite; }
.scan-hint { text-align: center; color: var(--text-dim); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }
@keyframes scanline { 0%,100% { top: 0; } 50% { top: calc(100% - 2px); } }

.sendfx { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(20,18,26,.93), rgba(8,8,10,.97)); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  animation: sfxout .45s 2.15s forwards; }
.sendfx-stage { position: relative; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
.sfx-coin { position: absolute; width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #8aa2ff, #4a5cc4); box-shadow: 0 14px 36px rgba(108,140,255,.65); animation: sfxcoin 1.15s cubic-bezier(.3,.7,.25,1) forwards; }
.sfx-coin svg { stroke: #0a0e1f; }
@keyframes sfxcoin { 0% { transform: translateY(150px) scale(.5) rotate(-20deg); opacity: 0; } 22% { opacity: 1; } 68% { transform: translateY(0) scale(1) rotate(6deg); opacity: 1; } 100% { transform: translateY(-8px) scale(.18); opacity: 0; } }
.sfx-ring { position: absolute; width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; animation: sfxring .9s 1s ease-out forwards; }
.sfx-ring.r2 { animation-delay: 1.18s; border-color: var(--green); }
@keyframes sfxring { 0% { opacity: .7; transform: scale(.45); } 100% { opacity: 0; transform: scale(3); } }
.sfx-check { position: absolute; width: 90px; height: 90px; border-radius: 50%; background: rgba(95,184,120,.16); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.4); animation: sfxcheck .5s 1.08s cubic-bezier(.2,1.6,.4,1) forwards; }
.sfx-check svg { width: 46px; height: 46px; stroke: var(--green); stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: sfxdraw .45s 1.3s forwards; }
@keyframes sfxcheck { to { opacity: 1; transform: scale(1); } }
@keyframes sfxdraw { to { stroke-dashoffset: 0; } }
.sfx-msg { position: absolute; bottom: -64px; width: 280px; text-align: center; font-size: 17px; color: var(--text); opacity: 0; animation: sfxmsg .5s 1.55s forwards; }
.sfx-msg b { color: var(--accent); }
@keyframes sfxmsg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sfxout { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .scan-frame::before, .sfx-coin, .sfx-ring, .sfx-check, .sfx-check svg, .sfx-msg, .sendfx { animation: none !important; }
}

/* ── Chat embebido (Grupos y soporte dentro de Desbloqueados) ─────────────── */
.chat-embed { position: fixed; left: 0; right: 0; top: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 30; background: var(--bg); animation: none; }
.chat-embed #chat-frame { width: 100%; height: 100%; border: 0; display: block; }
.chat-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); z-index: 1; }
@media (min-width: 1000px) { .chat-embed { left: 248px; bottom: 0; } }

/* Editar negocio: preview de la foto actual */
.cb-current { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cb-current img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: #fff; flex-shrink: 0; }
.cb-current span { font-size: 12px; color: var(--text-dim); line-height: 1.3; }

/* ── Crear/editar negocio: vista previa tipo tienda real (portada + logo) ───────── */
.cb-help { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; margin: 2px 2px 12px; }
.cb-help b { color: var(--text); }
.cb-preview { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 16px; padding-bottom: 14px; }
/* Portada — RELLENA el área (cover, estilo WhatsApp): se adapta sola, sin barras. El servidor
   guarda la imagen completa, así que el recorte aquí es solo el justo para llenar. */
.cb-cover { position: relative; display: block; height: 150px; background-size: cover; background-position: center; background-color: #14141a; cursor: pointer; }
.cb-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.35)); opacity: 0; transition: opacity .2s; }
.cb-cover:hover::after { opacity: 1; }
/* Botón "Portada" / cámara en la esquina */
.cb-cam { position: absolute; display: inline-flex; align-items: center; gap: 5px; background: rgba(8,12,22,.72); color: #fff; font-weight: 700; font-size: 12px; padding: 7px 11px; border-radius: 999px; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.18); pointer-events: none; z-index: 2; }
.cb-cam svg { stroke: #fff; }
.cb-cam-cover { top: 12px; right: 12px; }
/* Cabecera con el logo superpuesto */
.cb-head { display: flex; align-items: center; gap: 14px; padding: 0 16px; margin-top: -34px; position: relative; }
.cb-logo { position: relative; width: 78px; height: 78px; border-radius: 18px; border: 3px solid var(--panel); background-size: cover; background-position: center; background-color: var(--panel); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 24px; box-shadow: 0 6px 16px rgba(0,0,0,.45); cursor: pointer; }
.cb-cam-logo { right: -4px; bottom: -4px; padding: 6px; border-radius: 50%; background: var(--accent); color: #08111f; border: 2px solid var(--panel); }
.cb-cam-logo svg { stroke: #08111f; }
.cb-head-info { padding-top: 36px; min-width: 0; }
.cb-prev-name { font-size: 21px; font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-prev-sub { display: flex; align-items: center; gap: 5px; color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.cb-prev-sub svg { stroke: var(--text-dim); }
.cb-prev-desc { padding: 12px 16px 0; color: var(--text-dim); font-size: 14px; line-height: 1.5; }
/* Cabecera del negocio (detalle): lápiz junto al nombre + botón "Ver tienda". */
.bd-name-edit { display: inline-flex; vertical-align: middle; opacity: .55; margin-left: 4px; }
.bd-name-edit svg { stroke: var(--text-dim); }
.cb-head-info[id] { cursor: pointer; }
.bd-h-act { align-self: flex-end; margin-bottom: 4px; flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: var(--panel); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.bd-h-act svg { stroke: var(--accent); }
/* Tile "+ Agregar producto" (primero en el grid de productos del negocio). */
.card.add-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 190px; border: 2px dashed var(--line); background: transparent; color: var(--text-dim); cursor: pointer; transition: border-color .15s, color .15s; }
.card.add-card:hover { border-color: var(--accent); color: var(--accent); }
.card.add-card .add-plus { display: flex; }
.card.add-card .add-plus svg { stroke: currentColor; }
.card.add-card .add-lbl { font-weight: 700; font-size: 14px; }

/* Gestor Municipal: hero tipo "oferta" (estética USDT) + CTA fuerte */
.g-hero { background: linear-gradient(160deg, rgba(108,140,255,.16), rgba(74,92,196,.05)); border: 1px solid var(--line); border-radius: 16px; padding: 24px 18px; text-align: center; margin-bottom: 14px; }
.g-hero-ic { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: rgba(108,140,255,.18); color: var(--accent); }
.g-hero-t { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.g-hero-s { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin: 7px auto 0; max-width: 360px; }
.g-cta { padding: 16px; font-size: 16px; margin-top: 8px; }

/* Publicar: cabecera de la sección Envío (título + switch a la derecha) */
.pf-ship-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pf-ship-head h3 { margin: 0; }
.pf-ship-head .switch { margin-top: 2px; }

/* ── Envío a domicilio (checkout) ─────────────────────────────────────────── */
.ship-sel { display: flex; gap: 10px; }
.ship-sel button { flex: 1; padding: 12px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; line-height: 1.25; }
.ship-sel button.active { border-color: var(--accent); color: var(--accent); }
.ship-mapwrap { position: relative; margin-top: 8px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); }
.ship-map { height: 230px; width: 100%; background: var(--panel); }
/* Pin fijo en el centro: el usuario mueve el mapa, no el pin. */
.ship-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--accent); pointer-events: none; z-index: 500; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.ship-pin svg { display: block; }
.ship-geo { position: absolute; right: 10px; bottom: 10px; z-index: 500; display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 10px; border: none; background: var(--accent); color: #08111f; font-weight: 800; font-size: 12.5px; box-shadow: 0 3px 10px rgba(0,0,0,.35); cursor: pointer; }
.ship-coords { text-align: center; color: var(--text-dim); font-size: 11.5px; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.ship-form { margin-top: 8px; }
.ship-note { display: flex; gap: 8px; align-items: flex-start; background: rgba(108,140,255,.1); border: 1px solid rgba(108,140,255,.3); border-radius: 10px; padding: 9px 11px; margin: 8px 0 2px; font-size: 13px; line-height: 1.45; color: var(--text); }
.ship-note svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════════
   ALOJAMIENTOS (Airbnb de Desbloqueados)
   ════════════════════════════════════════════════════════════════════════════ */
.stay-hero { margin: 10px 16px 0; padding: 22px 20px; border-radius: 18px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(108,140,255,.28), transparent 55%),
              radial-gradient(120% 140% at 100% 100%, rgba(232,184,75,.20), transparent 55%), var(--panel); border: 1px solid var(--line); }
.stay-hero-tx h1 { margin: 0; font-size: 25px; font-weight: 900; letter-spacing: -.5px; }
.stay-hero-tx p { margin: 6px 0 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.5; max-width: 30ch; }
.stay-search { margin: 12px 16px 0; }
.ss-row { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 13px; }
.ss-row .ico { color: var(--text-dim); }
.ss-row input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 15px; }
.ss-row2 { display: flex; gap: 10px; margin-top: 10px; }
.ss-field { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ss-field > span { font-size: 11.5px; color: var(--text-dim); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.ss-field select { width: 100%; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 14px; }
.stay-kinds { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 4px; scrollbar-width: none; }
.stay-kinds::-webkit-scrollbar { display: none; }
.sk-chip { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 20px;
  background: var(--bg2); border: 1px solid var(--line); color: var(--text-dim); font-size: 13px; font-weight: 700; cursor: pointer; }
.sk-chip svg { opacity: .8; }
.sk-chip.active { background: var(--accent); border-color: var(--accent); color: #08122e; }
.sk-chip.active svg { opacity: 1; }
.stay-quick { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 2px; scrollbar-width: none; }
.stay-quick::-webkit-scrollbar { display: none; }
.sq-link { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  background: transparent; border: 1px dashed var(--line); color: var(--text-dim); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.sq-link:active { background: var(--panel); }

.stay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 14px 16px 30px; }
@media (min-width: 720px) { .stay-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .stay-grid { grid-template-columns: repeat(4, 1fr); } }
.stay-card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0; display: flex; flex-direction: column; }
.stay-card:active { transform: scale(.98); }
.sc-img { position: relative; aspect-ratio: 1/1; background: var(--bg2); display: flex; align-items: center; justify-content: center; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; }
.sc-noimg { color: var(--text-dim); opacity: .5; }
.sc-kind { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 14px; }
.sc-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 3px; }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sc-loc { font-size: 11.5px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-rate { font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 3px; color: var(--gold); flex-shrink: 0; }
.sc-title { font-size: 14px; font-weight: 700; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.sc-meta { font-size: 11.5px; color: var(--text-dim); }
.sc-price { font-size: 13px; margin-top: 3px; } .sc-price b { font-size: 15.5px; }

/* ── Detalle ── */
.back-btn { display: inline-flex; align-items: center; gap: 5px; margin: 10px 0 0 12px; padding: 7px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.sd-gallery { margin: 12px 16px 0; }
.sd-main { aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; background: var(--bg2); }
.sd-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.sd-noimg { aspect-ratio: 16/10; border-radius: 16px; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--text-dim); opacity: .5; }
.sd-strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.sd-strip::-webkit-scrollbar { display: none; }
.sd-th { flex-shrink: 0; width: 70px; height: 70px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; }
.sd-th.active { border-color: var(--accent); }
.sd-th img { width: 100%; height: 100%; object-fit: cover; }
.sd-head { padding: 16px 16px 0; }
.sd-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; }
.sd-head h1 { margin: 6px 0 0; font-size: 22px; font-weight: 900; letter-spacing: -.4px; line-height: 1.2; }
.sd-sub { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--text-dim); font-size: 13px; }
.sd-sub span { display: inline-flex; align-items: center; gap: 4px; }
.sd-sub b { color: var(--text); }
.sd-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 16px 0; }
.spec { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 12px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.spec svg { color: var(--accent); margin-bottom: 2px; }
.spec span { font-size: 17px; font-weight: 900; }
.spec small { font-size: 10.5px; color: var(--text-dim); }
.sd-host { display: flex; align-items: center; gap: 12px; margin: 18px 16px 0; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.sh-av { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #08122e; display: flex; align-items: center; justify-content: center; font-weight: 900; overflow: hidden; flex-shrink: 0; }
.sh-av img { width: 100%; height: 100%; object-fit: cover; }
.sh-name { font-weight: 800; font-size: 14.5px; }
.sh-since { font-size: 12px; color: var(--text-dim); margin-top: 1px; }
.sd-block { margin: 22px 16px 0; }
.sd-block h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.sd-desc { color: var(--text); font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.sd-amen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.am { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text); }
.am svg { color: var(--green); flex-shrink: 0; }
.sd-map { height: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.sd-maphint { font-size: 12px; color: var(--text-dim); margin: 8px 2px 0; }
.sd-rev { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sd-rev:last-child { border-bottom: none; }
.sr-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.sd-rev p { margin: 6px 0 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.sd-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 980px; display: flex; align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(14,14,16,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 60; }
.sd-bar-price { flex: 1; } .sd-bar-price b { font-size: 19px; font-weight: 900; } .sd-bar-price small { color: var(--text-dim); font-size: 13px; }
.sd-bar-dates { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.sd-bar .btn { width: auto; min-width: 150px; padding: 14px 22px; }

/* ── Calendario ── */
.cal { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-weight: 800; font-size: 15px; text-transform: capitalize; }
.cal-nav { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cal-nav:disabled { opacity: .3; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.cal-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-dim); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-cell { aspect-ratio: 1/1; border: none; background: none; color: var(--text); font-size: 13.5px; font-weight: 600; border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cal-cell.empty { pointer-events: none; }
.cal-cell.blocked { color: var(--text-dim); opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.cal-cell.inrange { background: rgba(108,140,255,.16); border-radius: 0; }
.cal-cell.sel { background: var(--accent); color: #08122e; font-weight: 900; }
.cal-cell.sel.start { border-radius: 9px 0 0 9px; }
.cal-cell.sel.end { border-radius: 0 9px 9px 0; }
.cal-cell.sel.start.end { border-radius: 9px; }
.cal-hint { text-align: center; margin-top: 10px; font-size: 12.5px; color: var(--accent); font-weight: 700; }

/* ── Hoja de reserva ── */
.bk-stay { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.bk-img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--text-dim); flex-shrink: 0; }
.bk-img img { width: 100%; height: 100%; object-fit: cover; }
.bk-title { font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.bk-loc { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.bk-dates { display: flex; align-items: center; gap: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.bk-d { flex: 1; text-align: center; } .bk-d span { display: block; font-size: 11px; color: var(--text-dim); font-weight: 700; } .bk-d b { font-size: 14.5px; }
.bk-arrow { color: var(--text-dim); }
.bk-guests { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.bk-guests > span { display: inline-flex; align-items: center; gap: 6px; }
.bk-stepper { display: flex; align-items: center; gap: 14px; }
.bk-stepper button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 18px; cursor: pointer; }
.bk-pay { display: flex; gap: 10px; margin-bottom: 12px; }
.bkp { flex: 1; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg2); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1.4; }
.bkp small { color: var(--text-dim); font-weight: 600; }
.bkp.active { border-color: var(--accent); background: rgba(108,140,255,.12); }
.bk-sum { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.bk-sum .sr { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-dim); padding: 4px 0; }
.bk-sum .sr.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; color: var(--text); font-weight: 900; font-size: 16px; }
.bk-note { font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.5; margin: 12px 0 0; }

/* ── Viajes / reservas ── */
.trip-card { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 12px 16px 0; }
.tc-img { width: 70px; height: 70px; border-radius: 11px; overflow: hidden; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--text-dim); flex-shrink: 0; }
.tc-img img { width: 100%; height: 100%; object-fit: cover; }
.tc-body { flex: 1; min-width: 0; }
.tc-title { font-weight: 800; font-size: 14.5px; }
.tc-dates { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.tc-foot b { font-size: 15px; }
.tc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mini-btn { padding: 7px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.mini-btn.ok { background: var(--green); color: #06210f; border-color: var(--green); }
.mini-btn.bad { color: var(--red); border-color: rgba(255,91,110,.4); }

/* ── Mis alojamientos ── */
.ms-head { display: flex; gap: 10px; margin: 12px 16px 0; }
.ms-head .btn { width: auto; flex: 1; padding: 12px; font-size: 14px; }
.ms-card { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 12px 16px 0; }
.ms-img { width: 76px; height: 76px; border-radius: 11px; overflow: hidden; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--text-dim); flex-shrink: 0; position: relative; cursor: pointer; }
.ms-img img { width: 100%; height: 100%; object-fit: cover; }
.ms-hidden { position: absolute; inset: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ms-body { flex: 1; min-width: 0; }
.ms-title { font-weight: 800; font-size: 14.5px; }
.ms-meta { font-size: 12px; color: var(--text-dim); margin-top: 4px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ms-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ── Formulario de alojamiento ── */
.stay-form-sheet { padding-bottom: 40px; }
.row4 { display: flex; gap: 8px; } .row4 > * { flex: 1; }
.row4 .input { padding: 12px 8px; text-align: center; }
.amen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 4px; }
.amen-chk { display: flex; align-items: center; gap: 8px; padding: 10px 11px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; cursor: pointer; }
.amen-chk input { width: 17px; height: 17px; accent-color: var(--accent); }
.sf-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sf-ph, .sf-ex { position: relative; width: 78px; height: 78px; border-radius: 10px; overflow: hidden; background: var(--bg2); }
.sf-ph img, .sf-ex img { width: 100%; height: 100%; object-fit: cover; }
.sf-ph-x, .sf-ex-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.65); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sf-ex-main { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(108,140,255,.85); color: #08122e; font-size: 9.5px; font-weight: 800; text-align: center; padding: 2px; }
.sf-existing { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-add { display: inline-flex; align-items: center; gap: 7px; padding: 11px 16px; border-radius: 11px; border: 1.5px dashed var(--line); color: var(--text-dim); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.rv-stars { display: flex; gap: 8px; justify-content: center; margin: 6px 0 16px; }
.rv-stars button { background: none; border: none; cursor: pointer; color: var(--gold); padding: 2px; }
.rv-stars button svg { width: 34px; height: 34px; }
