/* Costa Blanca Viva — sistema de diseño
   Fraunces (títulos) + Plus Jakarta Sans (interfaz). Azul mediterráneo, fotos a sangre, tarjetas blancas.
   Escritorio: barra lateral. Móvil: barra inferior con botón central de crear. Tema claro y oscuro. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/fraunces-latin-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/fraunces-latin-ext-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url(../fonts/fraunces-latin-opsz-italic.woff2) format('woff2-variations'); }
@font-face { font-family: 'Jakarta'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Jakarta'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F2F6FA;
  --bg-2: #E9F0F7;
  --surface: #FFFFFF;
  --surface-2: #F6F9FC;
  --surface-3: #EDF3F9;
  --line: #E1E8F0;
  --line-2: #CFD9E4;
  --ink: #0E2A47;
  --ink-2: #41556B;
  --ink-3: #74859A;
  --primary: #1A4F8E;
  --primary-2: #133D70;
  --primary-ink: #FFFFFF;
  --primary-soft: #E7F0FA;
  --sea: #2E86DE;
  --sea-soft: #E3F0FC;
  --navy: #0D2B4B;
  --navy-2: #0A223D;
  --gold: #F2B33D;
  --star: #F5A524;
  --ok: #1E8E5A;
  --ok-soft: #E2F4EA;
  --warn: #B7790B;
  --warn-soft: #FDF2DA;
  --danger: #D93B30;
  --danger-soft: #FCE8E6;
  --c-lugar: #2E86DE;
  --c-act: #22A06B;
  --c-evt: #E8553E;
  --c-com: #F29B2E;
  --c-tribu: #7C5CE0;
  --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(14, 42, 71, .05), 0 3px 12px rgba(14, 42, 71, .06);
  --sh-2: 0 4px 10px rgba(14, 42, 71, .06), 0 14px 34px rgba(14, 42, 71, .10);
  --sh-3: 0 20px 60px rgba(9, 30, 55, .22);
  --side-w: 248px;
  --gutter: 32px;
  --appbar-h: 72px;
  --tabbar-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --photo-veil: linear-gradient(180deg, rgba(8, 24, 44, 0) 35%, rgba(8, 24, 44, .72) 100%);
}

:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="dark"], :root[data-theme="dark"] body {
  --bg: #08131F; --bg-2: #0C1A2A; --surface: #0F1E30; --surface-2: #13243A; --surface-3: #182C45;
  --line: #1F3550; --line-2: #2A4463; --ink: #EAF2FA; --ink-2: #B4C4D6; --ink-3: #8398AF;
  --primary: #4C93E6; --primary-2: #73ABEE; --primary-ink: #06182B; --primary-soft: #14304F;
  --sea: #5AA6EC; --sea-soft: #12304F; --navy: #0B2440; --navy-2: #071A30;
  --ok: #4CC48A; --ok-soft: #10301F; --warn: #F0B54A; --warn-soft: #33270C; --danger: #FF6B60; --danger-soft: #3A1714;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 12px rgba(0, 0, 0, .25);
  --sh-2: 0 6px 18px rgba(0, 0, 0, .35); --sh-3: 0 20px 60px rgba(0, 0, 0, .55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark;
    --bg: #08131F; --bg-2: #0C1A2A; --surface: #0F1E30; --surface-2: #13243A; --surface-3: #182C45;
    --line: #1F3550; --line-2: #2A4463; --ink: #EAF2FA; --ink-2: #B4C4D6; --ink-3: #8398AF;
    --primary: #4C93E6; --primary-2: #73ABEE; --primary-ink: #06182B; --primary-soft: #14304F;
    --sea: #5AA6EC; --sea-soft: #12304F; --navy: #0B2440; --navy-2: #071A30;
    --ok: #4CC48A; --ok-soft: #10301F; --warn: #F0B54A; --warn-soft: #33270C; --danger: #FF6B60; --danger-soft: #3A1714;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 12px rgba(0, 0, 0, .25);
    --sh-2: 0 6px 18px rgba(0, 0, 0, .35); --sh-3: 0 20px 60px rgba(0, 0, 0, .55);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--sea) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--sea) 30%, transparent); }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.01em; color: var(--ink); font-optical-sizing: auto; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.08; margin: 0 0 .5rem; }
h2 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); line-height: 1.2; margin: 0 0 .75rem; }
h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 .4rem; }
h4 { font-size: 1rem; margin: 0 0 .3rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.06rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.small { font-size: .86rem; }
.xsmall { font-size: .76rem; }
.strong { font-weight: 700; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Estructura ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img, .brand svg { width: 30px; height: 38px; }
.brand-word { display: grid; line-height: 1; font-family: var(--font-sans); }
.brand-word small { font-size: .62rem; letter-spacing: .2em; font-weight: 700; color: var(--ink); }
.brand-word b { font-size: 1.02rem; letter-spacing: .26em; font-weight: 800; color: var(--primary); margin-top: 2px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.appbar { position: sticky; top: 0; z-index: 25; height: var(--appbar-h); display: flex; align-items: center; gap: 1rem;
  padding: 0 var(--gutter); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.appbar.is-scrolled { border-bottom-color: var(--line); }
.appbar-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.55rem; margin: 0; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .appbar-mob { display: none; }
.appbar-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.weather-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 999px; background: var(--surface);
  box-shadow: var(--sh-1); font-weight: 700; font-size: .88rem; color: var(--ink); text-decoration: none; }
.weather-pill .ic { color: var(--gold); width: 18px; height: 18px; }
.me-chip { display: inline-flex; align-items: center; gap: .6rem; padding: .25rem .8rem .25rem .25rem; border-radius: 999px;
  background: var(--surface); box-shadow: var(--sh-1); text-decoration: none; color: var(--ink); }
.me-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.me-chip b { display: block; font-size: .86rem; line-height: 1.1; }
.me-chip small { display: block; font-size: .72rem; color: var(--ink-3); line-height: 1.2; }

.page { padding: 26px var(--gutter) 64px; width: 100%; max-width: 1320px; margin: 0 auto; }
.page-flush { padding: 0; max-width: none; }
.wrap { width: 100%; max-width: 1240px; }
.wrap-narrow { width: 100%; max-width: 760px; }
.wrap-form { width: 100%; max-width: 680px; }

/* Barra inferior (móvil) */
.tabbar { display: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .65rem 1.25rem;
  border: 1px solid transparent; border-radius: var(--r-sm); background: var(--primary); color: var(--primary-ink); font-weight: 700;
  font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--primary-2); color: var(--primary-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-sm { min-height: 38px; padding: .45rem .9rem; font-size: .87rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: .8rem 1.6rem; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-pill { border-radius: 999px; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { background: var(--surface-3); color: var(--ink); border-color: var(--line-2); }
.btn-plain, .btn-ghost { background: transparent; color: var(--primary); border-color: transparent; }
.btn-plain:hover, .btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: color-mix(in srgb, var(--primary-soft) 70%, var(--primary) 12%); color: var(--primary); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #F0F5FB; color: var(--navy); }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); text-decoration: none; transition: background .15s, transform .1s; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn.flat { box-shadow: none; background: transparent; }
.icon-btn.flat:hover { background: var(--surface-3); }
.icon-btn.on-photo { background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.icon-btn.is-on .ic { color: var(--danger); }
.badge-dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger);
  color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); }
.fav-btn { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--navy); border: 0; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); z-index: 2; }
.fav-btn .ic { width: 18px; height: 18px; }
.fav-btn.is-on { color: var(--danger); }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* ---------- Chips, etiquetas y píldoras ---------- */
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .48rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .87rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-current="true"], .chip[aria-pressed="true"], .chip.is-on, .chip:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip .ic { width: 16px; height: 16px; }
.toggle-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: 999px; background: var(--surface-3);
  color: var(--ink-2); font-weight: 600; font-size: .78rem; line-height: 1.4; white-space: nowrap; }
.tag .ic { width: 14px; height: 14px; }
.tag-blue { background: var(--sea-soft); color: var(--primary); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-bad { background: var(--danger-soft); color: var(--danger); }
.tag-solid { background: var(--danger); color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 800; }
.tag-glass { background: rgba(8, 24, 44, .55); color: #fff; backdrop-filter: blur(6px); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.rating { display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; font-size: .86rem; color: var(--ink); }
.rating .ic { width: 15px; height: 15px; color: var(--star); }
.rating small { color: var(--ink-3); font-weight: 500; }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .ic { width: 16px; height: 16px; }
.stars .off { color: var(--line-2); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; color: var(--ink-3); font-size: .84rem; }
.meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.meta .ic { width: 15px; height: 15px; }
.dist[data-dist]:empty { display: none; }
.verified { color: var(--sea); display: inline-grid; vertical-align: -3px; }
.verified .ic { width: 17px; height: 17px; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1rem; align-content: start; }
.field > label, .label { font-weight: 700; font-size: .86rem; color: var(--ink); }
.hint { font-size: .8rem; color: var(--ink-3); margin: 0; }
.field-error, .err { color: var(--danger); font-size: .82rem; font-weight: 600; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=tel],
input[type=date], input[type=datetime-local], input[type=time], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .95rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  color: var(--ink); font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2374859A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sea) 18%, transparent); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--primary); vertical-align: -4px; margin: 0; }
input[type=file] { font-size: .88rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 2px; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-icon input { padding-left: 44px; }
.input-icon .pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
.input-icon:has(.pw-toggle) input { padding-right: 48px; }
.switch { position: relative; display: inline-block; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--sea); }
.switch input:checked + span::after { transform: translateX(20px); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: var(--line-2); transition: color .1s, transform .1s; }
.star-input label .ic { width: 32px; height: 32px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 3px solid var(--sea); border-radius: 6px; }
.search-bar { position: relative; display: flex; align-items: center; background: var(--surface); border-radius: 999px; box-shadow: var(--sh-1);
  border: 1px solid var(--line); padding: 4px 4px 4px 16px; gap: .5rem; }
.search-bar .ic { color: var(--ink-3); }
.search-bar input { border: 0; box-shadow: none !important; min-height: 42px; padding: .4rem .2rem; background: transparent; }
.search-bar .btn { min-height: 40px; border-radius: 999px; }

/* ---------- Superficies ---------- */
.card, .panel { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.panel { padding: 1.4rem; }
.panel + .panel { margin-top: 1rem; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-title h2, .panel-title h3 { margin: 0; }
.section { margin-top: 2.2rem; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.sec-head h2 { margin: 0; }
.see-all { display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--primary); white-space: nowrap; }
.see-all .ic { width: 16px; height: 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 6px 0 1.2rem; }
.page-head h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.page-head p { margin: .35rem 0 0; color: var(--ink-2); }
.row { display: flex; gap: .8rem; align-items: center; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 1.1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cards-lg { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.6rem; align-items: start; }
.split > aside { position: sticky; top: calc(var(--appbar-h) + 12px); display: grid; gap: 1rem; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 4px 2px 12px; margin: 0 -2px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }

/* ---------- Tarjetas con foto ---------- */
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--sh-1); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; min-width: 0; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); color: var(--ink); }
.pcard-img { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--surface-3); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-img .tag { position: absolute; left: 10px; bottom: 10px; }
.pcard-img .corner { position: absolute; right: 10px; bottom: 10px; }
.pcard-body { padding: .8rem .95rem 1rem; display: grid; gap: .3rem; }
.pcard-title { font-weight: 750; font-size: .98rem; line-height: 1.28; color: var(--ink); margin: 0; }
.pcard-sub { color: var(--ink-3); font-size: .82rem; margin: 0; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .15rem; }
.pcard-act .pcard-body { grid-template-columns: auto minmax(0, 1fr); gap: .1rem .8rem; align-items: start; }
.pcard-act .pcard-body > :not(.datebox) { grid-column: 2; }
.pcard-act .datebox { grid-row: 1 / span 4; }
.pcard-mini { flex-direction: row; align-items: center; gap: .8rem; padding: .55rem; }
.pcard-mini .pcard-img { width: 74px; height: 64px; aspect-ratio: auto; border-radius: 12px; flex: none; }
.pcard-mini .pcard-body { padding: 0; gap: .15rem; flex: 1; }
.pcard-mini .pcard-title { font-size: .9rem; }
.overlay-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; box-shadow: var(--sh-1); }
.overlay-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.overlay-card::after { content: ''; position: absolute; inset: 0; background: var(--photo-veil); }
.overlay-card:hover img { transform: scale(1.05); }
.overlay-card .oc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem; z-index: 1; }
.overlay-card .oc-body b { display: block; font-size: 1rem; line-height: 1.25; }
.overlay-card .oc-body .meta { color: rgba(255, 255, 255, .85); }
.overlay-card .oc-body .rating { color: #fff; }

/* Fecha en caja (DOM 16 JUN) */
.datebox { display: grid; justify-items: center; align-content: center; min-width: 52px; padding: .35rem .3rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); line-height: 1; text-align: center; color: var(--ink); }
.datebox small { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.datebox b { font-size: 1.32rem; font-weight: 800; margin: .12rem 0; font-variant-numeric: tabular-nums; }
.datebox.on-photo { position: absolute; left: 10px; top: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }

/* Avatares apilados */
.avatars { display: inline-flex; align-items: center; }
.avatars img, .avatars span { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); margin-left: -8px; background: var(--surface-3); }
.avatars > :first-child { margin-left: 0; }
.avatars span { display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--ink-2); }
.avatars-label { font-size: .82rem; color: var(--ink-3); margin-left: .5rem; font-weight: 600; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.avatar-lg { width: 64px; height: 64px; }

/* Plazas */
.seats { display: block; height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.seats i { display: block; height: 100%; background: var(--c-act); border-radius: 99px; }
.seats.full i { background: var(--c-evt); }

/* ---------- Listas ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--line); }
.list-item { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; color: var(--ink); text-decoration: none; }
a.list-item:hover .title { color: var(--primary); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { display: block; font-weight: 700; }
.list-item .sub { display: block; color: var(--ink-3); font-size: .86rem; }
.mlist { list-style: none; margin: 0; padding: .3rem; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.mlist a, .mlist button, .mlist .mrow { display: flex; width: 100%; align-items: center; gap: .9rem; padding: .85rem .9rem; border-radius: 12px; border: 0;
  background: transparent; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; text-align: left; }
.mlist a:hover, .mlist button:hover { background: var(--surface-3); color: var(--ink); }
.mlist .ic { color: var(--ink-2); }
.mlist .chev { margin-left: auto; color: var(--ink-3); width: 18px; height: 18px; }
.mlist .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--danger); color: #fff;
  font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.mlist .count + .chev { margin-left: .4rem; }
.mlist .val { margin-left: auto; color: var(--ink-3); font-weight: 500; font-size: .88rem; }
.mlist .val + .chev { margin-left: .4rem; }
.mlist li + li { border-top: 1px solid var(--line); }
.mlist .is-danger, .mlist .is-danger .ic { color: var(--danger); }
.mlist .mrow .switch { margin-left: auto; }

/* ---------- Pestañas ---------- */
.tabs { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 1.2rem; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; padding: .8rem 0; border: 0; background: none; color: var(--ink-3); font-weight: 700; font-size: .92rem;
  text-decoration: none; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.tabpanel[hidden] { display: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-3); }
.seg a, .seg button { padding: .65rem 1rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); font-weight: 700;
  font-size: .9rem; text-align: center; text-decoration: none; }
.seg [aria-selected="true"], .seg [aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

/* ---------- Inicio (app) ---------- */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 400px; color: #fff; display: flex; align-items: flex-end;
  background: var(--navy); box-shadow: var(--sh-2); isolation: isolate; }
.hero > img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 26, 48, .85) 0%, rgba(8, 26, 48, .55) 45%, rgba(8, 26, 48, .08) 80%), linear-gradient(0deg, rgba(8, 26, 48, .55), transparent 55%); }
.hero-in { padding: 2.6rem 2.6rem 2.4rem; width: 100%; max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.02; margin-bottom: .7rem; }
.hero p { color: rgba(255, 255, 255, .88); font-size: 1.04rem; margin-bottom: 1.4rem; max-width: 46ch; }
.hero .search-bar { max-width: 520px; }
.hero-credit { position: absolute; right: 14px; bottom: 10px; font-size: .68rem; color: rgba(255, 255, 255, .7); max-width: 45%; text-align: right; }
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.cat { display: grid; justify-items: center; gap: .45rem; text-decoration: none; color: var(--ink); font-weight: 650; font-size: .86rem; text-align: center; }
.cat i { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, var(--surface));
  color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); transition: transform .2s var(--ease); }
.cat i .ic { width: 26px; height: 26px; }
.cat:hover i { transform: translateY(-3px); }
.cat:hover { color: var(--ink); }
.hero .cats { margin-top: 1.6rem; max-width: 560px; }
.hero .cat { color: #fff; }
.hero .cat i { background: rgba(255, 255, 255, .95); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.greeting { font-family: var(--font-serif); font-size: 1.25rem; margin: 0 0 1rem; }
.callout { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.callout > .ic-wrap { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--sea-soft); color: var(--sea); }
.callout.is-alert { background: var(--warn-soft); border-color: transparent; }
.callout.is-alert > .ic-wrap { background: rgba(255, 255, 255, .6); color: var(--warn); }
.callout.is-danger { background: var(--danger-soft); border-color: transparent; }
.callout.is-danger > .ic-wrap { background: rgba(255, 255, 255, .6); color: var(--danger); }
.callout .grow { flex: 1; min-width: 0; }
.callout b { display: block; }

/* ---------- Detalle con foto (lugar, evento, comercio, actividad, tribu) ---------- */
.dhero { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--navy); box-shadow: var(--sh-2); }
.dhero-main { position: relative; aspect-ratio: 21 / 9; min-height: 280px; max-height: 400px; width: 100%; }
.dhero-main img { width: 100%; height: 100%; object-fit: cover; }
.dhero-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 44, .35) 0%, transparent 30%, transparent 65%, rgba(8, 24, 44, .45) 100%); pointer-events: none; }
.dhero-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: .5rem; z-index: 2; }
.dhero-top .grp { display: flex; gap: .5rem; }
.dhero-bottom { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem; z-index: 2; }
.dhero-count { padding: .3rem .7rem; border-radius: 999px; background: rgba(8, 24, 44, .6); color: #fff; font-weight: 700; font-size: .8rem; backdrop-filter: blur(6px); }
.photo-credit { font-size: .7rem; color: rgba(255, 255, 255, .85); background: rgba(8, 24, 44, .45); padding: .2rem .55rem; border-radius: 6px; max-width: 70%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(4px); }
.photo-credit a { color: inherit; }
.dhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: start; margin: 1.5rem 0 1rem; }
.dhead h1 { margin: 0 0 .35rem; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.7rem); }
.dhead .where { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; color: var(--ink-2); font-size: .92rem; }
.dhead .where > span { display: inline-flex; align-items: center; gap: .3rem; }
.dhead .where .ic { width: 16px; height: 16px; color: var(--ink-3); }
.thumbs { display: grid; grid-template-columns: repeat(2, 96px); gap: .5rem; }
.thumbs a, .thumbs button { position: relative; display: block; width: 96px; height: 74px; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: var(--surface-3); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 24, 44, .55); color: #fff; font-weight: 800; }
.gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip button { height: 84px; border-radius: 12px; overflow: hidden; border: 0; padding: 0; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.4rem; }
.round-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1rem 0; }
.round-actions a, .round-actions button { display: grid; justify-items: center; gap: .4rem; border: 0; background: none; text-decoration: none; color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.round-actions i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); }
.infogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem 1.4rem; }
.info { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .1rem .75rem; align-items: center; }
.info > .ic-wrap { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.info small { color: var(--ink-3); font-size: .76rem; font-weight: 600; }
.info b { font-size: .92rem; font-weight: 700; line-height: 1.3; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .7rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem .9rem; }
.stat b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat span { display: block; margin-top: .15rem; color: var(--ink-3); font-size: .8rem; line-height: 1.3; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .7rem; }

/* Reseñas */
.review { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .2rem .8rem; padding: 1rem 0; }
.review + .review { border-top: 1px solid var(--line); }
.review .avatar { grid-row: span 3; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .7rem; }
.review-head b { font-size: .92rem; }
.review p { margin: .2rem 0 0; color: var(--ink-2); }
.review .review-photo { margin-top: .6rem; width: 160px; height: 120px; border-radius: 12px; object-fit: cover; }
.rating-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: center; }
.rating-big { text-align: center; }
.rating-big b { display: block; font-family: var(--font-serif); font-size: 3rem; line-height: 1; }
.bars { display: grid; gap: .3rem; }
.bars div { display: grid; grid-template-columns: 14px minmax(0, 1fr) 30px; gap: .5rem; align-items: center; font-size: .8rem; color: var(--ink-3); }
.bars i { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; display: block; }
.bars i span { display: block; height: 100%; background: var(--star); border-radius: 99px; }

/* Chat */
.chat { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 420px; }
.chat-log { overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: .5rem .2rem 1rem; }
.msg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .5rem; align-items: end; max-width: 85%; }
.msg img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.msg .bubble { background: var(--surface-3); border-radius: 16px 16px 16px 4px; padding: .55rem .85rem; font-size: .92rem; }
.msg .bubble b { display: block; font-size: .76rem; color: var(--ink-3); }
.msg.me { margin-left: auto; grid-template-columns: minmax(0, 1fr); }
.msg.me img { display: none; }
.msg.me .bubble { background: var(--primary); color: var(--primary-ink); border-radius: 16px 16px 4px 16px; }
.msg.me .bubble b { color: rgba(255, 255, 255, .75); }
.chat-form { display: flex; gap: .5rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.chat-form input { border-radius: 999px; }
.chat-form .btn { border-radius: 50%; width: 48px; padding: 0; }

/* ---------- Pasaporte ---------- */
.pass-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; padding: 1.8rem; isolation: isolate;
  background: linear-gradient(140deg, #0E3157 0%, #0A223D 60%, #123E6B 100%); box-shadow: var(--sh-2); min-height: 280px; }
.pass-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.pass-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 34, 61, .96) 0%, rgba(10, 34, 61, .75) 50%, rgba(10, 34, 61, .3) 100%); }
.pass-who { display: flex; align-items: center; gap: 1rem; }
.pass-who img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .85); }
.pass-who small { display: block; color: rgba(255, 255, 255, .75); font-weight: 600; }
.pass-who b { display: block; font-family: var(--font-serif); font-size: 1.8rem; line-height: 1.05; }
.pass-points { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.pass-points::before { content: ''; width: 4px; height: 52px; border-radius: 4px; background: var(--sea); }
.pass-points b { font-size: 3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pass-points small { display: block; font-weight: 800; letter-spacing: .14em; font-size: .74rem; margin-top: .25rem; color: rgba(255, 255, 255, .85); }
.pbar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-top: 1rem; max-width: 420px; }
.pbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5CB6F0, #9AD6FF); }
.pbar.light { background: var(--surface-3); }
.pbar.light i { background: linear-gradient(90deg, var(--sea), #7CC0F2); }
.pass-next { font-size: .84rem; color: rgba(255, 255, 255, .8); margin-top: .5rem; }
.stamps { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.stamp { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .4);
  border: 2px dashed rgba(255, 255, 255, .25); }
.stamp.on { background: var(--sea); color: #fff; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 4px rgba(46, 134, 222, .25); }
.stamp .ic { width: 22px; height: 22px; }
.comarca-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .55rem 0; }
.comarca-row + .comarca-row { border-top: 1px solid var(--line); }
.comarca-row i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c, var(--sea)); }
.comarca-row i .ic { width: 17px; height: 17px; }
.comarca-row b { font-size: .92rem; }
.comarca-row .pbar { margin-top: .3rem; height: 6px; }
.comarca-row .num { font-size: .84rem; color: var(--ink-3); font-weight: 700; }
.badges { display: flex; flex-wrap: wrap; gap: 1rem; }
.badge { display: grid; justify-items: center; gap: .4rem; width: 82px; text-align: center; font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.badge i { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c, var(--sea));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--sea)) 18%, transparent), 0 8px 18px color-mix(in srgb, var(--c, var(--sea)) 35%, transparent); }
.badge i .ic { width: 26px; height: 26px; }
.badge.off i { background: var(--surface-3); color: var(--ink-3); box-shadow: none; }
.challenge { display: grid; gap: .5rem; }

/* ---------- Perfil ---------- */
.pcover { position: relative; height: 230px; border-radius: var(--r-xl); overflow: hidden; background: var(--navy); }
.pcover img { width: 100%; height: 100%; object-fit: cover; }
.pcover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 24, 44, .35), transparent 60%); }
.pcover form { position: absolute; right: 14px; top: 14px; z-index: 1; }
.phead { display: flex; align-items: flex-start; gap: 1.2rem; margin: -58px 0 1rem; padding: 0 1.6rem; position: relative; z-index: 2; }
.phead > img { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; border: 5px solid var(--bg); background: var(--surface-3); box-shadow: var(--sh-2); }
.phead .who { flex: 1; min-width: 0; padding-top: 68px; }
.phead > .btn-row, .phead > form, .phead > a.btn { margin-top: 74px; }
.phead h1 { margin: 0; font-size: 1.9rem; }
.phead .handle { color: var(--ink-3); font-weight: 600; }
.pstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.pstats > div { text-align: center; padding: 1rem .5rem; }
.pstats > div + div { border-left: 1px solid var(--line); }
.pstats b { display: block; font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pstats span { color: var(--ink-3); font-size: .8rem; font-weight: 600; }

/* ---------- Mapa ---------- */
.mapx { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1rem; height: calc(100vh - var(--appbar-h) - 40px); height: calc(100dvh - var(--appbar-h) - 40px); min-height: 520px; }
.mapx-map { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); border: 1px solid var(--line); background: #AAD3DF; }
.mapx-map .map { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.mapx-bar { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 500; display: grid; gap: .6rem; pointer-events: none; }
.mapx-bar > * { pointer-events: auto; }
.mapx-bar .chips { padding-bottom: 0; }
.mapx-bar .chip { box-shadow: var(--sh-1); }
.mapx-here { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 500; box-shadow: var(--sh-2); }
.mapx-locate { position: absolute; right: 12px; bottom: 18px; z-index: 500; width: 48px; height: 48px; }
.mapx-list { overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; padding-right: 4px; }
.mapx-card { position: absolute; left: 12px; right: 12px; bottom: 76px; z-index: 600; display: none; }
.mapx-card.is-open { display: block; }
.map { height: 320px; border-radius: var(--r); overflow: hidden; background: #AAD3DF; z-index: 0; }
.map-tall { height: 520px; }
.mk { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c, var(--sea));
  border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .15s; }
.mk svg { width: 18px; height: 18px; }
.mk.is-active { transform: scale(1.25); }
.mk-me { width: 18px; height: 18px; border-radius: 50%; background: var(--sea); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(46, 134, 222, .25); }
.mk-cluster { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; border: 3px solid #fff; box-shadow: var(--sh-2); }
.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--sh-2); }
.leaflet-popup-content { margin: 12px 14px; font-size: .9rem; }
.leaflet-bar a { color: var(--ink) !important; }
.leaflet-control-attribution { font-size: .65rem; }

/* ---------- Ventana modal / hoja ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(6, 20, 36, .55); backdrop-filter: blur(4px);
  animation: fade .2s ease; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--sh-3); padding: 1.6rem; animation: rise .25s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.modal-head h2 { margin: 0; font-size: 1.7rem; }
.create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.create-tile { position: relative; display: grid; justify-items: center; align-content: center; gap: .5rem; min-height: 168px; padding: 1.2rem; border-radius: var(--r-lg);
  text-decoration: none; text-align: center; color: var(--ink); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--surface)), color-mix(in srgb, var(--c) 4%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line)); transition: transform .2s var(--ease), box-shadow .2s; }
.create-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); color: var(--ink); }
.create-tile i { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--c); box-shadow: var(--sh-1); }
.create-tile i .ic { width: 26px; height: 26px; }
.create-tile b { font-size: 1.02rem; }
.create-tile small { color: var(--ink-3); font-size: .82rem; }
.create-list { display: grid; gap: .7rem; }
.create-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1); text-decoration: none; color: var(--ink); }
.create-row i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.create-row b { display: block; }
.create-row small { color: var(--ink-3); }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(4, 12, 22, .94); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox[hidden] { display: none; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 14px; color: #fff; }
.lightbox-img { display: grid; place-items: center; padding: 0 12px; min-height: 0; }
.lightbox-img img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 10px; }
.lightbox-foot { padding: 12px 16px 20px; color: rgba(255, 255, 255, .75); font-size: .8rem; text-align: center; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .nav.prev { left: 14px; }
.lightbox .nav.next { right: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- Avisos, mensajes y estados vacíos ---------- */
.flashes { display: grid; gap: .5rem; margin-bottom: 1rem; }
.flash { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1); font-weight: 600; font-size: .92rem; }
.flash .ic { margin-top: 1px; }
.flash-success { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.flash-success .ic { color: var(--ok); }
.flash-error { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); background: var(--danger-soft); }
.flash-error .ic { color: var(--danger); }
.flash-info .ic, .flash-warning .ic { color: var(--sea); }
.alertbar { display: grid; gap: .5rem; margin-bottom: 1rem; }
.alert-item { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--ink); font-size: .9rem; }
.alert-item > .ic { color: var(--warn); margin-top: 2px; }
.lvl-rojo .alert-item, .alert-item.lvl-rojo { background: var(--danger-soft); }
.lvl-rojo .alert-item > .ic, .alert-item.lvl-rojo > .ic { color: var(--danger); }
.alert-title { font-weight: 800; }
.empty { display: grid; justify-items: center; text-align: center; gap: .6rem; padding: 2.4rem 1.2rem; border-radius: var(--r); border: 1.5px dashed var(--line-2); color: var(--ink-2); }
.empty > .ic-wrap { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); }
.empty > .ic-wrap .ic { width: 28px; height: 28px; }
.empty p { margin: 0; max-width: 46ch; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); z-index: 99; background: var(--navy); color: #fff; padding: .75rem 1.2rem;
  border-radius: 999px; box-shadow: var(--sh-3); font-weight: 600; font-size: .9rem; opacity: 0; transition: all .25s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.pager { display: flex; justify-content: center; align-items: center; gap: .6rem; margin: 2rem 0 0; }
