:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #16181d;
  --ink-2: #4a505c;
  --muted: #6b7280;
  --line: #e3e6eb;
  --primary: #2443e6;
  --primary-ink: #ffffff;
  --bar: #2443e6;
  --ok-bg: #e5f5ea; --ok-ink: #17692f;
  --off-bg: #f1f2f4; --off-ink: #5b616b;
  --warn-bg: #fff3d1; --warn-ink: #7a5300;
  --bad-bg: #fde8e8; --bad-ink: #a11c1c;
  --danger: #c62828;
  --notice-bg: #e8f1ff; --notice-ink: #174a9c;
  --alert-bg: #fdecec; --alert-ink: #9b1c1c;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #181b21; --ink: #eceef2; --ink-2: #b5bac4; --muted: #8b919c; --line: #2a2e36;
    --primary: #8093ff; --primary-ink: #0f1115; --bar: #8093ff;
    --ok-bg: #173323; --ok-ink: #8fdca8; --off-bg: #23262d; --off-ink: #a3a8b2; --warn-bg: #3a2f10; --warn-ink: #f3d27a; --bad-bg: #3d1717; --bad-ink: #ffb3b3;
    --notice-bg: #172a47; --notice-ink: #a9c8ff; --alert-bg: #3a1717; --alert-ink: #ffb4b4;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--primary); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
h3 { font-size: .95rem; margin: 1rem 0 .4rem; color: var(--ink-2); }
code { font-size: .9em; background: var(--off-bg); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
small { font-size: .82rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn.danger { color: var(--danger); border-color: currentColor; background: transparent; }
.btn.block { display: flex; width: 100%; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Perfil público ---------- */
body.public { background: var(--bg); }
.profile { --accent: var(--primary); max-width: 480px; margin: 0 auto; padding-bottom: 40px; }
.profile-banner { height: 140px; background: var(--accent); }
.profile-card { margin: -64px 16px 0; padding: 0 20px 24px; background: var(--surface); border-radius: 20px; text-align: center; box-shadow: 0 6px 24px rgb(0 0 0 / .08); }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); margin-top: -56px; background: var(--off-bg); }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 700; color: #fff; background: var(--accent); }
.avatar.small { width: 56px; height: 56px; margin: 0; border: 0; }
.profile h1 { margin-top: .5rem; }
.subtitle { margin: 0 0 .5rem; color: var(--ink-2); font-weight: 500; }
.bio { color: var(--ink-2); margin: .75rem 0 1.25rem; white-space: pre-line; }
.profile .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; margin: 1rem 0; min-height: 52px; font-size: 1.05rem; }
.links { display: grid; gap: 10px; }
.link-btn { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; text-align: left; }
.link-btn .ic { color: var(--accent); }
.link-btn:hover, .link-btn:focus-visible { border-color: var(--accent); }
.center-msg { max-width: 420px; margin: 20vh auto 0; padding: 0 16px; text-align: center; }

/* ---------- Admin ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar form { margin: 0; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.wide { max-width: 1040px; margin: 0 auto; padding: 20px 16px 60px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 24px 16px 60px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.row form { margin: 0; }
.stack { display: grid; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 16px; }
.qr-panel { text-align: center; }
.qr-panel img { background: #fff; padding: 8px; border-radius: 8px; }
.search input { width: 100%; margin: 12px 0; }
.empty { padding: 32px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.notice { background: var(--notice-bg); color: var(--notice-ink); padding: 10px 14px; border-radius: 10px; }
.alert { background: var(--alert-bg); color: var(--alert-ink); padding: 10px 14px; border-radius: 10px; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; vertical-align: middle; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.off { background: var(--off-bg); color: var(--off-ink); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.nowrap { white-space: nowrap; }

.table-wrap { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
table.compact td { padding: 6px 8px; }

/* ---------- Formularios ---------- */
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; }
.field { display: grid; gap: 4px; }
.field > span { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input:not([type]), textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit;
}
input[readonly] { font-size: .9rem; }
input[type=color] { width: 64px; height: 44px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
input:focus-visible, textarea:focus-visible, .btn:focus-visible, .bar-slot:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.photo-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.copy-row { display: flex; gap: 8px; margin-bottom: 12px; }
.copy-row input { flex: 1; min-width: 0; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--surface) 30%); }

