/* ============================================================
   BlackYak Labs — Liquid Carbon
   Carbono profundo + titanio + cyan eléctrico controlado.
   ============================================================ */

@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk-v22-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk-v22-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-v20-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-v20-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-v20-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-v20-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #050608;
  --bg-2: #090b0e;
  --surface: #11151a;
  --surface-2: #171c22;
  --surface-3: #1d232b;
  --text: #f4f7fa;
  --text-dim: #9aa7b4;
  --text-faint: #5c6873;
  --cyan: #51e4f2;
  --cyan-soft: rgba(81, 228, 242, .14);
  --ice: #a8c6e8;
  --indigo: #6472e8;
  --danger: #ff7a7a;
  --ok: #5df2b4;
  --border: rgba(154, 167, 180, .14);
  --border-strong: rgba(154, 167, 180, .26);
  --header-h: 68px;
  --radius: 14px;
  --radius-sm: 10px;
  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grano casi imperceptible + gradiente ambiental fijo */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 82% -10%, rgba(81, 228, 242, .05), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(100, 114, 232, .05), transparent 60%),
    var(--bg);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.028 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--cyan); color: #04252a; padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ===== Header fijo ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(16px, 3vw, 36px);
  background: rgba(5, 6, 8, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 40px; width: auto; }
.header-trust {
  margin-left: auto;
  font-size: 12.5px; letter-spacing: .04em; color: var(--text-dim);
  white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.link-quiet {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font: 500 13.5px var(--font-ui);
  padding: 6px 4px; border-radius: 6px;
  transition: color .18s var(--ease);
}
.link-quiet:hover { color: var(--text); }
.link-quiet.small { font-size: 12.5px; }
.wa-quiet {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 10px; color: var(--text-dim);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.wa-quiet:hover { color: var(--cyan); border-color: var(--border-strong); }

/* ===== Escena principal: 100dvh sin scroll en desktop ===== */
.stage {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 41%) 1fr;
  gap: clamp(16px, 2.6vw, 40px);
  padding: calc(var(--header-h) + clamp(12px, 2.2vh, 28px)) clamp(16px, 3vw, 36px) clamp(40px, 5vh, 48px);
  min-height: 100dvh;
  max-width: 1480px;
  margin: 0 auto;
  align-items: stretch;
}

/* --- Identidad --- */
.identity { display: flex; align-items: center; min-width: 0; }
.identity-inner { width: 100%; position: relative; }
.eyebrow {
  font: 700 11.5px/1.4 var(--font-display);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: clamp(10px, 1.6vh, 16px);
}
.headline {
  font: 700 clamp(30px, 3.4vw, 46px)/1.06 var(--font-display);
  letter-spacing: -.01em;
  margin-bottom: clamp(10px, 1.8vh, 18px);
}
.hl-accent {
  background: linear-gradient(92deg, var(--cyan), var(--ice) 70%, var(--indigo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subline { color: var(--text-dim); font-size: clamp(14px, 1.1vw, 16px); max-width: 42ch; margin-bottom: clamp(16px, 2.6vh, 26px); }

.trust-chips { list-style: none; display: flex; gap: clamp(10px, 1.2vw, 18px); flex-wrap: wrap; margin-bottom: clamp(16px, 3vh, 30px); }
.trust-chips li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; min-width: 108px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative; overflow: hidden;
}
.trust-chips li::before {
  content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(81, 228, 242, .5), transparent);
}
.chip-num { font: 700 17px var(--font-display); color: var(--text); }
.chip-label { font-size: 11.5px; color: var(--text-faint); }
/* Acentos diferenciados: menos monocromático, más jerarquía */
.trust-chips li:nth-child(1) .chip-num { color: var(--cyan); }
.trust-chips li:nth-child(2) .chip-num { color: var(--ice); }
.trust-chips li:nth-child(3) .chip-num { color: #9fb0f0; }
.trust-chips li:nth-child(2)::before { background: linear-gradient(90deg, transparent, rgba(168, 198, 232, .5), transparent); }
.trust-chips li:nth-child(3)::before { background: linear-gradient(90deg, transparent, rgba(159, 176, 240, .5), transparent); }

/* Mini proceso: qué va a pasar — vivo: el paso actual late, los hechos se tildan */
.process-mini {
  list-style: none;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0;
  margin: 0 0 clamp(14px, 2.2vh, 22px);
  padding: 0;
}
.process-mini li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-faint);
  transition: color .35s var(--ease);
}
.process-mini li:not(:last-child)::after {
  content: '';
  width: clamp(12px, 1.6vw, 26px); height: 1px;
  margin: 0 10px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.process-mini .pm-n {
  flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 11px var(--font-display);
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  background: transparent;
  transition: all .35s var(--ease);
}
.process-mini li.active { color: var(--text-dim); }
.process-mini li.active .pm-n {
  color: var(--cyan);
  border-color: rgba(81, 228, 242, .55);
  background: var(--cyan-soft);
  animation: pmPulse 2.6s ease-in-out infinite;
}
.process-mini li.done .pm-n {
  color: var(--ok);
  border-color: rgba(93, 242, 180, .4);
  background: rgba(93, 242, 180, .08);
}
@keyframes pmPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(81, 228, 242, .12); }
  50% { box-shadow: 0 0 14px rgba(81, 228, 242, .45); }
}

