/* /cuenta — lista de espera de Plane y Team (adaptación del diseño de registro). */
:root { --ctl-border: oklch(0.58 0.005 250); } /* bordes de controles: >= 3:1 (WCAG 1.4.11) */
.auth { min-height: 100vh; display: grid; grid-template-columns: 440px 1fr; }
.auth-rail { background: var(--bg); border-right: 1px solid var(--line); padding: 38px 40px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-rail .glow { width: 420px; height: 420px; background: oklch(0.5 0.18 150 / 0.22); top: -180px; left: -120px; }
.auth-rail-top { position: relative; z-index: 1; }
.auth-back { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 13px; color: var(--fg-faint); margin-bottom: 56px; min-height: 32px; }
.auth-back:hover { color: var(--fg); }

.stepper { position: relative; z-index: 1; list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 4px; }
.step-item { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-family: var(--font-mono); font-size: 13px; font-weight: 600; background: var(--bg-elev); border: 1px solid var(--line-strong); color: var(--fg-faint); }
.step-line { width: 1.5px; height: 30px; background: var(--line); margin: 4px 0; }
.step-item.done .step-num { background: var(--active-soft); border-color: var(--active-line); color: var(--active); }
.step-item.active .step-num { background: var(--active); border-color: var(--active); color: var(--bg-deep); }
.step-item.active .step-line, .step-item.done .step-line { background: var(--active-line); }
.step-body { padding-top: 4px; }
.step-body .st { font-size: 15px; font-weight: 500; color: var(--fg-dim); }
.step-item.active .step-body .st { color: var(--fg); }
.step-body .sd { font-size: 12.5px; color: var(--fg-faint); font-family: var(--font-mono); margin-top: 2px; }
.auth-rail-foot { position: relative; z-index: 1; margin-top: auto; padding-top: 30px; }
.rail-feats { list-style: none; padding: 0; display: grid; gap: 12px; }
.rail-feat { display: grid; grid-template-columns: 18px 1fr; gap: 11px; font-size: 14px; color: var(--fg-dim); }
.rail-feat .i { color: var(--active); margin-top: 4px; }

.auth-main { display: grid; place-items: center; padding: 48px 28px; }
.auth-card { width: 100%; max-width: 480px; }
.step-count { display: none; font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.m-brand { display: none; }
.auth-card h1, .auth-card .step-title { font-size: 28px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 8px; text-wrap: balance; }
.auth-card .subtitle { color: var(--fg-dim); font-size: 15px; margin-bottom: 28px; }
.soon-note { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--plane-line); background: var(--plane-soft); border-radius: var(--r-3); padding: 12px 14px; font-size: 13.5px; color: var(--fg); margin-bottom: 24px; }
.soon-note .i { color: var(--plane-2); margin-top: 3px; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label, .legend { font-size: 13px; color: var(--fg-dim); font-weight: 500; }
.field .input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: var(--bg-sunken); border: 1px solid var(--ctl-border); border-radius: var(--r-2); }
.field .input:focus-within { border-color: var(--active); box-shadow: 0 0 0 3px var(--active-soft); }
.field .input.bad { border-color: var(--error); }
.field .input input { flex: 1; background: transparent; border: none; outline: none; font-size: 16px; color: var(--fg); min-width: 0; height: 100%; }
.field .input input::placeholder { color: var(--fg-faint); }
.field .input .i { color: var(--fg-faint); font-size: 16px; }
.field .hint { font-size: 12.5px; color: var(--fg-faint); }
.err { font-size: 13px; color: var(--error); min-height: 0; }
.err:empty { display: none; }
.err.err-t { display: none; }
.err.err-t:target { display: block; }
.js .err.err-t { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.legend { padding: 0; margin-bottom: 10px; display: block; }
.plan-list { display: grid; gap: 12px; }
.plan-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-opt label { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-3); border: 1px solid var(--line-strong); background: var(--bg-elev); cursor: pointer; }
.plan-opt label:hover { border-color: var(--fg-faint); }
.plan-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ctl-border); position: relative; }
.plan-opt input:checked + label { border-color: var(--plane-line); background: linear-gradient(180deg, rgba(59,143,242,0.16), var(--bg-elev)); box-shadow: 0 0 0 1px var(--plane-line); }
.plan-opt input:checked + label .plan-radio { border-color: var(--plane); }
.plan-opt input:checked + label .plan-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--plane); }
.plan-opt input:focus + label { outline: 2px solid var(--info); outline-offset: 3px; }
.p-name { font-family: var(--font-mono); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.p-desc { font-size: 12.5px; color: var(--fg-faint); margin-top: 3px; display: block; }
.p-price { text-align: right; }
.p-price .amt { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.p-price .per { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); display: block; }
.billing { margin-bottom: 18px; }
.bill-note { font-size: 12.5px; color: var(--fg-faint); margin-top: 8px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 4px 0 6px; font-size: 14px; color: var(--fg-dim); line-height: 1.5; }
.consent input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 2px solid var(--ctl-border); border-radius: 5px; background: transparent; cursor: pointer; display: grid; place-content: center; }
.consent input:checked { background: var(--active); border-color: var(--active); }
.consent input:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--bg-deep); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.consent input:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.consent a { color: var(--active); text-decoration: underline; text-underline-offset: 3px; }
.auth-submit { width: 100%; min-height: 50px; font-size: 15px; margin-top: 14px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--fg-dim); margin-top: 20px; }
.auth-alt a, .auth-alt button { color: var(--active); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.legal { text-align: center; font-size: 12.5px; color: var(--fg-faint); margin-top: 16px; line-height: 1.5; }

/* Los pasos solo se separan cuando hay JS; sin JS el formulario se ve completo. */
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.js [data-step-view][hidden] { display: none; }
[hidden] { display: none !important; }

.success { text-align: center; }
.success .check { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--active-soft); border: 1px solid var(--active-line); color: var(--active); font-size: 30px; }
.success .done-title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; text-wrap: balance; }
.done-email { color: var(--fg); font-size: 14.5px; margin: -14px 0 22px; overflow-wrap: anywhere; }
.success .next { list-style: none; padding: 18px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-3); margin: 26px 0; display: grid; gap: 14px; }
.success .next li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--fg-dim); }
.success .nn { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-elev); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--active); }
.success .cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.success code { font-size: .9em; background: var(--bg-elev); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-rail { display: none; }
  .auth-main { padding: 28px 18px 48px; place-items: start center; }
  .step-count { display: block; }
  .m-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
  .p-price .per { font-size: 10.5px; }
  .plan-opt label { padding: 14px; gap: 10px; }
}

