/* Cocinova — estilos compartidos (carta del cliente + panel del local) */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --ink: #12211c;
  --muted: #66726c;
  --line: #e8e1d5;
  --accent: #b5502b;
  --accent-ink: #ffffff;
  --accent-soft: #f7e5db;
  --accent-text: var(--accent);
  --danger: #c8321a;
  --danger-soft: #fde8e3;
  --ok: #1f7a4d;
  --ok-soft: #e1f3ea;
  --warn: #b97800;
  --warn-soft: #fff1d0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 33, 28, 0.06), 0 8px 24px rgba(18, 33, 28, 0.06);
  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1613;
    --surface: #17211d;
    --surface-2: #1e2b26;
    --ink: #f1efe9;
    --muted: #9aa8a1;
    --line: #2a3832;
    --accent: #e07a52;
    --accent-ink: #1c0d06;
    --accent-soft: #3a2118;
    --danger: #ff7a63;
    --danger-soft: #3a1c15;
    --ok: #4cc58a;
    --ok-soft: #153325;
    --warn: #f0b84a;
    --warn-soft: #3a2d10;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.02em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.shell { max-width: 720px; margin: 0 auto; padding: 0 16px 120px; }
.shell.wide { max-width: 1280px; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: var(--danger-soft); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ── Campos ── */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface);
}
textarea.input { min-height: 76px; resize: vertical; }
.input:focus { border-color: var(--accent); outline: none; }
.hint { font-size: 13px; color: var(--muted); }
.err { color: var(--danger); font-weight: 600; font-size: 14px; min-height: 20px; margin: 4px 0 10px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }

.seg { display: flex; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 14px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center; padding: 10px 6px; border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted);
}
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { position: absolute; opacity: 0; }
.switch i {
  width: 44px; height: 26px; border-radius: 999px; background: var(--line);
  position: relative; transition: background 0.15s; flex: none;
}
.switch i::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform 0.15s;
}
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 700; background: var(--surface-2); color: var(--muted);
}
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.accent { background: var(--accent-soft); color: var(--accent-text); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}

/* ── Landing ── */
.landing { padding-top: 56px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 22px var(--font-display); }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.landing h1 { font-size: clamp(36px, 9vw, 60px); line-height: 1.02; margin: 36px 0 14px; font-weight: 800; }
.landing h1 em { font-style: normal; color: var(--accent-text); }
.landing .lead { font-size: 18px; color: var(--muted); max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 40px; }
.features { display: grid; gap: 12px; }
.features .card h3 { font-size: 18px; margin-bottom: 4px; }