/* Entrada escalonada del panel de identidad */
.identity-inner > * { animation: rise .55s var(--ease) backwards; }
.identity-inner > *:nth-child(1) { animation-delay: .04s; }
.identity-inner > *:nth-child(2) { animation-delay: .1s; }
.identity-inner > *:nth-child(3) { animation-delay: .16s; }
.identity-inner > *:nth-child(4) { animation-delay: .22s; }
.identity-inner > *:nth-child(5) { animation-delay: .28s; }
.identity-inner > *:nth-child(6) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.asterisk { background: none; border: none; color: var(--cyan); cursor: pointer; font-size: 13px; padding: 0 2px; }

/* Visual contextual */
.context-visual {
  position: relative; width: clamp(150px, 16vw, 220px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.cv-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background:
    conic-gradient(from 210deg, transparent 70%, rgba(81, 228, 242, .35) 86%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  animation: spin 14s linear infinite;
}
.cv-icon { width: 54%; height: 54%; color: var(--cyan); opacity: .9; display: grid; place-items: center; transition: opacity .3s var(--ease); }
.cv-icon svg { width: 100%; height: 100%; }
.cv-scan {
  position: absolute; inset: 12%; border-radius: 50%; overflow: hidden; pointer-events: none;
}
.cv-scan::after {
  content: ''; position: absolute; left: 0; right: 0; height: 34%;
  background: linear-gradient(180deg, transparent, rgba(81, 228, 242, .07), transparent);
  animation: scan 4.5s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 0%, 100% { top: -34%; } 50% { top: 100%; } }

/* --- Wizard --- */
.wizard { display: flex; align-items: center; min-width: 0; }
.wizard-card {
  width: 100%; max-height: calc(100dvh - var(--header-h) - clamp(40px, 7vh, 64px));
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, rgba(23, 28, 34, .92), rgba(17, 21, 26, .96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vh, 28px) clamp(18px, 2vw, 30px);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.wizard-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(81, 228, 242, .35), transparent 30%, transparent 68%, rgba(100, 114, 232, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.progress { height: 3px; background: var(--surface-3); border-radius: 2px; overflow: hidden; margin-bottom: 12px; }
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--ice));
  border-radius: 2px;
  transition: width .45s var(--ease);
}
.step-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(8px, 1.4vh, 14px); }
.step-count { font: 700 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }

.step-viewport { flex: 1; min-height: 160px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; padding-right: 2px; }

