@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;800;900&display=swap");

:root {
  --bg: #050a18;
  --bg2: #0a1328;
  --card: #0e1a36;
  --line: #1e3160;
  --text: #eef3ff;
  --muted: #9fb0d4;
  --blue: #2f8cff;
  --cyan: #19c2ff;
  --orange: #ff9f1c;
  --gold: #ffd23f;
  --ok: #2ee59d;
  --grad: linear-gradient(90deg, var(--cyan), var(--blue));
  --grad-hot: linear-gradient(90deg, var(--orange), var(--gold));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(900px 500px at 85% -5%, #1a2f6a55, transparent), var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }
section { padding: 56px 0; }
h1, h2, h3 { line-height: 1.12; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: 14px; }
h3 { font-size: 1.1rem; }
p.lead { color: var(--muted); font-size: clamp(1rem, 2.6vw, 1.2rem); max-width: 640px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); border: 1px solid #ff9f1c55; border-radius: 99px; padding: 6px 14px; margin-bottom: 18px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hot { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 900; font-size: 1.05rem; text-decoration: none; cursor: pointer; border: 0;
  padding: 16px 28px; border-radius: 14px; color: #1a1100; background: var(--grad-hot);
  box-shadow: 0 8px 30px #ff9f1c44; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px #ff9f1c66; }
.btn.blue { background: var(--grad); color: #00122e; box-shadow: 0 8px 30px #2f8cff44; }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Tarjetas */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px;
  font-weight: 900; color: #00122e; background: var(--grad);
}

/* Barra superior */
.topbar { padding: 14px 0; border-bottom: 1px solid #ffffff10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .7rem; letter-spacing: .04em; }

/* Cuenta regresiva y cupos */
.countdown { display: flex; gap: 10px; margin: 22px 0 8px; }
.countdown div {
  min-width: 70px; text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 6px;
}
.countdown b { display: block; font-size: 1.7rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.cupos { max-width: 420px; margin-top: 16px; }
.cupos-top { display: flex; justify-content: space-between; font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.bar { height: 10px; border-radius: 99px; background: #1b2a50; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad-hot); border-radius: 99px; transition: width .8s; }

/* Video */
.video-box {
  aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, #0b1630, #13244a); display: grid; place-items: center; text-align: center;
}
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-box .ph { padding: 24px; color: var(--muted); font-size: .9rem; }
.video-box .ph b { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 6px; }

/* Lista de valor */
.stack { list-style: none; display: grid; gap: 10px; }
.stack li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stack li .tick { color: var(--ok); font-weight: 900; }
.stack li .val { margin-left: auto; font-weight: 800; color: var(--muted); white-space: nowrap; }
.stack li small { color: var(--muted); display: block; font-weight: 500; }
.total { text-align: center; margin-top: 22px; }
.total .old { color: var(--muted); text-decoration: line-through; font-weight: 800; font-size: 1.2rem; }
.total .now { font-size: clamp(2.6rem, 11vw, 4.2rem); font-weight: 900; }

/* Tabla de ejemplo */
.mock { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #09122a; }
.mock table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 560px; }
.mock th, .mock td { padding: 11px 14px; text-align: left; border-bottom: 1px solid #162448; white-space: nowrap; }
.mock th { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.pill { padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 800; }
.pill.f { background: #2f8cff25; color: var(--cyan); }
.pill.c { background: #ff9f1c25; color: var(--orange); }
.pill.k { background: #2ee59d25; color: var(--ok); }
.chat { background: var(--ok); color: #00241a; border-radius: 8px; padding: 4px 10px; font-weight: 800; font-size: .75rem; }
.note { color: var(--muted); font-size: .78rem; margin-top: 8px; }

/* Instructor */
.prof { display: grid; gap: 22px; grid-template-columns: 150px 1fr; align-items: center; }
.avatar {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; font-size: 3rem; font-weight: 900;
  background: var(--grad); color: #00122e; box-shadow: 0 0 0 5px var(--bg), 0 0 0 8px var(--orange);
}

/* Pagos */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.tab { flex: 1; min-width: 100px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.tab.on { border-color: var(--orange); background: #ff9f1c18; }
.pay-detail { background: #09122a; border: 1px dashed var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; font-size: .95rem; }
.pay-detail b { font-size: 1.2rem; }
.pay-detail .pend { color: var(--orange); font-weight: 700; }
input[type=text], input[type=tel] {
  width: 100%; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #09122a;
  color: var(--text); font: inherit; margin-bottom: 12px;
}
.steps { counter-reset: s; color: var(--muted); font-size: .9rem; margin: 10px 0 18px; padding-left: 0; list-style: none; }
.steps li { counter-increment: s; margin-bottom: 4px; }
.steps li::before { content: counter(s) "."; color: var(--orange); font-weight: 900; margin-right: 8px; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
summary { font-weight: 800; cursor: pointer; }
details p { color: var(--muted); margin-top: 8px; }

/* Producto miniapp */
.prod { display: grid; gap: 22px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.prod .shot { aspect-ratio: 1080/600; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
.prod .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; }
.price .old { color: var(--muted); text-decoration: line-through; font-weight: 800; }
.price .now { font-size: 2.6rem; font-weight: 900; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chips span { border: 1px solid #2ee59d55; color: var(--ok); border-radius: 99px; padding: 5px 12px; font-size: .78rem; font-weight: 800; }
.soon { opacity: .75; border-style: dashed; }

/* Hub */
.hub { min-height: 100svh; display: grid; align-content: center; padding: 32px 0; text-align: center; }
.hub .logo { width: 128px; height: 128px; margin: 0 auto 18px; border-radius: 50%; box-shadow: 0 0 60px #2f8cff55; }
.hub h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.hub .lead { margin: 10px auto 28px; }
.hub-cards { display: grid; gap: 14px; max-width: 520px; margin: 0 auto; text-align: left; }
.hub-card { display: block; text-decoration: none; padding: 22px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); transition: transform .15s, border-color .15s; }
.hub-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.hub-card.main { border-color: var(--orange); background: linear-gradient(135deg, #1a1a2e, #2a1f10); box-shadow: 0 10px 40px #ff9f1c22; }
.hub-card small { color: var(--orange); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; }
.hub-card h2 { font-size: 1.25rem; margin: 6px 0; }
.hub-card p { color: var(--muted); font-size: .92rem; }

/* CTA fijo móvil */
.sticky { position: fixed; inset: auto 0 0 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #050a18ee; backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 20; display: none; }
footer { padding: 32px 0 90px; color: var(--muted); font-size: .8rem; text-align: center; border-top: 1px solid #ffffff10; }

@media (max-width: 720px) {
  section { padding: 40px 0; }
  .prof, .prod { grid-template-columns: 1fr; }
  .avatar { margin: 0 auto; }
  .prof { text-align: center; }
  .sticky { display: block; }
  .countdown div { min-width: 0; flex: 1; }
}

/* Botón flotante de chat con número */
.fab {
  position: fixed; right: 14px; bottom: 18px; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none;
}
.fab-num {
  background: #07122e; color: #fff; font-weight: 900; font-size: .8rem; letter-spacing: .02em; padding: 4px 10px; border-radius: 99px;
  border: 1.5px solid #25d366; box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.fab-ico {
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  animation: fabpulse 2.4s infinite;
}
@keyframes fabpulse { 0%,100% { box-shadow: 0 6px 22px #25d36688, 0 0 0 0 #25d36655; } 50% { box-shadow: 0 6px 22px #25d36688, 0 0 0 14px #25d36600; } }
@media (max-width: 720px) { body:has(.sticky) .fab { bottom: 84px; } }

/* Tarjetas que reaccionan al cursor */
.hz { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; will-change: transform; }
@media (hover: hover) {
  .hz:hover { transform: scale(1.045); border-color: var(--cyan); box-shadow: 0 18px 44px rgba(0,0,0,.45), 0 0 34px #19c2ff30; z-index: 2; position: relative; }
  .stack li.hz:hover { transform: scale(1.025); }
}
.ico-box { position: relative; width: 88px; height: 88px; margin-bottom: 14px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(25,194,255,.14), rgba(255,159,28,.10)); border: 1px solid #2f8cff44; }
.ico-box svg { width: 62px; height: 62px; }
.ico-box.sm { width: 70px; height: 70px; } .ico-box.sm svg { width: 48px; height: 48px; }
.ico-box .n { position: absolute; top: -9px; right: -9px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: .85rem; color: #00122e; background: var(--grad); }
.ico-arrow { animation: bajar 1.8s ease-in-out infinite; }
@keyframes bajar { 0%,100% { transform: translateY(-3px); opacity: .6; } 50% { transform: translateY(5px); opacity: 1; } }
.ico-float { animation: flota 3s ease-in-out infinite; }
@keyframes flota { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.ico-ping { transform-origin: 38px 86px; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.stack li .ic { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(25,194,255,.14), rgba(255,159,28,.10)); border: 1px solid #2f8cff44; }
.stack li .ic.pdf { border-color: #ff9f1c55; }
.stack li .ic svg { width: 38px; height: 38px; }
.pdfb { font-style: normal; font-size: .62rem; font-weight: 900; color: #1a1100; background: var(--grad-hot); border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }

/* Tabla de ejemplo que se desplaza sola */
.mock.live { position: relative; overflow: hidden; pointer-events: none; user-select: none; -webkit-user-select: none; }
.m-head, .m-row { display: grid; grid-template-columns: 1.15fr 1.5fr 1.05fr .6fr .75fr 1.05fr 1.05fr; align-items: center; gap: 8px; padding: 0 16px; }
.m-head { height: 40px; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; border-bottom: 1px solid #162448; }
.m-view { height: 276px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
.m-rows { will-change: transform; }
.m-row { height: 46px; border-bottom: 1px solid #12203f; font-size: .86rem; white-space: nowrap; }
.m-row > span { overflow: hidden; text-overflow: ellipsis; }
.m-row .pill { display: inline-block; transition: background .35s, color .35s; }
.m-row .pill.pop { animation: pillpop .5s ease; }
@keyframes pillpop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.m-cursor { position: absolute; left: 0; top: 0; z-index: 3; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.m-cursor.on { opacity: 1; }
@media (max-width: 720px) {
  .m-head, .m-row { grid-template-columns: 1.15fr 1fr 1.3fr 1fr; padding: 0 10px; gap: 6px; font-size: .74rem; }
  .c-rat, .c-res, .c-neg, .m-row .r-rat, .m-row .r-res, .m-row .r-neg { display: none; }
  .m-row .pill { font-size: .66rem; padding: 3px 7px; }
  .m-row .chat { font-size: .66rem; padding: 3px 9px; }
  .m-row .dir { display: none; }
}

/* Instructor con foto */
.prof { grid-template-columns: 200px 1fr; padding-left: 10px; }
.prof .foto { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px var(--bg), 0 0 0 8px var(--orange), 0 20px 50px rgba(0,0,0,.5); }
@media (max-width: 720px) { .prof { grid-template-columns: 1fr; } .prof .foto { margin: 0 auto; } }

/* Pago: datos + QR, botón con número */
.pay-wrap { display: flex; gap: 14px; align-items: stretch; margin-bottom: 14px; }
.pay-wrap .pay-detail { flex: 1; margin: 0; min-width: 0; }
.qr { flex: none; width: 176px; margin: 0; background: #fff; border-radius: 16px; padding: 8px 8px 6px; text-align: center; }
.qr img { width: 100%; height: auto; display: block; }
.qr figcaption { color: #5b1e86; font-weight: 800; font-size: .72rem; margin-top: 2px; }
.qr[hidden] { display: none; }
@media (max-width: 520px) { .qr { width: 128px; padding: 6px; } .pay-wrap { gap: 10px; } .pay-detail { font-size: .85rem; } .pay-detail b { font-size: 1rem; } }
.btn-wa { gap: 10px; flex-wrap: wrap; }
.btn-wa .wa { flex: none; }
.aviso-num { margin-top: 12px; }
.aviso-num b { color: var(--text); }
.linkbtn { background: none; border: 0; color: var(--cyan); font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; padding: 0; }
.btn-wa { flex-wrap: nowrap; text-align: center; line-height: 1.2; }
.btn-wa span { text-align: center; }
@media (max-width: 520px) { .tabs .tab { min-width: 0; padding: 12px 4px; font-size: .88rem; } .btn-wa { font-size: 1rem; padding: 16px 16px; } }
