/* Investbens — faixas azul-marinho de ponta a ponta, conteúdo em coluna de 1280px, cartões sem sombra. */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F1F6F9;
  --ink: #002C44;
  --ink-2: #33475A;
  --muted: #4F6475;
  --line: #DCE5EB;
  --line-strong: #B9CAD5;
  --accent: #0061B5;
  --navy: #002C44;
  --navy-deep: #00223A;
  --navy-line: #1F4A64;
  --sky: #B8E8FC;
  --on-navy: #FFFFFF;
  --on-navy-2: #C9D8E2;
  --on-navy-3: #A6BECD;
  --btn-bg: #002C44;
  --btn-fg: #FFFFFF;
  --tile: #E3EBF0;
  --warn-bg: #FFF4D6;
  --warn-fg: #6B4A00;
  --ok-bg: #E2F3E8;
  --ok-fg: #1D5B34;
  --font-display: 'Funnel Display', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Funnel Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1280px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06192A; --bg-soft: #0B2539; --ink: #EAF2F7; --ink-2: #C3D3DE; --muted: #9DB3C2;
    --line: #1C3A4F; --line-strong: #2C5068; --accent: #7CC4F5; --navy: #00223A; --navy-deep: #021626;
    --navy-line: #1F4A64; --btn-bg: #B8E8FC; --btn-fg: #002C44; --tile: #0F2D42;
    --warn-bg: #3A2E0C; --warn-fg: #F3D78A; --ok-bg: #12331F; --ok-fg: #9FDDB4; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #06192A; --bg-soft: #0B2539; --ink: #EAF2F7; --ink-2: #C3D3DE; --muted: #9DB3C2;
  --line: #1C3A4F; --line-strong: #2C5068; --accent: #7CC4F5; --navy: #00223A; --navy-deep: #021626;
  --navy-line: #1F4A64; --btn-bg: #B8E8FC; --btn-fg: #002C44; --tile: #0F2D42;
  --warn-bg: #3A2E0C; --warn-fg: #F3D78A; --ok-bg: #12331F; --ok-fg: #9FDDB4; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* ---------- faixa do protótipo ---------- */
.proto { background: var(--warn-bg); color: var(--warn-fg); font-size: 14px; }
.proto .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; padding-block: 10px; }
.proto a { color: inherit; font-weight: 600; }

/* ---------- topo ---------- */
.top { background: var(--navy); color: var(--on-navy); }
.top-util { border-bottom: 1px solid var(--navy-line); font-size: 13px; color: var(--on-navy-3); }
.top-util .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: flex-end; padding-block: 8px; }
.top-util a { color: var(--on-navy-3); text-decoration: none; padding: 6px 0; }
.top-util a.strong { color: var(--on-navy); font-weight: 500; }
.top-main .wrap { display: flex; gap: 16px 32px; align-items: center; justify-content: space-between; padding-block: 18px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; padding: 6px 0; }
.logo img { height: 40px; width: auto; }
.menu-btn { display: none; background: transparent; border: 1px solid var(--navy-line); color: var(--on-navy); border-radius: 2px; min-height: 44px; padding: 0 16px; cursor: pointer; font-size: 14px; letter-spacing: .06em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; font-size: 15px; letter-spacing: .02em; }
.nav a { color: #D5E3EC; text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { color: var(--on-navy); border-bottom-color: var(--sky); }
.nav a.cta { color: #002C44; background: var(--sky); padding: 12px 20px; border-radius: 2px; font-weight: 600; border: none; }
.nav .fav-link { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 940px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--navy-line); }
  .nav a.cta { margin-top: 12px; text-align: center; }
}

/* ---------- hero (início) ---------- */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 40px 80px; align-items: stretch; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; justify-content: flex-end; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.top .eyebrow, .band .eyebrow { color: var(--sky); }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -.03em; }
.hero p.lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--on-navy-2); max-width: 34em; }
.hero-photo { flex: 1 1 440px; min-width: 0; min-height: 460px; position: relative; overflow: hidden; border-radius: 2px; background: #0B3A55; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-stats { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-wrap: wrap; gap: 12px 32px; background: rgba(0,44,68,.84); padding: 18px 22px; border-radius: 2px; }
.hero-stats b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: -.02em; }
.hero-stats span { font-size: 13px; color: var(--on-navy-2); }
@media (max-width: 600px) { .hero-photo { min-height: 340px; } }