.pager span { color: var(--ink-3); font-size: .88rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .84rem; color: var(--ink-3); margin-bottom: .6rem; list-style: none; padding: 0; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs .ic { width: 14px; height: 14px; }
details.disclosure { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
details.disclosure > summary { list-style: none; cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: ''; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s; }
details.disclosure[open] > summary::after { transform: rotate(-135deg); }
details.disclosure > .disclosure-body { padding: 0 1.1rem 1.1rem; }
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--ink-3); font-size: .8rem; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.qr { background: #fff; padding: 12px; border-radius: 14px; display: inline-block; }
.code-big { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; font-weight: 800; letter-spacing: .14em; }
.install { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: .8rem; align-items: center;
  padding: .9rem 1rem; border-radius: var(--r); background: var(--navy); color: #fff; box-shadow: var(--sh-3); max-width: 520px; margin: 0 auto; }
.install .ic { color: #9AD6FF; }
.sos-hero { border-radius: var(--r-xl); padding: 1.8rem; background: linear-gradient(150deg, #E2483D, #B5281F); color: #fff; box-shadow: var(--sh-2); }
.sos-hero h1 { color: #fff; }
.sos-hero p { color: rgba(255, 255, 255, .92); }
.sos-call { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; min-height: 66px; border-radius: 18px; background: #fff; color: #C62828;
  font-weight: 800; font-size: 1.3rem; text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.sos-call .ic { width: 28px; height: 28px; }
.coords { font-family: ui-monospace, Menlo, monospace; background: var(--surface-3); padding: .9rem 1rem; border-radius: var(--r-sm); white-space: pre-wrap; }

/* ---------- Acceso: entrar / registro ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.auth-art { position: relative; overflow: hidden; background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 2.2rem; isolation: isolate; }
.auth-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 26, 48, .35), rgba(8, 26, 48, .1) 40%, rgba(8, 26, 48, .8)); }
.auth-art .brand-word small, .auth-art .brand-word b { color: #fff; }
.auth-art blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); line-height: 1.1; max-width: 16ch; }
.auth-art p { color: rgba(255, 255, 255, .85); max-width: 40ch; }
.auth-side { position: relative; display: grid; align-content: center; justify-items: center; padding: 2.4rem 1.4rem; }
.auth-box { width: min(440px, 100%); }
.auth-logo { display: grid; justify-items: center; gap: .6rem; margin-bottom: 1.6rem; text-align: center; }
.auth-logo img { width: 56px; height: 70px; }
.auth-logo .brand-word { justify-items: center; }
.auth-logo .brand-word small { font-size: .78rem; }
.auth-logo .brand-word b { font-size: 1.3rem; }
.auth .seg { margin-bottom: 1.4rem; }
.auth .or { display: flex; align-items: center; gap: .8rem; color: var(--ink-3); font-size: .84rem; margin: 1.4rem 0 1rem; }
.auth .or::before, .auth .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.social a { display: grid; place-items: center; height: 54px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); }
.social a:hover { background: var(--surface-3); }
.social svg { width: 24px; height: 24px; }
.auth-foot { margin-top: 1.4rem; text-align: center; font-size: .86rem; color: var(--ink-3); }
.auth-back { position: absolute; top: 16px; left: 16px; z-index: 3; }
.profile-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.profile-pick label { position: relative; display: grid; justify-items: center; gap: .3rem; padding: .8rem .4rem; border-radius: 14px; border: 1.5px solid var(--line);
  font-size: .82rem; font-weight: 700; text-align: center; cursor: pointer; color: var(--ink-2); }
.profile-pick input { position: absolute; opacity: 0; }
.profile-pick label:has(input:checked) { border-color: var(--sea); background: var(--sea-soft); color: var(--primary); }
.profile-pick .ic { width: 22px; height: 22px; }

/* ---------- Landing ---------- */
.lnd { background: var(--bg); }
.lnd-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 1.6rem; padding: 22px clamp(18px, 4vw, 56px); color: #fff; }
.lnd-nav .brand-word small, .lnd-nav .brand-word b { color: #fff; }
.lnd-nav nav { display: flex; gap: 1.6rem; margin-left: auto; }
.lnd-nav nav a { color: rgba(255, 255, 255, .88); text-decoration: none; font-weight: 600; font-size: .94rem; }
.lnd-nav nav a:hover { color: #fff; }
.lnd-nav .btn-row { margin-left: 1rem; }
.lnd-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: var(--navy); }
.lnd-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
.lnd-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 22, 40, .55) 0%, rgba(7, 22, 40, .08) 26%, rgba(7, 22, 40, .35) 52%, rgba(7, 22, 40, .9) 100%),
    linear-gradient(90deg, rgba(7, 22, 40, .45) 0%, rgba(7, 22, 40, 0) 60%); }
@keyframes heroZoom { to { transform: scale(1); } }
.lnd-hero-in { width: 100%; padding: 0 clamp(18px, 4vw, 56px) clamp(40px, 8vh, 90px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.lnd-hero h1 { color: #fff; font-size: clamp(2.8rem, 1.8rem + 4.6vw, 6.2rem); line-height: .95; letter-spacing: -.025em; margin: 0 0 1.2rem; max-width: 12ch; font-weight: 600; }
.lnd-hero p { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); color: rgba(255, 255, 255, .9); max-width: 44ch; margin-bottom: 1.8rem; }
.lnd-hero .credit { position: absolute; right: 16px; bottom: 10px; font-size: .68rem; color: rgba(255, 255, 255, .6); }
.lnd-stats { display: grid; gap: .9rem; min-width: 220px; }
.lnd-stats div { padding: .9rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); }
.lnd-stats b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.lnd-stats span { font-size: .84rem; color: rgba(255, 255, 255, .82); }
.lnd-sec { padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 56px); }
.lnd-in { max-width: 1200px; margin: 0 auto; }
.lnd-sec h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem); line-height: 1.04; letter-spacing: -.02em; max-width: 18ch; margin-bottom: 1rem; }
.lnd-sec .lead { font-size: 1.1rem; }
.lnd-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.6rem; }
.who-card { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 440px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; box-shadow: var(--sh-2); }
.who-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.who-card:hover > img { transform: scale(1.05); }
.who-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(7, 22, 40, .9)); }
.who-card div { padding: 1.5rem; }
.who-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: .4rem; }
.who-card p { color: rgba(255, 255, 255, .86); margin: 0 0 .9rem; }
.who-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .9rem; }
.who-card li { display: flex; gap: .5rem; align-items: center; }
.who-card li .ic { width: 16px; height: 16px; color: #9AD6FF; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature.rev .feature-text { order: 2; }
.feature-text h3 { font-family: var(--font-serif); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.08; margin-bottom: 1rem; }
.feature-text p { color: var(--ink-2); font-size: 1.05rem; }
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .8rem; }
.feature-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: .8rem; align-items: start; }
.feature-list i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--sea)) 13%, var(--surface)); color: var(--c, var(--sea)); }
.feature-list i .ic { width: 19px; height: 19px; }
.feature-list b { display: block; }
.feature-list span { color: var(--ink-3); font-size: .92rem; }
.feature-art { position: relative; display: grid; place-items: center; min-height: 520px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; }
.feature-art > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(14, 49, 87, .25), rgba(10, 34, 61, .55)); }
.phone { position: relative; width: 300px; border-radius: 42px; padding: 11px; background: #0B1726; box-shadow: 0 40px 80px rgba(4, 16, 30, .45), inset 0 0 0 2px #22344A; }
.phone-screen { border-radius: 32px; overflow: hidden; background: var(--bg); height: 600px; position: relative; }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 16px; background: #0B1726; z-index: 5; }
.phone-screen .mock { padding: 44px 14px 14px; display: grid; gap: .7rem; font-size: 13px; }
.phone-float { position: absolute; z-index: 2; background: var(--surface); border-radius: 18px; box-shadow: var(--sh-3); padding: .9rem 1rem; display: flex; gap: .7rem; align-items: center; font-size: .86rem; }
.phone-float i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c, var(--sea)); flex: none; }
.phone-float b { display: block; }
.phone-float small { color: var(--ink-3); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.6rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.6rem; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 1.1rem;
  background: var(--primary); color: var(--primary-ink); font-weight: 800; font-size: 1.1rem; }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--ink-2); margin: 0; }
.lnd-dark { background: var(--navy); color: #fff; }
.lnd-dark h2, .lnd-dark h3 { color: #fff; }
.lnd-dark .lead, .lnd-dark p { color: rgba(255, 255, 255, .8); }
.comarca-strip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: end; gap: 6px; margin-top: 2.6rem; }
.casa { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem; padding: .7rem .6rem; border-radius: 6px 6px 0 0; background: var(--c); color: #fff;
  text-decoration: none; min-height: 150px; overflow: hidden; }
.casa::before { content: ''; position: absolute; top: 16px; left: 14%; right: 14%; height: 40%; background-image: radial-gradient(circle at 25% 0, transparent 0, transparent 0),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .9) 0 12px, transparent 12px 26px); opacity: .28; -webkit-mask: repeating-linear-gradient(180deg, #000 0 18px, transparent 18px 34px); mask: repeating-linear-gradient(180deg, #000 0 18px, transparent 18px 34px); }
.casa b { font-size: .9rem; line-height: 1.15; position: relative; }
.casa small { font-size: .72rem; opacity: .85; position: relative; }
.casa:nth-child(3n+1) { min-height: 190px; }
.casa:nth-child(3n+2) { min-height: 230px; }
.casa.is-off { filter: saturate(.55); opacity: .75; }
.casa:hover { color: #fff; filter: none; opacity: 1; }
.ground { height: 10px; background: #E9D6B2; border-radius: 0 0 8px 8px; }
.lnd-teaser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.lnd-cta { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.2rem, 5vw, 4rem); color: #fff; isolation: isolate; background: var(--primary); }
.lnd-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lnd-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 34, 61, .92), rgba(10, 34, 61, .55)); }
.lnd-cta h2 { color: #fff; }
.lnd-cta p { color: rgba(255, 255, 255, .86); max-width: 50ch; font-size: 1.08rem; }
.lnd-foot { padding: 3rem clamp(18px, 4vw, 56px) 2.4rem; background: var(--navy-2); color: rgba(255, 255, 255, .72); font-size: .9rem; }
.lnd-foot a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.lnd-foot a:hover { color: #fff; }
.lnd-foot .brand-word small, .lnd-foot .brand-word b { color: #fff; }
.foot-cols { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.foot-cols ul { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .45rem; }
.foot-cols h4 { color: #fff; }
.langs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.langs a { padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-size: .82rem; }
.langs a[aria-current="true"] { background: #fff; color: var(--navy); }
.foot-bottom { max-width: 1200px; margin: 2.2rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Onboarding (móvil) */
.ob { position: fixed; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--surface); }
.ob-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ob-track::-webkit-scrollbar { display: none; }
.ob-slide { scroll-snap-align: start; display: grid; grid-template-rows: minmax(0, 1.25fr) auto; }
.ob-photo { position: relative; overflow: hidden; border-radius: 0 0 40px 40px; background: var(--navy); }
.ob-photo img { width: 100%; height: 100%; object-fit: cover; }
.ob-text { padding: 1.6rem 1.6rem .4rem; }
.ob-text h1 { font-size: 2rem; }
.ob-text p { color: var(--ink-2); }
.ob-foot { padding: 1rem 1.6rem calc(1.4rem + env(safe-area-inset-bottom)); display: grid; gap: .8rem; justify-items: center; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: all .2s; }
.dots i.on { width: 22px; background: var(--primary); }


/* ---------- Piezas pequeñas ---------- */
.catdot { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.catdot .ic { width: 20px; height: 20px; }
.tribe-badge { position: absolute; left: 14px; bottom: -22px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: var(--c, var(--sea)); border: 3px solid var(--surface); box-shadow: var(--sh-1); z-index: 2; }
.pcard .pcard-img:has(.tribe-badge) { overflow: visible; }
.pcard .pcard-img:has(.tribe-badge) img { border-radius: var(--r) var(--r) 0 0; }
.next-up { display: flex; gap: .7rem; align-items: center; padding: .6rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); margin-top: .4rem; }
.next-up small { display: block; font-size: .7rem; font-weight: 700; color: var(--ink-3); }
.next-up b { display: block; font-size: .86rem; line-height: 1.25; }
.next-up .datebox { min-width: 46px; padding: .25rem; }
.next-up .datebox b { font-size: 1.05rem; margin: .05rem 0; }
.dist { display: inline-flex; align-items: center; gap: .25rem; }
.oc-body .meta { gap: .6rem; margin-top: .2rem; }
.welcome { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--r); background: linear-gradient(120deg, var(--primary-soft), var(--sea-soft)); }

/* Maquetas de teléfono de la landing: todo a escala reducida */
.mock .chips { gap: 5px; }
.mock .chip { padding: 4px 9px; font-size: 10px; }
.mock .pcard { border-radius: 14px; }
.mock .pcard-mini { padding: 6px; gap: 8px; }
.mock .pcard-mini .pcard-img { width: 56px; height: 52px; border-radius: 10px; }
.mock .pcard-title { font-size: 11.5px; }
.mock .pcard-sub { font-size: 10px; }
.mock .avatars img { width: 20px; height: 20px; border-width: 1.5px; margin-left: -6px; }
.mock .cat { font-size: 9.5px; gap: 4px; }
.mock .cat i { width: 40px; height: 40px; }
.mock .cat i .ic { width: 17px; height: 17px; }
.mock .overlay-card { border-radius: 12px; }
.mock .oc-body { padding: 8px; }
.mock .empty { padding: 1rem; font-size: 12px; }
.mock .badge { font-size: 9px; }
.mock .pass-points b { font-size: 38px; }
.mock .stamp .ic { width: 18px; height: 18px; }

/* ---------- Escritorio medio: barra lateral solo iconos ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 24px; }
  .split { grid-template-columns: minmax(0, 1fr) 320px; }
  .mapx { grid-template-columns: minmax(0, 1fr) 320px; }
  .lnd-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comarca-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Tableta ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > aside { position: static; }
  .mapx { grid-template-columns: minmax(0, 1fr); }
  .mapx-list { display: none; }
  .lnd-who { grid-template-columns: minmax(0, 1fr); }
  .who-card { min-height: 360px; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.rev .feature-text { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .lnd-hero-in { grid-template-columns: minmax(0, 1fr); }
  .lnd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
}

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; --appbar-h: 60px; }
  body { font-size: 15px; }
  body:not(.lnd) { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .appbar { padding: 0 12px; gap: .4rem; padding-top: env(safe-area-inset-top); height: calc(var(--appbar-h) + env(safe-area-inset-top)); }
  .appbar-title { font-size: 1.3rem; }
  .appbar .appbar-mob { display: inline-grid; }
  .appbar.is-over { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; border-color: transparent; }
  .appbar.is-over.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); color: var(--ink); }
  .appbar.is-over:not(.is-scrolled) .appbar-mob { color: #fff; }
  .appbar.is-over:not(.is-scrolled) .icon-btn:not(.on-photo) { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
  .appbar .weather-pill, .appbar .me-chip .me-txt, .appbar .hide-mob { display: none; }
  .me-chip { padding: 2px; }
  .page { padding: 4px var(--gutter) 32px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; height: var(--tabbar-h); color: var(--ink-3); text-decoration: none; font-size: .68rem; font-weight: 700; }
  .tabbar a .ic { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: var(--primary); }
  .tabbar .fab { align-self: center; justify-self: center; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; margin-top: -26px;
    background: linear-gradient(160deg, var(--sea), var(--primary)); color: #fff; box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 45%, transparent), 0 0 0 5px var(--bg); }
  .tabbar .fab .ic { width: 26px; height: 26px; }
  .install { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); }
  .hero { border-radius: 0 0 var(--r-xl) var(--r-xl); min-height: 440px; margin: -4px calc(-1 * var(--gutter)) 0; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 26, 48, .5) 0%, rgba(8, 26, 48, .2) 30%, rgba(8, 26, 48, .78) 62%, rgba(8, 26, 48, .9) 100%); }
  .hero-in { padding: calc(var(--appbar-h) + 3.5rem) 1.2rem 1.4rem; }
  .hero .cats { display: none; }
  .cats-below { display: grid !important; margin-top: 1.2rem; }
  .cats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; }
  .cat { font-size: .74rem; }
  .cat i { width: 54px; height: 54px; }
  .cat i .ic { width: 22px; height: 22px; }
  .hscroll { grid-auto-columns: 72%; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .cards-lg { grid-template-columns: minmax(0, 1fr); }
  .pcard-body { padding: .65rem .75rem .8rem; }
  .pcard-title { font-size: .9rem; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head { margin-top: 0; }
  .page-head .btn { width: 100%; }
  .dhero { border-radius: 0; margin: -4px calc(-1 * var(--gutter)) 0; box-shadow: none; }
  .dhero-main { aspect-ratio: 4 / 3.4; max-height: none; min-height: 0; }
  .dhero-top { top: calc(10px + env(safe-area-inset-top)); }
  .dhero-bottom { bottom: 42px; }
  .dsheet { position: relative; z-index: 2; margin: -28px calc(-1 * var(--gutter)) 0; padding: 1.4rem var(--gutter) 0; background: var(--bg); border-radius: 28px 28px 0 0; }
  .dhead { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .dhead .thumbs { display: none; }
  .actions .btn { flex: 1; }
  .appbar.on-detail { position: fixed; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; pointer-events: none; }
  .appbar.on-detail > * { display: none; }
  .tabs { gap: 1.2rem; }
  .pcover { border-radius: 0; height: 190px; margin: -4px calc(-1 * var(--gutter)) 0; }
  .phead { flex-direction: column; align-items: center; text-align: center; margin-top: -62px; padding: 0; gap: .5rem; }
  .phead > img { width: 112px; height: 112px; }
  .phead .who { padding-top: 0; }
  .phead > .btn-row, .phead > form, .phead > a.btn { margin-top: 0; }
  .phead .btn-row { justify-content: center; }
  .pstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pstats > div:nth-child(5) { display: none; }
  .pstats b { font-size: 1.15rem; }
  .pass-hero { margin: 0 calc(-1 * var(--gutter)); border-radius: 0 0 var(--r-xl) var(--r-xl); padding: 1.4rem 1.2rem 1.6rem; }
  .mapx { height: calc(100dvh - var(--appbar-h) - var(--tabbar-h) - env(safe-area-inset-bottom) - env(safe-area-inset-top)); margin: 0 calc(-1 * var(--gutter)); min-height: 0; }
  .mapx-map { border-radius: 0; border: 0; }
  .mapx-here { bottom: auto; top: 104px; }
  .mapx-card { bottom: 14px; }
  .mapx-locate { bottom: auto; top: 104px; right: 12px; }
  .modal { align-items: end; padding: 0; }
  .modal-box { border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 1.3rem 1.1rem calc(1.4rem + env(safe-area-inset-bottom)); max-height: 92vh; }
  .create-grid { grid-template-columns: minmax(0, 1fr); }
  .create-tile { min-height: 0; grid-template-columns: 52px minmax(0, 1fr); justify-items: start; text-align: left; gap: .1rem 1rem; padding: 1rem; }
  .create-tile i { grid-row: span 2; width: 52px; height: 52px; }
  .rating-summary { grid-template-columns: minmax(0, 1fr); }
  .round-actions i { width: 48px; height: 48px; }
  .chat { height: 360px; }
  .lnd-nav nav { display: none; }
  .lnd-nav .btn-row .btn-glass { display: none; }
  .lnd-hero h1 { max-width: none; }
  .lnd-hero::before { background: linear-gradient(180deg, rgba(7, 22, 40, .5) 0%, rgba(7, 22, 40, .1) 22%, rgba(7, 22, 40, .7) 50%, rgba(7, 22, 40, .94) 100%); }
  .lnd-hero-in { padding-bottom: 28px; }
  .lnd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .lnd-stats div { padding: .7rem .6rem; }
  .lnd-stats b { font-size: 1.3rem; }
  .lnd-stats span { font-size: .72rem; }
  .lnd-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .comarca-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .phone { width: 260px; }
  .phone-screen { height: 520px; }
  .feature-art { min-height: 460px; }
  .auth-side { align-content: start; padding-top: 3.4rem; }
  .social a { height: 50px; }
  .thumbs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .tn, .ft, .tabbar, .appbar, .install, .lnd-nav, .lx-nav, .no-print { display: none !important; }
  body { background: #fff; }
}

/* Mapa: tarjetas de la lista */
.mapx-list .pcard-mini { padding-right: .8rem; }
.mapx-list .pcard-mini.is-active { outline: 2px solid var(--sea); }
.mapx-list .pcard-mini .chev { color: var(--ink-3); width: 18px; height: 18px; }
.mapx-card .pcard-mini { box-shadow: var(--sh-3); }
.people { display: flex; flex-wrap: wrap; gap: .5rem; }
.person-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .88rem; }
.person-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.join-card { position: relative; }
.report-box summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .3rem; }
.report-box summary::-webkit-details-marker { display: none; }
.photo-pick { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1rem; align-items: center; }
.photo-pick img { width: 140px; height: 100px; object-fit: cover; border-radius: 14px; background: var(--surface-3); }
@media (max-width: 760px) { .photo-pick { grid-template-columns: 100px minmax(0, 1fr); } .photo-pick img { width: 100px; height: 76px; } }
.offer { display: flex; gap: 1rem; padding: 1.1rem; border-radius: var(--r); background: var(--surface); border: 1px dashed color-mix(in srgb, var(--c-com) 45%, var(--line)); box-shadow: var(--sh-1); }
.offer-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c-com) 14%, var(--surface)); color: var(--c-com); }
.offer .grow { flex: 1; min-width: 0; }

/* ---------- Compatibilidad con vistas de gestión (admin, mi comercio) ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; align-items: start; }
.aside { position: sticky; top: calc(var(--appbar-h) + 12px); display: grid; gap: 1rem; }
.notice { display: block; padding: .85rem 1rem; border-radius: var(--r-sm); background: var(--sea-soft); color: var(--ink); font-size: .92rem; }
.notice-warn { background: var(--warn-soft); }
.notice-bad { background: var(--danger-soft); }
.cat-ic { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; flex: none; color: #fff; }
.cat-ic-sm { width: 32px; height: 32px; border-radius: 10px; }
.cat-ic .ic { width: 20px; height: 20px; }
.inline { display: inline; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.cover { border-radius: var(--r); overflow: hidden; margin-bottom: 1rem; }
.cover img { width: 100%; max-height: 420px; object-fit: cover; }
.label { display: block; }
legend { font-weight: 700; font-size: .86rem; margin-bottom: .5rem; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.toggle-chips > label:not(.chip) { position: relative; }
.toggle-chips > label:not(.chip) input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chips > label:not(.chip) span { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .86rem; cursor: pointer; }
.toggle-chips > label:not(.chip) input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.toggle-chips > label:not(.chip) input:focus-visible + span { outline: 3px solid var(--sea); }
.toggle-chips .ic { width: 16px; height: 16px; }
.admin-nav { margin-bottom: 1.2rem; }
@media (max-width: 960px) { .cols { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }
.ticket { position: relative; padding: 1.2rem 1.3rem; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); border: 1px solid var(--line);
  background-image: radial-gradient(circle at 0 50%, var(--bg) 11px, transparent 12px), radial-gradient(circle at 100% 50%, var(--bg) 11px, transparent 12px); }
.tribe-head { display: flex; align-items: flex-end; gap: 1.1rem; margin-top: -40px; position: relative; z-index: 2; padding: 0 .4rem; }
.tribe-head h1 { margin: 0 0 .3rem; font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem); }
.tribe-head .grow { flex: 1; min-width: 0; padding-top: 44px; }
.tribe-head .where { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--ink-2); font-size: .9rem; }
.tribe-head .where span { display: inline-flex; align-items: center; gap: .3rem; }
.tribe-head .where .ic { width: 16px; height: 16px; color: var(--ink-3); }
.tribe-logo { width: 86px; height: 86px; border-radius: 22px; display: grid; place-items: center; flex: none; color: #fff; background: var(--c); border: 5px solid var(--bg); box-shadow: var(--sh-2); align-self: flex-start; }
.tribe-logo .ic { width: 36px; height: 36px; }
@media (max-width: 760px) {
  .tribe-head { flex-wrap: wrap; margin-top: -48px; }
  .tribe-head .grow { padding-top: 0; flex-basis: 100%; }
  .tribe-cta { position: absolute; right: 0; top: 52px; }
  .tribe-logo { width: 72px; height: 72px; border-radius: 18px; }
}
.mini-stat { display: grid; justify-items: center; gap: .25rem; text-align: center; padding: .8rem .4rem; border-radius: var(--r-sm); background: var(--surface-2); }
.mini-stat i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.mini-stat b { font-size: 1.35rem; font-weight: 800; line-height: 1; }
.mini-stat span { font-size: .76rem; color: var(--ink-3); font-weight: 600; }
.seals { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .8rem; }
.seal { display: grid; justify-items: center; gap: .3rem; padding: 1rem .5rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: center; }
.seal i { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--line-2); color: var(--ink-3); font-family: var(--font-serif); font-size: 1.5rem; font-style: normal; }
.seal.on i { border: 3px double #fff; background: var(--c); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); transform: rotate(-8deg); }
.seal.on i .ic { width: 28px; height: 28px; }
.seal b { font-size: .84rem; line-height: 1.2; }
.seal small { font-size: .72rem; color: var(--ink-3); }
.rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .86rem; background: var(--surface-3); color: var(--ink-2); flex: none; }
.rank.top1 { background: #F5C451; color: #5B4300; }
.rank.top2 { background: #D5DEE8; color: #33475B; }
.rank.top3 { background: #E9B88B; color: #5A3315; }
@media (max-width: 960px) { [data-pass-grid] { grid-template-columns: minmax(0, 1fr) !important; } }
.avatar-edit { position: relative; flex: none; }
.avatar-edit img { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; border: 5px solid var(--bg); background: var(--surface-3); box-shadow: var(--sh-2); display: block; }
.avatar-edit .icon-btn { position: absolute; right: 2px; bottom: 6px; width: 36px; height: 36px; cursor: pointer; }
.avatar-edit .icon-btn .ic { width: 18px; height: 18px; }
.pcover .dhero-top { position: absolute; }
@media (max-width: 760px) { .avatar-edit img { width: 112px; height: 112px; } .pcover .dhero-top { top: calc(10px + env(safe-area-inset-top)); } }
.ai-hero, .premium-hero { text-align: center; display: grid; justify-items: center; gap: .3rem; margin: 1rem 0 1.4rem; }
.ai-hero h1, .premium-hero h1 { margin: .4rem 0 0; }
.ai-hero p, .premium-hero p { color: var(--ink-2); max-width: 52ch; }
.ai-orb { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--sea), var(--c-tribu)); box-shadow: var(--sh-2); }
.ai-orb .ic { width: 32px; height: 32px; }
.ai-answer-box { display: flex; gap: .9rem; padding: 1.2rem; border-radius: var(--r); background: linear-gradient(120deg, var(--sea-soft), var(--surface)); border: 1px solid var(--line); }
.ai-answer { white-space: pre-line; line-height: 1.6; }
.town-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); align-items: end; gap: 6px; }
.wx { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
.wx > div { display: grid; gap: .1rem; padding: .6rem .3rem; border-radius: 12px; background: var(--surface-2); }
.wx b { font-size: 1.3rem; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.admin-photos figure { margin: 0; display: grid; gap: .4rem; padding: .5rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.admin-photos img, .admin-photos .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.admin-photos .ph { display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); font-size: .8rem; text-align: center; }
.admin-photos figure.is-off { opacity: .7; }
.tag-dist:has(.dist:empty) { display: none; }
.mapx-list > * { flex: none; }
@media (min-width: 761px) { .appbar .icon-btn.on-photo { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); } }
.lnd-flashes { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(560px, calc(100% - 32px)); }
.lnd-flashes:empty { display: none; }
.lnd-flashes .flash { box-shadow: var(--sh-3); }

/* =====================================================================
   v3 — Descubrir (landing + Inicio), Business, Analítica, Passport 2.0
   ===================================================================== */
