/* ══════════════════════════════════════════════
   FISIOTERAPIA — Seletor de Perfil
══════════════════════════════════════════════ */
#fisioterapia {
  padding: clamp(5rem, 10vh, 8rem) 0;
  background: var(--bege-claro);
  overflow: hidden;
}

/* ── Seletor de perfil (pílulas) ─────────────── */
.fisio-selector {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 2.75rem);
}

.fisio-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fst-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.3rem 0.6rem 0.6rem;
  background: var(--text-light);
  border: 1.5px solid rgba(var(--verde-profundo-rgb), 0.12);
  border-radius: 100px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.fst-btn:hover {
  border-color: var(--verde-agua);
  transform: translateY(-2px);
}

.fst-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(var(--terracota-medio-rgb), 0.1);
  transition: background 0.3s ease;
}

.fst-icon [data-lucide] {
  width: 16px;
  height: 16px;
  color: var(--terracota-medio);
  stroke-width: 1.9;
  transition: color 0.3s ease;
}

.fst-label {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.1vw, 0.85rem);
  font-weight: 600;
  color: var(--verde-profundo);
  line-height: 1.25;
  text-align: left;
}

.fst-btn.is-active {
  background: var(--verde-profundo);
  border-color: var(--verde-profundo);
}

.fst-btn.is-active .fst-icon {
  background: var(--terracota-medio);
}

.fst-btn.is-active .fst-icon [data-lucide] {
  color: var(--white);
}

.fst-btn.is-active .fst-label {
  color: var(--text-light);
}

/* ── Painel de detalhe (cross-fade) ──────────── */
.fisio-panels {
  position: relative;
  min-height: clamp(320px, 34vw, 400px);
}

.fsp {
  position: absolute;
  inset: 0;
  background: var(--text-light);
  border: 1px solid rgba(var(--verde-profundo-rgb), 0.06);
  border-radius: 28px;
  padding: clamp(2.25rem, 4.5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  box-shadow: 0 30px 70px -36px rgba(var(--verde-profundo-rgb), 0.28);
  transition:
    opacity 0.5s var(--easing-expo),
    transform 0.5s var(--easing-expo);
}

.fsp.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fsp-num {
  position: absolute;
  top: -0.1em;
  right: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6rem, 11vw, 10rem);
  line-height: 1;
  color: var(--verde-profundo);
  opacity: 0.045;
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
}

.fsp-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.fsp-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verde-medio);
  background: rgba(var(--verde-agua-rgb), 0.12);
  border: 1px solid rgba(var(--verde-agua-rgb), 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}

.fsp-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.9vw, 2.4rem);
  font-weight: 800;
  color: var(--verde-profundo);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.fsp-desc {
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.85rem;
}

.fsp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--terracota-medio);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  align-self: flex-start;
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.fsp-cta:hover {
  background: var(--verde-agua);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(var(--verde-agua-rgb), 0.45);
}

.fsp-cta .fa-whatsapp {
  font-size: 1rem;
}

/* ── Responsivo ────────────────────────────────── */
@media (max-width: 700px) {
  .fisio-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .fst-btn {
    padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  }

  .fst-icon {
    width: 30px;
    height: 30px;
  }

  .fst-label {
    font-size: 0.76rem;
  }

  .fisio-panels {
    min-height: 0;
  }

  .fsp {
    position: relative;
    inset: unset;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 1.5rem;
    border-radius: 20px;
  }

  .fsp.is-active {
    display: flex;
  }

  .fsp-num {
    font-size: clamp(4.5rem, 22vw, 6.5rem);
  }
}

@media (max-width: 480px) {
  #fisioterapia {
    padding: clamp(3.5rem, 8vh, 5rem) 0;
  }

  .fisio-tabs {
    grid-template-columns: 1fr;
  }

  .fsp {
    padding: 1.25rem;
  }

  .fsp-title {
    font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  }

  .fsp-desc {
    font-size: 0.85rem;
    margin-bottom: 1.35rem;
  }

  .fsp-cta {
    align-self: stretch;
    justify-content: center;
  }
}
