/* Superficie neutral del visor (T3) · prefijo .nv- · v0.3.0
   REGLA: cero branding de tiendas concretas. Territorio neutral. */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
       background: #f1f5f9; color: #0f172a; min-height: 100vh; display: flex; flex-direction: column; }

.nv-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 14px 20px; }
.nv-header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.nv-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.nv-beta { font-size: 11px; font-weight: 700; color: #2563eb; background: #eff6ff; padding: 2px 10px; border-radius: 12px; }
.nv-sub { font-size: 13px; color: #64748b; }

.nv-main { flex: 1; max-width: 1100px; margin: 0 auto; width: 100%; padding: 18px 16px 30px; }

/* ── Canje ── */
.nv-redeem { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.nv-redeem h2 { font-size: 17px; margin-bottom: 4px; }
.nv-redeem p { font-size: 13px; color: #64748b; margin-bottom: 14px; }
.nv-redeem-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nv-redeem-form input { flex: 1; min-width: 180px; padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 15px; font-family: inherit; }
.nv-redeem-form input:focus { outline: none; border-color: #2563eb; }
#nv-code { font-family: ui-monospace, monospace; letter-spacing: 1px; text-transform: uppercase; }
.nv-btn { padding: 11px 22px; border: none; border-radius: 10px; background: linear-gradient(to bottom, #60a5fa, #2563eb); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.nv-btn:disabled { opacity: .5; cursor: wait; }
.nv-msg { margin-top: 10px; font-size: 13px; font-weight: 600; }
.nv-msg.ok { color: #16a34a; } .nv-msg.err { color: #dc2626; }

/* ── Biblioteca ── */
.nv-lib { margin-bottom: 18px; }
.nv-lib h2 { font-size: 15px; margin-bottom: 10px; color: #334155; }
.nv-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.nv-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; cursor: pointer; transition: box-shadow .15s, transform .12s; text-align: center; }
.nv-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: translateY(-2px); }
.nv-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f8fafc; border-radius: 8px; }
.nv-card-name { font-size: 13px; font-weight: 700; margin-top: 6px; }
.nv-card-shop { font-size: 11px; color: #94a3b8; }
.nv-empty { font-size: 13px; color: #94a3b8; padding: 8px 2px; }

/* ── Visor ── */
.nv-viewer-shell { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 10px 32px rgba(0,0,0,.08); background: #fff; display: none; }
.nv-viewer-shell.visible { display: block; }
.nv-viewer-shell .viewer-container { height: min(70vh, 620px); }

/* ── Footer de logos (las tiendas del ecosistema) ── */
.nv-footer { background: #fff; border-top: 1px solid #e2e8f0; padding: 16px 20px 22px; }
.nv-footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.nv-footer-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: 10px; }
.nv-shops { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.nv-shop { font-size: 13px; font-weight: 700; color: #475569; }

@media (max-width: 640px) {
    .nv-redeem-form { flex-direction: column; }
    .nv-viewer-shell .viewer-container { height: 68vh; }
}