:root { --gold-2: #F7D27A; --glass: rgba(255, 255, 255, .86); }
:root[data-theme="dark"] { --glass: rgba(15, 30, 48, .86); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glass: rgba(15, 30, 48, .86); } }

/* Flecha redonda reutilizada en tarjetas con foto */
.dx-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .2s var(--ease), background .2s; }
.dx-go .ic { width: 16px; height: 16px; }
a:hover > .dx-go, a:hover .dx-go { transform: translateX(2px); background: rgba(255, 255, 255, .34); }

/* ---------- Barra superior de la landing ---------- */
.lx-nav { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1240px, calc(100% - 24px)); display: flex; align-items: center; gap: 1rem;
  padding: 8px 10px 8px 18px; border-radius: 18px; background: var(--glass); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 6px 24px rgba(9, 30, 55, .12); transition: box-shadow .2s, top .2s; }
.lx-nav.is-solid { box-shadow: 0 10px 34px rgba(9, 30, 55, .2); }
.lx-links { display: flex; gap: 1.1rem; margin-left: .6rem; }
.lx-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .86rem; }
.lx-links a:hover { color: var(--primary); }
.lx-search { margin-left: auto; display: flex; align-items: center; gap: .4rem; background: var(--surface-3); border-radius: 999px; padding: 0 .9rem; height: 38px; width: 230px; }
.lx-search .ic { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.lx-search input { border: 0; background: transparent; min-height: 36px; padding: 0; font-size: .84rem; box-shadow: none !important; }
.lx-lang { position: relative; }
.lx-lang summary { list-style: none; display: flex; align-items: center; gap: .3rem; cursor: pointer; font-weight: 700; font-size: .82rem; color: var(--ink); padding: .4rem .5rem; border-radius: 10px; }
.lx-lang summary::-webkit-details-marker { display: none; }
.lx-lang summary .ic { width: 16px; height: 16px; }
.lx-lang > div { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border-radius: 14px; box-shadow: var(--sh-3); padding: .4rem; display: grid; min-width: 160px; }
.lx-lang > div a { padding: .5rem .7rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.lx-lang > div a:hover, .lx-lang > div a[aria-current] { background: var(--surface-3); }
.lx-login { color: var(--ink); font-weight: 700; font-size: .86rem; text-decoration: none; padding: 0 .4rem; }
.lx-tabbar { display: none; }

/* ---------- Portada (landing e Inicio) ---------- */
.dx-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: var(--navy); }
.dx-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dx-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 22, 40, .8) 0%, rgba(6, 22, 40, .55) 38%, rgba(6, 22, 40, .08) 70%), linear-gradient(0deg, rgba(6, 22, 40, .55) 0%, rgba(6, 22, 40, 0) 38%); }
.dx-hero-in { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: 1240px; margin: 0 auto; }
.dx-hero-txt { max-width: 640px; }
.dx-eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: rgba(255, 255, 255, .86); margin: 0 0 .9rem; }
.dx-hero h1 { color: #fff; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 1rem; font-weight: 600; }
.dx-hero h1 span { color: var(--gold-2); }
.dx-lead { color: rgba(255, 255, 255, .9); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 48ch; margin: 0 0 1.5rem; }
.dx-hero .btn-row { gap: .7rem; }
.dx-hero .btn-white { color: var(--navy); }
.dx-stats { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; color: #fff; text-decoration: none; }
.dx-stats li, .dx-stats > span { display: flex; align-items: center; gap: .65rem; }
.dx-stats .ic { width: 26px; height: 26px; color: rgba(255, 255, 255, .92); flex: none; }
.dx-stats b { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dx-stats small { display: block; font-size: .76rem; color: rgba(255, 255, 255, .82); }
.dx-credit { position: absolute; right: 16px; top: 14px; max-width: 46ch; text-align: right; font-size: .66rem; color: rgba(255, 255, 255, .62); }
.lx-hero .dx-credit { top: 84px; }
.lx-hero { min-height: min(760px, 92vh); padding: 140px clamp(18px, 4vw, 56px) 96px; display: flex; align-items: flex-end; }
.lx-hero .dx-hero-in { width: 100%; }

/* Lugar destacado flotante */
.dx-feat { flex: none; width: 320px; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: 10px 12px 10px 10px;
  background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: var(--sh-3); text-decoration: none; }
.dx-feat img { width: 112px; height: 96px; object-fit: cover; border-radius: 12px; }
.dx-feat-body { display: grid; gap: .2rem; min-width: 0; }
.dx-feat-tag { justify-self: start; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8A5A00; background: #FCEFC7; padding: .2rem .5rem; border-radius: 6px; }
.dx-feat b { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.15; font-weight: 600; }
.dx-feat-sub { display: flex; align-items: center; gap: .25rem; font-size: .76rem; color: var(--ink-3); }
.dx-feat-sub .ic { width: 13px; height: 13px; }
.dx-feat-sub .dist:not(:empty)::before { content: '·'; margin: 0 .3em; }
.dx-feat-sub .dist .ic { display: none; }
.dx-feat .dx-go { background: var(--surface-3); border-color: var(--line); color: var(--ink); align-self: end; }

/* Franja de categorías */
.dx-quick { position: relative; z-index: 5; display: flex; justify-content: space-between; gap: .4rem; max-width: 1120px; margin: -44px auto 0; padding: 12px 22px;
  background: var(--surface); border-radius: 22px; box-shadow: var(--sh-2); overflow-x: auto; scrollbar-width: none; }
.dx-quick::-webkit-scrollbar { display: none; }
.dx-quick a { flex: none; display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .5rem; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 700; }
.dx-quick a:hover { background: var(--surface-3); }
.dx-quick i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); }
.dx-quick i .ic { width: 20px; height: 20px; }

/* Secciones */
.dx-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.dx-sec { margin-top: clamp(44px, 5.5vw, 76px); }
.dx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.dx-head h2 { margin: 0; font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1.08; letter-spacing: -.015em; }
.dx-head p { margin: .35rem 0 0; color: var(--ink-2); }
.dx-center { flex-direction: column; align-items: center; text-align: center; }
.dx-all { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--primary); font-weight: 700; font-size: .84rem; text-decoration: none; background: var(--surface); }
.dx-all .ic { width: 15px; height: 15px; }
.dx-all:hover { border-color: var(--primary); }

/* ¿Qué quieres hacer hoy? */
.dx-intent-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.dx-intent { position: relative; display: block; aspect-ratio: 4 / 3.4; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--sh-1); }
.dx-intent img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.dx-intent::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 22, 40, 0) 35%, rgba(6, 22, 40, .82) 100%); }
.dx-intent:hover img { transform: scale(1.05); }
.dx-intent-ic { position: absolute; left: 14px; bottom: 16px; width: 40px; height: 40px; display: grid; place-items: center; }
.dx-intent-ic .ic { width: 34px; height: 34px; stroke-width: 1.7; }
.dx-intent-txt { position: absolute; left: 60px; right: 54px; bottom: 15px; font-family: var(--font-serif); font-size: 1.06rem; line-height: 1.1; font-weight: 600; }
.dx-intent > .dx-go { position: absolute; right: 12px; bottom: 16px; }

/* La Costa Blanca está viva */
.dx-mapband { position: relative; margin-top: clamp(44px, 5.5vw, 76px); height: 470px; background: #0B2A47; overflow: hidden; isolation: isolate; }
.dx-map { position: absolute; inset: 0; z-index: 0; }
.dx-map.leaflet-container { background: #8FB9D3; }
.dx-map .leaflet-tile-pane { filter: saturate(.85) contrast(1.02); }
.dx-mapband::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 31, 54, .96) 0%, rgba(9, 31, 54, .86) 26%, rgba(9, 31, 54, .2) 52%, rgba(9, 31, 54, 0) 62%); }
.dx-mapband-in { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 56px); }
.dx-mapband-in > * { pointer-events: auto; }
.dx-mapband-txt { max-width: 400px; color: #fff; }
.dx-mapband-txt h2 { color: #fff; font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); line-height: 1.04; margin: 0 0 .8rem; }
.dx-mapband-txt p { color: rgba(255, 255, 255, .84); margin: 0 0 1.3rem; }
.dx-members { display: flex; align-items: center; gap: .5rem; margin: 1.2rem 0 0; font-size: .86rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
.dx-members .ic { width: 20px; height: 20px; }
.dx-members.dark { color: var(--ink-2); }
.dx-mapcard { position: relative; width: 290px; background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: var(--sh-3); overflow: hidden; text-decoration: none; display: block; }
.dx-mapcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.dx-mapcard-body { display: grid; gap: .3rem; padding: .8rem 1rem 1rem; }
.dx-mapcard-body b { font-size: 1rem; }
.dx-mapcard-body .small .ic { width: 13px; height: 13px; vertical-align: -2px; }
.dx-mapcard-bm { position: absolute; right: 12px; bottom: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); }
.mk-photo-wrap { background: none; border: 0; }
.mk-photo { display: inline-flex; align-items: center; gap: .5rem; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none;
  box-shadow: 0 8px 22px rgba(9, 30, 55, .28); white-space: nowrap; animation: mkPop .5s var(--ease) both; border: 2px solid var(--surface); }
.mk-photo img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.mk-photo b { display: block; font-size: .8rem; line-height: 1.1; }
.mk-photo small { display: block; font-size: .68rem; color: var(--ink-3); }
.mk-photo:hover { color: var(--ink); transform: translateY(-2px); }
@keyframes mkPop { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

/* Hoy en la Costa Blanca */
.dx-today { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.dx-tcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s; }
.dx-tcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); color: var(--ink); }
.dx-tcard-img { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); }
.dx-tcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-tcard-img .dx-go { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; }
.dx-tcard-body { display: grid; gap: .3rem; padding: .7rem .8rem .85rem; }
.dx-tcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .4rem; }
.dx-tcard-top b { font-size: .9rem; line-height: 1.25; }
.dx-pill { flex: none; display: inline-flex; align-items: center; gap: .25rem; padding: .16rem .5rem; border-radius: 999px; font-size: .66rem; font-weight: 800;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); white-space: nowrap; }
.dx-pill .ic { width: 11px; height: 11px; }
.dx-tcard-sub { display: flex; align-items: center; gap: .25rem; font-size: .74rem; color: var(--ink-3); }
.dx-tcard-sub .ic, .dx-tcard-body .small .ic { width: 13px; height: 13px; vertical-align: -2px; }

/* No solo visites… Vívela */
.dx-community { margin-top: clamp(44px, 5.5vw, 76px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; background: var(--surface); overflow: hidden; }
.dx-community-img { position: relative; align-self: stretch; min-height: 380px; }
.dx-community-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
.dx-community-txt { padding: clamp(28px, 4vw, 56px) clamp(18px, 4vw, 56px); }
.dx-community-txt h2 { font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.6rem); line-height: 1.06; margin: 0 0 .8rem; }
.dx-community-txt > p { color: var(--ink-2); margin: 0 0 1.2rem; max-width: 46ch; }
.dx-feats { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; }
.dx-feats li { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .86rem; }
.dx-feats i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); }
.dx-feats i .ic { width: 18px; height: 18px; }
.dx-plans { display: grid; gap: .5rem; margin-bottom: 1.3rem; }
.dx-plans a { display: flex; align-items: center; gap: .8rem; padding: .5rem .7rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.dx-plans a:hover { border-color: var(--line-2); }
.dx-plans b { display: block; font-size: .9rem; }

/* Pasaporte */
.dx-pass { margin-top: clamp(44px, 5.5vw, 76px); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: center;
  padding: clamp(28px, 4vw, 52px) clamp(18px, 4vw, 56px); background: radial-gradient(120% 140% at 0% 0%, #13416E 0%, var(--navy) 55%, var(--navy-2) 100%); color: #fff; }
.dx-pass-txt h2 { color: #fff; margin: 0 0 .7rem; font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1.06; }
.dx-pass-txt p { color: rgba(255, 255, 255, .82); margin: 0 0 1.3rem; max-width: 40ch; }
.dx-pass-card { display: grid; gap: .8rem; width: 310px; padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.dx-pass-card:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.dx-pass-head { display: flex; align-items: center; justify-content: space-between; }
.dx-pass-head .ic { width: 18px; height: 18px; }
.dx-demo { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.dx-pass-body { display: flex; align-items: center; gap: 1rem; }
.dx-pass-badges { display: grid; grid-template-columns: repeat(2, 46px); gap: 8px; }
.dx-pass-foot { font-size: .78rem; color: rgba(255, 255, 255, .78); }
.dx-ring { position: relative; width: 120px; height: 120px; flex: none; }
.dx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dx-ring circle { fill: none; stroke-width: 10; }
.dx-ring .trk { stroke: rgba(255, 255, 255, .14); }
.dx-ring .val { stroke: #5AB3FF; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.dx-ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dx-ring b { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dx-ring small { font-size: .72rem; opacity: .8; }
.dx-ring.dark { margin: .4rem auto 0; }
.dx-ring.dark .trk { stroke: var(--surface-3); }
.dx-ring.dark .val { stroke: var(--sea); }
.dx-hex { width: 46px; height: 46px; display: grid; place-items: center; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); color: #fff; flex: none; }
.dx-hex .ic { width: 20px; height: 20px; }
.dx-hex.off { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .55); }
.panel .dx-hex.off, .goal-row .dx-hex.off { background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); }
.dx-goals-title { margin: 0 0 .6rem; font-weight: 700; font-size: .86rem; color: rgba(255, 255, 255, .86); }
.dx-goals-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dx-goal { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.dx-goal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dx-goal::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 22, 40, 0) 40%, rgba(6, 22, 40, .85)); }
.dx-goal > span:not(.dx-go) { position: absolute; left: 10px; right: 42px; bottom: 9px; font-weight: 700; font-size: .78rem; line-height: 1.2; }
.dx-goal .dx-go { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; }
.dx-goal .dx-go .ic { width: 13px; height: 13px; }

/* Cada rincón tiene su propia historia */
.dx-terr { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.dx-terr::-webkit-scrollbar { display: none; }
.dx-tcom { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; scroll-snap-align: start; }
.dx-tcom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.dx-tcom:hover img { transform: scale(1.05); }
.dx-tcom::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 22, 40, .05) 30%, rgba(6, 22, 40, .82)); }
.dx-tcom-txt { position: absolute; left: 12px; right: 48px; bottom: 11px; }
.dx-tcom-txt b { display: block; font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; line-height: 1.1; }
.dx-tcom-txt small { display: block; font-size: .74rem; color: rgba(255, 255, 255, .86); margin-top: .15rem; }
.dx-tcom .dx-go { position: absolute; right: 10px; bottom: 11px; width: 30px; height: 30px; }
.dx-tcom.is-soon img { filter: saturate(.55) brightness(.92); }
.dx-soon { position: absolute; top: 10px; left: 10px; font-size: .66rem; font-weight: 800; padding: .22rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--navy); }

/* Negocios */
.dx-biz { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.dx-bcard { position: relative; display: flex; align-items: center; gap: .85rem; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s; }
.dx-bcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); color: var(--ink); }
.dx-bcard > img { width: 76px; height: 68px; border-radius: 12px; object-fit: cover; flex: none; }
.dx-bcard b { display: block; font-size: .92rem; line-height: 1.2; }
.dx-bcard small { display: block; font-size: .76rem; color: var(--ink-3); margin: .15rem 0 .3rem; }
.dx-bcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.dx-bcard-meta .tag { font-size: .68rem; padding: .12rem .45rem; }
.dx-sponsor { position: absolute; top: 8px; right: 10px; font-size: .6rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.dx-bcard-cta { border-style: dashed; border-color: var(--line-2); background: var(--surface-2); box-shadow: none; }
.dx-bcard-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c-com) 14%, var(--surface)); color: var(--c-com); flex: none; margin: 0 .4rem 0 .2rem; }
.dx-bcard-cta .dx-go { background: var(--surface-3); border-color: var(--line); color: var(--ink); }

/* Cierre */
.dx-final { position: relative; margin-top: clamp(48px, 6vw, 88px); min-height: 340px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; isolation: isolate; padding: 3rem 1.2rem; }
.dx-final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dx-final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 31, 54, .35), rgba(9, 31, 54, .78)); }
.dx-final h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.02; margin: 0 0 .8rem; }
.dx-final p { color: rgba(255, 255, 255, .88); margin: 0 auto 1.5rem; max-width: 46ch; }

/* Inicio con sesión: mismas piezas dentro del contenido */
.hm-hero { border-radius: var(--r-xl); min-height: 470px; display: flex; align-items: flex-end; padding: 2.4rem 2.4rem 4.2rem; }
.hm-hero .dx-hero-in { width: 100%; }
.hm-hero h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); }
.hm-hero .search-bar { max-width: 520px; margin-bottom: .9rem; }
.hm-hero-btns { margin-bottom: .2rem; }
.dx-stats-me { margin-top: 1.3rem; }
.dx-stats-me:hover { color: #fff; }
.page .dx-quick { margin-top: -40px; max-width: calc(100% - 48px); }
.page .dx-sec:first-of-type { margin-top: 2.2rem; }
.page .dx-mapband, .page .dx-community, .page .dx-pass { border-radius: var(--r-xl); }
.page .dx-mapband-in { padding: 0 clamp(18px, 3vw, 40px); }
.page .dx-intents { margin-top: 2.4rem; }
.hm-interests { margin-top: 1.4rem; }
.hm-interests h2 { margin: 0; font-size: 1.3rem; }
.hm-interests .toggle-chips { margin: .4rem 0 1rem; }
.hm-interests .chip .ic { color: var(--c); }
.hm-interests .chip:has(input:checked) .ic { color: #fff; }

/* Página de intención y cerca de mí */
.dx-intent-hero::after { background: linear-gradient(180deg, rgba(8, 24, 44, .35) 0%, transparent 30%, rgba(8, 24, 44, .25) 55%, rgba(8, 24, 44, .85) 100%); }
.dx-intent-head { position: absolute; left: clamp(16px, 3vw, 32px); right: 16px; bottom: clamp(18px, 3vw, 30px); z-index: 2; color: #fff; }
.dx-intent-head .dx-intent-ic { position: static; width: 52px; height: 52px; border-radius: 16px; color: #fff; margin-bottom: .8rem; }
.dx-intent-head .dx-intent-ic .ic { width: 28px; height: 28px; stroke-width: 2; }
.dx-intent-head h1 { color: #fff; margin: 0 0 .3rem; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.dx-intent-head p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 52ch; }
.dx-intent-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.dx-intent-bar .chips { flex: 1; min-width: 0; }
.near-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.near-where { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 600; flex-wrap: wrap; }
.near-where > .ic { color: var(--sea); }
.near-map { height: 340px; border-radius: var(--r-lg); }
.near-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .6rem; }
.near-list .pcard-mini { padding-right: .9rem; }
.near-dist { display: inline-flex; align-items: center; gap: .25rem; font-weight: 800; font-size: .8rem; color: var(--sea); white-space: nowrap; }
.near-dist .ic { width: 14px; height: 14px; }

/* ---------- Business ---------- */
.biz-headrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; }
.biz-level { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; font-weight: 800; font-size: .8rem; background: var(--surface-3); color: var(--ink-2); }
.biz-level .ic { width: 15px; height: 15px; }
.biz-level.is-pro { background: var(--primary-soft); color: var(--primary); }
.biz-level.is-premium { background: linear-gradient(120deg, #FBE7B0, #F2C14E); color: #5A3B00; }
.biz-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.biz-kpi, .an-kpi { display: grid; gap: .15rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.biz-kpi .ic-wrap, .an-kpi .ic-wrap { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .45rem;
  background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); }
.biz-kpi .ic-wrap .ic, .an-kpi .ic-wrap .ic { width: 19px; height: 19px; }
.biz-kpi b, .an-kpi b { font-size: 1.6rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.biz-kpi > span, .an-kpi > span { color: var(--ink-2); font-weight: 600; font-size: .84rem; }
.biz-kpi small, .an-kpi small { color: var(--ink-3); font-size: .76rem; display: inline-flex; align-items: center; gap: .25rem; }
.biz-kpi small .ic { width: 14px; height: 14px; }
.biz-kpi small.up { color: var(--ok); }
.biz-kpi small.down { color: var(--danger); }
.biz-kpi.is-locked { opacity: .55; }
.biz-chart { margin-bottom: 1rem; }
.biz-bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; margin: .6rem 0 .8rem; }
.biz-bars span { flex: 1; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--sea), color-mix(in srgb, var(--sea) 60%, var(--surface))); }
.biz-bars span:hover { background: var(--primary); }
.biz-split { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--ink-2); font-size: .84rem; font-weight: 600; }
.biz-split span { display: inline-flex; align-items: center; gap: .35rem; }
.biz-split .ic { width: 15px; height: 15px; color: var(--ink-3); }
.biz-lock { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.1rem; border-radius: var(--r); border: 1px dashed var(--line-2); background: var(--surface-2); }
.biz-lock .ic-wrap { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); flex: none; }
.biz-lock > div { flex: 1; min-width: 200px; }
.biz-lock p { margin: .1rem 0 0; }
.biz-anchors { margin: 1.2rem 0 .4rem; }
.badge-dot[style*="static"] { display: inline-grid; min-width: 18px; height: 18px; font-size: .64rem; }
.switch-row { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; }
.switch-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); }
.switch-row span { display: grid; gap: .1rem; }
.biz-bookings { display: grid; gap: .7rem; }
.biz-booking { display: flex; gap: .9rem; padding: 1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn); }
.biz-booking .avatar { width: 44px; height: 44px; }
.biz-booking .ic { width: 14px; height: 14px; vertical-align: -2px; }
.biz-answer { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.biz-answer input { flex: 1; min-width: 180px; min-height: 38px; }
.biz-new { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem; margin-top: .7rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.biz-new p { margin: 0 0 .3rem; }
.biz-new-img { padding: 0; border: 0; background: none; flex: none; }
.biz-new-img img, img.biz-new-img { width: 110px; height: 82px; object-fit: cover; border-radius: 12px; display: block; }
.biz-news { display: grid; gap: .2rem; }
.biz-plan h3 { display: flex; align-items: center; gap: .4rem; }
.biz-feat-list { list-style: none; padding: 0; margin: .8rem 0 1rem; display: grid; gap: .45rem; font-size: .88rem; }
.biz-feat-list li { display: flex; align-items: center; gap: .5rem; color: var(--ink-3); }
.biz-feat-list li .ic { width: 16px; height: 16px; flex: none; }
.biz-feat-list li.on { color: var(--ink); }
.biz-feat-list li.on .ic { color: var(--ok); }
.booking .form-grid { gap: .7rem; }
.round-actions a i[style] .ic { color: #fff; }

/* Página de planes para negocios */
.bz-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 52px); }
.bz-hero.is-bare { border-radius: 0; min-height: 560px; padding-top: 120px; }
.bz-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bz-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 22, 40, .85), rgba(6, 22, 40, .35) 70%); }
.bz-hero-in { max-width: 640px; }
.bz-hero h1 { color: #fff; font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.8rem); line-height: 1.03; margin: 0 0 .9rem; }
.bz-hero p { color: rgba(255, 255, 255, .88); font-size: 1.08rem; margin: 0 0 1.4rem; }
.bz-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bz-why-item { padding: 1.3rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.bz-why-item i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); margin-bottom: .8rem; }
.bz-why-item h3 { font-size: 1.05rem; margin: 0 0 .35rem; font-family: var(--font-sans); font-weight: 800; }
.bz-why-item p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.bz-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.bz-plan { position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.4rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.bz-plan.is-hl { border: 2px solid var(--primary); box-shadow: var(--sh-2); }
.bz-plan h3 { margin: 0; font-size: 1.4rem; }
.bz-price { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; margin: .3rem 0 .4rem; color: var(--primary); }
.bz-plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; flex: 1; font-size: .9rem; }
.bz-plan li { display: flex; gap: .5rem; align-items: flex-start; }
.bz-plan li .ic { width: 17px; height: 17px; color: var(--ok); flex: none; margin-top: 2px; }
.bz-badge { position: absolute; top: -12px; left: 1.4rem; font-size: .7rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px; background: var(--primary); color: #fff; }
.bz-steps-list { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bz-steps-list li { counter-increment: st; padding: 1.3rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: .3rem; }
.bz-steps-list li::before { content: counter(st); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: .4rem; }
.bz-steps-list span { color: var(--ink-2); font-size: .92rem; }
body.lnd .bz-hero { margin: 0; }

/* Mis reservas */
.bk-list { display: grid; gap: .8rem; }
.bk { display: flex; gap: 1rem; padding: .9rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); scroll-margin-top: 90px; }
.bk:target { outline: 2px solid var(--sea); }
.bk-img img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; display: block; }
.bk-name { font-weight: 800; color: var(--ink); text-decoration: none; }
.bk .ic { width: 14px; height: 14px; vertical-align: -2px; }
.bk.is-past { opacity: .7; }