.step { animation: stepIn .32s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.q-title { font: 700 clamp(19px, 1.7vw, 24px)/1.2 var(--font-display); margin-bottom: 6px; }
.q-title:focus, .q-title:focus-visible { outline: none; }
.q-help { color: var(--text-dim); font-size: 13.5px; margin-bottom: clamp(12px, 2vh, 18px); }

/* Opciones tipo tarjeta */
.options { display: grid; gap: 10px; }
.options.cols-2 { grid-template-columns: repeat(2, 1fr); }
.options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 13px 15px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: 500 14.5px var(--font-ui);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
  position: relative;
}
.opt:hover { border-color: var(--border-strong); background: var(--surface-3); }
.opt[aria-pressed="true"], .opt.selected {
  border-color: rgba(81, 228, 242, .65);
  background: linear-gradient(160deg, rgba(81, 228, 242, .1), var(--surface-2) 55%);
}
.opt[aria-pressed="true"]::after, .opt.selected::after {
  content: ''; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px rgba(81, 228, 242, .8);
}
.opt .opt-icon { flex: 0 0 30px; height: 30px; color: var(--cyan); opacity: .85; }
.opt .opt-icon svg { width: 100%; height: 100%; }
.opt .opt-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.opt .opt-label { font-weight: 600; }
.opt .opt-sub { font-size: 12px; color: var(--text-faint); }
.opt .opt-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ice); background: rgba(168, 198, 232, .12);
  padding: 3px 8px; border-radius: 20px;
}
.opt:disabled { opacity: .5; cursor: not-allowed; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.field .req { color: var(--cyan); }
.field input, .field select, .field textarea {
  font: 400 15px var(--font-ui);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  width: 100%;
  transition: border-color .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 68px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(81, 228, 242, .6); }
.field .err { color: var(--danger); font-size: 12.5px; display: none; }
.field.invalid input, .field.invalid select { border-color: rgba(255, 122, 122, .6); }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }

/* Dropzone */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: clamp(16px, 2.4vh, 26px) 16px;
  text-align: center;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  background: rgba(17, 21, 26, .5);
}
.dropzone:hover, .dropzone.drag { border-color: rgba(81, 228, 242, .6); background: rgba(81, 228, 242, .04); }
.dropzone .dz-icon { color: var(--cyan); margin-bottom: 6px; }
.dropzone strong { color: var(--text); }
.dz-note { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.file-list { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 13.5px;
}
.file-item .fi-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .fi-status { font-size: 12px; color: var(--ok); }
.file-item .fi-status.error { color: var(--danger); }
.file-item .fi-status.progress { color: var(--ice); }
.file-item button { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 16px; padding: 2px 6px; border-radius: 6px; }
.file-item button:hover { color: var(--danger); }

/* Checkbox / consent */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 4px; font-size: 13px; color: var(--text-dim); }
.consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--cyan); flex-shrink: 0; }
.consent a, .consent button.inline-link { color: var(--cyan); text-decoration: underline; background: none; border: none; font: inherit; cursor: pointer; padding: 0; }

/* Resumen */
.summary { display: flex; flex-direction: column; gap: 8px; }
.sum-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13.5px;
}
.sum-row .sum-k { color: var(--text-faint); flex-shrink: 0; }
.sum-row .sum-v { text-align: right; overflow-wrap: anywhere; }
.sum-row button { background: none; border: none; color: var(--cyan); cursor: pointer; font-size: 12.5px; padding: 2px 4px; flex-shrink: 0; }

/* Success */
.success-panel { text-align: center; padding: clamp(10px, 3vh, 30px) 8px; }
.success-icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan-soft); color: var(--cyan); }
.lead-id-badge {
  display: inline-block; margin: 10px 0 4px;
  font: 700 13px var(--font-display); letter-spacing: .08em;
  color: var(--cyan); background: var(--cyan-soft);
  border: 1px solid rgba(81, 228, 242, .3);
  padding: 6px 14px; border-radius: 20px;
}
.success-msg { color: var(--text-dim); font-size: 14px; max-width: 46ch; margin: 8px auto 18px; }

