/* Panel de editor */
body.ed { background: var(--card); min-height: 100vh; }
.ed .btn-p.sm, .ed .btn-o.sm { min-height: 36px; padding: 0 14px; font-size: .86rem; }
.ed .full { width: 100%; }
.ed .danger { color: var(--warn); }
.ed .btn-o.danger:hover { border-color: var(--warn); color: var(--warn); }
.ed .danger-bg { background: #b3261e; }
.ed .danger-bg:hover { background: #8f1d17; }
.linkbtn { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 700; color: var(--link); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--warn); }

/* Entrada */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #0f3d22, #1b6e2f); }
.login-card { width: 100%; max-width: 400px; background: var(--panel); color: var(--fg); border-radius: 18px; padding: 28px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); display: flex; flex-direction: column; gap: 14px; }
.login-card img { width: 180px; height: auto; }
.login-card h1 { font-size: 1.5rem; font-weight: 900; color: var(--head); }
.login-card p { color: var(--muted); }
.login-card .btn-p { min-height: 48px; }
.login-card .back { text-align: center; color: var(--link); font-weight: 700; font-size: .9rem; }
.err { color: var(--warn); background: var(--warn-bg); border-radius: 8px; padding: 9px 12px; font-size: .9rem; font-weight: 700; }

/* Campos */
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span, .lbl { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--fg); }
.lbl { margin-bottom: 8px; }
.fld em, .lbl em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .8rem; }
.fld small { color: var(--muted); font-size: .8rem; }
.fld input, .fld select, .fld textarea, .side-q, .otros input {
  width: 100%; min-width: 0; font: inherit; font-size: .95rem; color: var(--fg); background: var(--panel);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.fld textarea { resize: vertical; line-height: 1.45; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .side-q:focus, .otros input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.fld input[aria-invalid="true"] { border-color: var(--warn); }
.hint { color: var(--muted); font-size: .88rem; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* Barra superior */
.ed-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ed-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--head); }
.ed-brand img { height: 32px; width: auto; }
.ed-brand span { border-left: 1px solid var(--line); padding-left: 10px; }
.ed-tabs { display: flex; gap: 4px; }
.ed-tabs button { background: none; border: 0; font: inherit; font-weight: 700; padding: 8px 12px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.ed-tabs button[aria-current="true"] { background: var(--ok-bg); color: var(--ok); }
.ed-right { margin-left: auto; display: flex; gap: 8px; }
.warnbar { background: #fff4d6; color: #5b4300; border-bottom: 1px solid #f0d58a; padding: 10px 16px; font-size: .92rem; }
.warnbar .linkbtn { color: #5b4300; text-decoration: underline; }

/* Vista negocios */
.view { padding: 16px; }
#v-negocios { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; max-width: 1400px; margin-inline: auto; }
@media (min-width: 1000px) { #v-negocios { grid-template-columns: 320px minmax(0, 1fr); } .side { position: sticky; top: 74px; max-height: calc(100vh - 90px); } .backlist { display: none; } }
@media (max-width: 999px) { #v-negocios.editing .side { display: none; } #v-negocios:not(.editing) .work { display: none; } }
.side { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; }
.stats div { background: var(--card); border-radius: 10px; padding: 8px 4px; }
.stats b { display: block; font-size: 1.3rem; font-weight: 900; color: var(--head); font-variant-numeric: tabular-nums; }
.stats span { font-size: .74rem; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 700; padding: 7px 4px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--fg); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.side-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin-inline: -6px; padding-inline: 6px; min-height: 60px; }
.side-list button { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; background: none; border: 1px solid transparent; border-radius: 10px; padding: 7px; font: inherit; color: var(--fg); cursor: pointer; }
.side-list button:hover { background: var(--card); }
.side-list button[aria-current="true"] { background: var(--ok-bg); border-color: var(--brand); }
.side-list .th { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #fff; display: grid; place-items: center; color: #fff; font-weight: 900; }
.side-list b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list small { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .76rem; overflow: hidden; white-space: nowrap; }
.tagst { font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 4px; flex: none; }
.tagst.pub { background: var(--ok-bg); color: var(--ok); }
.tagst.bor { background: var(--chip); color: var(--muted); }
.tagst.des { background: #fff1c2; color: #7a5200; }
.side-empty { color: var(--muted); font-size: .88rem; text-align: center; padding: 14px 4px; }

.work { min-width: 0; }
.welcome { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.welcome h1 { font-size: 1.6rem; font-weight: 900; color: var(--head); }
.welcome p { color: var(--muted); max-width: 60ch; }
.howto { display: grid; gap: 10px; padding-left: 22px; max-width: 64ch; }
.howto li { line-height: 1.45; }

.ed-form { display: flex; flex-direction: column; gap: 14px; padding-bottom: 90px; }
.form-head { display: flex; flex-direction: column; gap: 4px; }
.form-head h1 { font-size: 1.5rem; font-weight: 900; color: var(--head); overflow-wrap: anywhere; }
.sec { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 18px; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sec legend { float: left; width: 100%; padding: 0; font-size: 1.1rem; font-weight: 900; color: var(--head); }
.sec legend + * { clear: both; }
.adv summary { cursor: pointer; font-weight: 700; color: var(--link); font-size: .9rem; }
.adv[open] summary { margin-bottom: 10px; }
.adv .cols2 { margin-top: 10px; }

/* Fotos */
.up-one { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.up-prev { border: 1.5px dashed var(--line); border-radius: 12px; background: var(--card); display: grid; place-items: center; color: var(--muted); font-size: .85rem; overflow: hidden; }
.logo-prev { width: 120px; height: 120px; }
.cover-prev { width: 100%; aspect-ratio: 16 / 9; max-width: 100%; }
.up-prev img { width: 100%; height: 100%; object-fit: cover; }
.logo-prev img { object-fit: contain; background: #fff; }
.up-acts { display: flex; align-items: center; gap: 12px; }
.up-acts label { cursor: pointer; }
.drop { display: block; border: 2px dashed var(--line); border-radius: 12px; padding: 22px 14px; text-align: center; color: var(--muted); cursor: pointer; background: var(--card); }
.drop b { color: var(--fg); }
.drop.over { border-color: var(--brand); background: var(--ok-bg); }
.upmsg { font-size: .88rem; color: var(--muted); min-height: 1.2em; }
.upmsg.bad { color: var(--warn); font-weight: 700; }
.gal-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 10px; }
.gal-ed li { position: relative; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.gal-ed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gal-ed .ga { display: flex; justify-content: space-between; gap: 2px; padding: 4px; }
.gal-ed .ga button { flex: 1; border: 0; background: var(--panel); border-radius: 6px; font: inherit; font-size: .76rem; font-weight: 700; padding: 5px 2px; cursor: pointer; color: var(--fg); }
.gal-ed .ga button:hover { background: var(--ok-bg); }
.gal-ed .ga button.rm { color: var(--warn); }
.gal-ed .num { position: absolute; top: 6px; left: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; font-weight: 900; padding: 2px 7px; border-radius: 999px; }
.map-prev iframe { width: 100%; aspect-ratio: 16 / 7; max-width: 100%; border: 0; border-radius: 10px; background: var(--card); }

/* Horario */
.hor { display: flex; flex-direction: column; gap: 6px; }
.hor-row { display: grid; grid-template-columns: 110px auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hor-row:last-child { border-bottom: 0; }
.hor-row b { font-size: .92rem; }
.hor-row .times { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hor-row input[type="time"] { font: inherit; font-size: .92rem; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--fg); font-variant-numeric: tabular-nums; }
.hor-row .closed { color: var(--muted); font-size: .9rem; }
.mini-sw { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; cursor: pointer; }
.mini-sw input { width: 18px; height: 18px; accent-color: var(--brand); }
@media (max-width: 520px) { .hor-row { grid-template-columns: 1fr auto; } .hor-row .times { grid-column: 1 / -1; } }

/* Enlaces extra */
.otros { display: flex; flex-direction: column; gap: 8px; }
.otros li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 8px; align-items: center; }
@media (max-width: 520px) { .otros li { grid-template-columns: minmax(0, 1fr) auto; } .otros li input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }
.otros .rm { border: 0; background: none; color: var(--warn); font: inherit; font-weight: 700; cursor: pointer; padding: 6px; }
.enl-fld span i { width: 12px; height: 12px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-style: normal; font-size: .64rem; font-weight: 900; margin-right: 6px; vertical-align: middle; }

/* Interruptores */
.sw { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw .tr { flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; margin-top: 2px; }
.sw .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.sw input:checked + .tr { background: var(--brand); }
.sw input:checked + .tr::after { transform: translateX(20px); }
.sw input:focus-visible + .tr { outline: 3px solid #2f86ff; outline-offset: 2px; }
.sw b { display: block; }
.sw small { display: block; color: var(--muted); font-size: .84rem; }
.prev-card { max-width: 320px; }
.prev-card .biz:hover { transform: none; }

/* Barra para guardar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0, 0, 0, .08); }
@media (min-width: 1000px) { .bar { left: calc(max(0px, (100vw - 1400px) / 2) + 352px); right: calc(max(0px, (100vw - 1400px) / 2) + 16px); bottom: 12px; border: 1px solid var(--line); border-radius: 14px; padding-bottom: 10px; } }
.bar-st { font-size: .88rem; color: var(--muted); font-weight: 700; }
.bar-st.dirty { color: #a15c00; }
.bar-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.bar .btn-p { min-width: 120px; }
.del-wrap { display: inline-flex; gap: 6px; align-items: center; }
.del-wrap span { font-size: .86rem; font-weight: 700; color: var(--warn); }

/* Ajustes */
.settings { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
.card-s h2 { font-size: 1.15rem; font-weight: 900; color: var(--head); }
.card-s .btn-p { align-self: flex-start; }
.confirm { background: var(--warn-bg); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.confirm p { font-weight: 700; color: var(--warn); }
code { background: var(--card); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

.toast { position: fixed; left: 50%; bottom: 90px; translate: -50% 0; z-index: 90; background: #14281c; color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: calc(100vw - 32px); }
.toast.bad { background: #8f1d17; }

/* ---------- Pestañas nuevas ---------- */
.ed-tabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ed-tabs::-webkit-scrollbar { display: none; }
.ed-tabs button { white-space: nowrap; }
@media (max-width: 900px) { .ed-tabs { order: 3; flex-basis: 100%; } }
.view.coll { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; max-width: 1400px; margin-inline: auto; }
@media (min-width: 1000px) { .view.coll { grid-template-columns: 320px minmax(0, 1fr); } .view.coll .backlist { display: none; } }
@media (max-width: 999px) { .view.coll.editing .side { display: none; } .view.coll:not(.editing) .work { display: none; } }
.view.coll[hidden] { display: none; }
.side-list button.nolg { grid-template-columns: minmax(0, 1fr); }
.single { max-width: 980px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.single .form-head p { max-width: 70ch; }
.bar.wide { }
@media (min-width: 1000px) { .bar.wide { left: max(16px, calc((100vw - 980px) / 2)); right: max(16px, calc((100vw - 980px) / 2)); } }
.acc { padding: 0; gap: 0; }
.acc > summary { list-style: none; cursor: pointer; padding: 16px 18px; font-size: 1.1rem; font-weight: 900; color: var(--head); display: flex; justify-content: space-between; align-items: center; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); font-weight: 400; }
.acc[open] > summary::after { content: "–"; }
.acc-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.grp { display: flex; flex-direction: column; gap: 14px; }
.fld-block { display: flex; flex-direction: column; gap: 8px; }
.lst { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lst-items, .blk-items { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.item { border: 1px solid var(--line); border-radius: 12px; background: var(--card); width: 100%; }
.item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-weight: 700; }
.item > summary::-webkit-details-marker { display: none; }
.item > summary .it-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item > summary .it-t::before { content: "▸ "; color: var(--muted); }
.item[open] > summary .it-t::before { content: "▾ "; }
.it-acts { display: inline-flex; gap: 4px; flex: none; }
.it-acts button { border: 1px solid var(--line); background: var(--panel); color: var(--fg); border-radius: 8px; min-width: 32px; height: 30px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; padding: 0 8px; }
.it-acts button:hover { border-color: var(--brand); }
.it-acts .rm { color: var(--warn); }
.it-body { padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 12px; background: var(--panel); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.blk-item { border-left: 4px solid var(--brand); }
.blk-add { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.blk-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.blk-empty { padding: 10px 0; }
.orden { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.orden li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.colorf { display: flex; gap: 8px; align-items: center; }
.colorf input[type=color] { width: 48px; height: 42px; padding: 2px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; flex: none; }
.fld .colorf .hex { width: 110px; font-variant-numeric: tabular-nums; text-transform: lowercase; }
.iconf { display: flex; gap: 8px; align-items: center; }
.iconf .ip { width: 42px; height: 42px; flex: none; border-radius: 10px; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--brand); background: var(--card); }
.slugf { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.slugf .pre { padding: 10px 0 10px 12px; color: var(--muted); font-size: .9rem; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.fld .slugf input { border: 0; border-radius: 0; padding-left: 2px; }
.fimg .up-prev { width: 100%; max-width: 360px; aspect-ratio: 16 / 9; }
.fimg .up-prev img { object-fit: cover; }
.dis-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 900px) { .dis-grid { grid-template-columns: minmax(0, 1fr) 340px; } .dis-prev { position: sticky; top: 74px; } }
.dis-prev { display: flex; flex-direction: column; gap: 8px; }
.mock { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
.m-h { display: flex; align-items: center; gap: 12px; padding: 10px 12px; box-shadow: 0 1px 6px rgba(0, 0, 0, .1); }
.m-h img { height: 30px; width: auto; margin-right: auto; }
.m-h .act { font-weight: 700; border-bottom: 2px solid; }
.m-b { padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; color: #1d2a24; }
.m-t { font-size: 1.3rem; font-weight: 900; }
.m-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.m-btns span { color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 999px; font-size: .84rem; }
.m-f { padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.fimg.logo .up-prev { aspect-ratio: 3 / 1; } .fimg.logo .up-prev img { object-fit: contain; background: #fff; }

/* ---------- Cuentas, cobro y roles ---------- */
.ed-tabs button[hidden] { display: none; }
body.rol-dueno #f-destacado, body.rol-dueno label.sw:has(#f-destacado), body.rol-dueno .fld:has(#f-notas), body.rol-dueno #delWrap { display: none !important; }
.warnbar.pay { background: #fff4d6; display: flex; flex-direction: column; gap: 6px; }
.pay-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pay-row.bad { color: #7a1510; }
.warnbar.pay:has(.bad) { background: #fde7e5; border-color: #f3b6b1; }
.mdl { position: fixed; inset: 0; z-index: 9995; background: rgba(8, 20, 14, .55); display: grid; place-items: center; padding: 14px; overflow-y: auto; }
.mdl-card { width: 100%; max-width: 560px; background: var(--panel); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); max-height: calc(100dvh - 28px); overflow-y: auto; }
.mdl-card h2 { font-size: 1.25rem; font-weight: 900; color: var(--head); }
.mdl-b { display: flex; flex-direction: column; gap: 12px; }
.mdl-b [hidden] { display: none !important; }
.mdl-f { padding-top: 4px; }
.cred { white-space: pre-wrap; word-break: break-word; background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 12px; font: inherit; font-size: .92rem; line-height: 1.5; }
.ct-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.kpis > div { background: var(--card); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.kpis b { font-size: 1.6rem; font-weight: 900; color: var(--head); line-height: 1; }
.kpis span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.kpis .w { background: #fff1c2; } .kpis .w b { color: #7a5200; }
.ct-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ct-bar .side-q { flex: 1 1 220px; }
.seg5 { display: flex; flex-wrap: wrap; background: var(--card); border-radius: 10px; padding: 3px; gap: 2px; }
.seg5 button { border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 700; padding: 7px 10px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.seg5 button[aria-pressed="true"] { background: var(--panel); color: var(--fg); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.ctas { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.cu { background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.cu.bloqueado { border-color: #e4a39e; background: #fff8f7; }
.cu.vencido { border-color: #e4a39e; }
.cu.porvencer { border-color: #ecc65c; }
.cu-h { display: flex; flex-direction: column; gap: 2px; } .cu-h small { color: var(--muted); }
.cu p { font-size: .92rem; } .cu .blq { color: #8f1d17; font-weight: 700; }
.cu-a { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.bd { display: inline-block; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 5px; vertical-align: middle; }
.bd.ok { background: var(--ok-bg); color: var(--ok); } .bd.warn { background: #fff1c2; color: #7a5200; } .bd.bad { background: #fde7e5; color: #8f1d17; } .bd.mute { background: var(--chip); color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kv > div { display: flex; flex-direction: column; gap: 2px; } .kv span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.promo { background: #e8f5ea; border-radius: 10px; padding: 12px 14px; font-weight: 800; color: #14532d; }
.plist { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }

.note-w { background: #fff4d6; color: #5b4300; border-radius: 8px; padding: 10px 12px; font-weight: 700; font-size: .92rem; }

/* ---------- Tienda y descargas ---------- */
.settings.wide { max-width: 1180px; }
.tbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e53935; color: #fff; font-size: .72rem; font-weight: 900; margin-left: 4px; }
.mh { font-size: 1rem; font-weight: 900; color: var(--head); margin-top: 6px; }
.t-url { color: var(--link); font-weight: 800; word-break: break-all; }
.note-w { margin: 0; }
.pgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.pcard { background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.pcard.off { opacity: .7; }
.pimg { width: 84px; height: 84px; border-radius: 10px; background: var(--card); display: grid; place-items: center; font-size: 1.8rem; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg.big { width: 110px; height: 110px; }
.pb { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pb b { font-size: 1rem; } .pb .pp { font-weight: 900; color: var(--brand); } .pb small { color: var(--muted); font-size: .8rem; }
.pb .bd { align-self: flex-start; }
.pfoto { display: flex; gap: 14px; align-items: center; }
.ords { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.ord { background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ord.nuevo { border-color: #ecc65c; box-shadow: 0 0 0 3px rgba(236, 198, 92, .25); }
.ord.listo { border-color: var(--brand); }
.ord-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .ord-h small { width: 100%; color: var(--muted); }
.ord p { font-size: .92rem; } .ord a { color: var(--link); font-weight: 700; }
.ord-it { list-style: none; padding: 8px 0; margin: 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.ord-it li { display: flex; justify-content: space-between; gap: 10px; }
.ord-t { display: flex; justify-content: space-between; font-size: 1.05rem; } .ord-t b { font-size: 1.2rem; }
.avisa { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--card); border-radius: 10px; padding: 10px; font-weight: 700; font-size: .9rem; }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; background: #1fae55; color: #fff; font-weight: 700; padding: 0 14px; min-height: 36px; text-decoration: none; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 4px; cursor: pointer; background: var(--card); }
.drop:hover { border-color: var(--brand); }
.drop small { color: var(--muted); }
.prog { position: relative; height: 30px; border-radius: 8px; background: var(--card); overflow: hidden; margin-top: 8px; }
.prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--brand) 35%, transparent); transition: width .2s; }
.prog span { position: relative; display: block; line-height: 30px; padding: 0 10px; font-size: .85rem; font-weight: 700; }
.code { background: #0f1a14; color: #d7f5df; border-radius: 10px; padding: 12px; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; margin: 6px 0; }
details.sec summary { cursor: pointer; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.tbl code, .sec code { background: var(--card); border-radius: 5px; padding: 1px 5px; font-size: .85em; }
.reg-link { font-size: .92rem; } .reg-link a { color: #1668d6; font-weight: 800; text-decoration: underline; }
/* en celular, Mangui no tapa el botón Guardar */
@media (max-width: 700px) { .mi-fab { bottom: 88px !important; } .mi-hi { bottom: 104px !important; } }

.camino { margin-top: 12px; padding-left: 0; list-style: none; counter-reset: c; display: flex; flex-direction: column; gap: 6px; }
.camino li { counter-increment: c; position: relative; padding-left: 36px; min-height: 26px; line-height: 26px; color: var(--muted); }
.camino li::before { content: counter(c); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--fg); display: grid; place-items: center; font-weight: 900; font-size: .85rem; }
.camino li.ok { color: var(--fg); } .camino li.ok::before { content: "✓"; background: var(--brand); color: #fff; }
.camino li.ya { color: var(--fg); font-weight: 800; } .camino li.ya::before { background: #ffd54a; }
/* dueño en celular: debajo de su negocio ve su camino */
@media (max-width: 999px) { body.rol-dueno #v-negocios:not(.editing) .work { display: block; margin-top: 12px; } body.rol-dueno #v-negocios:not(.editing) .work > :not(#welcome) { display: none; } }