/* ── Carta ── */
.hero { padding: 28px 0 12px; }
.hero h1 { font-size: clamp(30px, 8vw, 44px); font-weight: 800; line-height: 1.05; }
.hero p { color: var(--muted); margin-top: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.off { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--warn-soft); color: var(--warn); font-weight: 600;
  padding: 12px 14px; border-radius: 14px; margin: 12px 0; font-size: 14px;
}
.banner a { font-weight: 800; }
.chips {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 16px; margin: 8px -16px 0; background: var(--bg);
  scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer;
}
.cat { font-size: 22px; font-weight: 800; margin: 26px 0 10px; scroll-margin-top: 70px; }
.item {
  display: flex; gap: 14px; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
}
.item.off { opacity: 0.55; }
.item-main { min-width: 0; }
.item-name { font-size: 17px; font-weight: 700; font-family: var(--font-body); letter-spacing: 0; }
.item-desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
.price { font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.qty { flex: none; display: flex; align-items: center; gap: 4px; }
.qty button {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 22px; font-weight: 700; cursor: pointer; line-height: 1;
}
.qty button.plus { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.qty b { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.qty .add { width: auto; border-radius: 999px; padding: 0 16px; font-size: 14px; font-weight: 700; }

.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 40%);
}
.cartbar button {
  max-width: 688px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between;
  align-items: center; min-height: 56px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 17px;
  cursor: pointer; box-shadow: 0 8px 24px rgba(217, 56, 30, 0.35);
}

/* ── Hoja inferior (carrito / formularios) ── */
dialog.sheet {
  border: 0; padding: 0; background: var(--bg); color: var(--ink);
  width: 100%; max-width: 560px; max-height: 92vh; border-radius: 24px 24px 0 0;
  margin: auto auto 0; overflow: hidden;
}
dialog.sheet::backdrop { background: rgba(8, 14, 11, 0.55); }
.sheet-in { display: flex; flex-direction: column; max-height: 92vh; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 8px; }
.sheet-head h2 { font-size: 24px; font-weight: 800; }
.x { border: 0; background: var(--surface-2); width: 38px; height: 38px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 8px 20px 20px; }
.sheet-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line .nm { font-weight: 600; min-width: 0; }
.sum { display: grid; gap: 6px; margin: 14px 0; }
.sum div { display: flex; justify-content: space-between; }
.sum .total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.sec { font-size: 14px; font-weight: 800; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

/* ── Seguimiento ── */
.back { display: inline-block; margin: 20px 0 8px; font-weight: 600; text-decoration: none; color: var(--muted); }
.ticket h1 { font-size: 30px; font-weight: 800; margin: 4px 0 16px; line-height: 1.1; }
.code { font: 700 15px var(--font-mono); color: var(--accent-text); letter-spacing: 0.12em; }
.steps { display: grid; gap: 0; margin: 8px 0 18px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--muted); font-weight: 600; position: relative; }
.steps li i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); flex: none; z-index: 1; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 30px; width: 2px; height: calc(100% - 14px); background: var(--line); }
.steps li.done { color: var(--ink); }
.steps li.done i { background: var(--ok); border-color: var(--ok); }
.steps li.done::after { background: var(--ok); }
.steps li.now { color: var(--ink); }
.steps li.now i { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 5px var(--accent-soft); }
.box { border-radius: var(--radius); padding: 14px 16px; background: var(--surface-2); margin: 12px 0; }
.box.warn { background: var(--warn-soft); }
.box.bad { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.box .alias { font: 700 20px var(--font-mono); margin: 4px 0 10px; word-break: break-all; }
.stack { display: grid; gap: 10px; margin-top: 16px; }
.foot-brand { text-align: center; margin: 36px 0 0; font-size: 13px; color: var(--muted); }

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; pointer-events: none; transition: all 0.2s; z-index: 50; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Panel ── */
.auth { max-width: 420px; margin: 0 auto; padding: 56px 16px; }
.auth h1 { font-size: 34px; font-weight: 800; margin: 24px 0 6px; }
.auth .sub { color: var(--muted); margin-bottom: 22px; }
.demo-box { margin-top: 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 700; cursor: pointer; text-decoration: underline; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.top .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top .who b { font: 800 18px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; padding: 10px 12px 0; max-width: 1280px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 14px; border: 0; background: transparent; font-weight: 700; color: var(--muted); white-space: nowrap; flex: none;
  border-bottom: 3px solid transparent; cursor: pointer;
}
.tab[aria-selected='true'] { color: var(--ink); border-color: var(--accent); }
.tab .n { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 6px; }
.view { max-width: 1280px; margin: 0 auto; padding: 16px 16px 80px; }

.board { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }
.col h2 { font-size: 16px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.col h2 .n { background: var(--surface-2); border-radius: 999px; padding: 1px 10px; font-size: 13px; }
.col .empty { color: var(--muted); font-size: 14px; padding: 18px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; }
.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.ocard.fresh { border-color: var(--accent); }
.ohead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ocode { font: 700 18px var(--font-mono); letter-spacing: 0.08em; }
.ohead .muted { margin-left: auto; font-size: 13px; }
.oname { font-weight: 700; margin-top: 8px; }
.olines { margin: 8px 0; display: grid; gap: 2px; font-size: 15px; }
.onote { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 6px 10px; font-size: 14px; margin: 6px 0; }
.ofoot { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; }
.oact { display: flex; flex-wrap: wrap; gap: 8px; }
.oact .btn.primary { flex: 1 1 100%; }
.done-list { margin-top: 24px; }
.done-list summary { cursor: pointer; font-weight: 800; margin-bottom: 10px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mrow .grow { flex: 1; min-width: 180px; }
.mrow.off .grow { opacity: 0.5; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.toolbar h2 { font-size: 24px; font-weight: 800; }
.grid2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.qr { background: #fff; padding: 12px; border-radius: 12px; width: 220px; max-width: 100%; }
.qr svg { width: 100%; height: auto; display: block; }
.checks { display: flex; gap: 16px; flex-wrap: wrap; }
.checks label { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.checks input { width: 20px; height: 20px; accent-color: var(--accent); }

@media (min-width: 720px) {
  dialog.sheet { margin: auto; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  body { background: #fff; }
  .toast, .cartbar, .top, .tabs { display: none; }
}

/* Asistente de alta */
.wsteps { display: flex; gap: 6px; margin: 4px 0 22px; counter-reset: w; }
.wsteps li { flex: 1; display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.wsteps li i { height: 5px; border-radius: 99px; background: var(--line); }
.wsteps li.done i, .wsteps li.now i { background: var(--accent); }
.wsteps li.now { color: var(--ink); }
@media (max-width: 420px) { .wsteps li span { display: none; } }

/* Carta del cliente en pantallas grandes: fondo cálido y la carta como tarjeta central */
body.cust { --backdrop: linear-gradient(160deg, #f2bf96 0%, #d98250 45%, #a8481f 100%); }
@media (prefers-color-scheme: dark) { body.cust { --backdrop: linear-gradient(160deg, #3a1f14 0%, #2a150d 55%, #1a0c07 100%); } }
.cartbar { left: 50%; transform: translateX(-50%); width: 100%; max-width: 720px; }
@media (min-width: 760px) {
  body.cust {
    background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.22) 0 2px, transparent 3px) 0 0 / 34px 34px,
                var(--backdrop);
    background-attachment: fixed;
  }
  body.cust .shell {
    background: var(--bg); min-height: 100vh;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 20px 60px rgba(60, 12, 0, 0.35);
  }
  body.cust .cartbar { background: linear-gradient(transparent, var(--bg) 45%); }
}

/* Horario automático */
.sched{margin-bottom:6px}
.sday{display:grid;grid-template-columns:76px 1fr auto 1fr;gap:8px;align-items:center;margin-bottom:6px}
.sday .input{padding:8px 10px;min-width:0}
.sd-on{display:flex;align-items:center;gap:6px;font-weight:700}
.banner.warn { background: #fde8e4; color: #8a1d0c; }
.plan-demo{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin-top:12px}
.plan-demo .btn{white-space:normal;text-align:center}
.sday select.input{appearance:auto;width:100%}

/* Paletas de marca (opcional): <html data-palette="verde|rojo|mostaza">. Sin atributo = terracota (color por defecto). */
:root[data-palette='verde'] { --accent: #2e7d45; --accent-ink: #ffffff; --accent-soft: #e0f1e4; }
:root[data-palette='mostaza'] { --accent: #f0b429; --accent-ink: #2b1d00; --accent-soft: #fff1c9; --accent-text: #8a5d00; }
[data-palette='verde'] body.cust { --backdrop: linear-gradient(160deg, #9bd69a 0%, #4aa264 45%, #1f6b3b 100%); }
[data-palette='mostaza'] body.cust { --backdrop: linear-gradient(160deg, #ffe08a 0%, #f2b01e 45%, #c98300 100%); }
@media (prefers-color-scheme: dark) {
  :root[data-palette='verde'] { --accent: #5fc47a; --accent-ink: #07170c; --accent-soft: #14301c; }
    :root[data-palette='mostaza'] { --accent: #f5c04a; --accent-ink: #231800; --accent-soft: #3a2c0c; --accent-text: #f5c04a; }
  [data-palette='verde'] body.cust { --backdrop: linear-gradient(160deg, #10301b 0%, #0b2013 55%, #06130b 100%); }
    [data-palette='mostaza'] body.cust { --backdrop: linear-gradient(160deg, #3a2c0c 0%, #2a1f08 55%, #1a1305 100%); }
}
:root[data-palette='rojo'] { --accent: #d9381e; --accent-ink: #ffffff; --accent-soft: #fde8e3; }
[data-palette='rojo'] body.cust { --backdrop: linear-gradient(160deg, #ff9a52 0%, #f2602f 45%, #d9381e 100%); }
@media (prefers-color-scheme: dark) { :root[data-palette='rojo'] { --accent: #ef5a3f; --accent-ink: #1a0b07; --accent-soft: #3a1c15; } }

/* Fotos de platos */
.item-side { position: relative; flex: none; width: 104px; height: 104px; }
.item-img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: var(--surface-2); display: block; }
.item-side .qty { position: absolute; right: 6px; bottom: 6px; background: var(--surface); border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22); }
.item-side .qty:empty { display: none; }
.item.has-img { align-items: flex-start; }
.mthumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.photo-pick { display: flex; gap: 14px; align-items: center; }
.photo-prev { width: 96px; height: 96px; border-radius: 14px; border: 1px dashed var(--line); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted); font-size: 13px; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.photo-btns { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.photo-btns label.btn { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.item-side .qty button { width: 34px; height: 34px; font-size: 20px; }
.item-side .qty b { min-width: 22px; }
.item-side .qty .add { padding: 0 12px; height: 34px; }

/* Foto a pantalla completa */
.item-img { cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.viewer { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; background: rgba(12, 8, 5, 0.95); color: #fff; }
.viewer.open { display: flex; }
.viewer figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px; max-width: 100%; }
.v-img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: 12px; touch-action: pinch-zoom; background: #222; animation: v-in .22s ease both; }
.viewer figcaption { text-align: center; font-size: 17px; max-width: 34ch; }
.viewer figcaption span { display: block; color: rgba(255, 255, 255, 0.72); font-size: 14px; margin-top: 4px; }
.v-x { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
@keyframes v-in { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

/* Ajustes de las fotos (evitan que la fila o la tarjeta se desarmen) */
.item-side .qty .add { width: auto; min-width: 0; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.item.has-img { align-items: center; }
.mrow .grow { min-width: 120px; }
.mact { flex-basis: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mthumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; cursor: pointer; }
.mthumb.ph { border: 1.5px dashed var(--line); background: var(--surface-2); font-size: 18px; padding: 0; display: grid; place-items: center; }

/* Zonas tocables de foto: la imagen no recibe toques (así iOS no hace su "levantar imagen") */
.img-hit { cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.img-hit img { pointer-events: none; -webkit-user-drag: none; }
.item-side .img-hit { width: 100%; height: 100%; }
.mthumb-wrap { flex: none; width: 48px; height: 48px; }
.photo-prev .img-hit { width: 100%; height: 100%; }
.mthumb-wrap .mthumb { width: 100%; height: 100%; }

/* Foto más chica con el botón debajo (sin superponer) */
.item-side { position: static; width: 96px; height: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.item-side .img-hit { width: 84px; height: 84px; }
.item-img { border-radius: 12px; }
.item-side .qty { position: static; background: none; box-shadow: none; border-radius: 0; justify-content: center; }
.item-side .qty button { width: 30px; height: 30px; font-size: 18px; }
.item-side .qty b { min-width: 20px; }
.item-side .qty .add { height: 34px; padding: 0 14px; font-size: 14px; }
.item.has-img { align-items: center; }

/* Visor: la X siempre arriba de la foto, y la foto queda debajo de la X */
.viewer figure { padding: calc(68px + env(safe-area-inset-top)) 16px 20px; }
.v-img { max-height: 72vh; max-height: 72dvh; }
.v-x { z-index: 5; width: 46px; height: 46px; background: rgba(255, 255, 255, 0.24); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }

/* Plato con foto: miniatura a la izquierda, mismo alto que un plato sin foto */
.item.has-img { padding: 10px 14px 10px 10px; gap: 12px; justify-content: flex-start; }
.item.has-img .item-main { flex: 1; }
.item-thumb { width: 64px; height: 64px; flex: none; }
.item-thumb .item-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }

/* Opciones por plato */
.og { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.og legend { font-weight: 800; font-size: 17px; padding: 0; margin-bottom: 4px; display: flex; flex-direction: column; }
.og legend small { font-weight: 600; color: var(--muted); font-size: 13px; }
.og.bad legend { color: var(--danger); }
.oc { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.oc input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.oc .on { flex: 1; font-weight: 600; min-width: 0; }
.oc .on small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.op { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; flex: none; }
.oadd { display: flex; gap: 12px; align-items: center; }
.oadd .btn { flex: 1; }
.inbag { background: var(--accent-soft); color: var(--accent-text); font-weight: 800; border-radius: 999px; min-width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: 13px; padding: 0 6px; margin-right: 6px; }
.oopts { color: var(--muted); font-size: 13px; }
.ogcard { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 12px; background: var(--surface); }
.ogh { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ogh .input { flex: 1; }
.ogs { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ogs select.input { width: auto; padding: 8px 10px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.chk input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.occ { display: grid; grid-template-columns: 1fr 86px 34px; gap: 6px; margin-bottom: 8px; align-items: center; }
.occ .full { grid-column: 1 / -1; font-size: 14px; padding: 8px 10px; }
.input.mini { width: 86px; padding: 8px 10px; }
.chk .input.mini { width: 64px; }
.ogh .x, .occ .x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 20px; line-height: 1; cursor: pointer; }

/* Sugerencias en el carrito */
.sug { display: grid; gap: 8px; }
.sug-i { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 12px; padding: 8px 10px; color: var(--ink); font: inherit; cursor: pointer; }
.sug-i img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; pointer-events: none; }
.sug-t { flex: 1; min-width: 0; display: grid; }
.sug-t b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-t small { color: var(--muted); }
.sug-p { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.row.wrap { flex-wrap: wrap; gap: 8px; }
.row.wrap > * { flex: 1 1 auto; min-width: max-content; white-space: nowrap; text-align: center; }
.row.wrap > .field { text-align: left; white-space: normal; min-width: 0; flex: 0 0 auto; }
.ver { text-align: center; color: var(--muted); font-size: 12px; margin: 24px 0 16px; font-family: var(--font-mono); }

/* Ingredientes que se pueden sacar (interruptores) */
.og-rm .switch.rm { display: flex; justify-content: flex-start; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.og-rm .switch.rm:last-child { border-bottom: 0; }
.og-rm .switch.rm input:not(:checked) ~ span { text-decoration: line-through; color: var(--muted); }

.sg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sg-c, .sg-all { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 36px; }
.sg-c.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.sg-all { border-style: dashed; color: var(--accent-text); }

/* Cupones y descuentos */
.cpn-row { display: flex; gap: 8px; align-items: stretch; }
.cpn-row .input { text-transform: uppercase; letter-spacing: .06em; }
.cpn { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.cpn-err { color: var(--danger); margin-top: 6px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
.sum .disc { color: var(--ok); font-weight: 600; }
.pill.promo { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; font-weight: 700; }

.eta { margin: -6px 0 14px; font-size: 16px; color: var(--muted); }
.eta b { color: var(--ink); }
.notif { margin-top: 14px; text-align: center; }
.notif .hint { margin-top: 6px; }

.rng { display: flex; align-items: center; gap: 6px; }
.rng .input { max-width: 84px; text-align: center; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0 14px; }

.geo { margin: -4px 0 12px; }
.sched select.input { flex: 1 1 140px; }
.seg input:disabled + span { opacity: .4; }

.tier { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tier .input { max-width: 92px; text-align: center; }
.tier span { color: var(--muted); font-size: 14px; }
.tier .x { margin-left: auto; }
.sched-tag { display: inline-block; background: var(--warn-soft); color: var(--warn); font-weight: 700; border-radius: 8px; padding: 3px 8px; font-size: 13px; margin: 2px 0 4px; }
.sched-grid { display: grid; gap: 12px; margin-top: 10px; }
.sched-list > summary { font-weight: 700; }
.tier span { white-space: nowrap; }
.tier .input { max-width: 78px; padding-left: 6px; padding-right: 6px; }

/* Resumen */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi b { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.kpi small { color: var(--muted); font-size: 12px; }
.delta { font-size: 12px; font-weight: 700; }
.delta.up { color: var(--ok); } .delta.down { color: var(--danger); }
.stat-card { margin-bottom: 14px; }
.stat-card h3 { font-size: 17px; margin-bottom: 12px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.bcol { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bcol i { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.blabs { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.hrow { margin-bottom: 10px; }
.hl { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.htrack { background: var(--accent-soft); border-radius: 999px; height: 8px; margin-top: 4px; overflow: hidden; }
.htrack i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.split { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; margin-bottom: 8px; }
.stat-seg { max-width: 360px; }

.team-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 14px; }
.team-add .field { flex: 1 1 180px; }
.mrow select.mini { width: auto; padding: 6px 10px; font-size: 14px; }
.top .who .tag { margin-left: 8px; }

/* Reseñas */
.review h3 { font-size: 18px; margin-bottom: 4px; }
.stars { display: flex; gap: 6px; }
.star { background: none; border: 0; font-size: 38px; line-height: 1; color: var(--muted); opacity: .4; cursor: pointer; padding: 2px 4px; min-width: 44px; min-height: 44px; transition: transform .08s; }
.star.on { color: #E0A21B; opacity: 1; }
.star:active { transform: scale(1.15); }
.stars-done { color: #E0A21B; font-size: 24px; letter-spacing: 2px; }
.stars-done .off, .rv-stars .off { color: var(--muted); opacity: .35; }

.rv-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 14px; }
.rv-avg { display: flex; flex-direction: column; align-items: flex-start; }
.rv-avg b { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.rv-avg small { color: var(--muted); }
.rv-stars { color: #E0A21B; letter-spacing: 1px; }
.rv-dist { flex: 1 1 180px; display: grid; gap: 4px; }
.rv-row { display: grid; grid-template-columns: 26px 1fr 26px; gap: 8px; align-items: center; font-size: 13px; }
.rv-row .htrack { margin: 0; }
.rv-list { display: grid; gap: 10px; }
.rv-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.rv-item.low { border-color: var(--danger); background: var(--danger-soft); }
.rv-item p { margin: 6px 0; }
.rv-top { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.review { margin-top: 14px; }

.subtabs{display:flex;gap:6px;overflow-x:auto;margin:0 0 14px;padding-bottom:2px}
.subtabs button{flex:none;border:1px solid var(--line,#ddd);background:transparent;color:inherit;border-radius:999px;padding:8px 14px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.subtabs button.on{background:var(--ink,#222);color:#fff;border-color:transparent}

details.fold>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between}
details.fold>summary::-webkit-details-marker{display:none}
details.fold>summary::after{content:"▾";color:var(--muted,#888)}
details.fold[open]>summary::after{content:"▴"}
details.fold>summary h3{margin:0}
details.fold[open]>summary{margin-bottom:10px}
details.fold:not(.card)>summary{font-size:14px;font-weight:600;margin:10px 0}

details.mcat{border-bottom:1px solid var(--line)}
details.mcat>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 2px}
details.mcat>summary::-webkit-details-marker{display:none}
details.mcat>summary h3{font-size:18px;margin:0}
details.mcat>summary span{margin-left:auto;font-size:13px}
details.mcat>summary::after{content:"▾";color:var(--muted,#888)}
details.mcat[open]>summary::after{content:"▴"}

.ostat{display:none}
@media (max-width:759px){
  .ostat{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;position:sticky;top:0;z-index:5;background:var(--bg);padding:8px 0;margin:0 0 10px}
  .ostat button{border:1.5px solid var(--line);background:var(--surface-2);color:inherit;border-radius:12px;padding:10px 4px;font:inherit;font-size:14px;font-weight:700;display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer}
  .ostat button .n{font-size:20px;font-weight:800}
  .ostat button.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
  .ostat .oc-new:not(.on) .n{color:var(--accent)}
  .board .col{display:none}
  .board .col.on{display:block}
  .board .col h2{display:none}
}

/* Leaflet (mapa) */
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: none;
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: none;
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: none;
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: none;
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

.gmap{height:220px;border-radius:12px;margin-top:10px;border:1.5px solid var(--line);overflow:hidden;position:relative;z-index:0;background:var(--surface-2)}
.gpin{filter:drop-shadow(0 3px 3px rgba(0,0,0,.35));background:none;border:0}
.gshop{font-size:22px;line-height:1;margin:-11px 0 0 -11px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.4))}
.leaflet-container{font:inherit;font-size:12px}

.gmap{background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:32px 32px}
.gnote{position:absolute;left:8px;right:8px;top:8px;z-index:900;background:var(--surface,#fff);border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-size:12px;color:var(--muted);margin-left:48px}

.cover{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius);margin-bottom:14px;background:var(--surface-2)}
.cover-prev{aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:var(--surface-2);border:1.5px dashed var(--line);display:grid;place-items:center;color:var(--muted);font-size:14px}
.cover-prev img{width:100%;height:100%;object-fit:cover;display:block}

.hero-id{display:flex;align-items:center;gap:14px}
.hero-logo{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:none;border:2px solid var(--line);background:#000}
.hero-txt{min-width:0}
.logo-prev{width:72px;height:72px;border-radius:50%;overflow:hidden;background:var(--surface-2);border:1.5px dashed var(--line);display:grid;place-items:center;color:var(--muted);font-size:12px;text-align:center;flex:none}
.logo-prev img{width:100%;height:100%;object-fit:cover;display:block}

.banner.hours{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}

/* Barra para dueños que miran su carta pública */
.ownerbar{display:inline-flex;margin:0 0 10px;align-self:flex-start}
