/* Satellite home pages (docs/design/BRANDS.md): the Vitrina app's layout on the web — photo slider, round category
   shortcuts, "icon · title · Ver todas" headers, swipeable rows and quiet tool cards. Colours, fonts and radius come
   from the brand tokens (public/brand/<code>.css), so one kit serves Costa, Prime and VIP. */
.bh { --bh-r: max(var(--radius-card, 14px), 4px); --bh-gap: 20px; --bh-max: 1240px; padding-bottom: 72px; }
.bh-wrap { max-width: var(--bh-max); margin: 0 auto; padding: 0 20px; }
.bh-sec { margin-top: 64px; }
@media (max-width: 700px) { .bh-sec { margin-top: 44px; } .bh { --bh-gap: 14px; } }

/* ── Slider ─────────────────────────────────────────────────────────────── */
.bh-hero { max-width: calc(var(--bh-max) + 40px); margin: 12px auto 0; padding: 0 20px; }
.bh-stage { position: relative; overflow: hidden; border-radius: calc(var(--bh-r) + 6px); height: clamp(540px, 76vh, 760px); background: var(--vl-deep, #111); isolation: isolate; }
.bh-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.bh-slide.is-on { opacity: 1; }
.bh-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7.5s ease-out; }
.bh-slide.is-on img { transform: scale(1); }
.bh-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / .3) 0%, transparent 24%, transparent 36%, rgb(0 0 0 / .72) 100%), linear-gradient(90deg, rgb(0 0 0 / .5), rgb(0 0 0 / .12) 55%, transparent 75%); }
.bh-over { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 40px 28px; color: #fff; }
.bh-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; align-items: end; }
.bh-copy { max-width: 640px; }
.bh-kick { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; opacity: .86; display: flex; align-items: center; gap: 12px; }
.bh-kick::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.bh-copy h1 { font-family: var(--font-serif); font-size: clamp(40px, 6.2vw, 78px); line-height: 1; letter-spacing: -.035em; margin-top: 14px; text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; }
.bh-copy p { margin-top: 14px; font-size: 18px; line-height: 1.5; max-width: 46ch; opacity: .9; }
.bh-caps { position: relative; min-height: 132px; }
.bh-cap { position: absolute; inset: auto 0 0 0; display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--bh-r);
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; pointer-events: none; color: #fff; }
.bh-cap.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bh-cap small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.bh-cap b { font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.bh-cap span { font-size: 15px; opacity: .92; font-variant-numeric: tabular-nums; }
.bh-cap i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.bh-cap:hover i svg { transform: translateX(3px); }
.bh-cap i svg { transition: transform .2s; }
.bh-ctrl { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.bh-bars { display: flex; gap: 6px; flex: 1; max-width: 420px; }
.bh-bars button { flex: 1; height: 16px; border: 0; padding: 7px 0; background: none; cursor: pointer; }
.bh-bars button span { display: block; height: 2px; border-radius: 2px; background: rgb(255 255 255 / .32); overflow: hidden; }
.bh-bars button span::after { content: ""; display: block; height: 100%; width: 0; background: #fff; }
.bh-bars button.is-done span::after { width: 100%; }
.bh-bars button.is-on span::after { animation: bh-fill var(--bh-dur, 6.5s) linear forwards; }
.bh-hero.is-paused .bh-bars button.is-on span::after { animation-play-state: paused; }
@keyframes bh-fill { to { width: 100%; } }
.bh-arrows { display: flex; gap: 8px; margin-inline-start: auto; }
.bh-arrows button, .bh-rail-nav button { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.bh-arrows button { border: 1px solid rgb(255 255 255 / .38); background: rgb(255 255 255 / .06); color: #fff; }
.bh-arrows button:hover { background: rgb(255 255 255 / .2); }
[dir="rtl"] .bh-arrows svg, [dir="rtl"] .bh-rail-nav svg, [dir="rtl"] .bh-cap i svg, [dir="rtl"] .bh-all svg, [dir="rtl"] .bh-tool > svg { transform: scaleX(-1); }
@media (max-width: 860px) {
  .bh-hero { padding: 0; margin-top: 0; }
  .bh-stage { border-radius: 0 0 calc(var(--bh-r) + 6px) calc(var(--bh-r) + 6px); height: max(560px, 82svh); }
  .bh-over { padding: 24px 20px 18px; }
  .bh-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bh-caps { min-height: 0; height: 64px; }
  .bh-cap { padding: 10px 14px; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
  .bh-cap small, .bh-cap i span { display: none; }
  .bh-cap b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bh-cap span { grid-column: 1; font-size: 13.5px; }
  .bh-cap i { grid-row: 1 / span 2; grid-column: 2; margin: 0; }
  .bh-arrows { display: none; }
  .bh-bars { max-width: none; }
  .bh-copy p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bh-slide, .bh-slide img, .bh-cap { transition: none; }
  .bh-slide img { transform: none; }
  .bh-bars button.is-on span::after { animation: none; width: 100%; }
}

/* Search pill (as in the app) */
.bh-search { display: flex; align-items: center; gap: 8px; margin-top: 24px; max-width: 560px; background: var(--vl-surface, #fff); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 10px 30px -12px rgb(0 0 0 / .35); color: var(--vl-text); }
.bh-search svg { color: var(--vl-muted); }
.bh-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 4px; font-size: 16px; color: var(--vl-text); outline: none; }
.bh-search button { width: 46px; height: 46px; flex: none; border: 0; border-radius: 999px; background: var(--vl-primary); color: var(--vl-on-primary); display: grid; place-items: center; cursor: pointer; }
.bh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bh-chips a { border: 1px solid rgb(255 255 255 / .4); background: rgb(255 255 255 / .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; color: #fff; }
.bh-chips a:hover { background: rgb(255 255 255 / .22); }
.bh-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.bh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--vl-primary); color: var(--vl-on-primary); border: 1px solid var(--vl-primary); }
.bh-btn.ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .5); }

/* Figures on the slider (Prime) */
.bh-figs { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; }
.bh-figs div { display: grid; gap: 2px; }
.bh-figs b { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bh-figs small { font-size: 12.5px; opacity: .8; }

/* ── Category shortcuts ─────────────────────────────────────────────────── */
.bh-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 26px 20px 4px; margin: 0 auto; max-width: calc(var(--bh-max) + 40px); justify-content: space-between; }
.bh-cats::-webkit-scrollbar { display: none; }
.bh-cats a { flex: 1 0 84px; max-width: 120px; display: grid; justify-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--vl-text); text-align: center; }
.bh-cats a span { width: 60px; height: 60px; border-radius: 999px; display: grid; place-items: center; background: var(--vl-chip); color: var(--vl-primary); transition: transform .2s, background .2s, color .2s; }
.bh-cats a:hover span { transform: translateY(-2px); background: var(--vl-primary); color: var(--vl-on-primary); }
.bh-cats a.hot span { background: var(--vl-accent); color: #fff; }
.bh-cats a.hot { color: var(--vl-accent); }
@media (max-width: 700px) { .bh-cats { justify-content: flex-start; padding-top: 20px; } .bh-cats a { flex: 0 0 76px; font-size: 12.5px; } .bh-cats a span { width: 54px; height: 54px; } }

/* ── Section header: icon · title · Ver todas ───────────────────────────── */
.bh-head { display: flex; align-items: center; gap: 12px; }
.bh-ic { width: 38px; height: 38px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--vl-chip); color: var(--vl-primary); }
.bh-head h2 { font-family: var(--font-serif); font-size: clamp(24px, 2.8vw, 32px); line-height: 1.1; letter-spacing: -.02em; }
.bh-head .bh-sub { color: var(--vl-muted); font-size: 15px; margin-top: 3px; }
.bh-all { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; color: var(--vl-primary); white-space: nowrap; }
.bh-rail-nav { display: flex; gap: 8px; }
.bh-rail-nav button { border: 1px solid var(--vl-border); background: var(--vl-surface); color: var(--vl-text); width: 40px; height: 40px; }
.bh-rail-nav button:hover { border-color: var(--vl-primary); color: var(--vl-primary); }
.bh-rail-nav button:disabled { opacity: .35; cursor: default; }
@media (max-width: 860px) { .bh-rail-nav { display: none; } }

/* ── Swipeable rows ─────────────────────────────────────────────────────── */
.bh-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--bh-gap)) / 3); gap: var(--bh-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin-top: 20px; padding: 4px 2px 10px; }
.bh-rail::-webkit-scrollbar { display: none; }
.bh-rail > * { scroll-snap-align: start; min-width: 0; }
.bh-rail.four { grid-auto-columns: calc((100% - 3 * var(--bh-gap)) / 4); }
@media (max-width: 1024px) { .bh-rail, .bh-rail.four { grid-auto-columns: calc((100% - var(--bh-gap)) / 2.2); } }
@media (max-width: 640px) { .bh-rail { grid-auto-columns: 84%; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; } .bh-rail.four { grid-auto-columns: 62%; } }

/* Photo tiles (towns, projects) */
.bh-tile { position: relative; display: block; border-radius: var(--bh-r); overflow: hidden; aspect-ratio: 3 / 4; background: var(--vl-surface-2); }
.bh-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bh-tile:hover img { transform: scale(1.04); }
.bh-tile span { position: absolute; inset: auto 0 0 0; padding: 40px 16px 16px; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .66)); display: grid; gap: 2px; font-size: 13.5px; }
.bh-tile b { font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.bh-proj { display: grid; gap: 12px; color: var(--vl-text); }
.bh-proj .bh-tile { aspect-ratio: 4 / 3; }
.bh-proj b { font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.bh-proj small { display: block; color: var(--vl-muted); font-size: 13.5px; margin-top: 2px; }
.bh-tag { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; background: var(--vl-surface); color: var(--vl-text); font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 5px 11px; box-shadow: 0 4px 14px -6px rgb(0 0 0 / .35); }
.bh-tagged { position: relative; }
.bh-tagged > .bh-tag { top: 14px; inset-inline-start: 14px; }

/* ── Tools ("Herramientas", "Vivir aquí") ───────────────────────────────── */
.bh-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 20px; }
.bh-tool { position: relative; display: grid; gap: 6px; align-content: start; padding: 22px 22px 24px; border-radius: var(--bh-r); background: var(--vl-surface); border: 1px solid var(--vl-border); color: var(--vl-text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.bh-tool:hover { border-color: color-mix(in srgb, var(--vl-primary) 45%, var(--vl-border)); transform: translateY(-2px); box-shadow: var(--vl-shadow); }
.bh-tool .bh-ic { margin-bottom: 12px; }
.bh-tool b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.bh-tool span { color: var(--vl-muted); font-size: 14.5px; line-height: 1.45; }
.bh-tool > svg { position: absolute; top: 24px; inset-inline-end: 22px; color: var(--vl-muted); transition: transform .2s, color .2s; }
.bh-tool:hover > svg { color: var(--vl-primary); transform: translateX(3px); }
[dir="rtl"] .bh-tool:hover > svg { transform: scaleX(-1) translateX(3px); }

/* ── Market list (Prime) ────────────────────────────────────────────────── */
.bh-market { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.bh-market li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--vl-border); }
.bh-market .n { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--vl-muted); }
.bh-market a { font-weight: 600; color: var(--vl-text); }
.bh-market small { display: block; color: var(--vl-muted); font-size: 12.5px; font-weight: 400; }
.bh-market .v { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 15px; text-align: end; }
.bh-market .bar { grid-column: 2 / -1; height: 3px; border-radius: 3px; background: var(--vl-surface-2); overflow: hidden; }
.bh-market .bar i { display: block; height: 100%; border-radius: 3px; background: var(--vl-brand); }
@media (max-width: 760px) { .bh-market { grid-template-columns: 1fr; } }
.bh-ic svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
  .bh-figs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px; margin-top: 18px; }
  .bh-figs b { font-size: 20px; }
  .bh-figs small { font-size: 11.5px; }
  .bh-btns { flex-wrap: nowrap; gap: 8px; margin-top: 20px; }
  .bh-btn { padding: 12px 16px; font-size: 14px; }
}
