/* FLOW · accesos y registros con el diseño nuevo (solo aspecto).
   Se carga DESPUÉS de flow.css en registro-empresa/candidato/headhunter.html.
   No cambia ningún formulario ni id: flow.js sigue igual. Todo va bajo body.nv. */

@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

body.nv {
  --blue: #0068E8; --blue-700: #0052BA; --navy: #071B48; --sky: #EAF6FF;
  --ink-2: #435570; --ink-3: #5D6E88; --line: #DCE6F2; --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* tokens de flow.css → paleta nueva */
  --c-verde: var(--blue); --c-azul-ui: var(--blue); --c-azul: var(--blue);
  --c-verde-suave: var(--sky); --c-azul-300: var(--sky); --c-azul-200: #D5EAFF; --c-fondo-azul: #F1F5FB; --c-verde-velo: rgba(0,104,232,.05);
  --c-tinta: var(--navy); --c-texto: var(--ink-2); --c-suave: var(--ink-3); --c-linea: var(--line);
  --font-display: var(--font); --font-cuerpo: var(--font); --radio: 10px;
  font-family: var(--font); color: var(--ink-2); background: #fff;
}
body.nv h1, body.nv h2, body.nv h3, body.nv h4 { font-family: var(--font); letter-spacing: -.02em; }

