/* Página de segmento (software imobiliário) · 26/11/2026
   Cena própria: o mesmo ERP anunciado de dois jeitos (genérico x língua do nicho). */

/* Cena do topo */
.anuncios { position: relative; display: grid; gap: 14px; margin: 0; }
.anuncio { display: grid; gap: 10px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
.anuncio__cab { display: flex; align-items: center; gap: 10px; }
.anuncio__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt); color: var(--text-3); font-size: .75rem; font-weight: 700; }
.anuncio__quem { display: grid; line-height: 1.25; }
.anuncio__quem strong { color: var(--white); font-size: .875rem; }
.anuncio__quem span { color: var(--text-3); font-size: .75rem; }
.anuncio__rotulo { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.anuncio__texto { color: var(--white); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.anuncio__nota { color: var(--text-3); font-size: .8125rem; line-height: 1.45; }

.anuncio--generico { opacity: .72; }
.anuncio--generico .anuncio__rotulo { background: rgba(139,147,167,.14); color: var(--text-3); }
.anuncio--generico .anuncio__texto { color: var(--text-2); font-weight: 500; }

.anuncio--nicho { border: 1px solid rgba(255,94,0,.55); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.anuncio--nicho .anuncio__avatar { background: rgba(255,94,0,.16); color: #ff8a4d; }
.anuncio--nicho .anuncio__rotulo { background: rgba(255,94,0,.16); color: #ff8a4d; }
.anuncio__resultado { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .875rem; }
.anuncio__resultado strong { color: var(--white); font-size: 1.125rem; }

.segmentos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.segmentos li { padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: .8125rem; }
.segmentos__fonte { color: var(--text-3); font-size: .75rem; }

@media (min-width: 960px) {
  .anuncio--generico { margin-right: 14%; }
  .anuncio--nicho { margin-left: 8%; }
}

/* Tabela de canais */
.tabela-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius-lg); }
.tabela { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9375rem; }
.tabela caption { padding: 14px 18px; color: var(--text-3); font-size: .8125rem; text-align: left; caption-side: bottom; border-top: 1px solid var(--line); }
.tabela th, .tabela td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tabela thead th { background: var(--surface); color: var(--text-3); font-size: .8125rem; font-weight: 600; }
.tabela tbody th { color: var(--white); font-weight: 700; white-space: nowrap; }
.tabela td { color: var(--text-2); line-height: 1.5; }
.tabela tbody tr:last-child th, .tabela tbody tr:last-child td { border-bottom: 0; }

/* Lista de como vende */
.vende { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.vende li { padding: 16px 18px; border-left: 3px solid var(--blue); border-radius: var(--radius); background: var(--bg-alt); color: var(--text-2); line-height: 1.55; }
.vende strong { display: block; color: var(--white); }
@media (min-width: 768px) { .vende { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cases do setor */
.cases-setor { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.case-setor { display: grid; gap: 8px; height: 100%; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-2); text-decoration: none; transition: border-color .2s; }
.case-setor:hover, .case-setor:focus-visible { border-color: var(--blue); }
.case-setor__nome { color: var(--white); font-size: 1.1875rem; font-weight: 700; }
.case-setor__soft { font-size: .875rem; }
.case-setor__num { margin-top: 6px; color: var(--blue); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.case-setor__rot { font-size: .9375rem; line-height: 1.45; }
.case-setor__ir { margin-top: 8px; color: var(--white); font-size: .875rem; font-weight: 600; }
@media (min-width: 768px) { .cases-setor { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

/* Fundo do topo: prédios residenciais ao anoitecer (Gemini, 26/11/2026). Escurecido para manter o contraste do texto. */
.hero--setor { position: relative; isolation: isolate; background-color: var(--bg); background-image:
    linear-gradient(180deg, rgba(5,7,15,.84) 0%, rgba(5,7,15,.70) 45%, rgba(5,7,15,.94) 100%),
    url("../img/fundo-imobiliario-cel.webp");
  background-size: cover; background-position: center top; }
@media (min-width: 768px) {
  .hero--setor { background-image:
      linear-gradient(90deg, rgba(5,7,15,.95) 0%, rgba(5,7,15,.80) 40%, rgba(5,7,15,.30) 72%, rgba(5,7,15,.45) 100%),
      linear-gradient(180deg, rgba(5,7,15,.25) 0%, rgba(5,7,15,0) 25%, rgba(5,7,15,0) 75%, rgba(5,7,15,1) 100%),
      url("../img/fundo-imobiliario-1920.webp");
    background-position: center 60%; }
}
.hero--setor .anuncio { background: rgba(16,23,43,.92); backdrop-filter: blur(6px); }
.hero--setor .segmentos li { background: rgba(5,7,15,.6); }

/* Ajustes v4 (26/11/2026): a trilha entra no topo, sobre a foto; 2 depoimentos centralizados */
.hero--setor .trilha { margin: 0 auto 28px; padding-top: 0; }
@media (min-width: 900px) { .vozes--duas { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; margin-inline: auto; } }

/* v6 (26/11/2026): revisão do Edson */
/* 1. No celular, a tabela de canais vira cartões (no computador continua tabela) */
@media (max-width: 767px) {
  .tabela-wrap { overflow: visible; border: 0; border-radius: 0; }
  .tabela { min-width: 0; }
  .tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabela, .tabela tbody, .tabela tr, .tabela th, .tabela td { display: block; width: 100%; }
  .tabela tbody { display: grid; gap: 12px; }
  .tabela tr { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
  .tabela tbody th, .tabela td { padding: 0; border: 0; white-space: normal; }
  .tabela tbody th { margin-bottom: 10px; font-size: 1.0625rem; }
  .tabela td + td { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .tabela td::before { content: attr(data-rotulo); display: block; margin-bottom: 2px; color: var(--text-3); font-size: .75rem; font-weight: 600; }
  .tabela caption { display: block; padding: 12px 2px 0; border: 0; }
}
/* 2. Frase do José Luis centralizada, na largura dos depoimentos */
#case .citacao--case { max-width: 780px; margin-inline: auto; }
/* 3. Links do fim da seção viram botões pequenos */
.links-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.links-botoes a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-alt); color: var(--white); font-size: .9375rem; font-weight: 600; text-decoration: none; transition: border-color .2s; }
.links-botoes a:hover, .links-botoes a:focus-visible { border-color: var(--blue); }
@media (max-width: 479px) { .links-botoes { flex-direction: column; } .links-botoes a { justify-content: center; width: 100%; } }

/* v7 (26/11/2026): ícone de cada canal na tabela */
.canal-tab { display: inline-flex; align-items: center; gap: 10px; }
.canal-tab__icone { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: #fff; }
.canal-tab__icone svg { width: 18px; height: 18px; }
.tabela tbody tr:last-child .canal-tab__icone { background: rgba(255,94,0,.14); }
@media (max-width: 767px) { .tabela { display: flex; flex-direction: column; } .tabela caption { order: 2; } }

#case .cta-linha { text-align: center; }

/* Cena própria da página de imobiliário: antes e depois nas mesmas campanhas (case Midas CRM) */
.antesdepois { margin: 0; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: rgba(16,23,43,.74); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.antesdepois__topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.antesdepois__nome { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-size: 1rem; font-weight: 700; }
.antesdepois__nome img { width: auto; height: 22px; }
.antesdepois__tag { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: .8125rem; }
.metrica { margin-top: 16px; }
.metrica__nome { display: flex; justify-content: space-between; align-items: baseline; color: var(--text-2); font-size: .8125rem; font-weight: 600; }
.metrica__delta { color: var(--verde, #3ddc97); font-size: .9375rem; font-weight: 800; }
.barra { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px; margin-top: 8px; }
.barra__rot { color: var(--text-3); font-size: .75rem; }
.barra__trilho { height: 12px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.barra__trilho span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: rgba(139,147,167,.55); transform-origin: left; }
.barra--im .barra__trilho span { background: linear-gradient(90deg, var(--blue), #49dbff); }
.barra__val { min-width: 74px; color: var(--white); font-size: .9375rem; font-weight: 700; text-align: right; }
.barra--antes .barra__val { color: var(--text-2); font-weight: 600; }
.antesdepois__frase { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--orange); border-radius: var(--radius); background: rgba(5,7,15,.55); color: var(--text-2); font-size: .875rem; line-height: 1.45; }
.antesdepois__frase strong { color: var(--white); }
.antesdepois__rodape { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .75rem; }
@media (min-width: 960px) { .antesdepois { margin-left: 6%; } }
.case-marca { display: flex; align-items: center; gap: 14px; margin: 8px 0 24px; color: var(--text-2); font-size: .9375rem; }
.case-marca img { width: auto; height: 34px; }
.antesdepois-tab { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .antesdepois-tab { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.antesdepois-tab > div { padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-2); font-size: .9375rem; line-height: 1.5; }
.antesdepois-tab strong { display: block; margin-bottom: 4px; color: var(--white); }
.antesdepois-tab .destaque { border-color: rgba(0,196,244,.55); }

@media (prefers-reduced-motion: no-preference) {
  .antesdepois { animation: ad-entra .5s ease-out both; }
  .barra__trilho span { animation: ad-barra 1s cubic-bezier(.2,.8,.2,1) both; }
  .metrica:nth-of-type(1) .barra--antes .barra__trilho span { animation-delay: .5s; }
  .metrica:nth-of-type(1) .barra--im .barra__trilho span { animation-delay: 1.1s; }
  .metrica:nth-of-type(2) .barra--antes .barra__trilho span { animation-delay: .8s; }
  .metrica:nth-of-type(2) .barra--im .barra__trilho span { animation-delay: 1.4s; }
  .metrica__delta { animation: ad-surge .5s ease-out 2.2s both; }
  .antesdepois__frase { animation: ad-surge .5s ease-out 2.6s both; }
  .antesdepois__rodape { animation: ad-surge .5s ease-out 2.8s both; }
}
@keyframes ad-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ad-barra { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ad-surge { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
