/* Clínica Fortalecer Acre — protótipo Dissonauro
   Cores amostradas da Apresentação Institucional (confirmar com o .cdr) */

/* assinatura ("quem você é", "só falta você"): Oswald fina inclinada — gratuita (a Heading Now era versão de teste) */

:root {
  --papel: #EDE5E2;
  --papel-2: #E3D9D7;
  --musgo: #515A45;
  --musgo-2: #6F7862;
  --salvia: #C8C6B7;
  --terracota: #D79A88;
  --terracota-forte: #C27A64;
  --cafe: #3A2418;
  --cafe-2: #735D4B;
  --branco: #FBF8F6;
  --sombra: 0 18px 50px -24px rgba(58, 36, 24, .35);
  --raio: 28px;
  --titulo: 'Quicksand', 'Century Gothic', sans-serif;
  --texto: 'Questrial', 'Quicksand', sans-serif; /* Questrial (Google Fonts, gratuita) no lugar da Century Gothic (paga) */
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--papel);
  color: var(--cafe);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
/* textura de papel, como no material impresso */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
main, header, footer, section { position: relative; z-index: 1; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--titulo); color: var(--musgo); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.25rem; }
.olho { display: inline-block; font-family: var(--titulo); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--branco); background: var(--terracota-forte); padding: .35em .9em; border-radius: 99px; margin-bottom: 1.1rem; }
.lead { font-size: 1.1rem; font-weight: 700; color: var(--cafe); max-width: 34em; }
section { padding: clamp(72px, 10vw, 130px) 0; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; cursor: pointer; border: 0;
  font-family: var(--titulo); font-weight: 700; font-size: 1rem;
  padding: .95em 1.6em; border-radius: 99px;
  background: var(--musgo); color: var(--branco);
  transition: transform .5s var(--ease), background .3s, box-shadow .5s var(--ease);
  box-shadow: 0 10px 24px -14px rgba(81, 90, 69, .8);
}
.btn:hover { transform: translateY(-3px); background: var(--cafe); }
.btn.terra { background: var(--terracota-forte); box-shadow: 0 10px 24px -14px rgba(194, 122, 100, .9); }
.btn.terra:hover { background: #a9604b; }
.btn.claro { background: var(--branco); color: var(--musgo); box-shadow: none; border: 1.5px solid var(--salvia); }
.btn.claro:hover { background: var(--musgo); color: var(--branco); }
.btn svg { width: 1.15em; height: 1.15em; }

/* ---------- cabeçalho ---------- */
.topo {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1240px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 10px 12px 10px 22px; border-radius: 99px;
  background: rgba(251, 248, 246, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -20px rgba(58, 36, 24, .45);
  transition: padding .4s var(--ease);
}
.topo .logo img { height: 46px; width: auto; }
.topo nav { display: flex; gap: 1.6rem; font-family: var(--titulo); font-weight: 700; font-size: .95rem; }
.topo nav a { position: relative; color: var(--cafe-2); transition: color .3s; }
.topo nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--terracota-forte); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.topo nav a:hover, .topo nav a.ativo { color: var(--musgo); }
.topo nav a:hover::after, .topo nav a.ativo::after { transform: scaleX(1); }
.topo .btn { padding: .75em 1.3em; font-size: .92rem; }
.topo-acoes { display: flex; align-items: center; gap: 8px; }
@media (max-width: 960px) { .topo-acoes { margin-left: auto; } }
.ig-topo { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--musgo); border: 1.5px solid var(--salvia); transition: background .35s, color .35s, transform .5s var(--ease), border-color .35s; }
.ig-topo svg { width: 20px; height: 20px; }
.ig-topo:hover { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); color: #fff; border-color: transparent; transform: rotate(-8deg) scale(1.06); }
.redes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.btn-ig { background: var(--branco); color: var(--musgo); border: 1.5px solid var(--salvia); box-shadow: none; }
.btn-ig:hover { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); color: #fff; border-color: transparent; }
.estrelinhas { letter-spacing: .05em; font-size: .85em; color: #FFE7A3; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--musgo); margin: 5px auto; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }

@media (max-width: 960px) {
  .topo nav { position: fixed; inset: 76px 0 auto 0; margin: 0 12px; flex-direction: column; gap: 0; background: var(--branco); border-radius: 24px; padding: 8px; box-shadow: var(--sombra); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .4s var(--ease); }
  .topo nav a { padding: 14px 16px; }
  .topo.aberto nav { opacity: 1; pointer-events: auto; transform: none; }
  .topo.aberto .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topo.aberto .menu-btn span:nth-child(2) { opacity: 0; }
  .topo.aberto .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-btn { display: block; }
  .topo .btn.so-desk { display: none; }
  .topo .logo img { height: 38px; }
}

/* ---------- formas orgânicas (blobs) ---------- */
.blob { position: absolute; pointer-events: none; z-index: 0; }
.blob path { transition: none; }

/* ---------- intro: motion aprovado da logo ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: #fff;
  display: grid; place-items: center;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.intro video { width: min(900px, 92vw); height: auto; }
.intro.saindo { opacity: 0; visibility: hidden; }
.intro button { position: absolute; bottom: 28px; right: 28px; background: none; border: 1px solid var(--salvia); border-radius: 99px; padding: .5em 1.1em; font-family: var(--titulo); font-weight: 700; font-size: .85rem; color: var(--cafe-2); cursor: pointer; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding: 120px 0 60px; display: flex; align-items: center; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(24px, 4vw, 64px); align-items: center; position: relative; z-index: 2; }
.hero h1 span { display: block; }
.hero h1 .script { font-family: 'Oswald', var(--titulo); font-weight: 200; font-style: italic; color: var(--terracota-forte); font-size: 1.15em; letter-spacing: .01em; line-height: 1; margin-top: .05em; }
.hero .lead { margin: 1.4rem 0 2rem; }
.hero .acoes { display: flex; flex-wrap: wrap; gap: 12px; }

.carrossel { position: relative; aspect-ratio: 1 / 1.02; width: 100%; }
.carrossel svg.mascara { position: absolute; width: 0; height: 0; }
.carrossel .palco { position: absolute; inset: 0; clip-path: url(#mascara-hero); }
.carrossel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.carrossel .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7s linear; }
.carrossel .slide.ativo { opacity: 1; }
.carrossel .slide.ativo img { transform: scale(1.0); }
.carrossel .legenda {
  position: absolute; left: 6%; bottom: 7%; z-index: 3;
  background: rgba(251, 248, 246, .9); backdrop-filter: blur(8px);
  padding: .7em 1.2em; border-radius: 99px; font-family: var(--titulo); font-weight: 700; font-size: .9rem; color: var(--musgo);
  display: flex; align-items: center; gap: .7em; box-shadow: var(--sombra);
}
.carrossel .legenda i { width: 9px; height: 9px; border-radius: 50%; background: var(--terracota-forte); animation: pulso 2.4s ease-in-out infinite; }
.carrossel .pontos { position: absolute; right: 8%; bottom: 8%; z-index: 3; display: flex; gap: 8px; }
.carrossel .pontos button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(251, 248, 246, .7); cursor: pointer; transition: width .6s var(--ease), background .3s; }
.carrossel .pontos button.ativo { width: 30px; background: var(--branco); }
@keyframes pulso { 50% { transform: scale(1.6); opacity: .5; } }

.selo-ilustrativo { position: absolute; top: 6%; right: 4%; z-index: 3; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(58, 36, 24, .55); color: #fff; padding: .3em .8em; border-radius: 99px; }

@media (max-width: 860px) {
  .hero { padding-top: 100px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .carrossel { order: -1; max-width: 520px; margin-inline: auto; }
}

/* ---------- revelação ao rolar ---------- */
.revela { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease); }
.revela.visivel { opacity: 1; transform: none; filter: none; }
.revela[data-atraso='1'] { transition-delay: .12s; }
.revela[data-atraso='2'] { transition-delay: .24s; }
.revela[data-atraso='3'] { transition-delay: .36s; }