/* ---------- cabecera: la .topbar de flow.js pasa a ser la barra nueva ---------- */
body.nv .header, body.nv .drawer, body.nv .footer, body.nv .legal { display: none !important; }
body.nv .topbar { display: flex !important; align-items: center; gap: 18px; padding: 14px clamp(20px, 3vw, 40px); position: relative; z-index: 30; height: auto; background: #fff; color: var(--navy); font-family: var(--font); font-size: .92rem; }
body.nv .topbar::before { display: none; }
body.nv .topbar .wrap { max-width: none; margin: 0; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 6px; padding: 0; }
body.nv .topbar a { min-height: 0; }
body.nv .nv-brand { flex: none; }
body.nv .nv-brand img { width: 120px; height: auto; display: block; }
body.nv .nv-otros > .topbar-rot { color: var(--ink-3); margin-right: 6px; }
body.nv .nv-otros > .idi-barra { margin-left: auto; }
body.nv .topbar .nv-otros > a { padding: 8px 12px; border-radius: 999px; color: var(--navy); font-weight: 600; text-decoration: none; border: 1px solid var(--line); transition: border-color .15s, color .15s, background-color .15s; }
body.nv .topbar .nv-otros > a:hover { border-color: var(--blue); color: var(--blue-700); background: var(--sky); }
/* idioma (lo pone flow.js) y pastilla de sesión, con el aspecto nuevo */
body.nv .topbar .idi-barra .idi-btn { color: var(--navy); border: 1px solid var(--line); background: #fff; font-family: var(--font); font-weight: 700; font-size: .82rem; min-height: 32px; }
body.nv .topbar .idi-barra .idi-btn:hover { border-color: var(--blue); background: #fff; }
body.nv .topbar .topbar-btn, body.nv .topbar a.topbar-btn { color: var(--navy); border: 1px solid var(--line); background: #fff; font-weight: 600; }
body.nv .topbar .topbar-btn:hover { border-color: var(--blue); background: var(--sky); }
body.nv .topbar-rot { color: var(--ink-3); }

/* ---------- reparto: panel de marca a la izquierda, formulario a la derecha ---------- */
body.nv main#main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(16px, 3vw, 48px); align-items: start; padding: 0 clamp(12px, 2vw, 24px) 24px; }
body.nv main#main > * { grid-column: 2; min-width: 0; }
body.nv main#main > .auth-side { grid-column: 1; grid-row: 1 / span 30; }
body.nv main#main > .nv-tabs { margin-top: clamp(16px, 4vw, 48px); }
body.nv main#main > .nv-tabs, body.nv main#main > .hh-intro, body.nv main#main > .nv-legal { width: 100%; max-width: 480px; justify-self: center; }
body.nv main#main > #registro { width: 100%; max-width: 640px; justify-self: center; }
body.nv[data-vista="ingresar"] main#main > .nv-tabs { max-width: 480px; }
body.nv[data-vista="registro"] main#main > .nv-tabs, body.nv[data-vista="registro"] main#main > .nv-legal { max-width: 640px; }

/* ---------- panel de marca (mismo diseño que la web nueva) ---------- */
.auth-side { position: sticky; top: 16px; align-self: start; min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); overflow: hidden; isolation: isolate; border-radius: 28px; background: var(--navy); color: #C9D6EE; display: flex; }
.auth-side__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 100% 0%, rgba(0,104,232,.55), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(0,104,232,.3), transparent 70%); }
.auth-side__glow::after { content: ""; position: absolute; inset: 0; opacity: .45; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.auth-side__inner { padding: clamp(32px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; width: 100%; }
.auth-side__kicker { color: #8EC4FF; font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.65rem); letter-spacing: -.01em; margin: 0 0 18px; display: inline-flex; align-items: center; gap: 12px; }
.auth-side__kicker::before { content: ""; width: 36px; height: 3px; background: currentColor; border-radius: 2px; }
body.nv .auth-side h1 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin: 0 0 16px; }
.auth-side__lead { font-size: 1.05rem; line-height: 1.6; max-width: 460px; margin: 0 0 28px; }
.perks { list-style: none; display: grid; gap: 18px; margin: 0 0 32px; padding: 0; }
.perks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.perks__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.perks__icon svg { width: 22px; height: 22px; fill: none; stroke: #8EC4FF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.nv .perks h2 { color: #fff; font-size: 1.02rem; letter-spacing: 0; margin: 2px 0; line-height: 1.3; font-weight: 750; }
.perks p { margin: 0; font-size: .94rem; line-height: 1.5; }
.side-link { display: inline-flex; align-items: center; gap: 8px; margin: -12px 0 28px; font-weight: 650; color: #8EC4FF; text-decoration: none; }
.side-link::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.side-link:hover { color: #fff; }
.side-card { max-width: 420px; padding: 18px 20px 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.side-card__eyebrow { margin: 0; font-size: .78rem; color: #9FB2D3; }
.side-card__title { margin: 0 0 14px; color: #fff; font-weight: 750; }
.rail { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; }
.rail li { position: relative; padding-top: 22px; font-size: .72rem; font-weight: 650; text-align: center; color: #9FB2D3; }
.rail li::before { content: ""; position: absolute; top: 5px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; z-index: 1; background: var(--navy); border: 2px solid rgba(255,255,255,.25); }
.rail li::after { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: rgba(255,255,255,.18); }
.rail li:first-child::after { display: none; }
.rail .is-done { color: #fff; }
.rail .is-done::before { background: #4DA3FF; border-color: #4DA3FF; }
.rail .is-done::after, .rail .is-now::after { background: #4DA3FF; }
.rail .is-now { color: #8EC4FF; font-weight: 750; }
.rail .is-now::before { background: #4DA3FF; border-color: #4DA3FF; animation: nv-latido 1.6s ease-in-out infinite; }
@keyframes nv-latido { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(77,163,255,.65); } 12% { transform: scale(1.35); } 24% { transform: scale(1); } 36% { transform: scale(1.25); } 55% { transform: scale(1); box-shadow: 0 0 0 10px rgba(77,163,255,0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(77,163,255,0); } }
.side-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 420px; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.side-cta:hover { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(142,196,255,.6); transform: translateY(-2px); }
.side-cta strong { display: block; font-size: 1.02rem; }
.side-cta small { display: block; color: #9FB2D3; font-size: .88rem; }
.side-cta svg { flex: none; width: 22px; height: 22px; fill: none; stroke: #8EC4FF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Ingresar / Registrar ---------- */
.nv-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin-bottom: 30px; background: #F1F5FB; border: 1px solid var(--line); border-radius: 999px; }
.nv-tabs a { position: relative; z-index: 1; display: grid; place-items: center; min-height: 44px; padding: 0 8px; text-align: center; font-weight: 650; font-size: .98rem; line-height: 1.2; color: var(--ink-2); text-decoration: none; border-radius: 999px; transition: color .25s; }
.nv-tabs a[aria-selected="true"] { color: var(--navy); }
.nv-tabs__thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(7,27,72,.08), 0 6px 16px -8px rgba(7,27,72,.3); transition: transform .35s var(--ease); }
.nv-tabs[data-activo="registro"] .nv-tabs__thumb { transform: translateX(100%); }
/* sin JS (o antes de que cargue) se ven las dos partes: nada queda inaccesible */
body.nv[data-vista="ingresar"] #registro, body.nv[data-vista="registro"] main#main > .hh-intro { display: none; }
body.nv .hh-beneficios { display: none; }

/* ---------- ingresar ---------- */
body.nv .hh-intro { padding: 0; }
body.nv .hh-intro > .wrap, body.nv #registro > .wrap { max-width: none; padding: 0; }
body.nv .hh-cab, body.nv .hh-linea, body.nv .hh-ilustra, body.nv .hh-ya { display: none; }
body.nv .hh-cols { display: block; padding: 0; }
.nv-titulo { display: block; font-size: clamp(1.5rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -.025em; color: var(--navy); line-height: 1.15; margin: 0 0 6px; }
.nv-lead { margin: 0 0 24px; color: var(--ink-2); line-height: 1.55; }
body.nv .hh-form .campo { margin-bottom: 16px; gap: 8px; }
body.nv .hh-form label, body.nv .campo label { font-weight: 650; color: var(--navy); font-size: .95rem; line-height: 1.3; }
body.nv .hh-form input[type=email], body.nv .hh-form input[type=password], body.nv .hh-form input[type=text],
body.nv .campo input, body.nv .campo select, body.nv .campo textarea { font: 1rem/1.4 var(--font); color: var(--navy); background-color: #fff; border: 1.5px solid #C9D6E6; border-radius: 10px; min-height: 48px; padding: 11px 14px; }
body.nv .campo select { padding-right: 40px; }
body.nv .hh-form input:focus, body.nv .campo input:focus, body.nv .campo select:focus, body.nv .campo textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,104,232,.16); }
body.nv .campo input[readonly] { background-color: #F5F8FC; }
body.nv .hh-fila { justify-content: flex-end; font-size: .88rem; }
body.nv .hh-fila a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
body.nv .hh-enviar { justify-content: stretch; margin-top: 8px; }
body.nv .hh-enviar .btn { width: 100%; }
body.nv .hh-extra, .nv-pie { margin: 22px 0 0; text-align: center; font-size: .95rem; color: var(--ink-2); }
body.nv .hh-extra a, .nv-pie a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.nv .ac-o { margin: 22px 0 !important; border-top-color: var(--line); }
body.nv .ac-o span { color: var(--ink-3); }
body.nv .ac-social { border-radius: 999px; border: 1.5px solid #C9D6E6; min-height: 48px; color: var(--navy); font: 650 1rem/1 var(--font); }
body.nv .ac-social:hover { border-color: var(--blue); background: #F7FAFE; }

/* ---------- botones ---------- */
body.nv .btn { font-family: var(--font); font-weight: 650; border-radius: 999px; }
body.nv .btn-verde, body.nv .btn-azul, body.nv .btn-full { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(0,104,232,.8); }
body.nv .btn-verde:hover, body.nv .btn-azul:hover, body.nv .btn-full:hover { background: var(--blue-700); border-color: var(--blue-700); }
body.nv .btn-verde-out, body.nv .btn-out, body.nv .btn-linea-azul { color: var(--blue); border-color: var(--blue); }
body.nv .btn-ancho { min-width: 0; }

/* ---------- registro ---------- */
body.nv .rg-sec, body.nv .sec.rg-sec { padding: 0 0 8px; }
body.nv .hh-h3 { text-align: left; font-size: clamp(1.5rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -.025em; color: var(--navy); margin: 0 0 6px; line-height: 1.15; }
body.nv .rg-lead { text-align: left; margin: 0 0 22px; font-size: 1rem; line-height: 1.55; color: var(--ink-2); max-width: none; }
body.nv .pasos-barra { max-width: none; margin: 0 0 22px; gap: 10px; grid-template-columns: repeat(var(--n, 5), 1fr) !important; }
body.nv .pasos-barra li { min-height: 0; padding: 0 0 10px; background: none !important; color: var(--ink-3); border-bottom: 4px solid var(--line); border-radius: 0; font-size: .82rem; font-weight: 650; letter-spacing: 0; line-height: 1.25; place-items: end center; }
body.nv .pasos-barra li.on { color: var(--navy); border-bottom-color: var(--blue); }
body.nv .rg-lead { display: none; }
body.nv .rg-leg { text-align: left; font-size: 1.25rem; font-weight: 750; color: var(--navy); line-height: 1.3; letter-spacing: -.01em; margin: 0 0 18px; }
body.nv .rg-cabeza { max-width: none; margin: 0 0 22px; }
body.nv .rg-cabeza .pasos-barra li { min-height: 0; padding: 0 0 10px; font-size: .82rem; line-height: 1.25; }
body.nv .rg-form { max-width: none; }
body.nv .campos { gap: 16px 14px; }
body.nv .rg-valida { max-width: none; margin: 0 0 28px; border-color: var(--line); border-radius: 16px; }
body.nv .rg-valida-h { text-align: left; font-size: .95rem; line-height: 1.5; letter-spacing: 0; color: var(--ink-2); }
body.nv .rg-valida-h b, body.nv .rg-valida-h strong { color: var(--navy); }
body.nv .rg-pie { border-top-color: var(--line); }
body.nv .rg-exito h2 { color: var(--navy); }

.nv-legal { margin: 28px 0 0; text-align: center; font-size: .82rem; line-height: 1.6; color: var(--ink-3); }
.nv-legal a { color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  body.nv main#main { grid-template-columns: 1fr; }
  body.nv main#main > .auth-side { grid-column: 1; grid-row: auto; order: 99; position: relative; top: auto; min-height: 0; border-radius: 22px; margin-top: 32px; }
  body.nv main#main > * { grid-column: 1; }
  .side-card { display: none; }
  .perks { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
  .perks li { grid-template-columns: 1fr; }
  .perks + .side-link { margin-top: 22px; }
}
@media (max-width: 760px) {
  body.nv .nv-otros > .topbar-rot { display: none; }
  body.nv .topbar .nv-otros > a { padding: 7px 10px; font-size: .86rem; }
  .perks { grid-template-columns: 1fr; }
  .perks li { grid-template-columns: 40px 1fr; }
  body.nv .campos { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body.nv .topbar { flex-wrap: wrap; row-gap: 12px; padding-top: 12px; padding-bottom: 6px; }
  body.nv .nv-brand img { width: 96px; }
  body.nv .topbar .wrap { flex: 1 1 100%; gap: 5px; flex-wrap: wrap; row-gap: 8px; }
  body.nv .topbar .nv-otros > a { white-space: nowrap; padding: 6px 9px; font-size: .8rem; gap: 5px; }
  body.nv .pasos-barra { grid-template-columns: repeat(var(--n, 5), 1fr) !important; gap: 6px; }
  body.nv .pasos-barra li { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { .rail .is-now::before { animation: none; } .nv-tabs__thumb { transition: none; } }
