/* ═══════════════════════════════════════════════════════════════════════
   QUANTUM CLUB — MASTERCLASS  (/masterclass y /masterclass/ver)
   ───────────────────────────────────────────────────────────────────────
   Misma estética que /avanzado (fondo de partículas, barra de cristal,
   titular enorme con degradado, vídeo con filete cian, CTA en degradado),
   pero escrita a mano: sin Tailwind ni Font Awesome. Son páginas de
   conversión y cada petición de más es un segundo de más en 4G.

   Móvil primero: las reglas base son las del teléfono y los @media
   (min-width) sólo añaden tamaño y aire en pantallas grandes.

   El modo claro lo pone /theme.css (fondo, velo, botón de tema). Aquí sólo
   se repintan las piezas propias, al final del fichero.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --bg:     #020203;
    --ink:    #ffffff;
    --body:   #d1d5db;   /* gray-300 */
    --muted:  #9ca3af;   /* gray-400 */
    --faint:  #6b7280;   /* gray-500 */
    --cyan:   #22d3ee;
    --blue:   #60a5fa;   /* blue-400 */
    --grad:   linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #2563eb 100%);
    --grad-t: linear-gradient(135deg, #22d3ee 0%, #2563eb 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--bg);
    overflow-x: hidden;
}
::selection { background: rgba(59, 130, 246, 0.3); }
img, svg, iframe { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

#quantum-bg {
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.85;
}

.grad-text {
    background: var(--grad-t);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reveal {
    opacity: 0; transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}


/* ── Barra: píldora de cristal con la marca y el tema. Sin menú ───────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: 1rem;
}
.nav-pill {
    max-width: 64rem; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.6rem 0.9rem 0.6rem 1.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.02);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.brand {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 800;
    letter-spacing: -0.05em; text-transform: uppercase;
    color: var(--ink);
}
.brand img { height: 1.6rem; width: auto; }
.brand span { color: var(--blue); }


/* ── Héroe ──────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(180deg, rgba(2,6,13,0.72) 0%, rgba(2,6,13,0.55) 50%, rgba(2,6,13,0.72) 100%);
}
.hero-in {
    max-width: 64rem; margin: 0 auto;
    padding: 6rem 1.25rem 4rem;
    text-align: center;
}
.hero-logo {
    height: 3.5rem; width: auto; margin: 0 auto 1.25rem;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.35));
}
.pill {
    display: inline-flex; align-items: center; gap: 0.6rem;
    margin-bottom: 1.25rem; padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.3);
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    color: #67e8f9;
}
.pill-dot {
    width: 0.5rem; height: 0.5rem; border-radius: 50%;
    background: var(--cyan);
    animation: blink 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes blink { 50% { opacity: 0.5; } }

.h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.9rem, 9vw, 4.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    /* Explícito: en claro, theme.css fuerza el color del body y lo heredaría. */
    color: var(--ink);
    text-transform: uppercase;
    text-wrap: balance;
}
.h1--sm { font-size: clamp(1.9rem, 8.5vw, 4rem); }
.sub {
    max-width: 48rem; margin: 0 auto 1.25rem;
    font-size: 1.125rem; font-weight: 300; line-height: 1.375;
    color: var(--body);
    text-wrap: balance;
}
.sub .grad-text { font-weight: 400; }
.lead {
    max-width: 42rem; margin: 0 auto;
    font-size: 1rem; font-weight: 300;
    color: var(--muted);
}
.lead strong { color: var(--blue); font-weight: 600; }


/* ── Lo que vas a aprender ──────────────────────────────────────────── */
.learn {
    list-style: none; margin: 2.5rem auto 0; padding: 0;
    max-width: 48rem;
    display: grid; gap: 0.75rem;
    text-align: left;
}
.learn li {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: 24px;
    background: rgba(59, 130, 246, 0.035);
    border: 1px solid rgba(59, 130, 246, 0.14);
    font-size: 14px; font-weight: 300; color: var(--body);
}
.learn strong { color: var(--ink); font-weight: 600; }
.learn .num { flex: 0 0 auto; font-size: 1.1rem; font-weight: 800; line-height: 1.35; }


