:root {
  color-scheme: dark;
  font-family: Inter, Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #04070d;
  color: #f8faff;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(207, 21, 66, 0.2), transparent 34%),
    radial-gradient(circle at 82% 75%, rgba(20, 177, 145, 0.16), transparent 36%),
    #04070d;
}

.membership-shell {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
}

.membership-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.membership-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.membership-brand span { display: grid; gap: 1px; }
.membership-brand small { color: #ffd36a; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.membership-brand strong { font-size: 1.05rem; }

.membership-card {
  margin-top: 20px;
  border: 1px solid rgba(255, 211, 106, .25);
  border-radius: 26px;
  padding: clamp(22px, 5vw, 42px);
  background: linear-gradient(145deg, rgba(255, 211, 106, .08), transparent 35%), rgba(7, 11, 20, .94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
}

.membership-eyebrow {
  margin: 0 0 8px;
  color: #ffd36a;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 { max-width: 760px; margin: 0; font-size: clamp(2rem, 7vw, 3.7rem); line-height: 1.02; }
.membership-lead { margin: 14px 0 0; color: rgba(248, 250, 255, .73); line-height: 1.6; }

.membership-status {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .78);
}

.membership-status.is-error { border-color: rgba(255, 96, 115, .45); color: #ffacb7; }
.membership-status.is-success { border-color: rgba(69, 215, 165, .5); color: #8ce9c9; }

.membership-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 20px;
}

.membership-plan {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 142px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  padding: 20px 16px 15px;
  background: rgba(255, 255, 255, .035);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.membership-plan:hover, .membership-plan:focus-visible, .membership-plan.is-selected {
  outline: none;
  border-color: rgba(255, 211, 106, .68);
  background: rgba(255, 211, 106, .09);
}

.membership-plan.is-recommended::before {
  content: "Mejor valor";
  position: absolute;
  top: -9px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #ffd36a;
  color: #161104;
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-plan strong { font-size: 1rem; }
.membership-plan b { color: #ffd36a; font-size: 1.55rem; }
.membership-plan small { align-self: end; color: rgba(255, 255, 255, .66); line-height: 1.35; }

.membership-renewal-note {
  display: grid;
  gap: 4px;
  margin-top: 17px;
  border-left: 3px solid #ffd36a;
  padding: 10px 13px;
  background: rgba(255, 211, 106, .065);
  color: rgba(255, 255, 255, .75);
  font-size: .85rem;
  line-height: 1.48;
}

.membership-renewal-note strong { color: #fff; }

.membership-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 19px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.48;
}

.membership-terms input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #e1b83d; }
.membership-terms a { color: #ffd36a; }
.membership-paypal { min-height: 52px; margin: 17px auto 0; max-width: 520px; }
.membership-paypal p { margin: 0; color: rgba(255, 255, 255, .58); text-align: center; font-size: .84rem; }

.membership-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 22px; }
.membership-actions a { color: rgba(255, 255, 255, .73); font-weight: 750; text-underline-offset: 4px; }
.membership-security { margin: 16px auto 0; max-width: 680px; color: rgba(255, 255, 255, .42); font-size: .75rem; line-height: 1.5; text-align: center; }

@media (max-width: 680px) {
  .membership-plans { grid-template-columns: 1fr; gap: 8px; }
  .membership-plan { grid-template-columns: 1fr auto; align-items: center; min-height: 76px; padding: 14px; }
  .membership-plan small { grid-column: 1 / -1; }
}
