/* ==========================================================
   ANIMAÇÕES E MICROINTERAÇÕES — Dra. Greice Pinheiro
   Direção: movimentos lentos e elegantes, curvas suaves, poucos elementos por vez.
   Só usa transform, opacity e clip-path (leves no celular). Nada pisca.
   Conteúdo que já está na tela ao abrir nunca é escondido.
   Quem prefere "reduzir movimento" vê tudo parado e visível (fim do arquivo).
   ========================================================== */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);   /* chegada macia */
  --ease-io: cubic-bezier(.65, 0, .35, 1);    /* desvelar, linhas */
  --ease-mola: cubic-bezier(.34, 1.4, .64, 1); /* pequeno "assentar" em ícones e números */
}

/* ---------- Palavras dos títulos ---------- */
.pv, .pv-i { display: inline-block; }

/* ==========================================================
   1. PRIMEIRA TELA (capa) — só CSS: começa junto com a página.
   A foto da doutora nunca fica invisível: apenas "assenta".
   ========================================================== */
@keyframes desce { from { opacity: 0; transform: translateY(-12px); } }
@keyframes surge { from { opacity: 0; transform: translateY(22px); } }
@keyframes palavra { from { opacity: 0; transform: translateY(110%); } }
@keyframes assenta { from { transform: scale(1.08); } }
@keyframes moldura { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes varre { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes entra-lado { from { opacity: 0; transform: translateX(-26px); } }
@keyframes sobe-barra { from { transform: translateY(110%); } }
@keyframes aparece { from { opacity: 0; transform: scale(.6); } }
@keyframes brilho { from { transform: translateX(-180%) skewX(-18deg); } to { transform: translateX(420%) skewX(-18deg); } }

.topo { animation: desce .8s var(--ease-out) backwards; }
.capa { background-image: radial-gradient(55% 70% at 8% 45%, rgba(247, 242, 233, .95), rgba(247, 242, 233, 0) 70%); }
.capa-foto img { transform-origin: 50% 30%; animation: assenta 2.6s var(--ease-out) backwards; }
.capa-foto::after { animation: moldura 1.8s var(--ease-io) .35s backwards; }
.capa-sobretitulo { animation: varre 1.2s var(--ease-io) .1s backwards; }
.capa .pv { clip-path: inset(-.4em -.3em -.3em -.3em); }
.capa .pv-i { animation: palavra 1.1s var(--ease-out) backwards; animation-delay: calc(.2s + var(--n, 0) * 45ms); }
.capa-nome { animation: surge .9s var(--ease-out) .6s backwards; }
.capa-acoes { animation: surge .9s var(--ease-out) .72s backwards; }
.capa-lead { animation: surge .9s var(--ease-out) .84s backwards; }
.capa-texto .credenciais li { animation: surge .8s var(--ease-out) backwards; }
.capa-texto .credenciais li:nth-child(1) { animation-delay: .95s; }
.capa-texto .credenciais li:nth-child(2) { animation-delay: 1.02s; }
.capa-texto .credenciais li:nth-child(3) { animation-delay: 1.09s; }
.capa-texto .credenciais li:nth-child(4) { animation-delay: 1.16s; }
.capa-selo { animation: entra-lado 1s var(--ease-out) 1.15s backwards; }
.capa-acoes .botao:not(.botao-secundario)::after { animation: brilho 1.3s var(--ease-io) 2s; }

@media (max-width: 760px) {
  .capa .pv-i { animation-delay: calc(.1s + var(--n, 0) * 40ms); }
  .capa-acoes { animation-delay: .45s; }
  .capa-lead { animation-delay: .58s; }
  .capa-texto .credenciais li:nth-child(1) { animation-delay: .68s; }
  .capa-texto .credenciais li:nth-child(2) { animation-delay: .74s; }
  .capa-texto .credenciais li:nth-child(3) { animation-delay: .80s; }
  .capa-texto .credenciais li:nth-child(4) { animation-delay: .86s; }
  .capa-acoes .botao:not(.botao-secundario)::after { animation-delay: 1.4s; }
}

/* Paralaxe leve da foto da capa (só computador com mouse; ativada pelo script) */
@media (min-width: 1001px) {
  .paralaxe .capa-foto picture { position: absolute; left: 0; right: 0; top: -20px; bottom: -20px; height: auto; will-change: transform; }
}

/* ==========================================================
   2. BOTÕES — brilho sutil, cor que desliza, resposta ao toque
   ========================================================== */
.botao, .barra-celular a, .barra-celular button, .areas-abas button, .menu-botao, .chat-abrir {
  position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent;
}
.botao {
  transition: background-color .4s var(--ease-out), background-position .8s var(--ease-out), color .4s ease,
              border-color .4s ease, box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.botao:not(.botao-secundario) {
  background-image: linear-gradient(120deg, #a2804a 0%, var(--ouro-forte) 45%, #6f5428 100%);
  background-size: 220% 100%; background-position: 100% 0;
}
.botao::after, .barra-agendar::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-180%) skewX(-18deg);
}
.botao-secundario::after { display: none; }
.botao svg { transition: transform .6s var(--ease-mola); }
@media (hover: hover) and (pointer: fine) {
  .botao:not(.botao-secundario):hover { background-position: 0 0; transform: translateY(-2px); box-shadow: 0 20px 34px -18px rgba(138, 106, 51, .85); }
  .botao:not(.botao-secundario):hover::after { animation: brilho 1s var(--ease-io); }
  .botao-secundario:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -22px rgba(70, 50, 20, .45); }
  .botao:hover svg { transform: rotate(-10deg) scale(1.1); }
}
.botao:active, .barra-celular a:active, .barra-celular button:active, .areas-abas button:active, .menu-botao:active {
  transform: scale(.97); transition-duration: .12s;
}
/* Onda de toque (criada pelo script) */
.onda {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: rgba(255, 255, 255, .38); transform: scale(0); animation: onda .75s var(--ease-out) forwards;
}
.onda-escura { background: rgba(138, 106, 51, .16); }
@keyframes onda { to { transform: scale(1); opacity: 0; } }

/* Barra inferior do celular */
.barra-celular { transition: transform .45s var(--ease-out); }
.barra-celular a, .barra-celular button { transition: transform .3s var(--ease-out), background-color .3s, color .3s; }
.barra-agendar { background-image: linear-gradient(120deg, #a2804a 0%, var(--ouro-forte) 50%, #6f5428 100%); }
.barra-agendar::after { animation: brilho 1.3s var(--ease-io) 1.6s; }
@media (max-width: 760px) {
  .barra-celular { animation: sobe-barra .8s var(--ease-out) .3s backwards; }
}

/* Botões flutuantes (computador) */
@media (min-width: 761px) {
  .whats-flutuante { animation: aparece .7s var(--ease-mola) 1.5s backwards; transition: transform .45s var(--ease-mola), box-shadow .45s ease; }
  .whats-flutuante:hover { transform: scale(1.08); box-shadow: 0 18px 34px -14px rgba(31, 122, 77, .65); }
  .chat-abrir { animation: aparece .7s var(--ease-mola) 1.65s backwards; }
}

/* ==========================================================
   3. TOPO E MENU
   ========================================================== */
.progresso-leitura {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, var(--ouro-forte), var(--ouro-claro));
  transform: scaleX(0); transform-origin: left center; will-change: transform;
}
.marca .logo-topo { transition: transform .7s var(--ease-mola); }
.marca:hover .logo-topo { transform: scale(1.06); }

/* Indicador dourado que desliza entre os itens do menu (computador) */
.menu-extra { display: none; }
@media (min-width: 1121px) {
  .menu { position: relative; }
  .menu-indicador {
    position: absolute; left: 0; top: 0; width: 0; height: 1.5px; border-radius: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--ouro-forte), var(--ouro)); opacity: 0;
    transition: transform .6s var(--ease-out), width .6s var(--ease-out), opacity .4s ease;
  }
  .menu-indicador.visivel { opacity: 1; }
  .tem-indicador .menu > a:not(.botao)::after { display: none; }
}