/* Passport 2.0 en la página del pasaporte */
.pass2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; align-items: start; }
.goal-row { display: flex; align-items: center; gap: .8rem; margin: .7rem 0; }
.goal-row b { display: block; font-size: .92rem; }
.goal-row .xsmall { display: block; margin-bottom: .3rem; }
.goal-row .num { font-weight: 800; color: var(--ink-2); font-size: .85rem; }
.dx-goals-row.light .dx-goal { aspect-ratio: 4 / 3.2; }

/* Analítica */
.an-h { font-size: 1.25rem; margin: 1.6rem 0 .8rem; }
.an-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.an-chart { margin-top: 1rem; }
.an-bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; margin-top: .8rem; }
.an-day { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 1px; }
.an-day i { flex: 1; min-height: 1px; border-radius: 3px 3px 0 0; }
.an-day i.v, .an-key.v { background: var(--sea); }
.an-day i.r, .an-key.r { background: var(--c-act); }
.an-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 .3rem 0 .8rem; vertical-align: -1px; }
.an-axis { display: flex; justify-content: space-between; font-size: .76rem; color: var(--ink-3); margin-top: .4rem; }
.an-dl { margin: 0; display: grid; }
.an-dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.an-dl div:last-child { border-bottom: 0; }
.an-dl dt { color: var(--ink-2); }
.an-dl dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.an-rank { display: grid; gap: .5rem; }
.an-rank div { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: .6rem; font-size: .88rem; }
.an-rank i { height: 10px; border-radius: 6px; background: var(--sea); }
.an-rank b { text-align: right; }
.an-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; font-size: .9rem; }
.an-list li > * { vertical-align: middle; }
.an-list li { padding-right: 2.4rem; position: relative; }
.an-list li b { position: absolute; right: 0; top: 0; }

/* ---------- Responsive v3 ---------- */
@media (max-width: 1180px) {
  .lx-links { display: none; }
  .dx-intent-row, .dx-today { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dx-intent-row > :nth-child(n+4), .dx-today > :nth-child(n+4) { display: none; }
  .dx-pass { grid-template-columns: minmax(0, 1fr) auto; }
  .dx-goals { grid-column: 1 / -1; }
  .bz-why-grid, .biz-kpis, .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .dx-hero-in { flex-direction: column; align-items: flex-start; }
  .dx-feat { width: min(100%, 360px); }
  .dx-community { grid-template-columns: minmax(0, 1fr); }
  .dx-community-img { min-height: 240px; }
  .dx-community-img img { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .bz-plans, .bz-steps-list { grid-template-columns: minmax(0, 1fr); }
  .pass2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.lnd { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .lx-nav { top: 0; width: 100%; border-radius: 0; padding: calc(8px + env(safe-area-inset-top)) 10px 8px 14px; gap: .4rem; }
  .lx-search, .lx-login, .lx-lang span { display: none; }
  .lx-nav > .btn { margin-left: auto; }
  .lx-lang { order: 3; }
  .lx-tabbar { display: grid; }
  .lx-hero { min-height: 0; padding: 104px 16px 76px; }
  .dx-hero::before { background: linear-gradient(180deg, rgba(6, 22, 40, .25) 0%, rgba(6, 22, 40, .45) 35%, rgba(6, 22, 40, .9) 100%); }
  .dx-hero h1 { font-size: clamp(2.1rem, 1.4rem + 4vw, 2.8rem); }
  .dx-hero .btn-row { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .dx-hero .btn-row .btn { justify-content: center; }
  .dx-stats { gap: .9rem 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.3rem; }
  .dx-stats li, .dx-stats > span { gap: .5rem; }
  .dx-stats .ic { width: 22px; height: 22px; }
  .dx-stats b { font-size: 1.1rem; }
  .dx-stats small { font-size: .7rem; }
  .dx-stats-me { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dx-stats-me > span { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .mk-photo { padding: 3px 10px 3px 3px; gap: .35rem; }
  .mk-photo img { width: 30px; height: 30px; }
  .mk-photo small { display: none; }
  .mk-photo b { font-size: .72rem; }
  .dx-feat { display: none; }
  .dx-credit { top: auto; bottom: 44px; left: 16px; right: 16px; text-align: left; }
  .hm-hero .dx-credit { top: calc(var(--appbar-h) + env(safe-area-inset-top) + 2px); bottom: auto; text-align: right; }
  .lx-hero .dx-credit { top: 70px; bottom: auto; text-align: right; }
  .dx-quick { margin: -34px 12px 0; padding: 10px 8px; gap: 0; border-radius: 18px; justify-content: flex-start; }
  .dx-quick a { flex-direction: column; gap: .3rem; font-size: .68rem; width: 74px; padding: .2rem; text-align: center; }
  .dx-quick i { width: 46px; height: 46px; }
  .dx-head { align-items: flex-start; }
  .dx-head .dx-all { padding: .35rem .7rem; font-size: .76rem; }
  .dx-intent-row, .dx-today { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 0 16px 6px; }
  .dx-today { grid-auto-columns: 68%; }
  .dx-intent-row > *, .dx-today > * { display: block !important; scroll-snap-align: start; }
  .dx-intent-row::-webkit-scrollbar, .dx-today::-webkit-scrollbar { display: none; }
  .dx-intent { aspect-ratio: 3 / 3.6; }
  .dx-intent-ic { left: 10px; bottom: 44px; }
  .dx-intent-ic .ic { width: 26px; height: 26px; }
  .dx-intent-txt { left: 12px; right: 10px; bottom: 10px; font-size: .94rem; }
  .dx-intent > .dx-go { display: none; }
  .dx-tcard { display: flex !important; }
  .dx-mapband { height: auto; display: flex; flex-direction: column-reverse; }
  .dx-map { position: relative; height: 300px; }
  .dx-mapband::after { display: none; }
  .dx-mapband-in { position: relative; inset: auto; padding: 26px 16px 22px; background: #0B2A47; }
  .dx-mapcard { display: none; }
  .dx-community-txt { padding: 22px 16px 28px; }
  .dx-pass { grid-template-columns: minmax(0, 1fr); padding: 28px 16px; }
  .dx-pass-card { width: 100%; }
  .dx-goals-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dx-terr { grid-auto-columns: 62%; margin: 0 -16px; padding: 0 16px 6px; }
  .dx-biz { grid-template-columns: minmax(0, 1fr); }
  .hm-hero { border-radius: 0 0 var(--r-xl) var(--r-xl); margin: -4px calc(-1 * var(--gutter)) 0; padding: calc(var(--appbar-h) + 20px) 16px 62px; min-height: 0; }
  .page .dx-quick { margin: -34px 0 0; max-width: none; }
  .page .dx-mapband, .page .dx-community, .page .dx-pass { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; }
  .near-list { grid-template-columns: minmax(0, 1fr); }
  .near-map { height: 260px; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .bz-why-grid, .biz-kpis, .an-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .bz-hero.is-bare { min-height: 480px; padding: 110px 16px 28px; }
  .bk-img img { width: 72px; height: 72px; }
  .an-rank div { grid-template-columns: 90px 1fr 32px; }
}
@media (prefers-reduced-motion: reduce) { .mk-photo { animation: none; } }

/* Ajustes v3 tras revisión visual */
p .ic, .small .ic, .xsmall .ic, .an-list .ic { display: inline-block; vertical-align: -2px; }
.goal-row .grow, .biz-booking .grow, .bk .grow, .biz-new .grow { flex: 1; min-width: 0; }
.goal-row .pbar { width: 100%; }
.round-actions { max-width: 560px !important; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.admin-nav a { display: inline-flex; align-items: center; padding: .42rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-weight: 700; font-size: .84rem; text-decoration: none; }
.admin-nav a:hover { border-color: var(--line-2); color: var(--ink); }
.admin-nav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 760px) {
  .dx-intent-bar { flex-direction: column; align-items: stretch; }
  .dx-intent-bar .chips { order: 2; }
}

/* =====================================================================
   v4 — Barra superior de escritorio, pie y piezas comunes
   ===================================================================== */
:root { --appbar-h: 68px; --tn-h: 68px; }

/* Barra superior (escritorio y tableta) */
.tn { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--line); }
.tn-in { max-width: 1320px; margin: 0 auto; height: var(--tn-h); padding: 0 var(--gutter); display: flex; align-items: center; gap: 1.6rem; }
.tn .brand img { width: 26px; height: 33px; }
.tn-links { display: flex; align-items: stretch; gap: 1.35rem; height: 100%; }
.tn-links a { position: relative; display: flex; align-items: center; color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: .9rem; white-space: nowrap; }
.tn-links a:hover { color: var(--ink); }
.tn-links a[aria-current="page"] { color: var(--ink); }
.tn-links a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--sea); }
.tn-actions { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.tn-search { display: flex; align-items: center; gap: .45rem; height: 40px; width: 220px; padding: 0 .9rem; margin-right: .3rem; border-radius: 999px; background: var(--surface-3);
  border: 1px solid transparent; transition: width .25s var(--ease), border-color .15s, background .15s; }
.tn-search:focus-within { width: 280px; background: var(--surface); border-color: var(--sea); }
.tn-search .ic { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.tn-search input { border: 0; background: transparent; min-height: 36px; padding: 0; font-size: .86rem; box-shadow: none !important; }
.tn-ai { display: inline-flex; align-items: center; gap: .4rem; height: 38px; padding: 0 .85rem; border-radius: 999px; text-decoration: none; font-weight: 750; font-size: .84rem;
  color: var(--primary); background: var(--primary-soft); margin-right: .2rem; }
.tn-ai .ic { width: 17px; height: 17px; }
.tn-ai:hover, .tn-ai[aria-current] { background: var(--primary); color: var(--primary-ink); }
.tn-sos { color: var(--danger); }
.tn-sos:hover { background: var(--danger-soft); color: var(--danger); }
.tn .icon-btn.flat { width: 40px; height: 40px; }
.tn .lx-login { margin: 0 .3rem; }
.tn-lang summary { color: var(--ink-2); }
details[data-dropdown] { position: relative; }
details[data-dropdown] > summary { list-style: none; cursor: pointer; }
details[data-dropdown] > summary::-webkit-details-marker { display: none; }
.tn-me summary { display: flex; align-items: center; gap: .25rem; padding: 3px 6px 3px 3px; border-radius: 999px; border: 1px solid var(--line); margin-left: .3rem; }
.tn-me summary:hover { border-color: var(--line-2); }
.tn-me summary img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.tn-me summary .ic { width: 16px; height: 16px; color: var(--ink-3); }
.tn-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 290px; padding: .45rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-3); display: grid; gap: 1px; z-index: 60; animation: rise .18s var(--ease); }
.tn-menu a, .tn-menu button { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .6rem .7rem; border-radius: 10px; border: 0; background: none; color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .9rem; text-align: left; }
.tn-menu a:hover, .tn-menu button:hover { background: var(--surface-3); color: var(--ink); }
.tn-menu .ic { width: 18px; height: 18px; color: var(--ink-3); }
.tn-menu .tag { margin-left: auto; }
.tn-menu hr { margin: .3rem .4rem; }
.tn-menu form { margin: 0; }
.tn-menu-head { padding: .7rem !important; margin-bottom: .2rem; background: var(--surface-2); }
.tn-menu-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tn-menu-head b { display: block; font-size: .95rem; }
.tn-menu-head small { display: block; color: var(--ink-3); font-size: .76rem; font-weight: 600; }

/* Título de página en escritorio (las vistas sin cabecera propia) */
.desk-title { margin: 0 0 1.1rem; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.5rem); }
@media (min-width: 761px) {
  .appbar { display: none; }
  .page-head h1 { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin: 0; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.5rem); }
}

/* Pie */
.ft { margin-top: 40px; background: var(--navy-2); color: rgba(255, 255, 255, .72); font-size: .9rem; }
.ft-in { max-width: 1320px; margin: 0 auto; padding: 3.2rem var(--gutter) 2rem; display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
.ft .brand-word small, .ft .brand-word b { color: #fff; }
.ft-brand p { margin: 1rem 0 1.2rem; max-width: 34ch; line-height: 1.6; }
.ft-col h2 { font-family: var(--font-sans); font-size: .86rem; font-weight: 800; color: #fff; margin: .3rem 0 .9rem; letter-spacing: 0; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ft a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.ft a:hover { color: #fff; }
.ft-install { display: inline-flex; align-items: center; gap: .7rem; padding: .55rem 1rem .55rem .8rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06); color: #fff; text-align: left; }
.ft-install:hover { background: rgba(255, 255, 255, .12); }
.ft-install .ic { width: 24px; height: 24px; color: #9AD6FF; }
.ft-install small { display: block; font-size: .68rem; color: rgba(255, 255, 255, .7); line-height: 1.2; }
.ft-install b { display: block; font-size: .92rem; line-height: 1.2; }
.ft-social { display: flex; gap: .5rem; margin-top: 1rem; }
.ft-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); }
.ft-social .ic { width: 18px; height: 18px; }
.ft-bottom { max-width: 1320px; margin: 0 auto; padding: 1.2rem var(--gutter) 1.6rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: .8rem; font-size: .82rem; }
.ft-bottom p { margin: 0; }
.ft .langs { margin: 0; }
.ft .langs a { padding: .25rem .65rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: .78rem; }
.ft .langs a[aria-current="true"] { background: #fff; color: var(--navy); }
body.lnd .ft { margin-top: 0; }

@media (max-width: 1240px) {
  .tn-in { gap: 1.1rem; }
  .tn-links { gap: 1rem; }
  .tn-search { width: 40px; padding: 0; justify-content: center; background: transparent; }
  .tn-search input { position: absolute; opacity: 0; width: 1px; pointer-events: none; }
  .tn-search:focus-within { width: 240px; padding: 0 .9rem; background: var(--surface); justify-content: flex-start; }
  .tn-search:focus-within input { position: static; opacity: 1; width: 100%; pointer-events: auto; }
  .tn-ai span { display: none; }
  .tn-ai { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 1060px) {
  .tn-in { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 0; }
  .tn-links { order: 3; width: 100%; height: 46px; overflow-x: auto; scrollbar-width: none; gap: 1.4rem; }
  .tn-links::-webkit-scrollbar { display: none; }
  :root { --appbar-h: 112px; }
  .ft-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --appbar-h: 60px; }
  .tn { display: none; }
  .appbar .brand-word { display: none; }
  .ft { margin-top: 24px; }
  .ft-in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 2rem 16px 1.2rem; gap: 1.4rem 1rem; }
  .ft-bottom { padding: 1rem 16px 1.2rem; flex-direction: column; align-items: flex-start; }
}

/* ---------- Paginación numerada ---------- */
.pager { gap: .35rem; }
.pg-num, .pg-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .4rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .9rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pg-num:hover, .pg-btn:hover { border-color: var(--line-2); color: var(--ink); }
.pg-num.is-on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 30%, transparent); }
.pg-btn .ic { width: 18px; height: 18px; }
.pg-btn.is-off { opacity: .4; }
.pg-gap { color: var(--ink-3); padding: 0 .2rem; }

/* ---------- Explorar ---------- */
.xp-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); min-height: 300px; display: flex; align-items: center;
  padding: 2.6rem clamp(1.4rem, 4vw, 3.4rem) 4.4rem; background: var(--navy); color: #fff; }
.xp-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.xp-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 22, 40, .82) 0%, rgba(6, 22, 40, .5) 45%, rgba(6, 22, 40, .1) 85%); }
.xp-hero-in { width: 100%; max-width: 640px; }
.xp-hero h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 .7rem; }
.xp-hero p { color: rgba(255, 255, 255, .88); max-width: 50ch; margin: 0 0 1.4rem; }
.xp-search { display: flex; align-items: center; gap: .6rem; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-3); max-width: 560px; }
.xp-search > .ic { color: var(--ink-3); }
.xp-search input { border: 0; min-height: 46px; padding: 0; background: transparent; box-shadow: none !important; font-size: 1rem; }
.xp-search .btn { min-height: 46px; padding: 0 1.3rem; }
.xp-cats { position: relative; z-index: 3; display: flex; gap: .3rem; margin: -40px auto 0; max-width: calc(100% - 48px); width: fit-content; padding: 10px 14px; border-radius: 22px;
  background: var(--surface); box-shadow: var(--sh-2); overflow-x: auto; scrollbar-width: none; }
.xp-cats::-webkit-scrollbar { display: none; }
.xp-cats a { flex: none; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: .84rem; transition: background .15s; }
.xp-cats a:hover { background: var(--surface-3); }
.xp-cats a[aria-current] { background: var(--navy); color: #fff; }
.xp-cats i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); }
.xp-cats a[aria-current] i { background: rgba(255, 255, 255, .16); color: #fff; }
.xp-cats i .ic { width: 18px; height: 18px; }

.xp-layout { display: grid; grid-template-columns: 286px minmax(0, 1fr); gap: 28px; margin-top: 30px; align-items: start; }
.xp-filters { position: sticky; top: calc(var(--appbar-h) + 16px); max-height: calc(100vh - var(--appbar-h) - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-1); padding: .4rem 1.2rem 1.2rem; scrollbar-width: thin; }
.xp-fhead { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .6rem; padding: .9rem 0 .7rem; margin: 0 -2px; background: var(--surface); }
.xp-fhead h2 { margin: 0; font-size: 1.25rem; flex: 1; }
.xp-fhead a { font-size: .84rem; font-weight: 700; text-decoration: none; }
.xp-fclose { display: none !important; }
.xp-fs { border: 0; margin: 0; padding: .95rem 0; border-top: 1px solid var(--line); min-width: 0; }
.xp-fs legend, .xp-fs > .label { float: left; width: 100%; font-weight: 750; font-size: .88rem; color: var(--ink); margin: 0 0 .65rem; padding: 0; }
.xp-fs legend + * { clear: both; }
.xp-fs select { min-height: 42px; font-size: .9rem; }
.xp-fs .toggle-chips { gap: .35rem; }
.xp-fs .chip { padding: .38rem .75rem; font-size: .8rem; }
.xp-fs .hint { display: flex; gap: .35rem; align-items: center; margin-top: .55rem; }
.xp-fs .hint .ic { width: 14px; height: 14px; }
.xp-type { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; margin: 0 -.6rem; border-radius: 10px; cursor: pointer; font-weight: 650; font-size: .9rem; color: var(--ink-2); }
.xp-type:hover { background: var(--surface-3); }
.xp-type input { position: absolute; opacity: 0; pointer-events: none; }
.xp-type .ic { width: 18px; height: 18px; color: var(--ink-3); }
.xp-type span { flex: 1; }
.xp-type small { font-size: .76rem; font-weight: 700; color: var(--ink-3); background: var(--surface-3); padding: .08rem .5rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.xp-type:has(input:checked) { background: var(--primary-soft); color: var(--primary); }
.xp-type:has(input:checked) .ic { color: var(--primary); }
.xp-type:has(input:checked) small { background: var(--primary); color: var(--primary-ink); }
.xp-type:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--sea) 55%, transparent); }
.xp-checks { display: grid; gap: 2px; }
.xp-check { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; cursor: pointer; font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.xp-check input { width: 18px; height: 18px; flex: none; }
.xp-check i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); }
.xp-check i .ic { width: 14px; height: 14px; }
.xp-check:has(input:checked) { color: var(--ink); }
.xp-switch { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .32rem 0; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.xp-switch > span:first-child { display: inline-flex; align-items: center; gap: .5rem; }
.xp-switch > span:first-child .ic { width: 16px; height: 16px; color: var(--ink-3); }
.xp-switch .switch { width: 42px; height: 24px; }
.xp-switch .switch span::after { width: 18px; height: 18px; }
.xp-switch .switch input:checked + span::after { transform: translateX(18px); }
.xp-rating { display: flex; flex-wrap: wrap; gap: .35rem; }
.xp-rating .chip .ic { color: var(--star); width: 14px; height: 14px; }
.xp-rating .chip:has(input:checked) .ic { color: var(--gold-2); }
.xp-fsubmit { position: sticky; bottom: -1.2rem; padding: .8rem 0 1.2rem; margin-bottom: -1.2rem; background: linear-gradient(180deg, transparent, var(--surface) 30%); }
.js .xp-fsubmit { display: none; }
.xp-backdrop { display: none; }

.xp-bar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.xp-bar h2 { margin: 0 auto 0 0; font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); }
.xp-bar h2 span { font-family: var(--font-sans); font-size: .9em; font-weight: 600; color: var(--ink-3); }
.xp-fbtn { display: none; }
.xp-n { min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-size: .72rem; font-weight: 800; }
.xp-sort select { min-height: 40px; width: auto; padding: .45rem 2.3rem .45rem .9rem; border-radius: 999px; font-size: .86rem; font-weight: 650; }
.xp-views { grid-auto-columns: 40px; padding: 3px; border-radius: 12px; }
.xp-views a { display: grid; place-items: center; height: 34px; padding: 0; border-radius: 9px; }
.xp-views .ic { width: 18px; height: 18px; }
.xp-active { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.2rem 0 1rem; }
.xp-active .chip { padding: .32rem .55rem .32rem .8rem; font-size: .8rem; background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.xp-active .chip .ic { width: 14px; height: 14px; }
.xp-active .chip:hover { background: color-mix(in srgb, var(--primary-soft) 70%, var(--primary) 15%); }

/* Tarjeta de resultado */
.xp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.xc { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s; }
.xc:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.xc-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-3); overflow: hidden; }
.xc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.xc:hover .xc-img img { transform: scale(1.04); }
.xc-badge { position: absolute; left: 10px; top: 10px; padding: .22rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 800; color: #fff; background: rgba(8, 24, 44, .62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.xc-img .datebox.on-photo + .xc-badge { top: auto; bottom: 10px; }
.xc-body { display: grid; gap: .32rem; padding: .85rem 1rem 1rem; flex: 1; align-content: start; }
.xc-cat { justify-self: start; display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem .16rem .4rem; border-radius: 999px; font-size: .72rem; font-weight: 800;
  color: color-mix(in srgb, var(--c) 82%, #000); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
:root[data-theme="dark"] .xc-cat { color: color-mix(in srgb, var(--c) 70%, #fff); }
.xc-cat .ic { width: 13px; height: 13px; }
.xc-title { margin: 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 750; line-height: 1.28; letter-spacing: 0; }
.xc-title a { color: var(--ink); text-decoration: none; }
.xc-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.xc .fav-btn { z-index: 3; }
.xc-sub { display: flex; align-items: flex-start; gap: .3rem; margin: 0; color: var(--ink-3); font-size: .8rem; line-height: 1.35; }
.xc-sub .ic { width: 14px; height: 14px; margin-top: 1px; }
.xc-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .35rem; min-height: 24px; }
.xc-price { font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.xc-price b { font-size: 1rem; color: var(--ink); font-weight: 800; }
.xc-extra { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.near-dist:has(.dist:empty) { display: none; }
.near-dist .dist { gap: .25rem; }

/* Fila de resultado */
.xp-list { display: grid; gap: 12px; }
.xr { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; padding: 10px 16px 10px 10px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: box-shadow .2s, border-color .2s; }
.xr:hover { box-shadow: var(--sh-2); }
.xr.is-active { border-color: var(--sea); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 20%, transparent); }
.xr-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 13px; overflow: hidden; background: var(--surface-3); }
.xr-img img { width: 100%; height: 100%; object-fit: cover; }
.xr-body { display: grid; gap: .3rem; min-width: 0; }
.xr-desc { margin: 0; color: var(--ink-2); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; font-size: .8rem; color: var(--ink-3); }
.xr-meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.xr-meta .ic { width: 14px; height: 14px; }
.xr-side { display: grid; justify-items: end; gap: .6rem; }
.xr-go { position: relative; z-index: 2; background: var(--surface-3); border-color: var(--line); color: var(--ink); }

/* Vista de mapa */
.xp-mapview { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 14px; height: calc(100vh - var(--appbar-h) - 120px); min-height: 520px; }
.xp-maplist { overflow-y: auto; display: grid; align-content: start; gap: 10px; padding: 2px 4px 2px 2px; scrollbar-width: thin; }
.xp-maplist .xr { grid-template-columns: 96px minmax(0, 1fr); padding: 8px 12px 8px 8px; gap: .8rem; }
.xp-maplist .xr-side { display: none; }
.xp-maplist .xr-img { aspect-ratio: 1; }
.xp-mapbox { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); background: #AAD3DF; }
.xp-mapbox .map { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.xp-here { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 500; box-shadow: var(--sh-2); }

/* Banda de Viva AI */
.xp-ai { display: flex; align-items: center; gap: 1.1rem; margin-top: 2rem; padding: 1.3rem 1.5rem; border-radius: 22px; text-decoration: none; color: var(--ink);
  background: linear-gradient(110deg, var(--sea-soft) 0%, var(--surface) 55%, color-mix(in srgb, var(--c-tribu) 10%, var(--surface)) 100%); border: 1px solid var(--line); }
.xp-ai:hover { color: var(--ink); border-color: var(--line-2); }
.xp-ai .ai-orb { width: 56px; height: 56px; border-radius: 18px; flex: none; }
.xp-ai .ai-orb .ic { width: 26px; height: 26px; }
.xp-ai b { display: block; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; }
.xp-ai .grow > span { color: var(--ink-2); font-size: .92rem; }
.xp-ai .btn { flex: none; }
.xp-empty { background: var(--surface); }

@media (max-width: 1180px) {
  .xp-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
  .xr { grid-template-columns: 170px minmax(0, 1fr) auto; }
}
@media (max-width: 960px) {
  .xp-layout { grid-template-columns: minmax(0, 1fr); }
  .xp-fbtn { display: inline-flex; }
  .xp-filters { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 95; max-height: 86vh; border-radius: 24px 24px 0 0; box-shadow: var(--sh-3);
    transform: translateY(105%); transition: transform .3s var(--ease); padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); visibility: hidden; }
  .xp-filters.is-open { transform: none; visibility: visible; }
  .xp-fclose { display: inline-grid !important; }
  .js .xp-fsubmit { display: block; }
  .xp-backdrop { display: block; position: fixed; inset: 0; z-index: 94; background: rgba(6, 20, 36, .5); }
  .xp-backdrop[hidden] { display: none; }
  .xp-mapview { grid-template-columns: minmax(0, 1fr); height: auto; }
  .xp-mapbox { height: 380px; order: -1; }
  .xp-maplist { overflow: visible; }
}
@media (max-width: 760px) {
  .xp-hero { border-radius: 0 0 var(--r-xl) var(--r-xl); margin: -4px calc(-1 * var(--gutter)) 0; min-height: 0; padding: 2rem 16px 3.6rem; }
  .xp-hero::before { background: linear-gradient(180deg, rgba(6, 22, 40, .35), rgba(6, 22, 40, .82)); }
  .xp-search { padding-left: 14px; }
  .xp-search .btn span { display: none; }
  .xp-search .btn { width: 46px; padding: 0; border-radius: 50%; }
  .xp-cats { margin: -30px 0 0; max-width: none; width: auto; border-radius: 18px; padding: 8px; }
  .xp-cats a { flex-direction: column; gap: .25rem; padding: .3rem .4rem; font-size: .7rem; border-radius: 14px; min-width: 70px; }
  .xp-cats a[aria-current] { background: var(--primary-soft); color: var(--primary); }
  .xp-cats a[aria-current] i { background: var(--primary); color: #fff; }
  .xp-layout { margin-top: 18px; }
  .xp-bar { gap: .5rem; }
  .xp-bar h2 { width: 100%; margin-bottom: .2rem; }
  .xp-sort { flex: 1; }
  .xp-sort select { width: 100%; }
  .xp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .xc-body { padding: .65rem .7rem .8rem; }
  .xc-title { font-size: .9rem; }
  .xc-cat { font-size: .66rem; }
  .xr { grid-template-columns: 104px minmax(0, 1fr); padding: 8px 12px 8px 8px; gap: .8rem; }
  .xr-img { aspect-ratio: 1; }
  .xr-side { display: none; }
  .xr-desc { display: none; }
  .xp-mapbox { height: 300px; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; border-left: 0; border-right: 0; }
  .xp-ai { flex-wrap: wrap; padding: 1.1rem; }
  .xp-ai .btn { width: 100%; }
}
.brand-word small, .brand-word b, .tn-ai span { white-space: nowrap; }

/* ---------- Mapa interactivo ---------- */
.page-map { max-width: none; padding-top: 16px; padding-bottom: 16px; }
.page-map + .ft { display: none; }
.mapx { grid-template-columns: minmax(0, 1fr) 390px; height: calc(100vh - var(--appbar-h) - 32px); height: calc(100dvh - var(--appbar-h) - 32px); }
.mapx-bar { right: 70px; }
.mapx-bar .search-bar { max-width: 420px; box-shadow: var(--sh-2); }
.mapx-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--sh-2); justify-self: start; max-width: 100%; }
.mapx-tabs button { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: .84rem; }
.mapx-tabs button .ic { width: 16px; height: 16px; }
.mapx-tabs button small { font-size: .7rem; font-weight: 800; color: var(--ink-3); background: var(--surface-3); border-radius: 999px; padding: 0 .45rem; font-variant-numeric: tabular-nums; }
.mapx-tabs button small:empty { display: none; }
.mapx-tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.mapx-tabs button[aria-pressed="true"] small { background: rgba(255, 255, 255, .2); color: #fff; }
.mapx-tools { position: absolute; top: 12px; right: 12px; z-index: 500; display: grid; gap: 8px; }
.mapx-tools .icon-btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.mapx-locate { display: none; }
.mapx-side { min-height: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.mapx-side-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.mapx-side-head b { font-size: .92rem; }
.mapx-side .mapx-list { flex: 1; padding: .7rem; }
.mapx-list .pcard-mini { box-shadow: none; }
.mapx-list .pcard-mini:hover { border-color: var(--line-2); }
.mapx-detail { flex: 1; overflow-y: auto; }
.mapx-back { margin: .5rem .5rem 0; }
.mapx-dimg { margin: .5rem .9rem 0; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--surface-3); }
.mapx-dimg img { width: 100%; height: 100%; object-fit: cover; }
.mapx-dbody { padding: .9rem 1rem 1.2rem; display: grid; gap: .55rem; }
.mapx-dbody h2 { margin: 0; font-size: 1.45rem; }
.mapx-dbody h3 { margin: .8rem 0 0; font-size: 1rem; font-family: var(--font-sans); font-weight: 800; }
.mapx-nears { display: grid; gap: .45rem; }
.mapx-near { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .4rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); }
.mapx-near:hover { border-color: var(--line-2); background: var(--surface-2); }
.mapx-near img { width: 54px; height: 46px; border-radius: 9px; object-fit: cover; flex: none; }
.mapx-near b { display: block; font-size: .86rem; line-height: 1.2; }
.mapx-near small { color: var(--ink-3); font-size: .74rem; }
.mapx.is-sat .leaflet-control-attribution { background: rgba(255, 255, 255, .85); }
@media (max-width: 1180px) { .mapx { grid-template-columns: minmax(0, 1fr) 330px; } }
@media (max-width: 960px) {
  .mapx { grid-template-columns: minmax(0, 1fr); }
  .mapx-side { display: none; }
  .mapx-bar { right: 66px; }
}
@media (max-width: 760px) {
  .page-map { padding: 0; }
  .mapx { margin: 0; height: calc(100dvh - var(--appbar-h) - var(--tabbar-h) - env(safe-area-inset-bottom) - env(safe-area-inset-top)); }
  .mapx-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 12px; }
  .mapx-tabs::-webkit-scrollbar { display: none; }
  .mapx-tabs button { flex: none; padding: .4rem .65rem; }
  .mapx-here { top: auto; bottom: 18px; }
  .mapx-tools { top: 12px; }
}

/* ---------- Ficha de lugar ---------- */
.ph { position: relative; isolation: isolate; overflow: hidden; min-height: 440px; border-radius: var(--r-xl) var(--r-xl) 0 0; display: flex; flex-direction: column;
  justify-content: space-between; padding: 22px clamp(20px, 3.4vw, 44px) 34px; background: var(--navy); color: #fff; }
.ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ph::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 22, 40, .55) 0%, rgba(6, 22, 40, .08) 30%, rgba(6, 22, 40, .18) 55%, rgba(6, 22, 40, .82) 100%); }
.ph-top { display: flex; align-items: center; gap: 1rem; }
.ph-back { flex: none; }
.crumbs.on-photo { margin: 0; color: rgba(255, 255, 255, .8); font-weight: 600; }
.crumbs.on-photo a { color: rgba(255, 255, 255, .86); }
.crumbs.on-photo a:hover { color: #fff; }
.ph-acts { margin-left: auto; display: flex; gap: .5rem; }
.ph-acts form { margin: 0; }
.btn-glass { background: rgba(255, 255, 255, .94); color: var(--navy); border: 0; min-height: 40px; padding: 0 1rem; border-radius: 999px; font-size: .86rem; box-shadow: 0 4px 16px rgba(0, 0, 0, .14); }
.btn-glass:hover { background: #fff; color: var(--navy); }
.btn-glass.is-on .ic { color: var(--danger); }
.ph-txt { max-width: 760px; margin-top: 3rem; }
.ph h1 { color: #fff; margin: 0; font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.ph-sub { margin: .7rem 0 0; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .92); max-width: 52ch; }
.ph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin-top: .9rem; font-weight: 600; font-size: .92rem; color: rgba(255, 255, 255, .92); }
.ph-meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.ph-meta .ic { width: 16px; height: 16px; }
.ph-rating .ic { color: var(--gold-2, #F7D27A); }
.ph-meta .dist:empty { display: none; }
.ph-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.ph-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ph-tag .ic { width: 14px; height: 14px; }
.ph-tag.is-main { background: var(--sea); border-color: transparent; }
.ph-tag.is-warn { background: var(--warn); border-color: transparent; }
.ph-credit { position: absolute; right: 16px; bottom: 12px; font-size: .7rem; color: rgba(255, 255, 255, .75); max-width: 40%; text-align: right; }

.ph-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 12px; margin: -1px 0 0;
  background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--sh-1); }
.ph-thumb { position: relative; aspect-ratio: 16 / 10; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--surface-3); cursor: zoom-in; }
.ph-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.ph-thumb:hover img { transform: scale(1.05); }
.ph-thumb.is-more > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; background: rgba(8, 24, 44, .58); font-size: .82rem; font-weight: 700; }
.ph-thumb.is-more b { font-size: 1.35rem; }
.ph-thumb.is-add { display: grid; place-content: center; justify-items: center; gap: .3rem; text-decoration: none; color: var(--primary); font-weight: 700; font-size: .8rem;
  border: 2px dashed var(--line-2); background: var(--surface-2); cursor: pointer; }