/* ---------- quem somos ---------- */
.quem .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.quem p + p { margin-top: 1em; }
.fundadores { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; min-height: 520px; }
.fundador { position: relative; text-align: center; }
.fundador .foto { position: relative; height: 470px; display: flex; align-items: flex-end; justify-content: center; }
.fundador .foto img { position: relative; z-index: 2; height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(58, 36, 24, .18)); }
.fundador .foto .blob { inset: 18% -6% 4% -6%; width: 112%; height: 78%; z-index: 1; }
.fundador .nome { position: relative; z-index: 3; margin-top: -24px; background: var(--branco); border-radius: 18px; padding: .8em 1em; box-shadow: var(--sombra); display: inline-block; }
.fundador .nome strong { display: block; font-family: var(--titulo); color: var(--musgo); }
.fundador .nome small { color: var(--cafe-2); font-size: .8rem; }
.fundador:nth-child(2) { transform: translateY(40px); }
.numeros { display: flex; gap: 28px; margin-top: 2.2rem; flex-wrap: wrap; }
.numeros div strong { display: block; font-family: var(--titulo); font-size: 2.4rem; color: var(--terracota-forte); line-height: 1; }
.numeros div span { font-size: .85rem; color: var(--cafe-2); }
@media (max-width: 860px) {
  .quem .wrap { grid-template-columns: 1fr; }
  .fundadores { min-height: 0; }
  .fundador .foto { height: 300px; }
}

