/* ServiciosBarrios — estilos del sitio (proveedores, rubros, barrios y comunidad)
   Inspiración: Airbnb (tarjetas con foto, barra de categorías, ficha), Spotify (estantes,
   encabezados con degradé, tiles de color), Facebook (feed de actividad). Mobile first. */
:root {
  --bg: #FFFFFF;
  --bg-2: #F7F7F7;
  --bg-3: #EFEFEF;
  --ink: #222222;
  --ink-2: #3F3F3F;
  --muted: #6A6A6A;
  --line: #EBEBEB;
  --line-2: #DDDDDD;
  --brand: #0E9F6E;
  --brand-d: #057A55;
  --brand-l: #E7F6EF;
  --heart: #F43F5E;
  --gold: #F5B83D;
  --blue: #1D9BF0;
  --dark: #121212;
  --dark-2: #1E1E1E;
  --dark-3: #2A2A2A;
  --red: #C0352B;
  --red-l: #FDECEA;
  --blue-l: #E8F2FD;
  --sand: #FBF4E6;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --sh-2: 0 6px 20px rgba(0,0,0,.12);
  --sh-3: 0 12px 40px rgba(0,0,0,.18);
  --f: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --top-h: 64px;
  --nav-h: 0px;
  --hdr-h: var(--top-h);
  --tab-h: 62px;
  --surface: #FFFFFF;
  --glass: rgba(255,255,255,.96);
  --field-line: #B0B0B0;
  --on-brand: #FFFFFF;
  --gold-l: #FFF1CF; --gold-ink: #7A5500;
  --red-ink: #8C1D16; --blue-ink: #174A7C; --warn: #B45309;
  --demo-bg: #FFF4D6; --demo-ink: #6B4E00; --demo-line: #F3E2B0;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --chart-1: #0E9F6E; --chart-2: #1D6FD0;
  color-scheme: light;
}

