/* MM4U · Únete al roster — formulario por pantallas (postula.js). Mismo lenguaje que el prototipo aprobado:
   tinta casi negra, marfil, campos blancos con borde fino, chips redondos. Sin naranja (solo el inicio lo usa). */
.ps {
  --ps-ink: #141312; --ps-ivory: #f5f3ef; --ps-muted: #6f6c67; --ps-line: rgba(20, 19, 18, .14); --ps-field: #fff;
  --ps-ok: #2f6b45; --ps-err: #9b2c1f; --ps-ease: cubic-bezier(.23, 1, .32, 1);
  position: relative; display: grid; gap: 14px; padding: clamp(18px, 3vw, 28px); border-radius: 28px;
  background: #f2f1ee; color: var(--ps-ink); scroll-margin-top: 96px; min-width: 0;
}
.ps.is-loading { min-height: 320px; }
.ps-head { display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.ps-back { border: 0; background: none; padding: 4px 0; font: 600 14px/1 inherit; font-family: inherit; color: var(--ps-ink); cursor: pointer; }
.ps-pos { font-size: 12.5px; font-weight: 600; color: var(--ps-muted); font-variant-numeric: tabular-nums; }
.ps-bar { height: 4px; border-radius: 2px; background: rgba(20, 19, 18, .1); overflow: hidden; }
.ps-bar i { display: block; height: 100%; border-radius: 2px; background: var(--ps-ink); transform-origin: left; transform: scaleX(var(--ps-p, 0)); transition: transform .4s var(--ps-ease); }
.ps-step { display: grid; gap: 16px; align-content: start; min-width: 0; padding-top: 6px; }
.ps-step h2 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; outline: none; }
.ps-step h2 em, .ps-f > span em { font-style: normal; font-weight: 500; color: var(--ps-muted); }
.ps-sub { margin: -4px 0 0; color: var(--ps-muted); font-size: 14.5px; line-height: 1.55; max-width: 60ch; }
.ps-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ps-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ps-f { display: grid; gap: 6px; min-width: 0; }
.ps-f > span { font-size: 13px; font-weight: 600; }
.ps-f small { font-size: 12px; color: var(--ps-muted); line-height: 1.45; }
.ps-f input, .ps-f select, .ps-f textarea, .ps-other select, .ps-other input {
  width: 100%; min-width: 0; height: 50px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--ps-field);
  box-shadow: inset 0 0 0 1px var(--ps-line); font: 500 16px/1.2 inherit; font-family: inherit; color: var(--ps-ink);
}
.ps-f textarea { height: 110px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.ps-f input:focus, .ps-f select:focus, .ps-f textarea:focus, .ps-other select:focus, .ps-other input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ps-ink); }
.ps-net { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.ps-others { display: grid; gap: 8px; }
.ps-other { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.ps-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(20, 19, 18, .07); font-size: 18px; color: var(--ps-ink); cursor: pointer; }
.ps-add { justify-self: start; height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: none; box-shadow: inset 0 0 0 1px var(--ps-line); font: 600 13.5px inherit; font-family: inherit; color: var(--ps-ink); cursor: pointer; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chip {
  height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: var(--ps-field); box-shadow: inset 0 0 0 1px var(--ps-line);
  font: 600 14px/1 inherit; font-family: inherit; color: var(--ps-ink); cursor: pointer; transition: background .2s, color .2s, transform .15s;
}
.ps-chip.is-on { background: var(--ps-ink); color: var(--ps-ivory); box-shadow: none; }
.ps-chip:active, .ps-btn:active, .ps-add:active { transform: scale(.97); }
.ps-chip:focus-visible, .ps-btn:focus-visible, .ps-add:focus-visible, .ps-back:focus-visible, .ps-x:focus-visible, .ps-link:focus-visible,
.ps-slot:focus-within, .ps-drop:focus-within { outline: 2px solid var(--ps-ink); outline-offset: 2px; }
.ps-guide { padding: 12px 14px; border-radius: 14px; background: rgba(20, 19, 18, .05); font-size: 13.5px; line-height: 1.5; }
.ps-guide ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.ps-drop { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--ps-field); box-shadow: inset 0 0 0 1.5px var(--ps-line); cursor: pointer; }
.ps-drop input, .ps-slot input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ps-drop i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(20, 19, 18, .06); font-style: normal; font-size: 18px; }
.ps-drop.is-done i { background: var(--ps-ink); color: var(--ps-ivory); }
.ps-drop b { display: block; font-size: 14px; }
.ps-drop small { display: block; font-size: 12.5px; color: var(--ps-muted); }
.ps-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ps-slot { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; display: grid; place-items: center; padding: 8px; text-align: center; background: var(--ps-field); box-shadow: inset 0 0 0 1.5px var(--ps-line); font-size: 12px; font-weight: 600; color: var(--ps-muted); cursor: pointer; }
.ps-slot b { display: block; font-size: 24px; font-weight: 400; color: var(--ps-ink); }
.ps-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-slot.is-req::after { content: "Obligatoria"; position: absolute; top: 7px; left: 7px; padding: 2px 7px; border-radius: 7px; background: rgba(20, 19, 18, .08); font-size: 10px; color: var(--ps-ink); }
.ps-slot.has-img::after { display: none; }
.ps-card { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: var(--ps-ink); color: var(--ps-ivory); }
.ps-card h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ps-card p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(245, 243, 239, .78); }
.ps-card .ps-chip { background: rgba(245, 243, 239, .1); color: var(--ps-ivory); box-shadow: inset 0 0 0 1px rgba(245, 243, 239, .28); }
.ps-card .ps-chip.is-on { background: var(--ps-ivory); color: var(--ps-ink); }
.ps-card.is-soft { background: rgba(20, 19, 18, .05); color: var(--ps-ink); }
.ps-card.is-soft p { color: var(--ps-muted); }
.ps-sum { display: grid; border-radius: 16px; background: var(--ps-field); box-shadow: inset 0 0 0 1px var(--ps-line); }
.ps-sum div { display: grid; grid-template-columns: minmax(90px, 120px) minmax(0, 1fr); gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--ps-line); font-size: 14px; }
.ps-sum div:last-child { border-bottom: 0; }
.ps-sum span:first-child { color: var(--ps-muted); font-weight: 600; }
.ps-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.ps-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #141312; }
.ps-check a { color: inherit; font-weight: 700; }
.ps-check.is-opt { color: var(--ps-muted); }
.ps-lock { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--ps-ok); }
.ps-done { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ps-ink); color: var(--ps-ivory); font-size: 28px; }
.ps-foot { display: grid; gap: 8px; padding-top: 6px; }
.ps-err { margin: 0; min-height: 1.2em; font-size: 13.5px; font-weight: 600; color: var(--ps-err); }
.ps-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border: 0; border-radius: 27px;
  background: var(--ps-ink); color: var(--ps-ivory); font: 700 15.5px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: transform .15s, opacity .2s;
}
.ps-btn:disabled { opacity: .55; cursor: progress; }
.ps-btn.is-light { background: var(--ps-ivory); color: var(--ps-ink); }
.ps-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ps-ts:empty { display: none; }
@media (max-width: 420px) {
  .ps { border-radius: 22px; padding: 16px; }
  .ps-net { grid-template-columns: 1fr; }
  .ps-other { grid-template-columns: minmax(0, 1fr) 40px; }
  .ps-other select { grid-column: 1 / -1; }
  .ps-sum div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .ps-bar i, .ps-chip, .ps-btn { transition: none; } }
