/* JobHunter — estilos de la app web. Colores: variables de docs/brand/tokens.json (inyectadas en base.html).
   Medidas y componentes: docs/brand/BRAND.md §6 y docs/design/mockup-v1.html. */

:root { --display: 'Fraunces', Georgia, serif; --body: 'Inter', system-ui, -apple-system, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
/* clip: un globo de ayuda oculto junto al borde derecho no puede agregar desplazamiento horizontal. */
.wrap { width: 100%; margin: 0 auto; padding: 0 clamp(16px, 4vw, 80px) 48px; overflow-x: clip; }
.tag { display: block; font: 600 13px var(--body); color: var(--text-muted); margin: 48px 0 12px; }
.small { font-size: 12.5px; color: var(--text-muted); }
.notice { margin: 8px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--surface-2); color: var(--text-2); font-size: 14px; }

/* ── Navegación ── */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; view-transition-name: nav; }
/* Landing: sticky; al scrollear en desktop flota como píldora (el Sign up queda abajo). */
.wrap:has([data-land]) .nav {
  position: sticky; top: 0; z-index: 40; margin: 0 calc(-1 * clamp(16px, 4vw, 80px));
  padding: 14px clamp(16px, 4vw, 80px); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent; border-radius: 0;
  transition: padding .28s cubic-bezier(.2,.7,.2,1), margin .28s cubic-bezier(.2,.7,.2,1), width .28s ease,
    border-radius .28s ease, background .28s ease, box-shadow .28s ease, border-color .28s ease, top .28s ease;
}
.nav-lead { display: none; align-items: center; gap: 8px; flex: none; min-width: 0; }
.land-lang { display: none; } /* mobile landing: junto a la hamburguesa */
.nav-burger {
  display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border-control);
  background: var(--surface); color: var(--text-2); place-items: center; cursor: pointer; flex: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger:hover, .nav-burger:active { color: var(--primary); border-color: var(--primary); background: var(--surface-2); }
.nav-burger .i-close { display: none; }
.nav.is-menu-open .nav-burger .i-burger { display: none; }
.nav.is-menu-open .nav-burger .i-close { display: block; }
/* Compacto flotante: solo desktop (≥901px). Móvil usa barra + hamburguesa. */
@media (min-width: 901px) {
  .wrap:has([data-land]) .nav.is-compact {
    top: 12px; width: fit-content; max-width: calc(100% - 24px); margin: 0 auto; padding: 8px;
    border-radius: 999px; gap: 8px; flex-wrap: nowrap;
    border-color: color-mix(in srgb, var(--border) 80%, transparent);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--text) 18%, transparent);
  }
  .wrap:has([data-land]) .nav.is-compact .logo { margin: 0 0 0 6px; }
  .wrap:has([data-land]) .nav.is-compact .logo svg { height: 26px; }
  .wrap:has([data-land]) .nav.is-compact .links { display: none; }
  .wrap:has([data-land]) .nav.is-compact .mnav {
    display: flex; order: 0; flex: 0 1 auto; min-width: 0; gap: 2px; margin: 0; padding: 2px;
    border-radius: 999px; background: var(--surface-subtle);
  }
  .wrap:has([data-land]) .nav.is-compact .mnav a {
    flex: none; text-align: center; padding: 8px 12px; border-radius: 999px; font: 600 13px var(--body);
    color: var(--text-2); text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  }
  .wrap:has([data-land]) .nav.is-compact .mnav a:hover,
  .wrap:has([data-land]) .nav.is-compact .mnav a:active {
    color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent);
  }
  .wrap:has([data-land]) .nav.is-compact .navr,
  .wrap:has([data-land]) .nav.is-compact .nav-tools { display: flex; gap: 6px; align-items: center; flex: none; }
  .wrap:has([data-land]) .nav.is-compact .nav-auth { display: flex !important; flex: none; }
  .wrap:has([data-land]) .nav.is-compact .nav-auth .btn-p { display: none; }
  .wrap:has([data-land]) .nav.is-compact .nav-auth .btn-g {
    display: inline-flex; min-height: 40px; padding: 10px 18px; border-radius: 999px;
    border: 1.5px solid var(--border-control); background: var(--surface); color: var(--text);
    font: 700 13.5px var(--body); white-space: nowrap; width: auto;
  }
  .wrap:has([data-land]) .nav.is-compact .nav-auth .btn-g:hover,
  .wrap:has([data-land]) .nav.is-compact .nav-auth .btn-g:active {
    color: var(--primary); border-color: var(--primary); background: var(--surface-2);
  }
  .wrap:has([data-land]) .nav.is-compact .icon-btn { width: 36px; height: 36px; }
  .wrap:has([data-land]) .nav.is-compact .seg { padding: 2px; }
  .wrap:has([data-land]) .nav.is-compact .seg a { padding: 5px 9px; }
}
.logo { display: flex; line-height: 0; }
.logo svg { height: 38px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; } :root[data-theme="dark"] .logo-dark { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: inline; } }
.links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; margin-right: auto; margin-left: 20px; }
.links a { color: var(--text-2); text-decoration: none; text-underline-offset: 4px; }
.links a:hover { color: var(--primary); text-decoration: underline; }
.links a[aria-current] { color: var(--text); font-weight: 600; }
/* En pantallas angostas los links bajan a una fila propia, debajo de la barra. */
.mnav { display: none; }
.navr { display: flex; gap: 10px; align-items: center; }
.nav-tools { display: flex; gap: 10px; align-items: center; }
.nav-auth { display: flex; gap: 8px; align-items: center; }
.seg { display: flex; border: 1px solid var(--border-control); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg a { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--text-muted); text-decoration: none; }
.seg a.on { background: var(--surface-2); color: var(--primary); }
.seg a:not(.on):hover { color: var(--text); background: var(--surface-subtle); }
.icon-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-control); background: var(--surface); color: var(--text-2);
  display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--surface-2); }
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; } :root[data-theme="dark"] .icon-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .i-sun { display: block; } :root:not([data-theme="light"]) .icon-btn .i-moon { display: none; } }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font: 700 14px var(--body);
  padding: 12px 22px; border: 0; cursor: pointer; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.btn-p { background: var(--primary); color: var(--on-primary); } .btn-p:hover { background: var(--primary-hover); }
.btn-o { background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); } .btn-o:hover { background: var(--surface-2); }
.btn-g { background: transparent; color: var(--text-2); padding: 10px 12px; } .btn-g:hover { color: var(--primary); }
/* Borrar, descartar, quitar: el hover de la letra es rojo. Si ya es roja, un poco más clara. */
.btn-g.is-danger:hover, .btn-g.is-danger:focus-visible,
.btn-g.btn-remove:hover, .btn-g.btn-remove:focus-visible { color: var(--danger); }
.btn-g.home-del:hover, .btn-g.home-del:focus-visible { color: color-mix(in srgb, var(--danger) 88%, #fff); }
.btn:focus-visible, .filters .chip input:focus-visible + span, .icon-btn:focus-visible, .seg a:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Landing ── */
/* Atmósfera suave: menos verde plano, coral solo en CTAs/acentos puntuales (BRAND §4). */
body:has(.land) {
  background:
    radial-gradient(90% 55% at 10% -10%, color-mix(in srgb, var(--secondary) 28%, transparent), transparent 55%),
    radial-gradient(70% 45% at 95% 8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 50%),
    var(--bg);
}
.land { position: relative; padding-bottom: 88px; --glow-x: 50%; --glow-y: 20%; }
/* Glow al cursor: esmeralda + menta (sin coral); visible pero suave. */
.land-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(
    48vmax circle at var(--glow-x) var(--glow-y),
    color-mix(in srgb, var(--primary) 16%, transparent),
    color-mix(in srgb, var(--secondary) 9%, transparent) 42%,
    transparent 70%
  );
  transition: opacity .4s cubic-bezier(.2,.7,.2,1);
}
.land.is-glowing > .land-glow { opacity: .78; }
.land > :not(.land-glow):not(.land-progress):not(.land-dock) { position: relative; z-index: 1; }
.land-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 45; height: 2px; pointer-events: none;
  background: color-mix(in srgb, var(--border) 55%, transparent); }