.ph-thumb.is-add .ic { width: 22px; height: 22px; }
.ph:not(:has(+ .ph-strip)) { border-radius: var(--r-xl); }

.secnav { position: sticky; top: var(--appbar-h); z-index: 30; display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; margin: 18px 0 8px; padding: 6px;
  border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--sh-1); }
.secnav::-webkit-scrollbar { display: none; }
.secnav a { flex: none; padding: .55rem 1rem; border-radius: 11px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .88rem; }
.secnav a:hover { color: var(--ink); background: var(--surface-3); }
.secnav a[aria-current="true"] { background: var(--primary-soft); color: var(--primary); }

.pd { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.pd-main { min-width: 0; }
.pd-sec { scroll-margin-top: calc(var(--appbar-h) + 80px); padding: 26px 0 6px; }
.pd-sec + .pd-sec { border-top: 1px solid var(--line); }
.pd-sec h2 { margin: 0 0 .9rem; font-size: clamp(1.45rem, 1.25rem + .6vw, 1.8rem); }
.pd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pd-head h2 { margin-bottom: .9rem; }
.pd-text { font-size: 1rem; line-height: 1.7; max-width: 70ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 1.3rem 0 0; }
.fact { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.fact-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--c, var(--primary)); background: color-mix(in srgb, var(--c, var(--primary)) 12%, var(--surface)); }
.fact-ic .ic { width: 21px; height: 21px; }
.fact small { display: block; font-size: .74rem; color: var(--ink-3); font-weight: 650; }
.fact b { display: block; font-size: .9rem; line-height: 1.3; font-weight: 700; }
.srv-box { margin-top: 1.2rem; padding: 1.1rem 1.2rem 1.2rem; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.srv-box h3 { margin: 0 0 .9rem; font-size: 1.1rem; }
.srv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.srv li { display: grid; justify-items: center; gap: .45rem; padding: .85rem .5rem .75rem; border-radius: 14px; background: var(--surface); text-align: center; }
.srv span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); }
.srv span .ic { width: 22px; height: 22px; }
.srv b { font-size: .8rem; font-weight: 700; line-height: 1.25; }
.pd-contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem 1.4rem; margin: 1.2rem 0 0; }
.pd-contact div { min-width: 0; }
.pd-contact dt { display: flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--ink-3); font-weight: 700; }
.pd-contact dt .ic { width: 14px; height: 14px; }
.pd-contact dd { margin: .15rem 0 0; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.pd-status { margin-top: 1.2rem; }
.pd-status .panel-title { flex-wrap: wrap; }
.pd-empty { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--line-2); color: var(--ink-2); }
.pd-empty p { margin: 0; }
.pd-empty .ic { color: var(--ink-3); }
.hscroll-4 { grid-auto-columns: calc((100% - 3rem) / 4); }

.pd-side { position: sticky; top: calc(var(--appbar-h) + 82px); display: grid; gap: 14px; padding-top: 26px; scroll-margin-top: calc(var(--appbar-h) + 80px); }
.pd-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-1); padding: 1.1rem 1.2rem 1.2rem; }
.pd-card-h { margin: 0 0 .8rem; font-size: 1.25rem; }
.pd-map { position: relative; padding: 0; overflow: hidden; }
.pd-map .map { height: 230px; border-radius: 0; }
.pd-map-btn { position: absolute; right: 12px; bottom: 12px; z-index: 500; box-shadow: var(--sh-2); }
.dir-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: .9rem; }
.dir-mode { display: grid; justify-items: center; gap: .25rem; padding: .6rem .2rem .5rem; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2);
  font-size: .72rem; font-weight: 700; transition: border-color .15s, background .15s, color .15s; }
.dir-mode .ic { width: 20px; height: 20px; color: var(--primary); }
.dir-mode:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.pd-how { display: flex; gap: .45rem; align-items: flex-start; margin: 0 0 .8rem; }
.pd-how .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ink-3); }
.pd-how p { margin: 0 0 .4rem; }
div.pd-how { display: block; }
.pd-do { padding: .5rem; display: grid; gap: 2px; }
.pd-do-btn { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .65rem .7rem; border: 0; border-radius: 14px; background: none; color: var(--ink); text-align: left;
  text-decoration: none; cursor: pointer; font: inherit; }
.pd-do-btn:hover { background: var(--surface-2); color: var(--ink); }
.pd-do-btn:disabled { cursor: default; opacity: 1; }
.pd-do-btn .ic-wrap { width: 40px; height: 40px; border-radius: 12px; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.pd-do-btn b { display: block; font-size: .9rem; }
.pd-do-btn small { display: block; color: var(--ink-3); font-size: .78rem; line-height: 1.3; }
.pd-addplan { margin: 0; }
.pd-addplan-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 6px; padding: 0 .7rem .6rem 3.75rem; }
.pd-addplan-row select { min-height: 38px; font-size: .84rem; padding-top: .3rem; padding-bottom: .3rem; }
.pd-addplan-row .btn { min-height: 38px; width: 38px; padding: 0; }
.pd-report { padding: 0 .4rem; }

.pd-near { border-top: 1px solid var(--line); margin-top: 1.4rem; }
.hscroll-near { grid-auto-columns: minmax(270px, 1fr); }
.near-card { display: flex; align-items: center; gap: .8rem; padding: 8px 12px 8px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1); text-decoration: none; color: var(--ink); min-width: 0; }
.near-card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); color: var(--ink); }
.near-img { width: 84px; height: 72px; border-radius: 12px; overflow: hidden; flex: none; background: var(--surface-3); }
.near-img img { width: 100%; height: 100%; object-fit: cover; }
.near-body { display: grid; gap: .15rem; min-width: 0; flex: 1; }
.near-body b { font-size: .92rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-body small { display: inline-flex; align-items: center; gap: .25rem; color: var(--ink-3); font-size: .76rem; font-weight: 600; }
.near-body small .ic { width: 13px; height: 13px; }
.near-card > .ic { color: var(--ink-3); width: 18px; height: 18px; flex: none; }

.pd-band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 2.4rem; padding: 2rem clamp(1.2rem, 3vw, 2.6rem);
  border-radius: var(--r-xl); text-decoration: none; color: #fff; background: var(--navy); }
.pd-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(1.1); }
.pd-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 22, 40, .88), rgba(6, 22, 40, .45)); }
.pd-band > span:first-of-type { flex: 1; min-width: 220px; }
.pd-band b { display: block; font-family: var(--font-serif); font-size: clamp(1.4rem, 1.2rem + .8vw, 2rem); font-weight: 600; line-height: 1.1; }
.pd-band small { display: block; margin-top: .3rem; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.pd-band:hover { color: #fff; }

.xc-exp .xc-book { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .75rem; border-radius: 999px; background: var(--primary); color: var(--primary-ink);
  font-size: .78rem; font-weight: 750; white-space: nowrap; }
.xc-exp .xc-book .ic { width: 14px; height: 14px; }
.xc-badge .ic { width: 12px; height: 12px; margin-right: .2rem; vertical-align: -2px; }

@media (max-width: 1180px) {
  .pd { grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
  .hscroll-4 { grid-auto-columns: calc((100% - 2rem) / 3); }
}
@media (max-width: 960px) {
  .pd { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pd-main { display: contents; }
  .pd-main > .pd-sec { order: 3; }
  .pd-main > .pd-sec:first-child { order: 1; }
  .pd-side { order: 2; position: static; padding-top: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .pd-side + * { border-top: 0; }
  .ph-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ph-strip > :nth-child(n+5):not(.is-more):not(.is-add) { display: none; }
}
@media (max-width: 760px) {
  .ph { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; min-height: 380px; padding: 14px 16px 24px; }
  .page > .ph:first-child { margin-top: -26px; }
  .ph-back, .ph-acts span { display: none; }
  .ph-top .crumbs { display: none; }
  .ph-acts .btn-glass { width: 40px; padding: 0; justify-content: center; }
  .ph-txt { margin-top: 1.5rem; }
  .ph-credit { display: none; }
  .ph-strip { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; border-left: 0; border-right: 0; display: flex; overflow-x: auto; scrollbar-width: none; padding: 10px 16px; }
  .ph-strip::-webkit-scrollbar { display: none; }
  .ph-thumb { flex: none; width: 112px; }
  .ph-strip > * { display: block !important; }
  .secnav { top: var(--appbar-h); margin: 12px calc(-1 * var(--gutter)) 4px; border-radius: 0; border-left: 0; border-right: 0; }
  .hscroll-4 { grid-auto-columns: 74%; }
  .hscroll-near { grid-auto-columns: 84%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: .7rem; gap: .6rem; }
  .fact-ic { width: 36px; height: 36px; }
  .srv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-band { border-radius: 22px; }
}
html { scroll-behavior: smooth; }

/* ---------- Registro en pasos ---------- */
.rg-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); min-height: 420px; padding: clamp(2rem, 5vw, 4rem) clamp(1.4rem, 4vw, 3.6rem) 120px;
  color: #fff; background: var(--navy); }
.rg-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rg-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 22, 40, .84) 0%, rgba(6, 22, 40, .5) 50%, rgba(6, 22, 40, .12) 100%); }
.rg-hero-in { max-width: 620px; }
.rg-hero h1 { color: #fff; margin: 0; font-size: clamp(2.4rem, 1.5rem + 3vw, 4.2rem); line-height: .98; letter-spacing: -.02em; }
.rg-claim { margin: .7rem 0 0; font-family: var(--font-serif); font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); color: var(--gold-2); }
.rg-lead { margin: .8rem 0 0; color: rgba(255, 255, 255, .88); max-width: 48ch; }
.rg-perks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.rg-perks li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .86rem; }
.rg-perks span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); }
.rg-perks .ic { width: 15px; height: 15px; }
.rg-hero-sm { min-height: 200px; padding: 0; }

.rg-card { position: relative; z-index: 2; margin: -92px auto 0; max-width: 1120px; padding: clamp(1.2rem, 3vw, 2.2rem); border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--sh-3); }
.stepper { list-style: none; margin: 0 auto 1.6rem; padding: 0; display: flex; justify-content: center; gap: .4rem; max-width: 760px; counter-reset: none; }
.stepper li { flex: 1; display: flex; align-items: center; gap: .55rem; color: var(--ink-3); font-size: .84rem; font-weight: 700; min-width: 0; }
.stepper li::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: var(--line); margin: 0 .2rem; min-width: 12px; }
.stepper li:last-child { flex: none; }
.stepper li:last-child::after { display: none; }
.stepper span { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); font-weight: 800; font-size: .86rem; }
.stepper span .ic { width: 16px; height: 16px; }
.stepper b { font-weight: 700; white-space: nowrap; }
.stepper li[aria-current] { color: var(--primary); }
.stepper li[aria-current] span { background: var(--primary); color: var(--primary-ink); box-shadow: 0 0 0 5px var(--primary-soft); }
.stepper li.is-done { color: var(--ink-2); }
.stepper li.is-done span { background: var(--ok); color: #fff; }
.stepper li.is-done::after { background: var(--ok); }

.rg-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .rg-step:not(.is-on) { display: none; }
.rg-step + .rg-step { margin-top: 2rem; }
.js .rg-step + .rg-step { margin-top: 0; }
.rg-title { display: grid; gap: .35rem; text-align: center; width: 100%; margin: 0 0 1.4rem; padding: 0; }
.rg-title span { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; color: var(--ink); line-height: 1.15; }
.rg-title small { color: var(--ink-2); font-size: .95rem; }
.rg-title:focus { outline: none; }
.rg-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rg-type { position: relative; display: flex; flex-direction: column; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; overflow: hidden;
  transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.rg-type:hover { border-color: var(--line-2); transform: translateY(-2px); }
.rg-type input { position: absolute; opacity: 0; pointer-events: none; }
.rg-type:has(input:checked) { border-color: var(--sea); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sea) 18%, transparent), var(--sh-2); background: color-mix(in srgb, var(--sea) 4%, var(--surface)); }
.rg-type:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--sea) 60%, transparent); outline-offset: 2px; }
.rg-type-img { display: block; aspect-ratio: 16 / 10; margin: 8px 8px 0; border-radius: 14px; overflow: hidden; background: var(--surface-3); }
.rg-type-img img { width: 100%; height: 100%; object-fit: cover; }
.rg-type-ic { position: relative; z-index: 1; width: 48px; height: 48px; margin: -26px 0 0 18px; border-radius: 50%; display: grid; place-items: center; color: var(--c);
  background: var(--surface); border: 3px solid var(--surface); box-shadow: var(--sh-1); }
.rg-type-ic::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, var(--surface)); z-index: -1; }
.rg-type-ic .ic { width: 22px; height: 22px; }
.rg-type-body { display: grid; gap: .45rem; padding: .5rem 1.1rem 1.2rem; }
.rg-type-body b { font-size: 1.08rem; }
.rg-type-txt { color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.rg-type ul { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .3rem; }
.rg-type li { display: flex; gap: .4rem; font-size: .8rem; color: var(--ink-2); line-height: 1.35; }
.rg-type li .ic { width: 14px; height: 14px; color: var(--ok); flex: none; margin-top: 2px; }
.rg-radio { position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.rg-type:has(input:checked) .rg-radio { border: 7px solid var(--sea); }
.rg-actions { display: grid; justify-items: center; gap: .9rem; margin-top: 1.6rem; }
.rg-next { min-width: min(100%, 340px); justify-content: center; }
.rg-actions .or { width: min(100%, 420px); margin: 0; }
.rg-social { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.rg-social .btn { gap: .6rem; }
.rg-social svg { width: 18px; height: 18px; }
.rg-legal, .rg-actions .auth-foot { text-align: center; margin: 0; }
.rg-narrow { max-width: 480px; margin: 0 auto; }
.rg-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 760px; margin: 1.6rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.rg-ints { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 980px; margin: 0 auto; }
.rg-int { position: relative; display: grid; justify-items: center; align-content: start; gap: .45rem; padding: 1.3rem .9rem 1.1rem; border-radius: 20px; border: 2px solid var(--line);
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.rg-int input { position: absolute; opacity: 0; pointer-events: none; }
.rg-int-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.rg-int-ic .ic { width: 26px; height: 26px; }
.rg-int b { font-size: .98rem; }
.rg-int small { font-size: .78rem; color: var(--ink-3); line-height: 1.4; }
.rg-check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); color: transparent; }
.rg-check .ic { width: 14px; height: 14px; }
.rg-int:hover { border-color: var(--line-2); }
.rg-int:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.rg-int:has(input:checked) .rg-check { background: var(--c); border-color: var(--c); color: #fff; }
.rg-int:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--sea) 60%, transparent); outline-offset: 2px; }

.rg-more { max-width: 1120px; margin: 3rem auto 0; text-align: center; }
.rg-more h2 { margin: 0 0 1.4rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.rg-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.rg-feats li { display: grid; justify-items: center; gap: .35rem; }
.rg-feats span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.rg-feats .ic { width: 24px; height: 24px; }
.rg-feats b { font-size: .98rem; }
.rg-feats small { color: var(--ink-3); font-size: .82rem; max-width: 22ch; }
.rg-stats { margin-top: 2rem; padding: 1.3rem 1.6rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; text-align: left; }
.rg-stats p { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; flex: 1; min-width: 220px; }
.rg-stats ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; flex-wrap: wrap; }
.rg-stats b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.rg-stats span { font-size: .8rem; color: var(--ink-3); font-weight: 600; }

.rg-done { max-width: 880px; }
.rg-done-head { text-align: center; display: grid; justify-items: center; gap: .5rem; margin-bottom: 1.6rem; }
.rg-done-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); animation: pop .5s var(--ease); }
.rg-done-mark .ic { width: 38px; height: 38px; }
.rg-done-head h1 { margin: .3rem 0 0; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); }
.rg-done-head p { margin: 0; color: var(--ink-2); max-width: 56ch; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.rg-continue { display: flex; width: fit-content; margin: 0 auto 1.4rem; }
.rg-next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rg-next-card { position: relative; display: grid; gap: .3rem; padding: 1.1rem 1.1rem 1.2rem; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.rg-next-card:hover { color: var(--ink); border-color: var(--c); box-shadow: var(--sh-2); transform: translateY(-2px); }
.rg-next-card.is-main { background: color-mix(in srgb, var(--c) 7%, var(--surface)); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.rg-next-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); margin-bottom: .3rem; }
.rg-next-ic .ic { width: 22px; height: 22px; }
.rg-next-card b { font-size: 1rem; }
.rg-next-card small { color: var(--ink-2); font-size: .84rem; line-height: 1.45; }
.rg-next-go { position: absolute; top: 1.1rem; right: 1.1rem; color: var(--ink-3); }
.rg-next-card:hover .rg-next-go { color: var(--c); }
.rg-sub { font-size: 1.2rem; margin: 2rem 0 .8rem; }
.rg-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rg-checklist li { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.rg-checklist li.rg-cl-ints { align-items: flex-start; }
.rg-checklist form { margin: 0; }
.rg-cl-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--ink-3); border: 1px solid var(--line); }
.rg-cl-ic .ic { width: 18px; height: 18px; }
.rg-checklist li.is-done .rg-cl-ic { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.rg-checklist b { display: block; font-size: .92rem; }
.rg-checklist small { display: block; color: var(--ink-3); font-size: .8rem; }
.rg-checklist li.is-done > .btn, .rg-checklist li.is-done > form { display: none; }
.rg-done-foot { text-align: center; margin: 1.6rem 0 0; }
.rg-done-foot a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; text-decoration: none; }

@media (max-width: 1060px) {
  .rg-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-ints { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rg-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.6rem; }
}
@media (max-width: 760px) {
  .rg-hero { margin: -26px calc(-1 * var(--gutter)) 0; border-radius: 0; min-height: 0; padding: 2rem 16px 96px; }
  .rg-hero::before { background: linear-gradient(180deg, rgba(6, 22, 40, .3), rgba(6, 22, 40, .85)); }
  .rg-hero-sm { min-height: 150px; padding: 0; }
  .rg-perks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
  .rg-perks li { flex-direction: column; text-align: center; font-size: .66rem; gap: .3rem; line-height: 1.2; }
  .rg-perks span { width: 38px; height: 38px; }
  .rg-card { margin: -64px -8px 0; border-radius: 24px; padding: 1.2rem 1rem 1.4rem; }
  .stepper { margin-bottom: 1.2rem; }
  .stepper li { flex-direction: column; gap: .25rem; font-size: .66rem; position: relative; }
  .stepper li::after { position: absolute; top: 16px; left: calc(50% + 22px); right: calc(-50% + 22px); margin: 0; }
  .stepper li:last-child { flex: 1; }
  .rg-types { grid-template-columns: 1fr; gap: 10px; }
  .rg-type { flex-direction: row; align-items: center; padding: 8px 44px 8px 8px; }
  .rg-type-img { width: 76px; aspect-ratio: 1; margin: 0; flex: none; border-radius: 12px; }
  .rg-type-ic { display: none; }
  .rg-type-body { padding: 0 0 0 .8rem; gap: .2rem; }
  .rg-type-body b { font-size: .98rem; }
  .rg-type-txt { font-size: .8rem; }
  .rg-type ul { display: none; }
  .rg-radio { top: 50%; right: 14px; transform: translateY(-50%); border-color: var(--line-2); box-shadow: none; }
  .rg-social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .rg-social .btn span { display: none; }
  .rg-ints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rg-int { padding: 1rem .6rem .9rem; }
  .rg-int small { display: none; }
  .rg-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-next-grid { grid-template-columns: 1fr; }
  .rg-checklist li { flex-wrap: wrap; }
  .rg-stats { flex-direction: column; align-items: flex-start; }
}
.rg-feats li { align-content: start; }
.rg-hero .ph-credit { top: 12px; bottom: auto; }
@media (max-width: 1440px) {
  .tn.is-guest .tn-search { width: 40px; padding: 0; justify-content: center; background: transparent; }
  .tn.is-guest .tn-search input { position: absolute; opacity: 0; width: 1px; pointer-events: none; }
  .tn.is-guest .tn-search:focus-within { width: 240px; padding: 0 .9rem; background: var(--surface); justify-content: flex-start; }
  .tn.is-guest .tn-search:focus-within input { position: static; opacity: 1; width: 100%; pointer-events: auto; }
}
@media (max-width: 1300px) { .tn.is-guest .tn-ai span { display: none; } .tn.is-guest .tn-ai { width: 40px; padding: 0; justify-content: center; } }

