/* PediGo · panel (identidad: Azul PediGo #304D70 + Crema #F5E7CE, DejaVu Sans, radios de 12 px) */
@font-face { font-family: 'DejaVu Sans'; font-weight: 400; font-display: swap; src: url('https://cdn.jsdelivr.net/npm/dejavu-fonts-ttf@2.37.3/ttf/DejaVuSans.ttf') format('truetype'); }
@font-face { font-family: 'DejaVu Sans'; font-weight: 700; font-display: swap; src: url('https://cdn.jsdelivr.net/npm/dejavu-fonts-ttf@2.37.3/ttf/DejaVuSans-Bold.ttf') format('truetype'); }
:root {
  --navy: #304D70; --navy-deep: #263E5A; --navy-ink: #1A2B40;   /* Azul PediGo y sus sombras */
  --crema: #F5E7CE;                                             /* Crema PediGo */
  --sky: #5A86B8; --cheddar: #E9B949;                           /* apoyo: foco/acentos y avisos */
  --bg: #F7F3EA; --card: #fff; --ink: #1A2B40; --muted: #5F6B7A; --line: rgba(48, 77, 112, .14);
  --ok: #2E9D5B; --warn: #C98A12; --danger: #D64545;
  --f-display: 'DejaVu Sans', system-ui, sans-serif; --f-body: 'DejaVu Sans', system-ui, sans-serif;
  --r: 12px; --shadow: 0 8px 24px -16px rgba(26, 43, 64, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--f-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.leaflet-container svg { width: auto; height: auto; stroke: none; } /* los mapas dibujan sus propias capas SVG */
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -.01em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .9rem; white-space: nowrap; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--navy); color: var(--crema); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--ok { background: var(--ok); color: #fff; }
.btn--ghost { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--navy); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--danger { background: #fff; color: var(--danger); box-shadow: inset 0 0 0 1.5px rgba(239, 68, 88, .35); }
.btn--sm { padding: 7px 11px; font-size: .8rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ingreso */
.login { min-height: 100svh; display: grid; place-items: center; padding: 20px; background: var(--navy); }
.login__card { width: min(100%, 400px); background: var(--navy-deep); border-radius: 16px; padding: 32px 28px; text-align: left; color: var(--crema); display: grid; gap: 14px; }
.login__logo { width: 220px; height: auto; margin: 0 auto 10px; display: block; }
.login__card h1 { font-size: 1.45rem; text-align: center; }
.login__card p { margin: 0; color: rgba(245, 231, 206, .78); font-size: .9rem; text-align: center; line-height: 1.45; }
.login__field { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; }
.login__field input { height: 46px; border-radius: 12px; border: 0; padding: 0 14px; font-size: 1rem; color: var(--ink); background: #fff; }
.login__field input:focus { outline: 3px solid var(--crema); outline-offset: 1px; }
.login__card .btn { height: 48px; font-size: 1rem; background: var(--crema); color: var(--navy); margin-top: 4px; }
.login__err { color: #ffb3b3; font-weight: 700; text-align: center; }
.login__alt { font-size: .85rem !important; }
.login__alt a { color: var(--crema); font-weight: 700; }
.side__comercio { margin: -8px 10px 0; padding: 10px 12px; border-radius: 12px; background: rgba(245, 231, 206, .08); display: grid; gap: 2px; }
.side__comercio b { font-size: .92rem; color: var(--crema); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__comercio span { font-size: .72rem; color: rgba(245, 231, 206, .7); }
.banner { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #FFF4DA; color: #6B4A00; font-size: .88rem; font-weight: 600; }
.banner a { color: inherit; font-weight: 700; }
.banner--admin { background: var(--navy); color: var(--crema); }
.banner--alerta { background: #FDE7E7; color: #8A1F1F; }

/* Mi plan y funciones bloqueadas */
.upsell { max-width: 560px; margin: 24px auto; text-align: center; }
.upsell__ico { font-size: 2.4rem; margin-bottom: 6px; }
.upsell .btn { margin-top: 6px; }
.planes { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .88rem; }
.planes th, .planes td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.planes th:first-child, .planes td:first-child { text-align: left; }
.planes th { vertical-align: top; }
.planes th b { display: block; font-size: 1.05rem; color: var(--navy); }
.planes th span { display: block; margin: 2px 0 10px; color: var(--muted); font-weight: 600; }
.planes th em { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--crema); color: var(--navy); font-style: normal; font-weight: 700; font-size: .78rem; }
.planes .is-mio { background: rgba(245, 231, 206, .45); }
.planes .ok { color: var(--ok); font-weight: 800; font-size: 1.05rem; }

/* estructura */
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100svh; }
.side { position: sticky; top: 0; height: 100svh; background: var(--navy-deep); color: #fff; display: flex; flex-direction: column; padding: 20px 14px; gap: 22px; }
.side__logo img { width: 150px; height: auto; margin: 0 8px; display: block; }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; color: rgba(255, 255, 255, .72); position: relative; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.is-active { background: var(--crema); color: var(--navy); }
.nav__badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--cheddar); color: var(--navy-ink); font-size: .75rem; display: grid; place-items: center; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.side__foot { margin-top: auto; display: grid; gap: 6px; }
.side__link { text-align: left; padding: 10px 12px; border-radius: 10px; color: rgba(255, 255, 255, .7); font-size: .85rem; font-weight: 600; text-decoration: none; }
.side__link:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.main { min-width: 0; padding: 0 28px 60px; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 0 14px; background: linear-gradient(var(--bg) 80%, transparent); }
.top h1 { font-size: 1.8rem; font-weight: 900; color: var(--navy); }
.top__right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.storestate { display: flex; padding: 4px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.storestate button { padding: 7px 12px; border-radius: 9px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.storestate button[aria-checked="true"] { background: var(--navy); color: #fff; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--navy); }
.live i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 191, 106, .2); }
.live.is-closed i { background: var(--danger); box-shadow: 0 0 0 4px rgba(239, 68, 88, .2); }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: auto 0 0 0; height: auto; z-index: 30; flex-direction: row; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); gap: 0; }
  .side__logo, .side__foot { display: none; }
  .nav { grid-template-columns: repeat(7, 1fr); width: 100%; gap: 1px; }
  .nav a span { font-size: .56rem; }
  .nav a { flex-direction: column; gap: 3px; padding: 8px 2px; font-size: .66rem; text-align: center; }
  .nav__badge { position: absolute; top: 2px; right: 10%; margin: 0; }
  .main { padding: 0 14px 110px; }
  .top h1 { font-size: 1.4rem; }
}

/* tarjetas y secciones */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1.2rem; color: var(--navy); margin-bottom: 4px; }
.card > p.help { margin: 0 0 16px; color: var(--muted); font-size: .88rem; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.grid2 > * { min-width: 0; }
.grid2 > .card + .card { margin-top: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-weight: 700; font-size: .82rem; color: var(--navy); }
.field small { color: var(--muted); font-size: .76rem; }
.in, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 0; background: #f5f8fe; box-shadow: inset 0 0 0 1.5px var(--line); outline: none; font-size: .92rem;
}
.field textarea { height: auto; min-height: 70px; padding: 10px 12px; resize: vertical; }
.in:focus, .field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--sky); background: #fff; }
.in--sm { height: 36px; font-size: .88rem; }
.in--num { width: 110px; text-align: right; }
.money { position: relative; display: inline-flex; align-items: center; }
.money::before { content: '$'; position: absolute; left: 10px; color: var(--muted); font-weight: 700; font-size: .85rem; pointer-events: none; }
.money .in, .field .money input:not([type]) { padding-left: 24px; }
.field .money, .field .pct { display: flex; }
.pct { position: relative; display: inline-flex; align-items: center; }
.pct::after { content: '%'; position: absolute; right: 10px; color: var(--muted); font-weight: 700; font-size: .85rem; pointer-events: none; }
.pct .in, .field .pct input:not([type]) { padding-right: 28px; }

/* interruptor */
.sw { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .85rem; font-weight: 600; user-select: none; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { width: 40px; height: 24px; border-radius: 999px; background: #cfd9ea; position: relative; transition: background .2s; flex: none; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.sw input:checked + i { background: var(--ok); }
.sw input:checked + i::after { transform: translateX(16px); }
.sw input:focus-visible + i { outline: 3px solid var(--sky); outline-offset: 2px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: .8rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--navy); }
.chip.is-on { background: var(--navy); color: #fff; box-shadow: none; }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .02em; background: #eef3fb; color: var(--navy); white-space: nowrap; }
.tag--ok { background: rgba(31, 191, 106, .14); color: #0f7a42; }
.tag--warn { background: rgba(245, 158, 11, .16); color: #8a5300; }
.tag--bad { background: rgba(239, 68, 88, .12); color: #b4192d; }
.tag--sky { background: rgba(64, 175, 254, .16); color: #0b5c99; }

/* ---------- pedidos ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.stat small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.stat b { display: block; font-family: var(--f-display); font-size: 1.6rem; color: var(--navy); }
.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.col { background: rgba(255, 255, 255, .55); border-radius: var(--r); padding: 10px; min-height: 200px; box-shadow: inset 0 0 0 1.5px var(--line); }
.col__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-family: var(--f-display); font-weight: 800; color: var(--navy); }
.col__head span { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.col--nuevo .col__head span { background: var(--cheddar); color: var(--navy-ink); }
.col__empty { text-align: center; color: var(--muted); font-size: .82rem; padding: 26px 6px; }
.order { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 6px 18px -12px rgba(0, 21, 54, .45); margin-bottom: 10px; display: grid; gap: 10px; border-left: 5px solid var(--sky); }
.order.is-new { border-left-color: var(--cheddar); animation: flash 1.2s ease-in-out 3; }
@keyframes flash { 50% { box-shadow: 0 0 0 4px rgba(255, 197, 49, .6); } }
.order__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order__num { font-family: var(--f-display); font-weight: 900; font-size: 1.15rem; color: var(--navy); }
.order__time { margin-left: auto; font-size: .76rem; color: var(--muted); font-weight: 600; }
.order__who { font-weight: 700; }
.order__who a { color: var(--navy); font-weight: 600; font-size: .82rem; }
.order__addr { background: #f5f8fe; border-radius: 10px; padding: 10px; font-size: .84rem; display: grid; gap: 8px; }
.order__addr b { color: var(--navy); }
.order__items { margin: 0; padding: 0; list-style: none; font-size: .86rem; display: grid; gap: 4px; }
.order__items li > span { font-weight: 700; }
.order__items small { display: block; color: var(--muted); padding-left: 18px; }
.order__items .gift { color: #0f7a42; font-weight: 700; }
.order__note { background: #fff7dc; color: #6b4d00; border-radius: 10px; padding: 8px 10px; font-size: .82rem; }
.order__tot { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px dashed var(--line); padding-top: 8px; font-size: .85rem; }
.order__tot b { font-family: var(--f-display); font-size: 1.15rem; color: var(--navy); }
.order__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.order__actions .btn--ok, .order__actions .btn--dark { flex: 1; }
@media (max-width: 860px) { .board { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; } .col { scroll-snap-align: start; } }

/* ---------- listas (menú / promos) ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .in { max-width: 280px; }
.items { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 4px 14px -10px rgba(0, 21, 54, .4); }
.item.is-off { opacity: .6; }
.item__img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--navy); display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 900; }
.item__img img { width: 100%; height: 100%; object-fit: cover; }
.item__name { font-family: var(--f-display); font-weight: 800; color: var(--navy); }
.item__meta { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.item__ctrl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .item { grid-template-columns: 48px 1fr; } .item__img { width: 48px; height: 48px; } .item__ctrl { grid-column: 1 / -1; justify-content: flex-start; } }
.minirow { display: grid; grid-template-columns: 1fr 130px auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.minirow:last-child { border: 0; }
@media (max-width: 560px) { .minirow { grid-template-columns: 1fr 110px; } }

/* ---------- precios ---------- */
.ptable { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ptable th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.ptable td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable tr.grp td { background: #f5f8fe; font-family: var(--f-display); font-weight: 800; color: var(--navy); padding-top: 12px; }
.ptable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable .sug { font-family: var(--f-display); font-weight: 800; color: var(--navy); font-size: 1rem; }
.ptable tr.diff .cur { color: #8a5300; font-weight: 700; }
.ptable-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.formula { background: #f5f8fe; border-radius: 12px; padding: 12px 14px; font-size: .85rem; color: var(--navy); }

/* ---------- configuración ---------- */
.hours { display: grid; gap: 6px; }
.hours__row { display: grid; grid-template-columns: 92px auto 1fr; gap: 10px; align-items: center; }
.hours__row .in { width: 100%; min-width: 0; padding: 0 8px; }
.hours__times { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; min-width: 0; }
.map { height: 260px; border-radius: 12px; overflow: hidden; background: #dde8f7; margin-top: 8px; }
.pin span { position: absolute; left: 3px; top: 0; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--navy); box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 0 0 7px var(--navy), inset 0 0 0 14px var(--sky); }

.envgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; align-items: start; }
.envgrid .field { align-content: start; }
@media (max-width: 420px) { .envgrid { grid-template-columns: 1fr; } }

/* zonas de entrega */
.zgrid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .zgrid { grid-template-columns: 1fr; } }
.zmap { height: 460px; border-radius: 14px; overflow: hidden; background: #dde8f7; position: sticky; top: 80px; z-index: 0; }
@media (max-width: 980px) { .zmap { height: 320px; position: relative; top: 0; } }
.zlist { display: grid; gap: 10px; }
.zona { border-radius: 14px; background: #f5f8fe; box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.zona.is-sel { background: #fff; box-shadow: inset 0 0 0 2px var(--sky), 0 8px 24px -14px rgba(0, 21, 54, .4); }
.zona.is-off { opacity: .65; }
.zona__head { display: grid; grid-template-columns: 14px 1fr auto auto auto; gap: 8px; align-items: center; padding: 10px 10px 10px 12px; cursor: pointer; }
.zona__dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.zona__head .in { background: transparent; box-shadow: none; font-weight: 800; font-family: var(--f-display); color: var(--navy); padding: 0 4px; }
.zona__head .in:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--sky); }
.zona__sum { padding: 0 12px 12px 34px; font-size: .8rem; color: var(--muted); cursor: pointer; }
.zona__body { padding: 4px 14px 14px; }
.range { width: 100%; accent-color: var(--navy); }
.zh3 { font-size: 1rem; color: var(--navy); margin: 0 0 10px; }
.ztest { margin-top: 16px; padding-top: 16px; border-top: 1.5px dashed var(--line); }
.ztest .money .in { padding-left: 24px; }
#ztRes { margin: 10px 0 0; }

/* personalización */
.pz { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
@media (max-width: 1180px) { .pz { grid-template-columns: 1fr; } .pz-prev { order: -1; position: relative !important; top: 0 !important; } }
.pz-form > .card + .card { margin-top: 16px; }
.pz-prev { position: sticky; top: 80px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.pz-frame { margin: 0 auto 8px; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 8px #0b1a33; }
.pz-frame iframe { display: block; border: 0; background: #fff; }
.pz-frame--celular { width: 360px; max-width: 100%; height: 640px; }
.pz-frame--celular iframe { width: 100%; height: 100%; }
.pz-frame--compu { width: 100%; height: 520px; border-radius: 12px; box-shadow: 0 0 0 4px #0b1a33; }
.pz-frame--compu iframe { width: 1280px; height: 1040px; transform: scale(.305); transform-origin: 0 0; }
@media (max-width: 1180px) { .pz-frame--compu iframe { transform: scale(.5); width: 200%; height: 200%; } }
.pz-logo { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pz-logo__prev { width: 170px; height: 100px; border-radius: 14px; background: var(--navy-deep); display: grid; place-items: center; padding: 12px; }
.pz-logo__prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pz-logo__prev.is-pill img { background: #fff; border-radius: 10px; padding: 6px 8px; }
.pz-logo__ctrl { display: grid; gap: 8px; justify-items: start; flex: 1; min-width: 200px; }
.pz-paletas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 14px; }
.pz-paleta { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; }
.pz-paleta span { height: 30px; }
.pz-paleta small { grid-column: 1 / -1; padding: 6px; font-size: .72rem; font-weight: 700; color: var(--navy); }
.pz-paleta:hover { box-shadow: inset 0 0 0 2px var(--sky); }
.pz-colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pz-color { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: #f5f8fe; }
.pz-color input[type="color"] { width: 48px; height: 48px; border: 0; padding: 0; border-radius: 10px; background: none; cursor: pointer; flex: none; }
.pz-color span { display: grid; gap: 4px; min-width: 0; font-size: .8rem; color: var(--navy); }
.pz-color .in { width: 100px; text-transform: uppercase; font-family: monospace; }
.pz-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pz-font { padding: 10px 8px; border-radius: 12px; background: #f5f8fe; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 1.6rem; color: var(--navy); display: grid; gap: 2px; }
.pz-font small { font-family: var(--f-body); font-size: .7rem; color: var(--muted); }
.pz-font.is-on, .pz-estilo.is-on, .pz-foto.is-on { box-shadow: inset 0 0 0 2.5px var(--sky); background: #fff; }
.pz-estilos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pz-estilo { display: grid; gap: 6px; justify-items: center; padding: 10px; border-radius: 12px; background: #f5f8fe; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: .8rem; color: var(--navy); }
.pz-mini { width: 100%; max-width: 110px; height: 60px; border-radius: 8px; background: linear-gradient(135deg, var(--navy), var(--navy-ink)); position: relative; display: block; }
.pz-mini b { position: absolute; background: rgba(255, 255, 255, .85); border-radius: 3px; height: 6px; }
.pz-mini--foto b:nth-child(1) { left: 8px; top: 16px; width: 40%; } .pz-mini--foto b:nth-child(2) { left: 8px; top: 28px; width: 30%; }
.pz-mini--foto b:nth-child(3) { right: 8px; top: 12px; width: 32px; height: 36px; background: #e39d3f; border-radius: 6px; }
.pz-mini--centrado b:nth-child(1) { left: 35%; top: 10px; width: 30%; height: 10px; background: var(--sky); } .pz-mini--centrado b:nth-child(2) { left: 20%; top: 28px; width: 60%; } .pz-mini--centrado b:nth-child(3) { left: 30%; top: 40px; width: 40%; }
.pz-mini--imagen { background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)), radial-gradient(circle at 50% 70%, #e39d3f 0 22%, #5a3020 23% 30%, #2b1a10 31%); }
.pz-mini--imagen b:nth-child(1) { left: 20%; top: 18px; width: 60%; } .pz-mini--imagen b:nth-child(2) { left: 30%; top: 30px; width: 40%; } .pz-mini--imagen b:nth-child(3) { display: none; }
.pz-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.pz-foto { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f5f8fe; box-shadow: inset 0 0 0 1.5px var(--line); padding: 0; display: grid; place-items: center; cursor: pointer; font-size: 1.3rem; color: var(--navy); }
.pz-foto img { width: 100%; height: 100%; object-fit: cover; }
.pz-foto.is-on img { outline: 3px solid var(--sky); outline-offset: -3px; }
.pz-thumb { width: 90px; height: 56px; object-fit: cover; border-radius: 8px; }
.pz-secs { display: grid; gap: 10px; margin-bottom: 14px; }

/* zona para subir fotos (arrastrar o buscar en el dispositivo) */
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; cursor: pointer;
  background: #f5f8fe; border: 2px dashed rgba(0, 39, 98, .25); transition: border-color .2s, background .2s; min-height: 96px; }
.drop:hover, .drop:focus-visible { border-color: var(--sky); background: #fff; }
.drop.is-over { border-color: var(--sky); background: rgba(64, 175, 254, .12); border-style: solid; }
.drop.is-loading { opacity: .6; pointer-events: none; }
.drop img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; flex: none; }
.drop__ico { width: 64px; height: 64px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 1.8rem; flex: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.drop p { margin: 0; display: grid; gap: 2px; color: var(--navy); font-size: .92rem; }
.drop p span { color: var(--muted); font-size: .8rem; }
.drop--sm { min-height: 0; padding: 4px; width: 60px; height: 60px; justify-content: center; flex: none; }
.drop--sm img { width: 50px; height: 50px; }
.drop--sm .drop__ico { width: 44px; height: 44px; font-size: 1.2rem; box-shadow: none; background: transparent; }
label.is-over { outline: 3px dashed var(--sky); outline-offset: 3px; }

/* fidelización */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding: 4px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.tab:hover { background: #f5f8fe; color: var(--navy); }
.tab.is-on { background: var(--navy); color: #fff; }
.stat span { display: block; margin-top: 2px; }
.ideas { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 12px; font-size: .9rem; }
.ideas a { color: var(--navy); font-weight: 700; }
.nivrow { display: grid; grid-template-columns: 1fr 110px 110px 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.nivrow--head { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.nivrow .in[readonly] { opacity: .6; }
.cupcode { font-family: monospace; font-size: .95rem; letter-spacing: .05em; background: #f5f8fe; padding: 3px 8px; border-radius: 6px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 12, 34, .55); }
.modal__panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(calc(100% - 24px), 620px); max-height: 90svh; overflow-y: auto; background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: #f1f5fb; font-weight: 800; color: var(--navy); }
.modal h2 { font-size: 1.4rem; color: var(--navy); margin-bottom: 16px; padding-right: 40px; }
.vrow { display: grid; grid-template-columns: 1fr 140px 36px; gap: 8px; margin-bottom: 8px; }
.vrow button { border-radius: 10px; background: #fdecee; color: var(--danger); font-weight: 800; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { position: relative; }
.days input { position: absolute; opacity: 0; }
.days span { display: inline-grid; place-items: center; min-width: 46px; height: 36px; padding: 0 8px; border-radius: 10px; background: #f5f8fe; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: .8rem; color: var(--muted); cursor: pointer; }
.days input:checked + span { background: var(--navy); color: #fff; box-shadow: none; }
.preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; margin-top: 6px; background: #f5f8fe; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: var(--navy-ink); color: #fff; font-weight: 700; font-size: .9rem; transition: transform .3s, opacity .3s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) { .toast { bottom: 90px; } }