/* Menu do celular e tablet: painel de tela cheia, itens numerados entrando em cascata */
.menu-icone { position: relative; display: inline-block; width: 18px; height: 10px; }
.menu-icone span {
  position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: top .3s var(--ease-out) .25s, transform .45s var(--ease-out);
}
.menu-icone span:first-child { top: 0; }
.menu-icone span:last-child { top: 8.5px; }
.menu-botao[aria-expanded="true"] .menu-icone span { top: 4.25px; transition: top .25s var(--ease-out), transform .45s var(--ease-out) .2s; }
.menu-botao[aria-expanded="true"] .menu-icone span:first-child { transform: rotate(45deg); }
.menu-botao[aria-expanded="true"] .menu-icone span:last-child { transform: rotate(-45deg); }

@media (max-width: 1120px) {
  .menu-indicador { display: none; }
  .menu-botao {
    display: inline-flex; align-items: center; gap: 10px;
    transition: background-color .35s ease, border-color .35s ease, color .35s ease, transform .3s var(--ease-out);
  }
  .menu-botao[aria-expanded="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
  .menu, .menu.aberto {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--menu-topo, 90px));
    height: calc(100dvh - var(--menu-topo, 90px));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 6px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background:
      radial-gradient(120% 55% at 100% 0%, rgba(220, 197, 151, .22), rgba(220, 197, 151, 0) 60%),
      linear-gradient(180deg, #fdfcf9 0%, #f7f2e9 100%);
    border-bottom: 1px solid var(--linha); box-shadow: none;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    counter-reset: item-menu;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .55s var(--ease-io), visibility 0s linear .55s;
  }
  .menu.aberto { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
  .menu > a:not(.botao) {
    counter-increment: item-menu;
    display: flex; align-items: baseline; gap: 16px; width: 100%;
    padding: 16px 0; border-bottom: 1px solid var(--linha);
    font-family: var(--fonte-titulo); font-size: clamp(1.55rem, 6.4vw, 2.1rem); font-weight: 500; line-height: 1.1; color: var(--tinta);
    opacity: 0; transform: translateY(18px);
    transition: opacity .4s ease, transform .55s var(--ease-out), color .3s ease;
  }
  .menu > a:not(.botao)::before {
    content: counter(item-menu, decimal-leading-zero);
    font-family: var(--fonte-texto); font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--ouro-forte); min-width: 1.9em;
  }
  .menu > a:not(.botao)::after { display: none; }
  .menu > a.ativo:not(.botao) { color: var(--ouro-forte); }
  .menu.aberto > a:not(.botao) { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * 45ms); }
  .menu > .botao { width: 100%; margin-top: 24px; padding: 18px; font-size: 1rem; flex: none; opacity: 0; transform: translateY(18px); }
  .menu.aberto > .botao { opacity: 1; transform: none; transition: opacity .5s ease .48s, transform .6s var(--ease-out) .48s, background-position .8s var(--ease-out); }
  .menu-extra {
    display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 28px;
    font-size: .88rem; color: var(--tinta-suave); opacity: 0; transition: opacity .5s ease .1s;
  }
  .menu.aberto .menu-extra { opacity: 1; transition-delay: .6s; }
  .menu-extra-titulo { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ouro-forte); font-weight: 600; }
  .menu .menu-extra a { display: inline; width: auto; padding: 0; border: 0; font: inherit; color: var(--ouro-forte); font-weight: 600; opacity: 1; transform: none; }
  .menu .menu-extra a::before, .menu .menu-extra a::after { content: none; }
}
@media (max-width: 400px) {
  .menu-rotulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-botao { padding: 11px 12px; }
}
html.menu-aberto, html.menu-aberto body { overflow: hidden; }
html.menu-aberto .barra-celular { transform: translateY(120%); }
html.menu-aberto .whats-flutuante, html.menu-aberto .chat { opacity: 0; pointer-events: none; }