.land-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: left; transition: width .12s linear; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 72px); align-items: center;
  background:
    radial-gradient(80% 70% at 85% 15%, color-mix(in srgb, #7FC8A9 18%, transparent), transparent 60%),
    radial-gradient(60% 50% at 15% 90%, color-mix(in srgb, #E07A5F 12%, transparent), transparent 55%),
    #13261E;
  color: #E8F2EC; border-radius: 22px; padding: clamp(32px, 4.5vw, 72px) clamp(22px, 4vw, 64px); margin-top: 8px;
  overflow: hidden; isolation: isolate; }
:root[data-theme="dark"] .hero { border: 1px solid color-mix(in srgb, var(--border) 80%, #7FC8A9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { border: 1px solid color-mix(in srgb, var(--border) 80%, #7FC8A9); } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; background: var(--surface-2); color: var(--primary); font: 700 12.5px var(--body);
  padding: 7px 14px; border-radius: 999px; }
.hero-eyebrow { display: inline-flex; margin: 0 0 16px; font: 600 13px var(--body); color: #F29A80; letter-spacing: .02em; }
.h1 { font: 500 clamp(36px, 4.4vw, 72px)/1.02 var(--display); letter-spacing: -.025em; margin: 0 0 20px; color: #FFFFFF; }
.h1 em { font-style: italic; color: #7FC8A9; }
.sub { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; color: #C5D9CE; max-width: 42ch; margin: 0 0 28px; }
.btn-c { background: #E07A5F; color: #13261E; box-shadow: 0 10px 28px color-mix(in srgb, #E07A5F 35%, transparent); }
.btn-c:hover { background: #F29A80; }
.btn-on-dark { background: color-mix(in srgb, #E8F2EC 8%, transparent); color: #E8F2EC; border: 1px solid #66887A;
  backdrop-filter: blur(8px); }
.btn-on-dark:hover { border-color: #7FC8A9; color: #FFFFFF; background: color-mix(in srgb, #7FC8A9 14%, transparent); }
.hero .btn:focus-visible { outline-color: #7FC8A9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-login { color: #A9C2B6; font: 600 14px var(--body); text-decoration: none; margin-left: 4px; }
.hero-login:hover { color: #FFFFFF; }
.hero-note { margin: 16px 0 0; font-size: 13px; color: #8FA89C; }

/* Ofertas de ejemplo apiladas: siempre en colores claros, como una captura del producto. */
.ex-stack { position: relative; margin: 0; min-height: 420px; perspective: 900px; --px: 0; --py: 0; }
.ex { position: absolute; right: 0; width: min(100%, 420px); background: #F8FBF9; color: #13261E; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .55); border: 1px solid #D5E4DC; will-change: transform;
  --surface: #F8FBF9; --score-mid: #C98A1A; --primary: #1F6F54; --border: #C6D9CE;
  transition: box-shadow .25s ease; }
.ex-1 { top: 8px; z-index: 3; }
.ex-2 { top: 198px; right: 56px; z-index: 2; rotate: -2.4deg; }
.ex-3 { top: 300px; right: -6px; z-index: 1; rotate: 2deg; }
.ex-h { display: flex; gap: 14px; align-items: center; }
.ex-h b { display: block; font-size: 16px; line-height: 1.3; }
.ex-h span { display: block; font-size: 13px; color: #4F6A60; margin-top: 2px; }
.ex .ring { flex: none; }
.ex-why { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed #C6D9CE; font-size: 14px; line-height: 1.5; color: #3E5A4E; }
.ex-why b { color: #1F6F54; } .ex-why b.miss { color: #A8472E; }
.ex-stack figcaption { position: absolute; right: 0; left: auto; bottom: -2px; font-size: 12px; color: #A9C2B6; text-align: right; }

.marquee { position: relative; margin: 28px 0 8px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0 10px; }
.marquee-set li { flex: none; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text-2); font: 600 13px var(--body);
  backdrop-filter: blur(6px); }
.marquee-set .marquee-strong { color: var(--text); border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
@keyframes marquee { to { translate: -50% 0; } }

.land-sec { padding: 64px 0 12px; scroll-margin-top: 72px; }
.show-head { max-width: 54ch; margin: 0 0 24px; }
.show-head h2 { font: 500 clamp(30px, 3vw, 44px)/1.08 var(--display); letter-spacing: -.02em; margin: 0 0 10px; color: var(--text); }
.show-head p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.show-align { display: grid; gap: 12px; }
.show-duo-head, .show-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr); gap: 14px; align-items: stretch; }
.show-pane { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  transition: translate .35s cubic-bezier(.2,.7,.2,1), border-color .25s ease; }
/* Mismo escenario que How: fondo --bg para que las columnas .land-board no se fundan. */
.show-pane.show-board {
  background: var(--bg); overflow-x: auto; padding: 18px 16px 16px;
}
@media (hover: hover) and (pointer: fine) {
  .show-pane:hover { translate: 0 -3px; border-color: color-mix(in srgb, var(--primary) 28%, var(--border)); }
  .show-row:hover .show-jobs, .show-row:hover .show-band { border-color: color-mix(in srgb, var(--primary) 28%, var(--border)); }
}
.show-pane-h { margin: 0 0 14px; }
.show-pane-h h3 { margin: 0 0 6px; font: 600 18px var(--display); color: var(--text); }
.show-pane-h p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.show-duo-head .show-pane-h { margin: 0; padding: 4px 2px 2px; }
.show-row { padding: 0; }
.show-row .show-jobs, .show-band { padding: 18px 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color .25s ease; }
.show-jobs { display: grid; gap: 12px; min-height: 100%; }
.show-jobs .job { margin: 0; padding: 4px; box-shadow: none; background: transparent; border: 0; }
.show-jobs .acts { display: none; } /* en la landing: mirar, no operar */
.show-band { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; align-content: center;
  align-items: center; min-height: 100%; background:
    radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--secondary) 14%, transparent), transparent 55%),
    var(--surface); }
.show-band .ring { flex: none; margin: 0; }
.show-band .ring-sm { width: 72px; height: 72px; }
.show-band .ring-sm div { width: 56px; height: 56px; font-size: 20px; }
.show-band b { display: block; font: 600 18px var(--display); color: var(--text); letter-spacing: -.01em; }
.show-band span { display: block; font-size: 14.5px; line-height: 1.55; color: var(--text-2); margin-top: 8px; max-width: 28ch; }
.land-board {
  grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; overflow: visible;
  margin: 0 !important; padding-inline: 0 !important; scroll-padding-inline: 0; align-items: stretch;
}
/* Contraste vs how-visual: superficie + tinte de etapa + borde superior (como /tablero). */
.land-board .bcol {
  min-height: 0; height: 100%; padding: 10px; border-radius: 14px;
  background: color-mix(in srgb, var(--stage, var(--border-control)) 10%, var(--surface));
  border: 1px solid var(--border);
  border-top: 3px solid var(--stage, var(--border-control));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
}
.land-board .bcol-saved { --stage: var(--border-control); }
.land-board .bcol-applied { --stage: var(--primary); }
.land-board .bcol-interview { --stage: var(--warning); }
.land-board .bcol-offer { --stage: var(--success); }
.land-board .bcol-closed { --stage: var(--text-muted); }
/* Altura fija = 2 tarjetas: la animación no reacomoda la página. */
.land-board .bcol-body { height: 168px; min-height: 168px; max-height: 168px; overflow: hidden; }
.land-bcard { pointer-events: none; }
.land-bcard .bcard-top { grid-template-columns: auto minmax(0, 1fr) auto; }
.land-bcard .bcard-main b { font-size: 13px; }
.land-bcard .bcard-main span { font-size: 11.5px; }
.land-bcard.is-moving { box-shadow: 0 10px 28px rgba(19, 38, 30, .14); position: relative; z-index: 2; will-change: transform; }
.show-caption { margin: 14px 0 0; font-size: 13px; color: var(--text-muted); text-align: right; }
.show-caption a { font-weight: 600; }

.how-story-h { max-width: 48ch; margin: 0 0 20px; }
.how-story-h h2 { font: 500 clamp(30px, 3vw, 44px)/1.08 var(--display); letter-spacing: -.02em; margin: 0 0 10px; }
.how-story-h p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.how-stage { border-radius: 20px; border: 1px solid var(--border); background: var(--surface); padding: 8px; overflow: hidden; }
.how-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.how-tab { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 14px;
  background: transparent; color: var(--text-2); font: 600 13.5px var(--body); text-align: left; cursor: pointer;
  transition: background .2s ease, color .2s ease; }
.how-tab:hover { color: var(--text); background: var(--surface-subtle); }
.how-tab.on { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--text); }
.how-tab-n { flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  font: 600 13px var(--display); background: var(--surface-2); color: var(--primary); }
.how-tab.on .how-tab-n { background: var(--primary); color: var(--on-primary); }
/* Misma celda = sin salto al cambiar de paso. Altura = la del tablero (el más alto). Sin scroll interno. */
.how-panels { display: grid; padding: 4px 6px 2px; }
.how-panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 16px 24px; align-items: stretch; padding: 12px 8px; visibility: hidden; opacity: 0;
  pointer-events: none; z-index: 0; }
.how-panel.on { visibility: visible; opacity: 1; pointer-events: auto; z-index: 1;
  animation: faq-in .28s cubic-bezier(.2,.7,.2,1) both; }
.how-panel:has(.land-board) { grid-template-columns: 1fr; gap: 12px; }
.how-panel:has(.land-board) .how-copy { max-width: 52ch; align-self: start; }
.how-copy { min-width: 0; padding: 2px; align-self: center; }
.how-copy h3 { margin: 0 0 10px; font: 600 22px var(--display); letter-spacing: -.01em; color: var(--text); }
.how-copy > p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 38ch; }
.how-visual { border-radius: 14px; border: 1px solid var(--border); background: var(--surface-subtle);
  padding: 14px; min-height: 0; height: 100%; display: grid; align-content: center; overflow: hidden; }
.how-visual:has(.land-board) {
  padding: 12px; overflow-x: auto; align-content: start; min-height: 0;
  background: var(--bg); /* distinto de .bcol (surface) para que las columnas no se fundan */
}
.how-visual .land-dz { pointer-events: none; margin: 0; background: var(--surface); width: 100%;
  display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center; padding: 28px 16px;
  border-radius: 12px; border: 2px dashed var(--border-control); }
.how-visual .land-dz .btn { pointer-events: none; }
.land-dz-alt { margin: 0; max-width: 32ch; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.how-match { width: 100%; display: grid; gap: 10px; }
.how-match .job { margin: 0; padding: 14px; box-shadow: none; background: var(--surface); border-radius: 12px; }
.how-match .acts, .how-match .collapse { display: none; }
.how-visual .land-board .bcol-body { height: 168px; min-height: 168px; max-height: 168px; }
.how-visual:has(.land-profile) {
  align-content: stretch; align-items: stretch; background: var(--bg); padding: 16px;
}
/* Llena el alto del panel How (compartido con el tablero); sin hueco abajo. */
.land-profile {
  display: grid; grid-template-rows: auto repeat(3, minmax(0, 1fr));
  gap: 14px; padding: 18px 20px; border-radius: 14px; width: 100%; height: 100%;
  min-height: 100%; box-sizing: border-box; align-content: stretch;
  background: var(--surface); border: 1px solid var(--border);
}
.land-profile-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.land-profile-h > div { min-width: 0; display: grid; gap: 4px; }
.land-profile-h b { display: block; font: 600 18px/1.2 var(--display); color: var(--text); margin: 0; }
.land-profile-h .btn { flex: none; align-self: center; pointer-events: none; }
.land-profile .hcard-meta { margin: 0; }
/* Etiquetas de sección: texto muted alineado a la izquierda (no chip del hero). */
.land-profile .eyebrow {
  display: block; width: fit-content; margin: 0; padding: 0; border-radius: 0;
  background: transparent; color: var(--text-muted); font: 600 12px/1.3 var(--body); letter-spacing: .02em;
}
.land-profile-block {
  display: grid; gap: 8px; justify-items: start; align-content: start;
  min-height: 0; padding-top: 2px;
}
.land-profile .pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.land-profile .pills span.on { background: var(--surface-2); color: var(--primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, var(--border)); }
.how-bar { height: 3px; margin: 6px 6px 4px; border-radius: 99px; background: var(--border-subtle); overflow: hidden; }
.how-bar > i { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width .45s cubic-bezier(.2,.7,.2,1); }

.land-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.faq-col h2, .soon-col h2 { font: 500 clamp(28px, 2.6vw, 38px)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 18px; }
.faq-rail { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); background: transparent; border-radius: 0; padding: 0; }
.faq-item[open] { background: transparent; border-color: var(--border); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; font: 600 16px var(--body); color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; width: 11px; height: 11px; border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted); rotate: 45deg; translate: 0 -2px; flex: none;
  transition: rotate .2s ease, border-color .2s ease; }
.faq-item[open] summary::after { rotate: 225deg; translate: 0 2px; border-color: var(--primary); }
.faq-item p { margin: 0 0 18px; padding: 0 4px; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 60ch;
  animation: faq-in .28s cubic-bezier(.2,.7,.2,1) both; }
@keyframes faq-in { from { opacity: 0; translate: 0 -6px; } }

.soon-col { position: sticky; top: 24px; padding: 24px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); border: 1px solid var(--border); }
.soon-label { margin: 0 0 8px; font: 700 12px var(--body); color: var(--primary); letter-spacing: .04em; text-transform: uppercase; }
.soon-lead { margin: 0 0 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.soon-list li { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.soon-list b { font-size: 15px; color: var(--text); }
.soon-list span { font-size: 13.5px; line-height: 1.5; color: var(--text-2); }

.founder-band { display: grid; justify-items: center; text-align: center; }
.founder-quote { max-width: 720px; width: 100%; }
.founder-mark { margin: 0; font: 500 72px/.7 var(--display); color: color-mix(in srgb, var(--secondary) 70%, var(--primary)); opacity: .7; }
.founder-quote blockquote { margin: 0 0 28px; font: 500 clamp(24px, 2.4vw, 34px)/1.25 var(--display); letter-spacing: -.015em; color: var(--text); }
.founder-card { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 14px 16px; align-items: center;
  justify-content: center; text-align: left; max-width: 460px; margin: 0 auto; }
.founder-links { display: grid; gap: 8px; }
.founder-icon { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-control); text-decoration: none; line-height: 0;
  transition: color .15s ease, border-color .15s ease, background .15s ease; }
.founder-icon svg { display: block; }
.founder-links .founder-icon:first-child svg { translate: .5px 0; } /* el trazo del “in” pesa a la izquierda */
.founder-icon:hover { color: var(--primary); border-color: var(--primary); background: var(--surface-2); }
.founder-avatar, .founder-photo { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; object-position: center top; flex: none; }
.founder-avatar { display: grid; place-items: center; font: 600 20px var(--display); color: var(--on-primary); background: var(--primary); }
.founder-photo { border: 1px solid var(--border); background: var(--surface-2); }
.founder-id b { display: block; font-size: 17px; }
.founder-id span { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 3px; line-height: 1.35; }
.founder-note { grid-column: 1 / -1; margin: 2px 0 0; padding-top: 12px; border-top: 1px solid var(--border-subtle);
  font-size: 13px; color: var(--text-muted); text-align: center; }

.land-cta { margin: 40px 0 0; border-radius: 22px; overflow: hidden; position: relative;
  background:
    radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, #7FC8A9 22%, transparent), transparent 55%),
    radial-gradient(70% 60% at 0% 100%, color-mix(in srgb, #E07A5F 16%, transparent), transparent 50%),
    #13261E; color: #E8F2EC; }
:root[data-theme="dark"] .land-cta { border: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .land-cta { border: 1px solid var(--border); } }
.land-cta-in { padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px);
  display: flex; flex-direction: column; align-items: center; text-align: center; }
.land-cta h2 { font: 500 clamp(30px, 3vw, 46px)/1.08 var(--display); margin: 0 0 12px; color: #FFFFFF; }
.land-cta p { margin: 0 auto 24px; max-width: 42ch; color: #C5D9CE; font-size: 17px; line-height: 1.55; }

.land-dock { position: fixed; left: 50%; bottom: 18px; z-index: 35; translate: -50% 12px; display: flex; align-items: center; gap: 8px;
  padding: 8px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--text) 18%, transparent);
  opacity: 0; pointer-events: none; transition: opacity .28s ease, translate .28s cubic-bezier(.2,.7,.2,1); }
.land-dock.is-on { opacity: 1; pointer-events: auto; translate: -50% 0; }
.land-dock[hidden] { display: none !important; }
.land-dock-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 18px;
  border-radius: 999px; background: var(--primary); color: var(--on-primary); font: 700 13.5px var(--body); text-decoration: none; }
.land-dock-cta:hover { background: var(--primary-hover); color: var(--on-primary); }

.ex-stack figcaption a { color: #7FC8A9; font-weight: 600; text-underline-offset: 3px; }
.ex-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 8px 0 4px;
  padding: 14px 18px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.ex-banner p { margin: 0; flex: 1 1 420px; } .ex-banner b { color: var(--text); }
.ex-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(20px, 2.5vw, 32px); align-items: start; }
.ex-side { position: sticky; top: 20px; display: grid; gap: 16px; }
.ex-legend h3 { font: 600 18px var(--display); margin: 0 0 14px; }
.ex-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ex-legend li { display: flex; gap: 12px; align-items: center; }
.ex-legend .ring { margin: 0; flex: none; }
.ex-legend .ring-sm { width: 40px; height: 40px; }
.ex-legend .ring-sm div { width: 30px; height: 30px; font-size: 13px; }
.ex-legend li > div { display: grid; } .ex-legend li > div b { font-size: 14px; }
.ex-legend li > div span, .ex-legend > p { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.ex-legend > p { margin: 14px 0 0; }
.ex-end { padding: 24px; border-radius: 18px; background: #13261E; color: #E8F2EC; }
.ex-end h3 { font: 500 26px var(--display); margin: 0 0 8px; color: #FFFFFF; }
@media (max-width: 900px) { .ex-layout { grid-template-columns: 1fr; } .ex-side { position: static; } }
.ex-end p { margin: 0 0 18px; color: #A9C2B6; max-width: 60ch; line-height: 1.55; }
:root[data-theme="dark"] .ex-end { border: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ex-end { border: 1px solid var(--border); } }

.first-steps { margin-bottom: 18px; }
.fs-h { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 18px; }
.fs-h h3 { font: 600 20px var(--display); margin: 0; }
.fs-bar { flex: 1 1 160px; max-width: 320px; height: 6px; border-radius: 9px; background: var(--border-subtle); overflow: hidden; }
.fs-bar i { display: block; height: 100%; background: var(--primary); border-radius: 9px; transition: width .4s cubic-bezier(.2,.7,.2,1); }
.fs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; }
.fs-list li { display: flex; gap: 12px; align-items: flex-start; }
.fs-list li > div { display: grid; gap: 4px; justify-items: start; }
.fs-list b { font-size: 14.5px; } .fs-list li > div > span { font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.fs-list .btn { margin-top: 6px; }
.fs-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 14px var(--display);
  border: 1.5px solid var(--border-control); color: var(--text-muted); }
.fs-list .done .fs-mark { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-family: var(--body); }
.fs-list .done b { color: var(--text-2); }
.fs-list .next .fs-mark { border-color: var(--primary); color: var(--primary); }
@media (max-width: 900px) { .fs-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fs-list { grid-template-columns: 1fr; } }

.run-notify { text-align: right; }
.run-notify .small:not([hidden]) { display: block; margin: 0 0 10px; }
/* Aviso de fin de búsqueda mientras se usa otra pantalla. */
.run-toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 14px;
  max-width: min(460px, calc(100vw - 32px)); padding: 14px 14px 14px 18px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(19, 38, 30, .2); animation: toast-in .35s cubic-bezier(.2, .8, .2, 1) both;
  transition: bottom .22s ease; }
.run-toast > div { min-width: 0; flex: 1; }
.run-toast b { display: block; font-size: 14.5px; }
.run-toast span:not(.run-toast-dot) { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.run-toast-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent); }
.run-toast-dot.bad { background: var(--warning); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 20%, transparent); }
.run-toast .btn { white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 520px) { .run-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .run-toast { animation: none; } }
/* La flecha queda en la esquina; el aviso sube para no taparla ni a Ver ni a la X. */
body:has(.to-top.show) .run-toast { bottom: calc(24px + 48px + 12px); }
@media (pointer: coarse) {
  body:has(.to-top.show) .run-toast { bottom: calc(24px + 52px + 12px); }
}
@media (max-width: 520px) {
  body:has(.to-top.show) .run-toast { bottom: calc(16px + 44px + 12px); }
}

/* Movimiento de la landing: entrada corta + flotación; parallax y dock van por JS. */
@property --v { syntax: '<integer>'; inherits: true; initial-value: 0; }
.hero-copy > * { animation: rise .75s cubic-bezier(.2,.7,.2,1) both; }
/* Tras el primer swap el hero y las tarjetas ya se vieron: repetir card-in/ring-fill las apaga y las vuelve a contar. */
html[data-booted] .hero-copy > *,
html[data-booted] .ex .ring, html[data-booted] .ex-why, html[data-booted] .ex-stack figcaption { animation: none; }
html[data-booted] .h1 em { animation: none; background-size: 100% 3px; }
html[data-booted] .ex { animation: bob 7s ease-in-out infinite; animation-delay: 0s; }
html[data-booted] .show-pane[data-reveal], html[data-booted] .show-duo-head[data-reveal], html[data-booted] .show-row[data-reveal],
html[data-booted] .how-stage, html[data-booted] .faq-col, html[data-booted] .soon-col, html[data-booted] .founder-quote, html[data-booted] .land-cta {
  opacity: 1; translate: none; }
.hero-copy > :nth-child(2) { animation-delay: .07s; } .hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .2s; } .hero-copy > :nth-child(5) { animation-delay: .26s; }
.h1 em { background: linear-gradient(#7FC8A9, #7FC8A9) 0 94% / 0 3px no-repeat; animation: underline .9s .65s cubic-bezier(.2,.7,.2,1) forwards; }
.ex { animation: card-in .85s cubic-bezier(.2,.7,.2,1) both, bob 7s ease-in-out infinite; }
.ex-1 { animation-delay: .22s, 1.5s; } .ex-2 { animation-delay: .38s, 2.3s; } .ex-3 { animation-delay: .52s, 3s; }
.ex:hover { z-index: 4; box-shadow: 0 34px 70px -22px rgba(0, 0, 0, .65); }
.ex .ring { animation: ring-fill 1.2s .65s cubic-bezier(.2,.7,.2,1) both; }
.ex-2 .ring { animation-delay: .8s; } .ex-3 .ring { animation-delay: .95s; }
.ex .ring > div::after, .bento-score .ring > div::after { counter-reset: v var(--v); content: counter(v); }
.ex-why { animation: rise .6s 1.2s cubic-bezier(.2,.7,.2,1) both; }
.ex-stack figcaption { animation: fade-plain .6s 1.35s both; }
.show-pane[data-reveal], .show-duo-head[data-reveal], .show-row[data-reveal], .how-stage, .faq-col, .soon-col, .founder-quote, .land-cta { opacity: 0; translate: 0 22px;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), translate .55s cubic-bezier(.2,.7,.2,1); }
.show-pane[data-reveal].in, .show-duo-head[data-reveal].in, .show-row[data-reveal].in, .how-stage.in, .faq-col.in, .soon-col.in, .founder-quote.in, .land-cta.in { opacity: 1; translate: 0 0; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes card-in { from { opacity: 0; translate: 0 40px; } }
@keyframes bob { 50% { translate: 0 -7px; } }
@keyframes ring-fill { from { --v: 0; } }
@keyframes underline { to { background-size: 100% 3px; } }
@keyframes fade-plain { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .h1 em, .ex, .ex .ring, .ex-why, .ex-stack figcaption, .marquee-track { animation: none !important; }
  .h1 em { background-size: 100% 3px; }
  .show-pane[data-reveal], .show-duo-head[data-reveal], .show-row[data-reveal], .how-stage, .faq-col, .soon-col, .founder-quote, .land-cta { opacity: 1; translate: none; transition: none; }
  .land-dock, .land-progress, .land-glow { display: none; }
  .wrap:has([data-land]) .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (pointer: coarse) {
  .land-glow { display: none; }
}
.footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--border-subtle); font-size: 12.5px; color: var(--text-muted);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer span:first-child { flex: 1; min-width: 0; line-height: 1.5; }

/* ── Resultados ── */
.rhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 12px 0 18px; }
.rhead h2 { font: 600 34px var(--display); letter-spacing: -.02em; margin: 0; }
.rhead p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.results { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: clamp(20px, 2.5vw, 32px); align-items: start; }
/* En escritorio los filtros siempre están a la vista; el botón y el plegado son solo para pantallas chicas. */
.flt-toggle { display: none; }
.results > .flt-panel { align-self: stretch; grid-template-rows: 1fr; visibility: visible; opacity: 1; }
.results > .flt-panel > div { overflow: visible; }

.filters { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 22px; position: sticky; top: 20px; }
.filters h4 { font: 600 13px var(--body); color: var(--text-muted); margin: 18px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.filters .chips { display: flex; flex-wrap: wrap; gap: 0 6px; }
.filters .chip { position: relative; cursor: pointer; }
.filters .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filters .chip span { display: inline-block; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-control);
  color: var(--text-2); margin-bottom: 8px; background: var(--surface); }
.filters .chip:hover span { border-color: var(--primary); }
.filters .chip input:checked + span { background: var(--surface-2); border-color: var(--surface-2); color: var(--primary); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 9px; margin: 10px 0 8px; cursor: pointer;
  background: linear-gradient(to right, var(--primary) calc(var(--v) * 1%), var(--border-control) 0); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }

.job { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 22px 24px; margin-bottom: 14px;
  display: grid; grid-template-columns: 52px 1fr 108px; gap: 18px; }
.job:hover { border-color: var(--border); box-shadow: 0 10px 30px rgba(19, 38, 30, .07); }
.avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 600 20px var(--display); color: #FFFFFF; }
.job h3 { font: 700 19px var(--body); margin: 0 0 4px; letter-spacing: -.01em; }
.meta { font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; }
.pills span { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-subtle);
  color: var(--text-2); margin: 0 6px 6px 0; }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-top: 8px; font-size: 13.5px; line-height: 1.55; }
.why.one { grid-template-columns: 1fr; }
.why .ok { color: var(--success); } .why .no { color: var(--warning); } .why .na { color: var(--text-muted); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.acts .btn { padding: 10px 18px; font-size: 13.5px; } .acts .btn-g { padding: 10px 12px; }
/* El botón reserva el texto más largo de los dos estados: activarlo no agranda la tarjeta. */
.btn-hold { display: inline-grid; place-items: center; }
.btn-hold > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn-hold > span[aria-hidden="true"] { visibility: hidden; }
.caret { display: inline-block; transition: transform .15s ease; } [aria-expanded="true"] .caret { transform: rotate(180deg); }
.letter-wait { display: none; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.letter-wait.htmx-request, .htmx-request > .letter-wait { display: flex; }
.letter { margin-top: 12px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--surface-subtle); overflow: hidden;
  animation: fade-in .2s ease both; }
.letter-h { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: 13px; min-height: 44px; }
.letter:has(.collapse.open) .letter-h { border-bottom: 1px solid var(--border-subtle); }
.letter-h .sp { flex: 1; }
.letter-acts { display: inline-flex; align-items: center; gap: 2px; }
.letter-act { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; min-width: 32px;
  padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: 600 12.5px var(--body);
  cursor: pointer; }
.letter-act:hover, .letter-act:focus-visible { color: var(--primary); background: var(--surface-2); }
.letter-act:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.letter-act.is-done { color: var(--success); }
.letter-act .i-check[hidden], .letter-act.is-done .i-copy { display: none; }
.letter-act.is-done .i-check { display: block; }
.letter-tog { padding-inline: 10px; }
.letter pre { margin: 0; padding: 14px; font: 500 13.5px/1.6 var(--body); color: var(--text); white-space: pre-wrap; word-break: break-word;
  max-height: 340px; overflow-y: auto; }
.note-inline { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--surface-subtle); color: var(--text-2); font-size: 13.5px; }

.factors { margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: var(--surface-subtle); }
.vote { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-subtle); font-size: 13.5px; }
.vote-q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-2); }
.vote-q > span { margin-right: auto; font-weight: 600; }
.vote-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-control);
  background: var(--surface); color: var(--text-2); font: 600 13px var(--body); cursor: pointer; }
.vote-btn:hover { border-color: var(--primary); color: var(--primary); }
.vote-btn[aria-pressed="true"] { background: var(--surface-2); border-color: var(--primary); color: var(--primary); }
.vote-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.vote-why, .fb-kinds { border: 0; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vote-why legend { font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; padding: 0; }
.vote-why .chip, .fb-kinds .chip { position: relative; cursor: pointer; }
.vote-why .chip input, .fb-kinds .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vote-why .chip span, .fb-kinds .chip span { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-control); color: var(--text-2); background: var(--surface); }
.vote-why .chip:hover span, .fb-kinds .chip:hover span { border-color: var(--primary); }
.vote-why .chip input:checked + span, .fb-kinds .chip input:checked + span { background: var(--surface-2); border-color: var(--primary); color: var(--primary); }
.vote-why .chip input:focus-visible + span, .fb-kinds .chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.vote-ok { margin: 10px 0 0; color: var(--success); font-weight: 600; font-size: 13px; animation: fade-in .2s ease both; }

/* ── Diálogo (comentarios) ── */
.dlg { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--border-subtle);
  border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(19, 38, 30, .25); }
.dlg::backdrop { background: rgba(19, 38, 30, .45); }
.dlg[open] { animation: fade-in .18s ease both; }
.dlg-in { padding: 22px 24px; }
.dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg-h h3 { margin: 0; font: 600 22px var(--display); letter-spacing: -.01em; }
.dlg-sub { margin: 6px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.dlg textarea { width: 100%; margin-top: 14px; resize: vertical; min-height: 120px; font: 500 14.5px/1.5 var(--body); }
.dlg-note { margin: 10px 0 0; font-size: 12.5px; color: var(--text-muted); }
.dlg-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dlg .field { margin: 14px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* La lista no puede moverse cuando un filtro la vacía: la barra de desplazamiento siempre ocupa su lugar. */
html { scrollbar-gutter: stable; }
.results > div:last-child { min-height: 60vh; }
.empty { margin: 0; padding: 28px 22px; border: 1px dashed var(--border-control); border-radius: 14px;
  background: var(--surface); color: var(--text-2); text-align: center; }
.empty .btn { margin-top: 14px; }
.factor + .factor { margin-top: 12px; }
.factor-h { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; } .factor-h span { color: var(--text-muted); }
.bar { height: 6px; border-radius: 9px; background: var(--border-subtle); margin: 6px 0; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 9px; }
.ev { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.ai-note { margin: 0 0 12px; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; } .factor ~ .ai-note { margin: 14px 0 0; }

.score { text-align: center; }
.ring { --c: var(--primary); width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--surface-subtle) 0); }
.ring div { width: 70px; height: 70px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font: 600 24px var(--display); }
.ring-mid { --c: var(--score-mid); } .ring-low { --c: var(--accent); } .ring-na { --c: var(--border); }
.score small { display: block; font-size: 12px; font-weight: 700; }
.aff-high { color: var(--primary); } .aff-mid, .aff-low { color: var(--warning); } .aff-na { color: var(--text-muted); }
.empty { padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-subtle); color: var(--text-2); font-size: 14px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 14px; }
.export { margin-top: 10px; }
.htmx-request #job-list, #job-list.htmx-request { opacity: .6; transition: opacity .15s ease; }

/* ── Asistente (docs/design/mockup-wizard.html) ── */
.wrap:has(.wz) { padding-bottom: 12px; min-height: 100vh; display: flex; flex-direction: column; }
.wrap:has(.wz) .page { flex: 1; display: grid; align-content: start; padding: clamp(8px, 5vh, 56px) 0 24px; }
.wz { display: grid; grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); gap: clamp(22px, 2.5vw, 36px); align-items: start;
  min-height: min(560px, calc(100vh - 220px)); }
.rail { position: sticky; top: 20px; }
.rail h2 { font: 600 30px/1.05 var(--display); letter-spacing: -.02em; margin: 0 0 8px; }
.rail > p { font-size: 14px; line-height: 1.5; color: var(--text-2); margin: 0 0 22px; }
.wz-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.wz-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--border-subtle); }
.wz-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; }
.wz-steps li > div { min-width: 0; }
.dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font: 600 15px var(--display); background: var(--surface);
  border: 1.5px solid var(--border); color: var(--text-muted); position: relative; text-decoration: none; }
