/* LUM360 · Cotizador v2 (beta)
 * Sistema visual propio sobre los tokens globales (tokens.css / theme.css): tema oscuro y claro automáticos.
 * Mobile-first · reduce-motion · foco visible · sin dependencias externas.
 */
.lq-body { overflow-x: clip; }
.lq {
  --lq-accent: var(--color-accent, #d4af37);
  --lq-accent-strong: var(--color-accent-strong, #f0d06c);
  --lq-tint: color-mix(in srgb, var(--lq-accent) 11%, transparent);
  --lq-tint-strong: color-mix(in srgb, var(--lq-accent) 20%, transparent);
  --lq-line: var(--color-border, rgba(255, 255, 255, .12));
  --lq-line-accent: var(--color-border-accent, rgba(212, 175, 55, .34));
  --lq-card: color-mix(in srgb, var(--color-surface-elevated, #171717) 74%, transparent);
  --lq-radius: 18px;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 104px 0 0;
  color: var(--color-text-primary);
  font-family: var(--font-body, "Inter", Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
}
.lq *, .lq *::before, .lq *::after { box-sizing: border-box; }
.lq button, .lq input, .lq textarea, .lq select { font: inherit; color: inherit; }
.lq .lq-ico { display: block; flex: none; }

/* ── Fondo ambiental ── */
.lq-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lq-bg::before, .lq-bg::after { content: ""; position: absolute; border-radius: 50%; }
.lq-bg::before { width: min(900px, 120vw); aspect-ratio: 1; left: 50%; top: -280px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--lq-accent) 17%, transparent), transparent); }
.lq-bg::after { width: min(620px, 90vw); aspect-ratio: 1; right: -180px; top: 46%; background: radial-gradient(closest-side, color-mix(in srgb, var(--lq-accent) 9%, transparent), transparent); }
.lq-grid-lines { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(var(--lq-line) 1px, transparent 1px), linear-gradient(90deg, var(--lq-line) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 62%); mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 62%); }

/* ── Encabezado ── */
.lq-head { max-width: 1080px; margin: 0 auto; padding: 4px 24px 18px; text-align: center; }
.lq-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px 7px 12px; border: 1px solid var(--lq-line-accent); border-radius: 999px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--lq-accent-strong); background: var(--lq-tint); }
.lq-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--lq-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lq-accent) 24%, transparent); animation: lq-pulse 2.4s ease-in-out infinite; }
.lq-beta { margin-left: 4px; padding: 2px 7px; border-radius: 6px; background: var(--lq-accent); color: var(--color-accent-ink, #17130a); font-weight: 700; letter-spacing: .1em; }
.lq-h1 { margin: 0 auto 6px; max-width: 880px; font-family: var(--font-display, "Cormorant Garamond", Georgia, serif); font-weight: 300; font-style: italic; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04; letter-spacing: .005em; }
.lq-h1 em { font-style: normal; font-weight: 500; color: var(--lq-accent-strong); }
.lq-lede { margin: 0 auto; max-width: 640px; color: var(--color-text-secondary); font-size: clamp(15px, 1.5vw, 17.5px); line-height: 1.7; }
.lq[data-view="step"] .lq-head, .lq[data-view="success"] .lq-head, .lq[data-view="guide"] .lq-head { display: none; }
.lq[data-view="step"], .lq[data-view="success"], .lq[data-view="guide"] { padding-top: 96px; }

/* ── Estructura ── */
.lq-shell { max-width: 1180px; margin: 0 auto; padding: 0 24px 104px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.lq[data-view="step"] .lq-shell { grid-template-columns: 300px minmax(0, 1fr); }
.lq[data-view="start"] .lq-shell, .lq[data-view="guide"] .lq-shell { max-width: 1120px; }
.lq[data-view="success"] .lq-shell { max-width: 820px; }
.lq-rail { display: none; position: sticky; top: 92px; flex-direction: column; gap: 14px; }
.lq[data-view="step"] .lq-rail { display: flex; }
.lq-card, .lq-stage { border: 1px solid var(--lq-line); border-radius: 24px; background: var(--color-surface, #0f0f0f); position: relative; }
.lq-stage { padding: clamp(22px, 4vw, 46px); min-height: 460px; box-shadow: 0 40px 90px -50px var(--color-shadow, rgba(0, 0, 0, .6)); }
.lq-stage::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, color-mix(in srgb, var(--lq-accent) 55%, transparent), transparent 38%, transparent 70%, color-mix(in srgb, var(--lq-accent) 24%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; opacity: .8; }

/* ── Barra superior de la etapa ── */
.lq-top { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(20px, 3.4vw, 34px); }
.lq-count { flex: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.lq-bar { flex: 1; height: 4px; border-radius: 99px; background: var(--lq-line); overflow: hidden; }
.lq-bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lq-accent), var(--lq-accent-strong)); transition: width .55s var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
.lq-restart { flex: none; border: 0; background: none; padding: 6px 2px; font-size: 12.5px; color: var(--color-text-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lq-restart:hover { color: var(--lq-accent-strong); }

/* ── Vista y transiciones ── */
.lq-view { outline: none; }
.lq-view.is-leaving { opacity: 0; transform: translateX(-14px); transition: opacity .16s ease, transform .16s ease; }
.lq-view.is-entering { animation: lq-in .46s var(--ease-out, cubic-bezier(.16, 1, .3, 1)) both; }
.lq-view.is-entering-back { animation: lq-in-back .46s var(--ease-out, cubic-bezier(.16, 1, .3, 1)) both; }
@keyframes lq-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes lq-in-back { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes lq-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes lq-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.lq-q { margin: 0 0 12px; font-family: var(--font-display, "Cormorant Garamond", Georgia, serif); font-weight: 400; font-style: italic; font-size: clamp(29px, 4.2vw, 46px); line-height: 1.1; letter-spacing: .005em; outline: none; }
.lq-q em { font-style: normal; color: var(--lq-accent-strong); }
.lq-help { margin: 0 0 clamp(20px, 3vw, 30px); max-width: 62ch; color: var(--color-text-secondary); font-size: 15.5px; line-height: 1.7; }
.lq-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.lq-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--lq-line-accent); background: var(--lq-tint); font-size: 12px; letter-spacing: .04em; color: var(--lq-accent-strong); }

/* ── Tarjetas de opción ── */
.lq-options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin: 0; padding: 0; border: 0; min-width: 0; }
.lq-options.cols-1 { grid-template-columns: 1fr; }
.lq-options.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lq-options.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lq-opt { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 52px 16px 16px; border: 1px solid var(--lq-line); border-radius: var(--lq-radius); background: var(--lq-card); cursor: pointer; isolation: isolate; overflow: hidden; transition: transform .22s var(--ease-out, ease), border-color .22s, background-color .22s, box-shadow .22s; -webkit-tap-highlight-color: transparent; }
.lq-opt::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--lq-accent) 16%, transparent), transparent 62%); }
.lq-opt:hover { transform: translateY(-2px); border-color: var(--lq-line-accent); box-shadow: 0 16px 40px -26px var(--color-shadow, #000); }
.lq-opt:hover::before { opacity: 1; }
.lq-opt:focus-within { outline: 2px solid var(--color-focus, #f0d06c); outline-offset: 2px; }
.lq-opt.is-checked { border-color: var(--lq-accent); background: color-mix(in srgb, var(--lq-accent) 10%, var(--color-surface-elevated, #171717)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lq-accent) 55%, transparent), 0 18px 44px -28px color-mix(in srgb, var(--lq-accent) 70%, transparent); }
.lq-opt.is-checked::before { opacity: 1; }
.lq-in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lq-opt-ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--lq-line-accent); background: var(--lq-tint); color: var(--lq-accent-strong); transition: transform .3s var(--ease-out, ease), background-color .2s; }
.lq-opt:hover .lq-opt-ico { transform: scale(1.06) rotate(-3deg); }
.lq-opt.is-checked .lq-opt-ico { background: var(--lq-accent); color: var(--color-accent-ink, #17130a); border-color: var(--lq-accent); }
.lq-opt-body { min-width: 0; padding-top: 1px; }
.lq-opt-title { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.35; letter-spacing: .005em; }
.lq-opt-hint { display: block; margin-top: 4px; color: var(--color-text-muted); font-size: 13.5px; line-height: 1.55; }
.lq-opt-check { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--color-border-strong, rgba(255, 255, 255, .24)); color: transparent; transition: background-color .2s, border-color .2s, color .2s, transform .3s var(--ease-out, ease); }
.lq-opt--multi .lq-opt-check { border-radius: 7px; }
.lq-opt.is-checked .lq-opt-check { background: var(--lq-accent); border-color: var(--lq-accent); color: var(--color-accent-ink, #17130a); transform: scale(1.08); }
.lq-opt-check svg { width: 13px; height: 13px; stroke-width: 2.6; }
.lq-opt-reco { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--lq-tint); color: var(--color-text-secondary); font-size: 12.8px; line-height: 1.5; }
.lq-opt-reco b { color: var(--lq-accent-strong); font-weight: 600; margin-right: 4px; }
.lq-opt--unsure { background: transparent; border-style: dashed; }
.lq-opt--unsure .lq-opt-ico { background: transparent; }
.lq-opt--compact { padding-top: 13px; padding-bottom: 13px; }
.lq-opt--compact .lq-opt-ico { width: 36px; height: 36px; border-radius: 10px; }
.lq-opt--list { align-items: center; }

.lq-matrix { display: grid; grid-template-columns: 110px repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.lq-matrix-h { padding: 0 4px 2px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); text-align: center; align-self: end; }
.lq-matrix-row { align-self: center; font-family: var(--font-display, serif); font-style: italic; font-size: 24px; color: var(--lq-accent-strong); }
.lq-matrix .lq-opt { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 18px 12px; min-height: 124px; }
.lq-matrix .lq-opt-body { padding: 0; }
.lq-matrix .lq-opt-title { font-size: 14px; }
.lq-matrix .lq-opt-check { top: 10px; right: 10px; width: 20px; height: 20px; }
.lq-selected-note { margin: 14px 0 0; font-size: 13px; color: var(--color-text-muted); }

/* ── Inicio: tarjetas de proyecto ── */
.lq-start-title { margin: 0 0 8px; text-align: center; font-family: var(--font-display, serif); font-weight: 400; font-style: italic; font-size: clamp(28px, 3.6vw, 42px); }
.lq-start-sub { margin: 0 auto 30px; max-width: 58ch; text-align: center; color: var(--color-text-secondary); line-height: 1.7; }
.lq-projects { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.lq-project { position: relative; display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 24px 22px 22px; border: 1px solid var(--lq-line); border-radius: 22px; background: var(--color-surface, #0f0f0f); cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease-out, ease), border-color .3s, box-shadow .3s; animation: lq-rise .6s var(--ease-out, ease) both; animation-delay: calc(var(--i, 0) * 70ms); -webkit-tap-highlight-color: transparent; }
.lq-project::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--lq-accent) 18%, transparent), transparent 62%); }
.lq-project:hover, .lq-project:focus-visible { transform: translateY(-5px); border-color: var(--lq-accent); box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--lq-accent) 60%, #000); }
.lq-project:hover::before, .lq-project:focus-visible::before { opacity: 1; }
.lq-project:focus-visible { outline: 2px solid var(--color-focus, #f0d06c); outline-offset: 3px; }
.lq-project-num { position: absolute; top: 18px; right: 22px; font-family: var(--font-display, serif); font-size: 42px; line-height: 1; font-style: italic; color: color-mix(in srgb, var(--lq-accent) 28%, transparent); }
.lq-project-ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; border: 1px solid var(--lq-line-accent); background: var(--lq-tint); color: var(--lq-accent-strong); transition: transform .4s var(--ease-out, ease), background-color .3s, color .3s; }
.lq-project:hover .lq-project-ico { transform: scale(1.08) rotate(-4deg); background: var(--lq-accent); color: var(--color-accent-ink, #17130a); }
.lq-project-ico svg { width: 26px; height: 26px; }
.lq-project-name { margin: 8px 0 0; font-family: var(--font-display, serif); font-weight: 500; font-size: 26px; line-height: 1.12; }
.lq-project-tag { margin: 0; color: var(--color-text-secondary); font-size: 14.5px; line-height: 1.6; }
.lq-project-who { margin: auto 0 0; padding-top: 10px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.lq-project-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--lq-accent-strong); }
.lq-project-go svg { transition: transform .3s var(--ease-out, ease); }
.lq-project:hover .lq-project-go svg { transform: translateX(5px); }
.lq-start-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 26px; margin-top: 30px; color: var(--color-text-muted); font-size: 13.5px; }
.lq-start-foot li { display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.lq-start-foot ul { display: contents; margin: 0; padding: 0; }
.lq-start-foot svg { color: var(--lq-accent); }
.lq-guide-cta { margin: 26px auto 0; text-align: center; }
.lq-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--lq-line-accent); border-radius: 16px; background: var(--lq-tint); }
.lq-resume p { flex: 1 1 260px; margin: 0; font-size: 14.5px; line-height: 1.55; }
.lq-resume .lq-btn { min-height: 42px; padding: 0 18px; font-size: 13.5px; }

/* ── Botones ── */
.lq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .02em; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease-out, ease), box-shadow .25s, background-color .2s, border-color .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.lq-btn:focus-visible { outline: 2px solid var(--color-focus, #f0d06c); outline-offset: 3px; }
.lq-btn--primary { background: var(--color-button-primary-bg, #d4af37); color: var(--color-button-primary-text, #17130a); box-shadow: 0 14px 34px -16px color-mix(in srgb, var(--lq-accent) 75%, transparent); }
.lq-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -16px color-mix(in srgb, var(--lq-accent) 85%, transparent); }
.lq-btn--primary:active { transform: scale(.98); }
.lq-btn--ghost { background: transparent; border-color: var(--lq-line); color: var(--color-text-secondary); }
.lq-btn--ghost:hover { border-color: var(--lq-line-accent); color: var(--color-text-primary); }
.lq-btn--outline { background: transparent; border-color: var(--lq-line-accent); color: var(--lq-accent-strong); }
.lq-btn--outline:hover { background: var(--lq-tint); }
.lq-btn[disabled], .lq-btn[aria-disabled="true"] { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.lq-btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.lq-btn--sm { min-height: 40px; padding: 0 18px; font-size: 13.5px; }
.lq-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: clamp(24px, 4vw, 38px); padding-top: 20px; border-top: 1px solid var(--lq-line); }
.lq-actions .lq-spacer { flex: 1; }
.lq-skip { border: 0; background: none; padding: 8px 4px; color: var(--color-text-muted); font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lq-skip:hover { color: var(--lq-accent-strong); }

/* ── Rail (resumen en vivo) ── */
.lq-rail .lq-card { padding: 18px; border-radius: 20px; }
.lq-rail-project { display: flex; align-items: center; gap: 12px; }
.lq-rail-project .lq-opt-ico { width: 40px; height: 40px; background: var(--lq-accent); color: var(--color-accent-ink, #17130a); border-color: var(--lq-accent); }
.lq-rail-project b { display: block; font-family: var(--font-display, serif); font-size: 19px; font-weight: 500; line-height: 1.15; }
.lq-rail-project button { margin-top: 3px; padding: 0; border: 0; background: none; color: var(--color-text-muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lq-rail-project button:hover { color: var(--lq-accent-strong); }
.lq-rail h3 { margin: 0 0 12px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; }
.lq-meter { display: flex; gap: 5px; margin: 0 0 9px; }
.lq-meter i { flex: 1; height: 6px; border-radius: 99px; background: var(--lq-line); transition: background-color .5s, transform .5s; }
.lq-meter i.on { background: linear-gradient(90deg, var(--lq-accent), var(--lq-accent-strong)); }
.lq-meter-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--color-text-muted); }
.lq-meter-label b { font-size: 14.5px; color: var(--color-text-primary); font-weight: 600; }
.lq-live { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 38vh; overflow: auto; scrollbar-width: thin; }
.lq-live li { animation: lq-rise .4s var(--ease-out, ease) both; }
.lq-live button { width: 100%; display: flex; flex-direction: column; gap: 1px; text-align: left; padding: 8px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; transition: background-color .2s; }
.lq-live button:hover { background: var(--lq-tint); }
.lq-live small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.lq-live span { font-size: 13.5px; line-height: 1.4; color: var(--color-text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lq-live-empty { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--color-text-muted); }
.lq-reassure { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: var(--color-text-secondary); }
.lq-reassure li { display: flex; gap: 10px; align-items: center; }
.lq-reassure svg { color: var(--lq-accent); }

/* ── Campos ── */
.lq-fields { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lq-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lq-field--full { grid-column: 1 / -1; }
.lq-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; }
.lq-label i { color: var(--lq-accent-strong); font-style: normal; margin-left: 3px; }
.lq-input, .lq-textarea { width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--lq-line); border-radius: 14px; background: var(--color-input-bg, rgba(255, 255, 255, .035)); font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.lq-textarea { min-height: 112px; resize: vertical; }
.lq-input::placeholder, .lq-textarea::placeholder { color: var(--color-text-subtle); opacity: .85; }
.lq-input:hover, .lq-textarea:hover { border-color: var(--color-border-strong); }
.lq-input:focus, .lq-textarea:focus { outline: none; border-color: var(--lq-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lq-accent) 20%, transparent); }
.lq-input[aria-invalid="true"], .lq-textarea[aria-invalid="true"] { border-color: var(--color-danger, #e18a8a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-danger, #e18a8a) 16%, transparent); }
.lq-err { min-height: 0; margin: 0; font-size: 13px; line-height: 1.45; color: var(--color-danger, #e18a8a); }
.lq-err:empty { display: none; }
.lq-hintline { margin: 0; font-size: 12.8px; line-height: 1.5; color: var(--color-text-muted); }
.lq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lq-chip { border: 1px solid var(--lq-line); border-radius: 999px; background: transparent; padding: 8px 14px; font-size: 13.5px; color: var(--color-text-secondary); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.lq-chip:hover { border-color: var(--lq-line-accent); color: var(--color-text-primary); }
.lq-chip.is-on, .lq-chip[aria-pressed="true"] { background: var(--lq-accent); border-color: var(--lq-accent); color: var(--color-accent-ink, #17130a); font-weight: 600; }
.lq-chip:focus-visible { outline: 2px solid var(--color-focus, #f0d06c); outline-offset: 2px; }
.lq-sub { margin: 26px 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; }
.lq-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--color-text-secondary); cursor: pointer; }
.lq-check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--lq-accent); cursor: pointer; }
.lq-check a { color: var(--color-link); }
.lq-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ── Resumen ── */
.lq-review { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.lq-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--lq-line); border-radius: 18px; overflow: hidden; }
.lq-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--lq-line); animation: lq-rise .45s var(--ease-out, ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.lq-row:last-child { border-bottom: 0; }
.lq-row-main { flex: 1; min-width: 0; }
.lq-row small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.lq-row b { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.lq-row .lq-pend { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; border: 1px dashed var(--lq-line-accent); font-size: 11px; font-weight: 500; color: var(--lq-accent-strong); }
.lq-edit { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--lq-line); border-radius: 50%; background: none; color: var(--color-text-muted); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.lq-edit:hover { border-color: var(--lq-accent); color: var(--lq-accent-strong); background: var(--lq-tint); }
.lq-edit svg { width: 16px; height: 16px; }
.lq-scope { padding: 22px; border: 1px solid var(--lq-line-accent); border-radius: 20px; background: linear-gradient(170deg, var(--lq-tint), transparent 60%), var(--color-surface-elevated, #171717); position: sticky; top: 96px; }
.lq-scope h3 { margin: 0 0 4px; font-family: var(--font-display, serif); font-weight: 500; font-size: 24px; line-height: 1.15; }
.lq-scope .lq-meter { margin-top: 14px; }
.lq-scope p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--color-text-secondary); }
.lq-scope h4 { margin: 18px 0 8px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; }
.lq-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lq-list li { display: flex; gap: 10px; font-size: 13.8px; line-height: 1.5; color: var(--color-text-secondary); }
.lq-list li svg { margin-top: 2px; color: var(--lq-accent); }
.lq-fine { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--color-text-muted); }

/* ── Contacto ── */
.lq-send { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--lq-line); }
.lq-send-main { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lq-send-main .lq-btn--primary { flex: 1 1 260px; min-height: 58px; font-size: 16px; }
.lq-email-box { display: none; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--lq-line); border-radius: 18px; background: var(--lq-card); }
.lq-email-box.is-open { display: flex; }
.lq-captcha { min-height: 78px; }
.lq-preview { border: 1px solid var(--lq-line); border-radius: 14px; background: var(--lq-card); }
.lq-preview summary { cursor: pointer; padding: 12px 16px; font-size: 13.5px; color: var(--color-text-secondary); list-style: none; display: flex; align-items: center; gap: 10px; }
.lq-preview summary::-webkit-details-marker { display: none; }
.lq-preview summary svg { color: var(--lq-accent); }
.lq-preview pre { margin: 0; padding: 0 16px 16px; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 13px; line-height: 1.65; color: var(--color-text-secondary); max-height: 300px; overflow: auto; }
.lq-banner { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--color-danger, #e18a8a); background: color-mix(in srgb, var(--color-danger, #e18a8a) 10%, transparent); font-size: 14px; line-height: 1.55; }
.lq-banner a { color: var(--color-link); }
.lq-testmode { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; padding: 8px 16px; border-radius: 999px; border: 1px dashed var(--lq-accent); background: var(--color-surface-elevated, #171717); font-size: 12.5px; letter-spacing: .04em; color: var(--lq-accent-strong); box-shadow: 0 10px 30px -10px #000; pointer-events: none; }

/* ── Éxito ── */
.lq-success { text-align: center; }
.lq-seal { width: 96px; height: 96px; margin: 0 auto 22px; }
.lq-seal circle { fill: none; stroke: var(--lq-accent); stroke-width: 2; stroke-dasharray: 289; stroke-dashoffset: 289; animation: lq-draw .9s .1s var(--ease-out, ease) forwards; }
.lq-seal path { fill: none; stroke: var(--lq-accent-strong); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: lq-draw .6s .85s var(--ease-out, ease) forwards; }
@keyframes lq-draw { to { stroke-dashoffset: 0; } }
.lq-refbox { display: inline-flex; align-items: center; gap: 12px; margin: 6px 0 22px; padding: 10px 10px 10px 18px; border: 1px dashed var(--lq-line-accent); border-radius: 999px; background: var(--lq-tint); font-variant-numeric: tabular-nums; }
.lq-refbox code { font-size: 15px; letter-spacing: .08em; font-weight: 600; }
.lq-next { display: grid; gap: 14px; margin: 30px 0 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; }
.lq-next li { list-style: none; padding: 16px; border: 1px solid var(--lq-line); border-radius: 16px; background: var(--lq-card); font-size: 13.8px; line-height: 1.55; color: var(--color-text-secondary); }
.lq-next b { display: block; margin-bottom: 4px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lq-accent-strong); }
.lq-next { padding: 0; }
.lq-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.lq-center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }

/* ── Glosario: términos y tooltip ── */
.lq-term { cursor: help; border-bottom: 1px dotted var(--lq-accent); color: inherit; text-decoration: none; transition: color .2s, border-color .2s; }
.lq-term:hover, .lq-term:focus-visible { color: var(--lq-accent-strong); border-bottom-style: solid; }
.lq-term:focus-visible { outline: 2px solid var(--color-focus, #f0d06c); outline-offset: 2px; border-radius: 3px; }
a.lq-term { cursor: pointer; color: var(--color-link, var(--lq-accent-strong)); border-bottom: 1px solid color-mix(in srgb, var(--lq-accent) 55%, transparent); }
a.lq-term::after { content: ""; display: inline-block; width: .68em; height: .68em; margin-left: 3px; vertical-align: baseline; background: currentColor; opacity: .8; -webkit-mask: var(--lq-ext) center / contain no-repeat; mask: var(--lq-ext) center / contain no-repeat; }
.lq { --lq-ext: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M7 7h10v10'/><path d='M7 17 17 7'/></svg>"); }
.lq-tip { position: fixed; z-index: 10000; max-width: min(330px, calc(100vw - 24px)); padding: 14px 16px; border: 1px solid var(--lq-line-accent); border-radius: 14px; background: var(--color-surface-elevated, #171717); color: var(--color-text-primary); box-shadow: 0 22px 60px -14px var(--color-shadow, #000); font-size: 14px; line-height: 1.55; opacity: 0; transform: translateY(5px) scale(.98); pointer-events: none; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.lq-tip.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.lq-tip b { display: block; margin-bottom: 4px; font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--lq-accent-strong); }
.lq-tip a { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--color-link, var(--lq-accent-strong)); }

.lq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lq-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 10001; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--lq-line-accent); background: var(--color-surface-elevated, #171717); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 20px 50px -16px #000; }
.lq-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── Responsivo ── */
@media (max-width: 1023px) {
  .lq[data-view="step"] .lq-shell { grid-template-columns: minmax(0, 1fr); }
  .lq-rail { display: none !important; }
  .lq-review { grid-template-columns: minmax(0, 1fr); }
  .lq-scope { position: static; }
}
@media (max-width: 720px) {
  .lq { padding-top: 88px; }
  .lq[data-view="step"], .lq[data-view="success"], .lq[data-view="guide"] { padding-top: 84px; }
  .lq-shell { padding: 0 14px 90px; }
  .lq-head { padding: 4px 18px 22px; }
  .lq-stage { border-radius: 20px; padding: 20px 16px 22px; min-height: 0; }
  .lq-options.cols-2, .lq-options.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .lq-options { gap: 10px; }
  .lq-opt { padding: 14px 48px 14px 14px; }
  .lq-fields { grid-template-columns: minmax(0, 1fr); }
  .lq-next { grid-template-columns: minmax(0, 1fr); }
  .lq-matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lq-matrix-h.corner { display: none; }
  .lq-matrix-row { grid-column: 1 / -1; font-size: 20px; margin-top: 6px; }
  .lq-matrix .lq-opt { min-height: 108px; padding: 14px 6px; }
  .lq-matrix .lq-opt-title { font-size: 12.5px; }
  .lq-actions { position: sticky; bottom: 0; z-index: 5; margin: 22px -16px -22px; padding: 14px 16px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--lq-line); background: color-mix(in srgb, var(--color-surface, #0f0f0f) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 0 0 20px 20px; }
  .lq-actions .lq-btn--primary { flex: 1; }
  .lq-send-main .lq-btn--primary { flex-basis: 100%; }
  .lq-project { padding: 20px 18px; }
  .lq-top { gap: 10px; }
  .lq-restart { display: none; }
}
@media (hover: none) {
  .lq-opt:hover, .lq-project:hover { transform: none; }
  .lq-opt::before, .lq-project::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lq *, .lq *::before, .lq *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .lq-seal circle, .lq-seal path { stroke-dashoffset: 0; }
}

/* ── Ajustes de la primera revisión ── */
.lq-top[hidden] { display: none; }
.lq-stage { scroll-margin-top: 84px; }
.lq[data-view="start"] .lq-stage { border: 0; background: none; box-shadow: none; padding: 0; min-height: 0; }
.lq[data-view="start"] .lq-stage::before { display: none; }
.lq-start-foot { margin: 30px 0 0; padding: 0; list-style: none; }
.lq-actions .lq-btn svg { width: 18px; height: 18px; }

.lq-opt.has-reco:not(.is-checked) { border-color: color-mix(in srgb, var(--lq-accent) 45%, var(--lq-line)); }

/* ── Ajustes móvil (segunda revisión) ── */
.lq-testmode { position: fixed; left: 50%; top: 74px; bottom: auto; box-shadow: none; transform: translateX(-50%); z-index: 40; padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--lq-accent); background: var(--color-surface-elevated, #171717); font-size: 11.5px; letter-spacing: .04em; color: var(--lq-accent-strong); pointer-events: none; white-space: nowrap; }
@media (max-width: 720px) {
  .lq-matrix-h { display: none; }
  .lq-matrix .lq-opt-check { top: 7px; right: 7px; width: 18px; height: 18px; }
  .lq-matrix .lq-opt-check svg { width: 11px; height: 11px; }
}

/* ═════ Premium: iconos duotono y dorado ═════ */
.lq {
  --lq-acc: var(--lq-accent-strong);
  --lq-fill-bg: var(--lum-gold-btn-bg, linear-gradient(135deg, #f0d06c 0%, #d4af37 55%, #c9971f 100%));
  --lq-fill-bg-hover: var(--lum-gold-btn-bg-hover, linear-gradient(135deg, #f6dc84 0%, #deb944 55%, #d3a128 100%));
  --lq-fill-ink: var(--lum-gold-btn-ink, #1c1505);
  --lq-fill-border: var(--lum-gold-btn-border, #d4af37);
  --lq-fill-glow: var(--lum-gold-btn-glow, 0 10px 26px -10px rgba(212, 175, 55, .6));
  --lq-ease: cubic-bezier(.22, 1, .36, 1);
}
html[data-theme="light"] .lq { --lq-acc: color-mix(in srgb, var(--lq-accent) 70%, #000); }

/* Dibujo duotono (idéntico al del navbar) */
.lq .lq-ico { overflow: visible; }
.lq .lq-ico .i-fill { fill: currentColor; fill-opacity: .16; transition: fill-opacity .3s ease; }
.lq .lq-ico .i-acc { stroke: var(--lq-acc); }
.lq .lq-ico .i-dot { fill: var(--lq-acc); stroke: none; }
.lq .lq-opt:hover .lq-ico .i-fill, .lq .lq-project:hover .lq-ico .i-fill, .lq .lq-opt.is-checked .lq-ico .i-fill { fill-opacity: .34; }

/* Mosaico de icono (mismo lenguaje que .nav-dropdown-icon) */
.lq .lq-opt-ico, .lq .lq-project-ico, .lq .lq-rail-project .lq-opt-ico {
  position: relative; display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px; border: 0;
  color: var(--lq-accent);
  background:
    radial-gradient(90% 90% at 25% 15%, color-mix(in srgb, var(--lq-accent) 24%, transparent), transparent 70%),
    color-mix(in srgb, var(--lq-accent) 7%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--lq-accent) 28%, transparent) inset,
    0 1px 0 color-mix(in srgb, #fff 16%, transparent) inset,
    0 8px 18px -10px color-mix(in srgb, var(--lq-accent) 60%, transparent);
  transition: transform .45s var(--lq-ease), box-shadow .3s ease, background .3s ease, color .3s ease;
}
.lq .lq-project-ico { width: 60px; height: 60px; border-radius: 18px; }
.lq .lq-opt--compact .lq-opt-ico { width: 40px; height: 40px; border-radius: 12px; }
.lq .lq-rail-project .lq-opt-ico { width: 42px; height: 42px; }
.lq .lq-opt:hover .lq-opt-ico, .lq .lq-project:hover .lq-project-ico {
  transform: translateY(-1px) scale(1.06) rotate(-3deg); color: var(--lq-accent-strong);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lq-accent) 55%, transparent) inset, 0 1px 0 color-mix(in srgb, #fff 22%, transparent) inset, 0 12px 24px -8px color-mix(in srgb, var(--lq-accent) 75%, transparent);
}
/* Seleccionado: el mosaico se enciende (anillo y brillo), sin relleno sólido */
.lq .lq-opt.is-checked .lq-opt-ico {
  background: radial-gradient(90% 90% at 25% 15%, color-mix(in srgb, var(--lq-accent) 42%, transparent), transparent 72%), color-mix(in srgb, var(--lq-accent) 14%, transparent);
  color: var(--lq-accent-strong); transform: none;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--lq-accent) 80%, transparent) inset, 0 1px 0 color-mix(in srgb, #fff 26%, transparent) inset, 0 12px 26px -8px color-mix(in srgb, var(--lq-accent) 85%, transparent);
}
.lq .lq-project:hover .lq-project-ico { background: radial-gradient(90% 90% at 25% 15%, color-mix(in srgb, var(--lq-accent) 38%, transparent), transparent 72%), color-mix(in srgb, var(--lq-accent) 12%, transparent); }
.lq .lq-opt--unsure .lq-opt-ico { background: transparent; box-shadow: 0 0 0 1px color-mix(in srgb, var(--lq-accent) 30%, transparent) inset; }
.lq .lq-matrix .lq-opt-ico { width: 44px; height: 44px; }
.lq .lq-tag svg, .lq .lq-reassure svg, .lq .lq-start-foot svg, .lq .lq-list li svg { color: var(--lq-accent); }

/* Rellenos dorados (estándar dorado: nunca café en modo claro) */
.lq .lq-btn--primary { background: var(--lq-fill-bg); color: var(--lq-fill-ink); border-color: var(--lq-fill-border); box-shadow: var(--lq-fill-glow); }
.lq .lq-btn--primary:hover { background: var(--lq-fill-bg-hover); }
.lq .lq-btn--outline { color: var(--lum-gold-outline-ink, var(--lq-accent-strong)); }
.lq .lq-bar > i, .lq .lq-meter i.on { background: var(--lq-fill-bg); }
.lq .lq-chip.is-on, .lq .lq-chip[aria-pressed="true"] { background: var(--lq-fill-bg); border-color: var(--lq-fill-border); color: var(--lq-fill-ink); }
.lq .lq-opt.is-checked .lq-opt-check { background: var(--lq-fill-bg); border-color: var(--lq-fill-border); color: var(--lq-fill-ink); }
.lq .lq-beta { background: var(--lq-fill-bg); color: var(--lq-fill-ink); }
.lq .lq-eyebrow i { background: var(--lq-fill-bg); }
.lq .lq-opt.is-checked { background: color-mix(in srgb, var(--lq-accent) 9%, var(--color-surface-elevated, #171717)); }

/* Tarjetas de proyecto: más aire y jerarquía */
.lq .lq-project { padding: 26px 24px 24px; gap: 12px; }
.lq .lq-project-name { font-size: 27px; margin-top: 10px; }
.lq .lq-project-num { top: 20px; right: 24px; }
.lq .lq-opt.is-checked, .lq .lq-project:hover, .lq .lq-project:focus-visible, .lq .lq-edit:hover { border-color: var(--lq-fill-border); }
.lq .lq-input:focus, .lq .lq-textarea:focus { border-color: var(--lq-fill-border); }

/* ── 7.º proyecto: tarjeta ancha (ocupa toda la fila en escritorio) ── */
.lq .lq-project--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; padding: 30px 34px; background:
  radial-gradient(70% 140% at 0% 0%, color-mix(in srgb, var(--lq-accent) 13%, transparent), transparent 60%),
  radial-gradient(60% 120% at 100% 100%, color-mix(in srgb, var(--lq-accent) 8%, transparent), transparent 62%),
  var(--color-surface, #0f0f0f); border-color: var(--lq-line-accent); }
.lq .lq-project--wide .lq-project-num { top: 14px; right: 24px; }
.lq .lq-project--wide .lq-project-ico { width: 78px; height: 78px; border-radius: 22px; }
.lq .lq-project--wide .lq-project-main { display: flex; flex-direction: column; gap: 8px; flex: 1.35; min-width: 0; }
.lq .lq-project--wide .lq-project-name { margin: 0; font-size: clamp(28px, 3vw, 36px); }
.lq .lq-project--wide .lq-project-tag { max-width: 56ch; }
.lq .lq-project--wide .lq-project-who { margin: 2px 0 0; padding: 0; }
.lq .lq-project--wide .lq-project-side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex: 1; min-width: 0; padding-left: 28px; border-left: 1px solid var(--lq-line); }
.lq .lq-ex { display: flex; flex-wrap: wrap; gap: 8px; }
.lq .lq-ex span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--lq-line-accent); background: color-mix(in srgb, var(--lq-accent) 8%, transparent); font-size: 12.5px; color: var(--color-text-secondary); transition: border-color .3s, color .3s; }
.lq .lq-project--wide:hover .lq-ex span { border-color: var(--lq-fill-border); color: var(--color-text-primary); }
.lq .lq-project--wide .lq-project-go { margin: 0; }
.lq .lq-badge-new { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--lq-fill-bg); color: var(--lq-fill-ink); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lq .lq-project--wide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, color-mix(in srgb, var(--lq-accent) 14%, transparent) 50%, transparent 65%); transform: translateX(-100%); transition: transform 1.1s var(--lq-ease); }
.lq .lq-project--wide:hover::after { transform: translateX(100%); }
@media (max-width: 900px) {
  .lq .lq-project--wide { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 22px; }
  .lq .lq-project--wide .lq-project-ico { width: 62px; height: 62px; border-radius: 18px; }
  .lq .lq-project--wide .lq-project-side { padding-left: 0; border-left: 0; gap: 14px; }
}
