:root {
  --fundo: #FAF8F2;
  --cartao: #FFFFFF;
  --rose: #C2A060;
  --rose-claro: #F2EBDB;
  --terracota: #0C3E35;
  --terracota-esc: #082C26;
  --dourado: #B08D4F;
  --texto: #1E2B28;
  --texto-2: #56645F;
  --linha: #E6E0D2;
  --ok: #3F8A5F;
  --ok-fundo: #E3F1E8;
  --espera: #B07A12;
  --espera-fundo: #FBF0D9;
  --feito: #4A6FA5;
  --feito-fundo: #E4EBF6;
  --cancel: #B3443A;
  --cancel-fundo: #F8E3E0;
  --raio: 14px;
  --sombra: 0 6px 24px rgba(12, 62, 53, .08);
  --titulo: "Cormorant Garamond", Georgia, serif;
  --corpo: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--fundo); color: var(--texto);
  font: 400 16px/1.55 var(--corpo);
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--titulo); line-height: 1.2; margin: 0 0 8px; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 12px; }
a { color: var(--terracota); }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--texto-2); }
.pequeno { font-size: 14px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 50px; border: 2px solid transparent;
  font: 600 17px/1 var(--titulo); letter-spacing: .3px; cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn-pri { background: var(--terracota); color: #fff; }
.btn-pri:hover { background: var(--terracota-esc); }
.btn-sec { background: var(--cartao); border-color: var(--linha); color: var(--texto); }
.btn-sec:hover { border-color: var(--rose); }
.btn-wa { background: #1F9E55; color: #fff; }
.btn-wa:hover { background: #18804A; }
.btn-txt { background: none; border: 0; color: var(--terracota); min-height: 44px; padding: 0 8px; }
.btn-bloco { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-peq { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Campos */
.campo { display: block; margin-bottom: 18px; }
.campo > span { display: block; font: 600 15px/1.3 var(--titulo); margin-bottom: 6px; }
.campo small { display: block; color: var(--texto-2); font-size: 13px; margin-top: 4px; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--linha); background: var(--cartao); font-size: 16px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-claro); }
.erro { color: var(--cancel); background: var(--cancel-fundo); border-radius: 10px; padding: 10px 14px; font-size: 15px; margin-bottom: 16px; }
.aviso { background: var(--espera-fundo); color: #6E4C0B; border-radius: 10px; padding: 10px 14px; font-size: 15px; }

.cartao { background: var(--cartao); border-radius: var(--raio); box-shadow: var(--sombra); padding: 20px; }

/* ===== App da paciente ===== */
.app { max-width: 560px; margin: 0 auto; padding: 0 16px 120px; }
.topo-app {
  position: sticky; top: 0; z-index: 10; background: var(--fundo);
  display: flex; align-items: center; gap: 8px; padding: 12px 0;
}
.topo-app .voltar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cartao); box-shadow: var(--sombra); display: grid; place-items: center; cursor: pointer; }
.topo-app .voltar svg { width: 22px; height: 22px; }
.passos { flex: 1; }
.passos-txt { font-size: 13px; color: var(--texto-2); }
.barra { height: 6px; border-radius: 3px; background: var(--linha); overflow: hidden; margin-top: 4px; }
.barra i { display: block; height: 100%; background: var(--rose); border-radius: 3px; transition: width .3s; }

.vitrine { text-align: center; padding-top: 32px; }
.foto {
  width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 18px; object-fit: cover;
  border: 4px solid var(--cartao); box-shadow: 0 0 0 2px var(--rose), var(--sombra);
  background: var(--rose-claro); display: grid; place-items: center;
  font: 700 40px/1 var(--titulo); color: var(--terracota);
}
.vitrine .esp { font: 600 17px/1.3 var(--titulo); color: var(--terracota); margin-bottom: 4px; }
.vitrine .bio { max-width: 440px; margin: 16px auto 28px; color: var(--texto-2); }
.vitrine .end { display: flex; gap: 8px; align-items: flex-start; justify-content: center; font-size: 14px; color: var(--texto-2); margin-top: 24px; }
.vitrine .end svg { color: var(--rose); margin-top: 3px; }

.lista { display: grid; gap: 12px; margin-top: 16px; }
.opcao {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--cartao); border: 2px solid transparent; border-radius: var(--raio); padding: 18px;
  box-shadow: var(--sombra); transition: border-color .2s;
}
.opcao:hover { border-color: var(--rose-claro); }
.opcao[aria-pressed="true"] { border-color: var(--rose); }
.opcao h3 { margin-bottom: 4px; }
.opcao p { margin: 0; color: var(--texto-2); font-size: 15px; }
.opcao .meta { display: flex; gap: 14px; margin-top: 10px; font-size: 14px; font-weight: 500; }
.opcao .meta span { display: inline-flex; align-items: center; gap: 6px; }
.opcao .meta svg { color: var(--rose); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.chip {
  min-height: 48px; padding: 0 20px; border-radius: 50px; cursor: pointer;
  border: 1.5px solid var(--linha); background: var(--cartao); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.chip[aria-pressed="true"] { background: var(--rose-claro); border-color: var(--rose); color: var(--terracota-esc); }
.chip svg { width: 16px; height: 16px; opacity: 0; }
.chip[aria-pressed="true"] svg { opacity: 1; }

/* Calendário */
.cal { background: var(--cartao); border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px; margin-top: 16px; }
.cal-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-topo strong { font: 600 18px/1 var(--titulo); text-transform: capitalize; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--linha); background: none; cursor: pointer; display: grid; place-items: center; }
.cal-nav svg { width: 20px; height: 20px; }
.cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-sem { font-size: 12px; font-weight: 600; color: var(--texto-2); padding: 6px 0; }
.cal-dia {
  aspect-ratio: 1; min-height: 40px; border-radius: 50%; border: 0; background: none; cursor: pointer;
  font: 500 16px/1 var(--corpo); position: relative;
}
.cal-dia:disabled { color: #C9C2BC; cursor: default; }
.cal-dia.livre { background: var(--rose-claro); color: var(--terracota-esc); }
.cal-dia.livre:hover { background: #ECD3CC; }
.cal-dia.hoje::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--dourado); }
.cal-dia[aria-pressed="true"] { background: var(--terracota); color: #fff; }
.cal-carregando { opacity: .5; pointer-events: none; }

.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 14px; }
.hora {
  min-height: 50px; border-radius: 12px; border: 1.5px solid var(--linha); background: var(--cartao);
  font: 600 17px/1 var(--titulo); cursor: pointer;
}
.hora:hover { border-color: var(--rose); }
.hora[aria-pressed="true"] { background: var(--terracota); border-color: var(--terracota); color: #fff; }
.turno { font: 600 14px/1 var(--titulo); color: var(--texto-2); margin: 18px 0 0; }

.rodape-fixo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: linear-gradient(transparent, var(--fundo) 30%); padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
}
.rodape-fixo .btn { max-width: 528px; margin: 0 auto; display: flex; width: 100%; }

.resumo { display: grid; gap: 14px; margin: 18px 0; }
.resumo-linha { display: flex; gap: 14px; align-items: flex-start; }
.resumo-linha svg { width: 22px; height: 22px; color: var(--rose); margin-top: 2px; }
.resumo-linha small { display: block; color: var(--texto-2); font-size: 13px; }
.resumo-linha b { font-weight: 500; }
.selo-ok { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-fundo); color: var(--ok); display: grid; place-items: center; margin: 24px auto 12px; }
.selo-ok svg { width: 40px; height: 40px; }
.acoes { display: grid; gap: 12px; margin-top: 20px; }
.isca { position: absolute; left: -9999px; }

.carregando { text-align: center; padding: 40px 0; color: var(--texto-2); }
.carregando::before {
  content: ""; display: block; width: 32px; height: 32px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid var(--linha); border-top-color: var(--rose); animation: gira .8s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 2s !important; }
}

/* Identidade Gianny Dállete */
.btn { font-family: var(--corpo); font-size: 15px; letter-spacing: .2px; }
img.foto { object-position: 50% 12%; }
.vitrine .logo-marca { display: block; width: min(240px, 70%); height: auto; margin: 4px auto 10px; }
.vitrine h1.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
