/* ════════════════════════════════════════════════════════════
   TechPackr · Pricing page
   Página standalone, mobile-friendly, light/dark coherente con app.
   Sin frameworks.
   ════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0d0f1a;
  --surface:   #11131f;
  --surface2:  #181a28;
  --surface3:  #1f2230;
  --border:    #2a2d3c;
  --text:      #e8e8ed;
  --text2:     #b4b6c4;
  --text3:     #7a7d8d;
  --accent:    #6c63ff;
  --accent2:   #00c49a;
  --danger:    #e63946;
  --warning:   #f4a261;
  --glow:      0 12px 40px rgba(108,99,255,.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(ellipse at top, rgba(108,99,255,.10), transparent 60%) var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Topbar ── */
.pr-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid transparent;
}
.pr-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.pr-brand-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 800; font-size: 14px;
  border-radius: 8px;
}
.pr-brand-name { font-size: 16px; }
.pr-nav { display: flex; gap: 18px; align-items: center; font-size: 14px; color: var(--text2); }
.pr-nav a:hover { color: var(--text); }
.pr-nav .pr-account {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
}
.pr-nav .pr-account:hover { background: var(--surface2); }

/* ── Hero ── */
.pr-hero {
  text-align: center;
  padding: 64px 24px 40px;
  max-width: 720px;
  margin: 0 auto;
}
.pr-h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pr-sub { margin: 0 0 32px; color: var(--text2); font-size: 17px; }

.pr-current-banner {
  display: inline-block;
  background: rgba(0,196,154,.10);
  border: 1px solid rgba(0,196,154,.35);
  color: var(--accent2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Toggle Monthly/Annual */
.pr-cycle-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.pr-cycle {
  border: none;
  background: transparent;
  color: var(--text2);
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .2s;
}
.pr-cycle.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,99,255,.35);
}
.pr-saving-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  background: var(--accent2);
  color: #04221c;
  border-radius: 999px;
  letter-spacing: .03em;
}
.pr-cycle.is-active .pr-saving-badge { background: #fff; color: var(--accent); }

/* ── Plans cards ── */
.pr-plans-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px;
}
.pr-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.pr-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pr-plan:hover {
  transform: translateY(-3px);
  border-color: rgba(108,99,255,.4);
}
.pr-plan.is-highlight {
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.pr-plan-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pr-plan-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}
.pr-plan-tag {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  margin-bottom: 18px;
}

.pr-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}
.pr-plan-price-amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.pr-plan-price-suffix {
  font-size: 14px;
  color: var(--text3);
}
.pr-plan-price-annual-note {
  font-size: 12px;
  color: var(--accent2);
  font-weight: 600;
  min-height: 18px;
  margin-bottom: 18px;
}

.pr-plan-cta {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 22px;
  transition: opacity .2s, transform .1s;
}
.pr-plan-cta:hover { opacity: .92; }
.pr-plan-cta:active { transform: scale(.985); }
.pr-plan-cta.is-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.pr-plan-cta.is-ghost:hover { background: var(--surface2); }
.pr-plan-cta.is-current {
  background: rgba(0,196,154,.15);
  color: var(--accent2);
  cursor: default;
  border: 1px solid rgba(0,196,154,.35);
}

.pr-plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text2);
  flex: 1;
}
.pr-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pr-plan-features li::before {
  content: "✓";
  color: var(--accent2);
  font-weight: 800;
  flex-shrink: 0;
}

.pr-disclaimer {
  text-align: center;
  color: var(--text3);
  font-size: 12px;
  margin: 24px 0 0;
}

/* ── Comparison table ── */
.pr-compare-section {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 0 24px;
}
.pr-h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -.01em;
  text-align: center;
}

.pr-compare-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  overflow-x: auto;
}
.pr-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}
.pr-compare thead th {
  text-align: center;
  padding: 16px 14px;
  background: var(--surface2);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.pr-compare thead th:first-child { text-align: left; color: var(--text3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.pr-compare thead th.is-highlight { color: var(--accent); }
.pr-compare tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text2);
}
.pr-compare tbody td:first-child { text-align: left; font-weight: 600; color: var(--text); }
.pr-compare tbody tr:last-child td { border-bottom: none; }
.pr-compare tbody tr:hover td { background: var(--surface2); }
.pr-compare .pr-yes  { color: var(--accent2); font-weight: 700; }
.pr-compare .pr-no   { color: var(--text3); }
.pr-compare-group {
  background: rgba(108,99,255,.05);
  color: var(--accent) !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700 !important;
}

/* ── FAQ ── */
.pr-faq {
  max-width: 900px;
  margin: 80px auto 0;
  padding: 0 24px;
}
.pr-faq-grid {
  display: grid;
  gap: 12px;
}
.pr-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color .2s;
}
.pr-faq details[open] { border-color: rgba(108,99,255,.4); }
.pr-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text3);
  transition: transform .2s;
}
.pr-faq details[open] summary::after { content: "−"; }
.pr-faq p {
  margin: 12px 0 0;
  color: var(--text2);
  font-size: 14px;
}

/* ── Footer ── */
.pr-footer {
  text-align: center;
  padding: 64px 24px 32px;
  color: var(--text3);
  font-size: 13px;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.pr-footer a:hover { color: var(--text); }

/* ── Toast ── */
.pr-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 9999;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  max-width: 90vw;
}
.pr-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 720px) {
  .pr-topbar { padding: 14px 16px; }
  .pr-nav { gap: 12px; font-size: 13px; }
  .pr-hero { padding: 32px 16px 24px; }
  .pr-plan { padding: 22px 18px; }
  .pr-plan-price-amount { font-size: 34px; }
}
