/* © 2026 Jobers y Asociados, S.L. — Todos los derechos reservados.
   Aplicación: JobFácil · Módulo: frontend/app/alta.css
   Las páginas públicas del alta (/alta, /alta/asesoria, /alta/verificar): el mismo verde, la misma letra y el mismo tono
   que la bienvenida. Sin librerías y sin fuentes de fuera. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/JobWC/fuentes/inter/Inter-Variable.woff2') format('woff2'); }
:root {
  --tinta: #0c1f14; --tinta-2: #44554a; --tinta-3: #6b7a70;
  --papel: #f5f6f1; --blanco: #ffffff; --raya: #dfe4da;
  --verde: #1fa94d; --accion: #15803d; --accion-2: #11692f; --hondo: #0d3b22; --hondo-2: #0a2c1a;
  --brote: #c9f2b4; --brote-2: #e9f8df; --rojo: #b42318; --rojo-2: #fdecea; --ambar: #92400e; --ambar-2: #fef3c7;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--papel); color: var(--tinta); font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
h1, h2 { text-wrap: balance; }
a { color: var(--accion); }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.al { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); min-height: 100vh; }

/* ---------- el lado verde ---------- */
.al-lado { position: relative; overflow: hidden; background: var(--hondo); color: #eaf5ec; padding: 44px 48px; display: flex; flex-direction: column; gap: 28px; }
.al-lado::after { content: ''; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 242, 180, .16), rgba(201, 242, 180, 0)); pointer-events: none; }
.al-marca { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -.035em; color: #fff; text-decoration: none; position: relative; z-index: 1; }
.al-marca img { width: 38px; height: 38px; }
/* el sello «by Jobers», como en la bienvenida */
.al-marca small { align-self: center; margin-left: -3px; padding-top: .56em; font-size: .54em; font-weight: 500; letter-spacing: 0; color: #9fb7a6; white-space: nowrap; }
.al-marca small b { font-weight: 700; color: #dcebdf; }
.al-dice { margin-top: auto; position: relative; z-index: 1; }
.al-dice h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.03; letter-spacing: -.04em; font-weight: 800; color: #fff; }
.al-dice h1 em { font-style: normal; color: var(--brote); }
.al-dice > p { margin-top: 16px; color: #bfd6c5; max-width: 30em; }
.al-prendas { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; font-weight: 600; font-size: 15px; color: #fff; }
.al-prendas li { display: flex; align-items: flex-start; gap: 10px; }
.al-prendas svg { width: 20px; height: 20px; flex: none; color: var(--brote); margin-top: 1px; }
.al-treinta { margin-top: auto; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(255, 255, 255, .05); position: relative; z-index: 1; }
.al-treinta strong { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.05em; color: var(--brote); }
.al-treinta span { font-size: 14px; line-height: 1.4; color: #bfd6c5; }
.al-treinta span b { display: block; color: #fff; font-size: 15px; }

/* ---------- el formulario ---------- */
.al-cuerpo { display: grid; place-items: center; padding: 40px 24px; }
.al-caja { width: min(480px, 100%); min-width: 0; }
.al-caja h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; }
.al-caja .bajada { margin-top: 8px; color: var(--tinta-2); }
.al-tipo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 26px 0 4px; padding: 4px; border-radius: 14px; background: #e6eae1; }
.al-tipo button { min-height: 44px; border: 0; border-radius: 11px; background: transparent; color: var(--tinta-2); font-weight: 600; font-size: 15px; line-height: 1.2; font-family: inherit; cursor: pointer; padding: 6px 10px; }
.al-tipo button[aria-pressed="true"] { background: var(--blanco); color: var(--tinta); box-shadow: 0 1px 3px rgba(12, 31, 20, .16); }
.al-nota-tipo { font-size: 14px; color: var(--tinta-3); margin: 8px 2px 0; min-height: 21px; }
.campo { display: block; margin-top: 18px; }
.campo > span { display: block; font-size: 14px; font-weight: 600; color: var(--tinta); margin-bottom: 6px; }
.campo input[type="text"], .campo input[type="email"], .campo input[type="password"] { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid #cfd6ca; border-radius: 12px; background: var(--blanco); color: var(--tinta); font-weight: 500; font-size: 16px; line-height: 1.2; font-family: inherit; }
.campo input:focus { outline: 0; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(31, 169, 77, .18); }
.campo.mal input { border-color: var(--rojo); }
.campo small, .casilla small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--rojo); font-weight: 500; }
.campo .ayuda { color: var(--tinta-3); font-weight: 400; }
.con-ojo { position: relative; }
.con-ojo input { padding-right: 92px !important; }
.con-ojo button { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--accion); font-weight: 600; font-size: 14px; line-height: 1; font-family: inherit; cursor: pointer; }
.casilla { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 18px; font-size: 14.5px; color: var(--tinta-2); line-height: 1.45; cursor: pointer; }
.casilla input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accion); }
.casilla small { grid-column: 2; margin-top: 2px; }
.casilla .version { color: var(--tinta-3); white-space: nowrap; }
/* el CAMPO TRAMPA: una persona no lo ve ni llega a él con el teclado; un robot lo rellena */
.al-miel { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 24px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--accion); color: #fff; font-weight: 700; font-size: 17px; line-height: 1; font-family: inherit; letter-spacing: -.01em; text-decoration: none; cursor: pointer; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -10px rgba(21, 128, 61, .75); transition: background .15s; }
.boton:hover { background: var(--accion-2); }
.boton[disabled] { opacity: .6; cursor: default; }
.boton.plano { background: transparent; color: var(--accion); box-shadow: none; min-height: 44px; margin-top: 8px; font-weight: 600; font-size: 15px; }
.boton.plano[hidden] { display: none; }
.boton.plano:hover { background: var(--brote-2); }
.al-pie { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--tinta-3); }
.al-pie a { font-weight: 700; text-decoration: none; }
.al-pie a:hover { text-decoration: underline; }
.al-legal { margin-top: 10px; font-size: 13.5px; }
.al-legal a { margin: 0 6px; font-weight: 600; color: var(--tinta-3); }
.al-aviso { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; }
.al-aviso.rojo { background: var(--rojo-2); color: #7a1a12; }
.al-aviso.verde { background: var(--brote-2); color: #14532d; }
.al-aviso svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* «revisa tu correo» y los estados del enlace */
.al-sobre { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--brote-2); color: var(--accion); margin-bottom: 20px; }
.al-sobre svg { width: 36px; height: 36px; }
.al-sobre.rojo { background: var(--rojo-2); color: var(--rojo); }
.al-correo { display: inline-block; margin: 2px 0; padding: 2px 10px; border-radius: 999px; background: #e6eae1; color: var(--tinta); font-weight: 600; word-break: break-all; }
.al-pasos { margin: 18px 0 0; padding: 0 0 0 20px; color: var(--tinta-2); display: grid; gap: 6px; }

/* la fortaleza de la contraseña */
.fuerza { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 5px; align-items: center; margin-top: 10px; }
.fuerza i { height: 5px; border-radius: 99px; background: #dfe4da; }
.fuerza b { margin-left: 8px; min-width: 9.5em; text-align: right; font-size: 13.5px; font-weight: 600; color: var(--tinta-3); }
.fuerza[data-n="1"] i:nth-child(-n+1) { background: #d97706; } .fuerza[data-n="1"] b { color: #92400e; }
.fuerza[data-n="2"] i:nth-child(-n+2) { background: #65a30d; } .fuerza[data-n="2"] b { color: #3f6212; }
.fuerza[data-n="3"] i:nth-child(-n+3) { background: var(--verde); } .fuerza[data-n="3"] b { color: var(--accion); }
.fuerza[data-n="4"] i:nth-child(-n+4) { background: var(--accion); } .fuerza[data-n="4"] b { color: var(--accion); }

@media (max-width: 860px) {
  .al { grid-template-columns: 1fr; min-height: 0; }
  .al-lado { padding: 18px 20px 20px; gap: 12px; }
  .al-lado::after { display: none; }
  .al-dice { margin-top: 2px; }
  .al-dice h1 { font-size: 26px; }
  .al-dice > p, .al-prendas { display: none; }
  .al-treinta { margin-top: 2px; padding: 10px 14px; border-radius: 12px; }
  .al-treinta strong { font-size: 30px; }
  .al-treinta span { font-size: 13px; }
  .al-treinta span b { font-size: 14px; }
  .al-cuerpo { padding: 26px 18px 40px; place-items: start center; }
  .al-tipo { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .boton { transition: none; } }