/* ── Formulario en píldora (el de la lista de espera de /avanzado) ─── */
.signup { max-width: 28rem; margin: 2rem auto 0; }
.signup-title { margin: 0 0 1rem; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--faint); }
.wl-form { display: flex; flex-direction: column; gap: 0.6rem; }
.wl-form input {
    width: 100%; min-width: 0;
    padding: 0.95rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    /* 16px: por debajo, Safari en iOS hace zoom al enfocar */
    font: 400 16px/1.3 'Plus Jakarta Sans', system-ui, sans-serif;
    text-align: center;
    transition: border-color .2s ease, background-color .2s ease;
}
.wl-form input::placeholder { color: var(--faint); }
.wl-form input:focus { outline: none; border-color: rgba(34, 211, 238, 0.6); background: rgba(34, 211, 238, 0.05); }
.wl-form input[aria-invalid="true"] { border-color: rgba(248, 113, 113, 0.7); }
.form-error { margin: 0.75rem 0 0; font-size: 12px; color: #f87171; }
.note {
    margin: 1rem 0 0;
    font-size: 10px; line-height: 1.6; text-align: center; color: var(--faint);
}
.note svg {
    display: inline-block; vertical-align: -0.15em; margin-right: 0.4rem;
    width: 0.8rem; height: 0.8rem; color: var(--blue);
}
.note strong { color: #93c5fd; font-weight: 400; }
.proof { margin: 0.5rem 0 0; font-size: 10px; text-align: center; color: var(--faint); }
.proof strong { color: var(--ink); font-weight: 700; }


/* ── Botón de compra / acción ─────────────────────────────────────────
   Mismo .cta que /avanzado: degradado cian→azul con halo. */
.cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
    width: 100%;
    min-height: 3.4rem;
    padding: 1.1rem 2rem;
    border: 0; border-radius: 999px;
    font: 800 12px/1.2 'Plus Jakarta Sans', system-ui, sans-serif;
    letter-spacing: 0.14em; text-transform: uppercase; text-align: center;
    text-decoration: none;
    color: #fff;
    background: var(--grad);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.cta:hover { transform: scale(1.04); box-shadow: 0 0 64px rgba(59, 130, 246, 0.6); }
.cta:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.cta[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.cta svg { width: 1rem; height: 1rem; flex: 0 0 auto; }
.cta--big { letter-spacing: 0.1em; padding: 1.2rem 1.25rem; border-radius: 1rem; white-space: nowrap; }

.pulse { animation: pulse-glow 2s infinite; }
@keyframes pulse-glow {
    0%   { box-shadow: 0 0 50px rgba(59,130,246,0.45), 0 0 0 0 rgba(34,211,238,0.35); }
    70%  { box-shadow: 0 0 50px rgba(59,130,246,0.45), 0 0 0 16px rgba(34,211,238,0); }
    100% { box-shadow: 0 0 50px rgba(59,130,246,0.45), 0 0 0 0 rgba(34,211,238,0); }
}
@media (prefers-reduced-motion: reduce) {
    .pulse, .pill-dot { animation: none; }
    .cta:hover { transform: none; }
}


/* ── Vídeo (el .video-container de /avanzado, con aspect-ratio) ─────── */
.video {
    position: relative;
    width: 100%;
    /* En escritorio el vídeo se encoge lo justo para que el botón de compra
       quepa en la primera pantalla junto a él (el alto que no es vídeo
       ronda los 30rem con margen). En móvil manda el ancho y esto no actúa. */
    max-width: min(48rem, calc((100vh - 30rem) * 16 / 9));
    min-width: min(100%, 22rem);
    margin: 2rem auto 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    border: 2px solid rgba(34, 211, 238, 0.4);
    background: #000;
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.08);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; font-size: 12px; text-align: center; color: #9ca3af;
}
.video-cap { margin: 0.9rem 0 0; font-size: 10px; line-height: 1.6; text-align: center; color: #6b7280; }
.video-cap svg {
    display: inline-block; vertical-align: -0.15em; margin-right: 0.4rem;
    width: 0.8rem; height: 0.8rem; color: rgba(96, 165, 250, 0.7);
}

.buy { max-width: 28rem; margin: 1.5rem auto 0; }


/* ── Pie ────────────────────────────────────────────────────────────── */
.foot {
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}
.foot img { height: 3rem; width: auto; margin: 0 auto 1rem; opacity: 0.9; filter: drop-shadow(0 0 26px rgba(59,130,246,0.3)); }
.foot p { margin: 0; font-size: 9px; letter-spacing: 0.5em; text-transform: uppercase; color: #4b5563; }


/* ── Pantallas grandes: más tamaño y aire ───────────────────────────── */
@media (min-width: 640px) {
    .wl-form { flex-direction: row; }
    .wl-form input { text-align: left; }
    .wl-form .cta { width: auto; flex: 0 0 auto; padding-left: 1.6rem; padding-right: 1.6rem; }
    .buy .cta { width: auto; }
}
@media (min-width: 768px) {
    .nav { padding: 2rem 1.5rem; }
    .nav-pill { padding: 0.75rem 1rem 0.75rem 2rem; }
    .brand { font-size: 0.875rem; }
    .hero-in { padding: 9rem 1.5rem 6rem; }
    .hero-logo { height: 5rem; margin-bottom: 1.5rem; }
    .pill { margin-bottom: 1.75rem; }
    .cta--big { font-size: 13px; letter-spacing: 0.14em; padding: 1.3rem 2.5rem; }
    .h1--sm { font-size: 3.25rem; }
    .hero--ver .hero-in { padding-top: 7.5rem; padding-bottom: 3rem; }
    .sub { font-size: 1.875rem; }
    .lead { font-size: 1.25rem; }
    .learn { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .learn li { flex-direction: column; gap: 0.6rem; padding: 1.5rem; }
}


/* ═══════════════════════════════════════════════════════════════════════
   MODO CLARO — lo propio de estas páginas (el resto lo hace /theme.css)
   ═══════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
    --ink:   #0a0f1a;
    --body:  #3c4457;
    --muted: #4d5568;
    --faint: #666e80;
    --cyan:  #0891b2;
    --blue:  #2563eb;
    --grad:   linear-gradient(135deg, #0891b2 0%, #2563eb 55%, #1d4ed8 100%);
    --grad-t: linear-gradient(135deg, #0891b2 0%, #1d4ed8 100%);
}
html[data-theme="light"] .hero { background: transparent; }
html[data-theme="light"] .nav-pill {
    background: rgba(255, 255, 255, 0.86);
    border-color: #e2e7f0;
    box-shadow: 0 1px 2px rgba(10,15,26,0.04), 0 12px 32px rgba(10,15,26,0.06);
}
html[data-theme="light"] .pill { background: rgba(8,145,178,0.07); border-color: rgba(8,145,178,0.3); color: #0e7490; }
html[data-theme="light"] .learn li { background: #ffffff; border-color: #e2e7f0; }
html[data-theme="light"] .wl-form input { background: #ffffff; border-color: #d8dfea; color: var(--ink); }
html[data-theme="light"] .wl-form input:focus { border-color: rgba(8,145,178,0.6); }
html[data-theme="light"] .form-error { color: #b91c1c; }
html[data-theme="light"] .note strong { color: #1d4ed8; }
html[data-theme="light"] .cta { box-shadow: 0 10px 30px rgba(37,99,235,0.28); }
html[data-theme="light"] .pulse { animation: none; }
html[data-theme="light"] .video { border-color: rgba(8,145,178,0.35); box-shadow: 0 14px 40px rgba(10,15,26,0.10); }
html[data-theme="light"] .video-cap,
html[data-theme="light"] .foot p { color: #8a92a3; }
html[data-theme="light"] .foot { border-top-color: #edf0f6; }
