/* ==========================================================================
   SIDELINE · Muro de acceso
   Se carga después de sideline.css. Si desactivas el muro en config.js
   (access.enabled = false) este archivo no hace nada.
   ========================================================================== */

/* La página queda desenfocada detrás del muro. */
body.is-gated { overflow: hidden; }
body.is-gated main,
body.is-gated footer,
body.is-gated .nav,
body.is-gated .rail {
  filter: blur(20px) saturate(.55);
  transform: scale(1.03);
  pointer-events: none;
  user-select: none;
}
body.is-gated .nav,
body.is-gated .rail { opacity: .5; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: max(20px, 4vh) var(--gutter);
  overflow-y: auto;
  background: color-mix(in srgb, var(--c-ink) 88%, #000);
  color: #fff;
}
.gate[hidden] { display: none; }

.gate__panel {
  width: min(480px, 100%);
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 48px);
  background: var(--c-ink);
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  border-radius: 6px;
}
.gate__panel .mark { justify-self: start; }

.gate__eyebrow {
  font-family: var(--f-display);
  font-weight: 700; font-stretch: 100%;
  font-size: var(--t-micro);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-top: 6px;
}
.gate__title {
  font-size: clamp(1.7rem, 5.5vw, 2.5rem);
  line-height: .96;
}
.gate__body { font-size: 1rem; opacity: .78; max-width: 38ch; }

.gate__field { display: grid; gap: 7px; }
.gate__field label {
  font-family: var(--f-display);
  font-weight: 700; font-stretch: 100%;
  font-size: var(--t-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.gate__field input {
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: color-mix(in srgb, #000 26%, transparent);
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  border-radius: 6px;
  padding: 13px 15px;
  min-height: 50px;
  width: 100%;
  transition: border-color .2s var(--ease);
}
.gate__field input::placeholder { color: rgba(255, 255, 255, .38); }
.gate__field input:focus { border-color: var(--c-accent); outline: none; }
.gate__field input:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.gate__field.has-error input { border-color: var(--c-accent); }

.gate__error {
  font-size: var(--t-small);
  color: var(--c-accent);
  margin-top: -6px;
}
.gate__error[hidden] { display: none; }

.gate .btn { width: 100%; margin-top: 4px; }
.gate .btn[disabled] { opacity: .6; cursor: wait; }

.gate__notice {
  font-size: .8125rem;
  line-height: 1.5;
  opacity: .52;
  border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
  padding-top: 16px;
  max-width: 44ch;
}

.gate__noscript {
  max-width: 420px;
  text-align: center;
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  body.is-gated main,
  body.is-gated footer,
  body.is-gated .nav,
  body.is-gated .rail { transform: none; }
}
