/* El Mentor de la Libertad · Acceso a los simuladores con nombre y email (lead magnet)
   Páginas: nóminas de Nicolas y del Godín. Usa las variables de color y letra de cada página.
   <html class="gated"> = todavía no ha dejado sus datos: se ve el título, el formulario (.gate)
   y, detrás, el simulador borroso y sin poder usarlo. Código: /assets/gate.js */

.gate { display: none; }
.gated .gate {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  position: relative; z-index: 2;
  background: var(--panel); border: 2px solid var(--accent); border-radius: var(--r, 14px);
  padding: 30px 22px 24px;
  box-shadow: 0 28px 70px -28px rgba(0, 0, 0, .55);
}
.gate-kicker { margin: 0; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.gate h2 { max-width: 20ch; }
.gate p { margin: 0; max-width: 36rem; color: var(--muted); font-weight: 600; }
.gate-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 10px; width: min(100%, 46rem); margin-top: 4px; }
@media (max-width: 700px) { .gate-form { grid-template-columns: minmax(0, 1fr); } }
.gate-form input {
  min-width: 0; font: 600 16px/1.2 var(--f-body); color: var(--fg);
  background: var(--panel-2); border: 2px solid var(--line); border-radius: 999px; padding: 14px 18px;
}
.gate-form input::placeholder { color: var(--muted); }
.gate-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.gate-form button {
  font-family: var(--f-display); font-stretch: 80%; font-weight: 900; font-size: 17px; line-height: 1;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
  color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 999px; padding: 15px 24px; cursor: pointer;
}
.gate-form button:hover { filter: brightness(1.08); }
.gate-form button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gate-form button[disabled] { opacity: .75; cursor: wait; }
.gate .gate-legal { font-size: 12.5px; font-weight: 400; max-width: 30rem; }
.gate .gate-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.gate-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Detrás: el simulador se intuye, borroso, sin poder tocarlo; la página se corta con un fundido */
.gated .wrap {
  max-height: 1650px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 520px), transparent);
          mask-image: linear-gradient(#000 calc(100% - 520px), transparent);
}
.gated .wrap > :not(.top):not(.gate) { filter: blur(7px); opacity: .7; pointer-events: none; user-select: none; }