/* ---------- Estadísticas ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.tile-value { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile-label { font-size: .85rem; color: var(--muted); }
.chart { margin: 0; }
.chart figcaption { font-size: .9rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.chart-body { display: flex; gap: 8px; height: 140px; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: .75rem; color: var(--muted); text-align: right; min-width: 1.5em; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.bar-slot { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; }
.bar { width: 100%; max-width: 14px; margin: 0 auto; background: var(--bar); border-radius: 4px 4px 0 0; }
.bar-slot:hover .bar, .bar-slot:focus-visible .bar { opacity: .75; }
.bar-slot:hover::after, .bar-slot:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); font-size: .78rem; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 2;
}
.bar-slot:first-child:hover::after, .bar-slot:nth-child(-n+4):hover::after { left: 0; transform: none; }
.bar-slot:last-child:hover::after, .bar-slot:nth-last-child(-n+4):hover::after { left: auto; right: 0; transform: none; }
.chart-x { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); padding-left: calc(1.5em + 8px); margin-top: 4px; }
details { margin-top: 10px; font-size: .9rem; }
summary { cursor: pointer; color: var(--primary); }

/* ---------- Google ---------- */
.g-stars { position: relative; display: inline-block; color: var(--line); letter-spacing: 1px; font-size: .9em; line-height: 1; }
.g-stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #f5b301; }
.g-mini { color: var(--ink-2); }
.g-results { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.g-results li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.g-results li > div { min-width: 0; }
.g-results form { margin: 0; flex: none; }
.g-manual { margin-top: 12px; }
.g-manual .copy-row { margin: 8px 0 4px; }
.meter-cell { width: 55%; }
.meter { display: block; height: 6px; background: var(--off-bg); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--bar); border-radius: 99px; }

