* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(180deg, #4b1f73, #6d3fa6);
  color: #fff;
}

/* TOPO */
.topo-app {
  text-align: center;
  padding: 30px 20px 25px;
  background: linear-gradient(135deg, #5e2b97, #8e44ad);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.logo-app {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  margin-bottom: 10px;
}

.topo-app h1 {
  margin: 8px 0 4px;
  font-size: 22px;
}

.topo-app p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}


/* TELAS */
main {
  padding: 20px;
  padding-bottom: 90px;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

/* CARD BASE */
.card {
  background: #fff;
  color: #4b1f73;
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* FRASE */
.frase {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

/* LISTA */
.lista p {
  margin: 10px 0;
  font-size: 15px;
}

/* BOTÃO */
.botao {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #6b2fa1, #9c6ade);
  color: #fff;
  padding: 14px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 15px;
}

/* MENU */
.menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #5e2b97;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.menu button {
  background: none;
  border: none;
  color: white;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ===== LOGO COM MOLDURA MÍSTICA ===== */

.logo-moldura {
  width: 160px;
  height: 160px;
  margin: 20px auto;
  border-radius: 50%;
  background: radial-gradient(circle at top, #8e5bd9, #4b1f7a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 15px rgba(255, 215, 0, 0.4),
    0 0 35px rgba(122, 63, 194, 0.6);
}

.logo-moldura img {
  width: 85%;
  height: 85%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.card-terapia {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  text-align: center;
}

.card-terapia h3 {
  margin-top: 0;
  color: #5e2b97;
  font-size: 20px;
}

.card-terapia p {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
  margin: 12px 0 18px;
}

.card-terapia .botao {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;

  background: linear-gradient(135deg, #5e2b97, #9b59b6);
  color: white;

  box-shadow: 0 6px 15px rgba(94,43,151,0.4);
}
.section.active .card {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
  .perfil-container {
  text-align: center;
  margin: 30px 0;
}

/* TAMANHO CONTROLADO DA MOLDURA */
.moldura-dourada {
  width: 140px;       /* 👈 tamanho final da foto */
  height: 140px;
  margin: 0 auto 12px;
  padding: 4px;
  border-radius: 50%;

  background: linear-gradient(
    135deg,
    #d4af37,
    #f9e076,
    #c9a227
  );

  box-shadow: 0 10px 25px rgba(212,175,55,0.45);
}

/* FOTO NUNCA ESTOURA */
.moldura-dourada img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;   /* 🔥 isso resolve 90% dos casos */
  display: block;
}
.frase {
  text-align: center;
  font-style: italic;
  color: #5e2b97;
}

.fechamento {
  background: #f7f2fb;
  text-align: center;
  font-size: 14px;
  color: #555;
}
.agenda-medica {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campo {
  display: flex;
  flex-direction: column;
}

.campo label {
  font-size: 12px;
  margin-bottom: 4px;
  color: #6a4c93;
}

.campo input,
.campo select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #d8cdee;
  background: #fff;
}

.campo input:focus,
.campo select:focus {
  outline: none;
  border-color: #5e2b97;
}

.botao-agenda {
  margin-top: 10px;
  padding: 12px;
  font-size: 14px;
  border-radius: 24px;
  background: #6f42c1;
  color: white;
  border: none;
  width: 100%;
  max-width: 220px;
  align-self: center;
}
#splash {
  position: fixed;
  inset: 0;
  background: #5e2b97; /* mesmo roxo do ícone */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#splash img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  animation: splashFade 1.2s ease-in-out;
}

@keyframes splashFade {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

