:root {
  --bg: #0c0f24;
  --bg-soft: #11152e;
  --card: #161b39;
  --card-hover: #1d2447;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f5ff;
  --muted: #9aa2cc;
  --accent: #5b8cff;
  --accent-bright: #7aa6ff;
  --accent-2: #2bd9a8;
  --danger: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 600px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow backdrop */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(720px 480px at 50% -8%, rgba(91, 140, 255, 0.28), transparent 60%),
    radial-gradient(620px 420px at 100% 8%, rgba(43, 217, 168, 0.14), transparent 55%),
    radial-gradient(680px 520px at 0% 18%, rgba(120, 90, 255, 0.16), transparent 55%),
    var(--bg);
}

/* Layout shells */
.site-header,
.site-main,
.site-footer { max-width: var(--maxw); margin: 0 auto; }
.site-header { padding: 28px 22px 0; }
.site-main { padding: 18px 22px 52px; }
.site-footer {
  padding: 26px 22px 44px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.site-footer strong { color: var(--text); font-weight: 600; }

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  font-size: 1.35rem;
  filter: drop-shadow(0 4px 10px rgba(91, 140, 255, 0.5));
}
.brand-word {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, #b9c7ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero */
.hero { text-align: center; padding: 40px 0 12px; }
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}
.tagline {
  color: var(--muted);
  margin: 0 auto;
  max-width: 40ch;
  font-size: 1.05rem;
}

/* Linktree cards */
.links { display: flex; flex-direction: column; gap: 14px; margin-top: 34px; }
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.link-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, var(--card-hover), var(--bg-soft));
  border-color: rgba(91, 140, 255, 0.55);
}
.link-card--soon { opacity: 0.5; }
.link-emoji {
  font-size: 1.7rem;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(91, 140, 255, 0.12);
  border-radius: 14px;
  flex: none;
}
.link-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.link-title { font-weight: 700; font-size: 1.05rem; }
.link-desc { color: var(--muted); font-size: 0.9rem; }
.link-arrow { color: var(--accent-bright); font-size: 1.3rem; flex: none; }

/* Prose */
.prose { margin-top: 26px; }
.prose h2 {
  font-size: 1.2rem;
  margin: 30px 0 10px;
  letter-spacing: -0.01em;
}
.prose p { color: var(--muted); }
.prose ol,
.prose ul { padding-left: 1.25rem; color: var(--muted); margin: 0; }
.prose li { margin: 8px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-bright); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.fineprint {   color: var(--muted); font-size: 0.82rem; margin-top: 24px; opacity: 0.85; text-align: center;  }
.internal-link { color: aliceblue;}
.fineprint a { color: var(--accent-bright); text-decoration: none; }
.fineprint a:hover { text-decoration: underline; }
.cta-row { text-align: center; margin: 28px 0 8px; }

/* Legal pages (tyc, política de privacidad) */
.legal-meta { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 4px 0 0; }
.legal-back { display: inline-block; margin-top: 36px; color: var(--accent-bright); text-decoration: none; font-size: 0.9rem; }
.legal-back:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #6f9bff);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 26px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(91, 140, 255, 0.8);
  transition: filter 0.14s ease, transform 0.14s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Checkout (comprar) ---------- */
.checkout {
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}
.product {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.product .name { font-weight: 600; color: var(--muted); }
.product .price { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.cc-field {
  height: 50px;
  background: #0a0d20;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  display: flex; align-items: center;
  transition: border-color 0.14s ease;
}
.cc-field:focus-within { border-color: var(--accent); }
.row { display: flex; gap: 14px; }
.row .field { flex: 1; }
#pay-btn { width: 100%; margin-top: 8px; }

.status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.92rem; display: none; }
.status.show { display: block; }
.status.ok { background: rgba(43, 217, 168, 0.12); border: 1px solid rgba(43, 217, 168, 0.5); color: var(--accent-2); }
.status.err { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.5); color: var(--danger); }
.status.info { background: rgba(91, 140, 255, 0.1); border: 1px solid rgba(91, 140, 255, 0.4); color: var(--text); }

.secure-note { text-align: center; color:var(--text);; font-size: 0.78rem; margin-top: 16px; opacity: 0.85; }

/* Motion-safety + small screens */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media (max-width: 420px) {
  .hero { padding-top: 30px; }
  .link-card { padding: 16px; }
}
