/* ServiciosBarrios + Countries — v2
   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;
  --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");
  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");
  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"] .site-barrios .brand-mark { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .searchpill-go, [data-theme="dark"] .searchbar button { color: #06261A; }
[data-theme="dark"] .site-barrios .searchpill-go, [data-theme="dark"] .site-barrios .searchbar button { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .tabbar a.tab-plus span.plus { color: #06261A; }
[data-theme="dark"] .site-barrios .tabbar a.tab-plus span.plus { background: var(--ink); color: var(--bg); }
[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); }

/* botón de tema */
.theme-mobile { flex: none; }
.admin-theme { color: #fff; width: 36px; height: 36px; }
.admin-theme:hover { background: rgba(255,255,255,.1); }
@media (min-width: 900px) { .theme-mobile { display: none; } }
.theme-btn .ico-sun { display: none; }
[data-theme="dark"] .theme-btn .ico-sun { display: block; }
[data-theme="dark"] .theme-btn .ico-moon { display: none; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-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: #fff; 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; 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: #fff; }
.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: #fff; display: grid; place-items: center; }
.site-barrios .brand-mark { background: var(--ink); }
.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; }
.site-barrios .brand-name b { color: var(--muted); }
.appbar-right { margin-left: auto; display: none; align-items: center; gap: 6px; }
.appbar-link { font-weight: 700; font-size: 14px; padding: 10px 12px; border-radius: 999px; }
.appbar-link:hover { background: var(--bg-2); text-decoration: none; }
.user-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; }
.user-pill:hover { box-shadow: var(--sh-1); text-decoration: none; }
.user-pill .av { width: 30px; height: 30px; border-radius: 50%; background: var(--muted); color: #fff; display: grid; place-items: center; }
.user-pill .av .ico { width: 18px; height: 18px; }

/* 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: #fff; display: grid; place-items: center; flex: none; }
.site-barrios .searchpill-go { background: var(--ink); }
.searchbar { display: none; }

/* ---------- barra de categorías (Airbnb) */
.catbar { position: sticky; top: var(--top-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-template-columns: repeat(5, 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: 10.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); }
.site-barrios .tabbar a.is-on { color: var(--ink); }
.tabbar a.tab-plus span.plus { width: 44px; height: 32px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 1px; }
.site-barrios .tabbar a.tab-plus span.plus { background: var(--ink); }
.tabbar a.tab-plus .ico { width: 22px; height: 22px; }

/* 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: #fff; 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; }
.field { display: grid; gap: 6px; }
.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; }
.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; }
.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: 70px 0; }
.error-page b { font-size: 88px; font-weight: 800; letter-spacing: -.05em; color: var(--brand); display: block; line-height: 1; }
.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; gap: 4px; overflow-x: auto; scrollbar-width: none; 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; }
  body.has-tabbar, body.has-reserve { padding-bottom: 0; }
  .tabbar, .reserve, .searchpill { display: none; }
  .brand-name { display: block; }
  .appbar-right { display: flex; }
  .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: #fff; display: grid; place-items: center; cursor: pointer; margin-left: 6px; }
  .site-barrios .searchbar button { background: var(--ink); }
  .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(4, minmax(0, 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(--top-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)); }
}