/* ---------- Notificaciones ---------- */
.nt { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.nt-head { align-items: center; }
.nt-head .btn { display: none; }
.nt-filter { margin-bottom: 1rem; }
.chips .chip small { margin-left: .35rem; font-size: .72rem; font-weight: 800; color: var(--ink-3); }
.chips .chip small.is-new { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--sea); color: #fff; }
.chips .chip .ic { width: 15px; height: 15px; }
.nt-day { font-family: var(--font-sans); font-size: .8rem; font-weight: 800; color: var(--ink-3); margin: 1.4rem 0 .5rem; letter-spacing: 0; }
.nt-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-1); overflow: hidden; }
.nt-list li + li { border-top: 1px solid var(--line); }
.nt-list a { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; color: var(--ink); text-decoration: none; }
.nt-list a:hover { background: var(--surface-2); color: var(--ink); }
.nt-list li.is-new a { background: color-mix(in srgb, var(--sea) 5%, var(--surface)); }
.nt-ic { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.nt-ic .ic { width: 20px; height: 20px; }
.nt-ic.sm { width: 34px; height: 34px; }
.nt-ic.sm .ic { width: 17px; height: 17px; }
.nt-txt { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.nt-txt b { font-weight: 600; font-size: .92rem; line-height: 1.4; }
.nt-list li.is-new .nt-txt b { font-weight: 800; }
.nt-txt small { color: var(--ink-3); font-size: .76rem; }
.nt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sea); flex: none; }
.nt-chev { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.nt-side { position: sticky; top: calc(var(--appbar-h) + 20px); scroll-margin-top: calc(var(--appbar-h) + 20px); }
.nt-prefs h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.nt-global { display: grid; gap: .2rem; padding: .6rem 0 .8rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.nt-table { width: 100%; border-collapse: collapse; margin: 0 0 .6rem; }
.nt-table thead th { font-size: .72rem; font-weight: 800; color: var(--ink-3); text-align: center; padding: .4rem .2rem; }
.nt-table th, .nt-table td { background: none; border: 0; }
.nt-table tbody th { text-align: left; font-weight: 600; padding: .55rem .4rem .55rem 0; }
.nt-rh { display: flex; align-items: center; gap: .6rem; }
.nt-table tbody th b { display: block; font-size: .86rem; }
.nt-table tbody th small { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 500; line-height: 1.3; }
.nt-table td { text-align: center; padding: .3rem .2rem; width: 52px; }
.nt-table tbody tr + tr { border-top: 1px solid var(--line); }
.nt-check { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line-2); cursor: pointer; color: transparent; }
.nt-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nt-check .ic { width: 16px; height: 16px; }
.nt-check:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
.nt-check:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.nt-check:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--sea) 55%, transparent); outline-offset: 2px; }
@media (max-width: 1060px) {
  .nt { grid-template-columns: minmax(0, 1fr); }
  .nt-head .btn { display: inline-flex; }
  .nt-side { position: static; }
}
@media (max-width: 760px) {
  .nt-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 1rem; padding: 0 var(--gutter); }
  .nt-filter .chip { flex: none; }
  .nt-list { border-radius: 16px; }
  .nt-list a { padding: .75rem .8rem; gap: .7rem; }
  .nt-chev { display: none; }
}

/* ---------- Perfil ---------- */
.pf-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 340px; border-radius: var(--r-xl); display: flex; align-items: flex-end;
  padding: 2.4rem clamp(1.2rem, 3.4vw, 3rem) 2.2rem; color: #fff; background: var(--navy); }
.pf-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pf-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 22, 40, .86) 0%, rgba(6, 22, 40, .55) 50%, rgba(6, 22, 40, .15) 100%); }
.pf-cover-edit { position: absolute; top: 16px; right: 16px; margin: 0; }
.pf-cover-edit label { cursor: pointer; }
.pf-hero-in { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); max-width: 860px; }
.pf-avatar { position: relative; flex: none; }
.pf-avatar img { width: clamp(110px, 12vw, 150px); height: clamp(110px, 12vw, 150px); border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: var(--sh-3); background: var(--surface-3); }
.pf-avatar form { position: absolute; right: 4px; bottom: 4px; margin: 0; }
.pf-avatar .icon-btn { width: 38px; height: 38px; cursor: pointer; box-shadow: var(--sh-2); }
.pf-who h1 { color: #fff; margin: 0; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.05; display: flex; align-items: center; gap: .5rem; }
.pf-verified { color: #6CC3FF; display: inline-flex; }
.pf-verified .ic { width: 26px; height: 26px; }
.pf-level { margin: .35rem 0 0; font-size: 1.05rem; color: rgba(255, 255, 255, .92); font-weight: 600; }
.pf-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: .5rem 0 0; font-size: .88rem; color: rgba(255, 255, 255, .82); }
.pf-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.pf-meta b { color: #fff; }
.pf-meta .ic { width: 15px; height: 15px; }
.pf-bio { margin: .8rem 0 0; color: rgba(255, 255, 255, .9); max-width: 56ch; line-height: 1.55; }
.pf-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.pf-btns form { margin: 0; }
.pf-stats { list-style: none; position: relative; z-index: 2; margin: -26px clamp(.6rem, 2vw, 1.6rem) 0; padding: .9rem 1rem; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-2); }
.pf-stats li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .6rem; align-items: center; padding: .2rem .4rem; min-width: 0; }
.pf-stats li + li { border-left: 1px solid var(--line); }
.pf-stats span { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.pf-stats span .ic { width: 19px; height: 19px; }
.pf-stats b { font-size: 1.3rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pf-stats small { font-size: .74rem; color: var(--ink-3); font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-private-note { margin-top: 1.2rem; }
.pf-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 22px; margin-top: 24px; align-items: start; }
.pf-col { display: grid; gap: 16px; min-width: 0; }
.pf-card { margin: 0; }
.pf-card h2, .pf-sec h2 { margin: 0 0 .8rem; font-size: 1.25rem; }
.pf-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.pf-lvl { display: flex; align-items: center; gap: 1rem; }
.pf-lvl-n { width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: var(--navy);
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 6px 16px color-mix(in srgb, var(--gold) 40%, transparent); }
.pf-lvl b { display: block; margin-bottom: .4rem; }
.pf-lvl .pbar { height: 8px; }
.pf-lvl small { display: block; margin-top: .4rem; color: var(--ink-3); font-size: .78rem; }
.pf-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem .4rem; }
.pf-badges span { display: grid; justify-items: center; gap: .3rem; text-align: center; }
.pf-badges i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, var(--surface)); }
.pf-badges i .ic { width: 22px; height: 22px; }
.pf-badges small { font-size: .7rem; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.pf-stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pf-stamps img { width: 100%; height: auto; filter: drop-shadow(0 2px 4px rgba(14, 42, 71, .12)); transform: rotate(-2deg); }
.pf-stamps img:nth-child(even) { transform: rotate(2deg); }
.pf-sec { min-width: 0; }
.pf-trips { grid-auto-columns: minmax(170px, 1fr); }
.pf-trip { display: grid; gap: .2rem; text-decoration: none; color: var(--ink); min-width: 0; }
.pf-trip-img { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--surface-3); margin-bottom: .35rem; }
.pf-trip-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pf-trip:hover img { transform: scale(1.05); }
.pf-trip b { font-size: .95rem; line-height: 1.25; }
.pf-trip small { color: var(--ink-3); font-size: .78rem; }
.pf-faces { display: flex; margin-top: .3rem; }
.pf-faces img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); margin-left: -6px; }
.pf-faces img:first-child { margin-left: 0; }
.pf-map { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.pf-map .map { height: 320px; border-radius: 0; }
.pf-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pf-photos button { aspect-ratio: 1; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--surface-3); cursor: zoom-in; }
.pf-photos img { width: 100%; height: 100%; object-fit: cover; }
.pf-private { display: grid; justify-items: center; text-align: center; gap: .5rem; padding: 2.4rem 1.4rem; }
.pf-private h2 { margin: .3rem 0 0; }
.pf-private p { margin: 0; max-width: 44ch; }
.pf-dl { display: grid; gap: .65rem; margin: 0; }
.pf-dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.pf-dl dt { display: flex; align-items: center; gap: .45rem; color: var(--ink-3); font-weight: 600; }
.pf-dl dt .ic { width: 16px; height: 16px; }
.pf-dl dd { margin: 0; font-weight: 700; text-align: right; }
.pf-ints { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pf-ints span { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  color: color-mix(in srgb, var(--c) 85%, #000); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.pf-ints .ic { width: 14px; height: 14px; }
.pf-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pf-recent a { display: flex; align-items: center; gap: .7rem; padding: .4rem; margin: 0 -.4rem; border-radius: 12px; text-decoration: none; color: var(--ink); }
.pf-recent a:hover { background: var(--surface-2); color: var(--ink); }
.pf-recent img, .pf-recent-ic { width: 52px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-3); }
.pf-recent-ic { display: grid; place-items: center; color: var(--ink-3); }
.pf-recent b { display: block; font-size: .84rem; font-weight: 650; line-height: 1.3; }
.pf-recent small { display: block; color: var(--ink-3); font-size: .74rem; }
@media (max-width: 1240px) {
  .pf-grid { grid-template-columns: 280px minmax(0, 1fr); }
  .pf-grid > .pf-col:last-child { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .pf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: .8rem; }
  .pf-stats li:nth-child(5) { border-left: 0; }
}
@media (max-width: 860px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-grid > .pf-col:first-child { order: 2; }
  .pf-grid > .pf-wide { order: 1; }
  .pf-grid > .pf-col:last-child { order: 3; }
}
@media (max-width: 760px) {
  .pf-hero { margin: -26px calc(-1 * var(--gutter)) 0; border-radius: 0; min-height: 0; padding: 5.5rem 16px 3rem; }
  .pf-cover-edit { top: auto; bottom: 34px; right: 12px; }
  .pf-cover-edit span { display: none; }
  .pf-hero::before { background: linear-gradient(180deg, rgba(6, 22, 40, .25), rgba(6, 22, 40, .9)); }
  .pf-hero-in { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .pf-avatar img { width: 104px; height: 104px; }
  .pf-btns .btn-glass span { display: none; }
  .pf-stats { margin: -22px 0 0; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .8rem .4rem; }
  .pf-stats li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: .1rem; }
  .pf-stats li + li { border-left: 0; }
  .pf-stats span { grid-row: auto; width: 34px; height: 34px; margin-bottom: .2rem; }
  .pf-stats b { font-size: 1.05rem; }
  .pf-stats small { font-size: .66rem; white-space: normal; }
  .pf-stats li:nth-child(n+5) { display: none; }
  .pf-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-map .map { height: 260px; }
}

/* ---------- Panel Business ---------- */
.bz-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.bz-side { position: sticky; top: calc(var(--appbar-h) + 18px); display: grid; gap: .9rem; padding: 1rem; border-radius: 22px; background: var(--navy); color: #fff; box-shadow: var(--sh-2); }
.bz-co { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; }
.bz-co img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .5); flex: none; background: rgba(255, 255, 255, .1); }
.bz-co b { display: block; font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.15; }
.bz-co small { display: block; color: rgba(255, 255, 255, .7); font-size: .78rem; }
.bz-co:hover { color: #fff; }
.bz-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.bz-side .biz-level { background: rgba(255, 255, 255, .12); color: #fff; }
.bz-side .biz-level.is-premium { background: linear-gradient(120deg, #FBE7B0, #F2C14E); color: #5A3B00; }
.bz-side .tag { background: rgba(255, 255, 255, .12); color: #fff; }
.bz-nav { display: grid; gap: 2px; }
.bz-nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 12px; color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 650; font-size: .9rem; }
.bz-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.bz-nav a[aria-current="page"] { background: var(--sea); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.bz-nav .ic { width: 18px; height: 18px; flex: none; }
.bz-nav span { flex: 1; }
.bz-nav small { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--c-evt); color: #fff; font-size: .72rem; font-weight: 800; }
.bz-public { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.bz-public:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.bz-main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.bz-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  min-height: 170px; padding: 1.6rem 1.8rem; border-radius: 24px; color: #fff; background: var(--navy); }
.bz-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bz-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 22, 40, .9), rgba(6, 22, 40, .45)); }
.bz-hero p { margin: 0; color: rgba(255, 255, 255, .8); font-weight: 600; }
.bz-hero h1 { color: #fff; margin: .1rem 0 .2rem; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); }
.bz-hero span { color: rgba(255, 255, 255, .86); font-size: .92rem; }
.bz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bz-head h1 { margin: 0; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.bz-head p { margin: .3rem 0 0; color: var(--ink-2); max-width: 64ch; }
.bz-head .crumbs { margin-bottom: .3rem; }
.bz-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bz-kpi { position: relative; display: grid; gap: .1rem; padding: 1rem 1.1rem 1.05rem 4.3rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); min-width: 0; }
.bz-kpi-ic { position: absolute; left: 1rem; top: 1rem; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.bz-kpi-ic .ic { width: 20px; height: 20px; }
.bz-kpi small { color: var(--ink-2); font-weight: 700; font-size: .8rem; }
.bz-kpi b { font-size: 1.65rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-kpi em { font-style: normal; color: var(--ink-3); font-size: .76rem; display: inline-flex; align-items: center; gap: .2rem; }
.bz-kpi em .ic { width: 13px; height: 13px; }
.bz-kpi em.up { color: var(--ok); }
.bz-kpi em.down { color: var(--danger); }
.bz-row { display: grid; gap: 16px; align-items: start; }
.bz-row-2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.bz-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bz-col { display: grid; gap: 16px; min-width: 0; align-content: start; }
.bz-card { margin: 0; min-width: 0; }
.bz-card h2, .bz-sec h2 { margin: 0 0 .8rem; font-size: 1.2rem; }
.bz-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.bz-card-h h2 { margin-bottom: .8rem; }
.bz-bars { height: 150px; }
.bz-donut-wrap { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.bz-donut { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.bz-donut span { width: 96px; height: 96px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; text-align: center; }
.bz-donut b { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.bz-donut small { font-size: .72rem; color: var(--ink-3); font-weight: 600; }
.bz-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; flex: 1; min-width: 150px; }
.bz-legend li { display: flex; align-items: center; gap: .5rem; font-size: .84rem; }
.bz-legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.bz-legend span { flex: 1; color: var(--ink-2); }
.bz-top { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.bz-top li { display: flex; align-items: center; gap: .7rem; }
.bz-rank { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .74rem; font-weight: 800; border: 1.5px solid var(--line-2); color: var(--ink-2); }
.bz-top img { width: 52px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; }
.bz-top b, .bz-next b { display: block; font-size: .86rem; line-height: 1.25; }
.bz-top small, .bz-next small { display: block; color: var(--ink-3); font-size: .74rem; }
.bz-next { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.bz-next li { display: flex; align-items: center; gap: .7rem; padding: .5rem; border-radius: 12px; background: var(--surface-2); }
.bz-time { width: 56px; flex: none; display: grid; justify-items: center; padding: .35rem 0; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.bz-time b { font-size: .9rem; font-weight: 800; }
.bz-time small { font-size: .66rem; color: var(--primary); text-transform: none; }
.bz-empty { display: grid; justify-items: center; gap: .5rem; padding: 1.4rem 1rem; text-align: center; color: var(--ink-2); border-radius: 16px; border: 1px dashed var(--line-2); background: var(--surface-2); }
.bz-empty > .ic { width: 26px; height: 26px; color: var(--ink-3); }
.bz-empty p { margin: 0; font-size: .9rem; max-width: 40ch; }
.bz-revs { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.bz-revs li { display: flex; gap: .8rem; align-items: flex-start; }
.bz-revs p { margin: .3rem 0 0; font-size: .86rem; color: var(--ink-2); }
.bz-revs .btn, .bz-revs .tag { flex: none; }
.bz-pct { font-size: 1.3rem; color: var(--primary); }
.bz-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.bz-checks li { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--ink-2); }
.bz-checks li .ic { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.bz-checks li.is-ok { color: var(--ink); }
.bz-checks li.is-ok .ic { color: var(--ok); }
.bz-checks li span { flex: 1; }
.bz-checks a { font-size: .8rem; font-weight: 700; text-decoration: none; }
.bz-upsell { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; padding: .9rem 1rem; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, var(--navy), var(--primary)); }
.bz-upsell:hover { color: #fff; }
.bz-upsell b { display: block; font-size: .92rem; }
.bz-upsell small { display: block; color: rgba(255, 255, 255, .8); font-size: .78rem; }
.bz-upsell span { flex: 1; }
.bz-upsell > .ic:first-child { width: 26px; height: 26px; color: var(--gold-2); }

.bz-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.bz-cal-head b { text-transform: capitalize; }
.bz-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.bz-cal-wd { font-size: .68rem; font-weight: 800; color: var(--ink-3); padding: .2rem 0; text-transform: capitalize; }
.bz-cal-d { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: .82rem; font-weight: 650; }
.bz-cal-d:hover { background: var(--surface-3); color: var(--ink); }
.bz-cal-d.has { color: var(--ink); font-weight: 800; }
.bz-cal-d.is-today { box-shadow: inset 0 0 0 2px var(--sea); }
.bz-cal-d.is-on { background: var(--primary); color: #fff; }
.bz-cal-d i { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.bz-cal-d em, .bz-cal-key em { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.bz-cal-d em.c, .bz-cal-key em.c { background: var(--ok); }
.bz-cal-d em.p, .bz-cal-key em.p { background: var(--warn); }
.bz-cal-d.is-on em { box-shadow: 0 0 0 1px #fff; }
.bz-cal-key { display: flex; gap: 1rem; margin: .6rem 0 0; font-size: .74rem; color: var(--ink-3); }
.bz-cal-key span { display: inline-flex; align-items: center; gap: .35rem; }

.bz-book { grid-template-columns: 340px minmax(0, 1fr); }
.bz-bookings { display: grid; gap: 10px; }
.bz-bk { display: flex; gap: .9rem; padding: .9rem 1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.bz-bk.is-pendiente { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.bz-bk.is-rechazada, .bz-bk.is-cancelada { opacity: .65; }
.bz-bk-top { display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.bz-bk-who { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .35rem 0 0; font-size: .84rem; color: var(--ink-2); }
.bz-bk-who .avatar { width: 24px; height: 24px; }
.bz-bk-who .ic { width: 14px; height: 14px; }
.bz-bk-msg { margin: .45rem 0 0; font-size: .86rem; color: var(--ink-2); font-style: italic; }
.bz-bk-ans { display: flex; gap: .35rem; margin: .45rem 0 0; font-size: .82rem; color: var(--ink-3); }
.bz-bk-ans .ic { width: 14px; height: 14px; margin-top: 2px; }

.bz-limit { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 650; color: var(--ink-2); }
.bz-limit .pbar { flex: 1; max-width: 260px; height: 7px; }
.bz-limit a { margin-left: auto; font-weight: 700; text-decoration: none; }
.bz-xlist { display: grid; gap: 10px; }
.bz-x { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; gap: 1.1rem; align-items: center; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.bz-x.is-off { opacity: .6; }
.bz-x > img { width: 120px; height: 90px; border-radius: 12px; object-fit: cover; }
.bz-x-body { display: grid; gap: .3rem; min-width: 0; }
.bz-x h3 { margin: 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 750; }
.bz-x h3 a { color: var(--ink); text-decoration: none; }
.bz-x-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0; font-size: .8rem; color: var(--ink-3); }
.bz-x-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.bz-x-meta .ic { width: 14px; height: 14px; }
.bz-x-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 1.2rem; margin: 0; text-align: center; }
.bz-x-stats dt { font-size: .7rem; color: var(--ink-3); font-weight: 700; }
.bz-x-stats dd { margin: .1rem 0 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.bz-x-acts { display: flex; align-items: center; gap: .2rem; }
.bz-x-acts form { margin: 0; }
.bz-x-acts .switch { margin-right: .4rem; }
.bz-hello { display: grid; justify-items: center; gap: .6rem; text-align: center; padding: 2.6rem 1.4rem; border-radius: 24px; background: var(--surface); border: 1px dashed var(--line-2); }
.bz-hello h2 { margin: .3rem 0 0; font-size: 1.4rem; }
.bz-hello p { margin: 0 0 .4rem; color: var(--ink-2); max-width: 52ch; }
.bz-hello-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.bz-hello-ic .ic { width: 30px; height: 30px; }
.bz-form { display: grid; gap: 16px; }
.bz-form .panel { margin: 0; }
.bz-form h2 { font-size: 1.2rem; margin: 0 0 1rem; }
.bz-form textarea { min-height: 96px; }
.bz-dur { display: flex; align-items: center; gap: .4rem; }
.bz-dur input { width: 80px; }
.bz-dur span { color: var(--ink-3); font-weight: 700; font-size: .86rem; }
.bz-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .7rem; }
.bz-thumbs span { position: relative; }
.bz-thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.bz-thumbs .icon-btn { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; box-shadow: var(--sh-2); }
.bz-thumbs .icon-btn .ic { width: 14px; height: 14px; }
.bz-savebar { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .8rem 1rem; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.bz-savebar .xp-switch { margin-right: auto; }

.bz-menu { grid-template-columns: minmax(0, 1fr) 360px; }
.bz-sticky { position: sticky; top: calc(var(--appbar-h) + 18px); }
.bz-dishes { list-style: none; margin: 0; padding: 0; display: grid; }
.bz-dishes li { display: flex; align-items: center; gap: .6rem; padding: .65rem 0; }
.bz-dishes li + li { border-top: 1px solid var(--line); }
.bz-dishes li.is-edit { background: var(--primary-soft); margin: 0 -.6rem; padding: .65rem .6rem; border-radius: 12px; }
.bz-dishes b { display: block; font-size: .92rem; }
.bz-dishes small { display: block; color: var(--ink-3); font-size: .8rem; }
.bz-dishes form { margin: 0; }
.dish-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.dish-tags span { display: inline-flex; align-items: center; gap: .2rem; padding: .08rem .45rem; border-radius: 999px; font-size: .68rem; font-weight: 700; background: var(--ok-soft); color: var(--ok); }
.dish-tags .ic { width: 11px; height: 11px; }

.bz-revs-page { grid-template-columns: 300px minmax(0, 1fr); }
.bz-revs-page .rating-summary { position: sticky; top: calc(var(--appbar-h) + 18px); }
.bz-rev-list { display: grid; gap: 12px; }
.bz-rev { margin: 0; scroll-margin-top: calc(var(--appbar-h) + 20px); }
.bz-rev-top { display: flex; gap: .8rem; align-items: center; }
.bz-rev > p { margin: .7rem 0 0; color: var(--ink-2); }
.bz-rev .review-photo { margin-top: .6rem; }
.bz-reply { margin-top: .9rem; padding: .8rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: .5rem; }
.bz-reply.has { background: var(--primary-soft); border-color: transparent; }
.bz-reply label { display: flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.bz-reply label .ic { width: 15px; height: 15px; }
.bz-reply textarea { min-height: 64px; }
.bz-reply .btn { justify-self: start; }

.bz-anchors { margin: 0; }
.bz-redeem { display: flex; gap: 1.1rem; align-items: flex-start; margin: 0; background: linear-gradient(120deg, var(--surface), color-mix(in srgb, var(--c-com) 8%, var(--surface))); scroll-margin-top: calc(var(--appbar-h) + 20px); }
.bz-redeem-ic { width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--c-com); color: #fff; }
.bz-redeem-ic .ic { width: 26px; height: 26px; }
.bz-redeem h2 { margin: 0 0 .2rem; font-size: 1.2rem; }
.bz-redeem-form { display: flex; gap: .5rem; margin-top: .7rem; max-width: 420px; }
.bz-redeem-form input { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-family: ui-monospace, Menlo, monospace; }
.bz-recent { margin-top: .8rem; font-size: .84rem; }
.bz-recent summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.bz-recent ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .3rem; }
.bz-recent li { display: flex; gap: .6rem; align-items: center; }
.bz-recent li span { flex: 1; }
.bz-recent small { color: var(--ink-3); }
.bz-sec { scroll-margin-top: calc(var(--appbar-h) + 20px); }
.bz-add { margin-top: .8rem; }
.bz-add > summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: .4rem; list-style: none; }
.bz-add > summary::-webkit-details-marker { display: none; }
.bz-add[open] > summary { margin-bottom: 1rem; }
.bz-rewards { display: grid; gap: 8px; margin: .6rem 0; }
.bz-reward { display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.bz-reward.is-off { opacity: .6; }
.bz-reward-pts { width: 64px; flex: none; display: grid; justify-items: center; padding: .35rem 0; border-radius: 12px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); font-weight: 800; }
.bz-reward-pts small { font-size: .62rem; }
.bz-reward b { display: block; font-size: .9rem; }
.bz-reward small { color: var(--ink-3); font-size: .76rem; }
.bz-reward form { margin: 0; }
.bz-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.bz-gallery figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-3); }
.bz-gallery img { width: 100%; height: 100%; object-fit: cover; }
.bz-gallery figcaption { position: absolute; left: 6px; bottom: 6px; right: 40px; padding: .1rem .45rem; border-radius: 6px; background: rgba(8, 24, 44, .65); color: #fff; font-size: .68rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-gallery form { position: absolute; top: 6px; right: 6px; margin: 0; }
.bz-gallery .icon-btn { width: 32px; height: 32px; }
.bz-upload { margin: 0; }
.bz-upload label { display: grid; place-content: center; justify-items: center; gap: .3rem; aspect-ratio: 4 / 3; border-radius: 12px; border: 2px dashed var(--line-2); background: var(--surface-2);
  color: var(--primary); font-weight: 700; font-size: .84rem; cursor: pointer; }
.bz-upload label:hover { border-color: var(--primary); }
.bz-dist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.bz-dist li { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); opacity: .55; }
.bz-dist li.is-on { opacity: 1; border-color: color-mix(in srgb, var(--c) 40%, var(--line)); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.bz-dist span { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.bz-dist span .ic { width: 18px; height: 18px; }
.bz-dist b { font-size: .86rem; }
.bz-dist small { font-size: .74rem; color: var(--ink-3); line-height: 1.3; }
.bz-dist.is-public { grid-template-columns: 1fr; }
.bz-team { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.bz-team li { display: flex; align-items: center; gap: .7rem; }
.bz-team b { display: block; font-size: .9rem; }
.bz-team small { display: block; color: var(--ink-3); font-size: .78rem; overflow-wrap: anywhere; }
.bz-team form { margin: 0; }
.bz-roles { display: grid; gap: .6rem; margin: 0 0 1rem; padding: .8rem; border-radius: 12px; background: var(--surface-2); }
.bz-roles dt { font-weight: 800; font-size: .86rem; }
.bz-roles dd { margin: .1rem 0 0; color: var(--ink-2); font-size: .82rem; }
.bz-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.bz-plan { position: relative; margin: 0; display: flex; flex-direction: column; }
.bz-plan.is-rec { border-color: var(--sea); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 18%, transparent), var(--sh-2); }
.bz-plan.is-cur { background: var(--primary-soft); }
.bz-plan h2 { margin: 0; font-size: 1.3rem; }
.bz-price { margin: .3rem 0 0; font-size: 1.5rem; font-weight: 800; }
.bz-plan .biz-feat-list { flex: 1; }
.bz-plan-cur { position: absolute; top: 14px; right: 14px; padding: .15rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 800; background: var(--primary); color: var(--primary-ink); }
.adm-dist { margin-top: .4rem; }
.adm-dist summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--primary); }
.adm-dist .toggle-chips { margin-top: .5rem; }

@media (max-width: 1240px) {
  .bz-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bz-row-3 > :last-child { grid-column: 1 / -1; }
  .bz-x { grid-template-columns: 100px minmax(0, 1fr) auto; }
  .bz-x-stats { display: none; }
}
@media (max-width: 1060px) {
  .bz-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bz-side { position: static; grid-template-columns: auto 1fr; align-items: center; padding: .8rem; }
  .bz-co { grid-column: 1; }
  .bz-tags { grid-column: 2; justify-content: flex-end; }
  .bz-nav { grid-column: 1 / -1; display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; margin: 0 -.2rem; }
  .bz-nav::-webkit-scrollbar { display: none; }
  .bz-nav a { flex: none; padding: .5rem .75rem; }
  .bz-public { display: none; }
  .bz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bz-row-2, .bz-book, .bz-menu, .bz-revs-page { grid-template-columns: minmax(0, 1fr); }
  .bz-sticky, .bz-revs-page .rating-summary { position: static; }
  .bz-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .bz-row-3 { grid-template-columns: minmax(0, 1fr); }
  .bz-hero { padding: 1.2rem; min-height: 140px; }
  .bz-kpi { padding: .85rem .85rem .9rem; }
  .bz-kpi-ic { position: static; width: 34px; height: 34px; margin-bottom: .3rem; }
  .bz-kpi b { font-size: 1.3rem; }
  .bz-x { grid-template-columns: 76px minmax(0, 1fr); padding: 8px; gap: .7rem; }
  .bz-x > img { width: 76px; height: 76px; }
  .bz-x-acts { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: .4rem; }
  .bz-limit { flex-wrap: wrap; }
  .bz-redeem { flex-direction: column; }
  .bz-redeem-form { max-width: none; }
  .bz-savebar { bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom)); }
}

/* ---------- Ficha de experiencia ---------- */
.secnav-cta { margin-left: auto; background: var(--primary) !important; color: var(--primary-ink) !important; }
.ph-thumb.is-video { cursor: pointer; }
.ph-thumb.is-video > span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 24, 44, .35); color: #fff; }
.ph-thumb.is-video .ic { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); backdrop-filter: blur(4px); }
.xinc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.xinc h3 { font-size: 1rem; margin: 0 0 .6rem; font-family: var(--font-sans); font-weight: 800; }
.xinc ul, .xbring { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.xinc li { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; }
.xinc li .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; flex: none; }
.xinc-yes .ic { background: var(--ok-soft); color: var(--ok); }
.xinc-no .ic { background: var(--danger-soft); color: var(--danger); }
.xinc-no li { color: var(--ink-2); }
.xbring { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.xbring li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; }
.xbring .ic { width: 16px; height: 16px; color: var(--sea); }
.xtl { list-style: none; margin: 0; padding: 0; position: relative; }
.xtl li { display: grid; grid-template-columns: 56px 20px minmax(0, 1fr); gap: .7rem; align-items: start; padding-bottom: 1.1rem; position: relative; }
.xtl li::before { content: ''; position: absolute; left: calc(56px + .7rem + 9px); top: 18px; bottom: -2px; width: 2px; background: var(--line-2); }
.xtl li:last-child::before { display: none; }
.xtl-h { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primary); font-size: .92rem; padding-top: 1px; }
.xtl-dot { width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--c); background: var(--surface); position: relative; z-index: 1; }
.xtl-t { font-size: .95rem; padding-top: 0; }
.xvideo { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: var(--sh-2); }
.xvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.xmap .map { height: 280px; }
.xbook { scroll-margin-top: calc(var(--appbar-h) + 80px); }
.xbook-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid var(--line); }
.xbook-top small { display: block; color: var(--ink-3); font-size: .8rem; }
.xbook-price { display: block; font-size: 2rem; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.xbook-form .field { margin-bottom: .8rem; }
.stepper-in { display: flex; align-items: center; gap: .5rem; }
.stepper-in input { width: 70px; text-align: center; font-weight: 800; min-height: 42px; }
.stepper-in .icon-btn { width: 42px; height: 42px; border: 1px solid var(--line-2); }
.xbook-total { display: flex; justify-content: space-between; align-items: baseline; margin: .2rem 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: var(--surface-2); font-size: .88rem; color: var(--ink-2); }
.xbook-total b { font-size: 1.15rem; color: var(--ink); }
.xbook-trust { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .4rem; }
.xbook-trust li { display: flex; gap: .45rem; font-size: .8rem; color: var(--ink-2); align-items: flex-start; }
.xbook-trust .ic { width: 15px; height: 15px; color: var(--ok); flex: none; margin-top: 2px; }
.xbook-contact { display: grid; gap: .5rem; }
.xorg { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); padding: .8rem 1rem; }
.xorg:hover { color: var(--ink); border-color: var(--line-2); }
.xorg img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.xorg small { display: block; color: var(--ink-3); font-size: .74rem; font-weight: 700; }
.xorg b { display: block; }
.xorg > .ic { color: var(--ink-3); }
.xdist { display: flex; flex-wrap: wrap; gap: .4rem; }
.xdist span { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; color: color-mix(in srgb, var(--c) 80%, #000); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.xdist .ic { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .xinc { grid-template-columns: minmax(0, 1fr); }
  .secnav-cta { position: sticky; right: 0; }
}

/* ---------- Perfil de negocio ---------- */
.ph-shop-txt { display: flex; align-items: flex-end; gap: 1.2rem; max-width: 900px; }
.ph-logo { flex: none; width: 96px; height: 96px; border-radius: 24px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--sh-3); background: var(--surface); }
.ph-logo img { width: 100%; height: 100%; object-fit: cover; }
.ph-shop h1 { display: flex; align-items: center; gap: .5rem; }
.shop-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.shop-acts a { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem .45rem .45rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .88rem; box-shadow: var(--sh-1); }
.shop-acts a:hover { border-color: var(--primary); color: var(--primary); }
.shop-acts i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); }
.shop-acts i .ic { width: 17px; height: 17px; }
.dish-hl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dish-hl li { padding: .8rem .9rem; border-radius: 14px; background: var(--surface); display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; }
.dish-hl b { font-size: .92rem; }
.dish-hl span { font-weight: 800; }
.dish-hl small { grid-column: 1 / -1; color: var(--ink-3); font-size: .8rem; }
.shop-exps { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.carta { columns: 2; column-gap: 2rem; }
.carta-sec { break-inside: avoid; margin-bottom: 1.4rem; padding: 1.1rem 1.2rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.carta-sec h3 { margin: 0 0 .7rem; font-size: 1.15rem; }
.carta-sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.carta-row { display: flex; align-items: baseline; gap: .4rem; }
.carta-row b { font-size: .95rem; }
.carta-row i { flex: 1; border-bottom: 2px dotted var(--line-2); transform: translateY(-4px); min-width: 20px; }
.carta-row span { font-weight: 800; font-variant-numeric: tabular-nums; }
.carta small { display: block; color: var(--ink-3); font-size: .82rem; margin-top: .15rem; }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
@media (max-width: 760px) {
  .ph-shop-txt { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .ph-logo { width: 72px; height: 72px; border-radius: 18px; }
  .carta { columns: 1; }
}
.review-reply { margin-top: .6rem; padding: .7rem .9rem; border-radius: 12px; background: var(--primary-soft); border-left: 3px solid var(--primary); }
.review-reply b { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--primary); }
.review-reply b .ic { width: 14px; height: 14px; }
.review-reply p { margin: .25rem 0 0; font-size: .88rem; color: var(--ink-2); }
.bz-row-eq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .bz-row-eq { grid-template-columns: minmax(0, 1fr); } }
.pd-card .pf-dl div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: .6rem; }
.pd-card .pf-dl dt { align-items: flex-start; }
.pd-card .pf-dl dt .ic { margin-top: 2px; }
.pd-card .pf-dl dd { text-align: left; font-weight: 600; }
.bz-dishes .grow, .bz-team .grow, .bz-next .grow, .bz-top .grow, .bz-revs .grow, .bz-bk .grow, .bz-reward .grow { flex: 1; min-width: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
@media (max-width: 760px) { .bz-revs li { flex-wrap: wrap; } .bz-revs li > .btn, .bz-revs li > .tag { margin-left: 52px; } }

/* ---------- Pasaporte ---------- */
.pp-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 260px; display: flex; align-items: center; padding: 2.4rem clamp(1.4rem, 4vw, 3.4rem); border-radius: var(--r-xl); color: #fff; background: var(--navy); }
.pp-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pp-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 22, 40, .88) 0%, rgba(6, 22, 40, .55) 55%, rgba(6, 22, 40, .15) 100%); }
.pp-hero h1 { color: #fff; margin: 0; font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); line-height: 1.02; }
.pp-hero p { margin: .8rem 0 0; max-width: 50ch; color: rgba(255, 255, 255, .88); font-size: 1.02rem; }
.pp-nav a { display: inline-flex; align-items: center; gap: .45rem; }
.pp-nav .ic { width: 17px; height: 17px; }
.pp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; margin-top: 14px; scroll-margin-top: calc(var(--appbar-h) + 80px); }
.pp-me { margin: 0; display: flex; align-items: center; gap: 1rem; }
.pp-me > img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--surface); box-shadow: 0 0 0 3px var(--gold-2); }
.pp-me b { display: block; font-family: var(--font-serif); font-size: 1.3rem; }
.pp-me .grow > span { display: block; color: var(--ink-2); font-size: .86rem; font-weight: 600; margin-bottom: .4rem; }
.pp-me small { display: block; color: var(--ink-3); font-size: .76rem; margin-top: .35rem; }
.pp-wallet { flex: none; display: grid; justify-items: center; padding: .7rem .9rem; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--primary)); color: #fff; text-align: center; }
.pp-wallet small { font-size: .68rem; color: rgba(255, 255, 255, .75); font-weight: 700; }
.pp-wallet b { font-size: 1.5rem; font-weight: 800; color: var(--gold-2); line-height: 1.1; }
.pp-wallet span { font-size: .62rem; font-weight: 800; letter-spacing: .04em; }
.pp-kpis { list-style: none; margin: 0; padding: .8rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.pp-kpis li { display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; align-items: center; padding: .3rem .5rem; }
.pp-kpis li + li { border-left: 1px solid var(--line); }
.pp-kpis span { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.pp-kpis span .ic { width: 21px; height: 21px; }
.pp-kpis b { font-size: 1.5rem; font-weight: 800; line-height: 1.05; }
.pp-kpis small { font-size: .76rem; color: var(--ink-3); font-weight: 600; line-height: 1.25; }
.pp-row { display: grid; gap: 16px; margin-top: 16px; align-items: start; }
.pp-row-book { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; }
.pp-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-row .panel { margin: 0; }
.pp-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.pp-card-h h2 { margin: 0 0 .9rem; font-size: 1.25rem; }
.pp-card { scroll-margin-top: calc(var(--appbar-h) + 80px); }
.pp-book-in { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.pp-cover .pbook { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 22px rgba(6, 22, 40, .3)); transform: rotate(-3deg); }
.pp-count { margin: 0 0 .7rem; font-weight: 800; font-size: .92rem; }
.pp-stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pp-stamp { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 10px; text-decoration: none; color: var(--ink-3); }
.pp-stamp img { width: 100%; height: auto; filter: drop-shadow(0 2px 4px rgba(14, 42, 71, .15)); transition: transform .25s var(--ease); }
.pp-stamp.is-on:hover img { transform: rotate(-4deg) scale(1.05); }
.pp-stamp:not(.is-on):not(.is-off) { border: 2px dashed var(--line-2); background: var(--surface-2); align-content: center; gap: .2rem; padding: .3rem; }
.pp-stamp > span { font-family: var(--font-serif); font-size: 1.5rem; color: var(--line-2); }
.pp-stamp > small { font-size: .62rem; font-weight: 700; text-align: center; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pp-stamp.is-off img { filter: grayscale(1); opacity: .32; }
.pp-stamp.is-off i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-3); box-shadow: var(--sh-1); }
.pp-stamp.is-off i .ic { width: 15px; height: 15px; }
.pp-map { display: flex; flex-direction: column; }
.pp-map .map { flex: 1; min-height: 300px; border-radius: 16px; }
.pp-map-empty { flex: 1; align-content: center; }
.pp-goals { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.pp-goals li { display: flex; align-items: center; gap: .75rem; }
.pp-goal-ic { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.pp-goal-ic .ic { width: 20px; height: 20px; }
.pp-goals b { display: block; font-size: .88rem; line-height: 1.25; }
.pp-goals small { display: block; color: var(--ink-3); font-size: .74rem; line-height: 1.3; margin-bottom: .3rem; }
.pp-goals .pbar { height: 6px; }
.pp-goal-side { display: grid; justify-items: end; flex: none; text-align: right; }
.pp-goal-side b { font-size: .84rem; }
.pp-goal-side small { color: var(--primary); font-weight: 800; font-size: .72rem; margin: 0; }
.pp-next-places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pp-next-places a { display: grid; gap: .3rem; text-decoration: none; color: var(--ink); font-size: .76rem; font-weight: 700; line-height: 1.2; }
.pp-next-places img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 10px; }
.pp-saldo { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 999px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); font-weight: 800; font-size: .84rem; }
.pp-saldo .ic { width: 15px; height: 15px; }
.pp-code { display: grid; justify-items: center; gap: .1rem; margin-bottom: 1rem; padding: 1rem; border-radius: 16px; border: 2px dashed var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); text-align: center; }
.pp-code small { font-size: .74rem; font-weight: 700; color: var(--ink-2); }
.pp-code b { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; letter-spacing: .15em; }
.pp-code span { font-size: .76rem; color: var(--ink-3); }
.pp-rewards { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pp-rewards li { display: flex; align-items: center; gap: .75rem; padding: .55rem; border-radius: 14px; border: 1px solid var(--line); }
.pp-rewards img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.pp-rewards b { display: block; font-size: .88rem; line-height: 1.25; }
.pp-rewards small { display: block; color: var(--ink-3); font-size: .74rem; }
.pp-cost { display: inline-flex; align-items: center; gap: .25rem; margin-top: .2rem; font-size: .74rem; font-weight: 800; color: #9A6B00; }
.pp-cost .ic { width: 13px; height: 13px; }
.pp-rewards form { margin: 0; flex: none; }
.pp-mine { margin-top: 1rem; font-size: .86rem; }
.pp-mine summary { cursor: pointer; font-weight: 700; color: var(--primary); }
.pp-mine ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .5rem; }
.pp-mine li { display: flex; align-items: center; gap: .6rem; }
.pp-mine code { font-weight: 800; letter-spacing: .06em; }
.pp-mine b { display: block; font-size: .84rem; }
.pp-mine small { display: block; color: var(--ink-3); font-size: .72rem; }
.pp-col { display: grid; gap: 16px; }
.pp-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.pp-stats li { display: grid; justify-items: start; gap: .1rem; padding: .7rem; border-radius: 14px; background: var(--surface-2); }
.pp-stats span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); margin-bottom: .2rem; }
.pp-stats span .ic { width: 16px; height: 16px; }
.pp-stats b { font-size: 1.2rem; font-weight: 800; }
.pp-stats small { font-size: .7rem; color: var(--ink-3); line-height: 1.2; }
.pp-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pp-rank li { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 12px; font-size: .88rem; font-weight: 600; }
.pp-rank li.is-me { background: var(--primary-soft); color: var(--primary); }
.pp-rank img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.pp-rank b { font-variant-numeric: tabular-nums; }
.pp-sec { margin-top: 2rem; scroll-margin-top: calc(var(--appbar-h) + 80px); }
.pp-comarca { margin-bottom: 1.4rem; padding: 1.1rem 1.2rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.pp-comarca-h { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.pp-comarca-h h3 { margin: 0; font-size: 1.1rem; white-space: nowrap; }
.pp-comarca-h .pbar { flex: 1; max-width: 260px; height: 7px; }
.pp-stamps-all { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
@media (max-width: 1180px) {
  .pp-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-row-3 > .pp-col { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 960px) {
  .pp-top, .pp-row-book { grid-template-columns: minmax(0, 1fr); }
  .pp-row-3 { grid-template-columns: minmax(0, 1fr); }
  .pp-row-3 > .pp-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pp-hero { margin: -26px calc(-1 * var(--gutter)) 0; border-radius: 0; min-height: 210px; padding: 2rem 16px; }
  .pp-me { flex-wrap: wrap; }
  .pp-wallet { width: 100%; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .pp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .8rem; }
  .pp-kpis li:nth-child(3) { border-left: 0; }
  .pp-book-in { grid-template-columns: minmax(0, 1fr); }
  .pp-cover { display: none; }
  .pp-stamps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pp-stamps-all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-comarca-h { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .pp-hero { padding: 2.4rem 16px 2rem; align-items: flex-end; }
  .pp-hero::before { background: linear-gradient(180deg, rgba(6, 22, 40, .35), rgba(6, 22, 40, .88)); }
  .pp-hero p { font-size: .92rem; }
}

/* ---------- Planes ---------- */
.pl-hero { min-height: 300px; }
.pl-form { max-width: 760px; margin: 0 auto; }
.pl-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pl-types label { cursor: pointer; }
.pl-types input { position: absolute; opacity: 0; pointer-events: none; }
.pl-types span { display: grid; justify-items: center; gap: .35rem; padding: .8rem .4rem; border-radius: 14px; border: 2px solid var(--line); font-weight: 700; font-size: .84rem; color: var(--ink-2); text-align: center; }
.pl-types .ic { width: 22px; height: 22px; color: var(--primary); }
.pl-types label:hover span { border-color: var(--line-2); }
.pl-types input:checked + span { border-color: var(--sea); background: var(--sea-soft); color: var(--ink); }
.pl-types input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--sea) 55%, transparent); }
.seg-pick { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-3); }
.seg-pick label { flex: 1; min-width: 80px; cursor: pointer; }
.seg-pick input { position: absolute; opacity: 0; pointer-events: none; }
.seg-pick span { display: block; padding: .55rem .6rem; border-radius: 10px; text-align: center; font-weight: 700; font-size: .84rem; color: var(--ink-2); }
.seg-pick input:checked + span { background: var(--surface); color: var(--primary); box-shadow: var(--sh-1); }
.seg-pick input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--sea) 55%, transparent); }
.pl-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto; }
.pl-mode { position: relative; display: grid; gap: .4rem; padding: 1.3rem 1.2rem; border-radius: 20px; border: 2px solid var(--line); cursor: pointer; }
.pl-mode input { position: absolute; opacity: 0; pointer-events: none; }
.pl-mode:has(input:checked) { border-color: var(--sea); background: color-mix(in srgb, var(--sea) 5%, var(--surface)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sea) 15%, transparent); }
.pl-mode:has(input:checked) .rg-radio { border: 7px solid var(--sea); }
.pl-mode .rg-radio { border-color: var(--line-2); box-shadow: none; }
.pl-mode-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.pl-mode-ic .ic { width: 24px; height: 24px; }
.pl-mode b { font-size: 1.05rem; }
.pl-mode small { color: var(--ink-2); font-size: .86rem; line-height: 1.45; }
.pl-limit { max-width: 640px; }