/* ==========================================================
   4. CARROSSÉIS DO CELULAR (fotos e opiniões)
   (antes das regras de revelação, que têm prioridade durante a entrada)
   ========================================================== */
.carrossel-ativo > * { transition: transform .55s var(--ease-out), opacity .55s var(--ease-out); }
.carrossel-ativo > :not(.slide-ativo) { transform: scale(.94); opacity: .6; }
.pontos { display: none; }
.pontos.ativos { display: flex; justify-content: center; align-items: center; gap: 0; margin: 2px 0 0; }
.pontos button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.pontos button::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--ouro-claro);
  transition: width .45s var(--ease-out), background-color .3s ease;
}
.pontos button[aria-current="true"]::before { width: 22px; background: var(--ouro-forte); }
.seta-dica { display: inline-block; }
.dica-deslize { transition: opacity .6s ease; }
.dica-deslize.em-vista:not(.usada) .seta-dica { animation: cutuca 1.8s ease-in-out infinite; }
.dica-deslize.usada { opacity: .5; }
@keyframes cutuca { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ==========================================================
   5. REVELAÇÃO AO ROLAR (o script marca só o que está fora da tela)
   Cada tipo de conteúdo entra de um jeito.
   ========================================================== */
.anima [data-revelar] {
  transition: opacity .9s var(--ease-out) var(--atraso, 0ms), transform 1.15s var(--ease-out) var(--atraso, 0ms);
}
.anima [data-revelar="subir"] { opacity: 0; transform: translateY(34px); }
.anima [data-revelar="suave"] { opacity: 0; transform: translateY(16px); }
.anima [data-revelar="esquerda"] { opacity: 0; transform: translateX(-40px); }
.anima [data-revelar="direita"] { opacity: 0; transform: translateX(40px); }
.anima [data-revelar="zoom"] { opacity: 0; transform: scale(.94); }
.anima [data-revelar="pop"] { opacity: 0; transform: scale(.6); transition-timing-function: ease, var(--ease-mola); }
.anima [data-revelar="foto"] { opacity: 0; transform: translateY(44px); }
.anima [data-revelar="video"] { opacity: 0; transform: translateY(50px) scale(.95); transition-duration: 1s, 1.5s; }
.anima [data-revelar="linha"] { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease-io) var(--atraso, 0ms); }
.anima [data-revelar="titulo"], .anima [data-revelar="frase"], .anima [data-revelar="detalhe"] { transition: none; }
.anima [data-revelar].visivel { opacity: 1; transform: none; }
.anima [data-revelar="linha"].visivel { clip-path: inset(0 -6% 0 0); }
/* nos carrosséis, os itens laterais já entram no tamanho reduzido */
.anima .carrossel-ativo > [data-revelar].visivel:not(.slide-ativo) { opacity: .6; transform: scale(.94); }

