/* Napki · personalizador de servilletas.
 * Toma los tokens del tema (napki-es/fr/it) con respaldo. Mobile-first.
 * Firma visual: la servilleta sobre una «mesa de pruebas» de imprenta, con
 * marcas de corte y regla en dorado (se dibujan en el canvas). */
.nkof, .nkof-dest {
  --of-bg: var(--bg, #0a0f1e);
  --of-bg2: var(--bg-alt, #111827);
  --of-card: var(--bg-card, #1a2035);
  --of-card2: #212943;
  --of-line: rgba(255, 255, 255, .09);
  --of-line2: rgba(255, 255, 255, .16);
  --of-gold: var(--gold, #c8a45a);
  --of-gold-l: var(--gold-light, #e4c97b);
  --of-gold-d: var(--gold-dark, #a07d3a);
  --of-gold-t: rgba(200, 164, 90, .12);
  --of-text: var(--text, #e2e8f0);
  --of-text2: var(--text-secondary, #a3b1c6);
  --of-danger: #fca5a5;
  --of-ok: #86efac;
  --of-warn: #fcd34d;
  --of-serif: var(--font-serif, 'Playfair Display', Georgia, serif);
  --of-sans: var(--font-sans, 'Inter', system-ui, sans-serif);
  --of-r: 16px;
  --of-r-s: 10px;
  --of-ease: cubic-bezier(.2, .7, .2, 1);
  color: var(--of-text);
  font-family: var(--of-sans);
  -webkit-tap-highlight-color: transparent;
}
/* La página va dentro de la columna estrecha de las páginas legales del tema:
 * el personalizador se sale de ella hasta 1200 px, centrado en la ventana. */
.nkof { width: min(1200px, calc(100vw - 32px)); margin: 0 0 0 calc(50% - min(600px, 50vw - 16px)); padding: 24px 0 120px; box-sizing: border-box; }
.nkof *, .nkof *::before, .nkof *::after { box-sizing: border-box; }
.nkof [hidden] { display: none !important; }
#nkof a { text-decoration: none; }
#nkof .nkof-pasos a { color: var(--of-text2); }
#nkof .nkof-pasos a.is-on { color: #fff; }
#nkof .nkof-check a, #nkof .nkof-cond a { text-decoration: underline; color: var(--of-gold-l); }
#nkof .nkof-pasos ol { margin: 0; padding: 0; }
#nkof .nkof-pasos li { list-style: none; margin: 0; padding: 0; }
#nkof .nkof-cond ol { margin: 12px 0 0; padding-left: 20px; }
#nkof .nkof-cond li { margin: 0; }
/* El tema estiliza botones, labels e inputs de forma global: aquí se neutraliza. */
.nkof button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; }
.nkof label { margin: 0; font-weight: inherit; }
.nkof h1, .nkof h2, .nkof h3, .nkof p { margin: 0; }
.nkof-i { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------- cabecera */
.nkof-head { max-width: 720px; margin-bottom: 24px; }
.nkof-eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--of-gold); margin-bottom: 10px; font-weight: 600; }
.nkof-head h1, .nkof-head h2 { font-family: var(--of-serif); font-size: clamp(28px, 6.4vw, 46px); line-height: 1.1; margin-bottom: 12px; color: #fff; font-weight: 600; text-wrap: balance; }
.nkof-lead { font-size: 17px; line-height: 1.55; color: var(--of-text2); }

/* ---------------------------------------------------------- barra de pasos */
.nkof-pasos { position: sticky; top: var(--nkof-top, 0px); z-index: 30; margin: 0 0 24px; padding: 10px 0; background: rgba(10, 15, 30, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--of-line); }
.nkof-pasos ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nkof-pasos a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 8px; border-radius: 40px; color: var(--of-text2); text-decoration: none; font-size: 13px; font-weight: 500; line-height: 1.15; text-align: center; transition: background .2s, color .2s; }
.nkof-pasos a span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--of-line2); font-size: 12px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.nkof-pasos a.is-on { color: #fff; background: var(--of-gold-t); }
.nkof-pasos a.is-on span { background: var(--of-gold); border-color: var(--of-gold); color: var(--of-bg); }
.nkof-pasos a.is-done span { border-color: var(--of-gold); color: var(--of-gold); }
.nkof-pasos a:focus-visible { outline: 2px solid var(--of-gold-l); outline-offset: 2px; }

/* ---------------------------------------------------------- pasos */
.nkof-paso { margin-bottom: 40px; scroll-margin-top: calc(var(--nkof-top, 0px) + 72px); }
.nkof-paso__t { display: flex; align-items: center; gap: 12px; font-family: var(--of-serif); font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.nkof-n { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--of-gold); color: var(--of-gold); display: inline-grid; place-items: center; font: 600 15px/1 var(--of-sans); flex: none; }

/* ---------------------------------------------------------- 1 · ofertas */
.nkof-ofertas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nkof-oferta { position: relative; display: block; cursor: pointer; }
.nkof-oferta input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nkof-oferta__card { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 16px; border-radius: var(--of-r); background: var(--of-card); border: 1px solid var(--of-line); transition: border-color .2s, box-shadow .2s, transform .2s var(--of-ease); }
.nkof-oferta:hover .nkof-oferta__card { border-color: var(--of-line2); }
.nkof-oferta input:checked + .nkof-oferta__card { border-color: var(--of-gold); box-shadow: 0 0 0 1px var(--of-gold), 0 14px 34px rgba(0, 0, 0, .35); }
.nkof-oferta input:focus-visible + .nkof-oferta__card { outline: 2px solid var(--of-gold-l); outline-offset: 3px; }
.nkof-oferta__ok { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--of-line2); color: transparent; transition: background .2s, border-color .2s, color .2s; }
.nkof-oferta__ok .nkof-i { width: 16px; height: 16px; }
.nkof-oferta input:checked + .nkof-oferta__card .nkof-oferta__ok { background: var(--of-gold); border-color: var(--of-gold); color: var(--of-bg); }
.nkof-oferta__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nkof-oferta__body strong { font-size: 16px; line-height: 1.25; color: #fff; font-weight: 600; padding-right: 26px; }
.nkof-oferta__desc { display: none; color: var(--of-text2); font-size: 14px; line-height: 1.45; }
.nkof-oferta__precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 2px; }
.nkof-oferta__precio b { font-family: var(--of-serif); font-size: 24px; color: var(--of-gold-l); font-weight: 600; font-variant-numeric: lining-nums; }
.nkof-oferta__precio small, .nkof-oferta__cliche { color: var(--of-text2); font-size: 12.5px; line-height: 1.35; }

/* Muestra de servilleta plegada con gofrado de doble punto. */
.nkof-sw { --c: #fbfaf6; --dot: rgba(0, 0, 0, .12); position: relative; display: block; width: 84px; height: 84px; flex: none; }
.nkof-sw::before { content: ""; position: absolute; inset: 0; background: var(--c); transform: translate(5px, 5px); filter: brightness(.9); }
.nkof-sw i { position: absolute; inset: 0; z-index: 1; background-color: var(--c);
  background-image: radial-gradient(circle, var(--dot) 1.3px, transparent 1.6px), radial-gradient(circle, var(--dot) 1.3px, transparent 1.6px);
  background-size: 8px 8px; background-position: 0 0, 4px 4px;
  box-shadow: inset 0 9px 9px -9px rgba(0, 0, 0, .3), inset 9px 0 9px -9px rgba(0, 0, 0, .25), 6px 10px 22px rgba(0, 0, 0, .45); }
.nkof-sw i::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; }
.nkof-sw--blanca i::after { background: conic-gradient(#e94f4f, #f2c14e, #4fb3e9, #6be06b, #e94f4f); opacity: .9; mix-blend-mode: multiply; }
.nkof-sw--negra { --c: #1b1b1e; --dot: rgba(0, 0, 0, .65); }
.nkof-sw--negra i::after { border: 3px solid transparent; background: linear-gradient(#1b1b1e, #1b1b1e) padding-box, linear-gradient(135deg, #8c6a2a, #f1dc96 45%, #9a7633) border-box; }

/* ---------------------------------------------------------- 2 · editor */
.nkof-editor { display: grid; gap: 16px; }
.nkof-stage { position: relative; }
#nkof-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--of-r); background: #1a2238; touch-action: none; cursor: grab; }
#nkof-canvas.is-drag { cursor: grabbing; }
#nkof-canvas:focus-visible { outline: 2px solid var(--of-gold-l); outline-offset: 3px; }
.nkof-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Estado vacío: el botón de subir vive encima de la servilleta. */
.nkof-vacio { position: absolute; inset: 14% 14% calc(14% + 26px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; border: 2px dashed rgba(30, 42, 74, .28); border-radius: 6px; transition: background .2s, border-color .2s; }
.nkof[data-oferta="b"] .nkof-vacio { border-color: rgba(255, 255, 255, .22); }
.nkof-vacio.is-over { background: rgba(200, 164, 90, .14); border-color: var(--of-gold); }
.nkof-vacio.is-error { border-color: #ef4444; }
.nkof-vacio__h { font-size: 13px; line-height: 1.4; color: #3b4660; max-width: 26ch; }
.nkof-vacio__d { display: none; font-size: 13px; color: #6b7690; }
.nkof[data-oferta="b"] .nkof-vacio__h { color: #c9cfdb; }
.nkof[data-oferta="b"] .nkof-vacio__d { color: #9aa3b5; }
.nkof.has-img .nkof-vacio { display: none; }
.nkof-nota { font-size: 12.5px; color: var(--of-text2); margin-top: 8px; text-align: center; }

.nkof-ctrl { display: flex; flex-direction: column; gap: 20px; padding: 18px; border-radius: var(--of-r); background: var(--of-card); border: 1px solid var(--of-line); }
.nkof-ctrl[aria-disabled="true"] > *:not(.nkof-ctrl__top) { opacity: .38; pointer-events: none; }
.nkof-ctrl[aria-disabled="true"] .nkof-ctrl__top label { display: none; }
.nkof-ctrl__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nkof-grupo { display: flex; flex-direction: column; gap: 10px; }
.nkof-grupo__t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--of-text2); font-weight: 600; }
.nkof-grupo__t label { cursor: default; }
.nkof-grupo__t output { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.nkof-mini { font-size: 13px; color: var(--of-text2); line-height: 1.45; }

/* Resolución: píldora de estado. */
.nkof-res { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: 40px; font-size: 13px; font-weight: 500; line-height: 1.3; background: rgba(134, 239, 172, .1); color: var(--of-ok); }
.nkof-res::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.nkof-res:empty { display: none; }
.nkof-res.is-bad { background: rgba(252, 211, 77, .12); color: var(--of-warn); border-radius: var(--of-r-s); }

/* Posición: cinco mini-servilletas con el punto donde irá el logo. */
.nkof-pos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.nkof-pos__b { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 64px; padding: 8px 2px; border-radius: var(--of-r-s); border: 1px solid var(--of-line) !important; transition: border-color .2s, background .2s; }
.nkof-pos__b:hover { border-color: var(--of-line2) !important; }
.nkof-pos__b[aria-pressed="true"] { border-color: var(--of-gold) !important; background: var(--of-gold-t) !important; }
.nkof-pos__b:focus-visible { outline: 2px solid var(--of-gold-l); outline-offset: 2px; }
.nkof-pos__m { position: relative; width: 28px; height: 28px; border-radius: 3px; background: #f3f1ea; box-shadow: 2px 3px 0 rgba(255, 255, 255, .08); }
.nkof[data-oferta="b"] .nkof-pos__m { background: #2a2a2f; }
.nkof-pos__m i { position: absolute; width: 9px; height: 9px; border-radius: 2px; background: var(--of-gold-d); }
.nkof-pos__m--centro i { left: 9.5px; top: 9.5px; }
.nkof-pos__m--si i { left: 4px; top: 4px; } .nkof-pos__m--sd i { right: 4px; top: 4px; }
.nkof-pos__m--ii i { left: 4px; bottom: 4px; } .nkof-pos__m--id i { right: 4px; bottom: 4px; }
.nkof-pos__l { font-size: 11px; line-height: 1.15; color: var(--of-text2); text-align: center; }
.nkof-pos__b[aria-pressed="true"] .nkof-pos__l { color: #fff; }

/* Tamaño y giro: botón − / deslizador / botón +. */
.nkof-slider { display: flex; align-items: center; gap: 10px; }
.nkof-ico { flex: none; width: 44px; height: 44px; border-radius: 50% !important; display: grid !important; place-items: center; border: 1px solid var(--of-line2) !important; color: var(--of-text) !important; transition: border-color .2s, color .2s, transform .1s; }
.nkof-ico:hover { border-color: var(--of-gold) !important; color: var(--of-gold-l) !important; }
.nkof-ico:active { transform: scale(.94); }
.nkof-ico:focus-visible { outline: 2px solid var(--of-gold-l); outline-offset: 2px; }
.nkof input[type="range"] { flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; accent-color: var(--of-gold); cursor: pointer; }

/* Interruptor. */
.nkof-switch { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; color: var(--of-text); cursor: pointer; }
.nkof-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nkof-switch__t { position: relative; flex: none; width: 46px; height: 28px; border-radius: 20px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.nkof-switch__t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--of-ease); }
.nkof-switch input:checked + .nkof-switch__t { background: var(--of-gold); }
.nkof-switch input:checked + .nkof-switch__t::after { transform: translateX(18px); }
.nkof-switch input:focus-visible + .nkof-switch__t { outline: 2px solid var(--of-gold-l); outline-offset: 2px; }

/* Tintas metálicas. */
.nkof-tintas__l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nkof-tinta { position: relative; cursor: pointer; }
.nkof-tinta input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nkof-tinta span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: var(--of-r-s); border: 1px solid var(--of-line2); font-size: 14px; transition: border-color .2s, background .2s; }
.nkof-tinta i { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.nkof-tinta--blanco i { background: #f3f1ea; }
.nkof-tinta--oro i { background: linear-gradient(135deg, #8c6a2a, #e8cc7a 45%, #9a7633); }
.nkof-tinta--plata i { background: linear-gradient(135deg, #8a8e94, #eef0f2 45%, #93979d); }
.nkof-tinta input:checked + span { border-color: var(--of-gold); background: var(--of-gold-t); color: #fff; }
.nkof-tinta input:focus-visible + span { outline: 2px solid var(--of-gold-l); outline-offset: 2px; }

/* ---------------------------------------------------------- 3 · datos */
.nkof-datos { display: grid; gap: 24px; }
.nkof-datos__campos { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.nkof-bloque { border: 0; margin: 0; padding: 0; min-width: 0; }
.nkof-bloque legend { padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 600; color: #fff; }
.nkof-plazos { display: grid; gap: 10px; margin-bottom: 8px; }
.nkof-plazo { position: relative; cursor: pointer; }
.nkof-plazo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nkof-plazo span { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 14px 48px; border-radius: var(--of-r-s); border: 1px solid var(--of-line2); background: var(--of-card); position: relative; transition: border-color .2s, background .2s; }
.nkof-plazo span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--of-line2); transition: border .15s; }
.nkof-plazo b { font-size: 15px; color: #fff; font-weight: 600; }
.nkof-plazo small { font-size: 13px; color: var(--of-text2); line-height: 1.35; }
.nkof-plazo input:checked + span { border-color: var(--of-gold); background: var(--of-gold-t); }
.nkof-plazo input:checked + span::before { border: 6px solid var(--of-gold); }
.nkof-plazo input:focus-visible + span { outline: 2px solid var(--of-gold-l); outline-offset: 2px; }

.nkof-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.nkof-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--of-text2); }
.nkof-f--full { grid-column: 1 / -1; }
.nkof-f input, .nkof-f select, .nkof-f textarea { font: 16px/1.4 var(--of-sans) !important; color: var(--of-text) !important; background: var(--of-bg2) !important; border: 1px solid var(--of-line2) !important; border-radius: var(--of-r-s) !important; padding: 12px 14px !important; min-height: 48px; width: 100%; margin: 0; box-shadow: none !important; }
.nkof-f select { appearance: auto; }
.nkof-f input:focus, .nkof-f select:focus, .nkof-f textarea:focus { outline: 2px solid var(--of-gold); outline-offset: 1px; border-color: transparent !important; }
.nkof-f [aria-invalid="true"] { border-color: #ef4444 !important; }
.nkof-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--of-text); cursor: pointer; }
.nkof-check input { margin: 2px 0 0; width: 20px; height: 20px; accent-color: var(--of-gold); flex: none; }
.nkof-check a { color: var(--of-gold-l); }
.nkof-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nkof-resumen { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--of-r); background: var(--of-card); border: 1px solid rgba(200, 164, 90, .35); scroll-margin-top: 80px; }
.nkof-resumen__cab { display: flex; align-items: center; gap: 14px; }
.nkof-resumen h3 { font-family: var(--of-serif); font-size: 22px; color: #fff; font-weight: 600; }
.nkof-resumen__of { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; }
.nkof-resumen__of div { display: contents; }
.nkof-resumen__of dt { color: var(--of-text2); }
.nkof-resumen__of dd { margin: 0; color: #fff; font-weight: 600; }
.nkof-ch { margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--of-gold); background: rgba(200, 164, 90, .08); border-radius: 0 6px 6px 0; }
.nkof-ue { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.nkof-ue .nkof-mini { margin: 0 0 0 32px; }
#nkof-thumb { width: 84px; height: 84px; border-radius: 8px; flex: none; }
#nkof-lineas { margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; }
#nkof-lineas div { display: flex; justify-content: space-between; gap: 12px; }
#nkof-lineas dt { color: var(--of-text2); }
#nkof-lineas dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
#nkof-lineas .is-base { border-top: 1px solid var(--of-line); padding-top: 9px; margin-top: 3px; }
#nkof-lineas .is-total { font-size: 18px; color: #fff; font-weight: 600; border-top: 1px solid var(--of-line); padding-top: 9px; margin-top: 3px; }
#nkof-lineas .is-total dd { color: var(--of-gold-l); font-family: var(--of-serif); font-size: 22px; }

/* ---------------------------------------------------------- botones */
.nkof-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 50px !important; border: 0; background: linear-gradient(135deg, var(--of-gold), var(--of-gold-l)) !important; color: #0a0f1e !important; font: 600 16px/1.2 var(--of-sans) !important; text-decoration: none !important; cursor: pointer; transition: transform .15s var(--of-ease), box-shadow .2s; }
.nkof-btn:hover { box-shadow: 0 0 22px rgba(200, 164, 90, .45); }
.nkof-btn:active { transform: scale(.98); }
.nkof-btn:focus-visible, .nkof-btn:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.nkof-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.nkof-btn--ghost { background: transparent !important; color: var(--of-gold-l) !important; border: 1px solid var(--of-gold) !important; }
.nkof-btn--sm { min-height: 44px; padding: 8px 16px; font-size: 14px !important; }
.nkof-btn--subir { min-height: 56px; padding: 14px 28px; font-size: 17px !important; box-shadow: 0 10px 26px rgba(10, 15, 30, .35); }
.nkof-pagar { width: 100%; min-height: 56px; font-size: 17px !important; }
.nkof-error { color: var(--of-danger); font-size: 14px; }
.nkof-error:empty { display: none; }
.nkof-seguro { text-align: center; }

/* ---------------------------------------------------------- condiciones */
.nkof-cond { margin-top: 8px; border-top: 1px solid var(--of-line); padding-top: 16px; }
.nkof-cond summary { cursor: pointer; font-family: var(--of-serif); font-size: 19px; color: #fff; min-height: 44px; display: flex; align-items: center; }
.nkof-cond ol { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--of-text2); font-size: 14.5px; line-height: 1.55; max-width: 860px; }
.nkof-cond strong { color: var(--of-text); }

/* ---------------------------------------------------------- barra móvil */
.nkof-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(17, 24, 39, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--of-line); transform: translateY(110%); transition: transform .25s var(--of-ease); }
.nkof-barra.is-on { transform: none; }
.nkof-barra__t { display: flex; flex-direction: column; line-height: 1.15; }
.nkof-barra__t small { font-size: 12px; color: var(--of-text2); }
.nkof-barra__t b { font-family: var(--of-serif); font-size: 21px; color: var(--of-gold-l); font-variant-numeric: tabular-nums; }
.nkof-barra .nkof-btn { min-height: 48px; padding: 10px 18px; font-size: 15px !important; }

/* En esta página la barra propia sustituye a la barra «Consulta gratuita» del
 * tema, y el botón flotante de WhatsApp sube para no tapar «Ir al pago». */
body:has(#nkof) #stickyBar { display: none !important; }
/* Sin título de página del tema («Oferta» / «Privado: Oferta»): el titular
 * de la oferta es el H1 de la página. */
body:has(#nkof) .legal-content > h1:first-child { display: none; }
body:has(#nkof) .legal-content { padding-top: 0; }
@media (max-width: 959px) {
  body:has(#nkof-barra.is-on) #wa-float-global { bottom: 96px !important; transition: bottom .25s; }
}

/* ---------------------------------------------------------- vuelta de Stripe */
.nkof-vuelta { max-width: 680px; padding-bottom: 64px; }
.nkof-vuelta h1, .nkof-vuelta h2 { font-family: var(--of-serif); font-size: 34px; color: #fff; margin: 0 0 14px; }
.nkof-vuelta p { font-size: 17px; line-height: 1.6; color: var(--of-text2); margin: 0 0 24px; }

/* ---------------------------------------------------------- bloque home */
/* Dos servilletas sobre la «mesa de pruebas», con las mismas marcas de corte
 * doradas que el editor: la portada anuncia lo que el cliente va a usar. */
.nkof-dest { background: var(--of-bg2); padding: 56px 16px; border-top: 1px solid var(--of-line); border-bottom: 1px solid var(--of-line); }
.nkof-dest__in { max-width: 1100px; margin: 0 auto; display: grid; gap: 32px; align-items: center; }
.nkof-dest__mesa { position: relative; display: block; aspect-ratio: 4 / 3; max-width: 520px; width: 100%; border-radius: var(--of-r); background: radial-gradient(120% 90% at 40% 30%, #2a3a5c, #141d33); overflow: hidden; }
.nkof-dest__mesa::before, .nkof-dest__mesa::after { content: ""; position: absolute; width: 28px; height: 28px; border: 1.5px solid var(--of-gold); opacity: .8; }
.nkof-dest__mesa::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.nkof-dest__mesa::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.nkof-dest__nap { position: absolute; width: 46%; aspect-ratio: 1; display: grid; place-items: center;
  background-image: radial-gradient(circle, var(--dot) 1.4px, transparent 1.8px), radial-gradient(circle, var(--dot) 1.4px, transparent 1.8px);
  background-size: 10px 10px; background-position: 0 0, 5px 5px; background-color: var(--c);
  box-shadow: inset 0 12px 12px -12px rgba(0, 0, 0, .3), inset 12px 0 12px -12px rgba(0, 0, 0, .25), 4px 4px 0 -1px var(--c2), 8px 8px 0 -2px var(--c3), 14px 24px 40px rgba(0, 0, 0, .45);
  transition: transform .4s var(--of-ease); }
.nkof-dest__nap--blanca { --c: #fbfaf6; --c2: #ece9e1; --c3: #e2ded4; --dot: rgba(0, 0, 0, .1); left: 12%; top: 16%; transform: rotate(-7deg); }
.nkof-dest__nap--negra { --c: #1b1b1e; --c2: #141416; --c3: #101012; --dot: rgba(0, 0, 0, .7); left: 44%; top: 30%; transform: rotate(5deg); }
.nkof-dest__nap i { font-style: normal; font-family: var(--of-serif); font-weight: 700; font-size: clamp(15px, 3.2vw, 22px); letter-spacing: .02em; text-align: center; line-height: 1; padding: .5em .7em; border-radius: 50px; }
.nkof-dest__nap--blanca i { color: #fff; background: linear-gradient(135deg, #e94f4f, #f2a14e 40%, #4fb3e9 75%, #6bd18a); mix-blend-mode: multiply; }
.nkof-dest__nap--negra i { color: transparent; background: linear-gradient(135deg, #8c6a2a, #f1dc96 45%, #b8913f 70%, #9a7633); -webkit-background-clip: text; background-clip: text; border: 2px solid #c8a45a; }
.nkof-dest__mesa:hover .nkof-dest__nap--blanca { transform: rotate(-9deg) translateY(-4px); }
.nkof-dest__mesa:hover .nkof-dest__nap--negra { transform: rotate(7deg) translateY(-4px); }
.nkof-dest h2 { font-family: var(--of-serif); font-size: clamp(26px, 3.4vw, 38px); color: #fff; margin: 0 0 12px; line-height: 1.15; text-wrap: balance; }
.nkof-dest p { color: var(--of-text2); font-size: 17px; line-height: 1.55; margin: 0 0 20px; max-width: 52ch; }
.nkof-dest .nkof-dest__pasos { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nkof-dest .nkof-dest__pasos li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; color: var(--of-text); font-size: 16px; }
.nkof-dest__pasos span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--of-gold); color: var(--of-gold); font-size: 14px; font-weight: 600; }
.nkof-dest .nkof-btn { min-height: 52px; padding: 14px 26px; }
.nkof-dest a.nkof-btn { text-decoration: none; }

/* ---------------------------------------------------------- tableta y PC */
@media (min-width: 640px) {
  .nkof { padding: 40px 0 80px; }
  .nkof-pasos { margin: 0 0 32px; padding: 12px 0; }
  .nkof-pasos a { font-size: 14px; }
  .nkof-ofertas { gap: 18px; }
  .nkof-oferta__card { flex-direction: row; align-items: center; gap: 20px; padding: 22px; }
  .nkof-oferta__desc { display: block; }
  .nkof-sw { width: 96px; height: 96px; }
  .nkof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nkof-plazos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nkof-vacio__d { display: block; }
  .nkof-dest { padding: 80px 24px; }
  .nkof-dest__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .nkof-dest .nkof-dest__pasos { flex-direction: row; flex-wrap: wrap; gap: 12px 22px; }
}
@media (min-width: 960px) {
  .nkof { padding-left: 24px; padding-right: 24px; }
  .nkof-editor { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 24px; align-items: start; }
  .nkof-ctrl { position: sticky; top: calc(var(--nkof-top, 0px) + 84px); }
  .nkof-datos { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 28px; align-items: start; }
  .nkof-resumen { position: sticky; top: calc(var(--nkof-top, 0px) + 84px); }
  .nkof-barra { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nkof *, .nkof-dest * { transition: none !important; }
}
