/* ============================================
   ELEVA3 — planos.css
   Estilos exclusivos da página Planos e preços
   Depende das variáveis e classes de style.css
   ============================================ */

/* ---------- HERO PLANOS ---------- */
.planos-hero {
  background: var(--navy);
  padding: 3rem 0 4.5rem;
  text-align: center;
}
.planos-hero__inner { max-width: 640px; margin-inline: auto; }
.planos-hero .hero__eyebrow { justify-content: center; }
.planos-hero__title {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 1rem 0 0.9rem;
}
.planos-hero__sub {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 2rem;
}

/* ---------- TOGGLE MENSAL / ANUAL ---------- */
.price-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.price-toggle__btn {
  font-family: inherit;
  border: none;
  cursor: pointer;
  padding: 0.6em 1.3em;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text2);
  background: transparent;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.price-toggle__btn.is-active { background: var(--gold); color: #fff; }
.price-toggle__tag {
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.85;
}

.bundle-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.3rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.planos-hero__inner { display: flex; flex-direction: column; align-items: center; }
.bundle-toggle__btn {
  font-family: inherit;
  border: none;
  cursor: pointer;
  padding: 0.6em 1.3em;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text2);
  background: transparent;
  transition: var(--transition);
}
.bundle-toggle__btn.is-active { background: var(--white); color: var(--navy); }
#pricing:not([data-bundle="hotel"]) [data-only="hotel"],
#pricing:not([data-bundle="loja"]) [data-only="loja"],
#pricing:not([data-bundle="clinica"]) [data-only="clinica"] { display: none; }

/* ---------- PRICING CARDS ---------- */
.pricing { padding: 5rem 0 6rem; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  background: rgba(11,31,58,0.025);
  padding: 2rem 1.85rem;
}
.pricing-card--highlight {
  border-color: rgba(0,102,255,0.4);
  background: rgba(0,102,255,0.04);
  box-shadow: 0 20px 50px rgba(0,102,255,0.1);
  transform: translateY(-6px);
}
.pricing-card__badge {
  position: absolute;
  top: -12px; left: 1.85rem;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.pricing-card__name { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.pricing-card__tagline { font-size: 0.9rem; font-weight: 700; color: var(--gold); margin: 0.3rem 0 0.75rem; }
.pricing-card__desc { font-size: 0.86rem; color: var(--text2); line-height: 1.6; margin-bottom: 1.5rem; }
.pricing-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.pricing-card__old { font-size: 0.8rem; color: var(--text2); text-decoration: line-through; }
.pricing-card__value { font-size: 1.6rem; font-weight: 800; color: var(--white); }
.pricing-card__period { font-size: 0.82rem; color: var(--text2); }
.pricing-card__price--custom { border-bottom: 1px solid var(--border); }
.pricing-card__list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.75rem; flex: 1; }
.pricing-card__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.86rem;
  color: var(--text);
}
.pricing-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.45em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
}
.pricing-card__list--open li::before { background: var(--gold); }

/* ---------- COMPARAÇÃO ---------- */
.comparacao { padding: 1rem 0 6rem; }
.comparacao-table__wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.comparacao-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.comparacao-table th, .comparacao-table td {
  padding: 0.9rem 1.2rem;
  text-align: center;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.comparacao-table th:first-child, .comparacao-table td:first-child {
  text-align: left;
  white-space: normal;
  color: var(--white);
  font-weight: 600;
}
.comparacao-table thead th {
  background: rgba(11,31,58,0.04);
  color: var(--white);
  font-weight: 800;
}
.comparacao-table tbody tr:last-child td { border-bottom: none; }
.comparacao-table td.yes { color: var(--gold); font-weight: 800; }
.comparacao-table td.no { color: var(--text2); opacity: 0.6; }
.comparacao-table td.open { color: var(--text2); font-size: 0.78rem; font-style: italic; }
.comparacao-note { font-size: 0.75rem; color: var(--text2); margin-top: 1rem; opacity: 0.8; }

/* ---------- ATENDIMENTO 24H ---------- */
.atendimento24 { padding: 1rem 0 6rem; }
.atendimento24-card__text h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--white); margin: 0.4rem 0 0.6rem; }
.atendimento24-card__lead { font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 0.75rem; }
.atendimento24-card__text > p:last-child { font-size: 0.92rem; color: var(--text); max-width: 640px; line-height: 1.65; }

/* ---------- REDE E FRANQUIAS ---------- */

.rede {
  padding: 1rem 1rem 6rem;
}

.rede .rede__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10rem;
  align-items: center;
}

.rede .visual-placeholder {
  padding: 0;
  border: none;
  margin: 0;
  width: 90%;
  background: transparent;
}

.rede .rede__planos-img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: var(--r2);
}

@media (max-width: 768px) {
  .rede .rede__inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--highlight { transform: none; }
  .rede__inner { grid-template-columns: 1fr; }
  .rede__visual { max-width: 420px; }
}
@media (max-width: 560px) {
  .planos-hero { padding: 2.5rem 0 3.5rem; }
  .comparacao-table th, .comparacao-table td { padding: 0.75rem 0.9rem; }
}

/* ---------- ÁREA DE PERSONALIZAÇÃO ---------- */
.custom-area { margin-top: 4rem; scroll-margin-top: 6rem; }
.custom-area__title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--white); margin: 0.4rem 0 0.5rem; }
.custom-area__sub { font-size: 0.92rem; color: var(--text2); margin-bottom: 1.75rem; }
.custom-group {
  border: 1px solid var(--border); border-radius: var(--r2);
  padding: 1.25rem 1.5rem 1.5rem; margin: 0 0 1.25rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem 1.5rem;
}
.custom-group legend { font-size: 0.9rem; font-weight: 800; color: var(--white); padding: 0 0.5rem; }
.custom-group legend small { font-weight: 500; color: var(--text2); }
.custom-opt { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--text); cursor: pointer; }
.custom-opt input { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
@media (max-width: 560px) { #custom-quote { width: 100%; justify-content: center; } }


/* Imagem ampliável */
.rede__planos-img {
  cursor: zoom-in;
}

/* Fundo da imagem ampliada */
.imagem-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.imagem-lightbox.is-open {
  display: flex;
}

.imagem-lightbox img {
  display: block;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.imagem-lightbox__fechar {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  border: none;
  background: transparent;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
}

@media (max-width: 560px) {
  .imagem-lightbox {
    padding: 1rem;
  }
}
