/* ==========================================================
   TABELA DE PREÇOS V1.0.0
   Layouts flexíveis para exibição de planos ou pacotes
   ========================================================== */

/* Prefixo exclusivo: tabpreco- */

/* ===============================
   CORES DE FUNDO (DEGRADÊS)
   =============================== */

/* Azul */
.tabpreco-bg-azul .tabpreco-header {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

/* Amarelo */
.tabpreco-bg-amarelo .tabpreco-header {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1f2937;
}

/* Verde */
.tabpreco-bg-verde .tabpreco-header {
  background: linear-gradient(135deg, #047857, #10b981);
}

/* Vermelho */
.tabpreco-bg-vermelho .tabpreco-header {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
}

/* Roxo */
.tabpreco-bg-roxo .tabpreco-header {
  background: linear-gradient(135deg, #6d28d9, #a855f7);
}

/* Lilás */
.tabpreco-bg-lilas .tabpreco-header {
  background: linear-gradient(135deg, #7c3aed, #c084fc);
}

/* Preto */
.tabpreco-bg-preto .tabpreco-header {
  background: linear-gradient(135deg, #000, #374151);
}

/* Cinza */
.tabpreco-bg-cinza .tabpreco-header {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  color: #111827;
}

/* Branco */
.tabpreco-bg-branco .tabpreco-header {
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
  color: #111827;
  border-bottom: 1px solid #d1d5db;
}

/* Laranja */
.tabpreco-bg-laranja .tabpreco-header {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

/* Dourado */
.tabpreco-bg-dourado .tabpreco-header {
  background: linear-gradient(135deg, #b45309, #facc15);
  color: #1f2937;
}

/* ===============================
   AJUSTES DE CONTRASTE
   =============================== */

.tabpreco-bg-amarelo .tabpreco-header h3,
.tabpreco-bg-cinza .tabpreco-header h3,
.tabpreco-bg-branco .tabpreco-header h3 {
  color: #111827;
}

.tabpreco-bg-amarelo .tabpreco-header p,
.tabpreco-bg-cinza .tabpreco-header p,
.tabpreco-bg-branco .tabpreco-header p {
  color: #374151;
}


/* Prefixo exclusivo: tabpreco- */

.tabpreco {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  box-sizing: border-box;
  justify-items: center;
  align-items: stretch;
  background-color: #f9fafb;
}

/* ===============================
   CARD BÁSICO
   =============================== */

.tabpreco-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.tabpreco-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* ===============================
   CABEÇALHO DO CARD
   =============================== */

.tabpreco-header {
  background-color: #1e3a8a;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
}

.tabpreco-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.tabpreco-header p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: #e0e7ff;
}

/* ===============================
   PREÇO
   =============================== */

.tabpreco-price {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}

.tabpreco-price strong {
  font-size: 2rem;
  color: #111827;
}

.tabpreco-price span {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ===============================
   LISTA DE BENEFÍCIOS
   =============================== */

.tabpreco-features {
  flex-grow: 1;
  padding: 1rem 2rem;
}

.tabpreco-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tabpreco-features li {
  margin: 0.75rem 0;
  color: #374151;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
}

.tabpreco-features li::before {
  content: "✓";
  color: #10b981;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ===============================
   BOTÃO
   =============================== */

.tabpreco-action {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
}

.tabpreco-action a {
  display: inline-block;
  background-color: #2563eb;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

.tabpreco-action a:hover {
  background-color: #1d4ed8;
}

/* ===============================
   PLANO DE DESTAQUE
   =============================== */

.tabpreco-card.destacado {
  border: 2px solid #2563eb;
  transform: scale(1.03);
}

.tabpreco-card.destacado .tabpreco-header {
  background-color: #2563eb;
}

/* ===============================
   RESPONSIVIDADE
   =============================== */

@media (max-width: 768px) {
  .tabpreco {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tabpreco-card {
    max-width: 100%;
  }
}

/* ==========================================================
   BOTÕES POR COR DE TEMA
   Mantém coerência entre o card e o botão principal
   ========================================================== */

/* Azul */
.tabpreco-bg-azul .tabpreco-action a {
  background: #1e3a8a;
}
.tabpreco-bg-azul .tabpreco-action a:hover {
  background: #3b82f6;
}

/* Amarelo */
.tabpreco-bg-amarelo .tabpreco-action a {
  background: #ca8a04;
  color: #1f2937;
}
.tabpreco-bg-amarelo .tabpreco-action a:hover {
  background: #facc15;
}

/* Verde */
.tabpreco-bg-verde .tabpreco-action a {
  background: #047857;
}
.tabpreco-bg-verde .tabpreco-action a:hover {
  background: #10b981;
}

/* Vermelho */
.tabpreco-bg-vermelho .tabpreco-action a {
  background: #b91c1c;
}
.tabpreco-bg-vermelho .tabpreco-action a:hover {
  background: #ef4444;
}

/* Roxo */
.tabpreco-bg-roxo .tabpreco-action a {
  background: #6d28d9;
}
.tabpreco-bg-roxo .tabpreco-action a:hover {
  background: #a855f7;
}

/* Lilás */
.tabpreco-bg-lilas .tabpreco-action a {
  background: #7c3aed;
}
.tabpreco-bg-lilas .tabpreco-action a:hover {
  background: #c084fc;
}

/* Dourado */
.tabpreco-bg-dourado .tabpreco-action a {
background: linear-gradient(135deg, #b45309, #facc15);
  color: #1f2937;
}
.tabpreco-bg-dourado .tabpreco-action a:hover {
  background: #facc15;
  color: #111827;
}

/* Preto */
.tabpreco-bg-preto .tabpreco-action a {
  background: #111827;
}
.tabpreco-bg-preto .tabpreco-action a:hover {
  background: #374151;
}

/* Cinza */
.tabpreco-bg-cinza .tabpreco-action a {
  background: #6b7280;
}
.tabpreco-bg-cinza .tabpreco-action a:hover {
  background: #9ca3af;
}

/* Branco */
.tabpreco-bg-branco .tabpreco-action a {
  background: #e5e7eb;
  color: #111827;
}
.tabpreco-bg-branco .tabpreco-action a:hover {
  background: #d1d5db;
}

/* Laranja */
.tabpreco-bg-laranja .tabpreco-action a {
  background: #ea580c;
}
.tabpreco-bg-laranja .tabpreco-action a:hover {
  background: #f97316;
}

