/* Panel de Guía Bolivia — estilos. Colores en tokens.css (paleta Carbón por defecto). */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg-panel); }
a { color: var(--accent-text); }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: "Barlow Condensed", Barlow, sans-serif; font-weight: 700; line-height: 1.05; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 10px; top: -50px; background: var(--inverse); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 10px; color: #fff; }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- Estructura ---------- */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 236px; max-width: 270px; background: var(--chrome); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; }
.side-brand { display: flex; align-items: baseline; gap: 8px; padding: 2px 12px 20px; text-decoration: none; }
.wordmark { font: 700 25px/1 "Barlow Condensed", sans-serif; color: #fff; letter-spacing: .02em; }
.wordmark span { color: var(--brand); }
.side-brand small { color: var(--chrome-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.side > a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--chrome-text); text-decoration: none; font-size: 15px; }
.side > a:hover { background: var(--chrome-active); color: #fff; }
.side > a[aria-current="page"] { background: var(--chrome-active); color: #fff; font-weight: 600; }
.side > a[aria-current="page"] .icon { color: var(--brand); }
.side > a em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--chrome-text); background: var(--chrome-line); border-radius: 999px; padding: 1px 8px; }
.side-sep { height: 1px; background: var(--chrome-line); margin: 8px 4px; }
.side-user { margin-top: auto; padding: 14px 6px 0 10px; border-top: 1px solid var(--chrome-line); display: flex; align-items: center; gap: 8px; }
.side-user .who { display: flex; align-items: center; gap: 10px; flex: 1; text-decoration: none; color: #fff; min-width: 0; }
.side-user .who span:last-child { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.side-user small { color: var(--chrome-muted); font-size: 13px; }
.avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 999px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.side-user .icon-btn.ghost { background: transparent; border-color: var(--chrome-line); color: var(--chrome-text); }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.top { background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.top-search { flex: 1 1 300px; max-width: 520px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 12px; background: var(--surface2); color: var(--muted); }
.top-search input { border: 0; outline: none; font: inherit; width: 100%; min-height: 40px; background: transparent; color: var(--text); }
.top-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.content { padding: 22px 26px 60px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 760px) {
  .side { max-width: none; flex: 1 1 100%; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; align-items: center; padding: 10px; gap: 4px; }
  .side-brand { padding: 0 10px 0 4px; }
  .side > a { white-space: nowrap; }
  .side-sep { display: none; }
  .side-user { margin: 0; border: 0; padding: 0 0 0 8px; }
  .side-user .who span:last-child { display: none; }
  .top, .content { padding-left: 14px; padding-right: 14px; }
}

/* ---------- Encabezados de página ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.page-head h1 { font-size: clamp(30px, 4vw, 40px); text-transform: uppercase; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.h2 { font-size: 22px; text-transform: uppercase; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px; border-radius: 8px; font: 600 15px/1.2 Barlow, sans-serif;
       text-decoration: none; cursor: pointer; border: 1px solid transparent; background: var(--surface); color: var(--text); white-space: nowrap; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { color: #fff; filter: brightness(1.1); }
.btn.ghost { border-color: var(--border-strong); }
.btn.ghost:hover { border-color: var(--text2); color: var(--text); }
.btn.danger { border-color: var(--accent-border); color: var(--accent-strong); }
.btn.danger:hover { background: var(--tint2); color: var(--accent-strong); }
.btn.small { min-height: 34px; padding: 5px 10px; font-size: 14px; }
.btn.block { width: 100%; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--border-strong); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); cursor: pointer; text-decoration: underline; }

/* ---------- Tarjetas y grillas ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.pad { padding: 20px; }
.card h2 { font-size: 22px; text-transform: uppercase; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.kpi { padding: 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); }
.kpi:hover { border-color: var(--border-strong); color: var(--text); }
.kpi b { font: 700 42px/1 "Barlow Condensed", sans-serif; }
.kpi span { color: var(--text2); font-weight: 600; font-size: 14px; }
.kpi small { color: var(--muted); font-size: 14px; }
.cols { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.col-main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1200px) { .col-side { max-width: 380px; } }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.narrow { max-width: 720px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--divider); }
.bar { height: 8px; background: var(--divider); border-radius: 999px; overflow: hidden; flex: 1; min-width: 60px; }
.bar > span { display: block; height: 8px; border-radius: 999px; background: var(--accent); }
.bar.bad > span { background: var(--brand); }
.bar.warn > span { background: var(--warn-icon); }
.bar.ok > span { background: var(--ok-icon); }
.quality li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 60px 80px; gap: 12px; }
@media (max-width: 640px) { .quality li { grid-template-columns: 1fr 50px; } .quality li .bar, .quality li a { display: none; } }

/* ---------- Chips y avisos ---------- */
.chip { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok-text); }
.chip-warn { background: var(--warn-bg); color: var(--warn-text); }
.chip-bad { background: var(--tint); color: var(--accent-strong); }
.chip-off { background: var(--off-bg); color: var(--off-text); }
.chip-info { background: var(--info-bg); color: var(--info-text); }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid; font-size: 15px; }
.flash-ok { background: var(--ok-bg); color: var(--ok-text); border-color: transparent; }
.flash-warn { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.flash-bad { background: var(--tint); color: var(--accent-strong); border-color: var(--accent-border); }
.notice { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: var(--tint2); border: 1px solid var(--accent-border); }
.warnline { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--warn-text); }
.warnline .icon { width: 14px; height: 14px; color: var(--warn-icon); }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 760px; }
table.data th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text2); font-weight: 600; padding: 11px 10px; background: var(--surface2); }
table.data td { padding: 11px 10px; border-top: 1px solid var(--divider); vertical-align: middle; }
table.data th:first-child, table.data td:first-child { padding-left: 16px; }
table.data th:last-child, table.data td:last-child { padding-right: 16px; }
table.data tr:hover td { background: var(--surface2); }
.cell-main { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.cell-main b { display: block; font-weight: 600; }
.cell-main small { display: block; color: var(--muted); font-size: 13px; }
.thumb { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 8px; object-fit: cover; background: var(--sunken); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--border); }
.tabs a { text-decoration: none; color: var(--text2); padding: 10px 2px; border-bottom: 3px solid transparent; font-size: 15px; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--brand); font-weight: 600; }
.tabs a span { color: var(--muted); font-weight: 400; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters .field { min-width: 170px; }
.table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--divider); color: var(--text2); font-size: 14px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border-strong); color: var(--text); text-decoration: none; font-weight: 600; }
.pager [aria-current="page"] { background: var(--inverse); border-color: var(--inverse); color: #fff; }
.empty { padding: 30px; text-align: center; color: var(--text2); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--text2); }
.field input, .field select, .field textarea, .input { font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface);
  color: var(--text); min-height: 42px; width: 100%; }
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.hint { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input[type="checkbox"], .check input[type="radio"] { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }
.check span { display: flex; flex-direction: column; gap: 1px; }
.check small { color: var(--muted); font-size: 13px; }
.prefixed { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.prefixed span { padding: 0 10px; display: flex; align-items: center; background: var(--surface2); color: var(--muted); font-size: 14px; border-right: 1px solid var(--border); white-space: nowrap; }
.prefixed input { border: 0 !important; border-radius: 0 !important; outline: none; }
.counter { align-self: flex-end; font-size: 13px; color: var(--muted); }
.section-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg-panel); z-index: 5; padding-top: 4px; }
.section-nav a { text-decoration: none; color: var(--text2); padding: 9px 2px; border-bottom: 3px solid transparent; }
.section-nav a:hover { color: var(--text); border-bottom-color: var(--border-strong); }
.form-bar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 12px 16px; display: flex; gap: 10px; justify-content: flex-end; z-index: 5; border-radius: 0 0 12px 12px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--tint2); }
.choice input { accent-color: var(--brand); }
.cat-picker { max-height: 340px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; background: var(--surface2); }
.cat-picker .group { padding: 8px 0; border-top: 1px solid var(--divider); }
.cat-picker .group:first-child { border-top: 0; }
.cat-picker .group > b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text2); margin-bottom: 4px; }
.cat-picker label { display: inline-flex; align-items: center; gap: 7px; margin: 3px 16px 3px 0; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.cat-picker input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--brand); }