/* ---------- tema oscuro (por defecto) */
[data-theme="dark"] {
  --bg: #121212;
  --bg-2: #1E1E1E;
  --bg-3: #2A2A2A;
  --surface: #181818;
  --glass: rgba(18,18,18,.92);
  --ink: #F2F2F2;
  --ink-2: #CFCFCF;
  --muted: #A7A7A7;
  --line: #2A2A2A;
  --line-2: #3A3A3A;
  --field-line: #4A4A4A;
  --brand: #1DB97E;
  --brand-d: #22CC8C;
  --brand-l: rgba(29,185,126,.14);
  --red: #F2554A;
  --red-l: rgba(242,85,74,.14); --red-ink: #FF9C94;
  --blue-l: rgba(76,179,255,.14); --blue-ink: #8CCBFF;
  --gold-l: rgba(245,184,61,.16); --gold-ink: #F5C76A; --warn: #F5B83D;
  --sand: #241F16;
  --dark: #000000;
  --dark-2: #181818;
  --dark-3: #262626;
  --demo-bg: #2B2410; --demo-ink: #F5D47A; --demo-line: #3D3315;
  --sh-1: 0 1px 2px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.35);
  --sh-2: 0 6px 20px rgba(0,0,0,.55);
  --sh-3: 0 12px 40px rgba(0,0,0,.7);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23EEE' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --chart-1: #14A271; --chart-2: #3B8EE0;
  color-scheme: dark;
}
[data-theme="dark"] .btn-primary { color: #06261A; }
[data-theme="dark"] .btn-primary:hover { background: var(--brand-d); }
[data-theme="dark"] .brand-mark { color: #06261A; }
[data-theme="dark"] .searchpill-go, [data-theme="dark"] .searchbar button { color: #06261A; }
[data-theme="dark"] .pactions .btn-round { color: #06261A; }
[data-theme="dark"] .post, [data-theme="dark"] .card, [data-theme="dark"] .kpi, [data-theme="dark"] .lead-card { box-shadow: none; }
[data-theme="dark"] .rating .ico, [data-theme="dark"] .stars .ico, [data-theme="dark"] .post-stars .ico, [data-theme="dark"] .rsum-big .ico { fill: var(--ink); stroke: var(--ink); }
[data-theme="dark"] .band { background: #1C1C1C; }
[data-theme="dark"] .empty .ico { color: var(--muted); }
[data-theme="dark"] .media { background-color: var(--bg-3); }
[data-theme="dark"] img { filter: brightness(.94); }

/* sin JavaScript: igual respeta el modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
  --bg: #121212;
  --bg-2: #1E1E1E;
  --bg-3: #2A2A2A;
  --surface: #181818;
  --glass: rgba(18,18,18,.92);
  --ink: #F2F2F2;
  --ink-2: #CFCFCF;
  --muted: #A7A7A7;
  --line: #2A2A2A;
  --line-2: #3A3A3A;
  --field-line: #4A4A4A;
  --brand: #1DB97E;
  --brand-d: #22CC8C;
  --brand-l: rgba(29,185,126,.14);
  --red: #F2554A;
  --red-l: rgba(242,85,74,.14); --red-ink: #FF9C94;
  --blue-l: rgba(76,179,255,.14); --blue-ink: #8CCBFF;
  --gold-l: rgba(245,184,61,.16); --gold-ink: #F5C76A; --warn: #F5B83D;
  --sand: #241F16;
  --dark: #000000;
  --dark-2: #181818;
  --dark-3: #262626;
  --demo-bg: #2B2410; --demo-ink: #F5D47A; --demo-line: #3D3315;
  --sh-1: 0 1px 2px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.35);
  --sh-2: 0 6px 20px rgba(0,0,0,.55);
  --sh-3: 0 12px 40px rgba(0,0,0,.7);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23EEE' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --chart-1: #14A271; --chart-2: #3B8EE0;
  color-scheme: dark;
}
}

/* acciones del encabezado en el celular (campanita) */
.admin-bell { color: #fff; }
.admin-bell:hover { background: rgba(255,255,255,.1); }
*, *::before, *::after { box-sizing: border-box; }
/* 11.7.1 · el atributo hidden siempre oculta. Sin esto, cualquier regla con display (por ejemplo .btn, que es
   inline-flex) le ganaba al estilo del navegador y un botón "oculto" se seguía viendo. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 64px); }
body { margin: 0; background: var(--bg); color: var(--ink); transition: background-color .2s, color .2s; font: 15px/1.5 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.has-tabbar { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
body.has-reserve { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(28px, 6.4vw, 44px); }
h2 { font-size: clamp(20px, 4.2vw, 26px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.ico { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-sm { max-width: 760px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-d); margin-bottom: 6px; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 680px; }
.section { padding: 28px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.stack > * + * { margin-top: 16px; }
.divider { height: 1px; background: var(--line); margin: 28px 0; border: 0; }

/* ---------- botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important; transition: background .15s, transform .08s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-d); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); }
.btn-gold { background: var(--gold); color: #1a1a1a; }
.btn-gold:hover { background: #F0A915; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-soft { background: var(--bg-2); color: var(--ink); }
.btn-soft:hover { background: var(--bg-3); }
.btn-wa { background: #25D366; color: #08361c; }
.btn-wa:hover { background: #1fbe5b; }
.btn-danger { background: var(--red); color: #fff; }
.btn-pill { border-radius: 999px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-xs { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-round { width: 56px; height: 56px; min-height: 0; padding: 0; border-radius: 50%; }
.btn-round .ico { width: 24px; height: 24px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn.bordered { border: 1px solid var(--line-2); background: var(--surface); }
.link-btn { background: none; border: 0; padding: 0; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ---------- demo */
.demo-banner { background: var(--demo-bg); color: var(--demo-ink); font-size: 13px; text-align: center; padding: 7px 12px; border-bottom: 1px solid var(--demo-line); }
.demo-banner b { font-weight: 800; }
.demo-chip { display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; background: #FFE9A8; color: #5A4100; text-transform: uppercase; }

/* ---------- barra superior */
.appbar { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: saturate(1.8) blur(14px); -webkit-backdrop-filter: saturate(1.8) blur(14px); border-bottom: 1px solid var(--line); }
.appbar-in { height: var(--top-h); display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.brand-mark .ico { width: 20px; height: 20px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; display: none; }
.brand-name b { color: var(--brand); font-weight: 800; }
.appbar-right { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; }
.appbar-link { font-weight: 700; font-size: 14px; padding: 10px 12px; border-radius: 999px; display: none; }
.appbar-link:hover { background: var(--bg-2); text-decoration: none; }
.user-pill { display: inline-flex; align-items: center; gap: 10px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; color: var(--ink); }
.user-pill:hover { box-shadow: var(--sh-1); text-decoration: none; }
.user-pill .up-menu { display: none; }
.user-pill .av { width: 32px; height: 32px; border-radius: 50%; background: var(--muted); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.user-pill .av.av-on { background: var(--ink); color: var(--bg); }
.user-pill .av .ico { width: 18px; height: 18px; }
/* menú de la cuenta (a la derecha de la campanita) */
.hdr-menu { position: relative; flex: none; }
.hdr-menu > summary { list-style: none; }
.hdr-menu > summary::-webkit-details-marker { display: none; }
.acct-menu[open] .user-pill { box-shadow: var(--sh-1); background: var(--bg-2); }
.acct-pop { position: fixed; left: 16px; right: 16px; top: calc(var(--top-h) + 6px); z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); padding: 8px; display: grid; gap: 2px; max-height: calc(100vh - var(--top-h) - 24px); overflow: auto; }
.acct-who { display: grid; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; line-height: 1.3; min-width: 0; }
.acct-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-pop a, .acct-pop-out button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none !important; background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.acct-pop a:hover, .acct-pop a:focus-visible, .acct-pop-out button:hover { background: var(--bg-2); }
.acct-pop a[aria-current="page"] { background: var(--bg-2); }
.acct-pop .ico { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.acct-pop .acct-n { margin-left: auto; }
.acct-pop-out { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }
.acct-pop-out button, .acct-pop-out button .ico { color: var(--red); }
/* secciones en la computadora (en el celular están en la barra de abajo) */
.secnav { display: none; }

/* buscador tipo píldora */
.searchpill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--sh-1); background: var(--surface); cursor: pointer; text-align: left; }
.searchpill:hover { box-shadow: var(--sh-2); }
.searchpill .ico { width: 18px; height: 18px; }
.searchpill-txt { min-width: 0; flex: 1; line-height: 1.2; }
.searchpill-txt b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchpill-txt span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchpill-go { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; flex: none; }
.searchbar { display: none; }

/* ---------- barra de categorías (Airbnb) */
.catbar { position: sticky; top: var(--hdr-h); z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.catbar-in { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gutter) 0; max-width: 1280px; margin: 0 auto; }
.catbar-in::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; flex: none; opacity: .85; }
.cat .ico { width: 24px; height: 24px; }
.cat:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--line-2); opacity: 1; }
.cat.is-on { color: var(--ink); border-bottom-color: var(--ink); opacity: 1; }

/* ---------- estantes horizontales (Spotify) */
.shelf { padding: 22px 0 6px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scroll-padding-left: var(--gutter); }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; min-width: 0; }
.scroller.narrow { grid-auto-columns: 42%; }

/* saludo + accesos rápidos (Spotify home) */
.greet { padding: 22px 0 6px; }
.greet h1 { font-size: clamp(26px, 6vw, 36px); margin-bottom: 14px; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick a { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border-radius: 8px; overflow: hidden; font-weight: 700; font-size: 13px; line-height: 1.2; min-height: 54px; padding-right: 8px; }
.quick a:hover { background: var(--bg-3); text-decoration: none; }
.quick .q-img { width: 54px; height: 54px; flex: none; background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; }
.quick .q-img .ico { width: 24px; height: 24px; }

/* ---------- tarjeta de proveedor (Airbnb) */
.pcard { position: relative; min-width: 0; }
.pcard > a { display: block; color: var(--ink); }
.pcard > a:hover { text-decoration: none; }
.media { position: relative; aspect-ratio: 20 / 19; border-radius: var(--r); overflow: hidden; background: var(--bg-3); }
.media.wide { aspect-ratio: 4 / 3; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pcard:hover .media img, .bcard:hover .media img { transform: scale(1.03); }
.media-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.92); }
.media-fallback .ico { width: 56px; height: 56px; stroke-width: 1.5; }
.media-badge { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 70px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; color: #222; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; box-shadow: var(--sh-1); display: inline-flex; gap: 5px; align-items: center; }
.media-badge .ico { width: 14px; height: 14px; }
.media-demo { position: absolute; bottom: 10px; right: 10px; }
.media-logo { position: absolute; bottom: 10px; left: 10px; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; border: 2px solid #fff; background: #fff; box-shadow: var(--sh-1); }
.media-logo img { width: 100%; height: 100%; object-fit: cover; }
.heart { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: #fff; }
.heart .ico { width: 26px; height: 26px; fill: rgba(0,0,0,.45); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); transition: transform .15s; }
.heart:active .ico { transform: scale(.85); }
.heart.is-on .ico { fill: var(--heart); stroke: #fff; }
.pcard-body { padding-top: 10px; font-size: 14px; line-height: 1.35; }
.pcard-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pcard-top b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-body .muted { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-price { margin-top: 3px; }
.pcard-price b { font-weight: 800; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; white-space: nowrap; flex: none; }
.rating .ico { width: 13px; height: 13px; fill: var(--ink); stroke: var(--ink); }
.verified { display: inline-flex; vertical-align: -3px; color: var(--blue); }
.verified .ico { width: 17px; height: 17px; }

/* tarjeta de barrio */
.bcard { position: relative; min-width: 0; }
.bcard > a { display: block; color: var(--ink); }
.bcard > a:hover { text-decoration: none; }
.feat-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.feat { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-weight: 600; }
.feat .ico { width: 13px; height: 13px; }
.cmp-toggle { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.cmp-toggle input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.cmp-toggle:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- grillas */
.grid { display: grid; gap: 14px; }
.cards { display: grid; gap: 28px 18px; grid-template-columns: minmax(0, 1fr); }

/* ---------- tiles de color (Spotify "Explorar todo") */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; padding: 12px 14px; color: #fff; display: block; isolation: isolate; }
.tile:hover { text-decoration: none; filter: brightness(1.06); }
.tile b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; display: block; max-width: 75%; }
.tile small { display: block; font-size: 12px; opacity: .85; margin-top: 4px; }
.tile-art { position: absolute; right: -14px; bottom: -8px; width: 46%; aspect-ratio: 1; border-radius: 6px; transform: rotate(25deg); background-size: cover; background-position: center; box-shadow: 0 4px 16px rgba(0,0,0,.35); display: grid; place-items: center; z-index: -1; }
.tile-art .ico { width: 44%; height: 44%; color: rgba(255,255,255,.95); transform: rotate(-25deg); }

/* ---------- sección oscura (Spotify) */
.dark { background: var(--dark); color: #fff; }
.dark .muted { color: #B3B3B3; }
.dark .section-head a { color: #B3B3B3; }
.dark-card { background: var(--dark-2); border-radius: 10px; padding: 14px; display: block; transition: background .2s; }
.dark-card:hover { background: var(--dark-3); text-decoration: none; }
.vs-card { display: grid; gap: 10px; }
.vs-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.vs-pair span { aspect-ratio: 1; border-radius: 8px; background-size: cover; background-position: center; display: block; }
.vs-pair i { font-style: normal; font-weight: 800; font-size: 12px; color: #B3B3B3; }

/* ---------- feed (Facebook) */
.feed { display: grid; gap: 12px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.post-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.avatar-c { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.post-head b { font-weight: 700; }
.post-head .muted { font-size: 12px; display: block; }
.post p { margin: 0 0 10px; white-space: pre-line; }
.post-link { display: flex; gap: 12px; align-items: center; background: var(--bg-2); border-radius: 10px; overflow: hidden; color: var(--ink); }
.post-link:hover { text-decoration: none; background: var(--bg-3); }
.post-link .pl-img { width: 72px; height: 72px; flex: none; background-size: cover; background-position: center; background-color: var(--bg-3); }
.post-link b { display: block; font-size: 14px; }
.post-link span { font-size: 12px; color: var(--muted); }
.post-stars { color: var(--ink); display: inline-flex; gap: 1px; vertical-align: -2px; }
.post-stars .ico { width: 13px; height: 13px; fill: var(--ink); }

/* ---------- formulario de búsqueda (hoja) */
.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-panel { background: var(--surface); width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); animation: sheetup .22s ease-out; }
@keyframes sheetup { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font-size: 20px; }
body.no-scroll { overflow: hidden; }

/* ---------- barra inferior (apps) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tabbar a:hover { text-decoration: none; }
.tabbar a .ico { width: 23px; height: 23px; }
.tabbar a.is-on { color: var(--brand); }

/* barra de reserva (Airbnb) */
.reserve { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
.reserve-price { line-height: 1.25; min-width: 0; }
.reserve-price b { font-size: 16px; font-weight: 800; }
.reserve-price span { display: block; font-size: 12px; color: var(--muted); text-decoration: underline; }
.reserve .btn { padding: 0 22px; min-height: 48px; }

/* ---------- alertas */
.flashes { padding-top: 14px; display: grid; gap: 8px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.alert .ico { margin-top: 1px; }
.alert-ok { background: var(--brand-l); color: var(--brand-d); }
.alert-error { background: var(--red-l); color: var(--red-ink); }
.alert-info { background: var(--blue-l); color: var(--blue-ink); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 90; box-shadow: var(--sh-3); max-width: calc(100% - 32px); }

/* ---------- perfil de proveedor (Spotify) */
.phero { position: relative; min-height: 320px; display: flex; align-items: flex-end; color: #fff; background-size: cover; background-position: center; background-color: #333; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.85) 100%); }
.phero-in { position: relative; z-index: 1; padding-bottom: 22px; padding-top: 70px; width: 100%; }
.phero-back { position: absolute; top: 12px; left: var(--gutter); z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; }
.phero-back:hover { background: rgba(0,0,0,.6); }
.phero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.phero-kicker .verified { color: #4CB3FF; }
.phero h1 { font-size: clamp(34px, 9vw, 72px); letter-spacing: -.04em; line-height: 1; margin: 0 0 10px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.phero-meta { font-size: 14px; color: rgba(255,255,255,.9); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.phero-meta .rating .ico { fill: #fff; stroke: #fff; }
.phero-credit { position: absolute; right: 10px; top: 10px; z-index: 1; font-size: 10px; color: rgba(255,255,255,.75); }
.pactions { display: flex; align-items: center; gap: 8px; padding: 16px 0 6px; }
.pactions .btn-ghost { padding: 0 16px; }
.pactions .btn-round { background: var(--brand); color: var(--on-brand); box-shadow: var(--sh-2); }
.pactions .btn-round:hover { background: var(--brand-d); transform: scale(1.04); }
.pactions .btn-round.wa { background: #25D366; color: #08361c; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; background: var(--surface); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .ico { width: 16px; height: 16px; }
.p-layout { display: grid; gap: 26px; padding: 10px 0 40px; }
.p-sec h2 { font-size: 22px; }

/* resumen de reseñas (Airbnb) */
.rsum { display: grid; gap: 16px; align-items: center; grid-template-columns: auto 1fr; margin-bottom: 18px; }
.rsum-big { font-size: 48px; font-weight: 800; letter-spacing: -.04em; line-height: 1; display: flex; align-items: center; gap: 6px; }
.rsum-big .ico { width: 30px; height: 30px; fill: var(--ink); }
.rbars { display: grid; gap: 4px; font-size: 12px; }
.rbar { display: grid; grid-template-columns: 12px 1fr 24px; gap: 8px; align-items: center; }
.rbar i { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; display: block; }
.rbar i em { display: block; height: 100%; background: var(--ink); }
.reviews { display: grid; gap: 22px; }
.review-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.review-head b { display: block; }
.review-head .muted { font-size: 12px; }
.review p { margin: 6px 0 0; white-space: pre-line; }
.review .post-stars { margin-right: 6px; }

/* ---------- ficha de barrio (Airbnb) */
.gallery { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; background-size: cover; background-position: center; position: relative; background-color: var(--bg-3); }
.gallery-item small { position: absolute; left: 10px; bottom: 10px; font-size: 10px; color: rgba(255,255,255,.85); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.gallery-count { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.gallery-actions { position: absolute; top: 12px; right: 14px; display: flex; gap: 8px; }
.gallery-actions .icon-btn { background: rgba(255,255,255,.95); color: #222; width: 36px; height: 36px; }
.gallery-back { position: absolute; top: 12px; left: 14px; }
.gallery-back .icon-btn { background: rgba(255,255,255,.95); color: #222; width: 36px; height: 36px; }
.gallery .heart { position: static; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.95); }
.gallery .heart .ico { width: 18px; height: 18px; fill: transparent; stroke: #222; filter: none; }
.gallery .heart.is-on .ico { fill: var(--heart); stroke: var(--heart); }
.f-title { padding-top: 18px; }
.f-title h1 { font-size: clamp(26px, 5vw, 32px); margin-bottom: 4px; }
.f-sub { color: var(--ink-2); font-size: 15px; }
.f-sub .rating .ico { fill: var(--ink); }
.hl { display: grid; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 18px; }
.hl-row { display: flex; gap: 16px; align-items: flex-start; }
.hl-row .ico { width: 26px; height: 26px; margin-top: 2px; }
.hl-row b { display: block; font-size: 15px; }
.hl-row span { color: var(--muted); font-size: 14px; }
.f-layout { display: grid; gap: 0; padding-bottom: 30px; }
.f-sec { padding: 28px 0; border-bottom: 1px solid var(--line); }
.f-sec:last-child { border-bottom: 0; }
.f-sec h2 { font-size: 22px; margin-bottom: 16px; }
.amen-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.amen { display: flex; gap: 14px; align-items: center; font-size: 15px; }
.amen .ico { width: 24px; height: 24px; color: var(--ink-2); }
.svc-list { display: grid; gap: 14px; }
.svc-item { display: flex; gap: 14px; align-items: center; justify-content: space-between; font-size: 15px; }
.svc-item > span { display: flex; gap: 14px; align-items: center; }
.svc-item .ico { width: 22px; height: 22px; }
.svc-item b { font-weight: 700; }
.svc-item .si { color: var(--brand-d); }
.svc-item .no { color: var(--red); }
.svc-item .sin-dato { color: var(--muted); font-weight: 500; font-style: italic; }
.price-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-2); background: var(--surface); }
.price-card .big { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.price-card .big small { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.dl { display: grid; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; margin: 14px 0; }
.dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 14px; border-bottom: 1px solid var(--line-2); }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 700; text-align: right; }
.dl .sin-dato { color: var(--muted); font-weight: 500; font-style: italic; }
.note { font-size: 13px; color: var(--ink-2); background: var(--sand); border-radius: 10px; padding: 10px 12px; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; }
.list-check .ico { color: var(--brand); margin-top: 1px; width: 20px; height: 20px; }
.sources { font-size: 13px; color: var(--muted); }
.sources ul { padding-left: 18px; margin: 6px 0 0; }
.sources a { text-decoration: underline; }
.photo-credit { font-size: 11px; color: var(--muted); }

/* ---------- filtros */
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 0 14px; flex-wrap: wrap; }
.results-head h1 { font-size: clamp(22px, 4.8vw, 30px); margin: 0; }
.filter-btn { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 9px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn .count { background: var(--ink); color: var(--bg); border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.filters-row { display: grid; gap: 12px; }
.cmp-tray { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); z-index: 44; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 10px 10px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: var(--sh-3); }
.cmp-tray[hidden] { display: none; }
.cmp-tray span { font-size: 14px; }

/* ---------- formularios */
.form { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.field { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; } /* 11.7.1: en una fila de dos, el campo más bajo no se estira */
.form > *, .row-2 > *, fieldset { min-width: 0; }
input[type=file] { max-width: 100%; }
.field > label, .field > .label { font-weight: 700; font-size: 14px; }
.field small, .help { color: var(--muted); font-size: 13px; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--surface); font-size: 16px; }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--red); }
.err { color: var(--red); font-size: 13px; font-weight: 600; }
.row-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
/* 11.7.1 · el texto de una casilla va en UN elemento (.check-label): .check es flex y cada trozo de texto o enlace
   suelto se volvía una columna aparte ("Acepto / los / términos / y / la …") */
.check-label { flex: 1 1 auto; min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
.check-label a { display: inline; }
.check-label .tip { vertical-align: middle; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.check-pill { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 14px; cursor: pointer; line-height: 1.2; }
.check-pill:has(input:checked) { border-color: var(--ink); background: var(--bg-2); box-shadow: 0 0 0 1px var(--ink); }
.check-pill input { accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.radio-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { cursor: pointer; color: var(--line-2); padding: 2px; }
.stars-input label .ico { width: 32px; height: 32px; fill: currentColor; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--gold); }
.stars-input input:focus-visible + label { outline: 2px solid var(--ink); border-radius: 6px; }
.form-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-2); }
.form-card h2 { font-size: 22px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
details.disclosure { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
details.disclosure > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary .ico { transition: transform .2s; }
details.disclosure[open] > summary .ico { transform: rotate(180deg); }
details.disclosure > .disclosure-body { padding: 0 16px 16px; }

/* ---------- genéricos (cuenta, panel, admin) */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card-pad { padding: 18px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge .ico { width: 13px; height: 13px; }
.badge-ok { background: var(--brand-l); color: var(--brand-d); }
.badge-gold { background: var(--gold-l); color: var(--gold-ink); }
.badge-red { background: var(--red-l); color: var(--red-ink); }
.badge-blue { background: var(--blue-l); color: var(--blue-ink); }
.stars { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; }
.stars .ico { width: 14px; height: 14px; fill: var(--ink); stroke: var(--ink); }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a { text-decoration: underline; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--bg-2); font-size: 14px; font-weight: 600; }
a.tag:hover { background: var(--bg-3); text-decoration: none; }
.avatar { width: 56px; height: 56px; border-radius: 14px; flex: none; background: var(--bg-2); display: grid; place-items: center; font-size: 22px; font-weight: 800; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 88px; height: 88px; border-radius: 20px; font-size: 34px; }
.empty { text-align: center; padding: 36px 18px; background: var(--bg-2); border-radius: var(--r-lg); }
.empty .ico { width: 36px; height: 36px; color: var(--muted); margin: 0 auto 10px; }
.band { background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: 26px 22px; display: grid; gap: 16px; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: auto -40px -80px auto; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(14,159,110,.55), transparent 70%); }
.band > * { position: relative; }
.band h2 { color: #fff; margin: 0; }
.band p { color: #B3B3B3; margin: 0; }
.steps { counter-reset: s; display: grid; gap: 12px; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: s; background: var(--bg-2); border-radius: var(--r); padding: 18px 18px 18px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; display: grid; place-items: center; }
.links-cols { columns: 1; column-gap: 28px; }
.links-cols a { display: block; padding: 7px 0; break-inside: avoid; color: var(--ink-2); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; margin-top: 1.4em; }
.prose ul { padding-left: 20px; }
.error-page { text-align: center; padding-top: 70px; padding-bottom: 70px; } /* sin pisar el margen lateral de .wrap */
.error-page { max-width: 620px; }
.error-page h1 { font-size: clamp(26px, 6vw, 34px); margin: 16px 0 8px; }
.error-ico { width: 72px; height: 72px; border-radius: 22px; background: var(--brand-l); color: var(--brand-d); display: inline-grid; place-items: center; }
.error-ico .ico { width: 34px; height: 34px; }
.error-acts { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.inline-form { display: inline; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: underline; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: block; }
a.kpi:hover { border-color: var(--ink); text-decoration: none; }
.kpi b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.warn b { color: var(--warn); }
.panel-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.panel-tabs a { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; font-size: 14px; font-weight: 600; }
.panel-tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.panel-tabs a:hover { text-decoration: none; }
.lead-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; }
.lead-card.is-new { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.lead-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.lead-msg { white-space: pre-line; font-size: 15px; background: var(--bg-2); padding: 12px; border-radius: 10px; margin: 0; overflow-wrap: anywhere; }
.lead-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.progress { height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--bg-2); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.toggle-big { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.switch i { width: 52px; height: 30px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: left .2s; }
.switch.on i { background: var(--brand); }
.switch.on i::after { left: 25px; }

/* comparador */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.cmp { border-collapse: collapse; width: 100%; font-size: 13px; }
.cmp th, .cmp td { padding: 11px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--surface); font-weight: 800; font-size: 15px; position: sticky; top: 0; }
.cmp thead th .cmp-img { display: block; aspect-ratio: 4/3; border-radius: 10px; background-size: cover; background-position: center; margin-bottom: 8px; background-color: var(--bg-3); }
.cmp tbody th { font-weight: 600; color: var(--muted); width: 100px; position: sticky; left: 0; background: var(--surface); z-index: 1; box-shadow: 1px 0 0 var(--line); }
.cmp td.best { color: var(--brand-d); font-weight: 800; }
.cmp .si { color: var(--brand-d); font-weight: 700; }

/* ---------- footer */
.footer { margin-top: 40px; padding: 32px 0 28px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-h { font-size: 14px; font-weight: 800; margin-bottom: 10px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--ink-2); }
.footer-bottom { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }

/* ---------- admin */
.admin-top { background: var(--dark); color: #fff; }
.admin-top a { color: #fff; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 0 10px; }
.admin-nav a { padding: 8px 12px; border-radius: 10px; font-size: 14px; white-space: nowrap; color: #B3B3B3; font-weight: 600; }
.admin-nav a[aria-current="page"], .admin-nav a:hover { background: var(--dark-3); color: #fff; text-decoration: none; }
.admin-main { padding: 20px 0 60px; }
.admin-main h1 { font-size: clamp(24px, 5vw, 32px); }

/* ---------- responsive */
@media (min-width: 560px) {
  .scroller { grid-auto-columns: 44%; }
  .scroller.narrow { grid-auto-columns: 30%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .radio-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links-cols { columns: 2; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-item { aspect-ratio: 16 / 9; }
  .filters-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --top-h: 80px; --nav-h: 48px; --hdr-h: calc(var(--top-h) + var(--nav-h) + 1px); }
  body.has-tabbar, body.has-reserve { padding-bottom: 0; }
  .tabbar, .reserve, .searchpill { display: none; }
  .brand-name { display: block; }
  .appbar-right { gap: 6px; }
  .appbar-link { display: inline-block; }
  .user-pill { padding: 5px 5px 5px 12px; }
  .user-pill .up-menu { display: block; width: 18px; height: 18px; }
  .acct-pop { position: absolute; left: auto; right: 0; top: calc(100% + 8px); width: 280px; max-height: none; }
  .secnav { display: block; border-top: 1px solid var(--line); }
  .secnav-in { display: flex; gap: 6px; height: var(--nav-h); align-items: stretch; }
  .secnav a { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; font-weight: 700; font-size: 15px; color: var(--ink-2); border-bottom: 3px solid transparent; text-decoration: none !important; }
  .secnav a .ico { width: 18px; height: 18px; }
  .secnav a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
  .secnav a.is-on { color: var(--ink); border-bottom-color: var(--brand); }
  .searchbar { display: flex; align-items: center; margin: 0 auto; border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--sh-1); background: var(--surface); height: 56px; padding: 0 8px 0 0; }
  .searchbar:hover { box-shadow: var(--sh-2); }
  .searchbar label { display: flex; flex-direction: column; justify-content: center; padding: 0 22px; height: 100%; border-radius: 999px; cursor: pointer; }
  .searchbar label:hover { background: var(--bg-2); }
  .searchbar label + label { border-left: 1px solid var(--line-2); }
  .searchbar label span { font-size: 12px; font-weight: 800; }
  .searchbar select { border: 0; background: transparent; font-size: 14px; color: var(--muted); padding: 0; appearance: none; -webkit-appearance: none; cursor: pointer; outline: none; max-width: 190px; }
  .searchbar button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; cursor: pointer; margin-left: 6px; }
  /* 11.7.1: el buscador se achica antes que empujar la cuenta fuera de la pantalla (900–1100 px, letras más anchas) */
  .searchbar { min-width: 0; flex: 0 1 auto; }
  .searchbar label { min-width: 0; flex: 1 1 auto; }
  .searchbar select { min-width: 0; width: 100%; text-overflow: ellipsis; }
  .section { padding: 44px 0; }
  .scroller { grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; margin: 0; padding: 2px 0 8px; }
  .scroller.narrow { grid-auto-columns: calc((100% - 5 * 18px) / 6); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
  .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .band { grid-template-columns: 1fr auto; align-items: center; padding: 40px 44px; }
  .p-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 60px; }
  .f-layout { grid-template-columns: minmax(0, 1fr) 370px; gap: 70px; align-items: start; }
  .sticky-side { position: sticky; top: calc(var(--hdr-h) + 24px); }
  .phero { min-height: 420px; }
  .gallery { margin: 22px 0 0; border-radius: var(--r-lg); overflow: hidden; }
  .gallery-track { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 440px; overflow: hidden; }
  .gallery-item { aspect-ratio: auto; }
  .gallery-item:first-child { grid-row: span 2; }
  .gallery-track.one { grid-template-columns: 1fr; }
  .gallery-track.one .gallery-item { grid-row: span 2; }
  .gallery-count { display: none; }
  .gallery-back { display: none; }
  .cmp-tray { left: auto; right: 24px; bottom: 24px; width: 380px; }
  .cmp { font-size: 14px; }
  .cmp th, .cmp td { padding: 13px 14px; }
  .cmp tbody th { width: 170px; }
  .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .links-cols { columns: 3; }
  .rsum { grid-template-columns: auto 280px; gap: 30px; }
  .sheet { align-items: center; justify-content: center; }
  .sheet-panel { max-width: 560px; border-radius: 22px; }
  .sheet-grab { display: none; }
  .toast { bottom: 30px; }
}
@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  .appbar, .footer, .tabbar, .reserve, .cmp-tray, .catbar, .sheet { display: none !important; }
}

/* ---------- utilidades extra */
.icon-btn.is-on .ico { fill: var(--heart); stroke: var(--heart); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; }
.hero { padding: 34px 0 24px; }
.hero h1 { max-width: 900px; }
@media (min-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 64px 0 40px; }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ======================================================================
   Vecinos: ingreso con pestañas, Mi cuenta, reseñas con precio y fotos
   ====================================================================== */
.auth { max-width: 520px; padding-top: 28px; padding-bottom: 40px; }
.auth-head h1 { margin-bottom: 4px; }
.auth-head p { margin: 0 0 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 18px; }
.seg-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none !important; transition: background .15s, color .15s; }
.seg-btn .ico { width: 17px; height: 17px; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
[data-theme="dark"] .seg-btn.is-on { background: var(--ink); color: var(--bg); box-shadow: none; }
.seg-pane .alert { margin-bottom: 12px; }
.auth-alts { display: grid; gap: 10px; margin-top: 18px; }
.auth-alt { display: grid; grid-template-columns: 44px 1fr 18px; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink); text-decoration: none !important; background: var(--surface); }
.auth-alt:hover { border-color: var(--ink); }
.auth-alt b { display: block; font-size: 15px; }
.auth-alt .muted { font-size: 13px; display: block; line-height: 1.35; }
.auth-alt > .ico { color: var(--muted); }
.auth-alt-ico, .rinvite-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-l); color: var(--brand-d); }
.auth-alt-ico .ico, .rinvite-ico .ico { width: 22px; height: 22px; }
.perks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.perks li b { display: block; color: var(--ink); font-size: 15px; }
.perks li > span { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); }
.perks li > span .ico { width: 18px; height: 18px; }

/* Mi cuenta */
.vhead { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.vhead h1 { margin: 0; font-size: clamp(24px, 5vw, 32px); }
.vhead p { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.vhead .avatar-c { width: 72px; height: 72px; font-size: 24px; border-radius: 50%; flex: none; }
.vbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--blue-ink); background: var(--blue-l); padding: 3px 9px; border-radius: 999px; }
.vbadge .ico { width: 14px; height: 14px; }
.vstats { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px; margin-bottom: 10px; }
.vstats > * { background: var(--bg-2); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 68px; }
.vstats b { font-size: 24px; line-height: 1; }
.vstats span { font-size: 13px; color: var(--muted); }
.vstats a { color: var(--ink); text-decoration: none !important; font-weight: 700; align-items: flex-start; }
.vstats a span { color: var(--ink); font-weight: 700; font-size: 14px; }
.vstats a:hover { background: var(--bg-3); }
.review-mine { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--surface); }
.review-mine .avatar-c .ico { width: 18px; height: 18px; }
.review-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.btn-text { background: transparent; color: var(--muted); border: 0; padding: 0 8px; }
.btn-text:hover { color: var(--red); }
.state { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.state .ico { width: 14px; height: 14px; }
.state-off { background: var(--red-l); color: var(--red-ink); }
.empty-sm { padding: 26px 18px; }
.empty-sm h3 { margin: 0 0 4px; }
.empty-sm .btn { margin-top: 10px; }

/* precio estilo guía de restaurantes */
.price-lvl { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 800; letter-spacing: .04em; font-size: 14px; white-space: nowrap; }
.price-lvl b { color: var(--brand-d); font-weight: 800; }
.price-lvl i { font-style: normal; color: var(--line-2); margin-left: -6px; }
.price-txt { font-weight: 600; letter-spacing: 0; color: var(--muted); font-size: 13px; }
.phero .price-lvl b { color: #fff; }
.phero .price-lvl i { color: rgba(255,255,255,.4); }
.price-input { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.price-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; background: var(--surface); text-align: center; }
.price-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.price-opt b { font-size: 17px; color: var(--brand-d); letter-spacing: .04em; }
.price-opt span { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.price-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--bg-2); }
.price-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* resumen y reseñas */
.rsum-left { display: grid; gap: 8px; }
.rsum-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.rsum-tags > span { display: inline-flex; align-items: center; gap: 5px; }
.rsum-tags .ico { width: 15px; height: 15px; }
.review-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-meta .post-stars { margin-right: 0; }
.rphotos { display: grid; gap: 4px; margin-top: 10px; border-radius: 12px; overflow: hidden; max-width: 520px; }
.rphotos-1 { grid-template-columns: 1fr; }
.rphotos-2 { grid-template-columns: 1fr 1fr; }
.rphotos-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.rphotos-3 .rphoto:first-child { grid-row: span 2; }
.rphotos-4 { grid-template-columns: 1fr 1fr; }
.rphoto { position: relative; display: block; background: var(--bg-3); aspect-ratio: 4 / 3; overflow: hidden; }
.rphotos-1 .rphoto { aspect-ratio: 16 / 10; }
.rphotos-3 .rphoto:first-child { aspect-ratio: auto; }
.rphoto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.rphoto:hover img { transform: scale(1.03); }
.rphoto-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font-weight: 800; font-size: 22px; }
.post .rphotos { margin: 8px 0 4px; max-width: none; }

/* invitación a registrarse / avisos */
.rinvite { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.rinvite b { font-size: 16px; }
.rinvite p { margin: 4px 0 12px; font-size: 14px; }
.rinvite-ico { flex: none; }
.rinvite-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); background: var(--bg-2); padding: 12px 14px; border-radius: 12px; margin: 0; }
.note .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.note-warn { background: var(--gold-l); color: var(--gold-ink); margin-bottom: 12px; }

/* formulario de reseña */
.rform-who { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.rform-who b { color: var(--ink); }
.rform-who .avatar-c { width: 34px; height: 34px; font-size: 12px; }
.rform-del { margin-top: 8px; }
.fotos-up { display: flex; flex-wrap: wrap; gap: 8px; }
.fotos-up-new { display: contents; }
.fotos-up-item, .fotos-up-add { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex: none; }
.fotos-up-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fotos-up-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fotos-up-item { cursor: pointer; background: var(--bg-3); }
.fotos-up-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; border: 0; display: grid; place-items: center; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.fotos-up-x .ico { width: 14px; height: 14px; }
.fotos-up-item.is-removed img { opacity: .3; filter: grayscale(1); }
.fotos-up-item.is-removed .fotos-up-x { background: var(--red); }
.fotos-up-item:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.fotos-up-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--field-line); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; background: var(--surface); }
.fotos-up-add:hover { border-color: var(--ink); color: var(--ink); }
.fotos-up-add .ico { width: 22px; height: 22px; }
.fotos-up-add:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.fotos-up-add.is-busy { opacity: .5; pointer-events: none; }

/* visor de fotos */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; filter: none !important; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lb-x { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-n { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; font-weight: 600; }
@media (max-width: 420px) {
  .price-opt span { font-size: 11px; }
  .vstats { grid-template-columns: 1fr 1fr; }
  .vstats a { grid-column: span 2; min-height: 48px; flex-direction: row; align-items: center; gap: 8px; }
}

/* ---------- panel de empresas: selector de archivo, logo, trabajos */
.panel-h1 { font-size: clamp(26px, 5vw, 36px); margin-bottom: 0; }
.logo-row { display: flex; gap: 14px; align-items: center; min-width: 0; }
.logo-row > .field { flex: 1; min-width: 0; }
.filepick { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; flex-wrap: wrap; }
.filepick .btn { flex: none; }
.filepick-name { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 120px; }
.filepick:focus-within .btn { outline: 2px solid var(--ink); outline-offset: 2px; }
.portada-prev { width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.note a { color: inherit; text-decoration: underline; }
.trab-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.trab-head h2 { margin: 0; font-size: 20px; }
.fotos-up-add-lg { width: 100%; height: 110px; flex-direction: row; gap: 10px; font-size: 15px; }
.fotos-up-add-lg .ico { width: 26px; height: 26px; }
.input-sm { min-height: 40px; padding: 8px 10px; font-size: 14px; }
.trab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trab-item { display: grid; gap: 6px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.trab-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.trab-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trab-first { position: absolute; top: 6px; left: 6px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.trab-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.trab-actions .icon-btn { width: 32px; height: 32px; }
.trab-actions .icon-btn:disabled { opacity: .35; cursor: default; }
.trab-actions .icon-btn .ico { width: 16px; height: 16px; }
.trab-del { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; padding: 4px 2px; border-radius: 8px; }
.trab-del .ico { width: 15px; height: 15px; }
.trab-del input { width: 16px; height: 16px; accent-color: var(--red); }
.trab-item:has(.trab-del input:checked) .trab-img { opacity: .35; outline: 2px solid var(--red); }
.trab-item:has(.trab-del input:checked) .trab-del { color: var(--red); }
@media (min-width: 700px) { .trab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* galería pública de trabajos (mosaico) */
.tgal { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 16px; overflow: hidden; }
.tgal-item { position: relative; display: block; aspect-ratio: 1; background: var(--bg-3); overflow: hidden; }
.tgal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.tgal-item:hover img { transform: scale(1.03); }
.tgal-item:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.tgal-1 .tgal-item:first-child { aspect-ratio: 16 / 10; }
.tgal-2 .tgal-item:first-child, .tgal-4 .tgal-item:first-child { grid-column: auto; aspect-ratio: 1; }
.tgal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: 13px; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
@media (min-width: 700px) {
  .tgal { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .tgal-item, .tgal-item:first-child { aspect-ratio: auto; }
  .tgal-5 .tgal-item:first-child, .tgal-3 .tgal-item:first-child { grid-column: span 2; grid-row: span 2; }
  .tgal-1 { grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .tgal-2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .tgal-2 .tgal-item:first-child { grid-column: auto; }
  .tgal-3 { grid-template-columns: 2fr 1fr; }
  .tgal-3 .tgal-item:first-child { grid-column: auto; }
  .tgal-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
}
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 0; }
.lb-fig img { max-height: calc(100vh - 160px); }
.lb-cap { color: #eee; font-size: 15px; font-weight: 600; text-align: center; max-width: 640px; }

/* ---------- empresas con información pública y opiniones de Google */
.pub-chip { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; vertical-align: 1px; }
.pub-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--blue-l); color: var(--blue-ink); margin: 6px 0 4px; font-size: 14px; }
.pub-note > .ico { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.pub-note b { display: block; }
.pub-note span { display: block; }
.pub-actions { display: flex !important; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-top: 6px; }
.pub-actions a { color: inherit; text-decoration: underline; }
.pub-src summary { cursor: pointer; text-decoration: underline; }
.pub-src ul { margin: 6px 0 0; padding-left: 18px; }
.pub-src li { word-break: break-all; }
.serv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.serv-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.serv-list .ico { width: 18px; height: 18px; color: var(--brand-d); flex: none; margin-top: 2px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; min-width: 0; }
.contact-list li > span, .contact-list li > a { min-width: 0; overflow-wrap: anywhere; }
.contact-list .ico { width: 18px; height: 18px; color: var(--muted); flex: none; margin-top: 2px; }
.rv-title { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rv-title h2 { margin: 0; }
.rv-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--blue-ink); background: var(--blue-l); padding: 4px 10px; border-radius: 999px; }
.rv-badge .ico { width: 14px; height: 14px; }
.gop-sec h2 { font-size: 18px; color: var(--ink-2); }
.gop-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gop-score { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gop-score b { font-size: 26px; line-height: 1; }
.gstars { display: inline-flex; gap: 1px; color: #FBBC04; }
.gstars .ico { width: 13px; height: 13px; fill: #FBBC04; stroke: #FBBC04; }
.gop-list { display: grid; gap: 10px; }
.gop { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); font-size: 14px; }
.gop p { margin: 6px 0 0; color: var(--ink-2); white-space: pre-line; }
.gop-who { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; font-weight: 700; font-size: 13px; }
.gop-who img { width: 28px; height: 28px; border-radius: 50%; }
.gop-who a { color: inherit; }
.gop-who .muted { font-weight: 500; }
.gop-attr { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.gop-empty { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; color: var(--muted); }

/* ---------- ventana de bienvenida */
.welcome { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.55); display: grid; place-items: end center; padding: 0; }
.welcome[hidden] { display: none; }
.welcome-panel { position: relative; width: 100%; max-width: 480px; background: var(--surface); color: var(--ink); border-radius: 24px 24px 0 0; padding: 26px 20px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; box-shadow: var(--sh-3); animation: welcome-up .28s ease-out; }
.welcome-panel h2 { margin: 0; font-size: 22px; line-height: 1.2; padding-right: 36px; }
.welcome-panel p { margin: 0; }
.welcome-x { position: absolute; top: 12px; right: 12px; }
.welcome-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
[data-theme="dark"] .welcome-mark { color: #06261A; }
.welcome-mark .ico { width: 22px; height: 22px; }
.welcome-opts { display: grid; gap: 10px; margin-top: 4px; }
.welcome-opt { display: grid; grid-template-columns: 46px 1fr 18px; gap: 12px; align-items: center; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 16px; color: var(--ink); text-decoration: none !important; background: var(--surface); transition: border-color .15s, background .15s; }
.welcome-opt:hover, .welcome-opt:focus-visible { border-color: var(--brand); background: var(--brand-l); outline: none; }
.welcome-opt b { display: block; font-size: 16px; }
.welcome-opt span span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.welcome-opt > .ico { color: var(--muted); }
.welcome-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-l); color: var(--brand-d); }
.welcome-ico .ico { width: 22px; height: 22px; }
.welcome-skip { justify-self: center; background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 8px; }
@keyframes welcome-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) {
  .welcome { place-items: center; padding: 16px; }
  .welcome-panel { border-radius: 24px; padding: 30px 28px 22px; }
}
@media (prefers-reduced-motion: reduce) { .welcome-panel { animation: none; } }
.switch-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.switch-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 999px; }

/* =====================================================================
   v8 · ayuda (tooltips), configuración, comunidad, reportes y respaldos
   ===================================================================== */
/* ---------- tooltip de ayuda */
.tip { display: inline-flex; vertical-align: middle; position: relative; }
.tip-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: help; padding: 0; }
.tip-btn .ico { width: 17px; height: 17px; }
.tip-btn:hover, .tip.is-open .tip-btn { color: var(--ink); background: var(--bg-2); }
.tip-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.tip-pop { position: fixed; z-index: 300; display: none; max-width: calc(100vw - 24px); background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none; padding: 10px 12px; border-radius: 10px; box-shadow: var(--sh-2); white-space: normal; text-align: left; }
.tip.is-open .tip-pop { display: block; }
h1 .tip-btn, h2 .tip-btn { width: 28px; height: 28px; }

/* ---------- interruptor (checkbox) */
.tgl { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: left .2s; }
.tgl:checked { background: var(--brand); }
.tgl:checked::after { left: 25px; }
.tgl:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Admin → Configuración */
.cfg-nav { margin: 14px 0 18px; }
.cfg-mod { max-width: 820px; margin-bottom: 18px; scroll-margin-top: 16px; }
.cfg-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.cfg-head h2 { font-size: 20px; margin: 0 0 2px; }
.cfg-head a { font-weight: 700; }
.cfg-head a .ico { width: 14px; height: 14px; vertical-align: -2px; }
.cfg-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; flex: none; }
.cfg-ico .ico { width: 21px; height: 21px; }
.cfg-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.cfg-l { display: flex; align-items: center; gap: 4px; }
.cfg-l label { font-weight: 700; font-size: 15px; }
.cfg-c { display: grid; gap: 6px; min-width: 0; }
.cfg-c .tgl { justify-self: start; }
.cfg-num { display: flex; align-items: center; gap: 10px; }
.cfg-num .input { max-width: 130px; }
.cfg-num span { color: var(--muted); font-size: 14px; }
.cfg-foot { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.cfg-sys { display: grid; gap: 0; margin: 0; }
.cfg-sys > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cfg-sys > div:first-child { border-top: 0; }
.cfg-sys dt { color: var(--muted); }
.cfg-sys dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.cfg-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: inherit; text-decoration: none !important; }
.cfg-link:hover { box-shadow: var(--sh-1); }
.cfg-row.has-error .input { border-color: var(--red); }
@media (min-width: 720px) {
  .cfg-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 18px; }
}
.admin-ver { font-size: 11px; font-weight: 700; color: #9a9a9a; letter-spacing: 0; vertical-align: 2px; }
.nav-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; margin-left: 2px; vertical-align: 1px; }
.md { max-width: 820px; }
.md h2 { font-size: 22px; margin-top: 22px; }
.md h2:first-child { margin-top: 0; }
.md h3 { font-size: 16px; margin: 14px 0 6px; }
.md ul { padding-left: 20px; margin: 6px 0 10px; }
.md li { margin: 3px 0; }
.md code { background: var(--bg-2); padding: 1px 5px; border-radius: 5px; font-size: .92em; }

/* ---------- campanita */
.bell { position: relative; }
.bell-n { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--heart); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.bell-n-inline { position: static; display: inline-grid; }

/* ---------- reportar */
.report-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.report-btn .ico { width: 14px; height: 14px; }
.report-btn:hover { color: var(--red); }
.review-foot { margin-top: 8px; display: flex; justify-content: flex-end; }
.report-line { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.report-line > .ico { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.report-line .js-report-inline { color: var(--ink); font-size: 13px; display: inline; }
.report-line .js-report-inline .ico { display: none; }
.report-motivos { display: grid; gap: 2px; border: 0; padding: 0; margin: 0; }
.rep-motivo { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 15px; line-height: 1.3; }
.rep-motivo:hover { background: var(--bg-2); }
.rep-motivo input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.form-msg { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.form-msg.is-ok { background: var(--brand-l); color: var(--brand-d); }
.form-msg.is-error { background: var(--red-l); color: var(--red-ink); }

/* ---------- comunidad */
.com-hero { display: grid; gap: 14px; padding-top: 22px; padding-bottom: 6px; }
.com-hero h1 { margin: 6px 0 6px; }
.com-hero p { max-width: 640px; margin: 0; }
.com-privado { color: var(--ink-2, inherit); }
.com-privado .ico { width: 15px; height: 15px; vertical-align: -2px; color: var(--brand-d); }
.com-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-d); background: var(--brand-l); padding: 5px 10px; border-radius: 999px; }
.com-kicker .ico { width: 13px; height: 13px; }
.com-hero-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.com-grupos { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.com-grupo { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none !important; transition: box-shadow .15s, border-color .15s; }
.com-grupo:hover { box-shadow: var(--sh-1); border-color: var(--line-2); }
.com-grupo-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; flex: none; }
.com-grupo-ico .ico { width: 22px; height: 22px; }
.com-grupo-ico-lg { width: 60px; height: 60px; border-radius: 18px; }
.com-grupo-ico-lg .ico { width: 28px; height: 28px; }
.com-grupo-b { display: grid; gap: 3px; min-width: 0; }
.com-grupo-b b { font-size: 16px; }
.com-grupo-d { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.com-cols { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.com-list { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.com-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.com-row:first-child { border-top: 0; }
.com-row:hover { background: var(--bg-2); }
.com-row-main { display: grid; gap: 3px; min-width: 0; }
.com-row-t { font-weight: 800; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.com-row-x { font-size: 14px; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.com-row-m { font-size: 12px; }
.com-row-m .ico { width: 13px; height: 13px; vertical-align: -2px; }
.com-row-n { grid-column: 2; display: flex; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 700; }
.com-row-n .ico { width: 15px; height: 15px; vertical-align: -3px; }
.com-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.com-mini li { display: grid; gap: 2px; }
.com-mini a { font-weight: 700; }
.com-ghead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; margin: 10px 0 14px; }
.com-ghead h1 { margin: 0 0 4px; font-size: clamp(24px, 5vw, 34px); }
.com-ghead p { margin: 0; }
.com-ghead-btn { grid-column: 1 / -1; justify-self: start; }
.com-filtros { display: grid; gap: 10px; margin-bottom: 16px; }
.com-search { position: relative; display: block; max-width: 460px; }
.com-search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.com-search .input { padding-left: 42px; min-height: 46px; }
.com-post { padding-bottom: 40px; }
.com-post-h { margin: 8px 0 12px; }
.com-post-h h1 { font-size: clamp(24px, 5.4vw, 34px); margin: 4px 0 12px; overflow-wrap: anywhere; }
.com-autor { display: flex; gap: 10px; align-items: center; }
.com-autor b { display: block; font-size: 15px; }
.com-autor .muted { font-size: 12px; }
.com-cuerpo { white-space: pre-line; overflow-wrap: anywhere; font-size: 16px; line-height: 1.55; margin: 10px 0; }
.com-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.com-acts-sm { border-bottom: 0; padding: 2px 0 0; }
.com-acts-own { display: inline-flex; gap: 6px; margin-left: auto; }
.com-act { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none !important; }
.com-act .ico { width: 16px; height: 16px; }
.com-act:hover { border-color: var(--ink); }
.com-act.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.com-act.is-on .ico { fill: currentColor; }
.com-act.report-btn { color: var(--muted); }
.com-act.report-btn:hover { color: var(--red); border-color: var(--red); }
.com-acts-sm .com-act { min-height: 30px; padding: 0 10px; font-size: 13px; }
.com-resps { padding-top: 18px; }
.com-resps h2 { font-size: 20px; }
.com-resp { padding: 14px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.com-resp:target { background: var(--brand-l); margin: 0 -10px; padding: 14px 10px; border-radius: 12px; }
.com-resp.is-hidden { opacity: .65; }
.com-resp .badge, .com-resp .state { margin-top: 6px; }
.com-resp .com-cuerpo { font-size: 15px; margin: 8px 0 4px; }
.com-reply { display: grid; gap: 8px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.com-reply-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.com-venta { margin: 14px 0 0; display: grid; gap: 10px; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick label { cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.icon-pick span { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--surface); }
.icon-pick input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--brand-l); color: var(--brand-d); }
.icon-pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.precio-in { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px; max-width: 360px; }
/* venta de garage */
.arts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.art { display: grid; gap: 3px; color: var(--ink); text-decoration: none !important; min-width: 0; }
.art-img { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--bg-2); display: grid; place-items: center; margin-bottom: 6px; }
.art-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.art:hover .art-img img { transform: scale(1.03); }
.art-img > .ico { width: 34px; height: 34px; color: var(--muted); }
.art-precio { font-size: 17px; font-weight: 800; }
.art-t { font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.art-venta { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--brand-l); color: var(--brand-d); vertical-align: middle; }
.art-img .art-venta { position: absolute; top: 8px; left: 8px; }
.art-reservado { background: var(--gold-l); color: var(--gold-ink); }
.art-vendido { background: var(--dark); color: #fff; }
.art-precio-lg { font-size: 28px; font-weight: 800; letter-spacing: -.02em; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.art-fotos { display: grid; gap: 6px; margin-top: 10px; border-radius: var(--r-lg); overflow: hidden; }
.art-fotos a { display: block; background: var(--bg-2); }
.art-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-fotos-1 a { aspect-ratio: 4 / 3; }
.art-fotos-2 { grid-template-columns: 1fr 1fr; }
.art-fotos-2 a { aspect-ratio: 1; }
.art-fotos-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.art-fotos-3 a:first-child { grid-row: 1 / 3; }
/* notificaciones */
.notifs { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.notif { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.notifs li:first-child .notif { border-top: 0; }
.notif:hover { background: var(--bg-2); }
.notif.is-new { background: var(--brand-l); }
[data-theme="dark"] .notif.is-new { background: rgba(14,159,110,.12); }
.notif > span:nth-child(2) { display: grid; gap: 2px; font-size: 15px; overflow-wrap: anywhere; }
.notif-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; }
.notif-ico .ico { width: 18px; height: 18px; }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--heart); }
.notif-pref { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
@media (min-width: 720px) {
  .com-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .com-grupos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .com-ghead { grid-template-columns: auto minmax(0, 1fr) auto; }
  .com-ghead-btn { grid-column: auto; justify-self: end; }
  .com-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .com-row-n { grid-column: auto; flex-direction: column; gap: 4px; align-items: flex-end; justify-content: center; }
}
@media (min-width: 1000px) {
  .com-grupos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .com-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
}

/* ---------- admin: reportes, comunidad y respaldos */
.rep-list, .resp-list { display: grid; gap: 12px; max-width: 900px; }
.rep-head, .resp-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rep-t { font-size: 17px; margin: 10px 0 6px; }
.rep-t a { color: inherit; }
.rep-t .ico { width: 14px; height: 14px; vertical-align: -1px; }
.rep-q { margin: 0 0 10px; padding: 10px 12px; border-left: 3px solid var(--line-2); background: var(--bg-2); border-radius: 0 10px 10px 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.rep-items { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.rep-items li { display: grid; gap: 2px; font-size: 14px; padding-top: 8px; border-top: 1px dashed var(--line); }
.rep-items li:first-child { border-top: 0; padding-top: 0; }
.rep-det { color: var(--ink-2); overflow-wrap: anywhere; }
.rep-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rep-actions form { margin: 0; }
.grp-pend { margin-bottom: 10px; display: grid; gap: 12px; max-width: 900px; }
.grp-pend-h { display: flex; gap: 12px; }
.grp-rech { display: flex; gap: 6px; flex: 1 1 260px; }
.grp-rech .input { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.nowrap { white-space: nowrap; }
.resp-new { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.resp-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.resp-fecha { font-size: 17px; display: block; margin-bottom: 6px; }
.resp-nota { margin: 8px 0 0; font-weight: 600; }
.resp-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.resp-actions .chip { padding: 6px 12px; font-size: 13px; }
.wrap.shelf { padding-left: var(--gutter); padding-right: var(--gutter); }
.rep-list, .resp-list { grid-template-columns: minmax(0, 1fr); }
.resp-tags .badge, .rep-head .badge { white-space: normal; }
.resp-head > div { min-width: 0; }

/* ---------- v8.2 · galería de barrios y fotos en el admin */
a.gallery-item { display: block; color: inherit; }
.gallery-all { position: absolute; right: 14px; bottom: 14px; display: none; align-items: center; gap: 6px; background: #fff; color: #222; border: 1px solid #222; border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.gallery-all .ico { width: 15px; height: 15px; }
@media (min-width: 900px) {
  .gallery-track .gallery-item:nth-child(n+4) { display: none; }
  .gallery-track.two { grid-template-columns: 1fr 1fr; }
  .gallery-track.two .gallery-item { grid-row: span 2; }
  .gallery-all { display: inline-flex; }
}
.bf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 10px; }
.bf-item { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.bf-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.bf-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-badge { position: absolute; top: 6px; left: 6px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.bf-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.bf-orden { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.bf-orden .input { width: 64px; }
.bf-del { margin-left: auto; color: var(--red); }
.bf-ilus { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.bf-ilus span { width: 84px; height: 63px; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.bf-ilus img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-ilus.is-off { opacity: .45; filter: grayscale(.6); }
.demo-act { display: grid; gap: 6px; justify-items: start; }
.rub-img { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rub-img img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }

/* ---------- v9 · campanita y panel de notificaciones */
.bell-wrap { display: inline-flex; }
.bell-n[hidden] { display: none; }
.notif-li { position: relative; }
.notif-li .notif { padding-right: 44px; }
.notifs .notif-li:first-child .notif { border-top: 0; }
.notif-read { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin: 0; }
.notif-dot-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.notif-dot-btn:hover { background: var(--bg-3); }
.notif-txt { display: grid; gap: 2px; font-size: 15px; overflow-wrap: anywhere; }
.notif-pop { position: fixed; z-index: 220; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh-3); overflow-y: auto; overscroll-behavior: contain; }
.notif-pop[hidden] { display: none; }
.np-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.np-head form { margin: 0; }
.np-empty { display: flex; gap: 8px; align-items: center; padding: 18px 14px; margin: 0; }
.notifs-sm { border: 0; border-radius: 0; margin: 0; }
.notifs-sm .notif { padding: 11px 44px 11px 14px; gap: 10px; grid-template-columns: 32px minmax(0, 1fr); }
.notifs-sm .notif-ico { width: 32px; height: 32px; }
.notifs-sm .notif-txt { font-size: 14px; }
.np-all { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 12px; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink); position: sticky; bottom: 0; background: var(--surface); }
.np-all .ico { width: 15px; height: 15px; }

/* ---------- v9 · filas horizontales: degradé, flechas y aviso */
.hs { position: relative; --hs-bg: var(--bg); }
.catbar .hs { --hs-bg: var(--surface); }
.hs::before, .hs::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .15s; }
.hs::before { left: 0; background: linear-gradient(90deg, var(--hs-bg), transparent); }
.hs::after { right: 0; background: linear-gradient(270deg, var(--hs-bg), transparent); }
.hs.hs-on:not(.at-start)::before, .hs.hs-on:not(.at-end)::after { opacity: 1; }
.hs-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); display: none; place-items: center; cursor: pointer; padding: 0; }
.hs-btn:hover { border-color: var(--ink); }
.hs-prev { left: 4px; }
.hs-next { right: 4px; }
.hs.hs-on:not(.at-start) .hs-prev, .hs.hs-on:not(.at-end) .hs-next { display: grid; }
.hs.hs-drag, .hs.hs-drag * { cursor: grabbing !important; user-select: none; }
.catbar .hs-btn { top: calc(50% + 5px); width: 30px; height: 30px; }
.hs > .scroller ~ .hs-btn { top: 38%; }
/* tablas: sin flechas, con sombra en el borde y un aviso arriba */
.hs-table { --hs-bg: var(--surface); }
.hs-table::before, .hs-table::after { width: 28px; top: 1px; bottom: 1px; }
.hs-table::before { left: 1px; border-radius: var(--r) 0 0 var(--r); }
.hs-table::after { right: 1px; border-radius: 0 var(--r) var(--r) 0; }
.hs-hint { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.hs-hint[hidden] { display: none; }
.hs-hint span { display: inline-block; animation: hs-nudge 1.6s ease-in-out 2; }
@keyframes hs-nudge { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .hs-hint span { animation: none; } }
@media print { .hs-btn, .hs-hint { display: none !important; } .hs::before, .hs::after { display: none; } }

/* ---------- v9 · menú de cuenta (empresas y vecinos): todo a la vista */
.acct-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; }
.acct-nav a, .acct-out button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); white-space: nowrap; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none !important; min-height: 42px; }
.acct-nav .ico { width: 16px; height: 16px; }
.acct-nav a:hover, .acct-out button:hover { border-color: var(--ink); }
.acct-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.acct-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--heart); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.acct-out { margin: 0; }
.acct-out button { color: var(--red); border-color: transparent; background: transparent; }
.acct-out button:hover { border-color: var(--red); }
@media (max-width: 480px) {
  .acct-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-nav a, .acct-out button { justify-content: flex-start; padding: 9px 12px; width: 100%; }
  .acct-nav a span:not(.acct-n), .acct-out button span { overflow: hidden; text-overflow: ellipsis; }
  .acct-n { margin-left: auto; }
}

/* ---------- v9 · menú del admin: en el celular se despliega con un botón (nunca queda oculto a la derecha) */
.admin-menu-btn { display: flex; width: 100%; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--dark-3); background: var(--dark-2); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.admin-menu-btn[hidden] { display: none; }
.admin-menu-btn .ico { width: 18px; height: 18px; }
.admin-menu-all { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #B3B3B3; font-weight: 600; }
.admin-menu-btn[aria-expanded="true"] .admin-menu-all .ico { transform: rotate(180deg); }
.admin-nav.is-collapsed { display: none; }
@media (max-width: 719px) {
  .admin-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-nav.is-collapsed { display: none; }
  .admin-nav a { white-space: normal; }
}
.select-sm { min-height: 38px; padding: 6px 34px 6px 10px; font-size: 14px; width: auto; display: inline-block; }

/* ---------- v9 · tablero de la empresa y gráficos */
.ch-c1 { background: var(--chart-1); }
.ch-c2 { background: var(--chart-2); }
.dash-alert { display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; color: inherit; text-decoration: none !important; border-color: var(--brand); }
.dash-alert > .ico:last-child { margin-left: auto; color: var(--muted); }
.dash-alert-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; flex: none; }
.dash-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.dash-bar .ico { width: 14px; height: 14px; vertical-align: -2px; }
.kpis-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.kpi-d { display: grid; gap: 4px; align-content: start; }
.kpi .kpi-l { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-d b { font-size: 30px; line-height: 1.1; display: flex; align-items: center; gap: 6px; }
.kpi-star .ico { width: 22px; height: 22px; fill: var(--gold); stroke: var(--gold); }
.kpi .kpi-s { font-size: 12px; color: var(--muted); }
.kd { font-size: 12px; font-weight: 700; }
.kd small { font-weight: 500; color: var(--muted); }
.kd-up { color: var(--brand-d); }
.kd-down { color: var(--red); }
.kd-flat { color: var(--muted); }
.dash-sec { margin: 0 0 18px; }
.dash-sec h2 { font-size: 18px; margin: 0 0 12px; display: flex; align-items: center; gap: 4px; }
.dash-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.dash-table { margin-top: 12px; }
.ch-title { font-size: 14px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.ch-key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
/* columnas por día */
.cols { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 150px auto; column-gap: 8px; }
.cols-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; margin: -6px 0; }
.cols-plot { display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line-2);
  background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 50%; background-position: 0 0; }
.col { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; min-width: 0; }
.col i { display: block; width: 100%; max-width: 24px; min-height: 0; border-radius: 4px 4px 0 0; }
.col:hover i, .col.is-hover i { filter: brightness(1.15); }
.cols-x { grid-column: 2; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.ch-tip { position: fixed; z-index: 300; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; padding: 6px 9px; border-radius: 8px; box-shadow: var(--sh-2); white-space: nowrap; }
.ch-tip[hidden] { display: none; }
/* barras horizontales */
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 4px 10px; align-items: center; }
.hb-l { grid-column: 1 / -1; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.hb-t { height: 10px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 99px; }
.hb-v { font-size: 13px; font-weight: 700; text-align: right; }
.hb-v small { color: var(--muted); font-weight: 500; }
.hbars li.is-otros .hb-l { color: var(--muted); font-style: italic; }
/* reputación */
.rep-big { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rep-big b { font-size: 38px; font-weight: 800; line-height: 1; }
.rep-big .rep-precio { font-size: 14px; display: inline-flex; align-items: baseline; gap: 4px; }
.rep-big .rep-precio * { font-size: inherit; }
.rep-meses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rep-meses li { background: var(--bg-2); border-radius: 10px; padding: 8px 10px; display: grid; }
.rep-meses b { font-size: 18px; }
.rep-ult { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
.rep-ult p { margin: 4px 0 0; font-size: 14px; }
@media (min-width: 760px) {
  .kpis-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rep-meses { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .kpis-dash { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* lista clave → valor (datos guardados, resúmenes) */
.kv{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.kv li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:8px}
.kv li:last-child{border-bottom:0;padding-bottom:0}
.chip.is-on .muted { color: inherit; opacity: .8; }
.field small, .help { overflow-wrap: anywhere; } /* URLs largas en las ayudas de los formularios */

/* ======================================================================== v10 */
/* ---------- menú "⋯ Más" (acciones poco frecuentes o destructivas) */
.mas { position: relative; display: inline-block; }
.mas > summary { list-style: none; }
.mas > summary::-webkit-details-marker { display: none; }
.mas-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.mas-btn:hover, .mas[open] > .mas-btn { background: var(--bg-2); }
.mas-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 220px; max-width: min(320px, calc(100vw - 16px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-2); padding: 6px; display: grid; gap: 2px; }
.mas-pop form { margin: 0; }
.mas-it { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none !important; }
.mas-it:hover, .mas-it:focus-visible { background: var(--bg-2); }
.mas-it .ico { width: 18px; height: 18px; flex: none; color: var(--muted); }
.mas-it.is-danger { color: var(--red-ink); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 10px; }
.mas-it.is-danger .ico { color: var(--red-ink); }
.row-acts { white-space: nowrap; text-align: right; }
.row-acts > * { vertical-align: middle; }
.row-acts .inline-form { margin-right: 4px; }

/* ---------- herramientas del admin en el sitio (solo las ve un admin) */
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.title-row > h1 { margin: 0; }
.title-row-top { justify-content: space-between; margin-bottom: 6px; }
.adm-tools { display: inline-flex; align-items: center; gap: 6px; }
.adm-edit { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--line-2); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none !important; }
.adm-edit:hover { border-style: solid; background: var(--bg-2); }
.adm-edit .ico { width: 16px; height: 16px; }
.mas-adm .mas-btn { border-style: dashed; border-radius: 999px; }

/* ---------- panel lateral para editar desde el sitio */
.adm-drawer { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: flex-end; }
.adm-drawer[hidden] { display: none; }
.adm-drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.adm-drawer-panel { position: relative; width: min(760px, 100%); height: 100%; background: var(--bg); display: grid; grid-template-rows: auto 1fr; box-shadow: var(--sh-3); }
.adm-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.adm-drawer-head b { font-size: 16px; }
.adm-drawer iframe { width: 100%; height: 100%; border: 0; background: var(--bg); }
.adm-drawer-load { position: absolute; inset: 60px 0 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
body.is-embed { background: var(--bg); }
body.is-embed .admin-main { padding-top: 16px; }
body.is-embed .adm-solo-panel { display: none !important; }

/* ---------- listas de edición plegables (rubros, zonas) */
.edit-list { display: grid; gap: 8px; margin-bottom: 14px; }
.edit-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.edit-item[open] { box-shadow: var(--sh-1); }
.edit-sum { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; min-height: 56px; }
.edit-sum::-webkit-details-marker { display: none; }
.edit-sum-t { display: grid; gap: 1px; flex: 1; min-width: 0; }
.edit-sum-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.edit-sum-go .ico { width: 16px; height: 16px; }
.edit-item[open] .edit-sum-go { visibility: hidden; }
.edit-body { padding: 0 14px 14px; }
.edit-new { border-style: dashed; }
.cfg-sub { font-size: 16px; margin: 18px 0 8px; display: flex; align-items: center; gap: 4px; }
.table-sm td, .table-sm th { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 559px) { .edit-sum-go span { display: none; } }

/* ---------- resultados: afinar (buscar, filtros, orden y vista) */
.res-form { display: grid; gap: 10px; margin: 0 0 18px; }
.res-busca { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.res-busca .input, .res-busca .select { min-height: 44px; }
.res-busca .select { border-radius: 999px; }
.res-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.res-filtros { border: 0; margin: 0; padding: 0; min-width: 0; flex: 1 1 320px; }
.res-filtros .chips { flex-wrap: nowrap; }
.chip-check { user-select: none; }
.chip-check:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.chip-n { font-size: 12px; color: var(--muted); font-weight: 700; }
.chip.is-on .chip-n { color: inherit; }
.chip-clear { border-style: dashed; }
.res-orden { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.res-orden label { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.res-orden .select { min-height: 40px; width: auto; max-width: 260px; }
.vista-sw { display: inline-flex; border: 1px solid var(--line-2); border-radius: 12px; padding: 3px; gap: 2px; background: var(--surface); }
.vista-btn { display: grid; place-items: center; width: 38px; height: 34px; border-radius: 9px; color: var(--muted); }
.vista-btn:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.vista-btn.is-on { background: var(--ink); color: var(--bg); }
.vista-btn .ico { width: 18px; height: 18px; }
@media (min-width: 640px) {
  .res-busca { grid-template-columns: minmax(0, 1fr) minmax(0, 260px) auto; }
  .res-busca:not(:has(input)) { grid-template-columns: minmax(0, 300px); }
}
@media (max-width: 639px) {
  .res-orden { width: 100%; margin-left: 0; }
  .res-orden .select { flex: 1; max-width: none; }
}

/* ---------- vista "Lista" */
.pfilas { display: grid; gap: 10px; }
.pfila { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.pfila-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none !important; }
.pfila-img { width: 72px; height: 72px; flex: none; border-radius: 12px; overflow: hidden; display: block; background: var(--bg-2); }
.pfila-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfila-img .media { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.pfila-img .media-fallback .ico { width: 26px; height: 26px; }
.pfila-b { display: grid; gap: 2px; min-width: 0; }
.pfila-b > b { font-size: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pfila-b > .muted { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfila-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.pfila-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.pfila:hover { box-shadow: var(--sh-1); }
@media (max-width: 559px) {
  .pfila { align-items: flex-start; }
  .pfila-img { width: 56px; height: 56px; }
  .pfila-acts { flex-direction: column-reverse; }
  .pfila-acts .btn span { display: none; }
  .pfila-acts .btn { width: 42px; padding: 0; justify-content: center; }
}

/* ---------- "Lo que pasa en los barrios": Comunidad y empresas nuevas */
.com-av { background: var(--brand-l); color: var(--brand-d); }
.com-av .ico { width: 20px; height: 20px; }
.com-priv { display: inline-flex; align-items: center; gap: 3px; }
.com-priv .ico { width: 12px; height: 12px; }
.post-link-com > span:last-child { display: grid; gap: 3px; }
.post-com-m { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.post-com-m .ico { width: 13px; height: 13px; vertical-align: -2px; }
.pl-ico { display: grid; place-items: center; background: var(--brand-l); color: var(--brand-d); }
.pl-ico .ico { width: 26px; height: 26px; }
.post-nuevos { display: grid; gap: 8px; }
.greet .section-head { margin-bottom: 10px; align-items: center; }
.greet .section-head h1 { margin: 0; }

/* ---------- mostrar una acción solo donde no está repetida */
@media (max-width: 899px) { .solo-desk { display: none !important; } }
@media (min-width: 900px) { .solo-movil { display: none !important; } }

/* ---------- objetivos táctiles cómodos (enlaces sueltos, no dentro de un texto) */
.section-head > a, .section-head > div + a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.admin-top .link-btn { min-height: 40px; padding: 0 6px; }
.link-btn.js-check-all, .link-btn.js-check-none { min-height: 36px; }
.reserve-price span { padding: 2px 0; }
@media (max-width: 559px) { .com-grupo-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }

/* ---------- arreglos de la revisión en pantallas de 320px */
@media (max-width: 899px) { .f-layout, .p-layout { grid-template-columns: minmax(0, 1fr); } } /* 11.5: antes pisaba también la computadora y el formulario lateral quedaba abajo */
.res-form > *, .res-busca > *, .res-tools > * { min-width: 0; }
.res-busca .input, .res-busca .select { width: 100%; }
.post-head > div { min-width: 0; overflow-wrap: anywhere; }
.pactions { flex-wrap: wrap; }
.pfila-acts .btn { min-height: 42px; }
.res-orden .select { min-height: 44px; }
.admin-top .wrap > div:first-child { flex-wrap: wrap; height: auto !important; min-height: 56px; }
.admin-top .wrap > div:first-child > div { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 359px) { .res-orden label { display: none; } }
.chips.js-hscroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 1px; }
.chips.js-hscroll::-webkit-scrollbar { display: none; }
.res-filtros .hs { min-width: 0; }
.rinvite > div { min-width: 0; }
.rinvite-btns .btn { white-space: normal; text-align: center; }
.post-link > span:last-child { min-width: 0; padding-right: 10px; }
.cfg-foot .btn, .cfg-mod .btn { white-space: normal; text-align: left; height: auto; padding-top: 8px; padding-bottom: 8px; }
.chip-check { position: relative; } /* el checkbox oculto queda dentro de la fila que se desplaza */
.post-com-m .badge { white-space: normal; }
.post-link-com b { overflow-wrap: anywhere; }
.res-orden { min-width: 0; } .res-orden .select { min-width: 0; text-overflow: ellipsis; }
@media (max-width: 480px) { .acct-out { grid-column: 1 / -1; } }
@media (max-width: 374px) {
  .acct-nav { gap: 6px; }
  .acct-nav a, .acct-out button { padding: 8px 9px; font-size: 13px; gap: 5px; }
  .acct-nav .ico { width: 15px; height: 15px; }
}

/* ======================================================================== v11 */
/* ---------- botón flotante "Ver sitio como" (solo admin) */
.vp { position: relative; flex: none; }
.vp > summary { list-style: none; }
.vp > summary::-webkit-details-marker { display: none; }
/* selector del admin en el encabezado: "Admin ▾", o el rol que se está viendo en color de aviso */
.vp-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px 0 12px; justify-content: center; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 700; white-space: nowrap; }
.vp-btn:hover, .vp[open] .vp-btn { background: var(--bg-2); }
.vp-btn .ico { width: 17px; height: 17px; }
.vp-btn .vp-chev { width: 15px; height: 15px; transition: transform .15s; }
.vp[open] .vp-chev { transform: rotate(180deg); }
.vp.is-on .vp-btn { background: linear-gradient(var(--gold-l), var(--gold-l)), var(--surface); color: var(--gold-ink); border: 2px solid var(--warn); }
.vp-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(320px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); padding: 12px; display: grid; gap: 6px; }
/* celular: el selector va en la barra de arriba, al lado de la campanita; el menú ocupa el ancho de la pantalla */
@media (max-width: 899px) {
  .vp-pop { position: fixed; left: 16px; right: 16px; top: calc(var(--top-h) + 6px); width: auto; max-height: calc(100vh - var(--top-h) - 24px); overflow: auto; }
}
@media (max-width: 420px) { .searchpill-go { display: none; } .searchpill { padding-right: 12px; } }
@media (max-width: 480px) { .vp-chev, .appbar-in:has(.vp) .searchpill-go { display: none; } .vp-btn { padding: 0 11px; font-size: 13px; gap: 5px; } }
@media (max-width: 359px) { .vp:not(.is-on) .vp-lbl { display: none; } .vp-btn { padding: 0 10px; } }
.searchpill { overflow: hidden; }
.vp-t { margin: 0 0 4px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.vp-op { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.vp-op:hover { background: var(--bg-2); }
.vp-op.is-on { border-color: var(--ink); background: var(--bg-2); }
.vp-op input { position: absolute; opacity: 0; pointer-events: none; }
.vp-op:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.vp-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; flex: none; }
.vp-ico .ico { width: 18px; height: 18px; }
.vp-txt { display: grid; line-height: 1.25; min-width: 0; }
.vp-txt small { color: var(--muted); font-size: 12px; }
.vp-sub { display: grid; gap: 4px; padding: 0 4px 4px 54px; font-size: 12px; color: var(--muted); font-weight: 600; }
.vp-sub .select { min-height: 36px; font-size: 13px; }

/* ---------- rubros: búsqueda de empresas */
.edit-sum-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none !important; white-space: nowrap; }
.edit-sum-link:hover { background: var(--bg-2); }
.edit-sum-link .ico { width: 15px; height: 15px; }
@media (max-width: 559px) { .edit-sum-link span { display: none; } .edit-sum-link { width: 36px; padding: 0; justify-content: center; } }
.rub-busq { border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 12px 4px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.rub-busq legend { font-weight: 800; font-size: 14px; padding: 0 6px; display: flex; align-items: center; gap: 4px; }
.imp-plan { display: grid; gap: 10px; margin: 14px 0 18px; }
.imp-plan form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.imp-rubros { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.imp-cuenta { margin: 0; }
.imp-det { border-top: 1px solid var(--line); padding-top: 10px; }
.imp-det > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); min-height: 32px; display: flex; align-items: center; }
.imp-det .imp-rubros { margin-top: 8px; }
.imp-fuera-t { margin: 6px 0 0; }
.imp-fuera .badge { vertical-align: 1px; }
.imp-fuera .badge .ico { width: 13px; height: 13px; vertical-align: -2px; }
.rub-est-sin_terminos { color: var(--gold-ink); font-weight: 600; }
.h-sm { font-size: 18px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.imp-sec { margin-bottom: 20px; }
.imp-tabla td:first-child { width: 36px; }
.imp-tabla input[type=checkbox] { width: 20px; height: 20px; }
.imp-tabla tr.is-off td { opacity: .65; }
.imp-acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: sticky; bottom: 10px; box-shadow: var(--sh-2); }
.gop-contacto { margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; }
.cfg-nav .chip { white-space: normal; text-align: left; }
.toggle-big .btn { white-space: normal; text-align: center; }
/* Admin → Contenido: herramientas para sumar y mejorar empresas, numeradas en el orden del flujo */
.steps-tools li { padding: 16px 16px 16px 60px; }
.steps-tools li::before { left: 16px; }
.steps-tools .toggle-big > div { flex: 1 1 260px; min-width: 0; }
@media (max-width: 480px) {
  .steps-tools li { padding: 14px; }
  .steps-tools li::before { position: static; margin-bottom: 10px; }
  .steps-tools .toggle-big .btn { width: 100%; }
}
.vp-pop > * { min-width: 0; }
.vp-sub { grid-template-columns: minmax(0, 1fr); }
.vp-sub .select { width: 100%; min-width: 0; }
.vp-txt small { overflow-wrap: anywhere; }

/* ---------- bienvenida para visitantes sin cuenta (pantalla que arma el servidor) */

/* ---------- sugerencias */
.sug { max-width: 640px; }
.sug-ok { display: grid; gap: 8px; justify-items: start; }
.sug-texto { margin: 8px 0; white-space: normal; overflow-wrap: anywhere; font-size: 15px; }
.sug-acts { flex-wrap: wrap; gap: 6px; align-items: center; }

/* ======================================================================== v11.5 */
/* ---------- Para vos (portada personalizada) */
.pv-head h1 { margin-bottom: 4px; }
.pv-head .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.pv-head .eyebrow .ico { width: 15px; height: 15px; }
.pv-sub { margin: 0 0 16px; max-width: 640px; }
.pv-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none !important; min-width: 0; flex-wrap: wrap; }
a.pv-card:hover { box-shadow: var(--sh-1); border-color: var(--ink-2); }
.pv-card > .ico { width: 20px; height: 20px; color: var(--muted); flex: none; margin-left: auto; }
.pv-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; flex: none; }
.pv-ico .ico { width: 22px; height: 22px; }
.pv-txt { display: grid; gap: 2px; min-width: 0; flex: 1 1 180px; line-height: 1.3; }
.pv-txt small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-d); }
.pv-txt b { font-size: 17px; }
.pv-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-duo { display: grid; gap: 10px; }
.pv-feed { max-width: 720px; }
@media (min-width: 700px) { .pv-duo { grid-template-columns: 1fr 1fr; } .pv-card { flex-wrap: nowrap; } .pv-head .pv-card { max-width: 720px; } .pv-duo .pv-card { max-width: none; } }
/* ---------- migas de pan */
.migas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 13px; color: var(--muted); }
.migas li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.migas a { color: var(--ink-2); font-weight: 600; }
.migas .ico { width: 14px; height: 14px; }
.migas span[aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.f-title .migas { margin-bottom: 6px; }
.results-head .migas { margin-bottom: 4px; }
/* ---------- página de barrio: empresas que trabajan ahí y contacto directo con inmobiliarias */
.barrio-prov { border-top: 1px solid var(--line); margin-top: 8px; }
.shelf-sub { padding-top: 10px; }
.shelf-sub h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; margin: 0; }
.shelf-sub h3 .ico { width: 18px; height: 18px; color: var(--brand-d); }
.rubros-en { margin-top: 18px; }
.inmo-dir { display: grid; gap: 8px; min-width: 0; }
/* ---------- Barrios: "¿Dónde querés vivir?" */
.bsearch-wrap { padding-top: 18px; }
.bsearch { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); padding: 16px; display: grid; gap: 12px; }
.bsearch h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 8px; }
.bsearch h2 .ico { width: 20px; height: 20px; color: var(--brand-d); }
.bsearch-row { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.bsearch-row label { display: grid; gap: 4px; min-width: 0; }
.bsearch-row label span { font-size: 12px; font-weight: 800; }
.bsearch-row .btn { min-height: 46px; align-self: end; }
.bsearch-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 560px) { .bsearch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bsearch-q { grid-column: 1 / -1; } }
@media (min-width: 900px) { .bsearch { padding: 20px 22px; } .bsearch-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; } .bsearch-q { grid-column: auto; } }
@media (max-width: 559px) {
  /* celular: solo el nombre y "Buscar"; zona, gastos y servicios están en "Filtros" */
  .bsearch { padding: 14px; gap: 10px; }
  .bsearch h2 { font-size: 18px; }
  .bsearch-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bsearch-row label:not(.bsearch-q), .bsearch-checks { display: none; }
  .bsearch-q span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bsearch-row .btn { padding: 0 14px; }
}
/* ---------- contacto directo con la empresa */
.contacto-btns { display: grid; gap: 8px; }
.contacto-btns .btn { justify-content: center; }
.contacto-dato { font-weight: 500; opacity: .75; margin-left: 4px; font-size: 13px; }

/* ======================================================================== v11.6 */
/* ---------- empresa: perfil completo, Para vos, rendimiento y reseñas */
.perfil-completo { display: grid; gap: 10px; margin: 12px 0; }
.pc-top { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; }
.pc-falta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-falta a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none !important; }
.pc-falta a:hover { border-color: var(--ink); }
.pc-falta .ico { width: 15px; height: 15px; color: var(--brand-d); }
.res-top { margin-bottom: 8px; }
.pv-acciones { display: grid; gap: 10px; }
@media (min-width: 700px) { .pv-acciones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pv-negocio .kpis { margin-top: 4px; }
.cfg-grupo { margin: 14px 0 2px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* ---------- acceso (11.6.1): la página REAL detrás de la hoja. Se ve y se reconoce, pero no se usa: el
   servidor la marca inert (sin clics ni foco) desde el primer pintado, se difumina un poco y no se desplaza.
   El encabezado y las secciones quedan nítidos y usables (llevan a otras páginas, que deciden por su cuenta). */
html.gate-on { overflow: hidden; overscroll-behavior: none; }
html.gate-on body { height: 100vh; height: 100dvh; overflow: clip; }
body.is-gate #main, body.is-gate .footer, body.is-gate .gate-fondo { filter: blur(1.5px) saturate(.9); pointer-events: none; user-select: none; -webkit-user-select: none; }
.gate-velo { position: fixed; left: 0; right: 0; top: var(--hdr-h); bottom: 0; z-index: 35; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.06) 30%, rgba(0,0,0,.32) 100%); }
[data-theme="dark"] .gate-velo { background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.18) 30%, rgba(0,0,0,.55) 100%); }
.gate-vacio { padding-top: 32px; padding-bottom: 60vh; }
.auth-sheet { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); z-index: 46; background: var(--surface); color: var(--ink);
  border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.18); padding: 6px 18px 18px; display: grid; gap: 12px; align-content: start;
  min-height: min(48dvh, 520px); max-height: calc(100dvh - var(--top-h) - var(--tab-h) - env(safe-area-inset-bottom, 0px) - 10px); overflow-y: auto; overscroll-behavior: contain; animation: welcome-up .28s ease-out; }
.auth-sheet .sheet-grab { display: block; justify-self: center; width: 40px; height: 4px; border-radius: 999px; background: var(--line-2); margin: 4px 0 2px; }
.auth-sheet.is-expandido { min-height: min(70dvh, 640px); }
html.kb-abierto .auth-sheet { bottom: var(--kb, 0px); min-height: 0; max-height: calc(var(--vvh, 100dvh) - 8px); border-radius: 18px 18px 0 0; }
.auth-sheet-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; } /* 11.7.1: clase propia (antes .auth-head, que es también el título de /ingresar) */
.auth-sheet-head .auth-h { font-size: clamp(20px, 5vw, 24px); line-height: 1.2; margin: 0 0 4px; letter-spacing: -.01em; }
.auth-sheet-head .auth-h:focus { outline: none; }
.auth-sheet-head p { margin: 0; font-size: 14px; }
.auth-body { display: grid; gap: 10px; min-width: 0; }
.auth-form { display: grid; gap: 12px; }
.auth-form .btn-block { min-height: 50px; font-size: 16px; }
.auth-nota { margin: 0; text-align: center; }
.auth-paso-t { margin: 0; font-size: 15px; padding: 0; }
.auth-quien { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); min-width: 0; flex-wrap: wrap; }
.auth-quien b { overflow-wrap: anywhere; }
.auth-tipos { display: grid; gap: 10px; }
.auth-tipos .welcome-opt { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.auth-mas { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.auth-mas a, .auth-cambiar { min-height: 40px; display: inline-flex; align-items: center; font-weight: 700; }
.auth-clave { position: relative; display: block; }
.auth-clave .input { padding-right: 84px; }
.auth-clave .link-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px; font-weight: 700; font-size: 13px; }
.auth-grupo { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.auth-grupo[hidden] { display: none; }
.auth-atras { justify-self: start; min-height: 36px; font-size: 14px; }
.auth-alert { margin: 0; }
.auth-foot { border-top: 1px solid var(--line); padding-top: 10px; }
.auth-foot a { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; font-weight: 700; }
.auth-foot .ico { width: 15px; height: 15px; vertical-align: -2px; }
.welcome-panel .auth-body { margin-top: 4px; }
.welcome-panel { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.welcome-panel h2:focus { outline: none; }
@keyframes auth-up-centro { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
/* tableta: hoja desde abajo pero angosta y a la medida de su contenido, para que se vea más página real */
@media (min-width: 600px) and (max-width: 899px) {
  .auth-sheet, .auth-sheet.is-expandido { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, calc(100vw - 48px)); min-height: 0; padding: 8px 26px 22px; animation: auth-up-centro .28s ease-out; }
  html.kb-abierto .auth-sheet { min-height: 0; }
}
@media (min-width: 900px) {
  .auth-sheet { left: 50%; right: auto; bottom: 24px; transform: translateX(-50%); width: min(460px, calc(100vw - 48px)); border-radius: 22px; min-height: 0; max-height: calc(100vh - var(--hdr-h) - 48px); padding: 24px 26px 22px; animation: none; }
  .auth-sheet.is-expandido { min-height: 0; }
  .auth-sheet .sheet-grab { display: none; }
  body.is-gate #main, body.is-gate .footer, body.is-gate .gate-fondo { filter: blur(2px) saturate(.9); }
  .gate-velo { background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.28) 100%); }
  [data-theme="dark"] .gate-velo { background: linear-gradient(to bottom, rgba(0,0,0,.08) 30%, rgba(0,0,0,.5) 100%); }
}
@media (prefers-reduced-motion: reduce) { .auth-sheet { animation: none; } }
.auth-foot { display: grid; gap: 4px; }
/* pantallas bajas (celulares chicos): la hoja muestra lo esencial para que se vea la página detrás */
@media (max-width: 899px) and (max-height: 760px) {
  .auth-sheet { min-height: 0; padding-bottom: 14px; gap: 10px; }
  .auth-sheet-head { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .auth-sheet-head .welcome-mark { width: 36px; height: 36px; border-radius: 10px; }
  .auth-sheet-head .auth-h { font-size: 19px; margin: 0; }
  .auth-sheet:not(.is-expandido) .auth-sheet-head p, .auth-sheet:not(.is-expandido) .auth-nota, .auth-sheet:not(.is-expandido) .auth-emp { display: none; }
}

/* ---------- 11.6.2 · fila de empresa compacta (contenedores angostos: barra lateral de la ficha de barrio…)
   .pfila nació para el listado ancho y se adapta por el ancho de la PANTALLA. Dentro de una columna angosta
   (la barra lateral en la computadora) quedaba con el diseño ancho y no entraba. .pfilas-compactas mide su propio
   ancho (container query) y, si es angosto, apila: foto + datos arriba; WhatsApp/Llamar (con texto) y favorito abajo. */
.pfilas-compactas { container-type: inline-size; }
@container (max-width: 459px) {
  .pfilas-compactas .pfila { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: stretch; padding: 10px; }
  .pfilas-compactas .pfila-main { gap: 12px; }
  .pfilas-compactas .pfila-img { width: 56px; height: 56px; }
  .pfilas-compactas .pfila-b > b { font-size: 15px; }
  .pfilas-compactas .pfila-acts { flex-direction: row; gap: 8px; }
  .pfilas-compactas .pfila-acts .btn { flex: 1 1 auto; width: auto; min-width: 0; padding: 0 14px; justify-content: center; }
  .pfilas-compactas .pfila-acts .btn span { display: inline; }
  .pfilas-compactas .pfila-acts .icon-btn { flex: none; }
}

/* ---------- 11.6.2 · segunda fila de la barra de Barrios (opciones del grupo elegido) */
.catbar-sub { border-top: 1px solid var(--line); }
.catbar-sub .catbar-sub-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gutter); max-width: 1280px; margin: 0 auto; }
.catbar-sub-in::-webkit-scrollbar { display: none; }
.catbar-sub .chip { padding: 6px 12px; font-size: 13px; flex: none; }
.catbar-sub .hs-btn { top: 50%; }
.com-hero-sec { padding-bottom: 0; }

/* ---------- 11.6.2 · barras de secciones en celulares angostos */
@media (max-width: 420px) { .catbar-in { gap: 18px; } } /* las 5 pestañas de Barrios entran a 375-390 px */

/* ---------- 11.7 · Completar perfil desde Internet (admin) */
.enr-pasos { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 4px 0 18px; counter-reset: enr; font-size: 13px; color: var(--muted); }
.enr-pasos li { counter-increment: enr; display: inline-flex; align-items: center; gap: 6px; }
.enr-pasos li::before { content: counter(enr); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); color: var(--ink-2); font-weight: 700; font-size: 12px; }
.enr-pasos li.is-on { color: var(--ink); font-weight: 700; }
.enr-pasos li.is-on::before { background: var(--brand); color: var(--on-brand); }
.enr-pasos li.is-hecho::before { content: "✓"; background: var(--brand-l); color: var(--brand-d); }
.enr-busca-fila { display: flex; gap: 8px; margin-top: 8px; }
.enr-busca-fila .input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 479px) { .enr-busca-fila { flex-direction: column; } }
.enr-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.enr-recientes, .enr-fuentes-l, .enr-sv { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.enr-recientes li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.enr-estados { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 16px; margin-bottom: 16px; }
.enr-estado { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.enr-aut-ok { display: flex; gap: 8px; align-items: flex-start; color: var(--brand-d); margin: 0 0 10px; }
.enr-aut-ok .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.enr-form, .enr-retirar, .enr-rev > .card, .enr-fuentes { margin-bottom: 16px; }
.enr-retirar summary { cursor: pointer; font-weight: 700; }
/* progreso del análisis */
.enr-prog { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.enr-prog li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.enr-prog-ico { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.enr-prog li.is-on { color: var(--ink); font-weight: 600; }
.enr-prog li.is-on .enr-prog-ico { border-color: var(--brand); border-right-color: transparent; animation: enr-gira .8s linear infinite; }
.enr-prog li.is-hecho { color: var(--ink-2); }
.enr-prog li.is-hecho .enr-prog-ico { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.enr-prog li.is-hecho .enr-prog-ico::after { content: "✓"; }
.enr-prog li.is-error .enr-prog-ico { background: var(--gold-l); border-color: var(--gold); color: var(--gold-ink); }
.enr-prog li.is-error .enr-prog-ico::after { content: "!"; }
@keyframes enr-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .enr-prog li.is-on .enr-prog-ico { animation: none; border-right-color: var(--brand); } }
/* revisión */
.enr-fuentes-l li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.enr-fuentes-l li > .muted { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.enr-campos { display: grid; gap: 12px; }
.enr-campo { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px 18px; }
.enr-campo legend { font-weight: 700; padding: 0 6px; }
.enr-actual > div { overflow-wrap: anywhere; font-size: 14px; }
.enr-rev .enr-actual { margin-bottom: 8px; }
.enr-campo .enr-actual { margin-bottom: 0; }
.enr-opciones { display: grid; gap: 6px; min-width: 0; }
.enr-op { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; overflow-wrap: anywhere; font-size: 14px; }
.enr-op:hover { background: var(--bg-2); }
.enr-op:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
.enr-op:has(input:disabled) { cursor: default; opacity: .7; }
.enr-op input { margin-top: 3px; flex: none; accent-color: var(--brand); }
.enr-op > span { min-width: 0; }
.enr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.enr-gdat { display: block; margin-top: 4px; }
.chip-sen { font-size: 12px; color: var(--muted); }
.chip-sen.ok { color: var(--brand-d); font-weight: 600; }
.enr-modo { margin: 6px 0 10px; flex-wrap: wrap; }
.enr-modo .chip { white-space: normal; max-width: 100%; }
.enr-aplicar .btn { white-space: normal; text-align: center; max-width: 100%; }
.enr-ninguna { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.enr-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.enr-img { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.enr-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--bg-2); }
.enr-img figcaption { padding: 8px 10px; display: grid; gap: 4px; }
.enr-img-a { display: block; }
.enr-img-rota { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 10px; text-align: center; font-size: 12px; color: var(--muted); background: var(--bg-2); }
.enr-img-rota[hidden], .enr-img img[hidden] { display: none; }
.enr-sv .check { align-items: flex-start; }
.enr-sv .check > span { min-width: 0; overflow-wrap: anywhere; }
.enr-img figcaption .muted { overflow-wrap: anywhere; }
.enr-aplicar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; position: sticky; bottom: 8px; z-index: 5; box-shadow: var(--sh-2); }
.enr-aplicar .help { flex: 1 1 260px; }
.enr-hist { margin-top: 8px; }
@media (max-width: 719px) {
  .enr-aplicar { position: static; box-shadow: none; }
  .enr-campo { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .enr-galeria { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .enr-aplicar .btn { flex: 1 1 100%; justify-content: center; }
}
.prov-estados { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 4px 0 14px; }
.prov-estados .btn { max-width: 100%; white-space: normal; text-align: left; }

/* ---------- 11.7.1 · mapa del sitio (para personas) */
.mapa-intro { margin: 0 0 14px; }
.mapa-indice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.mapa-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 32px; }
@media (min-width: 900px) { .mapa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .mapa-sec.is-ancha { grid-column: 1 / -1; } }
.mapa-sec { scroll-margin-top: calc(var(--hdr-h) + 12px); min-width: 0; }
.mapa-h { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 0 0 6px; }
.mapa-h .ico { width: 20px; height: 20px; color: var(--brand-d); }
.mapa-g { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
.mapa-l { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px 18px; }
.mapa-l.is-cols { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
.mapa-l a { display: inline-flex; align-items: center; min-height: 36px; overflow-wrap: anywhere; }

/* 11.7.1 · aviso corto de la venta de garage */
.com-aviso-venta { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; }
.com-aviso-venta .ico { width: 15px; height: 15px; flex: none; margin-top: 2px; }

@media (min-width: 900px) and (max-width: 1099px) { .searchbar label { padding: 0 14px; } .appbar-link { padding: 10px 8px; } }

/* ---------- 11.8 · respuesta de la empresa debajo de la reseña: otra voz, con sangría y borde de marca */
.rresp { margin: 12px 0 0 12px; padding: 10px 0 2px 14px; border-left: 3px solid var(--brand); }
.rresp.is-pendiente { border-left-color: var(--gold); }
.rresp.is-oculta { border-left-color: var(--red); opacity: .85; }
.rresp-head { display: flex; gap: 8px; align-items: center; }
.rresp-head > div { display: grid; min-width: 0; line-height: 1.3; }
.rresp-head b { font-size: 14px; overflow-wrap: anywhere; }
.rresp-head .badge { vertical-align: 1px; }
.rresp-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-2); }
.rresp-ini { display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--brand-d); background: var(--brand-l); }
.review .rresp-txt { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.rresp-acc { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 16px; margin-top: 6px; }
.rresp-acc .link-btn, .rresp-form > summary.link-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.rresp-acc .ico, .rresp-form summary .ico { width: 15px; height: 15px; }
.rresp-borrar { color: var(--red-ink); }
.rresp-form > summary { list-style: none; cursor: pointer; }
.rresp-form > summary::-webkit-details-marker { display: none; }
.rresp-nueva { margin-top: 12px; }
.rresp-form[open] { flex: 1 1 100%; }
.rresp-form[open] > summary.btn { display: none; }
.rresp-form-in { margin-top: 10px; display: grid; gap: 10px; }
.rresp-form-in .textarea { min-height: 110px; }
.rresp-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rresp-cuenta.is-cerca { color: var(--gold-ink); }
.rresp-cuenta.is-pasado { color: var(--red-ink); font-weight: 700; }
.rresp-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.rresp-top h2 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rresp-ratio { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
.rresp-bar { display: inline-block; width: 90px; height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.rresp-bar em { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.rresp-filtros { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 12px 0 4px; }
.rresp-filtros .chips { margin: 0; flex-wrap: wrap; }
.rresp-orden { margin: 0; }
@media (max-width: 479px) {
  .rresp { margin-left: 8px; padding-left: 12px; }
  .rresp-btns .btn { flex: 1 1 auto; justify-content: center; }
  .rresp-orden, .rresp-orden .select { width: 100%; }
}
/* admin → reseñas: estado de la respuesta */
.adm-rresp { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--line-2); background: var(--bg-2); border-radius: 0 10px 10px 0; font-size: 14px; }
.adm-rresp p { margin: 4px 0 6px; white-space: pre-line; overflow-wrap: anywhere; }
.adm-rresp .lead-actions { margin-top: 4px; }
/* 11.9 · admin → vincular empresas con Google */
.gv-aviso { margin: 0 0 16px; max-width: 900px; }
.gv-aviso .link-btn { color: inherit; font: inherit; }
.gv-kpis { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); max-width: 900px; margin-bottom: 16px; }
.gv-kpis .kpi b { font-size: 26px; }
.gv-lote { max-width: 900px; margin-bottom: 18px; }
.gv-lote .toolbar { flex-wrap: wrap; }
.gv-filtros { margin: 0 0 12px; }
.gv-dups { max-width: 900px; margin-bottom: 16px; border-color: var(--gold); }
.gv-dups-l { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.gv-dups-l li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.gv-dups-l code, .gv-log code, .gv-cand code { overflow-wrap: anywhere; word-break: break-all; }
.gv-tabla td { vertical-align: top; }
.gv-tabla .badge { white-space: nowrap; }
.gv-accion { text-align: right; white-space: nowrap; }
.gv-prov { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.gv-h-badge { vertical-align: middle; font-size: 13px; }
.gv-rev { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); margin: 16px 0; align-items: start; }
.gv-dl { margin: 0; display: grid; gap: 8px; }
.gv-dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
.gv-dl dt { color: var(--muted); font-size: 13px; padding-top: 1px; }
.gv-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.gv-dl dd .ico { width: 14px; height: 14px; color: var(--gold); vertical-align: -2px; }
.gv-acciones-emp { margin: 14px 0 0; flex-wrap: wrap; }
.gv-actual .help { margin: 12px 0; }
.gv-cand-l { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.gv-cand.is-alta { border-color: var(--brand); }
.gv-cand-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; }
.gv-cand-n { margin: 0; flex: 1 1 100%; overflow-wrap: anywhere; }
.gv-senales { margin: 10px 0 0; }
.gv-dup { margin: 10px 0 0; }
.gv-cand-acc { margin: 12px 0 0; flex-wrap: wrap; align-items: center; }
.gv-cand-acc .btn[disabled] { opacity: .5; cursor: not-allowed; }
.gv-log { margin-top: 18px; }
.gv-log summary { cursor: pointer; font-weight: 700; }
.gv-log ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
@media (max-width: 719px) {
  /* la tabla pasa a tarjetas: una empresa por bloque, con el nombre de cada dato */
  .gv-wrap { overflow: visible; background: none; border: 0; }
  .gv-tabla, .gv-tabla tbody, .gv-tabla tr, .gv-tabla td { display: block; width: 100%; }
  .gv-tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gv-tabla tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 10px; }
  .gv-tabla td { border: 0; padding: 3px 0; }
  .gv-tabla td[data-label]:not([data-label="Empresa"])::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  .gv-accion { text-align: left; padding-top: 8px !important; }
}
/* panel de la empresa: estado del vínculo con Google */
.gv-panel { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.gv-panel .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--muted); }
@media (max-width: 479px) { .gv-dl > div { grid-template-columns: 76px minmax(0, 1fr); } }
.gv-prov .btn, .gv-acciones-emp .btn, .gv-cand-acc .btn { max-width: 100%; white-space: normal; }
/* 11.9.1 · opiniones de Google: estados */
.gop-empty.is-error { border-style: solid; border-color: var(--gold); background: var(--gold-l); color: var(--gold-ink); }
.gop-acc { display: flex; flex-wrap: wrap; gap: 8px; }
.gop-nota { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; color: var(--muted); }
.gop-nota .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.js-google[aria-busy="true"] .gop-cargando > span::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -1px; border: 2px solid var(--line-2); border-right-color: transparent; border-radius: 50%; animation: enr-gira .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .js-google[aria-busy="true"] .gop-cargando > span::after { animation: none; } }
@media (max-width: 479px) { .gop-empty .btn, .gop-acc { width: 100%; } .gop-acc .btn { flex: 1 1 auto; } }
