/* QR Code Builder - look: plain internal tool. Flat colors, borders instead of shadows, no gradients. */
:root{--bg:#F1F2F4;--card:#fff;--ink:#1B1F24;--mut:#5A6470;--line:#D3D8DE;--line-strong:#AEB5BF;--acc:#2446C8;--acc-d:#1B37A0;--bad:#B3261E;--good:#17692F;--head:#1B1F24}
html body{background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;letter-spacing:0;-webkit-font-smoothing:auto;font-size:16px;line-height:1.45}
html body::before,html body::after{content:none!important;display:none!important}
*,*::before,*::after{animation:none!important}
:focus-visible{outline:3px solid #8AA4FF;outline-offset:2px}

/* ---------- Login / setup ---------- */
html body .caja{max-width:380px;text-align:left}
html body .caja .logo{width:44px;height:44px;border-radius:8px;margin:0 0 18px;background:var(--acc);box-shadow:none}
html body .caja h1{font-size:1.5rem;font-weight:700;margin-bottom:4px}
html body .caja .sub{font-size:.95rem;color:var(--mut);margin-bottom:20px}
html body .caja .sub strong{color:var(--ink)}
html body .caja form{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:22px;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
html body .caja label{font-size:.9rem;font-weight:600;color:var(--ink);margin:14px 0 6px}
html body .caja input{background:#fff;color:var(--ink);border:1px solid var(--line-strong);border-radius:6px;padding:12px;font-size:1rem;min-height:48px}
html body .caja input[type=password]{font-size:1.4rem;letter-spacing:.35em;text-align:left}
html body .caja input:focus{border-color:var(--acc);box-shadow:none;outline:3px solid #8AA4FF;outline-offset:0}
html body .caja button{background:var(--acc);box-shadow:none;border-radius:6px;font-size:1rem;font-weight:600;padding:13px;min-height:48px;filter:none;margin-top:18px}
html body .caja button:hover{background:var(--acc-d);filter:none}
html body .caja .error{color:var(--bad);font-weight:600;text-align:left;font-size:.9rem}
html body .caja .aviso{background:#EEF1FA;border:1px solid #CBD3EE;border-radius:6px;color:var(--mut);font-size:.85rem}
html body .caja .aviso strong{color:var(--ink)}
html body .caja .pie{opacity:1;color:var(--mut);text-align:left}

/* ---------- Header ---------- */
html body .top{position:static;background:var(--head);backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:0;padding:12px max(16px,env(safe-area-inset-left));gap:12px}
html body .top .logo{width:36px;height:36px;border-radius:6px;background:var(--acc);box-shadow:none}
html body .brand h1{font-size:1.05rem;font-weight:600;color:#fff;letter-spacing:0}
html body .brand p{color:#B8C0CC;font-size:.85rem}
html body .badge{background:#3B4350;color:#fff;border-radius:4px;letter-spacing:0;text-transform:none;font-size:.75rem;padding:1px 6px;font-weight:600}
html body .icon-btn{background:transparent;border:1px solid #4A5361;color:#fff;border-radius:6px;min-height:44px;font-size:.9rem;font-weight:500}
html body .icon-btn:hover{background:#2A313B;border-color:#6B7585}
html body .icon-btn .ic{display:none}
@media(max-width:520px){html body .icon-btn span{display:inline}html body .icon-btn{width:auto;padding:0 12px}}

/* ---------- Banners ---------- */
html body .banner{border-radius:6px;font-size:.95rem;font-weight:500;justify-content:flex-start;text-align:left}
html body .banner .ic{display:none}
html body .banner.info{background:#fff;border:1px solid var(--line);color:var(--ink)}
html body .banner.warn{background:#FDECEA;border:1px solid #E7B5B0;color:#7A1710}
html body .banner .cd{background:transparent;color:inherit;padding:0;font-weight:700;font-size:inherit}
html body .banner small{font-weight:400;opacity:1}

/* ---------- Layout / panels ---------- */
html body .layout{gap:20px;padding-top:20px}
html body .panel{background:var(--card);border:1px solid var(--line);border-radius:8px;box-shadow:none;padding:20px}
html body .panel h2{font-size:1.05rem;font-weight:700;letter-spacing:0;gap:8px;margin-bottom:4px}
html body .panel h2 .num{width:auto;height:auto;background:none;border:0;border-radius:0;color:var(--mut);font-size:1.05rem;display:inline}
html body .panel h2 .num::after{content:"."}
html body .panel h2 .hic{display:none}
html body .panel .sub{color:var(--mut);font-size:.92rem;margin-bottom:16px}

/* ---------- Tabs: underlined, like a normal site ---------- */
html body .tabs{background:none;border:0;border-bottom:1px solid var(--line-strong);border-radius:0;padding:0;gap:0;margin-bottom:16px}
html body .tab{flex:0 0 auto;min-width:0;flex-direction:row;background:none;border-radius:0;border-bottom:3px solid transparent;margin-bottom:-1px;padding:0 18px;min-height:46px;font-size:.98rem;font-weight:600;color:var(--mut);box-shadow:none}
html body .tab .ic{display:none}
html body .tab:hover{color:var(--ink)}
html body .tab.activo{background:none;color:var(--ink);border-bottom-color:var(--acc);box-shadow:none}
@media(max-width:520px){html body .tab{flex:1;flex-direction:row;padding:0 6px;min-height:46px;font-size:.92rem;min-width:0}}

/* ---------- Field picker: checkbox-style ---------- */
html body .chips{gap:8px;margin-bottom:22px}
html body .chip{background:#fff;border:1px solid var(--line-strong);border-radius:6px;min-height:44px;padding:0 12px 0 10px;font-size:.95rem;font-weight:500;color:var(--ink);gap:8px}
html body .chip .mark{display:none}
html body .chip::before{content:"";width:18px;height:18px;border:1.5px solid var(--line-strong);border-radius:3px;background:#fff;color:#fff;font-size:13px;line-height:15px;text-align:center;font-weight:700}
html body .chip.on{background:#EEF1FA;border-color:var(--acc);color:var(--ink)}
html body .chip.on::before{content:"\2713";background:var(--acc);border-color:var(--acc)}
html body .chip:hover{border-color:var(--acc)}

/* ---------- Inputs ---------- */
html body .campo label{font-size:.9rem;font-weight:600;color:var(--ink);margin-bottom:5px}
html body .campo input,html body .campo select,html body select{background:#fff;color:var(--ink);border:1px solid var(--line-strong);border-radius:6px;min-height:46px;box-shadow:none}
html body .campo input::placeholder{color:#8A929D}
html body .campo input:focus,html body .campo select:focus{border-color:var(--acc);box-shadow:none;outline:3px solid #8AA4FF;outline-offset:0}
html body .vacio-msg{background:#F7F8FA;border:1px dashed var(--line-strong);border-radius:6px;color:var(--mut);font-size:.95rem}
html body .color-item{background:#fff;border:1px solid var(--line);border-radius:6px;font-weight:500;font-size:.95rem}
html body .color-item input[type=color]{border-radius:4px}
html body .color-item input[type=color]::-webkit-color-swatch{border-radius:4px}

/* ---------- Preview ---------- */
html body .preview-col{top:16px}
html body .preview-card{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:18px;text-align:center;overflow:visible}
html body .preview-card::before{content:none}
html body .preview-card .etiqueta{color:var(--mut);font-size:.85rem;font-weight:600;letter-spacing:0;text-transform:none;margin-bottom:12px;display:block}
html body .preview-card .etiqueta::before{content:none}
html body .qr-marco{border-radius:4px;box-shadow:none;border:1px solid var(--line);padding:12px}
html body #qrImg{image-rendering:pixelated}
html body .qr-vacio{color:var(--mut);font-size:.9rem}
html body .cargando{border-radius:4px;background:rgba(255,255,255,.8)}
html body .spinner{border-color:#DDE1E7;border-top-color:var(--acc)}

/* ---------- Buttons ---------- */
html body .btn{border-radius:6px;font-size:1rem;font-weight:600;min-height:48px;box-shadow:none;filter:none}
html body .btn .ic{display:none}
html body .btn-primario{background:var(--acc);color:#fff}
html body .btn-primario:hover{background:var(--acc-d);filter:none}
html body .btn:disabled{opacity:1;background:#DCE0E6;color:#7B848F;cursor:not-allowed}
html body .btn-wallet{background:#000;color:#fff;border:0;text-decoration:none}
html body .btn-wallet:hover{background:#222}
html body .btn-wallet:disabled{background:#DCE0E6;color:#7B848F}
html body a.btn-wallet{display:flex}
html body .btn-sec{background:#fff;border:1px solid var(--line-strong);color:var(--ink)}
html body .btn-sec:hover{background:#F1F2F4}
html body .selector-res{background:none;border:1px solid var(--line-strong);border-radius:6px;padding:0;gap:0;overflow:hidden}
html body .res-btn{border-radius:0;border-right:1px solid var(--line-strong);color:var(--ink);font-weight:500;min-height:44px}
html body .res-btn:last-child{border-right:0}
html body .res-btn.activo{background:var(--ink);color:#fff}
html body .nota{background:none;border:0;padding:0;margin-top:12px;color:var(--mut);font-size:.88rem}
html body .nota .ic{display:none}
html body .nota strong{color:var(--ink)}
html body .msg-ok{color:var(--good)}
html body .msg-err{color:var(--bad)}
html body table td,html body table th{border-color:var(--line)!important}
html body table tr:hover td{background:#F7F8FA}
