/* Shared pricing-card system, used by both index.html's #precio section and
   precios.html. Single source of truth on purpose -- before 2026-09-29 these
   were two independent implementations (index.html's was a stale,
   hardcoded pre-launch promo for a single "Premium" concept, never wired to
   real payment) and had already drifted apart. See
   [[website_payment_flow_initiative]] memory for the merge. Content/prices
   come from js/pricing-cards.js reading Configuration live -- this file is
   layout/visuals only. */

.cycle-toggle-wrap { display: flex; justify-content: center; margin: 32px 0 0; }
.cycle-toggle { display: inline-flex; background: var(--cream-deep); border-radius: 999px; padding: 5px; gap: 4px; }
.cycle-btn { padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; font-family: var(--body); }
.cycle-btn.active { background: var(--surface); color: var(--green-ink); box-shadow: 0 6px 16px rgba(20,30,25,0.10); }
.cycle-save { background: var(--yellow); color: var(--green-ink); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.01em; }
.price-equiv { font-size: 12.5px; opacity: 0.85; margin-top: 4px; position: relative; z-index: 1; }
.price-tax-note { font-size: 11.5px; opacity: 0.65; margin-top: 3px; position: relative; z-index: 1; }

.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 22px; max-width: 1080px; margin: 44px auto 0; padding: 0 28px; }
.price-card { display: grid; grid-template-rows: subgrid; grid-row: span 2; background: var(--surface); border-radius: 30px; padding: 8px; box-shadow: 0 30px 70px rgba(20,30,25,0.10); }
.price-card.featured { box-shadow: 0 34px 80px rgba(10,62,27,0.22); transform: translateY(-6px); }
.price-top { border-radius: 24px; padding: 30px 26px 26px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--ink); }
.price-card.free .price-top { background: var(--ink-soft); }
.price-card.premium .price-top { background: var(--green-ink); }
.price-card.nutriplus .price-top { background: #3a2a52; }
.price-top .glow { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--yellow); opacity: 0.14; top: -60px; right: -40px; }
.price-badge { display: inline-block; background: var(--yellow); color: var(--green-ink); font-weight: 700; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; position: relative; z-index: 1; }
.recommended-tag { display: inline-block; margin-left: 8px; background: rgba(255,255,255,0.18); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; position: relative; z-index: 1; }
.price-num { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; position: relative; z-index: 1; }
.price-num .cur { font-size: 20px; font-weight: 600; opacity: 0.85; }
.price-num .amt { font-family: var(--display); font-weight: 800; font-size: 42px; letter-spacing: -0.03em; }
.price-num .per { font-size: 14px; opacity: 0.8; }
.price-tier-name { font-family: var(--display); font-weight: 700; font-size: 21px; margin-top: 12px; position: relative; z-index: 1; }
.price-body { padding: 24px 26px 28px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.price-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.price-list .chk { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; margin-top: 1px; font-size: 11px; }
.price-cta-btn { width: 100%; padding: 15px; font-size: 15px; border-radius: 999px; font-weight: 700; text-align: center; display: block; }
.price-cta-btn.primary { background: var(--green-ink); color: #fff; }
.price-cta-btn.primary:hover { background: #0c5121; }
.price-cta-btn.ghost { background: var(--cream-deep); color: var(--ink); }
.price-cta-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.cta-note { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }
.cta-error { text-align: center; font-size: 13px; color: var(--pink); margin-top: 10px; }
.loading-placeholder { text-align: center; padding: 60px 0; color: var(--ink-soft); }

@media (max-width: 900px) {
  .price-cards { grid-template-columns: 1fr; max-width: 420px; }
  .price-card.featured { transform: none; }
}