/* Títulos: palavra por palavra, subindo de dentro de uma máscara */
.anima [data-revelar="titulo"] .pv, .anima [data-revelar="frase"] .pv { clip-path: inset(-.4em -.3em -.3em -.3em); }
.anima [data-revelar="titulo"] .pv-i, .anima [data-revelar="frase"] .pv-i {
  opacity: 0; transform: translateY(115%);
  transition: transform 1.15s var(--ease-out), opacity .7s ease;
  transition-delay: calc(var(--atraso, 0ms) + var(--n, 0) * 55ms);
}
.anima [data-revelar="frase"] .pv-i { transition-delay: calc(var(--atraso, 0ms) + var(--n, 0) * 70ms); }
.anima [data-revelar="titulo"].visivel .pv-i, .anima [data-revelar="frase"].visivel .pv-i { opacity: 1; transform: none; }

/* Fotos: o quadro sobe e uma "cortina" recolhe para baixo, desvelando a imagem, que assenta com zoom lento.
   (A cortina cobre a foto em vez de recortá-la: assim o carregamento preguiçoso do navegador continua funcionando.) */
.foto-quadro::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(160deg, #f3ece0, #e6d8bd); transform: scaleY(0); transform-origin: bottom center;
}
.anima [data-revelar="foto"] .foto-quadro::after { transform: scaleY(1); transition: transform 1.35s var(--ease-io) calc(var(--atraso, 0ms) + 150ms); }
.anima [data-revelar="foto"].visivel .foto-quadro::after { transform: scaleY(0); }
.anima [data-revelar="foto"] .foto-quadro > img { transform: scale(1.16); transition: transform 1.9s var(--ease-out) var(--atraso, 0ms), opacity .8s ease; }
.anima [data-revelar="foto"].visivel .foto-quadro > img { transform: none; }
.anima [data-revelar="foto"] figcaption {
  opacity: 0; transform: translateY(8px);
  transition: opacity .8s ease calc(var(--atraso, 0ms) + 650ms), transform .9s var(--ease-out) calc(var(--atraso, 0ms) + 650ms);
}
.anima [data-revelar="foto"].visivel figcaption { opacity: 1; transform: none; }