/* ---------- missão / visão / valores ---------- */
.mvv { background: var(--musgo); color: var(--papel); border-radius: 48px; margin: 0 12px; overflow: hidden; }
.mvv h2, .mvv h3 { color: var(--branco); }
.mvv .grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.mvv .card { background: rgba(251, 248, 246, .08); border: 1px solid rgba(251, 248, 246, .14); border-radius: var(--raio); padding: 30px; }
.mvv .card h3 { margin-bottom: .6em; font-size: 1.5rem; }
.mvv ul { list-style: none; display: grid; gap: .45em; }
.mvv li::before { content: '→ '; color: var(--terracota); font-weight: 700; }
.mvv .blob { right: -12%; top: -20%; width: 60%; opacity: .5; }
@media (max-width: 860px) { .mvv .grade { grid-template-columns: 1fr; } .mvv { border-radius: 32px; } }

/* ---------- serviços ---------- */
.servicos .topo-sec { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--salvia); background: var(--branco); color: var(--cafe-2);
  font-family: var(--titulo); font-weight: 700; font-size: .9rem;
  padding: .55em 1.1em; border-radius: 99px; cursor: pointer; white-space: nowrap; flex: none;
  transition: background .35s var(--ease), color .35s, border-color .35s, transform .4s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--musgo-2); }
.chip.ativo { background: var(--musgo); border-color: var(--musgo); color: var(--branco); }
.lista-servicos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.servico {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: var(--branco);
  font-family: var(--titulo); font-weight: 700; color: var(--musgo); line-height: 1.25;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s;
}
.servico:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.servico .seta { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--cafe); color: var(--branco); display: grid; place-items: center; font-size: .9rem; }

