/* Puerta de la clase de la portada (assets/js/puerta.js) */
.lesson-full.is-locked { position: relative; }
.lesson-full { scroll-margin-top: 90px; }
.lesson-full.is-locked .cl-grid { max-height: 430px; overflow: hidden; filter: blur(3px); opacity: .55; pointer-events: none; user-select: none; }
.lesson-full.is-locked::after { content: ""; position: absolute; inset: auto 0 0; height: 320px; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 72%); pointer-events: none; }
.gate-cta { position: absolute; z-index: 2; inset: auto 0 34px; margin: 0 auto; width: min(430px, calc(100% - 32px)); text-align: center; }
.gate-cta h4 { font-size: 1.3rem; font-weight: 700; margin: 0; }
.gate-cta p { color: var(--muted); font-size: .95rem; margin: 2px 0 14px; }
.gate-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--violet), var(--blue)); box-shadow: 0 16px 34px -14px rgba(116, 82, 235, .7); }
.gate-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gate-btn[disabled] { background: var(--line-2); box-shadow: none; cursor: not-allowed; }
.gate-dlg { margin: auto; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; padding: 26px; border-radius: var(--radius); color: var(--ink); background: #fff; box-shadow: 0 30px 80px -30px rgba(30, 27, 75, .6); direction: rtl; overflow: auto; }
.gate-dlg::backdrop { background: rgba(30, 27, 75, .55); }
.gate-x { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--gray); color: var(--ink-2); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.gate-step { color: var(--violet); font-size: .82rem; font-weight: 600; margin: 0; }
.gate-dlg h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.4; margin: 2px 0 2px; }
.gate-sub { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.gate-f { margin-bottom: 12px; }
.gate-f label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 5px; }
.gate-f input, .gate-f select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: calc(14px * var(--rs, 1)); background: #fff; color: var(--ink); font: inherit; }
.gate-f input:focus, .gate-f select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(116, 82, 235, .12); }
.gate-tel { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 8px; direction: ltr; }
.gate-tel select { direction: rtl; padding: 0 8px; font-size: .88rem; }
.gate-ok { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 14px; font-size: .8rem; line-height: 1.6; color: var(--ink-2); cursor: pointer; }
.gate-ok input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--violet); }
.gate-ok a { color: var(--violet); text-decoration: underline; }
.gate-info { margin: 12px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.gate-info a { color: var(--violet); text-decoration: underline; }
.gate-err { min-height: 0; margin: 4px 0 0; color: #B42318; font-size: .8rem; }
.gate-q { margin: 0 0 16px; padding: 0; border: 0; }
.gate-q legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .98rem; }
.gate-op { display: block; width: 100%; min-height: 46px; margin-bottom: 7px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: calc(14px * var(--rs, 1)); background: #fff; color: var(--ink); font: inherit; font-size: .93rem; text-align: right; cursor: pointer; }
.gate-op[aria-pressed="true"] { border-color: var(--violet); background: var(--violet-50); color: var(--violet); font-weight: 600; }
@media (max-width: 560px) {
  .lesson-full.is-locked .cl-grid { max-height: 380px; }
  .gate-dlg { padding: 22px 18px; }
  .gate-dlg h3 { font-size: 1.22rem; }
}
