/* NexoTag Menús v3.0 — estilo tipo app (panel del dueño y admin) */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:#f4f5f7;color:#111827;-webkit-font-smoothing:antialiased;font-size:16px;line-height:1.4}
a{color:#0a72ff;text-decoration:none}
[hidden]{display:none!important}
svg.i{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
.app{max-width:560px;margin:0 auto;min-height:100vh;padding:0 16px calc(180px + env(safe-area-inset-bottom))}
.app.notabs{padding-bottom:110px}
.muted{color:#6b7280}.sm{font-size:13px}.xs{font-size:12px}.center{text-align:center}.bold{font-weight:700}
.row{display:flex;align-items:center;gap:12px}.grow{flex:1;min-width:0}
.top{display:flex;align-items:center;gap:12px;padding:16px 2px 12px}
.top h1{font-size:26px;font-weight:800;letter-spacing:-.02em;margin:0;flex:1;line-height:1.15}
.top .hi{font-size:13px;color:#6b7280}
.navb{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 0 12px;position:sticky;top:0;background:#f4f5f7;z-index:20}
.navb a,.navb button{color:#0a72ff;font-weight:600;font-size:16px;background:none;border:0;padding:0;font-family:inherit;cursor:pointer}
.navb b{font-size:17px;text-align:center;flex:1}
.navb .side{min-width:70px}.navb .side:last-child{text-align:right}
.av{width:42px;height:42px;border-radius:99px;overflow:hidden;background:#fff;border:1px solid #e5e7eb;flex:none;display:grid;place-items:center;font-weight:800;color:#fff}
.av img{width:100%;height:100%;object-fit:cover}
.card{background:#fff;border-radius:18px;padding:16px;margin-bottom:12px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;font-family:inherit;font-size:16px;font-weight:700;line-height:1.2;padding:14px 16px;background:#0a72ff;color:#fff;cursor:pointer;text-align:center;-webkit-tap-highlight-color:transparent}
.btn:active{transform:scale(.98)}
.btn.w{width:100%}.btn.sm{padding:9px 13px;font-size:14px;border-radius:12px}
.btn.ghost{background:#eef4ff;color:#0a5bd8}.btn.green{background:#16a34a}.btn.purple{background:#7c3aed}
.btn.red{background:#fef2f2;color:#dc2626}.btn.dark{background:#111827}.btn.light{background:#fff;color:#111827;border:1px solid #e5e7eb}
.btn[disabled]{opacity:.5}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:99px;font-size:12px;font-weight:700;white-space:nowrap}
.ok{background:#dcfce7;color:#166534}.warn{background:#fef3c7;color:#92400e}.bad{background:#fee2e2;color:#991b1b}.info{background:#e0e7ff;color:#3730a3}.pro{background:#f3e8ff;color:#7c3aed}.dark{background:#111827;color:#fff}
/* campos */
.fld{display:block;background:#fff;border-radius:14px;padding:10px 14px;margin-bottom:10px;border:1px solid #e5e7eb}
.fld:focus-within{border-color:#0a72ff;box-shadow:0 0 0 3px rgba(10,114,255,.12)}
.fld>span{display:block;font-size:12px;font-weight:700;color:#6b7280;margin-bottom:2px}
.fld input,.fld textarea,.fld select{width:100%;border:0;outline:0;padding:2px 0;font-family:inherit;font-size:17px;font-weight:600;line-height:1.35;color:#111827;background:transparent;-webkit-appearance:none;appearance:none}
.fld textarea{font-weight:500;font-size:15px;resize:vertical;min-height:44px}
.fld .hint{font-size:12px;font-weight:600;margin-top:4px}
.fld .hint.ok{background:none;color:#16a34a}.fld .hint.bad{background:none;color:#dc2626}
.pre{display:flex;align-items:baseline;gap:2px}.pre>em{font-style:normal;color:#9ca3af;font-weight:600;font-size:15px;white-space:nowrap}
/* switches */
.sw{position:relative;width:50px;height:30px;flex:none;display:inline-block}
.sw input{opacity:0;width:0;height:0;position:absolute}
.sw i{position:absolute;inset:0;border-radius:99px;background:#d1d5db;transition:.2s;cursor:pointer}
.sw i::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:99px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:.2s}
.sw input:checked+i{background:#22c55e}.sw input:checked+i::after{left:23px}
.sw input:focus-visible+i{outline:3px solid rgba(10,114,255,.4)}
.togrow{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-radius:14px;padding:12px 14px;margin-bottom:10px;border:1px solid #e5e7eb;font-weight:700;cursor:pointer}
.togrow small{display:block;font-weight:500;color:#6b7280;font-size:12px}
.togrow>div{flex:1;min-width:0}
/* listas */
.sec{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;margin:18px 4px 8px}
.list{border-radius:16px;overflow:hidden;background:#fff;margin-bottom:12px}
.li{display:flex;align-items:center;gap:12px;padding:13px 14px;font-weight:600;font-size:15px;border-bottom:1px solid #f1f2f4;color:#111827;background:#fff}
.li:last-child{border-bottom:0}
.li small{display:block;color:#6b7280;font-weight:500;font-size:12px}
.li .r{margin-left:auto;color:#6b7280;font-weight:600;display:flex;align-items:center;gap:6px;font-size:14px;text-align:right}
.li .chev{color:#c4c7cc;width:18px;height:18px}
.ic{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;flex:none;background:#f3f4f6;color:#374151;font-size:18px}
.ic.blue{background:#eef4ff;color:#0a72ff}.ic.green{background:#dcfce7;color:#16a34a}.ic.amber{background:#fef3c7;color:#b45309}.ic.red{background:#fee2e2;color:#dc2626}.ic.purple{background:#f3e8ff;color:#7c3aed}
/* buscador y chips */
.search{display:flex;align-items:center;gap:8px;background:#fff;border-radius:14px;padding:10px 12px;margin-bottom:10px;border:1px solid #e5e7eb;color:#9ca3af}
.search input{border:0;outline:0;flex:1;font-family:inherit;font-size:16px;background:transparent;color:#111827}
.chips{display:flex;gap:8px;margin-bottom:12px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
.chips::-webkit-scrollbar{display:none}
.chip{padding:8px 14px;border-radius:99px;background:#fff;border:1px solid #e5e7eb;font-weight:600;font-size:14px;color:#111827;white-space:nowrap;cursor:pointer;font-family:inherit}
.chip.on{background:#111827;color:#fff;border-color:#111827}
/* barra inferior */
.tabs{position:fixed;left:0;right:0;bottom:0;background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid #e5e7eb;display:flex;justify-content:center;padding:6px 6px calc(6px + env(safe-area-inset-bottom));z-index:40}
.tabs nav{display:flex;width:100%;max-width:560px}
.tabs a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:600;color:#9ca3af;padding:4px 0}
.tabs a.on{color:#0a72ff}
.tabs svg.i{width:25px;height:25px}
/* barra de publicar */
.pubbar{position:fixed;left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));max-width:536px;margin:0 auto;background:#111827;color:#fff;border-radius:16px;padding:10px 10px 10px 16px;display:flex;align-items:center;gap:10px;box-shadow:0 10px 30px rgba(0,0,0,.25);z-index:39}
.app.notabs~.pubbar,.pubbar.low{bottom:calc(16px + env(safe-area-inset-bottom))}
.pubbar b{font-size:14px;display:block}.pubbar span{font-size:12px;color:#cbd5e1}
.pubbar .btn{padding:10px 16px;font-size:15px;background:#22c55e;color:#04210f}
/* hoja inferior */
.sheet-bg{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:60;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:#fff;border-radius:26px 26px 0 0;padding:10px 18px calc(24px + env(safe-area-inset-bottom));width:100%;max-width:560px;max-height:90vh;overflow-y:auto}
.grab{width:40px;height:5px;border-radius:9px;background:#d1d5db;margin:0 auto 14px}
.sheet h2{font-size:22px;font-weight:800;margin:0 0 4px}
/* avisos */
.flash{border-radius:14px;padding:12px 14px;margin:0 0 12px;font-weight:600;font-size:14px}
.flash.ok{background:#dcfce7;color:#14532d}.flash.warn{background:#fef3c7;color:#78350f}.flash.bad{background:#fee2e2;color:#7f1d1d}
.alert{border-radius:18px;padding:14px 16px;margin-bottom:12px;display:flex;gap:12px;align-items:flex-start}
.alert.y{background:#fffbeb;border:1.5px solid #fcd34d}.alert.r{background:#fef2f2;border:1.5px solid #fca5a5}.alert.g{background:#f0fdf4;border:1.5px solid #86efac}
.alert b{font-size:16px}.alert p{font-size:13px;color:#4b5563;margin:2px 0 0}
.alert .e{font-size:26px;line-height:1}
.asbar{background:#fef3c7;color:#78350f;font-size:13px;padding:8px 14px;text-align:center;font-weight:600}
.asbar a{font-weight:800}
/* opciones tipo tarjeta */
.opts{display:flex;gap:8px}
.opts label{flex:1;text-align:center;padding:10px 4px;border-radius:12px;border:2px solid #e5e7eb;font-weight:700;font-size:14px;line-height:1.2;background:#fff;cursor:pointer}
.opts label small{display:block;font-weight:600;color:#6b7280;font-size:11px;margin-top:2px}
.opts input{position:absolute;opacity:0;width:0;height:0}
.opts label:has(input:checked){border-color:#0a72ff;color:#0a72ff;background:#f5f9ff}
.stepper{display:flex;align-items:center;gap:10px;margin-left:auto}
.stepper button{width:36px;height:36px;border-radius:10px;background:#f3f4f6;border:0;font-weight:800;font-size:18px;cursor:pointer;color:#111827}
.stepper output{font-size:18px;font-weight:800;min-width:22px;text-align:center}
/* credenciales */
.cred .k{font-size:12px;color:#6b7280;font-weight:700;margin-top:12px}
.cred .k:first-child{margin-top:0}
.cred .v{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:16px;font-weight:700;background:#f3f4f6;border-radius:10px;padding:10px 12px;margin-top:4px;word-break:break-all}
.cred .v button{color:#0a72ff;font-family:inherit;font-size:13px;font-weight:700;background:none;border:0;cursor:pointer;flex:none}
.done{width:72px;height:72px;border-radius:99px;background:#dcfce7;color:#16a34a;display:grid;place-items:center;margin:10px auto}
.done svg.i{width:40px;height:40px;stroke-width:3}
.h2{font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1.15;margin:0 0 8px}
.toast{position:fixed;left:50%;bottom:calc(150px + env(safe-area-inset-bottom));transform:translateX(-50%);background:#111827;color:#fff;font-weight:700;font-size:14px;padding:10px 16px;border-radius:99px;z-index:90;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.saved{display:flex;align-items:center;gap:6px;font-size:12px;color:#16a34a;font-weight:700;justify-content:center;margin:8px 0}
.saved svg.i{width:16px;height:16px;stroke-width:3}
@media(min-width:700px){body{background:#eceef2}.app{background:#f4f5f7;box-shadow:0 0 0 1px #e5e7eb}}

/* v3.4: WhatsApp con país */
.waf .warow{display:flex;gap:8px;margin-top:4px}.waf .warow select{width:auto;flex:none;border:0;background:#f3f4f6;border-radius:10px;padding:0 10px;font-family:system-ui;font-size:16px;font-weight:700;color:#111827;height:44px}
.waf .warow input{flex:1;min-width:0;width:auto;height:44px}

.pre .curtag{flex:none;margin-left:6px;font-size:14px;color:#6b7280;font-weight:700}
/* v4.0: barra de abajo con iconos de color (se ve más) */
.tabs a{color:#4b5563;font-weight:700;gap:2px;padding:2px 0}
.tabs a svg.i{width:38px;height:30px;padding:4px 8px;border-radius:12px;box-sizing:border-box;stroke-width:2.2}
.tabs nav a:nth-child(1) svg.i{color:#0a72ff;background:#e8f1ff}
.tabs nav a:nth-child(2) svg.i{color:#d97706;background:#fff4e0}
.tabs nav a:nth-child(3) svg.i{color:#7c3aed;background:#f3ecff}
.tabs nav a:nth-child(4) svg.i{color:#16a34a;background:#e7f8ee}
.tabs nav a:nth-child(5) svg.i{color:#475569;background:#eef1f5}
.tabs nav a.on{color:#111827}
.tabs nav a.on svg.i{color:#fff!important}
.tabs nav a.on:nth-child(1) svg.i{background:#0a72ff}.tabs nav a.on:nth-child(2) svg.i{background:#d97706}.tabs nav a.on:nth-child(3) svg.i{background:#7c3aed}.tabs nav a.on:nth-child(4) svg.i{background:#16a34a}.tabs nav a.on:nth-child(5) svg.i{background:#475569}