/* busca rápida (dentro do hero) */
.quick { background: #FFFFFF; color: #002C44; border-radius: 2px; padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 18px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid #DCE5EB; }
.tab { padding: 14px 16px; min-height: 48px; background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; font-weight: 600; color: #4F6475; }
.tab[aria-pressed="true"] { color: #002C44; border-bottom-color: #0061B5; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 18px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.quick .field select, .quick .field input { background: #FFFFFF; color: #002C44; border-bottom-color: #B9CAD5; }
.quick .field { color: #4F6475; }
.quick .link { color: #0061B5; }
.quick .btn { background: #002C44; color: #FFFFFF; }

/* ---------- campos ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.field select, .field input, .field textarea {
  border: none; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  padding: 10px 0; font-size: 16px; letter-spacing: 0; text-transform: none; min-height: 44px; min-width: 0; width: 100%; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select option { color: #002C44; background: #FFFFFF; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.err { color: #B3261E; font-size: 13px; letter-spacing: 0; text-transform: none; }
:root[data-theme="dark"] .err { color: #FFB4AB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #FFB4AB; } }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--btn-bg); color: var(--btn-fg); border: none; padding: 15px 28px; border-radius: 2px; font-weight: 600; font-size: 15px; cursor: pointer; min-height: 52px; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.sky { background: var(--sky); color: #002C44; }
.btn.block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid currentColor; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }

/* ---------- seções ---------- */
.section { padding-block: 88px; }
.section.soft { background: var(--bg-soft); }
.band { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.band .mark { position: absolute; right: -60px; bottom: -80px; width: 420px; opacity: .05; pointer-events: none; }
.sec-head { display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; }
.sec-head > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sec-head p.note { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
h2.big { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -.025em; }
.page-head { padding-block: 56px 40px; }
.page-head h1 { margin: 12px 0 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.028em; }
.page-head p.sub { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: var(--on-navy-2); max-width: 40em; }
.crumbs { font-size: 13px; color: var(--on-navy-3); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--on-navy-3); }

/* condomínios */
.condos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.condo { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: 176px; padding: 26px; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; color: var(--ink); text-decoration: none; }
.condo:hover { border-color: var(--accent); }
.condo small { font-size: 13px; letter-spacing: .2em; color: var(--accent); font-weight: 600; }
.condo strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 25px; line-height: 1.1; letter-spacing: -.015em; }
.condo span.more { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 8px; }

/* cartões de imóvel */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 44px 24px; }
.card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-photo { position: relative; overflow: hidden; border-radius: 2px; background: var(--tile); }
.card-photo a { display: block; }
.card-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.card:hover .card-photo img { transform: scale(1.04); }
.card-tags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.tag { background: #FFFFFF; color: #002C44; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 9px 11px; border-radius: 2px; line-height: 1; }
.tag.ex { background: var(--warn-bg); color: var(--warn-fg); }
.heart { pointer-events: auto; width: 44px; height: 44px; border: none; border-radius: 2px; background: rgba(0,44,68,.78); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.card .place { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card .price { margin: 0; font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.specs { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.specs div { display: flex; gap: 6px; align-items: baseline; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* busca */
.search-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.filters { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 24px; }
.filters .tabs { border-color: var(--line); }
.filters .tab { color: var(--muted); }
.filters .tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.results-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.results-bar p { margin: 0; color: var(--ink-2); }
.results-bar .field { flex-direction: row; align-items: center; gap: 10px; }
.results-bar .field select { width: auto; }
.empty { padding: 56px 28px; background: var(--bg-soft); border-radius: 2px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; gap: 16px; align-items: center; }
.empty h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--ink); }
@media (max-width: 900px) { .search-layout { grid-template-columns: minmax(0, 1fr); } .filters { position: static; } }

/* imóvel */
.prop-top { display: flex; flex-wrap: wrap; gap: 40px 56px; padding-block: 40px 72px; }
.gallery { flex: 1.6 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery-main { position: relative; border-radius: 2px; overflow: hidden; background: var(--tile); }
.gallery-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-main figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(0,44,68,.82); color: #FFFFFF; font-size: 13px; padding: 8px 12px; border-radius: 2px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: none; border-radius: 2px; background: rgba(0,44,68,.78); color: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
/* abas Fotos / Vídeo e botão do tour */
.media-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--line); }
.media-tabs { display: flex; gap: 4px; }
.media-tab { padding: 12px 16px; min-height: 46px; background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); cursor: pointer; }
.media-tab span { font-weight: 500; letter-spacing: 0; opacity: .7; margin-left: 4px; }
.media-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tour-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 6px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.tour-btn:hover { background: var(--bg-soft); }
.ver-video { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: none; border-radius: 2px; background: rgba(0,44,68,.82); color: #FFFFFF; font-size: 13px; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
.video-box { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; background: #002C44; border-radius: 2px; overflow: hidden; color: #FFFFFF; text-decoration: none; }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-box.poster img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.video-box .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.94); color: #002C44; display: flex; align-items: center; justify-content: center; transition: transform .4s cubic-bezier(.16,1,.3,1); }
a.video-box:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-cap { position: absolute; left: 16px; right: 16px; bottom: 16px; font-size: 14px; font-weight: 600; text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.card-midias { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; pointer-events: none; }
.card-midias span { background: rgba(0,44,68,.84); color: #FFFFFF; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 7px 10px; border-radius: 2px; line-height: 1; }

/* tour virtual em tela cheia */
.tour-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,20,32,.86); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.tour-box { width: min(1200px, 100%); height: min(780px, 100%); background: var(--navy); color: var(--on-navy); border-radius: 2px; display: flex; flex-direction: column; overflow: hidden; }
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--navy-line); }
.tour-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 18px; }
.tour-x { width: 44px; height: 44px; border: none; background: transparent; color: var(--on-navy); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.tour-body { position: relative; flex: 1; min-height: 0; }
.tour-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-vazio { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--on-navy-2); line-height: 1.6; max-width: 560px; margin: 0 auto; }
.tour-vazio b { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--on-navy); }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 2px; overflow: hidden; cursor: pointer; background: var(--tile); }
.thumb[aria-current="true"] { border-color: var(--accent); }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prop-aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.prop-aside h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
.addr { margin: 0; display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.price-box { display: flex; flex-direction: column; gap: 14px; padding-block: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-box .p { margin: 0; font-family: var(--font-display); font-size: 36px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; font-size: 14px; }
.mini div { display: flex; flex-direction: column; gap: 2px; }
.mini dt { color: var(--muted); } .mini dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.row-btns { display: flex; gap: 10px; }
.soft-btn { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; background: var(--bg-soft); color: var(--ink); border: none; border-radius: 2px; cursor: pointer; font-weight: 500; font-size: 14px; }
.bigspecs { margin: 0 0 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px 28px; }
.bigspecs div { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.bigspecs dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.bigspecs dd { margin: 0; font-family: var(--font-display); font-size: 30px; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.two { display: flex; flex-wrap: wrap; gap: 40px 96px; }
.two > :first-child { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.two > :last-child { flex: 1.5 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.two p { margin: 0; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 36px 64px; margin-top: 56px; }
.feats h3 { margin: 0 0 16px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.feats ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; font-size: 15px; color: var(--ink-2); }
.feats li { display: flex; gap: 10px; align-items: center; }

/* formulário de lead */
.lead-wrap { display: flex; flex-wrap: wrap; gap: 48px 96px; }
.lead-wrap > :first-child { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.lead-form { flex: 1.2 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
.lead-form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .lead-form { grid-template-columns: minmax(0, 1fr); } }
.band .field { color: var(--on-navy-3); }
.band .field input, .band .field select, .band .field textarea { color: var(--on-navy); border-bottom-color: #4D7088; }
.band .check { color: var(--on-navy-2); }
.band .check a { color: var(--sky); }
.band .btn { background: var(--sky); color: #002C44; }
.band .btn.ghost { background: transparent; color: var(--on-navy); border-color: var(--on-navy-3); }
.sent { grid-column: 1 / -1; background: var(--ok-bg); color: var(--ok-fg); border-radius: 2px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; }
.sent strong { font-size: 16px; }
.sent pre { margin: 0; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; background: rgba(0,0,0,.06); padding: 12px 14px; border-radius: 2px; overflow-x: auto; color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* passos (anuncie) */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 22px; padding-block: 22px; border-top: 1px solid var(--navy-line); }
.steps li:last-child { border-bottom: 1px solid var(--navy-line); }
.steps .n { font-size: 13px; letter-spacing: .2em; color: var(--sky); font-weight: 600; padding-top: 4px; }
.steps b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 21px; margin-bottom: 4px; }
.steps span.d { font-size: 15px; line-height: 1.6; color: var(--on-navy-3); }

/* integração */
.status { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.status li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: start; }
.status b { font-weight: 600; }
.status p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; grid-column: 1; }
.chip { font-size: 12px; letter-spacing: .06em; font-weight: 600; padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.chip.wait { background: var(--warn-bg); color: var(--warn-fg); }
.chip.ok { background: var(--ok-bg); color: var(--ok-fg); }
.code { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 2px; padding: 16px 18px; overflow-x: auto; color: var(--ink); margin: 0; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: f; }
.flow li { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.flow li b { color: var(--ink); font-family: var(--font-display); font-weight: 400; font-size: 20px; }

/* rodapé: sempre branco, para a marca em dois tons de azul (nos dois temas) */
.foot { background: #FFFFFF; color: #4F6475; font-size: 14px; line-height: 1.7; border-top: 1px solid #DCE5EB; color-scheme: light; }
.foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 36px 48px; padding-block: 64px 32px; }
.foot h4 { margin: 0 0 8px; color: #002C44; font-weight: 600; font-size: 14px; }
.foot a { color: #33475A; text-decoration: none; display: block; padding: 3px 0; }
.foot a:hover { color: #0061B5; }
.foot .foot-logo { width: 190px; height: auto; margin-bottom: 14px; }
.foot .legal { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #DCE5EB; padding-top: 24px; font-size: 13px; }
.foot .legal p { margin: 0; }
.foot .foot-ib { width: 40px; height: auto; flex: none; }

/* ---------- animações (mesmo vocabulário da landing page) ---------- */
/* Na carga: topo e hero */
@keyframes ibUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes ibLine { from { transform: translateY(110%); } to { transform: none; } }
@keyframes ibCurtain { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ibZoom { from { transform: scale(1.1); } to { transform: none; } }
.ib-up { animation: ibUp 1s cubic-bezier(.16,1,.3,1) both; }
.ib-mask { display: block; overflow: hidden; padding-bottom: .08em; }
.ib-line { display: block; animation: ibLine 1.3s cubic-bezier(.16,1,.3,1) both; }
.ib-curtain { animation: ibCurtain 1.5s cubic-bezier(.77,0,.18,1) both; }
.ib-curtain img { animation: ibZoom 2.2s cubic-bezier(.16,1,.3,1) both; animation-delay: inherit; }

/* Ao rolar: a seção recebe .on quando entra na tela */
html.anim .rv-i { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.16,1,.3,1); }
html.anim .rv-line { display: block; transform: translateY(110%); transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
html.anim .rv-from-l { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.77,0,.18,1); }
html.anim .rv-from-r { clip-path: inset(0 0 0 100%); transition: clip-path 1.4s cubic-bezier(.77,0,.18,1); }
html.anim .rv-zoom { transform: scale(1.1); transition: transform 2s cubic-bezier(.16,1,.3,1); }
html.anim .on .rv-i { opacity: 1; transform: none; }
html.anim .on .rv-line { transform: none; }
html.anim .on .rv-from-l, html.anim .on .rv-from-r { clip-path: inset(0 0 0 0); }
html.anim .on .rv-zoom { transform: none; }
/* Cartões de imóvel e de condomínio entram um a um, cada um no seu tempo */
.condos-mais { margin: 32px 0 0; text-align: center; }
/* Cartões começam escondidos já no primeiro desenho da página (a classe "anim" é posta no <head>),
   para a entrada animada funcionar também no que já está na tela. */
html.anim main .card, html.anim main .condo, html.anim main .post-card { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.16,1,.3,1); }
html.anim main .card.on, html.anim main .condo.on, html.anim main .post-card.on { opacity: 1; transform: none; }
html.anim .rv-c { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.16,1,.3,1); }
html.anim .rv-c.on { opacity: 1; transform: none; }
html.anim .rv-c .card-photo img { transform: scale(1.1); transition: transform 2s cubic-bezier(.16,1,.3,1); }
html.anim .rv-c.on .card-photo img { transform: none; }
html.anim .rv-c.on:hover .card-photo img, .card:hover .card-photo img { transform: scale(1.04); transition-duration: 1.2s; }

/* Galeria do imóvel: a foto principal abre da esquerda para a direita, com zoom suave */
@keyframes ibWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ib-wipe { animation: ibWipe 1.4s cubic-bezier(.77,0,.18,1) both; }
.ib-wipe img[data-gal-img], .post-capa.ib-wipe img { animation: ibZoom 2.2s cubic-bezier(.16,1,.3,1) both; animation-delay: inherit; }
@media (prefers-reduced-motion: reduce) {
  .ib-up, .ib-line, .ib-curtain, .ib-curtain img, .ib-wipe, .ib-wipe img[data-gal-img] { animation: none; }
  .card-photo img { transition: none; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* ===================== Versão de produção (servidor) ===================== */
/* Abas de finalidade como rádios (funcionam sem JavaScript) */
.tab { display: inline-flex; align-items: center; position: relative; }
.tab input { position: absolute; opacity: 0; pointer-events: none; }
.tab:has(input:checked) { color: #002C44; border-bottom-color: #0061B5; }
.filters .tab:has(input:checked) { color: var(--ink); border-bottom-color: var(--accent); }
.tab:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.filters .btn { width: 100%; }

.page-top .page-head { padding-block: 40px 40px; }
.page-head .crumbs { margin-bottom: 12px; }
.lead-txt { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 30em; }
.lead-txt b { color: var(--ink); }
.band-txt { margin: 0; font-size: 17px; line-height: 1.7; color: var(--on-navy-2); max-width: 30em; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.link.plain { border: 0; font-weight: 500; color: var(--accent); }
h2.big.md { font-size: clamp(30px, 3.4vw, 44px); }
.texto { font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.texto p { margin: 0 0 16px; }
.empty h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--ink); }
.empty p { margin: 0; }
.paginacao { display: flex; gap: 20px; align-items: center; justify-content: center; margin-top: 48px; font-size: 15px; color: var(--ink-2); }
.paginacao a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink); text-decoration: none; font-weight: 600; }
.aside-btns { display: flex; flex-direction: column; gap: 10px; }
.painel-fotos { display: flex; flex-direction: column; gap: 12px; }
.feats li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px); flex: none; }
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 64px; }
.doc-sec h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.doc-sec p { margin: 0 0 10px; color: var(--ink-2); }
.doc-sec ul { margin: 0; padding-left: 20px; color: var(--ink-2); line-height: 1.7; }
.legal-txt { max-width: 820px; }
.legal-txt h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 32px 0 12px; color: var(--ink); }
.aviso { background: var(--warn-bg); color: var(--warn-fg); padding: 14px 18px; border-radius: 2px; margin: 0 0 20px; }
.loading { padding: 40px 0; color: var(--muted); }
.video-box { cursor: pointer; }
.video-box img { width: 100%; height: 100%; object-fit: cover; opacity: .62; position: absolute; inset: 0; }
.crumbs span[aria-current] { color: var(--on-navy); }
.err { margin: 0; }
.lead-form .btn[disabled] { opacity: .6; cursor: wait; }
.gallery-main { margin: 0; }
/* Miniaturas: 5 visíveis + quadro "+N fotos" na mesma linha */
.thumbs.recolhidas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.thumb.mais { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--bg-soft); border: 1px solid var(--line-strong); color: var(--ink); font-size: 14px; line-height: 1.2; text-align: center; }
.thumb.mais b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.thumb.mais:hover { border-color: var(--accent); }

/* Seletor Todos · Casas · Lotes: botões quadrados, discretos */
.tipo-filtro { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.tipo-filtro a, .tipo-filtro button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 0; background: none; color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: border-color .25s ease, background-color .25s ease, color .25s ease; }
.tipo-filtro span { font-weight: 400; letter-spacing: 0; color: var(--muted); }
.tipo-filtro a:hover, .tipo-filtro button:hover { border-color: var(--ink); color: var(--ink); }
.tipo-filtro [aria-current="page"], .tipo-filtro [aria-pressed="true"], .tipo-filtro [aria-current="page"]:hover, .tipo-filtro [aria-pressed="true"]:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.tipo-filtro [aria-current="page"] span, .tipo-filtro [aria-pressed="true"] span { color: inherit; opacity: .7; }
.lista-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.sec-head + .lista-ctrl { margin-bottom: 32px; }
.results-bar .lista-ctrl { flex: 1 1 auto; justify-content: flex-end; }
@media (max-width: 640px) { .results-bar .lista-ctrl { justify-content: flex-start; } }
.grid .card[hidden] { display: none; }

/* ---------- Favoritos: coração, dica, aviso e página ---------- */
.heart { position: relative; color: #FFFFFF; }
.heart svg { transition: transform .2s ease; }
.heart:hover svg { transform: scale(1.12); }
/* Ao favoritar: o coração pulsa e solta um anel */
@keyframes ibHeartPop { 0% { transform: scale(1); } 30% { transform: scale(1.45); } 55% { transform: scale(.88); } 75% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes ibHeartRing { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.7); } }
@keyframes ibHeartOut { 0% { transform: scale(1); } 40% { transform: scale(.7); } 100% { transform: scale(1); } }
.heart.pop svg { animation: ibHeartPop .65s cubic-bezier(.17,.89,.32,1.28); }
.heart.pop::after { content: ""; position: absolute; inset: 4px; border: 2px solid #FFFFFF; border-radius: 50%; animation: ibHeartRing .6s ease-out forwards; pointer-events: none; }
.heart.pop-out svg { animation: ibHeartOut .35s ease; }
.soft-btn.pop svg { animation: ibHeartPop .65s cubic-bezier(.17,.89,.32,1.28); }
/* Dica ao passar o mouse (só em computador) */
@media (hover: hover) and (pointer: fine) {
  .heart[data-dica]::before { content: attr(data-dica); position: absolute; top: calc(100% + 8px); right: 0; width: max-content; max-width: 220px; padding: 8px 12px; background: var(--ink); color: var(--bg); font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 0; text-align: left; border-radius: 2px; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; z-index: 3; }
  .heart[data-dica]:hover::before, .heart[data-dica]:focus-visible::before { opacity: 1; transform: none; }
}
/* Contador do menu "pula" quando muda */
@keyframes ibBump { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 100% { transform: scale(1); } }
.fav-link.bump svg, .fav-link.bump [data-fav-count] { animation: ibBump .5s ease; display: inline-block; }
/* Aviso no rodapé da tela */
.fav-aviso { position: fixed; left: 50%; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 14px 16px 14px 18px; background: var(--ink); color: var(--bg); border-radius: 2px; box-shadow: 0 12px 32px rgba(0,20,35,.25); font-size: 14px; line-height: 1.35; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .3s ease, transform .4s cubic-bezier(.16,1,.3,1); }
.fav-aviso.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.fav-aviso svg { flex: none; color: #7CC4F5; }
.fav-aviso small { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.fav-aviso a, .fav-aviso button { flex: none; margin-left: 6px; padding: 9px 14px; border: 1px solid currentColor; border-radius: 0; background: none; color: inherit; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
/* Página de favoritos */
.fav-compartilhada { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; padding: 18px 20px; border: 1px solid var(--line-strong); }
.fav-compartilhada p { margin: 0; color: var(--ink-2); }
.fav-beneficios { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); }
.fav-beneficios li { display: flex; gap: 10px; align-items: center; }
.fav-beneficios li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px); flex: none; }
.canal { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; }
.canal legend { margin-bottom: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tab-opcao { position: relative; }
.tab-opcao input { position: absolute; opacity: 0; pointer-events: none; }
.tab-opcao span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
.tab-opcao input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tab-opcao input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lead-form [data-canal-campo] { transition: opacity .2s ease; }
.fav-pronto { flex: 1.2 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.fav-pronto h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15; }
.fav-pronto p { margin: 0; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .heart.pop svg, .heart.pop::after, .heart.pop-out svg, .fav-link.bump svg, .fav-link.bump [data-fav-count] { animation: none; } }

/* ---------- Comparar favoritos ---------- */
.fav-vistas { margin-bottom: 32px; justify-content: flex-start; }
.fav-dica-comp { margin: 0; font-size: 14px; color: var(--muted); }
.comp-rolagem { overflow-x: auto; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.comp-rolagem::-webkit-scrollbar { display: none; }
.comp-caixa .carrossel-linha { margin-top: 10px; }
.comp-rolagem:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.comp { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; font-size: 15px; }
.comp th, .comp td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comp td { color: var(--ink); overflow-wrap: anywhere; }
.comp tbody th[scope="row"], .comp .canto { position: sticky; left: 0; z-index: 1; background: var(--bg-soft); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.comp thead th { background: var(--bg); font-weight: 400; vertical-align: top; }
.comp-imovel { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
.comp-foto { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile); }
.comp-foto img { width: 100%; height: 100%; object-fit: cover; }
.comp-titulo { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 18px; line-height: 1.25; }
.comp-titulo:hover { color: var(--accent); }
.comp-remover { font-size: 13px; padding: 0; }
.comp td.melhor { font-weight: 700; color: var(--accent); }
.comp td.melhor::after { content: " ●"; font-size: 9px; vertical-align: middle; }
.comp .comp-sec th { position: sticky; left: 0; background: var(--bg); padding-top: 28px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.comp td.tem .ok { display: inline-block; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }
.comp td.nao { color: var(--muted); }
.comp tfoot td { border-bottom: 0; }
.comp-legenda { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.top-amostra { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; margin-right: 4px; }
}

/* Colunas dividem a largura disponível; só rola para o lado quando não cabem (largura mínima por imóvel). */
.comp col.c-rot { width: 170px; }
.comp-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.comp-nav[hidden] { display: none; }
.comp-nav span { margin-right: auto; font-size: 13px; color: var(--muted); }
.comp-nav button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); background: none; color: var(--ink); cursor: pointer; }
.comp-nav button:hover:not(:disabled) { border-color: var(--ink); }
.comp-nav button:disabled { opacity: .35; cursor: default; }
.comp-caixa { position: relative; }
.comp-caixa::after { content: ""; position: absolute; top: 1px; right: 1px; bottom: 13px; width: 48px; background: linear-gradient(90deg, transparent, var(--bg)); pointer-events: none; opacity: 0; transition: opacity .2s; }
.comp-caixa.mais-direita::after { opacity: 1; }
@media (max-width: 640px) {
  .comp { font-size: 14px; }
  .comp th, .comp td { padding: 12px; }
  .comp col.c-rot { width: 104px; }
  .comp tbody th[scope="row"], .comp .canto { font-size: 10px; letter-spacing: .08em; }
  .comp-titulo { font-size: 16px; }
}

/* ---------- Localização com sugestões ---------- */
.local-wrap { position: relative; min-width: 0; }
.quick-grid .local-wrap { grid-column: span 2; }
@media (max-width: 520px) { .quick-grid .local-wrap { grid-column: auto; } }
.sugestoes { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 4px 0; list-style: none; max-height: 340px; overflow-y: auto; background: #FFFFFF; color: #002C44; border: 1px solid #B9CAD5; box-shadow: 0 14px 32px rgba(0,20,35,.18); text-transform: none; letter-spacing: 0; }
.sugestoes li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; cursor: pointer; font-size: 15px; line-height: 1.3; }
.sugestoes li small { font-size: 12px; color: #4F6475; }
.sugestoes li[aria-selected="true"], .sugestoes li:hover { background: #EEF4F8; }
.sugestoes li.nada { cursor: default; color: #4F6475; font-size: 14px; }
.sugestoes li.nada:hover { background: none; }
.local-wrap .field input { padding-right: 36px; }
.limpar-local { position: absolute; right: 2px; bottom: 6px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: #4F6475; cursor: pointer; }
.limpar-local:hover { color: #002C44; }
.limpar-local[hidden] { display: none; }
.empty-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Carrosséis (PodBens e Instagram) ---------- */
.carrossel { position: relative; }
.carrossel-nav { display: flex; justify-content: flex-end; gap: 8px; margin: -8px 0 16px; }
.carrossel-nav[hidden] { display: none; }
.carrossel-nav button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); background: none; color: var(--ink); cursor: pointer; }
.carrossel-nav button:hover:not(:disabled) { border-color: var(--ink); }
.carrossel-nav button:disabled { opacity: .35; cursor: default; }
.carrossel-trilho { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 72px) / 4)); gap: 24px; margin: 0; padding: 0 0 12px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carrossel-trilho::-webkit-scrollbar { display: none; }
/* Barra de rolagem discreta: uma linha fina que mostra a posição */
.carrossel-linha { position: relative; height: 2px; margin-top: 8px; background: var(--line); overflow: hidden; }
.carrossel-linha[hidden] { display: none; }
.carrossel-linha span { position: absolute; top: 0; bottom: 0; left: 0; width: 25%; background: var(--ink); transition: transform .15s linear; }
.carrossel-trilho > li { scroll-snap-align: start; min-width: 0; }
.carrossel-trilho a { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.carrossel-mais { margin: 20px 0 0; }
.ep-capa, .post-img { position: relative; display: block; overflow: hidden; background: var(--tile); }
.ep-capa { aspect-ratio: 16 / 9; }
.post-img { aspect-ratio: 4 / 5; }
.ep-capa img, .post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.carrossel-trilho a:hover img { transform: scale(1.04); }
.ep-capa .play, .post-img .play { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(0,44,68,.82); color: #FFFFFF; }
.ep-meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ep-meta b { color: var(--accent); font-weight: 600; }
.ep-titulo { font-family: var(--font-display); font-size: 19px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carrossel-trilho a:hover .ep-titulo { color: var(--accent); }
.post-legenda { font-size: 14px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#instagram .carrossel-trilho { grid-auto-columns: minmax(220px, calc((100% - 96px) / 5)); }
@media (max-width: 640px) { .carrossel-trilho, #instagram .carrossel-trilho { grid-auto-columns: 78%; gap: 16px; } }
.tour-modal.video .tour-body { aspect-ratio: 16 / 9; height: auto; }
.tour-modal.video .tour-box { height: auto; max-height: 100%; width: min(1100px, 100%); }
.tour-modal.video .tour-body { flex: none; width: 100%; }
/* Aviso de favoritos: texto ocupa o espaço livre e o botão não quebra */
.fav-aviso > span { flex: 1 1 auto; min-width: 0; }
.fav-aviso a, .fav-aviso button { white-space: nowrap; }
@media (max-width: 640px) {
  .fav-aviso { left: 16px; right: 16px; bottom: 16px; max-width: none; transform: translateY(16px); flex-wrap: wrap; gap: 10px 12px; padding: 14px 16px; }
  .fav-aviso.on { transform: none; }
  .fav-aviso a, .fav-aviso button { margin-left: 0; flex: 1 0 100%; text-align: center; padding: 11px 14px; }
}

/* ---------- Botão tema claro / escuro ---------- */
.top-acoes { display: none; align-items: center; gap: 8px; }
.tema-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--navy-line); border-radius: 2px; background: transparent; color: #D5E3EC; cursor: pointer; transition: color .2s, border-color .2s; }
.tema-btn:hover { color: var(--on-navy); border-color: var(--sky); }
.tema-btn .ic-sol { display: none; }
:root[data-theme="dark"] .tema-btn .ic-sol { display: block; }
:root[data-theme="dark"] .tema-btn .ic-lua { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tema-btn .ic-sol { display: block; }
  :root:not([data-theme="light"]) .tema-btn .ic-lua { display: none; }
}
.tema-btn.so-celular { display: none; }
@media (max-width: 940px) {
  .top-acoes { display: flex; }
  .tema-btn.so-celular { display: inline-flex; height: 44px; width: 44px; }
  .tema-btn.so-computador { display: none; }
}
.foto-socios { margin: 32px 0 0; overflow: hidden; }
.foto-socios img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.foto-socios figcaption { margin-top: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Mercado imobiliário ---------- */
.barras-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; }
.barras h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; }
.barras-nota { margin: 4px 0 20px; font-size: 14px; color: var(--muted); }
.barras ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.barras li { display: grid; gap: 6px; }
.barras li a { display: flex; justify-content: space-between; gap: 16px; color: var(--ink); text-decoration: none; font-size: 15px; }
.barras li a:hover .b-nome { color: var(--accent); }
.b-valor { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.b-trilho { display: block; height: 8px; background: var(--line); }
.b-trilho span { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
html.anim section:not(.on) .b-trilho span { transform: scaleX(0); }
.b-amostra { font-size: 12px; color: var(--muted); }
.mercado-condos { display: grid; gap: 28px; }
.mercado-condo { border: 1px solid var(--line); background: var(--bg); scroll-margin-top: 24px; }
.mercado-condo header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mercado-condo h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; }
.mercado-condo h3 a { color: var(--ink); text-decoration: none; }
.mercado-condo h3 a:hover { color: var(--accent); }
.mercado-condo header span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px 40px; }
.num-grupo h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink); font-family: inherit; }
.num-grupo h3 span { margin-left: 8px; font-weight: 400; letter-spacing: .1em; color: var(--muted); }
.num-grupo dl { margin: 0; display: grid; gap: 14px; }
.num-grupo dl > div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.num-grupo dt { font-size: 13px; color: var(--muted); }
.num-grupo dd { margin: 0; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.num-grupo dd small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.num-grupo dd .sem { font-size: 14px; color: var(--muted); font-style: italic; }
.mercado-ver { margin: 20px 0 0; }
.metodo { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.metodo li { padding-left: 22px; position: relative; }
.metodo li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--accent); }
#mercado .numeros { margin-top: 8px; }
.mercado-outros { margin-top: 64px; }

/* Fichas recolhidas */
.mercado-condos { gap: 12px; }
.mercado-condo summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 22px 28px; cursor: pointer; list-style: none; }
.mercado-condo summary::-webkit-details-marker { display: none; }
.mercado-condo summary:hover h3 { color: var(--accent); }
.mc-nome { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; flex: 1 1 260px; }
.mc-nome h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--ink); transition: color .2s; }
.mc-qtd { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mc-resumo { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mc-seta { width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .3s; margin-left: 8px; }
.mercado-condo[open] .mc-seta { transform: rotate(-135deg) translateY(-2px); }
.mc-corpo { padding: 4px 28px 28px; border-top: 1px solid var(--line); }
.mc-corpo .numeros { margin-top: 24px; }
@media (max-width: 640px) { .mercado-condo summary { padding: 18px; } .mc-corpo { padding: 4px 18px 22px; } .mc-nome h3 { font-size: 22px; } }

/* Oscilação e gráfico de evolução */
.osc { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); white-space: nowrap; }
.osc.sobe { color: #1B7F4B; }
.osc.desce { color: #B3261E; }
.osc small { font-weight: 400; color: var(--muted); }
:root[data-theme="dark"] .osc.sobe { color: #6FD39B; } :root[data-theme="dark"] .osc.desce { color: #FF9A8F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .osc.sobe { color: #6FD39B; } :root:not([data-theme="light"]) .osc.desce { color: #FF9A8F; } }
.mc-resumo .osc { font-size: 13px; }
.grafico { margin: 0; }
.grafico figcaption { margin-bottom: 12px; }
.grafico figcaption h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; }
.grafico figcaption span { font-size: 14px; color: var(--muted); }
.grafico svg { width: 100%; height: auto; display: block; overflow: visible; }
.g-grade { stroke: var(--line); stroke-width: 1; }
.g-eixo { font-size: 11px; fill: var(--muted); font-family: inherit; }
.g-rotulo { font-size: 12px; font-weight: 600; font-family: inherit; }
.aviso-previa { background: #FFF3CD; color: #5C4400; font-size: 14px; padding: 12px 0; }
.aviso-previa a { color: #5C4400; font-weight: 600; }

/* Gráfico de evolução de cada condomínio */
.evo { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.evo-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 12px; }
.evo-topo h3 { margin: 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.evo-so { font-size: 13px; color: var(--muted); }
.evo-periodos { margin-bottom: 12px; }
.evo-periodos button { min-height: 34px; padding: 0 12px; font-size: 11px; }
.evo-periodos button:disabled { opacity: .35; cursor: default; }
.evo-var { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.evo-grafico svg { width: 100%; height: auto; display: block; overflow: visible; }
.evo-grafico .g-eixo { font-size: 11px; }
.evo-linha { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.evo-area { fill: var(--accent); opacity: .08; }
.evo-ponto { fill: var(--accent); }
.evo-vazio { color: var(--muted); font-size: 14px; }
.osc small, .num-grupo dd small .osc small { display: inline; margin: 0; }
/* Cartões da mesma linha: preço e linha separadora alinhados, qualquer que seja o tamanho do título */
.card-info { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.card-info .price { margin-top: auto; padding-top: 4px; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 48px 32px; }
.post-card a { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; height: 100%; }
.post-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tile); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.post-card a:hover .post-card-img img { transform: scale(1.03); }
.post-card-sem { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--navy-line)); }
.post-card-data { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.25; color: var(--ink); }
.post-card a:hover h3 { color: var(--accent); }
.post-card p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.paginacao { display: flex; gap: 24px; justify-content: center; align-items: center; margin-top: 56px; color: var(--muted); }
.paginacao a { color: var(--accent); }
.aviso-ok { background: var(--ok-bg); color: var(--ok-fg); padding: 14px 18px; margin: 0 0 32px; }
.aviso-previa { background: var(--warn-bg); color: var(--warn-fg); font-size: 14px; }
.aviso-previa .wrap { padding-block: 12px; }
.aviso-previa a { color: inherit; }
.post-wrap { max-width: 760px; padding-block: 24px 72px; }
.post-cab h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 12px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.post-resumo { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin: 20px 0 0; }
.post-capa { margin: 40px 0 0; }
.post-capa img { width: 100%; height: auto; display: block; }
.post-texto { margin-top: 40px; font-size: 18px; line-height: 1.8; color: var(--ink); overflow-wrap: break-word; }
.post-texto > * { margin: 0 0 1.2em; }
.post-texto h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.2; margin-top: 1.6em; }
.post-texto h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin-top: 1.4em; }
.post-texto a { color: var(--accent); text-underline-offset: 3px; }
.post-texto img { max-width: 100%; height: auto; display: block; }
.post-texto figure { margin: 2em 0; }
.post-texto figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.post-texto blockquote { border-left: 2px solid var(--accent); padding-left: 20px; color: var(--ink-2); font-style: italic; }
.post-texto ul, .post-texto ol { padding-left: 1.3em; }
.post-texto li { margin-bottom: .4em; }
.post-texto hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-rodape { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; color: var(--muted); font-size: 14px; }
.post-rodape a { color: var(--accent); }
html.anim .post-card.rv-c .post-card-img img { transform: scale(1.1); transition: transform 2s cubic-bezier(.16,1,.3,1); }
html.anim .post-card.rv-c.on .post-card-img img { transform: none; }
html.anim .post-card.rv-c.on a:hover .post-card-img img { transform: scale(1.03); transition-duration: 1.2s; }
html.anim .post-texto figure.rv-c img { transform: scale(1.06); transition: transform 2s cubic-bezier(.16,1,.3,1); }
html.anim .post-texto figure.rv-c.on img { transform: none; }
.post-texto figure { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .post-capa.ib-wipe img { animation: none; } }
.temas-filtro { display: flex; margin: 0 0 40px; }
.temas-filtro a { text-transform: none; letter-spacing: .02em; font-size: 13px; }
.post-card-tema { color: var(--accent); }
.post-temas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 0; }
.post-temas .tema { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .25s ease, color .25s ease; }
.post-temas .tema:hover { border-color: var(--ink); color: var(--ink); }
.post-rodape .post-temas { margin: 0 0 16px; }
@media (max-width: 700px) { .temas-filtro { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 10px; scrollbar-width: thin; } .temas-filtro a { flex: none; white-space: nowrap; } }
.post-autor { margin-top: 56px; padding: 28px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.post-autor .eyebrow { margin: 0 0 8px; }
.post-autor p { margin: 0; }
.post-autor-nome { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--ink); }
.post-autor-cargo { color: var(--muted); }
.post-autor a { color: var(--accent); }
.post-autor + .post-rodape { margin-top: 28px; }
.mercado-ver { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.guia-tema { margin: -16px 0 36px; padding: 16px 20px; border: 1px solid var(--line); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
/* Condomínios: comparar lado a lado (seleção → janela de comparação) */
.condo-ctrl { margin: 0 0 24px; }
.cc { margin: 0 0 40px; }
.cc[hidden] { display: none; }
.cc-topo { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.cc-msg { margin: 0; font-size: 16px; color: var(--ink-2); }
.cc-msg b { color: var(--ink); font-weight: 600; }
.cc-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-acoes .btn[hidden] { display: none; }
.cc-acoes .btn:disabled { opacity: .4; cursor: default; }
.cc-janela { border: 1px dashed var(--line-strong); padding: 18px; min-height: 120px; background: var(--bg-soft); transition: border-color .3s; }
.condos.selecionando ~ * .cc-janela, .cc-janela { position: relative; }
.cc-vazio { margin: 0; padding: 26px 0; text-align: center; color: var(--muted); }
.cc-vazio[hidden] { display: none; }
.cc-nav { margin: 0 0 12px; }
.cc-trilho { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.cc-trilho::-webkit-scrollbar { display: none; }
.cc-item { position: relative; flex: 0 0 250px; scroll-snap-align: start; }
.cc-item .condo { width: 100%; height: 100%; min-height: 0; gap: 18px; }
.cc-item .condo strong { min-height: 2.2em; }
.cc-tirar { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.cc-tirar:hover { border-color: var(--ink); }
.cc-nota { margin: 12px 0 0; font-size: 13px; color: var(--muted); max-width: 70ch; }
.cc-nota a { color: var(--accent); }
.condos.selecionando .condo { position: relative; cursor: copy; }
.condos.selecionando .condo::after { content: "+ Comparar"; position: absolute; bottom: 20px; right: 16px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--accent); color: var(--accent); background: var(--bg); }
.condos.selecionando .condo:hover::after { background: var(--accent); color: var(--bg); }
.condos.selecionando .condo.na-comparacao { opacity: .5; cursor: pointer; }
.condos.selecionando .condo.na-comparacao::after { content: "✓ Na comparação"; border-color: var(--line-strong); color: var(--muted); }
.cc.concluido .cc-janela { border: 0; background: none; padding: 0; min-height: 0; }
.cc-voando { box-shadow: 0 18px 40px rgba(0, 20, 35, .25); pointer-events: none; overflow: hidden; }
.cc-voando .condo-comp { display: none; }
.condo-comp { margin: 18px 0 4px; display: flex; flex-direction: column; }
.condo-comp div { padding: 10px 0; border-top: 1px solid var(--line); }
.condo-comp dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.condo-comp dd { margin: 3px 0 0; font-size: 16px; color: var(--ink); white-space: nowrap; }
.condo-comp .osc small { display: none; }
.condos.selecionando .condo span.more, .cc-voando span.more { display: none; }
.condos.selecionando .condo { padding-bottom: 60px; }
.condos.selecionando .condo.na-comparacao:hover::after { background: var(--bg); color: var(--muted); }
.cc-voando > * { opacity: 0; }
/* Na janela de comparação o conteúdo do cartão cresce de cima para baixo (os cartões têm a mesma altura) */
.cc-item .condo { justify-content: flex-start; }
.cc-item .condo > span { display: flex; flex-direction: column; flex: 1; }
.cc-item .condo span.more { margin-top: auto; padding-top: 12px; }
/* Destaques da home: texto escolhido no gerenciador */
.card-destaque { margin: 0 0 6px; min-height: 1.5em; align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.section.sem-topo { padding-top: 0; }
/* Rodapé: o símbolo "ib" (i de invest, b de bens) se abre em "investbens" ao clicar.
   As quatro partes vêm da mesma imagem do logotipo: i · nvest · .b · ens. Fechado, só o i e o .b aparecem. */
.ib-assina { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ib-marca { --u: calc(40px / 178); display: inline-flex; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.ib-marca:focus-visible { outline: 2px solid #0061B5; outline-offset: 4px; }
.ibp { display: block; height: 100%; flex: none; background: url(/assets/fotos/palavra-investbens.webp?v=2) no-repeat; background-size: calc(var(--u) * 1240) 100%; }
.ibp-i { width: calc(var(--u) * 24); background-position: calc(var(--u) * -20) 0; }
.ibp-nvest { width: calc(var(--u) * 21); background-position: calc(var(--u) * -44) 0; transition: width .95s cubic-bezier(.65, 0, .35, 1); }
.ibp-b { width: calc(var(--u) * 136); background-position: calc(var(--u) * -690) 0; }
.ibp-ens { width: 0; background-position: calc(var(--u) * -826) 0; transition: width .8s cubic-bezier(.65, 0, .35, 1) .12s; }
.ib-marca[aria-expanded="true"] .ibp-nvest { width: calc(var(--u) * 646); }
.ib-marca[aria-expanded="true"] .ibp-ens { width: calc(var(--u) * 394); }
.ib-credito { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 12px; letter-spacing: .08em; color: #4F6475; opacity: 0; transform: translateY(-6px); transition: opacity .4s ease, transform .5s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.ib-marca[aria-expanded="true"] + .ib-credito { opacity: 1; transform: none; transition-delay: .85s; pointer-events: auto; }
.ib-credito .ib-topo, .foot .ib-credito .ib-topo { display: inline; padding: 0; color: #0061B5; text-decoration: underline; text-underline-offset: 3px; letter-spacing: .08em; opacity: 0; transition: opacity .35s ease; }
.ib-marca[aria-expanded="true"] + .ib-credito .ib-topo { opacity: 1; transition-delay: 1.2s; }
.foot .ib-credito .ib-topo:hover { color: #002C44; }
.foot .foot-topo { display: inline-block; padding: 0; }
@media (prefers-reduced-motion: reduce) { .ibp-nvest, .ibp-ens, .ib-credito { transition: none !important; } }
@media (max-width: 640px) { .foot .legal { flex-direction: column; align-items: flex-start; } .ib-assina { align-items: flex-start; } }
.ib-credito { visibility: hidden; }
.ib-marca[aria-expanded="true"] + .ib-credito { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .ib-credito .ib-topo { transition: none !important; } }
/* Crédito e "Voltar ao topo" centralizados abaixo da marca aberta */
.ib-assina { position: relative; transition: padding-bottom .5s cubic-bezier(.16, 1, .3, 1); }
.ib-assina.aberta { padding-bottom: 58px; }
.ib-credito { position: absolute; left: 0; right: 0; top: 46px; flex-direction: column; align-items: center; gap: 2px; text-align: center; white-space: nowrap; }
/* Marca fechada: o crédito (invisível) não pode ocupar espaço fora da tela, senão a página ganha rolagem lateral */
.ib-marca:not([aria-expanded="true"]) + .ib-credito { left: auto; width: 0; overflow: hidden; }
.foot { overflow-x: clip; }
