/* Rankiko · Generador QR 3D · estilos aislados bajo .rq para no afectar al tema */
.rq {
  --ink: #1C2127; --ink-2: #454D56; --ink-3: #69727C;
  --surface: #F3F5F3; --card: #FFFFFF; --line: #DCE1DC; --line-2: #C9D0CA;
  --green: #00805A; --green-deep: #00654A; --green-tint: #E3F2EC;
  --amber: #8A5100; --amber-tint: #FFF3DC; --red: #B42318; --red-tint: #FDECEA;
  --focus: #0B6BCB;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(28,33,39,.06), 0 8px 24px -12px rgba(28,33,39,.18);
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.5;
  font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased;
  max-width: 1280px; margin: 0 auto; padding: 0 20px 96px; box-sizing: border-box;
}
.rq *, .rq *::before, .rq *::after { box-sizing: border-box; }
.rq :where(h1, h2, h3, p, ol, ul, dl, dd, fieldset, figure) { margin: 0; padding: 0; }
.rq :where(button, input, select, textarea) { font: inherit; color: inherit; }
.rq [hidden] { display: none !important; }
/* Blindaje frente a estilos globales del tema (tipografía y color de encabezados) */
#rq-app :where(h1, h2, h3, h4, p, li, label, legend, summary, button, input, select, textarea, dt, dd, th, td) { font-family: var(--font); text-transform: none; }
#rq-app :where(h1, h2, h3, h4) { color: var(--ink); }
.rq :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rq-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cabecera ---------------------------------------------------------- */
.rq-crumbs ol { list-style: none; display: flex; gap: 8px; font-size: 14px; color: var(--ink-3); padding: 20px 0 0; }
.rq-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.rq-crumbs a { color: var(--ink-2); text-decoration: none; }
.rq-crumbs a:hover { text-decoration: underline; }
.rq-hero { padding: 20px 0 36px; }
.rq-hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 650; text-wrap: balance; }
.rq-lede { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 64ch; }
.rq-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.rq-facts li { display: inline-flex; align-items: center; gap: 8px; }
.rq-facts li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m4 7.2 2 2 4-4.4' fill='none' stroke='%2300654A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Disposición ------------------------------------------------------- */
.rq-tool { display: grid; grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); gap: 24px; align-items: start; }
.rq-config { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rq-preview { position: sticky; top: 16px; min-width: 0; scroll-margin-top: 16px; }
.rq-preview-inner { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* Pasos ------------------------------------------------------------- */
.rq-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rq-step-h { font-size: inherit; }
.rq-step-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: 0; cursor: pointer; text-align: left; border-radius: var(--r-lg); }
.rq-step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 650; background: var(--ink); color: #fff; }
.rq-step-t { font-weight: 620; font-size: 17px; letter-spacing: -0.01em; }
.rq-step-sum { margin-left: auto; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.rq-step-btn::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .18s ease; margin-left: 4px; }
.rq-step.is-open .rq-step-btn::after { transform: rotate(-135deg) translateY(-2px); }
.rq-step.is-open .rq-step-sum { visibility: hidden; }
.rq-step-body { padding: 2px 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.rq-step:not(.is-open) .rq-step-body { display: none; }

/* Campos ------------------------------------------------------------ */
.rq-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rq-field > label, .rq-label, .rq-fs legend { font-size: 14px; font-weight: 560; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.rq-fs { border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rq-fs + .rq-fs { border-top: 1px solid var(--line); padding-top: 16px; }
.rq-fs legend { margin-bottom: 12px; font-size: 15px; font-weight: 620; }
.rq-opt { font-weight: 450; color: var(--ink-3); font-size: 13px; }
.rq input[type=text], .rq input[type=url], .rq input[type=email], .rq input[type=tel], .rq input[type=password], .rq input[type=number], .rq select, .rq textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff;
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; margin: 0;
}
.rq textarea { resize: vertical; min-height: 96px; }
.rq select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23454D56' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center/12px no-repeat; padding-right: 34px; }
.rq input:hover, .rq select:hover, .rq textarea:hover { border-color: #AEB6AF; }
.rq input:focus, .rq select:focus, .rq textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,128,90,.16); outline: none; }
.rq [aria-invalid=true] { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(180,35,24,.12) !important; }
.rq-help { font-size: 13px; color: var(--ink-3); }
.rq-err { font-size: 13px; color: var(--red); font-weight: 520; }
.rq-note { font-size: 13px; color: var(--ink-2); background: var(--surface); border-radius: var(--r-md); padding: 10px 12px; }
.rq-warn-inline { font-size: 13px; color: var(--amber); background: var(--amber-tint); border-radius: var(--r-md); padding: 10px 12px; }
.rq-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rq-input-row { display: flex; gap: 8px; }
.rq-check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; min-height: 32px; }
.rq-check input { width: 18px; height: 18px; accent-color: var(--green); }
.rq-num-in { position: relative; }
.rq-num-in input { padding-right: 44px; }
.rq-num-in span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--ink-3); pointer-events: none; }
.rq-range input[type=range] { width: 100%; accent-color: var(--green); height: 28px; margin: 0; }
.rq-range output { margin-left: auto; font-weight: 500; color: var(--ink-2); }
.rq-link-btn { align-self: flex-start; background: none; border: 0; padding: 2px 0; color: var(--green-deep); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Segmentados, chips y selecciones ---------------------------------- */
.rq-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 3px; gap: 3px; }
.rq-seg label { position: relative; cursor: pointer; }
.rq-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rq-seg span { display: grid; place-items: center; min-height: 38px; padding: 6px 8px; border-radius: 7px; font-size: 14px; font-weight: 540; color: var(--ink-2); text-align: center; transition: background .15s, color .15s, box-shadow .15s; }
.rq-seg-sm span { min-height: 34px; font-size: 13px; }
.rq-seg label:hover span { color: var(--ink); }
.rq-seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(28,33,39,.12), 0 0 0 1px var(--line); }
.rq-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.rq-uses, .rq-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.rq-chip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 12px; min-height: 34px; font-size: 13px; font-weight: 520; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.rq-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.rq-chip.is-on { background: var(--green-tint); border-color: var(--green); color: var(--green-deep); }
.rq-palettes, .rq-filaments { display: flex; gap: 8px; flex-wrap: wrap; }
.rq-pal { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; padding: 4px; cursor: pointer; transition: transform .12s, border-color .15s; }
.rq-pal i { display: block; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--b) 0 50%, var(--a) 50% 100%); box-shadow: inset 0 0 0 1px rgba(28,33,39,.12); }
.rq-pal:hover { transform: scale(1.06); }
.rq-pal.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.rq-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rq-colors-2 { grid-template-columns: 1fr 1fr; }
.rq-color { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rq-color label { font-size: 13px; font-weight: 540; color: var(--ink-2); }
.rq-color-in { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 3px 3px 3px 4px; background: #fff; min-height: 44px; }
.rq-color-in:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,128,90,.16); }
.rq-color-in input[type=color] { flex: none; width: 34px; height: 34px; border: 0; border-radius: 7px; padding: 0; background: none; cursor: pointer; }
.rq-color-in input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.rq-color-in input[type=color]::-webkit-color-swatch { border: 1px solid rgba(28,33,39,.15); border-radius: 7px; }
.rq-color-in input[type=color]::-moz-color-swatch { border: 1px solid rgba(28,33,39,.15); border-radius: 7px; }
.rq .rq-color-in input[type=text] { border: 0; min-height: 34px; padding: 4px 6px; text-transform: uppercase; box-shadow: none; font-size: 14px; min-width: 0; }
.rq-contrast { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.rq-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.rq-contrast[data-level=warn] .rq-dot { background: #D98A00; }
.rq-contrast[data-level=warn] { color: var(--amber); }
.rq-contrast[data-level=error] .rq-dot { background: var(--red); }
.rq-contrast[data-level=error] { color: var(--red); }

.rq-symbols { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.rq-sym { position: relative; }
.rq-sym input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rq-sym span { display: grid; place-items: center; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; transition: border-color .15s, background .15s; }
.rq-sym svg { width: 22px; height: 22px; }
.rq-sym span em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.rq-sym input:checked + span { border-color: var(--green); background: var(--green-tint); box-shadow: 0 0 0 1px var(--green); }
.rq-sym input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.rq-drop { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); padding: 12px; background: var(--surface); }
.rq-drop.is-over { border-color: var(--green); background: var(--green-tint); }
.rq-drop-lbl { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-3); cursor: pointer; flex: 1; }
.rq-drop-lbl strong { color: var(--green-deep); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.rq-drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.rq-drop img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.rq-adv summary { cursor: pointer; font-size: 14px; font-weight: 560; color: var(--ink-2); padding: 4px 0; list-style-position: inside; }
.rq-adv[open] summary { margin-bottom: 12px; }
.rq-tip { position: relative; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; font-size: 11px; font-weight: 650; color: var(--ink-3); cursor: help; padding: 0; line-height: 1; }
.rq-tip::before { content: ""; position: absolute; inset: -10px; }
.rq-tip-text { display: none; font-size: 13px; font-weight: 450; background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 8px 10px; max-width: 280px; }
.rq-field:has(.rq-tip:hover) .rq-tip-text, .rq-field:has(.rq-tip:focus) .rq-tip-text { display: block; }

.rq-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rq-mode { position: relative; cursor: pointer; }
.rq-mode input, .rq-model input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rq-mode > span { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 14px; min-height: 64px; transition: border-color .15s, box-shadow .15s; }
.rq-mode strong { font-size: 14px; font-weight: 600; }
.rq-mode small { font-size: 13px; color: var(--ink-3); }
.rq-mode input:checked + span, .rq-model input:checked + .rq-model-card { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); background: #FBFDFC; }
.rq-mode input:focus-visible + span, .rq-model input:focus-visible + .rq-model-card { outline: 2px solid var(--focus); outline-offset: 2px; }
.rq-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rq-model { position: relative; cursor: pointer; }
.rq-model-card { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px; height: 100%; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rq-model:hover .rq-model-card { border-color: var(--ink-3); }
.rq-model-card svg { width: 100%; height: auto; aspect-ratio: 3 / 2; background: var(--surface); border-radius: 7px; margin-bottom: 6px; }

.rq-model-card strong { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.rq-model-card small { font-size: 12px; color: var(--ink-3); line-height: 1.3; }

.rq-config-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Botones ----------------------------------------------------------- */
.rq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: var(--r-md); border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .08s; white-space: nowrap; }
.rq-btn:hover { background: #2D343C; }
.rq-btn:active { transform: translateY(1px); }
.rq-btn svg { width: 18px; height: 18px; flex: none; }
.rq-btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.rq-btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.rq-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.rq-btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.rq-btn-quiet { background: transparent; color: var(--ink-2); border-color: transparent; }
.rq-btn-quiet:hover { background: var(--surface); color: var(--ink); }
.rq-btn-xl { width: 100%; min-height: 54px; font-size: 16px; }
.rq-btn[disabled], .rq-btn[aria-disabled=true] { background: #E6EAE7; border-color: #E6EAE7; color: #7A838C; cursor: not-allowed; transform: none; }
.rq-btn.is-busy { position: relative; color: transparent !important; }
.rq-btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: rq-spin .7s linear infinite; }
.rq-btn-ghost.is-busy::after { border-color: rgba(28,33,39,.2); border-top-color: var(--ink); }

/* Vista previa ------------------------------------------------------ */
.rq-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px -4px 0; padding: 0 4px; }
.rq-tabs [role=tab] { border: 0; background: none; padding: 10px 12px 12px; font-size: 14px; font-weight: 580; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rq-tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--ink); }
.rq-status { margin-left: auto; font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.rq-status.is-busy::before { content: ""; width: 12px; height: 12px; border: 1.6px solid var(--line-2); border-top-color: var(--ink-2); border-radius: 50%; animation: rq-spin .7s linear infinite; }

.rq-bed {
  position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; min-height: 320px; max-height: 62vh; width: 100%;
  background-color: #EEF1EE;
  background-image:
    linear-gradient(rgba(28,33,39,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(28,33,39,.07) 1px, transparent 1px),
    linear-gradient(rgba(28,33,39,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(28,33,39,.035) 1px, transparent 1px),
    radial-gradient(120% 90% at 50% 20%, #FAFBFA 0%, #E9EDEA 100%);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px, 100% 100%;
  background-position: center;
}
.rq-bed.is-contrast { background: #fff; }
.rq-canvas-host { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.rq-canvas-host:active { cursor: grabbing; }
.rq-canvas-host canvas { display: block; width: 100% !important; height: 100% !important; }
.rq-stage-loading, .rq-stage-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--ink-2); text-align: center; padding: 24px; }
.rq-stage-empty { background: rgba(243,245,243,.92); }
.rq-spinner { width: 28px; height: 28px; border: 2px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: rq-spin .8s linear infinite; }
.rq-dims { position: absolute; left: 12px; top: 12px; font-size: 13px; font-weight: 560; color: var(--ink); background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; pointer-events: none; }
.rq-dims:empty { display: none; }
.rq-viewbar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 16px -8px rgba(28,33,39,.3); }
.rq-vbtn { white-space: nowrap; border: 0; background: none; border-radius: 999px; padding: 6px 12px; min-height: 34px; font-size: 13px; font-weight: 560; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; }
.rq-vbtn:hover { color: var(--ink); background: var(--surface); }
.rq-vbtn.is-on { background: var(--ink); color: #fff; }
.rq-vbtn-icon { width: 34px; padding: 0; justify-content: center; }
.rq-vbtn svg { width: 16px; height: 16px; }
.rq-gesture { position: absolute; right: 12px; top: 14px; font-size: 12px; color: var(--ink-3); pointer-events: none; }
.rq-sheet { border-radius: var(--r-md); background: var(--surface); display: grid; place-items: center; aspect-ratio: 4 / 3; min-height: 320px; max-height: 62vh; padding: 24px; }
.rq-svg-host { width: min(100%, 360px); aspect-ratio: 1; box-shadow: 0 1px 2px rgba(28,33,39,.08), 0 12px 32px -16px rgba(28,33,39,.35); border-radius: 4px; overflow: hidden; background: #fff; }
.rq-svg-host svg { display: block; width: 100%; height: 100%; }

.rq-summary dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.rq-summary dl > div { background: #fff; padding: 8px 10px; min-width: 0; }
.rq-summary dt { font-size: 12px; color: var(--ink-3); }
.rq-summary dd { font-size: 14px; font-weight: 580; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.rq-swatch { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(28,33,39,.2); flex: none; }

.rq-checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.rq-checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.rq-checks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.rq-checks li[data-s=ok]::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px; box-shadow: none; }
.rq-checks li[data-s=warn]::before { background: #D98A00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.5v4.2M8 11.3v.2' stroke='%23fff' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center/16px; box-shadow: none; }
.rq-checks li[data-s=error]::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m5.5 5.5 5 5m0-5-5 5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px; box-shadow: none; }
.rq-checks li[data-s=busy]::before { border: 1.6px solid var(--line-2); border-top-color: var(--ink-2); box-shadow: none; animation: rq-spin .7s linear infinite; background: none; }
.rq-alert { border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; background: var(--amber-tint); color: #5C3600; display: flex; flex-direction: column; gap: 8px; }
.rq-alert[data-level=error] { background: var(--red-tint); color: #7A1810; }
.rq-alert ul { padding-left: 18px; }
.rq-alert .rq-alert-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rq-alert .rq-btn { min-height: 38px; padding: 6px 12px; font-size: 14px; }

.rq-downloads { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.rq-dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rq-dl-row .rq-btn { font-size: 14px; white-space: normal; text-align: center; line-height: 1.2; }
.rq-dl-note { font-size: 13px; color: var(--ink-3); }
.rq-dl-2d { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr 1fr; gap: 8px; align-items: end; }
.rq-dl-2d .rq-btn { background: #fff; color: var(--ink); border-color: var(--line-2); font-size: 14px; }
.rq-dl-2d .rq-btn:hover { background: var(--surface); }
.rq[data-mode="2d"] .rq-dl-2d .rq-btn[data-dl=png] { background: var(--green); border-color: var(--green); color: #fff; }
.rq[data-mode="2d"] .rq-dl-2d .rq-btn[data-dl=png]:hover { background: var(--green-deep); }
.rq-png-size label { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.rq-privacy { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; }
.rq-privacy::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='2.5' y='6' width='9' height='6.5' rx='1.5' fill='none' stroke='%2369727C' stroke-width='1.3'/%3E%3Cpath d='M4.5 6V4.5a2.5 2.5 0 0 1 5 0V6' fill='none' stroke='%2369727C' stroke-width='1.3'/%3E%3C/svg%3E") center/14px no-repeat; }
.rq[data-mode="2d"] [data-show-3d] { display: none !important; }

/* Publicidad (marcadores) ------------------------------------------ */
.rq-ad { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px dashed var(--line-2); border-radius: var(--r-md); background: repeating-linear-gradient(-45deg, #F7F8F7 0 10px, #F2F4F2 10px 20px); color: var(--ink-3); font-size: 13px; }
.rq-ad-tag { font-size: 11px; font-weight: 650; letter-spacing: .06em; color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; }
.rq-ad-banner { margin: 32px auto 0; min-height: 90px; max-width: 728px; }
.rq-ad-inline { min-height: 250px; margin: 8px 0; }
.rq-ad-modal { min-height: 250px; }
.rq-toast-ad { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: 300px; min-height: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 12px 40px 12px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-3); animation: rq-in .24s ease-out; }
.rq-toast-ad .rq-ad-tag { align-self: flex-start; }
.rq-toast-x, .rq-modal-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.rq-toast-x:hover, .rq-modal-x:hover { background: var(--surface); color: var(--ink); }
.rq-toast-x svg, .rq-modal-x svg { width: 18px; height: 18px; }

.rq-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.rq-modal-backdrop { position: absolute; inset: 0; background: rgba(28,33,39,.48); animation: rq-fade .2s ease-out; }
.rq-modal-card { position: relative; width: min(420px, 100%); background: #fff; border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 64px -24px rgba(28,33,39,.5); animation: rq-in .22s ease-out; max-height: calc(100vh - 32px); overflow: auto; }
.rq-modal-kicker { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding-right: 36px; }
.rq-modal-d { font-size: 14px; color: var(--ink-2); }
.rq-confirm-t { font-size: 18px; font-weight: 640; }
.rq-confirm-actions { display: flex; flex-direction: column; gap: 8px; }
.rq-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; font-size: 14px; border-radius: 999px; padding: 10px 18px; box-shadow: var(--shadow); animation: rq-in .2s ease-out; max-width: calc(100vw - 32px); }

.rq-mobilebar { display: none; }
.rq-dl-mobile { display: none; }

/* Contenido --------------------------------------------------------- */
.rq-content { max-width: 880px; margin: 64px auto 0; display: flex; flex-direction: column; gap: 56px; }
.rq-sec h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; line-height: 1.15; font-weight: 640; margin-bottom: 20px; }
.rq-sec h3 { font-size: 17px; font-weight: 620; letter-spacing: -0.01em; }
.rq-sec p { color: var(--ink-2); max-width: 70ch; }
.rq-how { list-style: none; counter-reset: rq; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rq-how li { counter-increment: rq; border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.rq-how li::before { content: counter(rq); font-size: 14px; font-weight: 650; color: var(--green-deep); }
.rq-ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 28px; }
.rq-ideas > div { display: flex; flex-direction: column; gap: 6px; }
.rq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.rq-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rq-list li { position: relative; padding-left: 22px; color: var(--ink-2); }
.rq-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--green); border-radius: 2px; }
.rq-small { font-size: 14px; margin-top: 20px; color: var(--ink-3) !important; }
.rq-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 16px; }
.rq-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.rq-table th, .rq-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rq-table thead th { background: var(--surface); font-size: 13px; color: var(--ink-2); font-weight: 600; }
.rq-table tbody th { font-weight: 560; }
.rq-table tbody tr:last-child > * { border-bottom: 0; }
.rq-faq { border-top: 1px solid var(--line); }
.rq-faq details { border-bottom: 1px solid var(--line); }
.rq-faq summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; position: relative; }
.rq-faq summary::-webkit-details-marker { display: none; }
.rq-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--ink-2), var(--ink-2)) center/12px 1.6px no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) center/1.6px 12px no-repeat; transition: transform .18s; }
.rq-faq details[open] summary::after { transform: rotate(45deg); }
.rq-faq summary h3 { display: inline; font-size: 17px; }
.rq-faq details p { padding: 0 0 18px; }

@keyframes rq-spin { to { transform: rotate(360deg); } }
@keyframes rq-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rq-toast { animation-name: rq-in-center; }
@keyframes rq-in-center { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes rq-fade { from { opacity: 0; } to { opacity: 1; } }

/* Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .rq-tool { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); }
  .rq-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rq { padding: 0 16px 120px; }
  .rq-tool { grid-template-columns: minmax(0, 1fr); }
  .rq-preview { position: static; order: -1; }
  .rq-dl-mobile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
  .rq-dl-mobile .rq-downloads { border-top: 0; padding-top: 0; }
  .rq-bed, .rq-sheet { aspect-ratio: 1 / 1; max-height: 70vh; min-height: 0; }
  .rq-how, .rq-ideas { grid-template-columns: 1fr; }
  .rq-cols { grid-template-columns: 1fr; gap: 12px; }
  .rq-mobilebar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(28,33,39,.3); }
  .rq[data-mode="2d"] .rq-mobilebar [data-dl-proxy] { background: var(--green); }
  .rq-toast-ad { left: 12px; right: 12px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .rq-toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .rq-gesture { display: none; }
  .rq-ad-banner { min-height: 100px; }
}
@media (max-width: 520px) {
  .rq-hero h1 { font-size: 30px; }
  .rq-lede { font-size: 16px; }
  .rq-grid2, .rq-colors { grid-template-columns: 1fr 1fr; }
  .rq-colors:not(.rq-colors-2) { grid-template-columns: 1fr 1fr 1fr; }
  .rq-colors:not(.rq-colors-2) .rq-color-in input[type=color] { width: 28px; }
  .rq-models { grid-template-columns: 1fr; }
  .rq-model-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .rq-model-card svg { width: 84px; margin: 0; flex: none; }
  .rq-model-card strong { flex: 1; }
  .rq-model-card small { flex-basis: 100%; padding-left: 96px; margin-top: -18px; }
  .rq-checks { grid-template-columns: 1fr; }
  .rq-dl-row { grid-template-columns: 1fr; }
  .rq-dl-2d { grid-template-columns: 1fr 1fr; }
  .rq-dl-2d .rq-png-size { grid-column: 1 / -1; }
  .rq-vbtn { padding: 6px 9px; font-size: 12px; }
  .rq-step-sum { display: none; }
  .rq-summary dd { white-space: normal; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .rq *, .rq *::before, .rq *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   v1.1 · Segunda pasada visual y cuentas
   ===================================================================== */
/* Algunos temas limitan el ancho del contenido: la herramienta recupera su ancho útil (usar plantilla de ancho completo). */
#rq-app.rq, #rq-account-page.rq { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
.rq-acc-layer { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.rq-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.rq-topbar .rq-crumbs { padding: 0; }
.rq-userbar { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.rq-btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 8px; }
.rq-link { white-space: nowrap; background: none; border: 0; padding: 4px 2px; color: var(--green-deep); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; min-height: 32px; }
.rq-link:hover { color: var(--ink); }
.rq-demo-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--amber); background: var(--amber-tint); border-radius: 999px; padding: 2px 10px; }

/* Hero */
.rq-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; }
.rq-kicker { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 12px; }
.rq-hero .rq-lede { font-size: 18.5px; line-height: 1.55; }
.rq-values { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.rq-values li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.rq-values svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--green-deep); }
.rq-values span { display: flex; flex-direction: column; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.rq-values strong { color: var(--ink); font-size: 15.5px; font-weight: 620; }
.rq-hero .rq-facts { margin-top: 22px; }
.rq-hero-visual { position: relative; margin: 0; border-radius: 22px; background:
  linear-gradient(var(--card), var(--card)) padding-box,
  linear-gradient(160deg, #E6ECE7, #F7F8F6) border-box; border: 1px solid transparent; padding: 20px 20px 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 60px -40px rgba(28,33,39,.35); }
.rq-hero-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(28,33,39,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(28,33,39,.045) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at 50% 60%, #000 30%, transparent 75%); pointer-events: none; }
.rq-hero-visual svg { position: relative; display: block; width: 100%; height: auto; }
.rq-hero-visual figcaption { position: relative; font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 4px; }

/* Miniaturas de modelo */
.rq-model-card svg .m-face { fill: #FFFFFF; stroke: #B9C0BA; stroke-width: 1; }
.rq-model-card svg .m-top { fill: #EEF1ED; stroke: #B9C0BA; stroke-width: 1; }
.rq-model-card svg .m-edge { fill: #CFD5CE; }
.rq-model-card svg .m-side { fill: #D6DCD5; }
.rq-model-card svg .m-ring { fill: none; stroke: var(--ink); stroke-width: 3; }
.rq-model-card svg .m-hole { fill: var(--surface); stroke: #B9C0BA; }
.rq-model-card svg .m-code path { fill: var(--ink); }
.rq-model input:checked + .rq-model-card svg .m-code path, .rq-model input:checked + .rq-model-card svg .m-ring { fill: var(--green-deep); stroke: var(--green-deep); }
.rq-model input:checked + .rq-model-card svg .m-ring { fill: none; }
.rq-model-card { padding: 12px; gap: 3px; }
.rq-model input:checked + .rq-model-card { box-shadow: 0 0 0 1.5px var(--green) inset, 0 10px 24px -16px rgba(0,101,74,.55); }

/* Combinaciones de filamento */
.rq-filaments { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.rq-fil { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.rq-fil:hover { border-color: var(--ink-3); }
.rq-fil.is-on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.rq-fil-sw { position: relative; flex: none; width: 34px; height: 26px; }
.rq-fil-sw::before, .rq-fil-sw::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; top: 2px; box-shadow: inset 0 0 0 1px rgba(28,33,39,.14), 0 1px 2px rgba(28,33,39,.12); }
.rq-fil-sw::before { left: 0; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 55%), var(--b); }
.rq-fil-sw::after { left: 12px; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 55%), var(--a); }
.rq-fil-t { font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.rq-fil-t strong { color: var(--ink); font-weight: 600; }

/* Descargas con cuenta */
.rq-btn-xl { white-space: normal; flex-wrap: wrap; row-gap: 4px; }
.rq-lock { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 12.5px; font-weight: 600; }
.rq-lock svg { width: 13px; height: 13px; }
.rq-lock-sm { padding: 3px 5px; background: var(--surface); color: var(--ink-2); }
.rq-account-note { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); background: var(--green-tint); border-radius: var(--r-md); padding: 10px 12px; }
.rq-save-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.rq-save-row .rq-btn { flex: 1 1 auto; }

/* Modal de acceso */
html.rq-lock-scroll { overflow: hidden; }
.rq-auth-card { width: min(480px, 100%); padding: 26px; gap: 16px; }
.rq-auth-head { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding-right: 28px; }
.rq-auth-file { position: relative; width: 64px; height: 64px; border-radius: 16px; background: var(--green-tint); display: grid; place-items: center; }
.rq-auth-file svg { width: 40px; height: 40px; }
.rq-auth-file span { position: absolute; bottom: -6px; right: -6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 6px; letter-spacing: .03em; }
.rq-auth-head h2 { font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
.rq-auth-head p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.rq-auth-benefits { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 14px; background: var(--surface); border-radius: var(--r-md); font-size: 13.5px; }
.rq-auth-benefits li { display: flex; gap: 8px; align-items: flex-start; }
.rq-auth-benefits li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.rq-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); padding: 4px; border-radius: 12px; gap: 4px; }
.rq-auth-tabs button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.rq-auth-tabs button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(28,33,39,.1), 0 0 0 1px var(--line); }
.rq-auth-form { display: flex; flex-direction: column; gap: 12px; }
.rq-auth-alt { font-size: 12.5px; color: var(--ink-3); text-align: center; display: flex; align-items: center; gap: 10px; }
.rq-auth-alt::before, .rq-auth-alt::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rq-pass { position: relative; }
.rq-pass input { width: 100%; padding-right: 86px !important; }
.rq-pass-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 34px; padding: 0 10px; border: 0; background: var(--surface); border-radius: 7px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.rq-meter { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rq-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #C2410C, #CA8A04 45%, var(--green)); background-size: 300px 100%; transition: width .2s; }
.rq-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.rq-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }
.rq-check a { color: var(--green-deep); }
.rq-check em { font-style: normal; color: var(--ink-3); font-size: 12.5px; }
.rq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq-form-err { background: var(--red-tint); border-radius: 8px; padding: 10px 12px; }
.rq-ok { font-size: 14px; color: var(--green-deep); background: var(--green-tint); border-radius: 8px; padding: 10px 12px; }
.rq-notice { font-size: 14px; background: var(--amber-tint); color: #5C3600; border-radius: 8px; padding: 10px 12px; }
.rq-auth-links { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rq-auth-later { align-self: center; }
.rq-auth-foot { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.rq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rq-dlg-t { font-size: 20px; font-weight: 650; padding-right: 36px; }
#rq-save-form { display: flex; flex-direction: column; gap: 14px; }
.rq-save-notes { list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--ink-3); }
.rq-save-notes li { padding-left: 18px; position: relative; }
.rq-save-notes li::before { content: "i"; position: absolute; left: 0; top: 1px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--ink-3); font-size: 9px; line-height: 11px; text-align: center; font-weight: 700; }
.rq-dlg-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Usuario identificado */
.rq-acc-menu { position: relative; }
.rq-acc-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; max-width: 260px; }
.rq-acc-btn svg { width: 14px; height: 14px; flex: none; }
.rq-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.rq-acc-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-acc-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.rq-acc-pop > button, .rq-acc-pop > a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.rq-acc-pop > button:hover, .rq-acc-pop > a:hover { background: var(--surface); }
.rq-acc-pop .rq-demo-tag { margin: 4px 6px 6px; }
.rq-acc-note { margin: 4px 10px 8px; font-size: 13px; color: var(--ink-2); }
.rq-acc-count { font-size: 12px; color: var(--ink-3); }

/* Mis diseños */
.rq-drawer { position: fixed; inset: 0; z-index: 100; }
.rq-drawer-card { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface); box-shadow: -24px 0 64px -24px rgba(28,33,39,.4); display: flex; flex-direction: column; animation: rq-slide .24s ease-out; }
@keyframes rq-slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.rq-drawer-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 22px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.rq-drawer-head h2 { font-size: 22px; font-weight: 650; }
.rq-drawer-head .rq-modal-x { position: static; }
.rq-projects-body { overflow: auto; padding: 16px 16px 32px; flex: 1; }
.rq-plist { list-style: none; display: grid; gap: 10px; }
.rq-pitem { display: grid; grid-template-columns: 72px 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.rq-pthumb { width: 72px; height: 72px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; }
.rq-pthumb svg { width: 60px; height: 60px; }
.rq-pmeta { min-width: 0; }
.rq-pname { font-size: 15.5px; font-weight: 620; overflow-wrap: anywhere; }
.rq-pinfo { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.rq-pchip { font-size: 12px; background: var(--surface); border-radius: 999px; padding: 2px 8px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 3px; }
.rq-pchip-sw i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(28,33,39,.18); }
.rq-pdate { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.rq-pnote { font-size: 12.5px; color: var(--amber); margin-top: 4px; }
.rq-pactions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.rq-danger { color: var(--red) !important; }
.rq-btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.rq-btn-danger:hover { background: #8F1C13; }
.rq-confirm-del { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; width: 100%; background: var(--red-tint); padding: 8px; border-radius: 10px; font-size: 13.5px; }
.rq-confirm-del span { flex: 1 1 140px; }
.rq-rename { display: flex; gap: 6px; flex-wrap: wrap; }
.rq-rename input { flex: 1 1 160px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; }
.rq-empty { text-align: center; background: #fff; border: 1px dashed var(--line-2); border-radius: 16px; padding: 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rq-empty svg { width: 56px; height: 56px; color: var(--green-deep); opacity: .8; }
.rq-empty h3 { font-size: 17px; font-weight: 620; }
.rq-empty p { font-size: 14px; color: var(--ink-2); max-width: 36ch; }
.rq-plist-foot { text-align: center; margin-top: 16px; }
.rq-acc-toast { z-index: 130; }

/* Página Mi cuenta */
.rq-account-page { padding-top: 24px; }
.rq-acc-hero { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.rq-acc-hero h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 650; letter-spacing: -.02em; }
.rq-acc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.rq-acc-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.rq-acc-cta .rq-btn-xl { width: auto; }
.rq-acc-projects .rq-plist { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.rq-acc-danger { margin-top: 40px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rq-acc-danger h2 { font-size: 17px; font-weight: 620; }
.rq-acc-danger p { font-size: 14px; color: var(--ink-2); }

@media (max-width: 960px) {
  .rq-hero { grid-template-columns: 1fr; gap: 24px; }
  .rq-hero-visual { max-width: 520px; }
}
@media (max-width: 860px) {
  .rq-hero-visual { display: none; }
  .rq-values { margin-top: 18px; gap: 10px; }
  .rq-values li { grid-template-columns: 32px 1fr; gap: 10px; }
  .rq-values svg { width: 32px; height: 32px; padding: 6px; border-radius: 9px; }
  .rq-values span { font-size: 13.5px; }
}
@media (max-width: 520px) {
  .rq-topbar { flex-wrap: wrap; min-height: 0; padding-top: 8px; }
  .rq-userbar { width: 100%; justify-content: flex-end; }
  .rq-acc-mail { max-width: 150px; }
  .rq-auth-card { padding: 20px 16px; }
  .rq-auth-benefits { grid-template-columns: 1fr; }
  .rq-auth-head { grid-template-columns: 48px 1fr; gap: 12px; }
  .rq-auth-file { width: 48px; height: 48px; border-radius: 12px; }
  .rq-auth-file svg { width: 30px; height: 30px; }
  .rq-auth-head h2 { font-size: 19px; }
  .rq-auth-tabs button { font-size: 13.5px; padding: 0 6px; line-height: 1.2; }
  .rq-modal { place-items: end center; padding: 0; }
  .rq-modal-card { width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .rq-acc-projects .rq-plist { grid-template-columns: 1fr; }
  .rq-fil-t { font-size: 12.5px; }
  .rq-viewbar { max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none; }
  .rq-btn { white-space: normal; text-align: center; min-width: 0; }
  .rq-tool, .rq-config, .rq-preview, .rq-step, .rq-dl-mobile { min-width: 0; max-width: 100%; }
  .rq-vbtn { padding-left: 10px; padding-right: 10px; font-size: 13px; }
  .rq-btn .rq-lock:not(.rq-lock-sm) { font-size: 11.5px; padding: 2px 7px; }
  .rq-mobilebar .rq-btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .rq-drawer-card, .rq-modal-card, .rq-modal-backdrop { animation: none; }
}

/* v1.1 · Verificación de correo */
.rq-verify { text-align: left; }
.rq-verify-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--green-tint); display: grid; place-items: center; }
.rq-verify-icon svg { width: 38px; height: 38px; }
.rq-verify-t { font-size: 22px; padding-right: 28px; font-weight: 650; letter-spacing: -.01em; }
.rq-verify-d { font-size: 14.5px; color: var(--ink-2); }
.rq-verify-d strong { color: var(--ink); overflow-wrap: anywhere; }
.rq-verify-steps { list-style: none; display: grid; gap: 6px; padding: 12px 14px; background: var(--surface); border-radius: var(--r-md); font-size: 13.5px; color: var(--ink-2); }
.rq-verify-steps li { position: relative; padding-left: 18px; }
.rq-verify-steps li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.rq-verify-wait { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.rq-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0,128,90,.45); animation: rq-pulse 1.8s ease-out infinite; }
@keyframes rq-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,128,90,.45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(0,128,90,0); } }
.rq-verify-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rq-btn-demo { background: var(--amber-tint); border: 1px dashed #C98A2B; color: #5C3600; min-height: 40px; font-size: 13.5px; }
.rq-btn-demo:hover { background: #FBE7C2; }
.rq-change { border-top: 1px solid var(--line); padding-top: 10px; }
.rq-change-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 560; }
.rq-change-row { display: flex; gap: 6px; flex-wrap: wrap; }
.rq-change-row input { flex: 1 1 180px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; }
.rq-acc-pending { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 650; color: var(--amber); background: var(--amber-tint); border-radius: 999px; padding: 1px 8px; }
.rq-auth-closed { font-size: 14px; background: var(--surface); border-radius: var(--r-md); padding: 14px; color: var(--ink-2); }
.rq-demo-note { font-size: 12px; color: #5C3600; background: var(--amber-tint); border-radius: 8px; padding: 6px 10px; text-align: center; }
.rq-pending-box { display: block; }
@media (max-width: 520px) { .rq-verify-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rq-pulse { animation: none; } }


/* Contraste de la tabla 3MF/STL frente a estilos globales del tema */
#rq-app .rq-table { background: var(--card) !important; color: var(--ink) !important; }
#rq-app .rq-table th, #rq-app .rq-table td { color: var(--ink) !important; background: var(--card) !important; border-color: var(--line) !important; }
#rq-app .rq-table thead th { background: var(--green-tint) !important; color: var(--green-deep) !important; font-size: 13px; font-weight: 650; }
#rq-app .rq-table tbody th { background: var(--surface) !important; color: var(--ink) !important; font-weight: 600; }
#rq-app .rq-table tbody tr:nth-child(even) td { background: #F8FAF9 !important; }