/* Campo de link con el dominio al frente */
.slug-row { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overflow: hidden; }
.slug-prefix { display: flex; align-items: center; padding: 0 2px 0 12px; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.slug-row input[type=text] { border: 0; border-radius: 0; padding-left: 0; min-width: 0; }
.slug-row:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.slug-row input:focus-visible { outline: none; }

.inline-form { margin: 0; display: inline; }
td.actions { text-align: right; white-space: nowrap; vertical-align: middle; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pill.bad { background: var(--bad-bg); color: var(--bad-ink); }
.pay-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pay-row .field { flex: 1 1 140px; }
select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; width: 100%; }
h1 .pill { font-family: inherit; }

/* ---------- Página de planes ---------- */
body.plans { --pro: #2443e6; --pro-ink: #ffffff; --pro-soft: #eef1ff; --max: #0d1660; --max-ink: #ffffff; --max-soft: #e8ebf7; background: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.plans { --pro: #8093ff; --pro-ink: #0f1115; --pro-soft: #1b2142; --max: #c4ccff; --max-ink: #0f1115; --max-soft: #222842; } }
.pl { max-width: 760px; margin: 0 auto; padding: 32px 16px 48px; display: grid; gap: 24px; }
.pl-head { text-align: center; display: grid; gap: 10px; justify-items: center; }
.pl-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.pl-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--pro); color: var(--pro-ink); }
.pl-mark .ic { width: 22px; height: 22px; }
.pl-head h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); letter-spacing: -.02em; text-wrap: balance; margin: 4px 0 0; }
.pl-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.pl-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pl-plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px 18px; display: grid; gap: 4px; align-content: start; }
.pl-plan h2 { font-size: 1.35rem; margin: 0; }
.pl-for { margin: 0 0 8px; color: var(--ink-2); font-size: .95rem; }
.pl-price { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pl-price strong { font-size: 2.1rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pl-price span { color: var(--muted); font-weight: 600; }
.pl-sub { margin: 0; color: var(--ink-2); font-weight: 600; }
.pl-sub strong { font-size: 1.15rem; color: var(--ink); }
.pl-quote strong { font-size: 1.6rem; }
.pl-pro { border: 2px solid var(--pro); background: var(--pro-soft); }
.pl-max { border: 2px solid var(--max); background: var(--max-soft); }
.pl-badge { white-space: nowrap; position: absolute; top: -12px; left: 16px; background: var(--pro); color: var(--pro-ink); font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.pl-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pl-table { width: 100%; border-collapse: collapse; }
.pl-table { table-layout: fixed; }
.pl-table th, .pl-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: normal; }
.pl-table tbody tr:last-child th, .pl-table tbody tr:last-child td { border-bottom: 0; }
.pl-table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pl-table thead th:not(:first-child), .pl-table td { text-align: center; width: 20%; }
.pl-table thead th:first-child { width: auto; }
.pl-table tbody th { font-weight: 500; text-align: left; color: var(--ink); font-size: .95rem; }
.pl-col-pro { background: var(--pro-soft); }
.pl-table thead .pl-col-pro { color: var(--pro); }
.pl-col-max { background: var(--max-soft); }
.pl-table thead .pl-col-max { color: var(--max); }
.pl-col-max .pl-yes { background: var(--max); color: var(--max-ink); }
.pl-yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pro); color: var(--pro-ink); }
.pl-yes .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.pl-no { color: var(--muted); font-size: 1.2rem; }
.pl-note { font-size: .82rem; font-weight: 600; color: var(--ink-2); line-height: 1.3; display: inline-block; }
.pl-foot { display: grid; justify-items: center; gap: 10px; text-align: center; }
.pl-cta { display: inline-flex; align-items: center; gap: 10px; background: #1fa855; color: #fff; text-decoration: none; font-weight: 700; padding: 14px 22px; border-radius: 14px; font-size: 1.05rem; }
.pl-cta .ic { width: 22px; height: 22px; }
.pl-url { margin: 0; color: var(--muted); font-weight: 600; }
.pl-short { display: none; }
@media (max-width: 560px) {
  .pl-long { display: none; }
  .pl-short { display: inline; }
  .pl-table thead th:not(:first-child), .pl-table td { width: 21%; }
  .pl-plans { grid-template-columns: 1fr; gap: 20px; }
  .pl-table th, .pl-table td { padding: 10px 5px; }
  .pl-table thead th { font-size: .7rem; letter-spacing: .02em; }
  .pl-table tbody th { font-size: .88rem; }
  .pl-note { font-size: .75rem; }
}

/* Versión imagen: 1080×1350, siempre clara */
body.plans.poster { --bg: #f3f5fb; --surface: #ffffff; --ink: #121522; --ink-2: #3f4659; --muted: #697085; --line: #dfe3ee; --pro: #2443e6; --pro-ink: #fff; --pro-soft: #eef1ff; --max: #0d1660; --max-ink: #fff; --max-soft: #e8ebf7; color-scheme: light; width: 1080px; height: 1350px; overflow: hidden; background: var(--bg); color: var(--ink); }
.poster .pl { max-width: none; width: 1080px; height: 1350px; padding: 40px 72px 34px; gap: 24px; align-content: center; }
.poster .pl-long { display: none; }
.poster .pl-short { display: inline; }
.poster .pl-brand { font-size: 2rem; }
.poster .pl-mark { width: 52px; height: 52px; border-radius: 14px; }
.poster .pl-mark .ic { width: 32px; height: 32px; }
.poster .pl-head h1 { font-size: 2.6rem; }
.poster .pl-head p { font-size: 1.22rem; max-width: 56ch; }
.poster .pl-plans { gap: 26px; }
.poster .pl-plan { padding: 22px 30px 16px; border-radius: 24px; }
.poster .pl-plan h2 { font-size: 1.9rem; }
.poster .pl-for { font-size: 1.1rem; margin-bottom: 4px; }
.poster .pl-price strong { font-size: 2.6rem; }
.poster .pl-price span, .poster .pl-sub { font-size: 1.15rem; }
.poster .pl-sub strong { font-size: 1.5rem; }
.poster .pl-quote strong { font-size: 2.1rem; }
.poster .pl-badge { font-size: 1rem; padding: 6px 14px; top: -16px; left: 26px; }
.poster .pl-table-wrap { border-radius: 24px; }
.poster .pl-table th, .poster .pl-table td { padding: 5px 20px; }
.poster .pl-table thead th:not(:first-child), .poster .pl-table td { width: 17%; }
.poster .pl-table thead th { font-size: 1.05rem; }
.poster .pl-table tbody th { font-size: 1.15rem; }
.poster .pl-yes { width: 30px; height: 30px; }
.poster .pl-yes .ic { width: 24px; height: 24px; }
.poster .pl-note { font-size: .92rem; }
.poster .pl-cta { font-size: 1.45rem; padding: 18px 30px; }
.poster .pl-url { font-size: 1.5rem; color: var(--pro); }

/* ---------- Menú: botón en el perfil ---------- */
.profile .menu-cta { background: transparent; color: var(--accent); border: 2px solid var(--accent); margin: 0 0 14px; min-height: 50px; font-size: 1.02rem; }
.profile .menu-cta .ic { color: var(--accent); }

/* ---------- Menú público ---------- */
.mn { --accent: var(--primary); max-width: 560px; margin: 0 auto; padding: 0 16px 40px; }
.mn-head { display: flex; align-items: center; gap: 14px; padding: 22px 0 14px; }
.mn-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; background: var(--off-bg); }
.mn-initials { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.3rem; }
.mn-kicker { margin: 0; color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.mn-head h1 { margin: 0; font-size: 1.5rem; }
.mn-tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin: 0 -16px; padding-inline: 16px; background: var(--bg); scrollbar-width: none; }
.mn-tabs a { flex: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.mn-tabs a:hover, .mn-tabs a:focus-visible { border-color: var(--accent); color: var(--accent); }
.mn-section { scroll-margin-top: 64px; padding-top: 10px; }
.mn-section h2 { font-size: 1.15rem; margin: 14px 0 10px; }
.mn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mn-item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.mn-text { flex: 1; min-width: 0; }
.mn-row { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.mn-row h3 { margin: 0; font-size: 1.02rem; color: var(--ink); text-transform: none; letter-spacing: 0; }
.mn-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mn-text p { margin: 4px 0 0; color: var(--ink-2); font-size: .9rem; }
.mn-photo { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; background: var(--off-bg); }
.mn-order { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 99px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; }
.mn-order .ic { width: 16px; height: 16px; }
.mn-off { opacity: .6; }
.mn-sold { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--off-bg); color: var(--off-ink); }
.mn-foot { margin-top: 26px; display: grid; gap: 12px; }
.mn-profile { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; }
.mn-contact { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mn-contact a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; background: var(--surface); }
.mn-contact .ic { color: var(--accent); width: 18px; height: 18px; }

/* ---------- Menú: editor ---------- */
.menu-editor h3 { margin-top: 18px; }
.menu-new { margin: 14px 0 6px; }
.menu-new > summary { list-style: none; display: inline-flex; cursor: pointer; }
.menu-new > summary::-webkit-details-marker { display: none; }
.menu-new[open] > summary { margin-bottom: 12px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.menu-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.menu-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.menu-row.is-off { background: var(--off-bg); }
.menu-main { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.menu-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.menu-thumb-empty { background: var(--off-bg); border: 1px dashed var(--line); }
.menu-info { flex: 1 1 180px; min-width: 0; }
.menu-price { font-weight: 700; margin-left: 4px; }
.menu-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.icon-btn { min-width: 36px; padding: 0 8px; }
.icon-btn .ic { width: 16px; height: 16px; }
.btn[disabled] { opacity: .35; cursor: default; }
.menu-edit { margin-top: 8px; }
.menu-edit > summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: .9rem; }
.menu-edit[open] > summary { margin-bottom: 10px; }
.menu-edit .inline-form { display: block; margin-top: 10px; }

/* ---------- Imagen de fondo del perfil ---------- */
.profile.has-bg { position: relative; isolation: isolate; }
.profile.has-bg::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(rgb(0 0 0 / .15), rgb(0 0 0 / .35)), var(--bg-img) center / cover no-repeat; }
.profile.has-bg .profile-banner { background: transparent; height: 170px; }
.profile.has-bg .profile-card { box-shadow: 0 10px 40px rgb(0 0 0 / .25); }
.bg-thumb { width: 96px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }

/* ---------- Editor de botones ---------- */
.btn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.btn-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: end; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.btn-row.is-hidden { background: var(--off-bg); }
.btn-row.is-hidden input[type=text] { opacity: .5; }
.btn-row-icon { display: grid; place-items: center; width: 36px; height: 44px; color: var(--primary); }
.btn-hide { padding-bottom: 10px; font-size: .9rem; }
.btn-move { display: flex; gap: 4px; padding-bottom: 4px; }
@media (max-width: 560px) {
  .btn-row { grid-template-columns: auto minmax(0, 1fr); }
  .btn-hide, .btn-move { grid-column: 2; padding-bottom: 0; }
  .btn-move { justify-content: flex-start; }
}

/* Botones en fila (link de alta) */
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions form { margin: 0; }

/* Logo del botón del menú: se elige de una lista fija */
.mn-kicker { display: flex; align-items: center; gap: 6px; }
.mn-kicker .ic { width: 1.15em; height: 1.15em; }
.icon-pick { border: 0; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.icon-pick legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.icon-pick label { position: relative; cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.icon-pick span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); text-align: center; }
.icon-pick .ic { width: 26px; height: 26px; color: var(--ink); }
.icon-pick small { font-size: .72rem; line-height: 1.1; }
.icon-pick input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); }
.icon-pick input:checked + span .ic { color: var(--primary); }
.icon-pick input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.icon-pick .icon-group { grid-column: 1 / -1; margin: 8px 0 0; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.icon-details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.icon-details > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-size: .92rem; list-style: none; }
.icon-details > summary::-webkit-details-marker { display: none; }
.icon-current { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); }
.icon-current .ic { width: 22px; height: 22px; }
.icon-details > summary .link-like { margin-left: auto; color: var(--primary); text-decoration: underline; font-weight: 500; }
.icon-details[open] > summary { margin-bottom: 4px; }
.icon-details > .btn { margin-top: 12px; }
.icon-details { position: relative; }