/* ---------- espaços (galeria) ---------- */
.espacos .galeria { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 14px; margin-top: 40px; }
.espacos figure { position: relative; overflow: hidden; border-radius: var(--raio); }
.espacos figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.espacos figure:hover img { transform: scale(1.06); }
.espacos figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(251, 248, 246, .92); color: var(--musgo); font-family: var(--titulo); font-weight: 700; font-size: .82rem; padding: .4em .9em; border-radius: 99px; }
.espacos figure:nth-child(1) { grid-column: span 5; grid-row: span 4; border-radius: 120px 28px 28px 28px; }
.espacos figure:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.espacos figure:nth-child(3) { grid-column: span 3; grid-row: span 3; border-radius: 28px 120px 28px 28px; }
.espacos figure:nth-child(4) { grid-column: span 4; grid-row: span 2; }
.espacos figure:nth-child(5) { grid-column: span 3; grid-row: span 1; }
/* Nossos espaços em carrossel (opção do painel) */
.espacos .galeria.modo-carrossel {
  display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; grid-template-columns: none; grid-auto-rows: auto;
  margin-inline: calc(50% - 50vw); padding-inline: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.espacos .galeria.modo-carrossel::-webkit-scrollbar { display: none; }
.espacos .galeria.modo-carrossel figure { flex: none; width: clamp(240px, 32vw, 420px); height: clamp(200px, 24vw, 300px); grid-column: auto !important; grid-row: auto !important; border-radius: 28px !important; }
@media (max-width: 860px) {
  .espacos .galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .espacos figure:nth-child(n) { grid-column: span 1; grid-row: span 1; border-radius: 24px; }
  .espacos figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

/* ---------- faixa Unimed ---------- */
.faixa-convenio {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--branco); border-radius: 36px; padding: 28px 32px; box-shadow: var(--sombra);
  position: relative; overflow: hidden;
}
.faixa-convenio .icone { width: 64px; height: 64px; border-radius: 22px; background: #00995D; display: grid; place-items: center; color: #fff; font-family: var(--titulo); font-weight: 700; }
.faixa-convenio h3 { font-size: 1.5rem; }
.faixa-convenio p { color: var(--cafe-2); font-size: .95rem; }
@media (max-width: 760px) { .faixa-convenio { grid-template-columns: 1fr; text-align: left; } }

/* ---------- cards de profissional ---------- */
.grade-prof { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.prof {
  background: var(--branco); border-radius: var(--raio); overflow: hidden; cursor: pointer; text-align: left; border: 0;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  display: flex; flex-direction: column;
}
.prof:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.prof .avatar { position: relative; aspect-ratio: 1 / 1.05; background: var(--papel-2); overflow: hidden; }
.prof .avatar svg { width: 100%; height: 100%; display: block; }
.prof .avatar .fundo { transition: transform 1.2s var(--ease); transform-origin: center; }
.prof:hover .avatar .fundo { transform: scale(1.08) rotate(6deg); }
.prof .info { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prof .info strong { font-family: var(--titulo); font-size: 1.15rem; color: var(--musgo); }
.prof .info .area { font-size: .88rem; color: var(--cafe-2); }
.prof .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: .72rem; font-weight: 700; padding: .25em .7em; border-radius: 99px; background: var(--papel-2); color: var(--cafe-2); }
.tag.verde { background: rgba(111, 120, 98, .16); color: var(--musgo); }
.tag.idade { background: rgba(215, 154, 136, .2); color: #96523e; }
.tag.unimed { background: rgba(0, 153, 93, .12); color: #00764a; }
.prof .agendar { margin-top: auto; padding-top: 12px; font-family: var(--titulo); font-weight: 700; color: var(--terracota-forte); font-size: .92rem; display: flex; align-items: center; gap: .4em; }
.prof .agendar span { transition: transform .5s var(--ease); }
.prof:hover .agendar span { transform: translateX(5px); }

/* ---------- chamada para o Corpo Clínico ---------- */
.chamada-cc {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--branco); border-radius: 48px; padding: clamp(32px, 5vw, 64px); box-shadow: var(--sombra);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.chamada-cc > div:not(.baloes) { position: relative; z-index: 1; max-width: 560px; }
/* balões de profissões/serviços que nascem com o movimento do mouse — não recebem clique */
.chamada-cc .baloes { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.chamada-cc .balao {
  position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--titulo); font-weight: 700; font-size: clamp(.8rem, 1.4vw, 1rem); letter-spacing: .01em;
  color: rgba(81, 90, 69, .62); padding: .55em 1.1em;
  border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%;
  will-change: transform, opacity;
}
.chamada-cc .balao.b1 { background: rgba(200, 198, 183, .42); }
.chamada-cc .balao.b2 { background: rgba(215, 154, 136, .26); color: rgba(150, 82, 62, .7); }
.chamada-cc .balao.b3 { background: rgba(237, 229, 226, .7); border: 1px solid rgba(200, 198, 183, .6); }
.chamada-cc p { margin-top: 1em; color: var(--cafe-2); }
.chamada-cc .btn { position: relative; z-index: 1; }
.btn.grande { font-size: 1.25rem; padding: 1.1em 2em; }
.btn.grande span { transition: transform .5s var(--ease); }
/* só o botão é link: o efeito de passar o mouse fica nele */
.chamada-cc .btn:hover { background: #a9604b; }
.chamada-cc .btn:hover span { transform: translateX(6px); }

/* ---------- diferenciais ---------- */
.diferenciais .grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.dif { background: var(--branco); border-radius: var(--raio); padding: 32px; position: relative; overflow: hidden; }
.dif .num { font-family: var(--titulo); font-weight: 700; font-size: 3.4rem; color: var(--salvia); line-height: 1; }
.dif h3 { margin: .5em 0 .4em; }
.dif p { color: var(--cafe-2); font-size: .95rem; }
@media (max-width: 860px) { .diferenciais .grade { grid-template-columns: 1fr; } }

/* ---------- convênios (faixa em movimento) ---------- */
.convenios { overflow: hidden; }
.letreiro { display: flex; gap: 14px; width: max-content; animation: corre 48s linear infinite; margin-top: 40px; }
.letreiro.inverso { animation-direction: reverse; animation-duration: 56s; margin-top: 14px; }
.letreiro span { white-space: nowrap; background: var(--branco); border-radius: 99px; padding: .9em 1.6em; font-family: var(--titulo); font-weight: 700; color: var(--musgo-2); font-size: 1.05rem; }
.letreiro span:nth-child(3n) { background: var(--salvia); color: var(--musgo); }
@keyframes corre { to { transform: translateX(-50%); } }

/* ---------- avaliações ---------- */
.avaliacoes .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.depo-palco { position: relative; min-height: 260px; }
.depo { position: absolute; inset: 0; background: var(--branco); border-radius: 36px; padding: 40px; box-shadow: var(--sombra); opacity: 0; transform: translateY(24px) rotate(-1deg); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.depo.ativo { opacity: 1; transform: none; }
.depo .aspas { font-family: var(--titulo); font-size: 4.5rem; line-height: .6; color: var(--terracota); }
.depo p { font-size: 1.25rem; font-weight: 700; margin: .5em 0 1em; }
.depo .estrelas { color: var(--terracota-forte); letter-spacing: .15em; }
.depo strong { font-family: var(--titulo); color: var(--musgo); margin-left: .5em; }
.depo .fonte-google { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; font-size: .78rem; color: var(--cafe-2); font-weight: 700; }
@media (max-width: 860px) { .avaliacoes .wrap { grid-template-columns: 1fr; } .depo-palco { min-height: 300px; } }

/* ---------- empresas ---------- */
.empresas .caixa { position: relative; border-radius: 48px; overflow: hidden; min-height: 460px; display: flex; align-items: center; }
.empresas .caixa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.empresas .caixa::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58, 36, 24, .88) 0%, rgba(58, 36, 24, .55) 50%, rgba(58, 36, 24, .1) 100%); }
.empresas .texto { position: relative; z-index: 2; color: var(--papel); max-width: 560px; padding: clamp(28px, 5vw, 64px); }
.empresas h2 { color: var(--branco); margin-bottom: .5em; }
.empresas p { margin-bottom: 1.6em; }

/* ---------- matérias ---------- */
.materias .grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.materia { background: var(--branco); border-radius: var(--raio); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.materia:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.materia img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.materia div { padding: 22px; }
.materia time { font-size: .8rem; color: var(--terracota-forte); font-weight: 700; }
.materia h3 { margin: .35em 0 .5em; font-size: 1.15rem; line-height: 1.25; }
.materia p { font-size: .9rem; color: var(--cafe-2); }
@media (max-width: 860px) { .materias .grade { grid-template-columns: 1fr; } }

/* ---------- unidades ---------- */
.unidades .grade { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.unidade { background: var(--branco); border-radius: 36px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.1fr; }
.unidade img { height: 100%; min-height: 300px; object-fit: cover; }
.unidade div { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.unidade h3 { font-size: 1.5rem; }
.unidade p { font-size: .92rem; color: var(--cafe-2); }
.unidade .acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.unidade .btn { padding: .7em 1.1em; font-size: .85rem; }
@media (max-width: 1000px) { .unidades .grade { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .unidade { grid-template-columns: 1fr; } .unidade img { min-height: 220px; max-height: 260px; } }

/* ---------- rodapé ---------- */
.rodape { padding: 100px 0 40px; text-align: center; overflow: hidden; }
.rodape .assinatura { font-family: 'Oswald', var(--titulo); font-weight: 200; font-style: italic; font-size: clamp(2.6rem, 7vw, 5.2rem); color: var(--cafe-2); line-height: 1.1; }
.rodape .logo-final { width: min(520px, 86%); margin: 36px auto 40px; }
/* logo viva do rodapé: camadas originais empilhadas; tinta viva contínua (final.png = versão estática) */
.logo-viva { position: relative; width: min(620px, 92%); aspect-ratio: 1100 / 347; margin: 30px auto 36px; }
.logo-viva img, .logo-viva .tintas, .logo-viva .goticulas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.logo-viva .camada { opacity: 0; will-change: transform, opacity, filter; }
.logo-viva .gota { position: absolute; border-radius: 50% 50% 46% 54% / 55% 48% 52% 45%; will-change: transform, opacity, filter; }
.rodape .contatos { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 36px; font-weight: 700; font-size: .95rem; }
.rodape small { display: block; margin-top: 48px; color: var(--cafe-2); font-size: .78rem; }

/* ---------- WhatsApp flutuante ---------- */
.zap {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
  transition: transform .5s var(--ease);
}
.zap:hover { transform: scale(1.08) rotate(-6deg); }

/* ---------- campanha avulsa (botão flutuante, canto inferior esquerdo — não cobre o WhatsApp) ---------- */
.campanha { position: fixed; left: 20px; bottom: 20px; z-index: 58; display: flex; align-items: flex-start; opacity: 0; transform: translateY(30px) scale(.95); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.campanha.mostrar { opacity: 1; transform: none; }
.campanha.saindo { opacity: 0; transform: translateY(20px) scale(.95); }
.campanha-botao {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 99px;
  background: var(--cor-camp); color: #fff; box-shadow: 0 16px 34px -14px rgba(58, 36, 24, .55);
  animation: camp-flutua 3.6s ease-in-out infinite; transition: transform .4s var(--ease);
}
.campanha-botao:hover { transform: scale(1.04); animation-play-state: paused; }
.campanha-botao b { display: block; font-family: var(--titulo); font-size: 1rem; line-height: 1.15; }
.campanha-botao small { display: block; font-size: .76rem; opacity: .9; }
.campanha-botao img, .campanha-icone { width: 42px; height: 42px; border-radius: 50%; flex: none; object-fit: cover; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 1.2rem; }
.campanha-botao::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--cor-camp); animation: camp-pulso 2.8s ease-out infinite; pointer-events: none; }
.campanha-botao { position: relative; }
.campanha-fechar { margin-left: -12px; margin-top: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--branco); color: var(--cafe); font-size: 1rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); position: relative; z-index: 1; }
@keyframes camp-flutua { 50% { transform: translateY(-5px); } }
/* "Chamar a atenção": balançadinha leve a cada ~3,5 s + aviso curto acima do botão */
.campanha.atencao .campanha-botao { animation: camp-flutua 3.6s ease-in-out infinite, camp-balanca 3.5s ease-in-out 1.5s infinite; }
@keyframes camp-balanca {
  0%, 78%, 100% { rotate: 0deg; translate: 0 0; }
  81% { rotate: -3deg; translate: -1px 0; } 84% { rotate: 3deg; translate: 1px 0; }
  87% { rotate: -2.5deg; } 90% { rotate: 2deg; } 93% { rotate: -1deg; } 96% { rotate: .5deg; }
}
.campanha-aviso {
  position: absolute; left: 14px; bottom: calc(100% + 6px); white-space: nowrap;
  background: var(--branco); color: var(--cor-camp); font-family: var(--titulo); font-weight: 700; font-size: .78rem;
  padding: .35em .9em; border-radius: 99px; box-shadow: 0 8px 20px -10px rgba(58, 36, 24, .5);
  animation: camp-aviso 2.4s ease-in-out infinite;
}
@keyframes camp-aviso { 50% { opacity: .65; } }
@keyframes camp-pulso { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cor-camp) 55%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
@media (max-width: 560px) {
  .campanha { left: 12px; bottom: 14px; right: 88px; }
  .campanha-botao { padding: 8px 14px 8px 8px; }
  .campanha-botao b { font-size: .9rem; }
  .campanha-botao img, .campanha-icone { width: 34px; height: 34px; }
}
/* no Corpo Clínico a pílula "Filtros" usa o centro; a campanha sobe um pouco quando ela aparece */
body:has(.voltar-filtros.mostrar) .campanha { bottom: 84px; }
.zap svg { width: 30px; height: 30px; }

/* ---------- página Corpo Clínico ---------- */
.cc-hero { padding: 150px 0 40px; text-align: center; overflow: hidden; }
.cc-hero .lead { margin: 1rem auto 0; }
.filtros {
  position: relative; z-index: 2; margin-bottom: 28px; scroll-margin-top: 96px; /* não fica preso por cima do catálogo */
  background: rgba(251, 248, 246, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 28px; padding: 16px; box-shadow: 0 14px 40px -26px rgba(58, 36, 24, .5);
  display: grid; gap: 12px;
}
.filtros .linha { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.busca { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: var(--papel); border-radius: 99px; padding: 0 18px; }
.busca input { border: 0; background: none; padding: 13px 0; width: 100%; outline: none; }
.filtros select { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--salvia); background: var(--branco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23735D4B' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; border-radius: 99px; padding: 12px 40px 12px 18px; font-family: var(--titulo); font-weight: 700; font-size: .9rem; color: var(--cafe-2); cursor: pointer; }
.filtros .limpar { background: none; border: 0; color: var(--terracota-forte); font-family: var(--titulo); font-weight: 700; cursor: pointer; font-size: .9rem; padding: 8px; }
.filtros .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
/* carrossel lento das especialidades */
.filtros { grid-template-columns: minmax(0, 1fr); }
.contador { scroll-margin-top: 100px; }
/* pílula flutuante para voltar aos filtros quando eles saem da tela */
.voltar-filtros {
  position: fixed; left: 50%; bottom: 22px; z-index: 55; transform: translate(-50%, 140%); opacity: 0;
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--musgo); color: var(--branco); font-family: var(--titulo); font-weight: 700; font-size: .95rem;
  padding: .8em 1.4em; border-radius: 99px; box-shadow: 0 16px 34px -14px rgba(58, 36, 24, .6);
  transition: transform .6s var(--ease), opacity .4s;
}
.voltar-filtros.mostrar { transform: translate(-50%, 0); opacity: 1; }
.voltar-filtros small { font-weight: 600; opacity: .8; }
.filtros .linha { min-width: 0; }
.filtros .esp { flex-wrap: nowrap; gap: 8px; }
.trilho-esp {
  flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.trilho-esp::-webkit-scrollbar { display: none; }
.trilho-esp .chips { flex-wrap: nowrap; width: max-content; padding: 0; overflow: visible; }
.seta-esp {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--salvia); background: var(--branco);
  color: var(--musgo); cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.seta-esp:hover { background: var(--musgo); color: var(--branco); transform: scale(1.06); }
.contador { font-family: var(--titulo); font-weight: 700; color: var(--cafe-2); margin-bottom: 18px; }
.contador b { color: var(--terracota-forte); }
.boas-vindas { position: relative; overflow: hidden; background: var(--branco); border-radius: 36px; padding: clamp(28px, 5vw, 56px); text-align: center; }
.boas-vindas h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.boas-vindas p { color: var(--cafe-2); margin: .6em auto 1.4em; max-width: 36em; }
.boas-vindas .atalhos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.vazio { text-align: center; padding: 60px 20px; color: var(--cafe-2); display: none; }
.prof.saindo { opacity: 0; transform: scale(.94); }
.btn-unimed { background: #00995D; box-shadow: 0 10px 24px -14px rgba(0, 153, 93, .9); }
.btn-unimed:hover { background: #00764a; }
@media (max-width: 760px) {
  .filtros { border-radius: 22px; padding: 12px; scroll-margin-top: 84px; }
  .filtros .so-desk { display: none; }
  .filtros select { flex: 1 1 45%; }
}

/* ---------- janela (perfil / formulário) ---------- */
.janela { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.janela.aberta { visibility: visible; }
.janela .veu { position: absolute; inset: 0; background: rgba(58, 36, 24, .45); backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s var(--ease); }
.janela.aberta .veu { opacity: 1; }
.janela .caixa {
  position: relative; width: min(880px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  background: var(--papel); border-radius: 36px; box-shadow: 0 40px 80px -30px rgba(58, 36, 24, .6);
  transform: translateY(40px) scale(.97); opacity: 0; transition: transform .7s var(--ease), opacity .5s var(--ease);
}
.janela.aberta .caixa { transform: none; opacity: 1; }
.janela .fechar { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--branco); cursor: pointer; font-size: 1.3rem; color: var(--cafe); }
.perfil { display: grid; grid-template-columns: 300px 1fr; }
.perfil .lado { background: var(--papel-2); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.perfil .lado .avatar { border-radius: 24px; overflow: hidden; aspect-ratio: 1; }
.perfil .lado .avatar svg { width: 100%; height: 100%; display: block; }
.perfil .corpo { padding: 32px; }
.perfil .corpo h2 { font-size: 2rem; }
.perfil .corpo .sub { color: var(--cafe-2); font-weight: 700; margin: .3em 0 1em; }
.perfil h4 { font-family: var(--titulo); color: var(--musgo); margin: 1.2em 0 .5em; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) { .perfil { grid-template-columns: 1fr; } .perfil .lado .avatar { max-width: 220px; } }

.form { display: grid; gap: 14px; }
.form .dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-family: var(--titulo); font-weight: 700; font-size: .88rem; color: var(--musgo); }
.form input, .form select, .form textarea { border: 1.5px solid var(--salvia); background: var(--branco); border-radius: 16px; padding: 12px 14px; outline: none; transition: border-color .3s, box-shadow .3s; font-family: var(--texto); font-weight: 400; color: var(--cafe); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--musgo-2); box-shadow: 0 0 0 4px rgba(111, 120, 98, .15); }
.form .opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.form .opcoes input { position: absolute; opacity: 0; pointer-events: none; }
.form .opcoes span { display: inline-block; padding: .5em 1em; border-radius: 99px; border: 1.5px solid var(--salvia); background: var(--branco); cursor: pointer; font-weight: 700; color: var(--cafe-2); transition: .3s var(--ease); }
.form .opcoes input:checked + span { background: var(--musgo); border-color: var(--musgo); color: var(--branco); }
.form .oculto { display: none; }
.aviso { border-radius: 18px; padding: 14px 16px; font-size: .9rem; background: rgba(215, 154, 136, .2); border: 1px solid rgba(194, 122, 100, .4); color: var(--cafe); }
.aviso.central { background: rgba(0, 153, 93, .08); border-color: rgba(0, 153, 93, .35); }
.aviso strong { font-family: var(--titulo); }
@media (max-width: 560px) { .form .dupla { grid-template-columns: 1fr; } }

/* acessibilidade: respeita "reduzir movimento" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .revela { opacity: 1; transform: none; filter: none; }
  .carrossel .slide img { transform: none !important; }
}