/* Vídeo: o player sobe, a moldura dourada se desenha e o botão de play "assenta" */
.anima [data-revelar="video"]::before { clip-path: inset(0 100% 100% 0); transition: clip-path 1.6s var(--ease-io) calc(var(--atraso, 0ms) + 500ms); }
.anima [data-revelar="video"].visivel::before { clip-path: inset(0 0 0 0); }
.anima [data-revelar="video"] .video-play-botao {
  opacity: 0; transform: scale(.5);
  transition: opacity .6s ease calc(var(--atraso, 0ms) + 700ms), transform 1s var(--ease-mola) calc(var(--atraso, 0ms) + 700ms);
}
.anima [data-revelar="video"].visivel .video-play-botao { opacity: 1; transform: none; }
.anima [data-revelar="video"] .video-play-legenda {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease calc(var(--atraso, 0ms) + 950ms), transform .9s var(--ease-out) calc(var(--atraso, 0ms) + 950ms);
}
.anima [data-revelar="video"].visivel .video-play-legenda { opacity: 1; transform: none; }

/* Detalhes que acompanham a entrada */
.anima .passos li[data-revelar] .passo-num {
  opacity: 0; transform: scale(.4);
  transition: opacity .5s ease calc(var(--atraso, 0ms) + 250ms), transform .9s var(--ease-mola) calc(var(--atraso, 0ms) + 250ms);
}
.anima .passos li[data-revelar].visivel .passo-num { opacity: 1; transform: none; }
.anima .opiniao[data-revelar] .opiniao-aspas {
  opacity: 0; transform: scale(.3) rotate(-12deg);
  transition: opacity .5s ease calc(var(--atraso, 0ms) + 300ms), transform .9s var(--ease-mola) calc(var(--atraso, 0ms) + 300ms);
}
.anima .opiniao[data-revelar].visivel .opiniao-aspas { opacity: 1; transform: none; }
.anima .opiniao[data-revelar] .opiniao-avatar { opacity: 0; transform: scale(.4); transition: opacity .5s ease calc(var(--atraso, 0ms) + 450ms), transform .9s var(--ease-mola) calc(var(--atraso, 0ms) + 450ms); }
.anima .opiniao[data-revelar].visivel .opiniao-avatar { opacity: 1; transform: none; }
.anima .credencial-cartao[data-revelar] .lista-bloco h3::after {
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.2s var(--ease-io) calc(var(--atraso, 0ms) + 500ms);
}
.anima .credencial-cartao[data-revelar].visivel .lista-bloco h3::after { transform: none; }
.anima .onde-cartao[data-revelar]::before {
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.6s var(--ease-io) calc(var(--atraso, 0ms) + 400ms);
}
.anima .onde-cartao[data-revelar].visivel::before { transform: none; }
/* Linhas que se desenham: citação (verticais) e etapas da consulta */
.anima .citacao[data-revelar]::before, .anima .citacao[data-revelar]::after {
  transform: translateX(-50%) scaleY(0); transform-origin: top center;
  transition: transform 1.2s var(--ease-io) .15s;
}
.anima .citacao[data-revelar].visivel::before, .anima .citacao[data-revelar].visivel::after { transform: translateX(-50%) scaleY(1); }
.anima .passos[data-revelar]::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.6s var(--ease-io) .3s; }
.anima .passos[data-revelar].visivel::before { transform: none; }
@media (max-width: 760px) {
  .anima .passos[data-revelar]::before { transform: scaleY(0); transform-origin: top center; }
}
/* Troca de aba (Saúde mental / Procedimentos estéticos): os itens entram em cascata */
@keyframes cartao-entra { from { opacity: 0; transform: translateY(18px); } }
.painel-trocado .cartao:not([data-revelar]),
.painel-trocado .mental-foto:not([data-revelar]),
.painel-trocado .estetica-fotos > figure:not([data-revelar]) {
  animation: cartao-entra .7s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 55ms + 80ms);
}