/* ---------- Calificaciones privadas (Pro Max) ---------- */
.pill.pro { background: #0d1660; color: #fff; }
.fb-body { background: color-mix(in srgb, var(--accent, #2443e6) 10%, var(--bg)); }
.fb { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px 16px; }
.fb-card { width: min(100%, 420px); background: var(--surface); border-radius: 24px; padding: 28px 22px 24px; box-shadow: 0 10px 40px rgb(0 0 0 / .12); display: grid; justify-items: center; gap: 10px; text-align: center; }
.fb-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.fb-initials { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.6rem; }
.fb-name { margin: 0; font-weight: 700; color: var(--ink-2); }
.fb-card h1 { margin: 0; font-size: 1.45rem; letter-spacing: -.01em; }
.fb-form { display: grid; gap: 14px; width: 100%; }
.fb-stars { border: 0; margin: 4px 0 0; padding: 0; display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.fb-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-stars label { cursor: pointer; color: var(--line); padding: 2px; }
.fb-stars .ic { width: 46px; height: 46px; fill: currentColor; stroke: currentColor; }
.fb-stars input:checked ~ label, .fb-stars label:hover, .fb-stars label:hover ~ label { color: #f5b400; }
.fb-stars input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 8px; }
.fb-comment { display: grid; gap: 6px; text-align: left; font-size: .9rem; color: var(--ink-2); }
.fb-comment textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; }
.fb-send, .fb-google { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 14px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-decoration: none; }
.fb-google .ic { width: 20px; height: 20px; fill: currentColor; }
.fb-skip { font-size: .85rem; color: var(--muted); }
.fb-error { margin: 0; color: var(--bad-ink); font-weight: 600; }
.fb-text { margin: 0; color: var(--ink-2); }
.fb-done { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink); }
.fb-done .ic { width: 30px; height: 30px; stroke-width: 2.6; }
.fb-brand { margin: 0; font-size: .8rem; font-weight: 700; color: var(--muted); }
.fb-day { align-items: end; }
.fb-day-title { margin: 6px 0 0; }
.fb-dist { display: grid; gap: 6px; margin: 12px 0; max-width: 420px; }
.fb-bar { display: grid; grid-template-columns: 40px 1fr 28px; gap: 10px; align-items: center; font-size: .9rem; }
.fb-track { height: 10px; border-radius: 99px; background: var(--off-bg); overflow: hidden; }
.fb-track div { height: 100%; background: #f5b400; }
.fb-list { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: 10px; }
.fb-list li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fb-list p { margin: 6px 0 0; }
.fb-st { color: #f5b400; letter-spacing: 1px; }
.fb-overview { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fb-overview li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }

/* ---------- Personal del negocio (Pro Max) ---------- */
.st-banner { display: flex; align-items: center; gap: 12px; margin: 4px auto 6px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent, #2443e6) 10%, transparent); text-align: left; width: fit-content; max-width: 100%; }
.st-banner small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.st-banner strong { display: block; font-size: 1.05rem; }
.st-banner .st-role { display: block; font-size: .85rem; color: var(--ink-2); }
.st-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; font-size: 1rem; line-height: 1; }
.st-face.sm { width: 36px; height: 36px; font-size: .8rem; }
.st-initials { display: inline-grid; place-items: center; background: var(--accent, var(--primary)); color: #fff; font-weight: 800; }
.st-who { display: flex; align-items: center; gap: 10px; }
.st-rank td, .st-rank th { white-space: nowrap; }
.st-rank tbody tr:first-child td { background: color-mix(in srgb, #f5b400 12%, transparent); }
.st-list { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 10px; }
.st-item { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.st-period { align-items: end; }
.danger-text { color: var(--danger); }
