/* Copa León — identidad de Trading Miami Schooll: galaxia oscura, degradado violeta → magenta, azul eléctrico, Inter. */
:root {
  --bg: #04030a;
  --bg-2: #0a0816;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-2: #d4d4e0;
  --muted: #9b9bb0;
  --blue: #0a84ff;
  --blue-2: #2f6bff;
  --cyan: #38bdf8;
  --violet: #6d4cff;
  --purple: #8b5cf6;
  --magenta: #c026d3;
  --pink: #e040fb;
  --gold: #f5c518;
  --wa: #25d366;
  --error: #ff6b81;
  --grad-brand: linear-gradient(90deg, #5b5bff 0%, #8b5cf6 45%, #c026d3 80%, #e040fb 100%);
  --grad-blue: linear-gradient(135deg, #1e90ff 0%, #0a6cff 55%, #3d5afe 100%);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
strong { color: #fff; font-weight: 700; }

/* ---------- Fondo: estrellas + nebulosa ---------- */
.space {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% 10%, rgba(109, 76, 255, 0.28), transparent 70%),
    radial-gradient(50% 40% at 90% 25%, rgba(192, 38, 211, 0.22), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(10, 132, 255, 0.16), transparent 70%),
    var(--bg);
}
.space::before, .space::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 200px 150px, #fff, transparent),
    radial-gradient(1px 1px at 60px 190px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 260px 40px, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 170px 230px, rgba(255,255,255,.6), transparent),
    radial-gradient(1.2px 1.2px at 290px 210px, #fff, transparent);
  background-size: 300px 260px;
  opacity: 0.55;
}
.space::after { background-size: 470px 390px; transform: translate(80px, 60px); opacity: 0.35; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: 72px 0; position: relative; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 12px; z-index: 30; padding: 0 12px; }
.nav-inner {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(10, 8, 22, 0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 16px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 14.5px; white-space: nowrap; }
.logo img { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5)); }
.nav .pill-btn { font-size: 13.5px; padding: 10px 14px; white-space: nowrap; }
.two-col { display: grid; gap: 48px; }

/* ---------- Botones ---------- */
.pill-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 800; text-decoration: none; border-radius: 999px; transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.pill-btn { background: var(--blue); color: #fff; box-shadow: 0 6px 24px rgba(10, 132, 255, 0.45); }
.btn { width: 100%; min-height: 60px; font-size: 18px; padding: 16px 22px; letter-spacing: 0.01em; }
.btn:active, .pill-btn:active { transform: scale(0.98); }
.btn-blue { background: var(--grad-blue); color: #fff; box-shadow: 0 10px 34px rgba(10, 108, 255, 0.5), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-blue:hover { filter: brightness(1.08); box-shadow: 0 12px 40px rgba(10, 108, 255, 0.65), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-wa { background: var(--wa); color: #052e16; font-size: 19px; min-height: 66px; box-shadow: 0 10px 34px rgba(37, 211, 102, 0.45); }
.btn-wa:hover { filter: brightness(1.05); }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 34px; align-items: start; }
.hero-bull {
  position: absolute; left: 50%; top: -40px; width: min(820px, 140vw); transform: translateX(-50%);
  opacity: 0.13; filter: blur(1px) saturate(1.2); pointer-events: none; z-index: -1;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.edition {
  display: inline-flex; align-items: center; gap: 8px; transform: rotate(-2deg);
  background: #0b1030; border: 1.5px solid rgba(56, 189, 248, 0.75); border-radius: 10px; padding: 7px 14px; margin-bottom: 22px;
  font-size: 12.5px; font-weight: 900; letter-spacing: 0.22em; text-transform: uppercase; color: #e0f2fe;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.35), inset 0 0 12px rgba(56, 189, 248, 0.15);
}
.edition .trophy { color: var(--gold); letter-spacing: 0; }
h1 { font-size: clamp(38px, 9.4vw, 72px); line-height: 1.0; font-weight: 900; letter-spacing: -0.045em; margin-bottom: 20px; }
h1 .grad, h2 .grad, .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(30px, 6.6vw, 46px); line-height: 1.05; font-weight: 900; letter-spacing: -0.035em; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.sub { font-size: 19px; color: var(--text-2); margin-bottom: 22px; max-width: 34em; }
.section-sub { color: var(--text-2); font-size: 18px; max-width: 36em; margin-bottom: 30px; }

.when {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 22px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 16px; font-size: 15.5px; width: fit-content; max-width: 100%;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; flex: none; box-shadow: 0 0 0 0 rgba(255, 59, 92, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 59, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0); } }

.proof { display: flex; flex-wrap: wrap; gap: 8px; }
.proof span {
  font-size: 13.5px; font-weight: 700; color: var(--text-2); padding: 8px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
}
.proof b { color: #fff; }

/* ---------- Formulario ---------- */
.form-card {
  position: relative; background: linear-gradient(180deg, rgba(20, 16, 44, 0.85), rgba(10, 8, 22, 0.9));
  border: 1px solid var(--line-2); border-radius: 26px; padding: 26px 20px 20px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(139, 92, 246, 0.12);
  scroll-margin-top: 90px;
}
.form-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 27px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(56,189,248,.7), rgba(139,92,246,.35) 40%, rgba(192,38,211,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.form-card h2 { font-size: 26px; margin-bottom: 4px; letter-spacing: -0.02em; }
.form-card .form-sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.steps-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.steps-bar i { flex: 1; height: 5px; border-radius: 999px; background: rgba(255,255,255,.1); }
.steps-bar i.on { background: var(--grad-brand); }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-2); }
.field input, .field select {
  width: 100%; height: 56px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(4, 3, 10, 0.65);
  color: #fff; font-size: 17px; padding: 0 16px; font-family: inherit; appearance: none; -webkit-appearance: none; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #6b6b80; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.22); }
.phone-row { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, #9b9bb0 50%), linear-gradient(135deg, #9b9bb0 50%, transparent 50%);
  background-position: calc(100% - 18px) 25px, calc(100% - 13px) 25px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; padding-left: 12px;
}
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field.invalid input { border-color: var(--error); box-shadow: 0 0 0 4px rgba(255, 107, 129, .15); }
.error-msg { display: none; color: var(--error); font-size: 13.5px; margin-top: 6px; font-weight: 700; }
.field.invalid .error-msg { display: block; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.legal { font-size: 11.5px; color: #7c7c92; margin-top: 8px; text-align: center; line-height: 1.45; }
.legal a { color: #9b9bb0; }

.done { display: none; text-align: center; }
.form-card.is-done form { display: none; }
.form-card.is-done .done { display: block; }
.done .big { font-size: 46px; line-height: 1; margin: 6px 0 10px; }
.done h2 { font-size: 27px; }
.done p { color: var(--text-2); font-size: 16.5px; margin: 6px 0 18px; }
.done .warn { color: var(--gold); font-weight: 800; font-size: 15px; margin-top: 14px; }

/* ---------- Tarjetas genéricas ---------- */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

/* Pasos (línea de tiempo) */
.timeline { display: grid; gap: 14px; counter-reset: s; }
.timeline .card { position: relative; padding-left: 74px; }
.timeline .card::before {
  counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 900; font-size: 17px; color: #fff; background: var(--grad-brand);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.55);
}
.timeline .when-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
.timeline p { color: var(--text-2); font-size: 15.5px; }

/* Lo que te llevás */
.stack { display: grid; gap: 10px; margin-bottom: 18px; }
.stack li { list-style: none; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 16.5px; color: var(--text-2); }
.stack li .ok { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(10, 132, 255, .16); color: #7cc4ff; font-weight: 900; font-size: 14px; margin-top: 1px; }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line-2); padding-top: 16px; margin-top: 4px; }
.price .label { color: var(--muted); font-weight: 700; }
.price .val { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; }

/* Premios */
.prizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prize { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.prize .ico { font-size: 28px; margin-bottom: 8px; display: block; }
.prize b { display: block; font-size: 16px; }
.prize small { color: var(--muted); font-size: 13px; }

/* Agenda */
.agenda { display: grid; gap: 10px; }
.agenda .row { display: grid; grid-template-columns: 82px 1fr; gap: 14px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.agenda .row.main { border-color: rgba(139, 92, 246, 0.6); background: linear-gradient(90deg, rgba(109, 76, 255, .2), rgba(192, 38, 211, .1)); }
.agenda .d { font-weight: 900; font-size: 15px; line-height: 1.15; text-transform: uppercase; }
.agenda .d small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.agenda .w { font-size: 15.5px; color: var(--text-2); }
.agenda .w b { color: #fff; }
.tz { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.tz strong { color: var(--text-2); }

/* Bruno */
.bio-grid { display: grid; gap: 20px; }
.bio-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bio-head img { width: 64px; height: 64px; border-radius: 18px; background: #0b1030; border: 1px solid rgba(56,189,248,.5); padding: 6px; box-shadow: 0 0 24px rgba(56,189,248,.3); }
.bio-head small { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.story { display: grid; gap: 10px; margin: 6px 0 18px; }
.story div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; font-size: 15.5px; color: var(--text-2); }
.story b { color: var(--cyan); font-weight: 900; }
.quote { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; padding: 18px 20px; border-radius: 18px; background: linear-gradient(90deg, rgba(109, 76, 255, .18), rgba(192, 38, 211, .12)); border: 1px solid rgba(139,92,246,.35); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center; }
.stats b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -0.03em; }
.stats small { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }

/* Cuenta regresiva y cierre */
.final { text-align: center; }
.final .section-sub { margin-left: auto; margin-right: auto; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 460px; margin: 0 auto 24px; }
.countdown div { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 12px 4px; }
.countdown b { display: block; font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.countdown small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.final .btn { max-width: 460px; }

/* FAQ */
details { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 2px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 800; padding: 16px 28px 16px 0; list-style: none; position: relative; font-size: 16.5px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; font-weight: 400; color: var(--cyan); }
details[open] summary::after { content: "–"; }
details p { color: var(--text-2); font-size: 15.5px; padding-bottom: 16px; }

/* CTA flotante */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(4, 3, 10, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { min-height: 54px; font-size: 16.5px; }

footer { border-top: 1px solid var(--line); padding: 34px 0 120px; color: #7c7c92; font-size: 12.5px; }
footer p { margin-bottom: 8px; max-width: 60em; }
footer a { color: #9b9bb0; }

/* Aparición suave */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .live-dot { animation: none; } html { scroll-behavior: auto; } }

/* Páginas simples (privacidad) */
.page { padding: 110px 0 60px; }
.page p { color: var(--text-2); margin-bottom: 14px; }

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
  body { font-size: 18px; }
  section { padding: 96px 0; }
  .hero { padding: 64px 0 90px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; grid-template-areas: "copy form" "proof form"; column-gap: 56px; row-gap: 6px; align-items: center; }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-grid .form-card { grid-area: form; }
  .hero-grid .proof { grid-area: proof; align-self: start; }
  .logo { font-size: 16px; }
  .logo img { width: 34px; height: 34px; }
  .nav .pill-btn { font-size: 14px; padding: 10px 18px; }
  .form-card { padding: 30px 28px 24px; }
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .timeline .card { padding: 76px 20px 22px; }
  .timeline .card::before { top: 22px; left: 20px; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .prizes { grid-template-columns: repeat(4, 1fr); }
  .bio-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
  .sticky-cta { display: none; }
  footer { padding-bottom: 40px; }
}
