/* ============ Watones Network · Postulaciones al staff ============ */
:root {
  color-scheme: dark;
  --bg: #020914;
  --card-a: #0c1a2ee6;
  --card-b: #071322e6;
  --field: #050f1f;
  --line: #294b67;
  --line-2: #355b7b;
  --text: #edf5ff;
  --muted: #b2c7df;
  --dim: #8ea6c2;
  --blue: #7ddffb;
  --blue-ink: #061722;
  --good: #8ee6b0;
  --warn: #f3c874;
  --bad: #ff9bb3;
  --info: #8fc3ff;
  --blurple: #5865f2;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button:not(:disabled), label.po-opcion { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1:focus, h2:focus { outline: none; }
a { color: var(--blue); }

.po-sky { position: fixed; inset: 0; z-index: -1; background: var(--bg) url("/assets/nebulosa.webp") center / cover no-repeat; }
.po-sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, #02091433 0%, #020914a6 65%, #020914e6 100%); }
@media (max-width: 760px) { .po-sky { background-image: url("/assets/nebulosa-movil.webp"); background-position: 30% center; } }

#po-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.po-top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, calc((100% - 1120px) / 2)) 14px;
  background: #061120ee; border-bottom: 1px solid #28475e; backdrop-filter: blur(6px); }
.po-brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; text-decoration: none; }
.po-brand img { border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 22px #61caff22; }
.po-brand b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.2px; white-space: nowrap; }
.po-brand i { font-style: normal; color: var(--muted); font-weight: 400; }
.po-brand small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); white-space: nowrap; }
.po-top-r { display: flex; align-items: center; gap: 14px; min-width: 0; }
.po-link { color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
.po-link:hover { color: var(--blue); }
.po-yo { display: flex; align-items: center; gap: 9px; padding: 4px 4px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px; background: #0a1d32; min-width: 0; }
.po-yo img { border-radius: 50%; flex-shrink: 0; }
.po-yo span { font-size: 13px; font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.po-icon:hover { color: var(--bad); background: #ffffff0d; }
.po-icon svg { width: 16px; height: 16px; }
@media (max-width: 620px) { .po-link, .po-brand small { display: none; } .po-yo span { max-width: 110px; } }

.po-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 34px 16px 56px; }
.po-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding: 18px max(16px, calc((100% - 1120px) / 2)); border-top: 1px solid #1c3a52; color: var(--dim); font-size: 12px; background: #020914cc; }

.po-card { background: linear-gradient(145deg, var(--card-a), var(--card-b)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 14px 42px #00081066; }
.po-sec { margin: 0 0 44px; }
.po-sec h1, .po-h2 { font-family: Unbounded, Inter, sans-serif; font-weight: 600; letter-spacing: -.5px; margin: 0 0 8px; }
.po-sec h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.2; }
.po-sec h1 span, .po-entrar h1 span { color: var(--blue); }
.po-h2 { font-size: 22px; margin-top: 8px; }
.po-lead { color: var(--muted); margin: 0 0 22px; max-width: 760px; }
.po-eyebrow { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--blue); font-weight: 600; }
.po-error { color: var(--bad); font-size: 13px; margin: 8px 0 0; }
.po-ayuda { color: var(--dim); font-size: 12.5px; margin: 6px 0 0; }
.po-vacio p { margin: 0; color: var(--muted); }

.po-cargando { display: grid; place-items: center; gap: 8px; padding: 70px 0; color: var(--muted); }
.po-cargando img { border-radius: 50%; }
.po-cargando p { margin: 0; }

/* Entrar */
.po-entrar { display: grid; place-items: center; min-height: 60vh; }
.po-entrar-card { width: 100%; max-width: 470px; text-align: center; padding: 34px 28px; }
.po-entrar-logo { border-radius: 50%; box-shadow: 0 0 36px #61caff33; margin: 0 auto 14px; display: block; }
.po-entrar h1 { font-family: Unbounded, Inter, sans-serif; font-size: 26px; line-height: 1.25; margin: 0 0 10px; font-weight: 600; letter-spacing: -.4px; }
.po-entrar .po-lead { margin: 0 auto 22px; }
.po-discord { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 16px; border: 0; border-radius: 12px;
  background: var(--blurple); color: #fff; font-weight: 650; font-size: 15px; box-shadow: 0 6px 24px #5865f244; transition: filter .15s, transform .15s; }
.po-discord:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.po-discord svg { width: 22px; height: 22px; }
.po-nota { color: var(--dim); font-size: 12px; margin: 16px 0 0; }
.po-aviso { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px 14px; margin: 0 0 18px; border: 1px solid #3c6d93; border-radius: 12px; background: #0d2440cc; color: var(--text); font-size: 13.5px; }
.po-aviso svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--info); }

/* Rangos */
.po-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.po-rango { display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.po-rango:not(.apagado):hover { border-color: #4f86ad; transform: translateY(-2px); }
.po-rango.apagado { opacity: .78; }
.po-rango-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(140deg, #7ce2fa, #3fa9e6); color: var(--blue-ink); box-shadow: 0 6px 20px #23b8ed33; flex-shrink: 0; }
.po-rango.apagado .po-rango-icon { background: #1b3a55; color: var(--muted); box-shadow: none; }
.po-rango-icon svg { width: 22px; height: 22px; }
.po-rango-icon.sm { width: 38px; height: 38px; border-radius: 11px; }
.po-rango-icon.sm svg { width: 18px; height: 18px; }
.po-rango h2 { font-size: 19px; margin: 16px 0 6px; font-weight: 650; }
.po-rango p { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.po-rango-pie { margin-top: auto; display: grid; gap: 12px; }
.po-estado { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 11px; font-size: 13px; border: 1px solid; }
.po-estado svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.po-estado.no { color: var(--bad); border-color: #7a3448; background: #2a0f1899; }
.po-estado.warn { color: var(--warn); border-color: #8a6a2c; background: #2a200c99; }
.po-estado.info { color: var(--info); border-color: #2f5f8e; background: #0d203899; }
.po-estado.ok { color: var(--good); border-color: #2d6a4f; background: #0d241b99; }
.po-estado a { color: inherit; font-weight: 600; }

.po-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 12px 16px; border: 1px solid #81e8ff; border-radius: 11px;
  background: linear-gradient(110deg, #7ce2fa, #51c8f1); color: var(--blue-ink); font-weight: 650; font-size: 14px; text-decoration: none; box-shadow: 0 4px 18px #23b8ed22; transition: filter .15s, transform .15s; }
.po-btn:hover:not(:disabled):not(.off) { filter: brightness(1.08); transform: translateY(-1px); }
.po-btn svg { width: 17px; height: 17px; }
.po-btn.off { background: #0b1b2e; border-color: var(--line); color: var(--dim); box-shadow: none; }
.po-btn.sm { width: auto; padding: 9px 14px; font-size: 13px; }
.po-btn:disabled { opacity: .6; }
.po-ghost { border: 1px solid var(--line-2); background: transparent; border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 13px; color: var(--bad); margin-top: 14px; }
.po-ghost:hover { border-color: var(--bad); }

/* Tus postulaciones */
.po-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.po-lista li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.po-lista-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.po-lista-txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.po-lista-txt small { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12.5px; }
.po-lista-txt small svg { width: 13px; height: 13px; }
.po-ver { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
.po-ver:hover { border-color: var(--blue); color: var(--blue); }
.po-ver svg { width: 15px; height: 15px; }
@media (max-width: 560px) { .po-lista li { flex-wrap: wrap; } .po-lista-txt { flex-basis: calc(100% - 60px); } .po-lista .po-pill { margin-left: 52px; } .po-ver { margin-left: auto; } }

.po-pill { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; border: 1px solid; white-space: nowrap; }
.po-pill.pendiente { color: var(--warn); border-color: #8a6a2c; background: #2a200c; }
.po-pill.revisando { color: var(--info); border-color: #2f5f8e; background: #0d2038; }
.po-pill.aceptada { color: var(--good); border-color: #2d6a4f; background: #0d241b; }
.po-pill.rechazada { color: var(--bad); border-color: #7a3448; background: #2a0f18; }
.po-pill.retirada { color: var(--dim); border-color: var(--line); background: #0b1626; }

/* Formulario */
.po-form { max-width: 820px; margin-left: auto; margin-right: auto; }
.po-volver { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 13px; margin: 0 0 14px; }
.po-volver:hover { color: var(--blue); }
.po-volver svg { width: 16px; height: 16px; }
.po-presenta { margin: 18px 0 22px; }
.po-texto { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.po-form form { display: grid; gap: 16px; }
.po-q { scroll-margin-top: 110px; }
.po-q.mal { border-color: #a14862; }
.po-q-t { display: flex; align-items: flex-start; gap: 11px; flex-wrap: wrap; margin: 0 0 12px; font-weight: 600; line-height: 1.45; }
.po-q-t label, .po-q-t > span:not(.po-num):not(.po-req):not(.po-opt) { flex: 1; min-width: 200px; }
.po-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(140deg, #7ce2fa, #3fa9e6); color: var(--blue-ink); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.po-req, .po-opt { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid; text-transform: uppercase; letter-spacing: .5px; align-self: center; }
.po-req { color: var(--bad); border-color: #7a3448; background: #2a0f18; }
.po-opt { color: var(--dim); border-color: var(--line); }
.po-input { width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--field); color: var(--text); font-size: 14.5px; }
.po-input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px #7ddffb22; }
textarea.po-input { resize: vertical; min-height: 110px; line-height: 1.5; }
.po-cuenta { text-align: right; color: var(--dim); font-size: 11.5px; margin: 4px 0 0; }
.po-opciones { display: grid; gap: 8px; }
.po-opcion { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--field); }
.po-opcion:has(input:checked) { border-color: var(--blue); background: #0b2236; }
.po-opcion input { accent-color: #51c8f1; width: 17px; height: 17px; margin: 0; }
.po-enviar { text-align: center; }
.po-enviar .po-btn { max-width: 340px; margin-top: 12px; }

/* Una postulación */
.po-mia-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; }
.po-mia-head h1 { margin: 0; }
.po-resumen { margin: 0 0 28px; border-left: 4px solid var(--warn); }
.po-resumen.revisando { border-left-color: var(--info); }
.po-resumen.aceptada { border-left-color: var(--good); }
.po-resumen.rechazada { border-left-color: var(--bad); }
.po-resumen.retirada { border-left-color: var(--dim); }
.po-resumen > p { margin: 0 0 14px; }
.po-msg { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #050f1f; border: 1px solid var(--line); }
.po-msg b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 6px; }
.po-pasos { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 10px; }
.po-pasos li { position: relative; padding-left: 22px; display: grid; }
.po-pasos li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); }
.po-pasos li.revisando::before { background: var(--info); }
.po-pasos li.aceptada::before { background: var(--good); }
.po-pasos li.rechazada::before { background: var(--bad); }
.po-pasos li.retirada::before { background: var(--dim); }
.po-pasos b { font-weight: 600; font-size: 14px; }
.po-pasos small { color: var(--dim); font-size: 12px; }
.po-form > .po-card.po-q { margin: 0 0 12px; }

.po-toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: #0e2238; border: 1px solid #3c6d93; color: var(--text); font-size: 14px; box-shadow: 0 10px 30px #0008; transition: opacity .2s, transform .2s; z-index: 50; }
.po-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