a.dot:hover { border-color: var(--primary); }
.wz-steps b { display: block; font-size: 14px; font-weight: 700; color: var(--text-muted); margin-top: 2px; }
.wz-steps small { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-steps .done .dot { background: var(--surface-2); border-color: var(--surface-2); color: var(--primary); }
.wz-steps .done b, .wz-steps .done small { color: var(--text-2); }
.wz-steps .on .dot { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.wz-steps .on b { color: var(--text); }
.privacy { margin-top: 22px; display: flex; gap: 10px; font-size: 12.5px; line-height: 1.55; color: var(--text-muted); padding: 0 2px; }
.privacy svg { flex: none; margin-top: 2px; color: var(--primary); }

.card { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 22px 26px; display: block; }
.card-h { margin-bottom: 14px; }
.card .eyebrow { display: inline-flex; font: 600 13px var(--body); color: var(--text-muted);
  background: none; padding: 0; margin-bottom: 8px; }
.card h3 { font: 600 26px/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.card-h p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); max-width: 620px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.foot .r { display: flex; gap: 12px; align-items: center; }
.next-hint { font-size: 12.5px; color: var(--text-muted); }
/* El borde no se suma al apretar: un botón desactivado no agranda la fila. */
.btn[disabled], .btn[disabled]:hover { background: var(--surface-2); color: var(--text-2);
  border-color: var(--border-control); box-shadow: inset 0 0 0 1px var(--border-control); cursor: not-allowed; }
.btn-o[disabled], .btn-o[disabled]:hover { box-shadow: none; }
.btn.ready { animation: nudge 1.1s ease 2; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); }
  60% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--primary) 0%, transparent); } }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.link-btn, .btn-link { background: none; border: 0; padding: 0; font: 600 13.5px var(--body); color: var(--primary); cursor: pointer;
  text-underline-offset: 3px; }