/* Horarios */
.hours-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 9px 10px; border-radius: 8px; }
.hours-row:nth-child(even) { background: var(--surface2); }
.hours-row.warn { background: var(--warn-row); }
.hours-row .day { width: 110px; font-weight: 600; }
.hours-row input[type="time"] { width: 120px; min-height: 38px; }
.slot { display: inline-flex; align-items: center; gap: 6px; }

/* Filas dinámicas (contactos, redes) */
.dyn-row { display: grid; grid-template-columns: 150px 90px minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.dyn-row.social { grid-template-columns: 160px minmax(0, 1fr) 40px; }
@media (max-width: 640px) { .dyn-row, .dyn-row.social { grid-template-columns: 1fr 40px; } .dyn-row > :not(:last-child) { grid-column: 1; } }

/* Fotos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.photo { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.photo img { width: 100%; height: 120px; object-fit: cover; background: var(--sunken); }
.photo .meta { padding: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.photo form { display: inline; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: 10px; padding: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.map-pick { height: 320px; border-radius: 10px; border: 1px solid var(--border); background: var(--sunken); z-index: 0; }
[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.6); }

/* Árbol de categorías */
.tree ul { list-style: none; margin: 0; padding-left: 22px; border-left: 1px dashed var(--border-strong); }
.tree > ul { padding-left: 0; border: 0; }
.tree li { padding: 3px 0; }
.tree .node { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.tree .node:hover { background: var(--surface2); }
.tree .node a.name { font-weight: 600; color: var(--text); text-decoration: none; }
.tree .node .count { color: var(--muted); font-size: 14px; }

/* Ingreso */
body.simple { background: var(--chrome); min-height: 100vh; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.login-card img { border-radius: 14px; }
.login-card h1 { font-size: 32px; text-transform: uppercase; }
.login-card .hint { text-align: center; }

/* Varios */
.preview-google { border: 1px solid var(--divider); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 3px; }
.preview-google .u { font-size: 13px; color: var(--text2); }
.preview-google .t { font-size: 18px; color: var(--g-link); }
.preview-google .d { font-size: 14px; color: var(--g-text); }
.audit-changes { font-size: 13px; color: var(--text2); word-break: break-word; }
.audit-changes code { background: var(--sunken); padding: 1px 5px; border-radius: 4px; }

/* Categorías */
tr.row-group td { background: var(--surface2); }
.ico { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico.big { width: 30px; height: 30px; }
.icon-pick { border: 0; padding: 0; margin: 0; }
.icon-pick legend, .translations legend, .label-like { font-size: 14px; font-weight: 600; color: var(--text2); margin-bottom: 8px; padding: 0; }
.icon-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.icon-current { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--brand); color: #fff; flex: none; font-size: 12px; text-align: center; }
.icon-current .muted { color: #fff; opacity: .85; }
.icon-search { flex: 1; }
.icon-grid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 236px; overflow-y: auto; padding: 4px; border: 1px solid var(--border); border-radius: 10px; }
.icon-grid label { cursor: pointer; position: relative; }
.icon-grid label[hidden] { display: none; }
.icon-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-grid .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; border: 1px solid var(--border); color: var(--text2); background: var(--surface); }
.icon-grid label:hover .ic { border-color: var(--border-strong); color: var(--text); }
.icon-grid input:checked + .ic { background: var(--brand); border-color: transparent; color: #fff; }
.icon-grid input:focus-visible + .ic { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-image { width: 100%; max-width: 360px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; margin-bottom: 8px; }
.translations { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.tr-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; }
.tr-lang { font-weight: 700; padding-top: 10px; display: flex; flex-direction: column; }
@media (max-width: 600px) { .tr-row { grid-template-columns: 1fr; } .tr-lang { padding-top: 0; flex-direction: row; gap: 6px; } }
.cat-thumb { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); flex: none; }
.cat-ico-cell { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; flex: none; }
details > summary { cursor: pointer; font-weight: 600; color: var(--text2); }

/* Registro de cambios */
.audit { list-style: none; margin: 0; padding: 0; }
.audit > li { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.audit-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.audit-head small { margin-left: auto; }
.audit-changes { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13.5px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.audit-changes code { font-size: 12.5px; background: var(--surface2); padding: 1px 5px; border-radius: 4px; }

/* Buscar en el mapa */
.map-search { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.map-search input { flex: 1 1 320px; }
.map-results { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.15); max-height: 300px; overflow: auto; }
.map-results li.muted { padding: 10px 12px; }
.map-results button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14.5px; border-radius: 8px; cursor: pointer; }
.map-results button:hover, .map-results button:focus-visible { background: var(--sunken); }
.map-suggest { flex: 1 1 100%; margin: 0; font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }

/* Logo arriba en el menú */
.side-brand { flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 12px 20px; }
.side-brand img { height: 62px; width: auto; display: block; }
@media (max-width: 900px) { .side-brand { flex-direction: row; align-items: center; } .side-brand img { height: 42px; } .side-brand small { display: none; } }

/* Ingreso: tarjeta blanca centrada sobre fondo oscuro */
body.simple { background: #161515; }
.login-card { max-width: 440px; padding: 36px 32px 28px; border-radius: 22px; gap: 16px; background: #FFFFFF; color: #1E1D1C; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.login-card .login-logo { width: 190px; height: auto; align-self: center; border-radius: 0; }
.login-card h1 { text-align: center; text-transform: none; font-family: Barlow, system-ui, sans-serif; font-weight: 700; font-size: 28px; letter-spacing: -0.01em; color: #1E1D1C; margin: 0; }
.login-card label { color: #2B2A2A; font-weight: 600; }
.login-card input { background: #FFFFFF; color: #1E1D1C; border-color: #CBC9C6; }
.login-card input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.login-btn { width: 100%; justify-content: center; min-height: 50px; border-radius: 12px; background: var(--brand); border-color: var(--brand); color: #1A0F0B; font-size: 17px; font-weight: 700; }
.login-btn:hover { background: #E2512F; border-color: #E2512F; color: #1A0F0B; }
.login-help { font-size: 14.5px; color: #4A4949; }
.login-help summary { cursor: pointer; text-align: center; color: #4A4949; }
.login-help p { margin: 8px 0 0; }
.login-back { align-self: center; color: #4A4949; font-size: 15px; }
.login-card .flash { margin: 0; }
.dropzone .url-copy { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.dropzone .url-copy textarea { min-height: 0; font-size: 14px; }

/* Punto de enfoque de las fotos */
.focal { position: relative; cursor: crosshair; line-height: 0; border-radius: 8px; overflow: hidden; background: var(--sunken, #EEE); }
.focal img { display: block; width: 100%; height: auto; }
.focal-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #F06344; border: 3px solid #FFF; box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.3); pointer-events: none; transition: left .15s, top .15s; }
.focal-small { position: absolute; left: 6px; bottom: 6px; font-size: 11px; line-height: 1; padding: 4px 6px; border-radius: 4px; background: rgba(122,75,0,.9); color: #FFF; font-weight: 600; }
.focal.saved::after { content: "Guardado"; position: absolute; right: 6px; top: 6px; font-size: 11px; line-height: 1; padding: 4px 6px; border-radius: 4px; background: #1F6B3A; color: #FFF; font-weight: 600; }
.photo .focal { border-radius: 8px 8px 0 0; }

/* Estadísticas */
.kpi small.up { color: var(--ok-text, #1F6B3A); font-weight: 600; }
.kpi small.down { color: var(--bad-text, #9B2C1A); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 180px; padding-top: 8px; border-bottom: 1px solid var(--border); }
.bars { overflow: hidden; }
.bars .bar { flex: 1 1 0; min-width: 0; width: auto; display: block; min-height: 2px; background: #F06344; border-radius: 3px 3px 0 0; opacity: .85; }
.bars .bar:hover { opacity: 1; }
.bars-axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: 130px 1fr 60px; align-items: center; gap: 10px; font-size: 14px; }
.hbars b { text-align: right; font-variant-numeric: tabular-nums; }
.hb-track { height: 10px; background: var(--sunken, #EEE); border-radius: 999px; overflow: hidden; }
.hb-fill { display: block; height: 100%; background: #454444; border-radius: 999px; }
.term-list { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.term-list li span { font-weight: 600; }
.term-list li small { color: var(--muted); margin-left: 6px; }
.term-list .warn { color: #7A4B00; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.filters.js-auto > button[type="submit"] { display: none; }

/* Notificaciones: vista previa como en el celular */
.push-preview { display: flex; gap: 10px; align-items: flex-start; max-width: 380px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2, #F1F0EE); border: 1px solid var(--border); }
.push-preview img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.push-preview div { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.push-preview span { color: var(--muted); }

/* Editor de lugar: pestañas, barra de guardar y traducciones */
.tabs-on .tab-panel:not(.is-active) { display: none; }
.tabs-on .section-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; gap: 4px 20px; }
.tabs-on .section-nav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.section-nav a.is-active { color: var(--text); border-bottom-color: var(--brand); font-weight: 600; }
.tab-count { font-size: 12px; font-weight: 600; background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.tab-warn { width: 17px; height: 17px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tab-ok { color: #1F6B3A; font-weight: 700; }
[data-theme="dark"] .tab-ok { color: #5CC98A; }
.save-bar { position: sticky; bottom: 0; z-index: 6; margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 -4px 18px rgba(0,0,0,.08); }
.save-bar .btn { margin-left: auto; }
.save-state { font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.save-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.save-bar.is-dirty { border-color: var(--accent-border); }
.save-bar.is-dirty .save-state { color: var(--accent-strong); }
.save-bar.is-dirty .save-state::before { background: var(--brand); }
@media (max-width: 700px) { .save-keys { display: none; } .save-bar { border-radius: 12px 12px 0 0; margin-left: -4px; margin-right: -4px; } }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 9px; overflow: hidden; }
.seg button { font: inherit; font-size: 14px; background: var(--surface); color: var(--text2); border: 0; padding: 7px 14px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button.on { background: var(--text); color: var(--surface); font-weight: 600; }
.seg button.on .tab-ok { color: inherit; }
.copy-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.login-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 4px 0; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-google { display: flex; justify-content: center; min-height: 44px; }
/* Plan Gratis: campos bloqueados y aviso del plan Negocio */
.upsell { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--tint2); border: 1px solid var(--accent-border); color: var(--text); font-size: 14.5px; line-height: 1.45; }
.upsell .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }
.upsell a { color: inherit; font-weight: 600; }
fieldset.locked { border: 0; padding: 0; margin: 0; min-width: 0; opacity: .55; display: flex; flex-direction: column; gap: 14px; }
fieldset.locked * { cursor: not-allowed; }
.locked-list { margin: 0; padding-left: 18px; color: var(--text2); }
.hint .icon { width: 14px; height: 14px; vertical-align: -2px; }
.upsell { flex-wrap: wrap; align-items: center; }
.upsell > span { flex: 1 1 260px; }
.btn.wa { background: #1FAF5A; border-color: #1FAF5A; color: #fff; text-decoration: none; }
.btn.wa:hover { background: #17964C; border-color: #17964C; color: #fff; }
/* Plan de cada lugar en la lista */
.chip-plus { background: #FDE7DF; color: #A2361B; font-weight: 700; }
[data-theme="dark"] .chip-plus { background: #4A2A22; color: #FFB59E; }
.plan-cell { white-space: nowrap; }
.plan-cell small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text2); max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.plan-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.plan-summary a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); }
.plan-summary a[aria-current] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--accent-border); }