/* Dentro de la página «Únete»: el panel blanco del sitio cede su lugar al formulario. */
.form-panel:has(> .ps) { padding: 0; background: none; border: 0; box-shadow: none; }

/* ───────── v2 · página centrada y tarjeta blanca ───────── */
.form-layout:has(.ps) { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(28px, 4vw, 44px); padding: clamp(48px, 7vw, 96px) max(16px, 4%) clamp(64px, 8vw, 110px); }
.form-layout:has(.ps) .form-intro { max-width: 720px; text-align: center; display: grid; justify-items: center; }
.form-layout:has(.ps) .form-intro h1 { margin: 6px 0 0; text-wrap: balance; }
.form-layout:has(.ps) .form-intro > p:not(.eyebrow) { margin: 20px auto 0; max-width: 54ch; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; text-wrap: pretty; }
.form-layout:has(.ps) .form-intro .text-link, .form-layout:has(.ps) .form-note { display: none; }
.form-layout:has(.ps) .form-panel { width: 100%; max-width: 640px; }
.ps { background: #fff; padding: clamp(22px, 4vw, 40px); gap: 18px; border-radius: 32px;
  box-shadow: 0 1px 0 rgba(20, 19, 18, .04), 0 24px 60px -28px rgba(20, 19, 18, .28); }
.ps-step { text-align: left; }
.ps-step > h2, .ps-step > .ps-sub, .ps-step > .ps-done { justify-self: center; text-align: center; }
.ps-step > .ps-sub { margin-inline: auto; }
.ps-step > h2 { font-size: clamp(26px, 3.6vw, 36px); }
.ps-f input, .ps-f select, .ps-f textarea, .ps-other select, .ps-other input, .ps-drop, .ps-slot, .ps-sum, .ps-chip { background: #f6f5f2; }
.ps-chip.is-on { background: var(--ps-ink); }
.ps.is-start .ps-head, .ps.is-start .ps-bar, .ps.is-end .ps-head, .ps.is-end .ps-bar { display: none; }
.ps.is-start .ps-step, .ps.is-end .ps-step { justify-items: center; text-align: center; }
.ps-facts { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ps-facts li { display: grid; gap: 4px; align-content: start; padding: 16px 14px; border-radius: 18px; background: #f6f5f2; text-align: center; }
.ps-facts b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.ps-facts span { font-size: 13px; line-height: 1.4; color: var(--ps-muted); }
.ps-btn.is-ghost { background: none; color: var(--ps-ink); box-shadow: inset 0 0 0 1px var(--ps-line); height: 50px; font-size: 14.5px; font-weight: 600; }
.ps-btn.is-ghost:hover { background: #f6f5f2; }
.ps-btn:not(.is-ghost):not(:disabled):hover { background: #2a2826; }
.ps-err:empty { min-height: 0; }
@media (max-width: 560px) {
  .ps-facts { grid-template-columns: 1fr; }
  .ps-facts li { grid-template-columns: 96px minmax(0, 1fr); text-align: left; align-items: center; padding: 14px 16px; }
}
/* El efecto de entrada recorta cada palabra: un poco de aire arriba para que no se corte el acento de «Únete». */
.form-layout:has(.ps) .form-intro h1 .s-w { padding-top: .14em; margin-top: -.14em; }

/* Reserva el alto del formulario antes de que cargue el JS: así el pie de página no salta (CLS, 13 nov 2026) */
[data-ps]:not(.ps) { min-height: 590px; }
@media (min-width: 900px) { [data-ps]:not(.ps) { min-height: 485px; } }