.link-btn:hover, .btn-link:hover { text-decoration: underline; }
.link-btn:focus-visible, .btn-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.btn-link { font-size: 12.5px; color: var(--text-2); } .btn-link:hover { color: var(--primary); }
.alert { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  color: var(--text); border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; }
.alert p { margin: 0; } .alert p + p { margin-top: 4px; }
.field-err { color: var(--danger); font-size: 13px; font-weight: 600; margin: 6px 0 0; display: flex; align-items: center; gap: 6px; }
.field-err::before { content: "!"; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #FFFFFF; font-size: 11px;
  display: grid; place-items: center; flex: none; }
.input.has-error, .field:has(> .field-err:not([hidden])) .input, .field:has(.field-err:not([hidden])) > .input-wrap .input {
  border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 12%, transparent); }

/* Campos */
.field { margin-bottom: 16px; min-width: 0; }
.field > label, .flabel { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field > label > span:not(.tt), .flabel > span:not(.tt) { margin-left: auto; font-weight: 500; color: var(--text-muted); font-size: 12.5px; }
.input { width: 100%; min-height: 48px; font: 500 14.5px var(--body); color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border-control); border-radius: 14px; padding: 12px 14px; outline: none; }
.input::placeholder { color: var(--text-muted); }
.input:focus, .input.now { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.5; padding-top: 10px; }
select.input { appearance: auto; }
.input-wrap { position: relative; } .input-wrap .input { padding-right: 90px; }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 48px; }
.pass-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-muted); cursor: pointer; }
.pass-eye:hover, .pass-eye:focus-visible { color: var(--primary); background: var(--surface-2); outline: none; }
.pass-eye .i-on { display: none; }
.pass-eye.is-on .i-off { display: none; }
.pass-eye.is-on .i-on { display: block; }
.pass-wrap .input::-ms-reveal, .pass-wrap .input::-ms-clear { display: none; }
.in-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 12.5px var(--body); color: var(--primary);
  background: var(--surface-2); border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid3 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 0 18px; }
.keyrow { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0 18px; }
.ok-msg, .warn-msg, .err-msg { font-size: 13px; font-weight: 600; margin-top: 8px; }
.ok-msg { color: var(--success); } .warn-msg { color: var(--warning); } .err-msg { color: var(--danger); }
.help { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Tooltip (ⓘ): hover, foco con teclado o toque */
.tt { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--text-muted);
  cursor: pointer; flex: none; text-transform: none; letter-spacing: 0; }
.tt:hover, .tt:focus-visible { color: var(--primary); outline: none; background: var(--surface-2); }
.tt-b { display: block; opacity: 0; visibility: hidden; pointer-events: none; position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translate(calc(-50% + var(--tt-shift, 0px)), 4px); width: max-content; max-width: 260px;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  background: #13261E; color: #E8F2EC; font: 500 12.5px/1.45 var(--body); letter-spacing: 0; text-transform: none; text-align: left;
  padding: 9px 12px; border-radius: 12px; z-index: 20; box-shadow: 0 8px 24px rgba(19, 38, 30, .18); white-space: normal; }
.tt-b::after { content: ""; position: absolute; top: 100%; left: calc(50% - var(--tt-shift, 0px)); margin-left: -6px; border: 6px solid transparent; border-top-color: #13261E; }
.tt-b.pinned { position: fixed; bottom: auto; }
.tt-b.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #13261E; }
:root[data-theme="dark"] .tt-b { background: #E8F2EC; color: #13261E; } :root[data-theme="dark"] .tt-b::after { border-top-color: #E8F2EC; }
:root[data-theme="dark"] .tt-b.below::after { border-top-color: transparent; border-bottom-color: #E8F2EC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tt-b { background: #E8F2EC; color: #13261E; }
  :root:not([data-theme="light"]) .tt-b::after { border-top-color: #E8F2EC; }
  :root:not([data-theme="light"]) .tt-b.below::after { border-top-color: transparent; border-bottom-color: #E8F2EC; } }
.tt:hover .tt-b, .tt:focus .tt-b, .card .chip.skill:hover .tt-b, .card .chip.skill:focus-within .tt-b {
  opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--tt-shift, 0px)), 0); transition-delay: .1s, .1s, 0s; }

/* Chips editables del asistente (las de filtros de resultados usan .chip span) */
.card .chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border-control); color: var(--text-2); background: var(--surface); cursor: pointer; user-select: none; position: relative; }
.card .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.card .chip:has(input:checked) { background: var(--surface-2); border-color: var(--surface-2); color: var(--primary); }
.card .chip:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.card .chip small { font-size: 10.5px; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; }
.card .chip .lvl { font-weight: 500; color: var(--text-muted); }

