/* ComeBarato Cancún: estilo limpio tipo Stripe, azul Caribe. */
:root {
  --bg: #ffffff;
  --surface: #f6f9fc;
  --surface-2: #eef3f8;
  --text: #0a2540;
  --muted: #4f5b76;
  --faint: #8792a2;
  --border: #e3e8ee;
  --brand: #0a6cc2;
  --brand-hover: #0858a0;
  --brand-soft: #e7f1fb;
  --caramel: #e3a23b;
  --deal-bg: #fff3dc;
  --deal-text: #8a4b00;
  --ok: #0e7c4a;
  --ok-bg: #e7f6ee;
  --warn: #8a5a00;
  --warn-bg: #fff4db;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --wa: #0f7a40;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 1px rgba(10, 37, 64, .04), 0 2px 6px rgba(10, 37, 64, .06);
  --shadow: 0 13px 27px -5px rgba(50, 50, 93, .14), 0 8px 16px -8px rgba(0, 0, 0, .16);
  --topbar: 64px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
.h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.cap::first-letter { text-transform: uppercase; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 2000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(10, 108, 194, .45); outline-offset: 2px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 32px; padding-bottom: 56px; }
.narrow { max-width: 760px; }
.page > h2:not(:first-child) { margin-top: 36px; }
.wide { max-width: 1320px; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000; height: var(--topbar);
  display: flex; align-items: center; gap: 20px; padding: 0 20px;
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { width: 38px; height: 38px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name small { font-size: .72rem; font-weight: 600; color: var(--brand); letter-spacing: .04em; text-transform: uppercase; }
.mainnav { display: flex; align-items: center; gap: 4px; flex: 1; }
.mainnav a { color: var(--muted); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.mainnav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.mainnav a.active { color: var(--brand); background: var(--brand-soft); }
.mainnav .nav-biz { margin-left: auto; color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { font-size: .875rem; font-weight: 600; color: var(--muted); padding: 6px 8px; }
.lang-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; border-radius: 8px; cursor: pointer; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid var(--border); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .pts { font-size: .8rem; font-weight: 700; color: var(--muted); }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 220px; padding: 6px; display: flex; flex-direction: column; }
.usermenu .menu a, .usermenu .menu button { padding: 9px 12px; border-radius: 8px; color: var(--text); font: inherit; font-size: .95rem; text-align: left; background: none; border: 0; cursor: pointer; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--surface); text-decoration: none; }
.menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-head small { color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.avatar.sm { width: 24px; height: 24px; font-size: .72rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1; padding: 11px 16px;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s, color .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-ghost[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0b6233; color: #fff; }
.btn-link { background: none; color: var(--brand); padding-left: 6px; padding-right: 6px; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { padding: 8px 11px; font-size: .85rem; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.danger { color: var(--bad) !important; }

/* ---------- Tarjetas y etiquetas ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 16px; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); letter-spacing: .01em; }
.badge-deal { background: var(--deal-bg); color: var(--deal-text); text-transform: uppercase; letter-spacing: .05em; }
.badge-featured { background: var(--brand-soft); color: var(--brand); }
.badge-soft { background: var(--surface); color: var(--muted); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.price { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.usd { margin-left: 6px; font-size: .8rem; color: var(--muted); }
.price-tag { font-weight: 800; font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px; white-space: nowrap; color: var(--text); }
.notice { background: var(--brand-soft); color: var(--text); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.notice-ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notice[hidden] { display: none; }
.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status-ok { background: var(--ok-bg); color: var(--ok); }
.status-warn { background: var(--warn-bg); color: var(--warn); }
.status-bad { background: var(--bad-bg); color: var(--bad); }
.dot { color: var(--faint); margin: 0 6px; }
.ph { background: var(--surface-2) url('/img/caramelo-face.webp') center / 46% no-repeat; opacity: .9; filter: grayscale(.35); }

/* ---------- Mapa (inicio) ---------- */
.page-map .footer { margin-top: 0; }
.map-layout { display: grid; grid-template-columns: 410px 1fr; height: calc(100dvh - var(--topbar)); min-height: 520px; }
.side { overflow-y: auto; background: var(--surface); padding: 16px; border-right: 1px solid var(--border); }
.map-wrap { position: relative; }
.map { position: absolute; inset: 0; background: #e8eef3; }
.leaflet-tile-pane { filter: saturate(.75) contrast(.96) brightness(1.03); }
.map-actions { position: absolute; z-index: 500; left: 50%; transform: translateX(-50%); top: 14px; display: flex; gap: 8px; }
.map-btn { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 9px 15px; font: inherit; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); cursor: pointer; }
.map-btn:hover { text-decoration: none; background: var(--surface); color: var(--text); }
.map-btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.map-btn-primary:hover { background: var(--brand-hover); color: #fff; }

.hero-card { position: absolute; z-index: 500; right: 16px; top: 64px; width: 330px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 14px 10px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); }
.hero-card img { width: 86px; height: auto; flex: none; }
.hero-card strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.hero-card ul { margin: 0; padding: 0; list-style: none; font-size: .88rem; color: var(--muted); }
.hero-card li { padding-left: 18px; position: relative; margin: 2px 0; }
.hero-card li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--caramel); }
.hero-x { position: absolute; top: 4px; right: 6px; background: none; border: 0; font-size: 1.3rem; color: var(--faint); cursor: pointer; line-height: 1; padding: 4px; }

.deal h2.deal-name { font-size: 1.15rem; margin: 8px 0 2px; }
.deal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.deal .muted { margin-bottom: 6px; }
.deal-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 2px; margin: 4px 0 0; }
.deal-verified { margin: 0 0 12px; }
.deal-meta .price { font-size: 1.25rem; }
.deal-meta [data-dist]:not(:empty)::before { content: '·'; color: var(--faint); margin: 0 6px; }

.filters { padding: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { font: inherit; font-size: .85rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--muted); border: 1px solid var(--border); cursor: pointer; }
.chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
select, input, textarea {
  font: inherit; font-size: .95rem; color: var(--text); background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; box-shadow: inset 0 1px 1px rgba(10, 37, 64, .03);
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 108, 194, .15); }
.list-count { font-size: .85rem; color: var(--muted); margin: 4px 2px 8px; font-weight: 600; }
.meal-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.meal-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; box-shadow: var(--shadow-sm); }
.meal-item:hover { border-color: #c9d6e3; }
.meal-item.sel { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.meal-item .thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.meal-item strong { display: block; font-size: .95rem; line-height: 1.25; }
.meal-item .sub { font-size: .82rem; color: var(--muted); display: block; margin-top: 2px; }
.meal-item .meta { font-size: .75rem; color: var(--faint); display: block; margin-top: 2px; }
.meal-item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.meal-item .feat { font-size: .7rem; font-weight: 700; color: var(--brand); }
.meal-item .votes { font-size: .75rem; color: var(--muted); font-weight: 600; }
.empty-list { text-align: center; padding: 24px 12px; color: var(--muted); }
.empty-list img { width: 80px; margin: 0 auto 8px; }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { padding: 9px 0; border-top: 1px solid var(--border); font-size: .9rem; display: flex; flex-direction: column; }
.activity-list li:first-child { border-top: 0; padding-top: 0; }
.activity-list small { color: var(--faint); font-size: .78rem; }
.more { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .9rem; }

/* Pines de precio en el mapa */
.pin-wrap { background: none; border: 0; }
.pin {
  position: relative; display: inline-flex; align-items: center; gap: 3px; transform: translate(-50%, -100%);
  background: #fff; color: var(--text); font: 800 13px/1 var(--font); padding: 6px 9px; border-radius: 999px;
  border: 1px solid rgba(10, 37, 64, .14); box-shadow: 0 2px 6px rgba(10, 37, 64, .22); white-space: nowrap; cursor: pointer;
  transition: transform .12s;
}
.pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; background: inherit; border-right: 1px solid rgba(10, 37, 64, .14); border-bottom: 1px solid rgba(10, 37, 64, .14); transform: translateX(-50%) rotate(45deg); }
.pin.featured { background: var(--brand); color: #fff; border-color: var(--brand); }
.pin.featured::after { border-color: var(--brand); }
.pin.sel { transform: translate(-50%, -100%) scale(1.18); z-index: 10; background: var(--text); color: #fff; border-color: var(--text); }
.pin.sel::after { border-color: var(--text); }
.pin.dim { opacity: .35; }
.leaflet-marker-icon.pin-wrap:hover { z-index: 9999 !important; }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(10, 108, 194, .2); }
.leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--font); min-width: 220px; }
.pop h3 { font-size: 1rem; margin: 0 0 2px; }
.pop .muted { font-size: .82rem; margin: 0 0 8px; }
.pop ul { list-style: none; padding: 0; margin: 0 0 10px; }
.pop li { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 4px 0; border-top: 1px solid var(--border); }
.pop li:first-child { border-top: 0; }
.pop .btn { color: #fff; width: 100%; }
.leaflet-container a.btn-primary { color: #fff; }
.leaflet-control-attribution { font-size: 10px; }

/* ---------- Secciones SEO del inicio ---------- */
.seo { padding-top: 44px; padding-bottom: 40px; }
.seo h2 { margin-top: 36px; }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.zone-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.zone-card:hover { text-decoration: none; border-color: #bcd3ea; box-shadow: var(--shadow); color: var(--text); }
.zone-count { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--brand); }
.meal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.meal-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; color: var(--text); box-shadow: var(--shadow-sm); }
.meal-card:hover { text-decoration: none; color: var(--text); border-color: #bcd3ea; }
.meal-card-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.meal-card-body { display: flex; flex-direction: column; min-width: 0; }
.meal-card-body strong { font-size: .95rem; line-height: 1.25; }
.meal-card-body .muted { font-size: .82rem; }
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.how li { background: var(--surface); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.how li span { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.bizcta { margin-top: 40px; display: flex; align-items: center; gap: 20px; background: var(--text); color: #fff; border-radius: 16px; padding: 22px 28px; }
.bizcta h2 { margin: 0 0 4px; color: #fff; }
.bizcta p { margin: 0; color: #c4d2e3; }
.bizcta > div { flex: 1; }
.bizcta img { width: 80px; flex: none; }

/* ---------- Página de lugar ---------- */
.spot { padding-top: 20px; padding-bottom: 56px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.spot-head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.spot-photo { width: 260px; height: 190px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); flex: none; }
.spot-info { flex: 1; min-width: 0; }
.spot-info h1 { margin-bottom: 4px; }
.spot-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.spot-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.meals { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 10px; }
.meal { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.meal-photo { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; flex: none; }
.meal-main { flex: 1; min-width: 0; }
.meal-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.meal-head h3 { font-size: 1.05rem; margin: 0 0 4px; }
.meal-price { white-space: nowrap; }
.meal-price .price { font-size: 1.2rem; }
.meal-main p { margin: 0 0 6px; }
.meal-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.vote { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: #fff; }
.vote-btn { background: none; border: 0; padding: 7px 11px; font-size: .8rem; color: var(--faint); cursor: pointer; }
.vote-btn:hover { background: var(--surface); }
.vote-btn.on[data-vote="1"] { color: var(--ok); }
.vote-btn.on[data-vote="-1"] { color: var(--bad); }
.vote .score { font-weight: 800; min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.comment-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; margin-bottom: 16px; }
.comments { list-style: none; padding: 0; margin: 0; }
.comments li { padding: 14px 0; border-top: 1px solid var(--border); }
.comments li p { margin: 6px 0 0; }
.comments .empty { border-top: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lv { font-size: .72rem; font-weight: 700; color: var(--deal-text); background: var(--deal-bg); padding: 2px 6px; border-radius: 5px; }
.mini-map { height: 220px; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 14px; z-index: 0; }
.disclosure { background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--muted); }
.nearby { list-style: none; padding: 0; margin: 0; }
.nearby a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--text); }
.nearby a:hover { text-decoration: none; }
.nearby a > span:first-child { display: flex; flex-direction: column; }

/* ---------- Listas, tablas, formularios ---------- */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.spot-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.spot-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.spot-card h2 a { color: var(--text); }
.mini-meals { list-style: none; padding: 0; margin: 8px 0 0; }
.mini-meals li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.link-card { display: flex; flex-direction: column; color: var(--text); }
.link-card:hover { text-decoration: none; color: var(--text); border-color: #bcd3ea; }
.top-list { list-style: none; padding: 0; margin: 0; counter-reset: top; }
.top-list li { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.top-list li:first-child { border-top: 0; }
.plain { padding-left: 18px; color: var(--muted); }
.plain li { margin: 4px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table select { padding: 6px 8px; font-size: .85rem; width: auto; }
.podium td:first-child { font-weight: 800; color: var(--deal-text); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label, .form .label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--text); }
.form label small { font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 6px; }
.page-head-mascot { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.page-head-mascot img { flex: none; }
.auth { display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 420px; padding: 28px; }
.auth-mascot { margin: 0 auto 6px; }
.auth-card h1 { text-align: center; font-size: 1.6rem; }
.auth-card > .muted { text-align: center; }
.forgot-link { display: block; text-align: right; margin: 8px 0 14px; }
.empty-state { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { margin-top: 28px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 16px; margin-bottom: 8px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.faq details p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.checks li { position: relative; padding-left: 26px; margin: 8px 0; color: var(--muted); }
.checks li::before { content: ''; position: absolute; left: 2px; top: .35em; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }

/* ---------- Negocios ---------- */
.biz-hero { background: linear-gradient(180deg, var(--brand-soft), #fff); border-bottom: 1px solid var(--border); }
.biz-hero-inner { display: flex; align-items: center; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.biz-hero-inner > div { flex: 1; }
.biz-hero img { width: 190px; flex: none; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 16px; justify-content: center; margin: 16px 0; }
.plans-compact { justify-content: start; }
.plan { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan .checks { flex: 1; }
.plan-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 4px 0 12px; }
.plan-price strong { font-size: 2.2rem; letter-spacing: -.02em; }
.plan-price span { color: var(--muted); }
.stat-demo, .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.stat-demo div, .stat { background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; }
.stat-demo strong, .stat strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stat-demo span, .stat span { font-size: .8rem; color: var(--muted); }
.biz-list { display: flex; flex-direction: column; gap: 12px; }
.biz-row { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; margin: 0; }
.biz-row h2 { margin-bottom: 2px; }
.biz-row p { margin-bottom: 8px; }
.biz-row-stats { display: flex; gap: 18px; }
.biz-row-stats div { display: flex; flex-direction: column; text-align: right; }
.biz-row-stats strong { font-size: 1.3rem; }
.biz-row-stats span { font-size: .75rem; color: var(--muted); }
.biz-row-actions, .row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pub-ok { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.pub-ok h2 { color: var(--ok); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.meal-admin { list-style: none; margin: 0 0 18px; padding: 0; }
.meal-admin li { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.meal-admin .thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.meal-admin-main { display: flex; flex-direction: column; min-width: 0; }
.inactive { opacity: .5; }
.meal-form { background: var(--surface); border-radius: var(--radius); padding: 16px; }
.photo-pick { display: flex; align-items: center; gap: 12px; }
.photo-preview { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.photo-pick input[type=file] { border: 0; padding: 0; box-shadow: none; background: none; font-size: .85rem; }
.pin-field { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pin-map { width: 100%; height: 300px; border-radius: var(--radius); border: 1px solid var(--border); z-index: 0; }
.reports { list-style: none; padding: 0; margin: 0; }
.reports li { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); }
.reports li:first-child { border-top: 0; }
.admin-comments { list-style: none; padding: 0; margin: 0; }
.admin-comments li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); }
.admin-comments p { margin: 4px 0 0; }

/* ---------- Pie y toast ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 24px; }
.footer-inner { padding-top: 24px; padding-bottom: 28px; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; font-size: .9rem; }
.footer-links a { color: var(--muted); }
.footer-note { grid-column: 1 / -1; font-size: .8rem; color: var(--faint); margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 3000; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .spot-grid, .two-col { grid-template-columns: 1fr; }
  .mainnav .nav-biz { margin-left: 0; }
}
@media (max-width: 860px) {
  :root { --topbar: 58px; }
  .topbar { padding: 0 12px; gap: 10px; }
  .nav-toggle { display: inline-flex; }
  .lang { display: none; }
  .lang-mobile { display: block; }
  .mainnav { display: none; position: absolute; top: var(--topbar); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 8px 12px 14px; box-shadow: var(--shadow); }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 12px; }
  .nav-right { margin-left: auto; }
  .usermenu .pts { display: none; }
  .map-layout { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .map-wrap { height: 58dvh; min-height: 360px; order: -1; }
  .side { border-right: 0; overflow: visible; }
  .hero-card { left: 10px; right: 10px; width: auto; top: auto; bottom: 22px; padding: 8px 30px 8px 6px; gap: 6px; }
  .hero-card img { width: 46px; }
  .hero-card strong { font-size: .92rem; margin-bottom: 0; }
  .hero-card ul { font-size: .8rem; }
  .hero-card li:nth-child(n+3) { display: none; }
  .leaflet-control-zoom { display: none; }
  .map-actions { top: 10px; left: 10px; right: 10px; transform: none; justify-content: center; }
  .map-btn { padding: 8px 12px; font-size: .85rem; }
  .spot-head { flex-direction: column; }
  .spot-photo { width: 100%; height: 220px; }
  .biz-hero-inner { flex-direction: column-reverse; text-align: center; padding-top: 28px; }
  .biz-hero-inner .lead { margin-left: auto; margin-right: auto; }
  .biz-hero img { width: 130px; }
  .plans { grid-template-columns: 1fr; }
  .two-up, .form-row { grid-template-columns: 1fr; }
  .biz-row { grid-template-columns: 1fr; gap: 12px; }
  .biz-row-stats div { text-align: left; }
  .bizcta { flex-direction: column; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .meal-admin li { grid-template-columns: 48px 1fr auto; }
  .meal-admin li .row-gap { grid-column: 1 / -1; }
  .page-head-mascot img { width: 64px; }
}
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .brand-name { font-size: 1rem; }
  .meal { flex-direction: column; }
  .meal-photo { width: 100%; height: 160px; }
}

/* ---------- Ajustes táctiles (celular) ---------- */
.hero-x { width: 40px; height: 40px; top: 0; right: 0; display: grid; place-items: center; font-size: 1.5rem; }
@media (max-width: 860px) {
  .btn-sm, .nav-right .btn { min-height: 40px; }
  .more, .spot-card h2 a, .auth-card .small a { display: inline-block; padding: 9px 0; }
  .nav-toggle { width: 44px; height: 44px; justify-content: center; align-items: center; }
  .usermenu summary { min-height: 40px; }
  .usermenu .menu a, .usermenu .menu button { padding: 12px 14px; }
  .vote-btn { padding: 10px 14px; }
  .table .hide-sm { display: none; }
  .chip { padding: 9px 14px; }
}
.photo-pick input[type=file] { padding: 10px 0; min-height: 44px; }