/* ==========================================================
   6. FOTOGRAFIAS — moldura com zoom interno, sem deformar
   ========================================================== */
.foto-quadro {
  display: block; position: relative; overflow: hidden; border-radius: 14px; box-shadow: var(--sombra-leve);
  background: linear-gradient(160deg, var(--tonal), #ece2cf); transform: translateZ(0);
}
.foto-quadro > img { display: block; border-radius: 0 !important; box-shadow: none !important; outline: none !important; transition: transform 1.4s var(--ease-out), opacity .8s ease; }
.foto-quadro > img.aguardando { opacity: 0; }
.sobre-foto .foto-quadro { border-radius: var(--raio); box-shadow: var(--sombra); outline: 1px solid var(--ouro-claro); outline-offset: 8px; }
.espera-foto .foto-quadro { border-radius: 16px; box-shadow: var(--sombra); }
@media (max-width: 760px) {
  .sobre-foto .foto-quadro { outline-offset: 5px; }
  .espera-foto .foto-quadro { border-radius: 14px; }
}
@media (hover: hover) and (pointer: fine) {
  .foto-quadro:hover > img { transform: scale(1.05); }
}

/* ==========================================================
   7. CARTÕES — luz que acompanha o mouse, linha dourada e elevação
   ========================================================== */
.cartao, .modalidade, .opiniao, .espera-itens li { position: relative; isolation: isolate; }
.cartao::after, .modalidade::after, .opiniao::after, .espera-itens li::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(220, 197, 151, .28), rgba(220, 197, 151, 0) 70%);
  opacity: 0; transition: opacity .5s ease;
}
.cartao::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--ouro), var(--ouro-claro));
  transform: scaleX(0); transform-origin: left center; transition: transform .7s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cartao, .modalidade, .opiniao, .espera-itens li {
    transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), background-color .3s ease;
  }
  .cartao:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -32px rgba(70, 50, 20, .5); z-index: 2; }
  .modalidade:hover, .opiniao:hover { transform: translateY(-6px); box-shadow: 0 32px 60px -34px rgba(70, 50, 20, .5); }
  .espera-itens li:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -26px rgba(70, 50, 20, .45); }
  .cartao:hover::after, .modalidade:hover::after, .opiniao:hover::after, .espera-itens li:hover::after { opacity: 1; }
  .cartao:hover::before { transform: scaleX(1); }
  .cartao svg, .modalidade svg, .espera-itens svg { transition: transform .7s var(--ease-mola); }
  .cartao:hover svg, .modalidade:hover svg, .espera-itens li:hover svg { transform: translateY(-3px) scale(1.08); }
}