/* Listas de etiquetas (roles, idiomas, habilidades, términos): estar en la lista = estar elegido.
   La × la quita de verdad; "+ Agregar" abre un campo en el lugar. */
[data-chip-list] .chip { padding: 6px 6px 6px 12px; cursor: default; background: var(--surface-2); border-color: var(--surface-2); color: var(--primary); }
[data-chip-list] .chip.flag { border-style: dashed; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text-2); }
[data-chip-list] .chip .x { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent;
  color: inherit; font-size: 16px; line-height: 1; cursor: pointer; opacity: .6; padding: 0; }
[data-chip-list] .chip .x:hover { opacity: 1; background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
[data-chip-list] .chip .x:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; opacity: 1; }
.chip-add { font: 600 13px var(--body); color: var(--primary); border: 1px dashed var(--border-control); border-radius: 999px; padding: 7px 14px;
  background: transparent; cursor: pointer; }
.chip-add:hover { border-color: var(--primary); background: var(--surface-2); }
.chip-add-field { font: 500 13px var(--body); color: var(--text); background: var(--surface); border: 1.5px solid var(--primary); border-radius: 999px;
  padding: 6px 14px; width: 190px; outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.dot-c { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.attn { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 14px; transition: box-shadow .3s; }

/* Paso 1 */
.dz { border: 2px dashed var(--border-control); border-radius: 14px; padding: 22px 24px; text-align: center; background: var(--bg); transition: border-color .15s; }
.dz:hover, .dz.over, .drop.over { border-color: var(--primary); }
.dz .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 10px; color: var(--primary); }
.dz h4 { font: 600 20px var(--display); margin: 0 0 6px; }
.dz p { margin: 0 0 16px; font-size: 14px; color: var(--text-2); }
.file { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--primary); background: var(--surface); border-radius: 18px; padding: 14px 16px; }
.file .fi { flex: none; width: 44px; height: 52px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font: 800 11px var(--body); color: var(--primary); }
.file .meta { flex: 1; min-width: 0; margin: 0; } .file .meta b { display: block; font-size: 14.5px; overflow-wrap: anywhere; }
.file .meta span { font-size: 12.5px; color: var(--text-muted); }
.file .fi { position: relative; }
.file .check { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary);
  color: var(--on-primary); display: grid; place-items: center; font-size: 11px; font-weight: 800; border: 2px solid var(--surface); }
.drop label.btn { cursor: pointer; }
form.alt { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }

/* Paso 2 */
.why-ai { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.why-ai div { background: var(--bg); border-radius: 16px; padding: 14px 16px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.why-ai b { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.opt { border: 1px solid var(--border-subtle); border-radius: 18px; padding: 14px 18px; }
.opt-h { display: flex; align-items: center; gap: 6px; } .opt-h label { font-size: 14.5px; cursor: pointer; } .opt-h .sp { flex: 1; }
.opt-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--text-muted); position: relative; flex: none; cursor: pointer; margin: 0; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: left .15s; }
.switch:checked { background: var(--primary); } .switch:checked::after { left: 21px; }
.switch:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mail-opt { display: flex; align-items: center; gap: 16px; margin: 2px 0 10px; padding: 6px 12px; cursor: pointer; }
.mail-opt > span { min-width: 0; } .mail-opt b { font-size: 14px; } .mail-opt .switch { margin-left: auto; }

/* Paso 3 */
.review { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font: 600 13px var(--body); color: var(--text); cursor: pointer;
  background: none; border: 0; padding: 0; text-align: left; }
.review u { color: var(--primary); text-decoration: none; white-space: nowrap; }

/* Pantalla de búsqueda: fases, barra y estado portal por portal (docs/design/mockup-wizard.html) */
.run { width: 100%; max-width: none; margin: 0; }
.run .card { padding: 34px; }
.run h3 { font-size: 30px; }
.bigbar { height: 10px; border-radius: 9px; background: var(--surface-2); overflow: hidden; margin: 22px 0 10px; }
.bigbar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.run-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--text-muted); }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
.ph { border-radius: 16px; padding: 14px; background: var(--bg); font-size: 13px; color: var(--text-muted);
  transition: background-color .2s ease, border-color .2s ease; }
.ph b { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 2px; }
.ph.done { background: var(--surface-2); } .ph.done b { color: var(--primary); }
.ph.on { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--primary); } .ph.on b { color: var(--text); }
.log { border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.log div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px 14px; font-size: 13.5px; border-top: 1px solid var(--border-subtle); }
.log div:nth-child(odd) { border-right: 1px solid var(--border-subtle); }
.log div:first-child, .log div:nth-child(2) { border-top: 0; }
.log div.pending { opacity: .55; }
.log span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log span:last-child { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; }
.log .s-ok { color: var(--success); font-weight: 800; }
.log .s-err { color: var(--warning); font-weight: 800; }
.log .s-run { color: var(--primary); display: inline-grid; place-items: center; }
.run .foot .hint { font-size: 12.5px; color: var(--text-muted); max-width: 46ch; }
.run .foot form { display: contents; }

/* Paso 4 */
.where-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; }
.where-grid > .field:last-child { grid-column: 1 / -1; }
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.group { border: 1px solid var(--border-subtle); border-radius: 16px; padding: 12px 14px; }
.group-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cb-label { display: flex; gap: 10px; align-items: center; flex: 1; cursor: pointer; font-size: 14px; }
.cb-label input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: none; margin: 0; cursor: pointer;
  border: 1.5px solid var(--border-control); border-radius: 5px; background: var(--surface); display: grid; place-items: center; }
.cb-label input:checked, .cb-label input:indeterminate { background: var(--primary); border-color: var(--primary); }
.cb-label input:checked::after { content: "✓"; font: 800 12px/1 var(--body); color: var(--on-primary); }
.cb-label input:indeterminate::after { content: ""; width: 9px; height: 2px; border-radius: 2px; background: var(--on-primary); }
.cb-label input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.group .count { font-size: 12.5px; color: var(--text-muted); }
.group .chips { margin-top: 10px; }
.group .chip { padding: 5px 10px; font-size: 12.5px; }
.beta { font: 700 10.5px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 16%, transparent); padding: 3px 7px; border-radius: 999px; }
.summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: #13261E; color: #E8F2EC;
  border-radius: 14px; padding: 14px 12px; margin-top: 14px; }
:root[data-theme="dark"] .summary { border: 1px solid var(--border); background: #0B1411; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .summary { border: 1px solid var(--border); background: #0B1411; } }
.sum-facts b { display: block; font-size: 15px; line-height: 1.3; }
.sum-facts span { display: block; margin-top: 3px; font-size: 13px; color: #A9C2B6; }
.sum-r { display: flex; align-items: center; gap: 18px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .14); }
.summary .est { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8FA79B; text-align: right; }
.summary .est b { display: block; margin-top: 2px; color: #FFFFFF; font: 600 20px var(--display); letter-spacing: 0; text-transform: none; }
.summary .btn { background: #7FC8A9; color: #13261E; } .summary .btn:hover { background: #9AD5BC; }
.summary-back { margin-top: 10px; }

/* ── Estados del asistente ── */
.alt-row { font-size: 13.5px; color: var(--text-muted); margin: 12px 0 0; text-align: center; }
.dz-busy { display: none; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--text-2); min-height: 92px; }
.dz.busy .dz-idle { display: none; } .dz.busy .dz-busy { display: flex; } .dz.busy { border-color: var(--primary); border-style: solid; }
.drop.busy { border-color: var(--primary); border-style: solid; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface-2); border-top-color: var(--primary); animation: spin .8s linear infinite; flex: none; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.checking { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.checking.htmx-request { display: flex; animation: fade-plain .2s ease .25s both; }
.checking.htmx-request + #key-status { display: none; }
/* Misma altura y alineación que el campo de al lado (el selector de modelo). */
.key-saved { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--primary); border-radius: 14px;
  padding: 0 14px; min-height: 48px; background: var(--surface); }
.key-saved .check { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center;
  font-size: 13px; font-weight: 800; flex: none; }
.key-saved.unverified { border-color: var(--warning); } .key-saved.unverified .check { background: var(--warning); color: #FFFFFF; }
.key-saved.bad { border-color: var(--danger); } .key-saved.bad .check { background: var(--danger); color: #FFFFFF; }
.key-saved .meta { flex: 1; min-width: 0; margin: 0; } .key-saved b { display: block; font-size: 13.5px; }
.key-saved .meta span { font: 500 12.5px var(--body); color: var(--text-muted); letter-spacing: .02em; }
.notice { animation: fade-in .3s ease both; }
.alert { animation: fade-in .25s ease both; }

/* Filas "dato · valor · Editar": se lee todo de un vistazo y se abre solo lo que se quiere cambiar. */
.ai-note-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; line-height: 1.5; color: var(--text-2);
  background: var(--surface-2); border-radius: 14px; padding: 9px 12px; margin-bottom: 8px; }
.ai-note-line .ia { font: 800 10.5px var(--body); background: var(--primary); color: var(--on-primary); border-radius: 6px; padding: 3px 6px; flex: none; }
.rows { border-top: 1px solid var(--border-subtle); }
.rows .row:last-child { border-bottom: 0; }
.row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 6px 12px;
  border-bottom: 1px solid var(--border-subtle); border-radius: 14px; transition: background-color .18s ease; }
.row:hover { background: var(--surface-subtle); }
.row.open { background: var(--surface-subtle); }
.rl { grid-column: 1; font-size: 13.5px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.rl .opt { font: 500 11.5px var(--body); color: var(--text-muted); background: none; border: 0; padding: 0; }
.rv { grid-row: 1; grid-column: 2; font-size: 14px; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.open .rv { display: none; }
.row > .link-btn { grid-column: 3; justify-self: end; }
/* Plegables: animan en una sola etapa (filas de grilla), sin medir alturas desde JavaScript. */
.collapse { display: grid; grid-template-rows: 0fr; visibility: hidden; opacity: 0;
  transition: grid-template-rows .26s cubic-bezier(.2, .7, .2, 1), opacity .18s ease, visibility 0s linear .26s; }
.collapse > * { overflow: hidden; min-height: 0; }
.collapse.open { grid-template-rows: 1fr; visibility: visible; opacity: 1; transition-delay: 0s; }
/* El editor ocupa el lugar del valor: a la altura de la etiqueta, sin franja vacía debajo. */
.re { grid-row: 1; grid-column: 2; }
.re.wide { grid-row: 2; grid-column: 1 / -1; padding-top: 4px; }
.re-in { padding: 2px 0 6px; }
/* Con la fila abierta, "Listo" es un botón con borde y queda alineado con el contenido que se edita. */
.row.open { align-items: start; padding: 10px 12px; margin: 6px 0; box-shadow: inset 0 0 0 1px var(--border-subtle); }
.row.open > .link-btn { align-self: start; border: 1.5px solid var(--primary); border-radius: 999px; padding: 5px 14px; min-height: 32px;
  background: var(--surface); text-decoration: none; white-space: nowrap; }
.row.open > .link-btn:hover { background: var(--surface-2); text-decoration: none; }
.re .field:last-child, .re .grid2 .field, .re .grid3 .field { margin-bottom: 0; }
.re .help { margin-top: 6px; margin-bottom: 0; }
.input.narrow { max-width: 150px; }
.rl-range { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--text-2); }   /* el valor, pegado a su etiqueta */
.rl-range label { display: flex; align-items: center; gap: 4px; } .rl-range b { color: var(--text); font-size: 15px; }

/* ── Cuenta: ingreso, mi cuenta, historial ── */
.auth { max-width: 440px; margin: clamp(8px, 6vh, 64px) auto 0; }
.auth .card { background: transparent; border: 0; border-radius: 0; padding: 0; }
.auth .card-h { margin-bottom: 20px; padding-bottom: 0; }
.auth .notice { margin: 0 0 12px; }
.auth .alert { margin-bottom: 14px; }
.auth-form .field { margin-bottom: 14px; }
.auth-form .help { margin: 6px 0 0; }
.auth-submit { width: 100%; margin-top: 4px; }
/* Tres marcas, una fila, el ancho del formulario. El hueco entre la clave y Entrar. */
.oauth-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 2px 0 12px; }
.oauth-row a { display: flex; align-items: center; justify-content: center; min-height: 48px;
  border: 1.5px solid var(--border-control); border-radius: 12px; background: var(--surface); color: var(--text); }
.oauth-row a:hover { border-color: var(--primary); }
.oauth-row svg { width: 22px; height: 22px; display: block; }
.auth-alt { margin: 16px 0 0; font-size: 14px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.auth-alt a:not(.btn), .field > label a, .flabel a { color: var(--primary); font-weight: 600; }

/* Política de privacidad */
.legal { padding: clamp(4px, 1vw, 12px) 0 8px; margin-top: 0; }
.legal-head { margin-bottom: 28px; padding-bottom: 0; border: 0; }
.legal h1 { font: 600 clamp(28px, 3.2vw, 42px) var(--display); letter-spacing: -.02em; margin: 0 0 10px; }
.legal-updated { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; }
.legal-head > p:last-child { margin: 0; color: var(--text-2); line-height: 1.6; font-size: 15px; max-width: 72ch; }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 28px clamp(24px, 3vw, 56px); }
.legal h2 { font: 700 18px var(--display); margin: 0 0 10px; letter-spacing: -.01em; }
.legal section p { margin: 0; color: var(--text-2); line-height: 1.65; font-size: 15px; max-width: 72ch; }
.auth-note { margin: 14px 0 0; line-height: 1.5; }

.acc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; align-items: start; }
.acc .card { height: 100%; }
.acc .bigbar { margin: 4px 0 10px; }
.acc-line { margin: 0 0 8px; font-size: 14.5px; color: var(--text); }
.acc .help { margin: 6px 0 0; }
.acc .file { margin-bottom: 4px; }
/* Inicio con sesión: tú (perfil + CV) en dos tercios, la última búsqueda al lado y la cuenta en una franja. */
.home-head { align-items: center; }
.home-head p { max-width: 640px; line-height: 1.5; }
.home-cta { flex: none; padding: 14px 30px; font-size: 15px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(360px, 1fr); gap: 18px; }
.home-grid > .card { display: flex; flex-direction: column; min-width: 0; }
.home-grid .card-h { margin-bottom: 12px; }
.card-foot { margin-top: auto; padding-top: 16px; }
.home-me-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 24px; align-items: start; }
.home-role { font: 600 22px var(--display); letter-spacing: -.01em; margin: 0 0 4px; }
.home-pills { margin: 10px 0 0; }
.home-grid > .home-account { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; scroll-margin-top: 16px; }
.home-account-who { display: grid; gap: 4px; min-width: 0; }
.home-account-who .eyebrow { justify-self: start; margin-bottom: 4px; }
.home-account-who b { font-size: 16px; overflow-wrap: anywhere; }
.home-account > .acts { margin: 0 0 0 auto; }
.home-account .acts form { display: flex; }
.home-del { color: var(--danger); }
.cv-swap { display: flex; align-items: center; gap: 10px; }
.cv-swap label.btn { cursor: pointer; }
.cv-swap-busy { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.cv-swap.busy label.btn { display: none; } .cv-swap.busy .cv-swap-busy { display: inline-flex; }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 85%, var(--text)); }
.rhead form { display: flex; }

