:root {
  --purple: #8b5cf6;
  --purple-2: #7c3aed;
  --purple-deep: #6d28d9;
  --gold: #e8b923;
  --gold-soft: #f3d27a;
  --black: #0a0a0f;
  --panel: #14141d;
  --panel-2: #1d1d29;
  --line: #2a2a3a;
  --text: #f3f3f7;
  --muted: #9a9ab0;
  --green: #25d366;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(139, 92, 246, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(124, 58, 237, 0.25), transparent 60%),
    radial-gradient(800px 400px at 100% 10%, rgba(232, 185, 35, 0.08), transparent 55%),
    var(--black);
  min-height: 100vh;
}

img { max-width: 100%; }
.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px; }

/* Header */
header {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-in {
  max-width: 520px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: .3px; }
.logo span:last-child { background: linear-gradient(90deg, var(--gold), var(--gold-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .play {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  box-shadow: var(--glow);
  display: grid; place-items: center;
}
.logo .play::after {
  content: ''; width: 0; height: 0;
  border-left: 11px solid var(--gold); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  margin-left: 3px;
}

/* Hero */
.hero { text-align: center; padding: 30px 0 8px; }
.badge {
  display: inline-block; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 14px; color: var(--gold);
  background: rgba(232, 185, 35, 0.12); border: 1px solid rgba(232, 185, 35, 0.35);
}
.hero h1 { font-size: 29px; line-height: 1.18; margin-bottom: 10px; }
.hero p.sub { color: var(--muted); font-size: 16px; margin-bottom: 18px; }

.price-box {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: 22px; margin: 18px 0;
}
.price-old { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.price-now { font-size: 44px; font-weight: 800; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-now small { font-size: 16px; color: var(--muted); font-weight: 600; -webkit-text-fill-color: var(--muted); }
.countdown { color: var(--gold); font-weight: 700; margin-top: 6px; font-size: 14px; }

.btn {
  display: block; width: 100%; text-align: center; cursor: pointer; border: none;
  padding: 16px; border-radius: 14px; font-size: 17px; font-weight: 700;
  text-decoration: none; transition: transform .05s ease, opacity .2s, filter .2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--purple-deep)); color: #fff; box-shadow: var(--glow); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #1a1300; }
.btn-whats { background: var(--green); color: #06351a; }
.btn-ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn-done { background: rgba(37, 211, 102, 0.15) !important; color: #4ade80 !important; border: 1px solid rgba(37, 211, 102, 0.4) !important; box-shadow: none !important; }
.btn + .btn { margin-top: 10px; }

/* Beneficios */
.benefits { list-style: none; margin: 18px 0; }
.benefits li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px; font-weight: 600;
}
.benefits li .ic { font-size: 22px; }

/* Secciones */
section.block {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: 22px; margin: 18px 0;
}
section.block h2 { font-size: 20px; margin-bottom: 14px; text-align: center; }

.steps { counter-reset: step; }
.step { display: flex; gap: 14px; margin-bottom: 16px; }
.step:last-child { margin-bottom: 0; }
.step .num {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep)); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.step h3 { font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; }

/* Caja de canje */
#redeem-box label { font-weight: 700; display: block; margin-bottom: 8px; }
#redeem-box input {
  width: 100%; padding: 15px; border: 2px solid var(--line); border-radius: 12px;
  font-size: 18px; text-align: center; text-transform: uppercase; letter-spacing: 1px;
  font-weight: 700; margin-bottom: 12px; background: var(--black); color: var(--text);
}
#redeem-box input::placeholder { color: #565669; }
#redeem-box input:focus { outline: none; border-color: var(--purple); box-shadow: var(--glow); }
.msg { padding: 12px 14px; border-radius: 12px; margin-top: 12px; font-weight: 600; font-size: 14px; display: none; }
.msg.err { background: rgba(248, 113, 113, 0.12); color: #fca5a5; display: block; border: 1px solid rgba(248,113,113,.3); }
.msg.ok { background: rgba(37, 211, 102, 0.12); color: #4ade80; display: block; border: 1px solid rgba(37,211,102,.3); }

/* Zona de descarga / asistente */
#download-zone { display: none; }
.dl-card { text-align: center; }
.dl-card .check { font-size: 52px; }
.expiry-pill {
  display: inline-block; background: rgba(232,185,35,.14); color: var(--gold);
  border: 1px solid rgba(232,185,35,.35);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; margin: 6px 0 16px;
}

/* Caja de calma / tranquilizar antes de instalar */
.calm-box {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #cdeede; border-radius: 14px; padding: 14px 16px; font-size: 14px;
  line-height: 1.55; margin: 4px 0 16px;
}
.calm-box b { color: #4ade80; }

/* Wizard de instalacion paso a paso */
.wizard { margin-top: 10px; }
.wz {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; margin-bottom: 12px; transition: border-color .2s, background .2s;
}
.wz.done { border-color: rgba(37,211,102,.5); background: rgba(37,211,102,.07); }
.wz-head { display: flex; align-items: center; gap: 12px; }
.wz-num {
  flex: 0 0 36px; height: 36px; border-radius: 50%; font-weight: 800;
  display: grid; place-items: center; color: #1a1300;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}
.wz.done .wz-num { background: var(--green); color: #06351a; }
.wz-head h3 { font-size: 16px; }
.wz-body { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.wz-tip { background: rgba(139,92,246,.1); border: 1px dashed rgba(139,92,246,.4); color: #c4b5fd; border-radius: 10px; padding: 9px 12px; font-size: 13px; margin-top: 10px; }
.wz-actions { margin-top: 12px; }
.mark-done {
  margin-top: 10px; width: 100%; cursor: pointer; background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px; font-weight: 700; font-size: 13px;
}
.wz.done .mark-done { background: var(--green); color: #06351a; border-color: var(--green); }

/* Mini pasos visuales */
.mini-steps { display: flex; gap: 8px; margin: 14px 0 6px; }
.mini-steps .mini {
  flex: 1; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 6px; text-align: center; display: flex; flex-direction: column; gap: 3px;
}
.mini-steps .mi { font-size: 28px; }
.mini-steps b { font-size: 13px; }
.mini-steps small { font-size: 11px; color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); padding-top: 8px; font-size: 14px; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px 44px; }
footer a { color: var(--purple); text-decoration: none; }

.note-warn {
  background: rgba(232,185,35,.1); border: 1px solid rgba(232,185,35,.35); color: var(--gold-soft);
  border-radius: 12px; padding: 12px; font-size: 13px; margin-top: 12px;
}