.plan-title { font-size: 22px; font-weight: 600; margin: 28px 0 6px; letter-spacing: -0.01em; }
.auth-card .subtitle.tight { margin-bottom: 20px; }
.soon-note a { text-decoration: underline; text-underline-offset: 3px; }
.js .auth-alt.js-only { display: flex; justify-content: center; }
.js .btn.js-only { justify-content: center; }
#wl-form .py { display: none; }
#wl-form:has(#bill-year:checked) .pm { display: none; }
#wl-form:has(#bill-year:checked) .py { display: inline; }
.success .next a { color: var(--active); text-decoration: underline; text-underline-offset: 3px; }

.step-item .sr { position: absolute; }
.err-sum { color: var(--error); }
@media (forced-colors: active) {
  .plan-opt input:checked + label { outline: 2px solid Highlight; }
  .plan-opt input:checked + label .plan-radio::after { forced-color-adjust: none; background: Highlight; }
  .step-item.active .step-num { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
/* Evita el salto de layout: mientras carga cuenta.js (marca .js desde el <head>), solo se ve el paso 1. */
.js:not(.wl-ready) [data-step-view="plan"], .js:not(.wl-ready) [data-step-view="done"] { display: none; }
.js .plan-title { font-size: 28px; margin-top: 0; letter-spacing: -0.02em; }