/* Historial: tarjetas en grilla (usa todo el ancho). */
.tab-n { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-subtle); color: var(--text-2); }
.hcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: stretch; }
.hcards > .empty { grid-column: 1 / -1; }
.hcard { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 20px 22px; animation: fade-in .2s ease both; }
.hcard:hover { border-color: var(--border); }
.hcard-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hcard-h b { font-size: 15px; }
.hcard .pills span { margin-bottom: 0; }
.hcard .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hcard-meta { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
/* Una fila: el mínimo es el rótulo visible. El de "preparando…" va encima y no ensancha,
   así no empuja el salto de línea. Si los dos no entran, cada uno pasa a su propio renglón. */
.hcard .acts { margin-top: auto; padding-top: 4px; align-items: stretch; }
.hcard .acts > .btn,
.hcard .acts form { flex: 1 1 0; min-width: min(100%, max-content); max-width: 100%; }
.hcard .acts form { display: flex; }
.hcard .acts .btn { white-space: nowrap; }
.hcard .acts form .btn { flex: 1 1 auto; width: 100%; min-width: min(100%, max-content); max-width: 100%; }
.hcard .acts .btn-hold { position: relative; }
.hcard .acts .btn-hold > span:last-child { position: absolute; inset: 0; overflow: hidden; text-overflow: ellipsis; }
.hcard-top { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.hcard-main { min-width: 0; }
.hcard-main b { display: block; font-size: 15px; line-height: 1.3; }
.hcard-main b a { color: var(--text); text-decoration: none; } .hcard-main b a:hover { color: var(--primary); text-decoration: underline; }
.hcard-main span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcard-why { margin: 0; font-size: 13.5px; color: var(--success); line-height: 1.45; }
.avatar-sm { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }

/* Tablero: escritorio = 5 columnas al ancho; ≤1100px = carril tipo Trello (lista + peek, scroll interno). */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start;
  width: 100%; max-width: 100%; padding-bottom: 8px; }
.bcol { display: flex; flex-direction: column; gap: 10px; min-height: 160px; min-width: 0; padding: 12px; border-radius: 14px;
  background: var(--surface-subtle); border-top: 3px solid var(--stage, var(--border)); }
.bcol-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; flex: 1; }
.bcol-saved { --stage: var(--border-control); }
.bcol-applied { --stage: var(--primary); } .bcol-interview { --stage: var(--warning); }
.bcol-offer { --stage: var(--success); } .bcol-closed { --stage: var(--text-muted); }
.bcol-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 4px 2px;
  font: 700 14px var(--body); color: var(--text); flex: none; }
.bcol-h .tab-n { background: var(--surface); }
.bcol-empty { margin: 0; padding: 14px 10px; border: 1px dashed var(--border-control); border-radius: 12px;
  font-size: 13px; line-height: 1.45; color: var(--text-muted); text-align: center; }
.bcol:has(.bcard) .bcol-empty { display: none; }
.bcol.is-over { background: color-mix(in srgb, var(--stage, var(--primary)) 12%, var(--surface-subtle));
  outline: 2px dashed color-mix(in srgb, var(--stage, var(--primary)) 55%, transparent); outline-offset: -2px; }
.board-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; }
.board-tools-l, .board-tools-r { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.board-tools-l .icon-btn { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-2); }
.board-tools-l .icon-btn:hover, .board-tools-l .icon-btn:focus-visible { color: var(--primary); border-color: var(--primary); background: var(--surface-2); }
.board-tool { display: flex; flex-direction: column; gap: 0; font-size: 12px; font-weight: 600; color: var(--text-muted); min-width: 0; }
.board-tool .input { min-height: 38px; width: auto; min-width: 132px; padding: 6px 10px; font-size: 13.5px; }
@media (max-width: 1100px) {
  /* Trello móvil: una lista + peek; la columna crece con las tarjetas y solo topea si hay muchas. */
  .board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(86vw, 340px);
    align-items: start; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(16px, 4vw, 80px); -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * clamp(16px, 4vw, 80px)); padding-inline: clamp(16px, 4vw, 80px); padding-bottom: 14px; }
  .bcol { scroll-snap-align: center; scroll-snap-stop: always; height: auto; max-height: calc(100dvh - 13.5rem);
    padding: 10px 10px 8px; }
  .bcol-body { overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; scrollbar-width: thin; max-height: calc(100dvh - 16rem); }
  .board-tools { flex-direction: column; align-items: stretch; gap: 10px; }
  .board-tools-l { width: 100%; }
  .board-tools-r { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .board-tool { min-width: 0; }
  .board-tool .input { width: 100%; min-width: 0; }
  :root.is-dragging-card .board { scroll-snap-type: none; } /* al arrastrar, el auto-scroll no pelea con el snap */
}
.bcard { display: flex; flex-direction: column; gap: 0; padding: 10px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border-subtle); animation: fade-in .2s ease both; scroll-margin-top: 90px; cursor: grab;
  transition: border-color .15s ease, box-shadow .15s ease; }
.bcard:hover, .bcard:focus-visible { border-color: var(--border); box-shadow: 0 6px 18px rgba(19, 38, 30, .08); outline: none; }
.bcard:target { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.bcard.is-filtered { display: none; }
.bcard button { cursor: pointer; }
/* La tarjeta en drag sale del flujo (.is-dragging); el hueco es .bcard-gap para no empujar el hit-test. */
.bcard.is-dragging { display: none !important; }
.bcard-gap { height: 64px; margin: 0 0 10px; border: 2px dashed var(--primary); border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 8%, transparent); pointer-events: none; flex: none; }
.bcard-ghost { position: fixed; z-index: 50; margin: 0; pointer-events: none; cursor: grabbing; animation: none;
  rotate: 2.5deg; box-shadow: 0 22px 44px rgba(19, 38, 30, .28); border-color: var(--primary); }
:root.is-dragging-card, :root.is-dragging-card * { cursor: grabbing !important; user-select: none; }
@media (prefers-reduced-motion: reduce) { .bcard-gap { transition: none; } }
.bcard-grip { display: grid; place-items: center; width: 18px; height: 28px; margin: 2px 0 0; border-radius: 6px;
  color: var(--text-muted); cursor: grab; touch-action: none; flex: none; }
.bcard:hover .bcard-grip { color: var(--text-2); }
.bcard-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: start; }
.bcard-trash { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted);
  display: grid; place-items: center; flex: none; transition: color .15s ease, background .15s ease; }
.bcard-trash:hover, .bcard-trash:focus-visible { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
@media (pointer: coarse) { .bcard-grip { width: 32px; height: 36px; } .bcard-trash { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .bcard-ghost { rotate: none; } }
.bcard-main { min-width: 0; }
.bcard-main b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  font-size: 14px; line-height: 1.35; overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.bcard-main > span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard .ring-sm { width: 40px; height: 40px; flex: none; } .bcard .ring-sm div { width: 30px; height: 30px; font-size: 13px; }
.bcard-note-tog { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 4px 0; border: 0;
  background: transparent; color: var(--text-2); font: 600 12.5px var(--body); cursor: pointer;
  transition: color .15s ease; }
.bcard-note-tog svg, .bcard-note-tog span { color: inherit; }
.bcard-note-tog:hover, .bcard-note-tog:focus-visible { color: var(--primary); }
.bcard-note-tog[aria-expanded="true"] .caret { rotate: 180deg; }
.bcard-note { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0; }
.bcard-note[hidden] { display: none !important; }
.bcard-note textarea.input { min-height: 64px; font-size: 12.5px; padding: 8px 10px; line-height: 1.45; }
.bcard-note .bnote-st { min-height: 14px; margin: 0; }
.dlg-board { width: min(640px, calc(100% - 24px)); }
.bdet-score { display: flex; align-items: flex-start; gap: 8px; }
.bdet-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 14px; }
.bdet-stage { margin-left: auto; }
.bdet-stage .input { min-height: 40px; width: auto; min-width: 140px; font-size: 13.5px; padding: 6px 10px; }
.dlg-board .why { margin: 0 0 14px; }
.dlg-board .factors { margin: 0 0 16px; }
.dlg-board .bnote { margin: 0 0 12px; }
.bnote textarea.input { min-height: 72px; font-size: 13.5px; padding: 8px 10px; }
.bnote-st { display: block; min-height: 16px; margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.bnote-st .field-err { margin: 0; font-size: 12px; }
.ring-sm { width: 52px; height: 52px; margin: 0; } .ring-sm div { width: 40px; height: 40px; font-size: 16px; }
.st { font: 700 11.5px var(--body); padding: 4px 9px; border-radius: 999px; background: var(--surface-subtle); color: var(--text-2); white-space: nowrap; }
.st-succeeded { background: var(--surface-2); color: var(--primary); }
.st-partial, .st-canceled { color: var(--warning); }
.st-failed { color: var(--danger); }

.job-state { display: contents; }
.btn-g.is-on { color: var(--primary); background: var(--surface-2); }
.job.job-gone { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px;
  color: var(--text-2); font-size: 14px; animation: fade-in .2s ease both; }
.job.job-gone p { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Movimiento ── */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }
.btn { transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease; }
.btn:active:not([disabled]) { transform: scale(.97); }
.btn-p:not([disabled]):hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 26%, transparent); }
.card .chip, .filters .chip span, .icon-btn, .seg a, .dot, .input, .group, .job { transition: background-color .16s ease, border-color .16s ease,
  color .16s ease, box-shadow .2s ease; }
