/* Ya llegó · estilos compartidos de la web pública (landing, /activar, /unirse, legales). */
:root {
  --purple: #5b2a86;
  --purple-2: #7c3fb8;
  --purple-3: #a57bd6;
  --purple-light: #f1eaf9;
  --green: #1fb57a;
  --green-2: #37d59a;
  --green-light: #e5f7ef;
  --amber: #d4930f;
  --red: #d64545;
  --ink: #17122a;
  --ink-2: #4a4360;
  --ink-3: #847d95;
  --line: rgba(91, 42, 134, .12);
  --glass: rgba(255, 255, 255, .72);
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(23, 18, 42, .05), 0 2px 6px rgba(23, 18, 42, .04);
  --shadow: 0 10px 30px -12px rgba(62, 26, 102, .25), 0 4px 10px -6px rgba(23, 18, 42, .08);
  --shadow-lg: 0 30px 60px -20px rgba(62, 26, 102, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #faf8fd;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }

/* ---------- Fondo: manchas de color difuminadas que se mueven despacio ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #fbf9fe 0%, #f6f1fb 60%, #f3faf6 100%); }
.bg span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 22s var(--ease) infinite alternate; }
.bg span:nth-child(1) { width: 520px; height: 520px; background: #cdb3ee; top: -160px; left: -120px; }
.bg span:nth-child(2) { width: 460px; height: 460px; background: #b9efd6; top: 18%; right: -140px; animation-duration: 26s; animation-delay: -6s; }
.bg span:nth-child(3) { width: 380px; height: 380px; background: #e7d6fb; bottom: -120px; left: 30%; animation-duration: 30s; animation-delay: -12s; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(.95); }
}
/* Grano sutil para que el degradado no se vea plano */
.bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(91, 42, 134, .05) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }

/* ---------- Estructura ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 16px; }
section { position: relative; }

/* Barra superior translúcida */
.nav { position: sticky; top: 0; z-index: 20; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--glass); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom-color: var(--line); }
header.top, .nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo i { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--purple), var(--purple-2)); display: grid; place-items: center; font-style: normal; box-shadow: 0 6px 16px -6px rgba(91, 42, 134, .7); }
.logo i svg { width: 20px; height: 20px; fill: #fff; }
nav.links { display: flex; align-items: center; gap: 6px; }
nav.links a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background .2s, color .2s; }
nav.links a:not(.btn):hover { background: rgba(91, 42, 134, .07); color: var(--purple); text-decoration: none; }

/* ---------- Tipografía ---------- */
h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
h3 { letter-spacing: -.01em; }
.grad { background: linear-gradient(100deg, var(--purple) 0%, var(--purple-2) 45%, var(--green) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 620px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--purple); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31, 181, 122, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 181, 122, .55); } 70% { box-shadow: 0 0 0 10px rgba(31, 181, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 181, 122, 0); } }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .lead { margin: 0 auto; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: #fff; border: 0; border-radius: 14px;
  padding: 0 24px; min-height: 52px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(91, 42, 134, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s; overflow: hidden; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(91, 42, 134, .75), inset 0 1px 0 rgba(255, 255, 255, .2); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn.green { background: linear-gradient(135deg, #17a86f, var(--green-2)); box-shadow: 0 10px 24px -10px rgba(31, 181, 122, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.ghost { background: rgba(255, 255, 255, .7); color: var(--purple); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: #fff; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
/* Brillo que cruza el botón principal */
.btn.shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Tarjetas ---------- */
.card { background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(91, 42, 134, .22); }
.feature h3 { margin: 16px 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple-light), #fff); border: 1px solid var(--line); color: var(--purple); }
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.green { background: linear-gradient(135deg, var(--green-light), #fff); color: #13925f; }

/* ---------- Formularios (/activar) ---------- */
label { display: block; font-weight: 700; margin: 18px 0 8px; font-size: 15px; }
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); font-size: 18px; font-family: inherit;
  background: rgba(255, 255, 255, .9); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple-3); box-shadow: 0 0 0 4px rgba(124, 63, 184, .15); }
input.code { font-size: 26px; letter-spacing: 7px; text-transform: uppercase; font-weight: 800; text-align: center; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan { position: relative; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; background: rgba(255, 255, 255, .85); text-align: left; font: inherit; color: inherit; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.plan[aria-pressed="true"] { border-color: var(--purple); background: linear-gradient(135deg, #fff, var(--purple-light)); box-shadow: 0 0 0 4px rgba(124, 63, 184, .12); }
.plan b { display: block; font-size: 24px; color: var(--purple); letter-spacing: -.02em; }
.amount { font-size: clamp(44px, 10vw, 60px); font-weight: 800; letter-spacing: -.03em; background: linear-gradient(100deg, #139a64, var(--green-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notice { background: #fff8e8; border: 1px solid #f5e2b3; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.error { background: #fdeeee; color: #8f2020; border: 1px solid #f6d0d0; border-radius: 14px; padding: 12px 14px; margin-top: 14px; font-size: 15px; }
.ok { background: var(--green-light); color: #0f6e48; border-radius: 16px; padding: 18px; }
.badge { display: inline-block; background: var(--green-light); color: #0f7a50; font-weight: 700; font-size: 13px; padding: 5px 11px; border-radius: 999px; }

/* ---------- Pie ---------- */
footer { padding: 48px 0 40px; color: var(--ink-3); font-size: 15px; }
footer a { color: var(--ink-2); }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.fade-in { animation: fadeUp .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.spinner { width: 22px; height: 22px; border: 3px solid var(--purple-light); border-top-color: var(--purple); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Legales ---------- */
.prose h1 { font-size: clamp(32px, 5vw, 44px); }
.prose h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-2); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-3); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  nav.links a:not(.btn):not(.keep) { display: none; }
  .card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