/* Botones */
.wizard-nav { display: flex; gap: 10px; margin-top: clamp(12px, 2vh, 18px); }
.btn {
  font: 600 15px var(--font-ui);
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), opacity .2s;
  min-height: 48px;
}
.btn.primary {
  flex: 1;
  position: relative;
  overflow: hidden;
  /* Holográfico plateado-celeste, animado lento (soft lab) */
  background: linear-gradient(105deg,
    #cdd9e2 0%, #a9d9e8 16%, #62e2ef 34%, #a5b8ee 52%, #d9e4ec 68%, #7fe6f2 86%, #cdd9e2 100%);
  background-size: 300% 100%;
  animation: holo 11s ease-in-out infinite alternate;
  color: #06272d;
  box-shadow: 0 6px 24px rgba(81, 228, 242, .2), inset 0 1px 0 rgba(255, 255, 255, .5);
}
@keyframes holo { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(81, 228, 242, .32), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.primary:active { transform: none; }
.btn.primary:disabled { opacity: .55; cursor: wait; transform: none; }
/* Avance pendiente: barra de gracia de 1,4s dentro del CTA */
.btn.primary.pending::after {
  content: '';
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: rgba(6, 39, 45, .55);
  animation: pendingbar 1.4s linear forwards;
}
@keyframes pendingbar { to { width: 100%; } }
.btn.ghost { background: transparent; border-color: var(--border-strong); color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); border-color: var(--text-faint); }
.btn.wa {
  flex: 1;
  background: linear-gradient(120deg, #29d366, #1fb457);
  color: #05270f;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(41, 211, 102, .22);
}
.btn.wa:hover { transform: translateY(-1px); }

.kbd-hint { font-size: 11px; color: var(--text-faint); text-align: center; margin-top: 10px; }

.form-error {
  background: rgba(255, 122, 122, .08); border: 1px solid rgba(255, 122, 122, .35);
  color: var(--danger); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13.5px; margin-bottom: 12px;
}

/* Honeypot: fuera de vista para humanos, visible para bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ===== Modal ===== */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(2, 3, 4, .7);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
}
.modal {
  width: min(560px, 100%);
  max-height: min(78dvh, 640px);
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 26px 28px;
  position: relative;
  animation: stepIn .25s var(--ease);
}
.modal h2 { font: 700 20px var(--font-display); margin-bottom: 12px; }
.modal p, .modal li { color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.modal ol, .modal ul { padding-left: 20px; }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--text-faint); font-size: 24px; cursor: pointer; line-height: 1;
  padding: 4px 8px; border-radius: 8px;
}
.modal-close:hover { color: var(--text); }
.modal .steps-mini { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.modal .steps-mini li { display: flex; gap: 12px; align-items: flex-start; }
.modal .steps-mini .n {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cyan-soft); color: var(--cyan); font: 700 13px var(--font-display);
}

/* ===== Footer ===== */
.site-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px clamp(16px, 3vw, 36px);
  font-size: 11.5px; color: var(--text-faint);
  background: linear-gradient(180deg, transparent, rgba(5, 6, 8, .85) 40%);
  pointer-events: none;
}
.site-footer > * { pointer-events: auto; }

/* ===== Foco visible ===== */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.opt:focus-visible, .btn:focus-visible { outline-offset: 3px; }

/* ===== Mobile ===== */
@media (max-width: 900px) {
  :root { --header-h: 58px; }
  .brand img { height: 34px; }
  .header-trust { display: none; }
  .stage {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: calc(var(--header-h) + 10px) 14px calc(34px + env(safe-area-inset-bottom));
    min-height: 100dvh;
  }
  .identity { align-items: flex-start; }
  .identity-inner { display: flex; flex-direction: column; }
  .headline { font-size: clamp(24px, 6.4vw, 30px); }
  .subline { font-size: 13.5px; margin-bottom: 12px; }
  .eyebrow { margin-bottom: 8px; font-size: 10.5px; }
  .trust-chips { gap: 8px; margin-bottom: 4px; }
  .trust-chips li { min-width: 0; flex: 1; padding: 8px 10px; }
  .chip-num { font-size: 14px; }
  .chip-label { font-size: 10px; }
  .context-visual { display: none; }
  .wizard-card { max-height: none; padding: 16px; }
  .options.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .options.cols-2 { grid-template-columns: 1fr; }
  .opt { padding: 13px 14px; min-height: 52px; }
  .field-row { grid-template-columns: 1fr; }
  .kbd-hint { display: none; }
  .site-footer { position: static; padding: 14px; justify-content: center; gap: 14px; background: none; }
  .wizard-nav { position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, rgba(17,21,26,.95) 30%); padding-top: 8px; }
}

/* Cuando el hero ya no aporta (pasos avanzados en mobile) */
@media (max-width: 900px) {
  body.step-active .identity-inner > .headline,
  body.step-active .identity-inner > .subline,
  body.step-active .identity-inner > .process-mini,
  body.step-active .identity-inner > .trust-chips { display: none; }
  body.step-active .identity-inner > .eyebrow { margin-bottom: 2px; }
}

/* Desktop bajo (ej: 1366×768): compactar */
@media (min-width: 901px) and (max-height: 820px) {
  .headline { font-size: clamp(26px, 2.8vw, 36px); }
  .context-visual { width: clamp(110px, 12vw, 150px); }
  .subline { margin-bottom: 14px; }
}
@media (min-width: 901px) and (max-height: 700px) {
  .context-visual { display: none; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .cv-ring, .cv-scan::after { animation: none !important; }
}