.card .chip.added { animation: chip-in .24s cubic-bezier(.2, .8, .3, 1.25) both; }
@keyframes chip-in { from { opacity: 0; transform: scale(.85); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade-plain { from { opacity: 0; } }
@keyframes page-out { to { opacity: 0; } }
@keyframes from-right { from { opacity: 0; transform: translateX(14px); } }
@keyframes from-left { from { opacity: 0; transform: translateX(-14px); } }

/* Navegación sin recarga: la barra queda quieta. El root viejo no baja a opacidad 0:
   el fondo está en body y, al transparentarse los dos snapshots, se ve el canvas. */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: fade-plain .18s ease both; }
.rail { view-transition-name: rail; }
.wz > div:last-child { view-transition-name: wz-card; }
::view-transition-old(wz-card) { animation: page-out .12s ease both; }
::view-transition-new(wz-card) { animation: from-right .26s cubic-bezier(.2, .7, .2, 1) both; }
html[data-nav="back"]::view-transition-new(wz-card) { animation-name: from-left; }
/* Cambio de tema: fundido encima del snapshot viejo, sin desplazamiento. */
html.theme-vt::view-transition-old(root) { animation: none; }
html.theme-vt::view-transition-new(root) { animation: fade-plain .25s ease both; }
/* Navegadores sin View Transitions: animación de entrada del contenido. */
html.no-vt .page { animation: fade-plain .18s ease both; }

/* Volver arriba */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); border: 0; cursor: pointer; box-shadow: 0 8px 24px rgba(19, 38, 30, .22);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s, background-color .18s ease; }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--primary-hover); } .to-top:active { transform: scale(.94); }
.to-top:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* Pantallas táctiles: área mínima de toque (44 px) sin cambiar el diseño de escritorio. */
@media (pointer: coarse) {
  .seg a { padding: 10px 14px; min-height: 40px; display: inline-flex; align-items: center; }
  .btn { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .link-btn, .btn-link { min-height: 44px; display: inline-flex; align-items: center; }
  .logo svg { height: 40px; }
  .to-top { width: 52px; height: 52px; }
  .card .chip, .chip-add { min-height: 40px; }
  .filters .chip span { padding-top: 10px; padding-bottom: 10px; }
  .tt { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero, .results { grid-template-columns: 1fr; }
  .ex-stack { min-height: 0; display: grid; gap: 12px; padding-bottom: 24px; }
  .ex { position: static; width: 100%; transform: none; }
  .ex-3 { display: none; }
  .show-duo-head, .show-row, .land-split, .how-panel, .how-panel:has(.land-board) { grid-template-columns: 1fr; }
  .how-visual { min-height: 0; height: 100%; } /* llena el alto del panel (perfil sin hueco) */
  .how-copy { align-self: start; }
  .how-match { height: 100%; align-content: start; }
  .how-visual .land-dz { height: 100%; align-content: center; }
  .how-match .job { padding: 12px; }
  .land-board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 260px);
    overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; scroll-snap-type: x proximity; }
  .land-board .bcol { scroll-snap-align: start; }
  .land-board .bcol-body { height: 148px; min-height: 148px; max-height: 148px; }
  .show-band { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .show-band .ring-sm { width: 56px; height: 56px; }
  .show-band .ring-sm div { width: 44px; height: 44px; font-size: 16px; }
  .show-row .show-jobs { padding: 12px; }
  .founder-card { max-width: 100%; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; }
  .soon-col { position: static; }
  .links { display: none; }
  .nav:has(.mnav) { flex-wrap: wrap; gap: 10px; }
  .mnav { display: flex; order: 10; flex: 1 0 100%; gap: 3px; padding: 3px; border-radius: 12px; background: var(--surface-subtle); }
  .mnav a { flex: 1; text-align: center; padding: 10px 4px; border-radius: 9px; font: 600 12.5px var(--body);
    color: var(--text-2); text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .mnav a:active { background: var(--surface); color: var(--primary); }
  .mnav a[aria-current] { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(19, 38, 30, .1); }
  .mnav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
  .nav-auth .btn { white-space: nowrap; }
  /* Landing móvil: [☰ ES/EN] | logo grande | [luna Ingresar]. */
  .wrap:has([data-land]) .nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center; column-gap: 10px; row-gap: 0;
    position: sticky; top: 0; width: auto; max-width: none; overflow: visible;
    margin: 0 calc(-1 * clamp(16px, 4vw, 80px));
    padding: 12px clamp(14px, 3.5vw, 80px); border-radius: 0; border-color: transparent;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    box-shadow: none; flex-wrap: nowrap !important; z-index: 40;
  }
  .wrap:has([data-land]) .nav-lead {
    display: flex; grid-column: 1; grid-row: 1; justify-self: start; z-index: 3; gap: 8px;
  }
  .wrap:has([data-land]) .nav-burger {
    display: grid; width: 40px !important; height: 40px !important; min-width: 40px !important;
    min-height: 0 !important;
  }
  .wrap:has([data-land]) .land-lang {
    display: flex !important; flex: none; padding: 2px; align-items: center;
  }
  .wrap:has([data-land]) .land-lang a {
    padding: 6px 9px !important; min-height: 0 !important; font-size: 12px; line-height: 1;
  }
  .wrap:has([data-land]) .nav > .logo {
    position: static; translate: none; left: auto; top: auto;
    grid-column: 2; grid-row: 1; margin: 0; z-index: 2; justify-self: center;
    max-width: 100%; overflow: visible;
  }
  .wrap:has([data-land]) .nav > .logo svg { height: 30px !important; width: auto; max-width: 100%; display: block; }
  .wrap:has([data-land]) .nav > .links { display: none !important; }
  .wrap:has([data-land]) .nav > .navr {
    display: flex !important; grid-column: 3; grid-row: 1; justify-self: end; align-items: center;
    gap: 8px; flex: none; min-width: 0; z-index: 3;
  }
  .wrap:has([data-land]) .nav .nav-tools {
    display: flex !important; align-items: center; gap: 8px; flex: none;
  }
  /* Lang vive a la izquierda; no duplicar el de tools. */
  .wrap:has([data-land]) .nav .nav-tools > .seg { display: none !important; }
  .wrap:has([data-land]) .nav [data-theme-toggle] {
    width: 40px !important; height: 40px !important; min-width: 40px !important;
    min-height: 0 !important; flex: none;
  }
  .wrap:has([data-land]) .nav .nav-auth { display: flex !important; gap: 0; flex: none; }
  .wrap:has([data-land]) .nav .nav-auth .btn-p { display: none !important; }
  .wrap:has([data-land]) .nav .nav-auth .btn-g,
  .wrap:has([data-land]) .nav .nav-auth .btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px !important; height: 40px; padding: 0 14px !important; border-radius: 999px;
    border: 1.5px solid var(--border-control); background: var(--surface); color: var(--text);
    font: 700 13px var(--body); white-space: nowrap; width: auto !important; max-width: none;
  }
  /* Overlay fixed: no empuja el flujo ni el hero. */
  .wrap:has([data-land]) .nav > .mnav {
    display: none !important;
    position: fixed; left: 12px; right: 12px; top: var(--land-menu-top, 64px);
    grid-column: unset !important; grid-row: unset !important; order: 0 !important;
    flex: none !important; width: auto; max-width: none;
    flex-direction: column; gap: 2px; margin: 0 !important; padding: 8px;
    border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 14%, transparent);
    z-index: 70; animation: faq-in .22s cubic-bezier(.2,.7,.2,1) both;
  }
  .wrap:has([data-land]) .nav.is-menu-open > .mnav { display: flex !important; }
  .wrap:has([data-land]) .nav > .mnav a {
    flex: none; text-align: left; padding: 14px 16px; border-radius: 12px; font: 600 15px var(--body);
  }
  .wrap:has([data-land]) .nav > .mnav a:active,
  .wrap:has([data-land]) .nav > .mnav a:hover {
    background: var(--surface-subtle); color: var(--primary);
  }
  /* ── Producto mobile: una oferta + tablero. Sin duo-head ni 3 filas amontonadas. ── */
  .show .show-head { margin: 0 0 18px; }
  .show .show-head h2 { font-size: clamp(26px, 6.5vw, 32px); }
  .show .show-head p { font-size: 14.5px; line-height: 1.45; }
  .show .show-duo-head { display: none; }
  .show .show-align { gap: 16px; }
  .show .show-align > .show-row ~ .show-row { display: none; } /* solo la primera oferta */
  .show .show-band { display: none; } /* el anillo de la tarjeta ya cuenta el puntaje */
  .show .show-row .show-jobs {
    padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  }
  .show .show-jobs .job { padding: 0; }
  .show .show-jobs .why {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
    font-size: 13px; line-height: 1.4;
  }
  .show .show-pane.show-board { padding: 14px; }
  .show .show-pane.show-board .show-pane-h p { display: none; }
  .show .show-pane.show-board .show-pane-h { margin: 0 0 12px; }
  .show .show-pane.show-board .show-pane-h h3 { font-size: 17px; margin: 0; }
  .show .show-caption { text-align: left; margin-top: 12px; }

  /* ── How mobile: círculos (sin rectángulo), altura fija entre pasos, mock más generoso. ── */
  .how-story-h { margin: 0 0 16px; }
  .how-story-h h2 { font-size: clamp(28px, 7vw, 34px); margin: 0 0 8px; }
  .how-story-h p { font-size: 15px; line-height: 1.45; display: block; }
  .how-stage { padding: 14px; border-radius: 18px; }
  .how-tabs {
    display: flex; justify-content: center; align-items: center; gap: 14px;
    grid-template-columns: none;
  }
  .how-tab {
    flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    min-height: 0; width: auto; padding: 2px; border-radius: 999px;
    background: transparent !important; color: inherit;
  }
  .how-tab:hover, .how-tab.on { background: transparent !important; color: inherit; }
  .how-tab > span:last-child { display: none; } /* título en .how-copy h3 */
  .how-tab-n {
    width: 40px; height: 40px; font-size: 16px; border-radius: 999px;
    transition: background .2s ease, color .2s ease;
  }
  .how-tab:hover .how-tab-n { background: var(--surface-2); color: var(--primary); }
  .how-tab.on .how-tab-n { background: var(--primary); color: var(--on-primary); }
  /* Misma celda = alto fijo al cambiar de paso (no salta la página). */
  .how-panels { display: grid; padding: 12px 4px 6px; }
  .how-panel {
    grid-area: 1 / 1; display: grid; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr);
    padding: 4px 2px 8px; gap: 14px; align-items: stretch;
    visibility: hidden; opacity: 0; pointer-events: none; z-index: 0;
  }
  .how-panel.on {
    visibility: visible; opacity: 1; pointer-events: auto; z-index: 1;
    animation: faq-in .22s cubic-bezier(.2,.7,.2,1) both;
  }
  .how-copy { align-self: start; }
  .how-copy h3 {
    display: block; margin: 0 0 8px; font: 600 22px var(--display); letter-spacing: -.01em;
  }
  .how-copy > p { font-size: 15px; line-height: 1.5; max-width: none; margin: 0; }
  .how-visual {
    padding: 16px; height: 100%; min-height: 0; align-content: center; border-radius: 14px;
  }
  .how-visual:has(.land-board) { padding: 12px; align-content: start; }
  /* Dropzone: aire claro entre título y botón; formatos ya en how1_desc. */
  .how-visual .land-dz {
    padding: 28px 18px; gap: 14px; height: 100%; align-content: center;
  }
  .how-visual .land-dz .ic { margin: 0 auto; } /* el gap del grid da el aire, no el margin del .dz */
  .how-visual .land-dz .dz-idle {
    display: grid; justify-items: center; gap: 20px; margin: 0;
  }
  .how-visual .land-dz .dz-idle h4 { margin: 0; }
  .how-visual .land-dz .dz-idle p,
  .how-visual .land-dz .land-dz-alt { display: none; }
  .how-visual .land-dz h4 { font-size: 18px; margin: 0; }
  .how-visual .land-dz .btn { min-height: 46px; padding: 12px 22px; font-size: 15px; }
  .how-match { gap: 0; height: 100%; align-content: center; }
  .how-match .job { padding: 16px; }
  .how-match .job:nth-child(n+2) { display: none; }
  .how-match .job .why {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  }
  .land-profile {
    grid-template-rows: auto minmax(0, 1fr); height: 100%; min-height: 0; gap: 16px; padding: 18px;
  }
  .land-profile > .land-profile-block ~ .land-profile-block { display: none; }
  .show-pane.show-board .land-board,
  .how-visual .land-board { gap: 10px; }
  .land-board .bcol { padding: 10px; }
  .land-board .bcol-h { font-size: 13px; margin: 0 2px; }
  .land-board .bcol-body { height: 148px !important; min-height: 148px !important; max-height: 148px !important; }
  .land-bcard .bcard-main b { font-size: 13.5px; }
  .land-bcard .bcard-main span { font-size: 12.5px; }
  .how-bar { margin: 10px 4px 2px; }
  .rhead { flex-direction: column; align-items: stretch; }
  .rhead:has(> form) { flex-direction: row; align-items: center; }   /* Mi cuenta: Salir junto al título */
  .rhead > div { min-width: 0; overflow-wrap: anywhere; }
  .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .rl { grid-column: 1; } .rv { grid-row: 2; grid-column: 1; }
  .re, .re.wide { grid-row: 3; grid-column: 1 / -1; }   /* el editor usa todo el ancho de la pantalla */
  .row > .link-btn { grid-row: 1 / 3; grid-column: 2; } .row.open > .link-btn { grid-row: 1; }
  .wz { grid-template-columns: 1fr; } .rail { position: static; }
  .wz-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .wz-steps::before { display: none; }
  .wz-steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0; }
  .wz-steps small, .privacy, .rail > p { display: none; } .wz-steps b { font-size: 12px; }
  .summary { grid-template-columns: 1fr; } .sum-r { border-left: 0; padding-left: 0; justify-content: space-between; }
  .grid3, .phases { grid-template-columns: 1fr 1fr; }
  .filters { position: static; }
  .flt-toggle { display: inline-flex; justify-self: start; }
  .results > .flt-panel { grid-template-rows: 0fr; visibility: hidden; opacity: 0; }
  .results > .flt-panel > div { overflow: hidden; }
  .results > .flt-panel.open { grid-template-rows: 1fr; visibility: visible; opacity: 1; }
  .results { row-gap: 14px; }
  .job { grid-template-columns: 44px 1fr; }
  .avatar { width: 44px; height: 44px; }
  .score { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; text-align: left; }
  .ring { margin: 0; }
  .acc { grid-template-columns: 1fr; }
  .home-cta { justify-content: center; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-me-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-account > .acts { margin-left: 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px 40px; }
  /* Logo y herramientas en una fila; solo la acción principal baja a una segunda fila, a lo ancho. */
  .nav { flex-wrap: wrap; gap: 12px 8px; }
  .nav > .logo { margin-right: auto; }
  .logo svg { height: 32px; }
  .navr, .nav-tools { display: contents; }
  .nav-tools > *, .nav-close { flex: none; }
  .navr .nav-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .navr .nav-auth .btn, .navr > .btn-p { width: 100%; justify-content: center; padding-inline: 12px; font-size: 13px; min-height: 42px; }
  .navr .nav-auth .btn-g { border: 1.5px solid var(--border-control); padding-block: 10px; }
  .navr > .btn-g { display: none; }                      /* "Volver al inicio": el logo ya lleva al inicio */
  /* App (no landing): CTAs del nav a ancho completo. Landing ya muestra Ingresar a la derecha. */
  .wrap:not(:has([data-land])) .navr > .btn-p,
  .wrap:not(:has([data-land])) .navr > .nav-auth { flex: 1 0 100%; }
  .wrap:has(.hero-cta):not(:has([data-land])) .nav .nav-auth { display: none; }
  .nav-close { width: 36px; height: 36px; min-height: 0; padding: 0; border-width: 1px; border-color: var(--border-control); color: var(--text-2); }
  .nav-close span { display: none; }
  .nav:has(.nav-close) .nav-tools > a.icon-btn { display: none; }   /* en el asistente, la cuenta cede lugar a Cerrar */
  /* Con sesión hay cuatro herramientas: el logo se reduce al isotipo (primer cuadrado del lockup) para que entren en una fila. */
  .nav:has([data-dialog-open]) > .logo { width: 32px; overflow: hidden; }
  /* Landing ≤520: mismo layout; logo un toque más chico si el ancho aprieta. */
  .wrap:has([data-land]) .nav {
    flex-wrap: nowrap !important; row-gap: 0; column-gap: 8px; padding: 10px 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .wrap:has([data-land]) .nav-lead { gap: 6px; }
  .wrap:has([data-land]) .nav > .logo {
    margin-right: 0; position: static; left: auto; top: auto; translate: none;
    max-width: 100%; overflow: visible;
  }
  .wrap:has([data-land]) .nav > .logo svg { height: 28px !important; }
  .wrap:has([data-land]) .nav > .navr,
  .wrap:has([data-land]) .nav .nav-tools {
    display: flex !important; align-items: center; gap: 6px; flex: none;
  }
  .wrap:has([data-land]) .nav .nav-tools > .seg { display: none !important; }
  .wrap:has([data-land]) .land-lang a { padding: 5px 8px !important; font-size: 11.5px; }
  .wrap:has([data-land]) .nav .nav-auth {
    flex: none; display: flex !important; width: auto; grid-template-columns: none;
  }
  .wrap:has([data-land]) .nav .nav-auth .btn-g,
  .wrap:has([data-land]) .nav .nav-auth .btn {
    width: auto !important; min-height: 38px !important; height: 38px; padding: 0 12px !important; font-size: 12.5px;
  }
  .wrap:has([data-land]) .nav-burger { width: 38px !important; height: 38px !important; min-width: 38px !important; }
  .wrap:has([data-land]) .nav [data-theme-toggle] { width: 38px !important; height: 38px !important; min-width: 38px !important; }
  .land-board .bcol-body { height: 120px; min-height: 120px; max-height: 120px; }
  .land-board { grid-auto-columns: min(78vw, 240px); }
  .vote-q > span { flex-basis: 100%; }
  .home-account > .acts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .home-account > .acts > *, .home-account > .acts .btn { width: 100%; justify-content: flex-start; }
  .why { grid-template-columns: 1fr; }
  /* Oferta en móvil: el puntaje arriba a la derecha, junto al título; sin avatar ni filas de más. */
  .job { position: relative; padding: 18px; gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .job > .avatar { display: none; }
  .job > .job-body { grid-column: 1; grid-row: 1; }
  .job h3, .job .meta { padding-right: 76px; }
  .job > .score { position: absolute; top: 18px; right: 18px; display: block; }
  .job > .score small { display: none; }
  .job .ring { width: 52px; height: 52px; } .job .ring div { width: 40px; height: 40px; font-size: 16px; }
  .job .acts { gap: 6px; }
  .job .acts .btn-g { padding: 8px 6px; font-size: 13px; }
  .ring { width: 64px; height: 64px; } .ring div { width: 50px; height: 50px; font-size: 18px; }
  .card { padding: 22px 18px; }
  .grid2, .grid3, .where-grid, .keyrow, .why-ai, .groups, .log { grid-template-columns: 1fr; }
  .log div:nth-child(odd) { border-right: 0; } .log div:nth-child(2) { border-top: 1px solid var(--border-subtle); }
  .log { max-height: 300px; overflow-y: auto; }   /* 15 portales en una columna no valen 700 px de pantalla */
  .run .card { padding: 22px 18px; } .run h3 { font-size: 24px; }
  .foot { flex-direction: column-reverse; align-items: stretch; } .foot .r { flex-direction: column-reverse; } .foot .btn { width: 100%; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .next-hint { text-align: center; }
  .hcard { padding: 18px; }
  .tab { flex: 1; justify-content: center; }
  /* Hero: CTAs a ancho en mobile, alineados como el copy (no centrar el bloque). */
  .hero .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; justify-items: stretch; margin-inline: 0; }
  .hero .hero-cta .btn { width: 100%; justify-content: center; padding-inline: 12px; font-size: 13px; min-height: 42px; }
  .hero .hero-login { grid-column: 1 / -1; text-align: left; margin: 4px 0 0; }
  /* Solo Empieza gratis (post-Founder) centrado. */
  .land-cta .hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; width: auto; margin-inline: auto; }
  .land-cta .hero-login { margin: 0; text-align: center; }
  .how-stage { padding: 12px; border-radius: 16px; }
  .how-story-h p { font-size: 14.5px; }
  .how-copy h3 { font-size: 20px; }
  .how-copy > p { font-size: 14.5px; line-height: 1.5; }
  .how-tab { min-height: 0; padding: 2px; background: transparent !important; }
  .how-tab-n { width: 40px; height: 40px; }
  .how-visual .land-dz { padding: 26px 16px; }
  .how-visual .land-dz .dz-idle { gap: 18px; }
  .land-sec { padding: 40px 0 8px; scroll-margin-top: 80px; }
  .how-story.land-sec { padding-top: 32px; }
  .show.land-sec { padding-top: 36px; }
  .land { padding-bottom: 84px; }
  .land-dock { bottom: 12px; padding: 6px; }
  .land-dock-cta { min-height: 44px; padding: 11px 20px; }
  .founder-card { grid-template-columns: auto auto minmax(0, 1fr); }
  .founder-photo, .founder-avatar { width: 72px; height: 72px; border-radius: 18px; }
  .founder-quote blockquote { font-size: clamp(22px, 6vw, 28px); }
  .dlg-foot { flex-direction: column-reverse; align-items: stretch; }
  .dlg-foot .btn { width: 100%; }
  /* Teléfono: lista + peek; bloque solo tan alto como haga falta. */
  .board { grid-auto-columns: min(90vw, 360px); gap: 10px; margin-inline: -16px; padding-inline: 16px;
    scroll-padding-inline: 16px; }
  .bcol { max-height: calc(100dvh - 12.5rem); padding: 10px 10px 8px; min-height: 0; }
  .bcol-body { max-height: calc(100dvh - 15rem); }
  .bcard { padding: 12px; }
  .bcard-top { gap: 6px; }
  .bcard .ring-sm { width: 36px; height: 36px; } .bcard .ring-sm div { width: 28px; height: 28px; font-size: 12px; }
  .bcard-main b { font-size: 13.5px; -webkit-line-clamp: 2; }
  .land-board { grid-auto-columns: min(78vw, 240px); margin-inline: -4px; padding-inline: 4px; }
  /* Producto + How: mismo alto de columna; fijo entre pasos. */
  .land-board .bcol-body,
  .how-visual .land-board .bcol-body {
    height: 148px !important; min-height: 148px !important; max-height: 148px !important;
  }
}
@media (max-width: 520px) and (pointer: coarse) { .nav-close { width: 44px; height: 44px; } }