/* Abas das áreas: a pílula branca desliza entre "Saúde mental" e "Procedimentos estéticos" */
.areas-abas { position: relative; }
.areas-abas button { position: relative; z-index: 1; }
.areas-pilula {
  position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 0; pointer-events: none; border-radius: 13px;
  background: var(--superficie); border: 1px solid var(--ouro-claro); box-shadow: var(--sombra-leve);
  transition: transform .6s var(--ease-out), width .6s var(--ease-out), height .6s var(--ease-out);
}
.tem-pilula .areas-abas button[aria-selected="true"] { background: transparent; border-color: transparent; box-shadow: none; }
.areas-num { transition: background-color .45s ease, border-color .45s ease, color .45s ease; }

/* Perguntas frequentes */
.faq summary { transition: color .3s ease; }
@media (hover: hover) { .faq summary:hover { color: var(--ouro-forte); } }
.faq details.fechando summary::after { transform: rotate(45deg); margin-top: -9px; }

/* ==========================================================
   8. VÍDEO — profundidade, capa que respira e play com ondas suaves
   ========================================================== */
.secao-video {
  background-image:
    radial-gradient(55% 60% at 85% 35%, rgba(220, 197, 151, .32), rgba(220, 197, 151, 0) 70%),
    radial-gradient(45% 50% at 5% 95%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
}
.video-palco::before { transform: translate3d(calc(var(--prof, 0px) * .6), var(--prof, 0px), 0); }
.video-moldura { transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .video-palco:hover .video-moldura { transform: translateY(-5px); box-shadow: 0 44px 80px -40px rgba(70, 50, 20, .6), 0 2px 6px rgba(70, 50, 20, .08); }
}
.video-play { background: none; overflow: hidden; isolation: isolate; }
.video-play::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(31, 28, 24, 0) 45%, rgba(31, 28, 24, .55) 100%), url("../img/consultorio-video-capa.jpg") center / cover no-repeat;
  transition: transform 1.8s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .video-play:hover::before { transform: scale(1.06); } }
.video-play-botao { position: relative; }
.video-play-botao::before, .video-play-botao::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .8); opacity: 0; pointer-events: none;
}
.secao-video.em-vista .video-play-botao::before { animation: anel 3s var(--ease-out) infinite; }
.secao-video.em-vista .video-play-botao::after { animation: anel 3s var(--ease-out) 1.5s infinite; }
@keyframes anel { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }

/* ==========================================================
   9. DEGRADÊS E MOVIMENTOS DE FUNDO (só enquanto estão na tela)
   ========================================================== */
/* Citação: um brilho dourado bem lento atravessa o fundo. Move só uma camada (GPU),
   sem repintar a seção a cada quadro. Sem JavaScript, fica o brilho parado no centro. */
.citacao { isolation: isolate; }
.citacao:not(.tem-luz) { background-image: radial-gradient(40% 90% at 50% 50%, rgba(184, 148, 90, .24), rgba(184, 148, 90, 0) 70%); }
.citacao::before, .citacao::after { z-index: 1; }
.citacao > blockquote { position: relative; z-index: 1; }
.citacao-luz {
  position: absolute; top: 0; bottom: 0; left: -20%; width: 140%; z-index: 0; pointer-events: none;
  background: radial-gradient(51% 90% at 50% 50%, rgba(184, 148, 90, .26), rgba(184, 148, 90, 0) 70%);
}
.citacao.em-vista .citacao-luz { animation: deriva 26s ease-in-out infinite; }
@keyframes deriva { 0%, 100% { transform: translateX(0); } 33% { transform: translateX(-24%); } 66% { transform: translateX(24%); } }
.chamada { background-image: radial-gradient(38% 55% at 50% 28%, rgba(220, 197, 151, .4), rgba(220, 197, 151, 0) 72%); }
.chamada.em-vista .logo-chamada { animation: flutua 7s ease-in-out 1.6s infinite; }
@keyframes flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ==========================================================
   10. IMPRESSÃO E MOVIMENTO REDUZIDO
   ========================================================== */
@media print {
  .anima [data-revelar], .anima [data-revelar] * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .progresso-leitura, .barra-celular, .pontos { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .progresso-leitura { display: none; }
}
