:root {
  --bg-primary: #101828;
  --bg-secondary: #171f2f;
  --bg-card: #1d2939;
  --bg-card-subtle: #161e2e;
  --border-color: rgba(255, 255, 255, 0.09);
  --text-main: #f2f4f7;
  --text-secondary: #d0d5dd;
  --text-muted: #98a2b3;
  --brand-400: #7592ff;
  --brand-500: #465fff;
  --brand-600: #3641f5;
  --accent-emerald: #12b76a;
  --accent-amber: #f79009;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] {
  --bg-primary: #f9fafb;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f2f4f7;
  --border-color: #e4e7ec;
  --text-main: #101828;
  --text-secondary: #344054;
  --text-muted: #667085;
  --shadow-card: 0 2px 10px rgba(16, 24, 40, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

.planes-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.planes-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-500);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(70, 95, 255, 0.35);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.16s ease;
}

.btn:hover {
  border-color: var(--brand-400);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-600);
}

.hero-section {
  padding: 44px 0 24px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(70, 95, 255, 0.14);
  color: var(--brand-400);
  border: 1px solid rgba(70, 95, 255, 0.3);
  margin-bottom: 14px;
}

html[data-theme="light"] .hero-tag {
  color: var(--brand-600);
}

.hero-title {
  font-size: clamp(1.65rem, 3.6vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 24px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.cat-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.cat-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-tab:hover {
  border-color: var(--brand-400);
  color: var(--text-main);
}

.cat-tab.active {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(70, 95, 255, 0.3);
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-400);
}

.plan-card.destacado {
  border-color: var(--brand-500);
  box-shadow: 0 10px 30px rgba(70, 95, 255, 0.2);
}

.plan-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  background: linear-gradient(135deg, var(--brand-500), #3641f5);
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-cat-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-400);
  background: rgba(70, 95, 255, 0.12);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}

html[data-theme="light"] .plan-cat-chip {
  color: var(--brand-600);
}

.plan-name {
  font-size: 1.24rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.plan-objetivo {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  min-height: 42px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-main);
}

.plan-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.limit-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(18, 183, 106, 0.12);
  color: #32d583;
  border: 1px solid rgba(18, 183, 106, 0.26);
}

html[data-theme="light"] .limit-chip {
  color: #027a48;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.plan-features li::before {
  content: '✓';
  color: var(--accent-emerald);
  font-weight: 800;
  flex-shrink: 0;
}

.local-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.planes-footer {
  border-top: 1px solid var(--border-color);
  padding: 22px 0 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 640px) {
  .planes-container {
    padding: 0 14px;
  }
  .planes-grid {
    grid-template-columns: 1fr;
  }
  .cat-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }
  .cat-tab {
    white-space: nowrap;
  }
  .topbar-actions .btn-hide-xs {
    display: none;
  }
}