.pl-list-hero { min-height: 240px; }
.pl-list-hero .btn { margin-top: .2rem; }
.pl-list-hero .small { color: rgba(255, 255, 255, .78); }
.pl-new { display: grid; place-content: center; justify-items: center; gap: .5rem; text-align: center; min-height: 260px; border-radius: 20px; border: 2px dashed var(--line-2);
  color: var(--ink-2); text-decoration: none; padding: 1.4rem; transition: border-color .2s, background .2s; }
.pl-new:hover { border-color: var(--sea); background: color-mix(in srgb, var(--sea) 5%, transparent); color: var(--ink); }
.pl-new-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.pl-new b { color: var(--ink); font-size: 1.02rem; }
.pl-new small { font-size: .84rem; max-width: 26ch; line-height: 1.45; }
.pl-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.pl-sec-h h2 { margin: 0; font-size: 1.25rem; }
.pl-invs { display: grid; gap: 10px; }
.pl-inv { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem .7rem .7rem; border-radius: 18px; background: var(--primary-soft); flex-wrap: wrap; }
.pl-inv img { width: 64px; height: 52px; border-radius: 12px; object-fit: cover; }
.pl-inv b { display: block; }
.pl-inv small { color: var(--ink-2); }
.pl-inv form { margin: 0; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pl-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); text-decoration: none; color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s; }
.pl-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); color: var(--ink); }
.pl-card.is-past { opacity: .7; }
.pl-card-img { position: relative; aspect-ratio: 16 / 9; background: var(--surface-3); }
.pl-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pl-card-img .datebox { position: absolute; left: 10px; top: 10px; }
.pl-card-img .xc-badge { left: auto; right: 10px; }
.pl-card-body { display: grid; gap: .3rem; padding: .9rem 1rem 1rem; }
.pl-card-body b { font-size: 1.05rem; }
.pl-card-body small { color: var(--ink-3); font-size: .8rem; }

.pl-ph .crumbs span { color: #fff; }
.pl-invite-bar { margin-top: 1rem; flex-wrap: wrap; }
.pl-invite-bar form { margin: 0; }
.pl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; scroll-margin-top: calc(var(--appbar-h) + 80px); }
.pl-kpi { position: relative; display: grid; gap: .05rem; padding: .95rem 1rem .95rem 4.1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); min-width: 0; }
.pl-kpi > span { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.pl-kpi > span .ic { width: 20px; height: 20px; }
.pl-kpi small { color: var(--ink-3); font-weight: 700; font-size: .76rem; }
.pl-kpi b { font-size: 1.12rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.pl-kpi em { font-style: normal; color: var(--ink-3); font-size: .76rem; }
.pl-kpi em a { font-weight: 700; text-decoration: none; }
.pl-edit { margin-top: 14px; }
.pl-edit > summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: .4rem; list-style: none; }
.pl-edit[open] > summary { margin-bottom: 1rem; }
.js .pl-edit:not([open]) { display: none; }
.pl-box .chat { height: 340px; }
.btn.danger, .btn-plain.danger { color: var(--danger); }

.pl-main { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; margin-top: 22px; align-items: start; scroll-margin-top: calc(var(--appbar-h) + 80px); }
.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.pl-head h2 { margin: 0; font-size: clamp(1.45rem, 1.25rem + .6vw, 1.8rem); }
.pl-head form { margin: 0; }
.pl-daytabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 1rem; }
.pl-daytabs::-webkit-scrollbar { display: none; }
.pl-daytabs button { flex: none; display: grid; gap: .05rem; min-width: 104px; padding: .55rem .9rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; color: var(--ink-2); }
.pl-daytabs button b { font-size: .9rem; color: var(--ink); }
.pl-daytabs button small { font-size: .74rem; color: var(--ink-3); text-transform: capitalize; }
.pl-daytabs button[aria-selected="true"] { border-color: var(--primary); background: var(--primary-soft); }
.pl-daytabs button[aria-selected="true"] b { color: var(--primary); }
.pl-day { margin-bottom: 1.6rem; scroll-margin-top: calc(var(--appbar-h) + 80px); }
.pl-day-h { margin: 0 0 .8rem; font-family: var(--font-sans); font-size: .95rem; font-weight: 800; color: var(--ink-2); text-transform: capitalize; }
.pl-day-h span { color: var(--primary); }
.pl-tl { list-style: none; margin: 0; padding: 0; }
.pl-stop { display: grid; grid-template-columns: 48px 34px minmax(0, 1fr); gap: .6rem; align-items: start; position: relative; padding-bottom: .8rem; }
.pl-stop::before { content: ''; position: absolute; left: calc(48px + .6rem + 16px); top: 34px; bottom: 0; width: 2px; background: var(--line-2); }
.pl-stop:last-child::before { display: none; }
.pl-time { padding-top: .55rem; text-align: right; font-weight: 800; font-size: .86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pl-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 0 0 4px var(--bg); margin-top: .25rem; }
.pl-dot .ic { width: 16px; height: 16px; }
.pl-stop-card { display: flex; align-items: flex-start; gap: .8rem; padding: .6rem .7rem .6rem .6rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); min-width: 0; }
.pl-stop.is-nota .pl-stop-card { background: var(--surface-2); box-shadow: none; border-style: dashed; }
.pl-stop-img { width: 84px; height: 66px; border-radius: 12px; overflow: hidden; flex: none; background: var(--surface-3); }
.pl-stop-img img { width: 100%; height: 100%; object-fit: cover; }
.pl-stop-t { display: block; font-weight: 750; font-size: .95rem; color: var(--ink); text-decoration: none; line-height: 1.3; }
a.pl-stop-t:hover { color: var(--primary); }
.pl-stop-card small { display: block; color: var(--ink-3); font-size: .78rem; margin-top: .1rem; }
.pl-note { display: flex; gap: .35rem; margin: .35rem 0 0; font-size: .82rem; color: var(--ink-2); }
.pl-note .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--ink-3); }
.pl-book { margin-top: .45rem; }
.pl-tools { display: flex; align-items: center; gap: 0; flex: none; }
.pl-tools form { margin: 0; }
.pl-tools .icon-btn { width: 32px; height: 32px; }
.pl-tools .icon-btn .ic { width: 16px; height: 16px; }
.pl-tools .icon-btn:disabled { opacity: .25; }
.pl-itemedit { position: relative; }
.pl-itemedit > summary { list-style: none; cursor: pointer; }
.pl-itemedit > summary::-webkit-details-marker { display: none; }
.pl-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 280px; padding: .9rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); display: grid; gap: .3rem; }
.pl-pop .field { margin-bottom: .5rem; }
.pl-pop label { font-size: .78rem; font-weight: 700; color: var(--ink-2); display: grid; gap: .25rem; }
.pl-pop form { margin: 0; }
.pl-add { margin-top: .6rem; margin-left: calc(48px + 34px + 1.2rem); padding: .6rem .9rem; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--surface); }
.pl-add > summary { cursor: pointer; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: .4rem; list-style: none; font-size: .9rem; }
.pl-add > summary::-webkit-details-marker { display: none; }
.pl-add[open] > summary { margin-bottom: .8rem; }
.pl-add-form .field { margin-bottom: .7rem; }
.pl-side { position: sticky; top: calc(var(--appbar-h) + 82px); display: grid; gap: 14px; }
.pl-map .map { height: 420px; }
.mk-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; font-size: .82rem; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.pl-ideas .pd-card-h { display: flex; align-items: center; gap: .4rem; }
.pl-ideas .pd-card-h .ic { color: var(--primary); }
.pl-ideas ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .55rem; }
.pl-ideas li { display: flex; align-items: center; gap: .6rem; }
.pl-ideas img { width: 52px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.pl-ideas a { font-weight: 700; font-size: .86rem; text-decoration: none; color: var(--ink); }
.pl-ideas small { display: block; color: var(--ink-3); font-size: .74rem; }
.pl-quick { display: flex; gap: .3rem; margin: 0; flex: none; }
.pl-quick select { min-height: 34px; width: auto; padding: .2rem 1.8rem .2rem .5rem; font-size: .78rem; }
.pl-quick .icon-btn { width: 34px; height: 34px; }

.pl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.pl-row > .pl-box, .pl-box { margin: 0; scroll-margin-top: calc(var(--appbar-h) + 80px); }
.pl-people { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.pl-people li { display: flex; align-items: center; gap: .6rem; }
.pl-people a { font-weight: 700; text-decoration: none; color: var(--ink); font-size: .9rem; }
.pl-people small { display: block; color: var(--ink-3); font-size: .74rem; }
.pl-people form { margin: 0; }
.pl-invite { display: grid; gap: .35rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pl-invite label { font-weight: 700; font-size: .86rem; }
.pl-invite-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .4rem; }
.pl-invite-row select { width: auto; }
@media (max-width: 1180px) { .pl-invite-row { grid-template-columns: minmax(0, 1fr) auto; } .pl-invite-row input { grid-column: 1 / -1; } .pl-invite-row select { width: 100%; } }
.pl-link { display: grid; gap: .35rem; margin-top: .9rem; }
.pl-link input { font-size: .8rem; color: var(--ink-2); }
.pl-total { font-size: 1.3rem; }
.pl-bal { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; }
.pl-bal li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.pl-bal .avatar { width: 30px; height: 30px; }
.pl-bal b.pos { color: var(--ok); }
.pl-bal b.neg { color: var(--danger); }
.pl-settle { padding: .8rem .9rem; border-radius: 14px; background: var(--warn-soft); margin-bottom: .8rem; }
.pl-settle b { font-size: .86rem; }
.pl-settle p { margin: .25rem 0 0; font-size: .86rem; }
.ok-text { color: var(--ok); display: flex; align-items: center; gap: .35rem; }
.pl-exp-list { margin-bottom: .8rem; font-size: .88rem; }
.pl-exp-list summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.pl-exp-list ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .45rem; }
.pl-exp-list li { display: flex; align-items: center; gap: .6rem; }
.pl-exp-list b { display: block; font-size: .88rem; }
.pl-exp-list small { display: block; color: var(--ink-3); font-size: .74rem; }
.pl-exp-list form { margin: 0; }
#gastos .pl-add, #notas .pl-add { margin-left: 0; }
.pl-notes { white-space: normal; overflow-wrap: anywhere; color: var(--ink-2); line-height: 1.6; }
.pl-join { max-width: 560px; text-align: center; display: grid; justify-items: center; gap: .6rem; }
.pl-join h1 { margin: .4rem 0 0; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.pl-join-t { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--primary); }
.pl-join form { margin: .6rem 0 0; }

@media (max-width: 1180px) {
  .pl-main { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 960px) {
  .pl-main { grid-template-columns: minmax(0, 1fr); }
  .pl-main { display: flex; flex-direction: column; gap: 18px; }
  .pl-main > *, .pl-side > * { min-width: 0; width: 100%; }
  .pl-side { display: contents; }
  .pl-map { order: -1; }
  .pl-ideas { order: 1; }
  .pl-map .map { height: 260px; }
  .pl-row { grid-template-columns: minmax(0, 1fr); }
  .pl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pl-modes { grid-template-columns: minmax(0, 1fr); }
  .pl-kpi { padding-left: 3.6rem; }
  .pl-kpi > span { width: 36px; height: 36px; left: .7rem; }
  .pl-stop { grid-template-columns: 40px 30px minmax(0, 1fr); gap: .45rem; }
  .pl-stop::before { left: calc(40px + .45rem + 14px); }
  .pl-dot { width: 30px; height: 30px; }
  .pl-stop-card { flex-wrap: wrap; }
  .pl-stop-card > .grow { flex: 1 1 0; }
  .pl-stop-img { width: 64px; height: 54px; }
  .pl-tools { width: 100%; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: .2rem; margin-top: -.1rem; }
  .pl-add { margin-left: 0; }
  .pl-pop { right: -8px; width: min(290px, calc(100vw - 40px)); }
}
@media print {
  .tn, .appbar, .tabbar, .ft, .no-print, .pd-band, .pl-tools, #install-banner, .toast { display: none !important; }
  body, .page { background: #fff !important; }
  .page { padding: 0 !important; }
  .pl-ph { min-height: 0; border-radius: 0; color: #000; background: none; padding: 0 0 1rem; }
  .pl-ph .ph-bg, .pl-ph::before { display: none; }
  .pl-ph h1, .pl-ph .ph-meta, .pl-ph .ph-sub { color: #000 !important; }
  .pl-ph .ph-tag { color: #000; border-color: #999; background: none; }
  .pl-main { display: block; }
  .pl-side { display: none; }
  [data-day-panel] { display: block !important; }
  .pl-stop-card, .pl-kpi, .panel { box-shadow: none !important; break-inside: avoid; }
  .pl-row { display: block; }
  .pl-box { margin-top: 1rem; }
}

/* ---------- Comunidad ---------- */
.cm-hero { min-height: 250px; }
.cm-hero-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.cm-search { position: relative; flex: 1 1 280px; max-width: 440px; }
.cm-search .ic { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--ink-3); width: 18px; height: 18px; pointer-events: none; }
.cm-search input { width: 100%; min-height: 52px; border-radius: 999px; padding-left: 2.8rem; border: 0; box-shadow: var(--sh-2); }
.cm-filters { margin: 18px 0 20px; }
.cm-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.cm-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; max-width: 1040px; margin: 0 auto; }
.cm-left, .cm-right, .cm-main { display: grid; gap: 16px; min-width: 0; }
.cm-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-1); padding: 1.1rem 1.15rem; margin: 0; }
.cm-box-h { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .75rem; }
.cm-box-h h2, .cm-box > h2 { margin: 0; font-size: 1.05rem; }
.cm-box-h a { font-size: .8rem; font-weight: 700; text-decoration: none; }

/* Tú */
.cm-me-h { display: flex; align-items: center; gap: .75rem; }
.cm-me-h img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; }
.cm-me-h b { display: block; font-size: 1.02rem; }
.cm-me-h small { color: var(--ink-3); font-size: .78rem; }
.cm-xp { height: 6px; border-radius: 3px; background: var(--surface-3); margin: .9rem 0 .3rem; overflow: hidden; }
.cm-xp span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sea), var(--primary)); }
.cm-xp-t { margin: 0; font-size: .74rem; color: var(--ink-3); }
.cm-me-n { display: grid; grid-template-columns: repeat(3, 1fr); margin: .9rem 0; padding: .7rem 0; border-block: 1px solid var(--line); text-align: center; }
.cm-me-n div { display: flex; flex-direction: column-reverse; }
.cm-me-n dt { font-size: .7rem; color: var(--ink-3); }
.cm-me-n dd { margin: 0; font-weight: 800; font-size: 1.05rem; }
.cm-nav { display: grid; gap: 2px; }
.cm-nav a { display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; }
.cm-nav a:hover { background: var(--surface-2); color: var(--ink); }
.cm-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.cm-nav .ic { width: 18px; height: 18px; }
.cm-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }

/* Listas laterales */
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cm-list li { display: flex; align-items: center; gap: .65rem; }
.cm-list img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.cm-list img.is-round { border-radius: 50%; }
.cm-list a { font-weight: 700; font-size: .88rem; color: var(--ink); text-decoration: none; line-height: 1.3; display: block; }
.cm-list a:hover { color: var(--primary); }
.cm-list small { display: block; color: var(--ink-3); font-size: .75rem; }
.cm-meet .datebox { flex: none; }
.cm-people form { margin: 0; flex: none; }
.cm-people .btn { padding-inline: .7rem; }
.cm-people .btn .ic { width: 16px; height: 16px; }
.cm-trend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: tr; }
.cm-trend a { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.cm-trend a:hover, .cm-trend a[aria-current="true"] { background: var(--surface-2); }
.cm-trend b { font-size: .9rem; color: var(--primary); }
.cm-trend small { color: var(--ink-3); font-size: .74rem; white-space: nowrap; }
.cm-ai { background: linear-gradient(160deg, color-mix(in srgb, var(--sea) 10%, var(--surface)), var(--surface) 70%); }
.cm-ai-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; margin-bottom: .6rem; }
.cm-ai p { color: var(--ink-2); font-size: .86rem; margin: .3rem 0 .9rem; }

/* Publicar */
.cm-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: block; }
.cm-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cm-compose { scroll-margin-top: calc(var(--appbar-h) + 20px); }
.cm-compose-top { display: flex; gap: .75rem; align-items: flex-start; }
.cm-compose textarea { flex: 1; min-height: 46px; resize: none; border-radius: 16px; background: var(--surface-2); border-color: transparent; padding: .7rem 1rem; line-height: 1.5; }
.cm-compose textarea:focus { background: var(--surface); }
.cm-compose.is-open textarea, .cm-compose:focus-within textarea { min-height: 96px; }
.cm-preview { position: relative; margin: .8rem 0 0 calc(44px + .75rem); border-radius: 16px; overflow: hidden; max-width: 360px; }
.cm-preview img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.cm-preview .icon-btn { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; }
.cm-pollset { display: none; border: 0; padding: 0; margin: .8rem 0 0 calc(44px + .75rem); gap: .45rem; }
.cm-compose:has(input[value="encuesta"]:checked) .cm-pollset { display: grid; }
.cm-pollset legend { font-weight: 700; font-size: .84rem; margin-bottom: .45rem; padding: 0; }
.cm-tools { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; margin: .8rem 0 0; padding-top: .7rem; border-top: 1px solid var(--line); }
.cm-tool { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .65rem; border-radius: 999px; font-weight: 700; font-size: .84rem; color: var(--ink-2); cursor: pointer; }
.cm-tool:hover { background: var(--surface-2); color: var(--ink); }
.cm-tool input[type=file], .cm-tool input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cm-tool .ic { width: 18px; height: 18px; color: var(--sea); }
.cm-tool:has(input:checked), .cm-tool.is-on { background: var(--sea-soft); color: var(--primary); }
.cm-tool:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--sea) 55%, transparent); }
.cm-where { padding-right: .2rem; }
.cm-where select { border: 0; background-color: transparent; min-height: 30px; padding: 0 1.4rem 0 0; width: auto; max-width: 132px; font-weight: 700; font-size: .84rem; color: inherit; box-shadow: none; }
.cm-send { margin-left: auto; }
.cm-hint { margin: .5rem 0 0 calc(44px + .75rem); font-size: .74rem; color: var(--ink-3); display: none; }
.cm-compose.is-open .cm-hint, .cm-compose:focus-within .cm-hint { display: block; }
.cm-compose > .field-error { margin: .4rem 0 0 calc(44px + .75rem); }
.cm-guest { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cm-guest b { display: block; }
.cm-guest p { margin: .15rem 0 0; color: var(--ink-2); font-size: .88rem; }

/* Cabecera del feed */
.cm-feed-h { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.cm-sort { min-width: 260px; }
.cm-sort a { text-decoration: none; text-align: center; padding: .5rem .9rem; font-size: .86rem; }
.cm-active { display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .35rem .4rem .35rem .8rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .86rem; }
.cm-active > .ic { width: 16px; height: 16px; }
.cm-clear { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--primary); }
.cm-clear:hover { background: var(--surface); }
.cm-clear .ic { width: 15px; height: 15px; }
.cm-feed { display: grid; gap: 16px; }
.cm-pager { display: flex; justify-content: center; gap: .6rem; }
.cm-empty { text-align: center; display: grid; justify-items: center; gap: .3rem; padding: 2.4rem 1.4rem; }
.cm-empty h2 { margin: .5rem 0 0; font-size: 1.25rem; }
.cm-empty p { color: var(--ink-2); margin: 0 0 .8rem; max-width: 42ch; }

/* Publicación */
.cm-post { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-1); padding: 1.05rem 1.15rem .55rem; scroll-margin-top: calc(var(--appbar-h) + 20px); }
.cm-post-h { display: flex; align-items: flex-start; gap: .7rem; }
.cm-who { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .45rem; line-height: 1.3; }
.cm-who > a { font-weight: 800; color: var(--ink); text-decoration: none; }
.cm-who > a:hover { color: var(--primary); }
.cm-kind { display: inline-block; padding: .08rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 700; background: var(--surface-3); color: var(--ink-2); }
.cm-kind.is-residente { background: var(--ok-soft); color: var(--ok); }
.cm-kind.is-turista { background: var(--sea-soft); color: var(--primary); }
.cm-kind.is-nomada { background: color-mix(in srgb, var(--c-tribu) 12%, var(--surface)); color: var(--c-tribu); }
.cm-kind.is-negocio { background: color-mix(in srgb, var(--c-com) 14%, var(--surface)); color: color-mix(in srgb, var(--c-com) 70%, var(--ink)); }
.cm-meta { margin: .1rem 0 0; font-size: .78rem; color: var(--ink-3); }
.cm-meta a { color: inherit; text-decoration: none; }
.cm-meta a:hover { text-decoration: underline; }
.cm-type { flex: none; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: color-mix(in srgb, var(--c-com) 14%, var(--surface)); color: color-mix(in srgb, var(--c-com) 70%, var(--ink)); margin-top: .15rem; }
.cm-type.is-poll { background: var(--sea-soft); color: var(--primary); }
.cm-type .ic { width: 14px; height: 14px; }
.cm-menu { position: relative; flex: none; margin: -.3rem -.5rem 0 0; }
.cm-menu > summary { list-style: none; width: 36px; height: 36px; cursor: pointer; }
.cm-menu > summary::-webkit-details-marker { display: none; }
.cm-menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 210px; padding: .35rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); display: grid; }
.cm-menu-pop form { margin: 0; }
.cm-menu-pop a, .cm-menu-pop button { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .55rem .7rem; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
.cm-menu-pop a:hover, .cm-menu-pop button:hover { background: var(--surface-2); }
.cm-menu-pop .ic { width: 17px; height: 17px; color: var(--ink-3); }
.cm-menu-pop .is-danger, .cm-menu-pop .is-danger .ic { color: var(--danger); }
.cm-text { margin: .75rem 0 0; font-size: .96rem; line-height: 1.6; overflow-wrap: anywhere; }
.cm-post.is-q .cm-text { font-family: var(--font-serif); font-size: 1.18rem; line-height: 1.45; font-weight: 500; }
.cm-tag { font-weight: 700; text-decoration: none; }
.cm-tag:hover { text-decoration: underline; }
.cm-more { font-weight: 700; white-space: nowrap; }
.cm-img { display: block; width: 100%; margin: .85rem 0 0; padding: 0; border: 0; background: var(--surface-3); border-radius: 16px; overflow: hidden; cursor: zoom-in; }
a.cm-img { cursor: pointer; }
.cm-img img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.cm-post.is-full .cm-img img { max-height: 720px; object-fit: contain; background: var(--navy); }
.cm-place { display: inline-flex; align-items: center; gap: .3rem; margin-top: .7rem; font-size: .82rem; font-weight: 700; text-decoration: none; }
.cm-place .ic { width: 15px; height: 15px; }

/* Encuesta */
.cm-poll { display: grid; gap: .45rem; margin: .85rem 0 0; }
.cm-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; min-height: 46px; padding: .55rem .95rem; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; text-align: left; overflow: hidden; isolation: isolate; }
.cm-opt::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--pct); background: var(--surface-3); z-index: -1; transition: width .5s var(--ease); }
.cm-opt:hover:not(:disabled) { border-color: var(--sea); }
.cm-opt:disabled { cursor: default; }
.cm-poll.is-voted .cm-opt { border-color: var(--line); }
.cm-opt.is-mine { border-color: var(--sea) !important; }
.cm-opt.is-mine::before { background: color-mix(in srgb, var(--sea) 18%, var(--surface)); }
.cm-opt-t { display: inline-flex; align-items: center; gap: .4rem; }
.cm-opt-t .ic { width: 17px; height: 17px; color: var(--sea); }
.cm-opt-p { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cm-poll-f { margin: .1rem 0 0; font-size: .78rem; color: var(--ink-3); }

/* Acciones y comentarios */
.cm-acts { display: flex; align-items: center; gap: .2rem; margin: .7rem -.4rem 0; padding-top: .35rem; border-top: 1px solid var(--line); }
.cm-acts form { margin: 0; }
.cm-act { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .7rem; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: inherit; font-weight: 700; font-size: .86rem; text-decoration: none; cursor: pointer; }
.cm-act:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.cm-act .ic { width: 19px; height: 19px; }
.cm-act.is-on, .cm-act.is-on .ic { color: var(--danger); }
.cm-act.is-on .ic { animation: cm-pop .35s var(--ease); }
.cm-acts > .cm-act:last-child { margin-left: auto; }
@keyframes cm-pop { 40% { transform: scale(1.3); } }
.cm-prev { list-style: none; margin: .2rem 0 .5rem; padding: .6rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: .5rem; }
.cm-prev li { display: flex; align-items: flex-start; gap: .55rem; }
.cm-prev img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.cm-prev p { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.45; padding: .35rem .7rem; border-radius: 14px; background: var(--surface-2); }
.cm-prev p a { font-weight: 800; color: var(--ink); text-decoration: none; }
.cm-prev-more a { font-size: .82rem; font-weight: 700; text-decoration: none; padding-left: calc(28px + .55rem); }

/* Ficha */
.cm-crumbs { max-width: 1040px; margin: 0 auto .8rem; }
.cm-crumbs a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.cm-post.is-full { padding: 1.4rem 1.5rem .6rem; }
.cm-post.is-full .cm-text { font-size: 1.04rem; }
.cm-post.is-full.is-q .cm-text { font-size: 1.45rem; }
.cm-thread h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.cm-comments { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .85rem; }
.cm-comments li { display: flex; align-items: flex-start; gap: .6rem; scroll-margin-top: calc(var(--appbar-h) + 20px); }
.cm-comments li:target .cm-bubble { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 30%, transparent); }
.cm-comments .cm-av { width: 36px; height: 36px; }
.cm-bubble { flex: 1; min-width: 0; padding: .6rem .9rem .7rem; border-radius: 4px 16px 16px 16px; background: var(--surface-2); }
.cm-c-h { margin: 0 0 .15rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .84rem; }
.cm-c-h a { font-weight: 800; color: var(--ink); text-decoration: none; }
.cm-c-h time { color: var(--ink-3); font-size: .76rem; }
.cm-c-t { font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.cm-comments .cm-menu { margin: 0; }
.cm-none { margin: 0 0 1rem; }
.cm-reply { display: flex; align-items: flex-end; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--appbar-h) + 80px); }
.cm-reply .cm-av { width: 36px; height: 36px; margin-bottom: 4px; }
.cm-reply textarea { flex: 1; min-height: 46px; resize: none; border-radius: 22px; padding: .7rem 1rem; }
.cm-reply .btn { width: 46px; height: 46px; padding: 0; flex: none; }
#denunciar { margin-top: -.2rem; }

@media (max-width: 1240px) {
  .cm-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .cm-main { grid-column: 1; grid-row: 1 / span 2; }
  .cm-right { grid-column: 2; grid-row: 1; }
  .cm-left { grid-column: 2; grid-row: 2; }
}
@media (max-width: 960px) {
  .cm-layout, .cm-detail { grid-template-columns: minmax(0, 1fr); }
  .cm-main, .cm-right, .cm-left { grid-column: 1; grid-row: auto; }
  .cm-main { order: 1; } .cm-right { order: 2; } .cm-left { order: 3; }
  .cm-me { display: none; }
}
@media (max-width: 760px) {
  .cm-hero { min-height: 0; }
  .cm-hero-row { flex-wrap: nowrap; }
  .cm-hero-row .btn { padding-inline: 1rem; min-height: 52px; }
  .cm-filters { margin: 14px 0 14px; }
  .cm-post, .cm-box { border-radius: 18px; padding-inline: .95rem; }
  .cm-post.is-full { padding: 1.1rem 1rem .5rem; }
  .cm-tools, .cm-pollset, .cm-preview, .cm-hint, .cm-compose > .field-error { margin-left: 0; }
  .cm-tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cm-tool { padding: .5rem .6rem; }
  .cm-sort { min-width: 0; width: 100%; }
  .cm-type { padding: .3rem; }
  .cm-type > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cm-feed-h { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .cm-act.is-on .ic { animation: none; } .cm-opt::before { transition: none; } }

/* ---------- Agenda de eventos ---------- */
.ev-hero { min-height: 260px; }
.ev-search { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-2); max-width: 640px; }
.ev-field { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.ev-field > .ic { position: absolute; left: .9rem; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.ev-field input, .ev-field select { border: 0; box-shadow: none; background-color: transparent; min-height: 46px; padding-left: 2.6rem; width: 100%; }
.ev-town { flex: 0 0 250px; border-left: 1px solid var(--line); }
.ev-search .btn { flex: none; min-height: 46px; }
.ev-types { margin: 18px 0 14px; }
.ev-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 18px; }
.ev-when a, .ev-view a { text-decoration: none; text-align: center; padding: .5rem .9rem; font-size: .86rem; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.ev-view .ic { width: 16px; height: 16px; }
.ev-count { margin: 0 0 0 auto; color: var(--ink-3); font-size: .86rem; font-weight: 600; }
.ev-view { display: none; }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.ev-list { display: grid; gap: 12px; min-width: 0; }
.ev-day { margin: .6rem 0 0; font-size: 1.05rem; text-transform: capitalize; color: var(--ink-2); }
.ev-day:first-child { margin-top: 0; }
.ev-row { display: flex; gap: 1rem; padding: .7rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.ev-row:hover, .ev-row.is-active { border-color: var(--sea); box-shadow: var(--sh-2); color: var(--ink); }
.ev-img { position: relative; flex: none; width: 180px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-3); }
.ev-img img { width: 100%; height: 100%; object-fit: cover; }
.ev-img .datebox { position: absolute; left: 8px; top: 8px; }
.ev-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; padding: .15rem .3rem .15rem 0; }
.ev-type { align-self: flex-start; display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.ev-type .ic { width: 13px; height: 13px; }
.ev-t { font-size: 1.08rem; line-height: 1.3; }
.ev-meta { display: flex; flex-wrap: wrap; gap: .15rem 1rem; font-size: .82rem; color: var(--ink-2); }
.ev-meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.ev-meta .ic { width: 15px; height: 15px; color: var(--ink-3); }
.ev-desc { font-size: .86rem; color: var(--ink-3); line-height: 1.45; }
.ev-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.ev-tags:empty { display: none; }
.ev-side { position: sticky; top: calc(var(--appbar-h) + 16px); display: grid; gap: 16px; }
.ev-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); background: var(--surface); }
.ev-map .map { height: 380px; }
.ev-map .pp-map-empty { min-height: 200px; }
.ev-ai { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.ev-ai .cm-ai-ic { margin: 0; flex: none; }
.ev-ai b { display: block; }
.ev-ai small { color: var(--ink-2); font-size: .8rem; }
.ev-ai:hover { border-color: var(--sea); color: var(--ink); }
@media (max-width: 1180px) { .ev-layout { grid-template-columns: minmax(0, 1fr) 340px; } .ev-img { width: 150px; } }
@media (max-width: 960px) {
  .ev-layout { grid-template-columns: minmax(0, 1fr); }
  .ev-view { display: grid; }
  .ev-count { margin-left: 0; }
  .ev-side { position: static; }
  .ev-layout.is-lista .ev-map, .ev-layout.is-lista .ev-feat { display: none; }
  .ev-layout.is-mapa .ev-list { display: none; }
  .ev-layout.is-mapa .ev-map .map { height: 62vh; }
}
@media (max-width: 760px) {
  .ev-hero { min-height: 0; }
  .ev-search { flex-wrap: wrap; border-radius: 20px; }
  .ev-field { flex: 1 1 100%; }
  .ev-town { flex: 1 1 0; border-left: 0; border-top: 1px solid var(--line); }
  .ev-search .btn { flex: 0 0 auto; }
  .ev-bar { gap: .6rem; }
  .ev-when { width: 100%; overflow-x: auto; grid-auto-columns: max-content; scrollbar-width: none; }
  .ev-view { margin-left: auto; }
  .ev-row { gap: .75rem; padding: .55rem; border-radius: 18px; }
  .ev-img { width: 104px; aspect-ratio: 1; }
  .ev-img .datebox { transform: scale(.85); transform-origin: top left; left: 5px; top: 5px; }
  .ev-desc { display: none; }
  .ev-t { font-size: .98rem; }
}

/* ---------- Viva AI ---------- */
.ai-page { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - var(--appbar-h) - 120px); }
.ai-head { display: flex; align-items: center; gap: 1.1rem; margin: .6rem 0 1.6rem; }
.ai-head .ai-orb { flex: none; width: 64px; height: 64px; border-radius: 20px; }
.ai-head h1 { margin: 0; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.05; }
.ai-head p { margin: .35rem 0 0; color: var(--ink-2); max-width: 58ch; }
.ai-thread { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1rem; }
.ai-ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-idea { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1);
  color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.ai-idea:hover { border-color: var(--c); transform: translateY(-2px); }
.ai-idea-ic { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.ai-msg { display: flex; gap: .7rem; scroll-margin: 90px 0 120px; }
.ai-msg p { margin: 0; line-height: 1.6; }
.ai-msg p + p { margin-top: .6rem; }
.ai-msg.is-me { justify-content: flex-end; }
.ai-msg.is-me p { max-width: 78%; padding: .7rem 1rem; border-radius: 18px 18px 4px 18px; background: var(--primary); color: #fff; }
.ai-av { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--sea), var(--c-tribu)); }
.ai-av .ic { width: 18px; height: 18px; }
.ai-body { flex: 1; min-width: 0; padding: .8rem 1.05rem; border-radius: 4px 18px 18px 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.ai-typing { display: inline-flex; gap: 4px; padding: .3rem 0; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: ai-dot 1s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; } .ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: .9rem; }
.ai-card { display: flex; gap: .65rem; align-items: center; padding: .45rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.ai-card:hover { border-color: var(--sea); color: var(--ink); }
.ai-card img { flex: none; width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.ai-card-b { min-width: 0; display: grid; gap: .05rem; }
.ai-card-k { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 700; color: var(--primary); }
.ai-card-k .ic { width: 12px; height: 12px; }
.ai-card b { font-size: .88rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ai-card small { color: var(--ink-3); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-compose { position: sticky; bottom: 16px; z-index: 5; padding: .7rem .7rem .55rem 1rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-2); }
.ai-compose textarea { width: 100%; border: 0; box-shadow: none; resize: none; background: transparent; padding: .35rem 0; min-height: 48px; font-size: 1rem; }
.ai-compose textarea:focus { outline: none; }
.ai-compose:focus-within { border-color: var(--sea); box-shadow: var(--sh-2), 0 0 0 4px color-mix(in srgb, var(--sea) 15%, transparent); }
.ai-compose-bar { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; }
.ai-zone { position: relative; display: inline-flex; align-items: center; gap: .3rem; padding-left: .55rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.ai-zone .ic { width: 16px; height: 16px; flex: none; }
.ai-zone select { border: 0; box-shadow: none; background-color: transparent; min-height: 34px; width: auto; max-width: 200px; padding: 0 1.7rem 0 .1rem; font-size: .84rem; font-weight: 700; color: inherit; }
.ai-left { color: var(--ink-3); margin-right: auto; }
.ai-send { flex: none; }
.ai-disc { margin: .8rem 0 0; font-size: .74rem; color: var(--ink-3); text-align: center; }
@media (max-width: 760px) {
  .ai-page { min-height: calc(100vh - var(--appbar-h) - 90px); }
  .ai-head { gap: .8rem; margin-top: 0; }
  .ai-head .ai-orb { width: 48px; height: 48px; border-radius: 15px; }
  .ai-head p { font-size: .88rem; }
  .ai-ideas { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ai-idea { padding: .75rem .9rem; }
  .ai-compose { bottom: calc(var(--tabbar-h, 64px) + 12px); }
  .ai-send span { display: none; }
  .ai-send { width: 42px; height: 42px; padding: 0; }
  .ai-left { display: none; }
  .ai-zone { margin-right: auto; }
  .ai-msg.is-me p { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) { .ai-typing i { animation: none; opacity: .6; } }

/* ---------- Informe municipal ---------- */
.mi-filters { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.mi-filters select { width: auto; min-width: 220px; }
.mi-filters .chips { flex: 1; padding-bottom: 0; }
.mi-head { padding: 1.4rem 1.5rem; border-radius: 20px; background: linear-gradient(120deg, var(--navy), var(--primary)); color: #fff; }
.mi-head h2 { color: #fff; margin: .2rem 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.mi-head .ink2 { color: rgba(255, 255, 255, .78); margin: 0; }
.mi-brand { margin: 0; font-size: .82rem; font-weight: 700; color: rgba(255, 255, 255, .78); }
.mi-grid { margin-top: 1rem; }
.mi-grid .panel { margin: 0; }
.mi-grid h3 { font-size: 1rem; margin: 0 0 .8rem; }
.mi-foot { margin-top: 1.6rem; max-width: 80ch; }
@media print {
  .mi-head { background: none; color: #000; padding: 0 0 1rem; border-bottom: 2px solid #000; border-radius: 0; }
  .mi-head h2, .mi-brand, .mi-head .ink2 { color: #000; }
  .an-kpi, .mi-grid .panel { break-inside: avoid; box-shadow: none; }
  .an-rank i { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
.mi-grid .an-rank div { grid-template-columns: 150px 1fr 40px; }
.tribe-desc { margin: .35rem 0 0; font-size: .86rem; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-said { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .9rem; }
.pf-said p { margin: 0 0 .35rem; font-size: .92rem; line-height: 1.5; }
.pf-said span { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .78rem; color: var(--ink-3); }
.pf-said img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.pf-said a { font-weight: 700; color: var(--ink); text-decoration: none; }
.tn .brand { flex: none; }
@media (max-width: 1480px) { .tn-in { gap: 1.2rem; } .tn-links { gap: 1.05rem; } }
