/* Simulated functions of the demos (demo-funciones.js): page and panel of Pedidos, Tienda de marca and Citas.
   Only the theme's own variables (--accent, --on-accent, --accent-ink, --bg, --surface, --fg, --muted, --font-*), so it
   takes the visitor's colour; demo.js measures those for contrast on each background. Classes ndf-*. */

/* ---------- shared bits ---------- */
.ndf-tag { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 9px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--fg) 40%, transparent);
  background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg); font: 600 12px/1.3 var(--font-body, system-ui), system-ui, sans-serif; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.ndf-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.ndf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ndf-muted { color: var(--muted); font-size: 13.5px; margin: 0; }
.ndf-k { display: block; margin: 0; font: 700 11.5px/1.3 var(--font-body, system-ui), system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ndf-err { margin: 6px 0 0; color: #b42318; font-size: 13.5px; font-weight: 600; }
.ndf-warn { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #f59e0b 14%, transparent); font-size: 14px; }
.ndf-ok, .ndf-no { font-style: normal; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ndf-ok { color: var(--accent-ink); }
.ndf-no { color: var(--muted); }
.ndf-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ndf-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 8px 0; }
.ndf-f { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 0; }
.ndf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font: 700 14px/1.2 var(--font-body, system-ui), system-ui, sans-serif; text-decoration: none; text-align: center;
  background: transparent; color: var(--fg); border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); }
.ndf-btn.main { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ndf-btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.ndf-btn.danger { color: #fca5a5; }
.ndf-btn:focus-visible, .ndf-pill:focus-visible, .ndf-chip:focus-visible, .ndf-link:focus-visible, .ndf-day:focus-visible, .ndf-cita:focus-visible, .ndf-wcita:focus-visible,
.ndf-seg button:focus-visible, .ndf-x:focus-visible, .ndf-tags button:focus-visible, .ndf-track a:focus-visible, .ndf-hist summary:focus-visible, .ndf-tpl summary:focus-visible, .ndf-perks summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ndf-btn:not(.main):hover { border-color: color-mix(in srgb, var(--fg) 60%, transparent); } .ndf-btn.main:hover { filter: brightness(1.06); } }
.ndf-link { border: 0; padding: 0; background: none; color: var(--fg); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- panel: the work state of each order ---------- */
.ndf-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent-ink) 28%, transparent); }
.ndf-banner p { flex: 1 1 280px; margin: 0; font-size: 13.5px; color: var(--fg); }
.ndf-th { white-space: nowrap; }
.ndf-td { min-width: 132px; max-width: 190px; white-space: normal; }
.ndf-pill { --c: var(--fg); display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); font: 700 13px/1.2 var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
button.ndf-pill::after { content: "›"; margin-left: 2px; opacity: .7; }
.ndf-pill.sm { padding: 3px 9px; font-size: 12px; cursor: default; }
.ndf-sub { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--muted); white-space: normal; }
.ndf-sub > span { white-space: nowrap; }

/* ---------- panel: the order sheet ---------- */
dialog.ndf-sheet { width: min(540px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--rule-2, rgba(255,255,255,.15));
  background: var(--surface); color: var(--fg); overflow: auto; overscroll-behavior: contain; color-scheme: dark; box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .8); }
dialog.ndf-sheet::backdrop { background: rgba(5, 5, 8, .55); }
@media (max-width: 640px) { dialog.ndf-sheet { width: 100vw; height: auto; max-height: 94dvh; margin: auto 0 0; border-left: 0; border-radius: 20px 20px 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  dialog.ndf-sheet { transition: opacity 190ms ease, translate 190ms ease, display 190ms allow-discrete, overlay 190ms allow-discrete; }
  dialog.ndf-sheet:not([open]) { opacity: 0; translate: 20px 0; }
  dialog.ndf-sheet[open] { animation: ndf-in 300ms cubic-bezier(.23, 1, .32, 1); }
  @media (max-width: 640px) { dialog.ndf-sheet[open] { animation-name: ndf-up; } dialog.ndf-sheet:not([open]) { translate: 0 24px; } }
}
@keyframes ndf-in { from { translate: 40px 0; opacity: 0; } }
@keyframes ndf-up { from { translate: 0 40px; opacity: 0; } }
.ndf-sh { display: grid; gap: 14px; padding: 18px 20px 28px; font: 15px/1.5 var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-sh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ndf-sh-head h2 { margin: 2px 0; font: 800 26px/1.1 var(--font-body, system-ui), system-ui, sans-serif; letter-spacing: -.01em; }
.ndf-sh-head .ndf-muted { font-size: 14px; }
.ndf-pago { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .08); }
.ndf-pago[data-p="pagado"] { background: rgba(74, 222, 128, .14); color: #4ade80; }
.ndf-pago[data-p="pendiente"] { background: rgba(252, 211, 77, .14); color: #fcd34d; }
.ndf-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule-2, rgba(255,255,255,.15)); background: transparent; color: var(--fg); font-size: 24px; line-height: 1; cursor: pointer; }
.ndf-sh-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ndf-sh-tag small { color: var(--muted); font-size: 12.5px; }
.ndf-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.ndf-contact > span { flex: 1 1 210px; min-width: 0; }
.ndf-contact > span:nth-child(2) { color: var(--muted); font-size: 13px; }
.ndf-contact .ndf-btn { min-height: 44px; }
.ndf-upgrade { display: grid; gap: 12px; padding: 14px; border: 1px dashed color-mix(in srgb, var(--accent-ink) 45%, var(--rule)); border-radius: 18px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.ndf-upgrade .ndf-sh-tag { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.ndf-upgrade .ndf-sec { background: var(--surface); }
.ndf-sec { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
.ndf-sec h3 { margin: 0 0 10px; font: 700 16px/1.2 var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-sec p { margin: 0 0 8px; }
/* inside the engine's day-view sheet (panel.js #pvExt / #pvCobroExt): the same headings and spacing as its own sections */
.pv-ext { display: grid; gap: 12px; }
.pv-ext .ndf-sec > h3 { margin: 0 0 10px; font: 800 12.5px/1.2 var(--font-body, system-ui), system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#pvCobroExt:not(:empty) { margin-bottom: 12px; }
.ndf-next { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ndf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ndf-chip { --c: var(--fg); padding: 6px 12px; border-radius: 999px; cursor: pointer; font: 600 13px/1.2 var(--font-body, system-ui), system-ui, sans-serif; color: var(--muted);
  background: transparent; border: 1px solid rgba(255, 255, 255, .14); }
.ndf-chip[aria-pressed="true"] { color: var(--c); border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 14%, transparent); font-weight: 700; }
.ndf-hist { margin-top: 12px; font-size: 13.5px; }
.ndf-hist summary, .ndf-tpl summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.ndf-hist ol { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.ndf-hist b { color: var(--fg); }
.ndf-guia, .ndf-repro { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ndf-guia input, .ndf-guia select, .ndf-repro input, .ndf-repro select, .ndf-sh select, .ndf-sh textarea, .ndf-tab input, .ndf-tab select {
  font: 15px/1.3 var(--font-body, system-ui), system-ui, sans-serif; min-height: 40px; padding: 8px 10px; border-radius: 10px; max-width: 100%;
  background: rgba(255, 255, 255, .05); color: var(--fg); border: 1px solid rgba(255, 255, 255, .16); }
.ndf-sh textarea { width: 100%; box-sizing: border-box; resize: vertical; margin-top: 8px; }
.ndf-sh .ndf-f select { width: 100%; }
.ndf-money { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.ndf-money b { font-variant-numeric: tabular-nums; }
.ndf-tpl { margin-top: 12px; }
.ndf-tpl p { margin-top: 8px; }
.ndf-url { display: block; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); font-size: 12.5px; overflow-wrap: anywhere; }

/* ---------- panel: the extra tab ---------- */
.tabs [data-tab="ndf"] { --ndg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M8 14h2M14 14h2M8 17h2'/%3E%3C/svg%3E"); }
.tabs [data-tab="ndf"][data-ico="envio"] { --ndg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5h11v10H3zM14 9.5h4l3 3.5v3.5h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17.5' cy='17.5' r='1.8'/%3E%3C/svg%3E"); }
.tabs [data-tab="ndf"][data-ico="proyecto"] { --ndg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20.5V8l8-4.5 8 4.5v12.5'/%3E%3Cpath d='M9 20.5v-6h6v6M3 20.5h18'/%3E%3C/svg%3E"); }
.tabs [data-tab="ndf"][data-ico="admision"] { --ndg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9 12 4.5 21.5 9 12 13.5 2.5 9Z'/%3E%3Cpath d='M6.5 11v5c1.5 1.6 3.4 2.4 5.5 2.4s4-.8 5.5-2.4v-5M21.5 9v5.5'/%3E%3C/svg%3E"); }
@media (max-width: 1023px) { .ndg-nav { border-radius: 22px; } .ndg-nav .tabs { flex-wrap: wrap; } }
.ndf-tab { display: grid; gap: 16px; }
.ndf-tab-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.ndf-tab-head h2 { margin: 0 0 4px; font: 800 24px/1.15 var(--font-body, system-ui), system-ui, sans-serif; letter-spacing: -.01em; }
.ndf-tab-head p { max-width: 70ch; }
.ndf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ndf-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.ndf-seg button { min-height: 34px; padding: 6px 14px; border: 0; border-radius: 999px; cursor: pointer; background: none; color: var(--muted); font: 700 13.5px/1 var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-seg button[aria-pressed="true"] { background: var(--fg); color: #111114; }
.ndf-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ndf-when { margin-left: 6px; font-size: 15px; }
.ndf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 479px) { .ndf-kpis > .ndf-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.ndf-kpi { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.ndf-kpi span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ndf-kpi b { display: block; margin-top: 4px; font: 700 20px/1.2 var(--font-body, system-ui), system-ui, sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ndf-card { padding: 16px; border-radius: 16px; background: var(--ndg-solid, var(--surface)); border: 1px solid var(--ndg-line, rgba(255,255,255,.08)); min-width: 0; }
.ndf-card h3 { margin: 0 0 10px; font: 700 16px/1.25 var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-card h3 small { font-weight: 500; color: var(--muted); font-size: 13px; }
.ndf-days-list { display: grid; gap: 12px; }
.ndf-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ndf-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.ndf-item:first-child { border-top: 0; }
.ndf-item-main { flex: 1 1 260px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.ndf-item-side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ndf-time { font-weight: 700; color: var(--accent-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.ndf-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; }
.ndf-tags li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13px; }
.ndf-tags button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--fg); font-size: 18px; cursor: pointer; }
.ndf-row.ndf-fill .ndf-f { flex: 1 1 130px; }
.ndf-row.ndf-fill .ndf-f > :is(input, select) { width: 100%; min-width: 0; box-sizing: border-box; }
.ndf-row input.w-s { width: 90px; }

/* day strip (encargos): the panel preview and the page picker. Recipe «carrusel-asoma»: the chips size to the row so
   whole chips fit and about a third (32 %) of the next one shows, which says «swipe»; a fixed width sometimes landed
   with only 4 px of the next day showing. --per steps up with the row's width (container query). */
.ndf-days { list-style: none; margin: 8px 0 0; padding: 0 0 4px; display: flex; gap: var(--ndf-gap); overflow-x: auto; scrollbar-width: thin;
  container-type: inline-size; --ndf-gap: 6px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.ndf-day { --per: 3; flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 1px; width: 74px; width: calc((100cqi - var(--per) * var(--ndf-gap)) / (var(--per) + .32));
  padding: 8px 4px; border-radius: 12px; text-align: center; box-sizing: border-box;
  font: 600 12px/1.25 var(--font-body, system-ui), system-ui, sans-serif; color: var(--fg); background: color-mix(in srgb, var(--fg) 4%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 16%, transparent); }
@container (max-width: 239px) { .ndf-day { --per: 2; } }
@container (min-width: 330px) { .ndf-day { --per: 4; } }
@container (min-width: 400px) { .ndf-day { --per: 5; } }
@container (min-width: 480px) { .ndf-day { --per: 6; } }
@container (min-width: 570px) { .ndf-day { --per: 7; } }
button.ndf-day { cursor: pointer; }
.ndf-day b { font-size: 11.5px; text-transform: capitalize; color: var(--muted); }
.ndf-day span { font-size: 18px; font-weight: 800; }
.ndf-day small { font-size: 11.5px; color: var(--accent-ink); font-weight: 700; }
.ndf-day.lleno small, .ndf-day.cerrado small, .ndf-day.bloqueado small { color: var(--muted); }
.ndf-day.lleno, .ndf-day.cerrado, .ndf-day.bloqueado { background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--fg) 6%, transparent) 6px 12px); }
button.ndf-day:disabled { cursor: not-allowed; }
.ndf-day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.ndf-day[aria-pressed="true"] b, .ndf-day[aria-pressed="true"] span, .ndf-day[aria-pressed="true"] small { color: var(--on-accent); }

/* citas: day grid per professional, week list */
.ndf-dayview { overflow-x: auto; }
.ndf-grid { display: grid; grid-template-columns: 46px repeat(var(--ndf-cols), minmax(140px, 1fr)); gap: 8px; min-width: calc(46px + var(--ndf-cols) * 148px); }
.ndf-gut h3, .ndf-pro h3 { height: 22px; margin: 0 0 8px; font-size: 14px; }
.ndf-hours { position: relative; }
.ndf-hours span { position: absolute; right: 4px; transform: translateY(-50%); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ndf-col { position: relative; border-radius: 10px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 64px); border: 1px solid rgba(255, 255, 255, .07); }
.ndf-blk { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 6px, rgba(255, 255, 255, .08) 6px 12px); color: var(--muted); font-size: 12px; font-weight: 600; }
.ndf-cita { --c: var(--accent-ink); position: absolute; display: grid; align-content: start; gap: 1px; margin: 1px 2px; padding: 5px 8px; overflow: hidden; text-align: left; cursor: pointer;
  border-radius: 8px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 16%, var(--bg));
  color: var(--fg); font: 600 12.5px/1.25 var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-cita b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndf-cita small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndf-cita[data-libre="true"] { opacity: .6; border-style: dashed; }
.ndf-cita[data-clash="true"], .ndf-wcita[data-clash="true"] { box-shadow: 0 0 0 2px #f87171; }
.ndf-cita em { position: absolute; top: 4px; right: 4px; padding: 1px 6px; border-radius: 999px; background: #dc2626; color: #fff; font: 700 10.5px/1.4 var(--font-body, system-ui), system-ui, sans-serif; font-style: normal; }
.ndf-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ndf-wday { padding: 12px; border-radius: 14px; background: var(--ndg-solid, var(--surface)); border: 1px solid var(--ndg-line, rgba(255,255,255,.08)); min-width: 0; }
.ndf-wday.hoy { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.ndf-wday h3 { margin: 0 0 8px; font-size: 14px; }
.ndf-wday h3 .ndf-link { text-transform: capitalize; }
.ndf-wday ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ndf-wcita { --c: var(--accent-ink); display: grid; width: 100%; padding: 6px 8px; text-align: left; cursor: pointer; border-radius: 8px; border: 0; border-left: 4px solid var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--fg); font: 600 13px/1.3 var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-wcita small { color: var(--muted); font-size: 11.5px; }

/* ---------- page: tracking ---------- */
html.ndf-lock, html.ndf-lock body { overflow: hidden; }
.ndf-track { position: fixed; z-index: 40; inset: var(--nd-h, 0px) 0 0 0; overflow: auto; overscroll-behavior: contain; background: var(--bg); color: var(--fg);
  font: 16px/1.55 var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-tr-in { box-sizing: border-box; width: min(640px, 100%); margin: 0 auto; padding: clamp(22px, 5vw, 48px) 18px 48px; display: grid; gap: 18px; }
.ndf-tr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ndf-track h1 { margin: 0; font: 700 clamp(30px, 7vw, 44px)/1.05 var(--font-display, Georgia), Georgia, serif; text-transform: var(--heading-case, none); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ndf-now { padding: 16px 18px; border-radius: calc(var(--radius, 16px) * .8); background: color-mix(in srgb, var(--accent) 12%, var(--surface, var(--bg))); border-left: 5px solid var(--accent-ink); }
.ndf-now[data-tono="mal"] { border-left-color: #b42318; background: color-mix(in srgb, #b42318 8%, var(--surface, var(--bg))); }
.ndf-now b { display: block; font-size: 22px; line-height: 1.2; }
.ndf-now p { margin: 4px 0 0; color: var(--fg); }
.ndf-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.ndf-steps li { position: relative; display: grid; gap: 1px; padding: 0 0 16px 30px; }
.ndf-steps li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent-ink); background: var(--bg); }
.ndf-steps li::after { content: ""; position: absolute; left: 12px; top: 20px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--fg) 15%, transparent); }
.ndf-steps li:last-child::after { display: none; }
.ndf-steps li.ndf-s-done::before, .ndf-steps li.ndf-s-now::before { background: var(--accent-ink); }
.ndf-steps li.ndf-s-now::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 28%, transparent); }
.ndf-steps li.ndf-s-next { color: var(--muted); }
.ndf-steps li.ndf-s-next::before { border-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.ndf-steps b { font: 700 16px/1.35 var(--font-body, system-ui), system-ui, sans-serif; color: inherit; }
.ndf-track h1:focus { outline: none; }
.ndf-steps small { color: var(--muted); font-size: 13.5px; }
.ndf-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; padding: 16px 18px; border-radius: calc(var(--radius, 16px) * .8);
  background: var(--surface, transparent); border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.ndf-dl dt { color: var(--muted); font-size: 14px; }
.ndf-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ndf-dl a { color: var(--accent-ink); }
.ndf-llegar { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 2px; font-weight: 500; }
.ndf-llegar a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .ndf-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .ndf-dl dd { margin-bottom: 8px; } }
.ndf-fine { margin: 0; font-size: 13px; color: var(--muted); }
.ndf-track .ndf-btn { min-height: 46px; padding: 10px 20px; font-size: 15px; }

/* ---------- page: checkout additions ---------- */
.ndf-cupo { display: grid; gap: 8px; margin: 4px 0 14px; padding: 12px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--fg) 25%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--fg); font: 14px/1.45 var(--font-body, system-ui), system-ui, sans-serif; text-align: left; }
.ndf-cupo-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.ndf-anticipo { margin: 0; font-size: 14px; color: var(--fg); }
.ndf-cupo .ndf-err { color: var(--err, #b42318); }
.ndf-slip { margin: 10px 0 12px; }
.ndf-perks > summary { display: list-item; cursor: pointer; font-weight: 700; font-size: 14px; text-align: left; }
.ndf-perks .ndf-row { flex-wrap: nowrap; }
.ndf-perks input { flex: 1 1 auto; min-width: 0; font: 15px/1.3 var(--font-body, system-ui), system-ui, sans-serif; padding: 9px 10px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); background: var(--bg); color: var(--fg); text-transform: uppercase; }
.ndf-perks .ndf-sm { flex: none; padding: 9px 14px; }
.ndf-stamps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.ndf-dots { display: inline-flex; gap: 4px; }
.ndf-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-ink); }
.ndf-dots i.on { background: var(--accent-ink); }
.ndf-follow { margin-top: 4px; }

/* ---------- modules (demo-modulos/): their checkout boxes, the opt-in, tracking sections, notices and sheets ---------- */
.ndf-chk { display: grid; }
.ndf-chk [hidden], .ndf-undo[hidden] { display: none !important; }
.ndf-chk-in { display: grid; gap: 8px; }
.ndf-chk-mod .ndf-err { margin: 0; }
.ndf-optin { align-items: flex-start; font-size: 14px; line-height: 1.4; }
.ndf-optin input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-ink); }
.ndf-optin-campos { display: grid; gap: 8px; }
.ndf-chk input[type="tel"], .ndf-chk input[type="text"], .ndf-chk input[type="email"], .ndf-chk input[type="number"], .ndf-chk select {
  width: 100%; box-sizing: border-box; min-height: 44px; font: 16px/1.3 var(--font-body, system-ui), system-ui, sans-serif; padding: 9px 10px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); background: var(--bg); color: var(--fg); }
.ndf-trsec { display: grid; gap: 8px; padding: 16px 18px; border-radius: calc(var(--radius, 16px) * .8); background: var(--surface, transparent); border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.ndf-trsec > h2 { margin: 0; font: 700 17px/1.3 var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-trsec p { margin: 0; }
html:not([data-nd-panel]) .ndf-undo { position: fixed; z-index: 70; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 24px); box-sizing: border-box; padding: 6px 6px 6px 16px; min-height: 44px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font: 700 14px/1.3 var(--font-body, system-ui), system-ui, sans-serif; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); }
html:not([data-nd-panel]) .ndf-undo .pv-undo-txt { padding: 6px 10px 6px 0; }
html:not([data-nd-panel]) .ndf-undo .pv-undo-btn { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; background: color-mix(in srgb, var(--bg) 18%, transparent); color: inherit; }
/* on the page a module's sheet takes the page's own colours (the order sheet is the panel's, dark) */
html:not([data-nd-panel]) dialog.ndf-dlg { background: var(--bg); color-scheme: normal; border-left-color: color-mix(in srgb, var(--fg) 15%, transparent); }
html:not([data-nd-panel]) .ndf-dlg .ndf-x { border-color: color-mix(in srgb, var(--fg) 20%, transparent); }


/* ---------- proyectos, cotización, inscripciones: panel ---------- */
.ndf-sub-h { margin: 16px 0 8px; font: 700 14px/1.2 var(--font-body, system-ui), system-ui, sans-serif; color: var(--muted); }
.ndf-unitrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 4px 0 10px; }
.ndf-acts.tight { margin-top: 0; gap: 6px; }
.ndf-f.ndf-inline { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 6px 0 4px; }
.ndf-unit { --c: var(--accent-ink); display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font: 700 12.5px/1.3 var(--font-body, system-ui), system-ui, sans-serif; font-style: normal;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); white-space: nowrap; }
.ndf-unit::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ndf-unit[data-u="apartada"] { --c: #b45309; }
.ndf-unit[data-u="vendida"], .ndf-unit[data-u="pausada"] { --c: color-mix(in srgb, var(--fg) 62%, transparent); }
html.ndg-js .ndf-unit[data-u="apartada"], html[data-tema="oscuro"] .ndf-unit[data-u="apartada"] { --c: #fcd34d; }
/* proyectos: «Vino / No vino» (pressed = chosen), a new day for the visit, today's visits, the plan in the panel */
.ndf-vino { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ndf-vino [aria-pressed="true"][data-vino="si"] { background: color-mix(in srgb, var(--ok, #15803d) 18%, transparent); border-color: var(--ok, #15803d); color: var(--fg); }
.ndf-vino [aria-pressed="true"][data-vino="no"] { background: color-mix(in srgb, var(--danger, #b42318) 14%, transparent); border-color: var(--danger, #b42318); color: var(--fg); }
.ndf-vino [aria-pressed="true"]::before { content: "✓ "; }
.ndf-sec .ndf-vino { margin: 4px 0 8px; }
.ndf-repro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 8px 12px; margin: 8px 0 0; }
.ndf-repro .ndf-err, .ndf-repro .ndf-acts { grid-column: 1 / -1; }
.ndf-hoyvis { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.ndf-hoyvis-c { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); min-width: 0; }
.ndf-hoyvis-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; overflow-wrap: anywhere; }
.ndf-hoyvis-top .ndf-link { min-height: 44px; display: inline-flex; align-items: center; }
.ndf-hoyvis-top small { color: var(--muted); }
.ndf-plano-res { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ndf-plano-panel { --accent: var(--accent-ink); --bg: transparent; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); padding: 10px; }
.ndf-plano-panel .ndf-lote { padding-top: 12px; min-height: 96px; cursor: default; }
.ndf-plano-panel button.ndf-lote { cursor: pointer; }
.ndf-table tfoot th, .ndf-table tfoot td { font-weight: 700; border-bottom: 0; }
.ndf-meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 0 0 10px; }
.ndf-meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent-ink); }
.ndf-meter i[data-lleno="true"] { background: #f87171; }
.ndf-tablewrap { overflow-x: auto; }
.ndf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ndf-table th, .ndf-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, .07); text-align: left; white-space: nowrap; }
.ndf-table thead th { font-size: 12px; color: var(--muted); font-weight: 700; }
.ndf-table tbody th { font: 600 14px/1.35 var(--font-body, system-ui), system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--fg); white-space: normal; min-width: 140px; }
.ndf-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ndf-links { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ndf-links li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.ndf-links li > span { display: grid; gap: 2px; min-width: 0; }
.ndf-links code { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- proyectos, cotización, inscripciones: page ---------- */
.ndf-psec .sec-head, .ndf-psec .head { align-items: start; }
.ndf-psec .ndf-tag { justify-self: start; }
.ndf-leyenda { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; padding: 0; font: 600 14px/1.3 var(--font-body, system-ui), system-ui, sans-serif; color: var(--fg); }
.ndf-leyenda li { display: inline-flex; align-items: center; gap: 7px; }
.ndf-leyenda li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--accent-ink); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.ndf-leyenda li[data-u="apartada"]::before { border-color: #b45309; background: repeating-linear-gradient(135deg, color-mix(in srgb, #f59e0b 35%, transparent) 0 3px, transparent 3px 6px); }
.ndf-leyenda li[data-u="vendida"]::before, .ndf-leyenda li[data-u="pausada"]::before { border-color: color-mix(in srgb, var(--fg) 45%, transparent); background: color-mix(in srgb, var(--fg) 14%, transparent); }
.ndf-plano { list-style: none; margin: 0; padding: clamp(10px, 2vw, 18px); display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
  border-radius: var(--radius, 16px); border: 1px dashed color-mix(in srgb, var(--fg) 25%, transparent); background: color-mix(in srgb, var(--fg) 3%, transparent); }
.ndf-lote { --c: var(--accent-ink); position: relative; display: grid; align-content: start; gap: 2px; width: 100%; min-height: 108px; padding: 26px 12px 12px; cursor: pointer; text-align: left;
  border-radius: calc(var(--radius, 16px) * .6); border: 2px solid var(--c); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); color: var(--fg); font: 15px/1.3 var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-lote-n { position: absolute; top: 7px; left: 10px; font: 700 11px/1 var(--font-body, system-ui), system-ui, sans-serif; letter-spacing: .08em; color: var(--muted); }
.ndf-lote b { font-weight: 700; overflow-wrap: anywhere; }
.ndf-lote small { color: var(--muted); font-variant-numeric: tabular-nums; }
.ndf-lote em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--c); margin-top: 4px; }
.ndf-lote[data-u="apartada"] { --c: #b45309; background: repeating-linear-gradient(135deg, color-mix(in srgb, #f59e0b 14%, var(--bg)) 0 8px, var(--bg) 8px 16px); }
html[data-tema="oscuro"] .ndf-lote[data-u="apartada"] { --c: #fcd34d; }
.ndf-lote[data-u="vendida"], .ndf-lote[data-u="pausada"] { --c: color-mix(in srgb, var(--fg) 60%, var(--bg)); background: color-mix(in srgb, var(--fg) 8%, var(--bg)); }
.ndf-lote[data-u="vendida"] b { text-decoration: line-through; text-decoration-thickness: 1.5px; }
@media (hover: hover) and (pointer: fine) { .ndf-lote:hover { box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--fg) 45%, transparent); } }
@media (prefers-reduced-motion: no-preference) { .ndf-lote { transition: box-shadow 160ms ease-out; } }
.ndf-lote:focus-visible, .ndf-opts button:focus-visible, .ndf-calc input:focus-visible, .ndf-calc select:focus-visible, .ndf-day:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.ndf-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 3vw, 28px); padding: clamp(16px, 3vw, 28px); border-radius: var(--radius, 16px);
  background: var(--surface, var(--bg)); border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); color: var(--fg); font: 15px/1.5 var(--font-body, system-ui), system-ui, sans-serif; }
@media (max-width: 760px) { .ndf-calc { grid-template-columns: minmax(0, 1fr); } }
.ndf-calc-in { display: grid; gap: 16px; align-content: start; }
.ndf-flbl { font-size: 13px; font-weight: 700; color: var(--muted); }
.ndf-calc .ndf-f { color: var(--fg); }
.ndf-calc-in > .ndf-f { max-width: 75ch; }
.ndf-calc input[type="number"], .ndf-calc select { font: 16px/1.3 var(--font-body, system-ui), system-ui, sans-serif; min-height: 46px; padding: 10px 12px; border-radius: 12px; width: 100%; box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); background: var(--bg); color: var(--fg); }
.ndf-check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.ndf-check input { width: 20px; height: 20px; accent-color: var(--accent-ink); }
.ndf-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ndf-opts button { min-height: 42px; padding: 8px 14px; border-radius: 999px; cursor: pointer; font: 600 14px/1.2 var(--font-body, system-ui), system-ui, sans-serif;
  color: var(--fg); background: transparent; border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.ndf-opts button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ndf-calc-out { display: grid; gap: 10px; align-content: start; padding: clamp(14px, 2.4vw, 22px); border-radius: calc(var(--radius, 16px) * .7); background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
.ndf-calc-out dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 0; font-size: 14.5px; }
.ndf-calc-out dt { color: var(--muted); }
.ndf-calc-out dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ndf-calc-out ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.ndf-big { display: grid; gap: 2px; margin: 4px 0 0; }
.ndf-big small { font-size: 13px; color: var(--muted); font-weight: 600; }
.ndf-big b { font: 700 clamp(26px, 4.4vw, 38px)/1.1 var(--font-display, Georgia), Georgia, serif; color: var(--fg); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ndf-note { margin: 0; font-size: 13px; color: var(--muted); }
.ndf-asesor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: 14px; }
.ndf-day-k { font-size: 11.5px !important; font-weight: 600 !important; color: var(--fg); }
/* visit dates carry «Visita · 10:00»: wider chips, the same 32 % peek */
#ndfCupos .ndf-day { --per: 2; }
@container (max-width: 229px) { #ndfCupos .ndf-day { --per: 1; } }
@container (min-width: 340px) { #ndfCupos .ndf-day { --per: 3; } }
@container (min-width: 460px) { #ndfCupos .ndf-day { --per: 4; } }
@container (min-width: 580px) { #ndfCupos .ndf-day { --per: 5; } }
.ndf-paybox { display: grid; gap: 8px; padding: 16px 18px; border-radius: calc(var(--radius, 16px) * .8); border: 2px solid var(--accent-ink); background: color-mix(in srgb, var(--accent) 7%, var(--surface, var(--bg))); }
.ndf-paybox p { margin: 0; }


/* ---------- encargo.html (Pedidos): the page as a 3-step checkout, one central column ----------
   Only the active style's tokens (--bg, --fg, --surface, --accent, --on-accent, --accent-ink, --muted, --rule, --radius,
   --font-display, --font-body), so each style (and the visitor's colour) carries over; styles may refine .ndf-enc. */
html.nd-encargo main, html.nd-encargo .bagbar, html.nd-encargo #scrim, html.nd-encargo .skip { display: none !important; }
.ndf-enc { box-sizing: border-box; width: min(760px, 100%); margin: 0 auto; padding: var(--ndf-top, 24px) clamp(16px, 4vw, 28px) clamp(48px, 8vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2.6vw, 24px); color: var(--fg); font-family: var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-back { justify-self: start; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
@media (hover: hover) and (pointer: fine) { .ndf-back:hover { border-color: color-mix(in srgb, var(--fg) 50%, transparent); } }
.ndf-enc > *, .ndf-enc *, .ndf-enc *::before, .ndf-enc *::after { box-sizing: border-box; }
.ndf-enc > * { min-width: 0; }
.ndf-enc-head h1 { margin: 0 0 6px; font: 600 clamp(34px, 6vw, 56px)/1.04 var(--font-display, Georgia), Georgia, serif; text-transform: var(--heading-case, none); letter-spacing: -.01em; text-wrap: balance; }
.ndf-enc-head p { margin: 0; color: var(--muted); font-size: 16px; max-width: 56ch; }
.ndf-enc-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ndf-enc-pasos a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: calc(var(--radius, 16px) * .6); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px;
  background: color-mix(in srgb, var(--fg) 5%, transparent); }
.ndf-enc-pasos b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; }
.ndf-step { padding: clamp(16px, 3vw, 26px); border-radius: var(--radius, 16px); background: var(--surface, var(--bg)); border: 1px solid var(--rule, color-mix(in srgb, var(--fg) 12%, transparent)); scroll-margin-top: calc(var(--nd-h, 0px) + 90px); }
.ndf-step > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 clamp(24px, 3.4vw, 32px)/1.1 var(--font-display, Georgia), Georgia, serif; text-transform: var(--heading-case, none); }
.ndf-step-n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 16px/1 var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-step-in { display: grid; gap: 14px; min-width: 0; }
.ndf-step .ndf-days { margin: 0; }
.ndf-otra input { font: 16px/1.3 var(--font-body, system-ui), system-ui, sans-serif; min-height: 44px; padding: 8px 12px; border-radius: 12px; max-width: 220px;
  border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); background: var(--bg); color: var(--fg); }
.ndf-step .ndf-f { color: var(--fg); }
.ndf-step .ndf-err:empty { display: none; }
.ndf-cat h3 { margin: 4px 0 6px; font: 600 19px/1.2 var(--font-display, Georgia), Georgia, serif; text-transform: var(--heading-case, none); }
.ndf-cat ul { list-style: none; margin: 0; padding: 0; display: grid; }
.ndf-plato { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }
.ndf-plato:first-child { border-top: 0; }
.ndf-plato img, .ndf-plato-ph { width: 64px; height: 64px; object-fit: cover; border-radius: calc(var(--radius, 16px) * .5); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.ndf-plato-t { display: grid; gap: 2px; min-width: 0; }
.ndf-plato-t b { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.ndf-plato-t small { color: var(--muted); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ndf-plato-p { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.ndf-add, .ndf-step-q button { min-height: 40px; border-radius: 999px; cursor: pointer; font: 700 14px/1 var(--font-body, system-ui), system-ui, sans-serif; }
.ndf-add { padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); background: transparent; color: var(--fg); white-space: nowrap; }
.ndf-step-q { display: inline-flex; align-items: center; gap: 4px; padding: 2px; border-radius: 999px; background: var(--accent); }
.ndf-step-q button { width: 40px; padding: 0; border: 0; background: transparent; color: var(--on-accent); font-size: 20px; }
.ndf-step-q output { min-width: 22px; text-align: center; color: var(--on-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.ndf-add:focus-visible, .ndf-step-q button:focus-visible, .ndf-enc-pasos a:focus-visible, .ndf-back:focus-visible, .ndf-otra input:focus-visible, .ndf-enc-link:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.ndf-enc-res dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; margin: 0; font-size: 15px; }
.ndf-enc-res dt { color: var(--muted); }
.ndf-enc-res dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .ndf-enc-res .ndf-full { grid-column: 1 / -1; text-align: left; } .ndf-enc-res dd.ndf-full { margin-bottom: 4px; } }
/* the engine's bag, open inside step 3 instead of a drawer */
html.nd-encargo #bag { position: static; inset: auto; z-index: auto; width: auto; max-width: none; height: auto; max-height: none; transform: none; visibility: visible; opacity: 1;
  display: block; background: transparent; box-shadow: none; border: 0; border-radius: 0; transition: none; }
html.nd-encargo #bag > header, html.nd-encargo #bag [data-close] { display: none !important; }
html.nd-encargo #bag .scroll { overflow: visible; padding: 0; max-height: none; }
html.nd-encargo #bag footer { position: static; padding: 16px 0 0; background: transparent; border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.ndf-enc-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-ink); font-weight: 700; font-size: 14px; }
/* a long button label in a wide display face (Huerta's caps) wraps instead of running out of the card */
html.nd-encargo #waBtn { max-width: 100%; height: auto; white-space: normal; text-wrap: balance; text-align: center; }
@media (max-width: 480px) {
  .ndf-enc-pasos a { flex-direction: column; justify-content: center; gap: 4px; text-align: center; font-size: 12.5px; }
  .ndf-plato { grid-template-columns: 52px minmax(0, 1fr); }
  .ndf-plato img, .ndf-plato-ph { width: 52px; height: 52px; }
  .ndf-plato > :last-child { grid-column: 2; justify-self: start; }
}

/* state colours last: they win over each element's default */
:is(.ndf-pill, .ndf-chip, .ndf-cita, .ndf-wcita)[data-tono="nuevo"] { --c: #fcd34d; } :is(.ndf-pill, .ndf-chip, .ndf-cita, .ndf-wcita)[data-tono="proceso"] { --c: #93c5fd; } :is(.ndf-pill, .ndf-chip, .ndf-cita, .ndf-wcita)[data-tono="listo"] { --c: var(--accent-ink); } :is(.ndf-pill, .ndf-chip, .ndf-cita, .ndf-wcita)[data-tono="fin"] { --c: #4ade80; } :is(.ndf-pill, .ndf-chip, .ndf-cita, .ndf-wcita)[data-tono="mal"] { --c: #fca5a5; }
.ndf-cita.short { align-content: center; padding-top: 2px; padding-bottom: 2px; }
.ndf-cita.short small { display: none; }

/* ---------- our calendar for date fields: the field is a button, the month opens next to it (a sheet on a phone) ---------- */
input.ndf-cal-in { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; min-width: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; opacity: 0; pointer-events: none; }
.ndf-cal-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 100%; min-height: 48px; padding: 10px 14px; box-sizing: border-box; cursor: pointer; text-align: left;
  font: 500 16px/1.25 var(--font-body, system-ui), system-ui, sans-serif; color: var(--fg); background: var(--bg); border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); border-radius: min(var(--radius, 12px), 14px); }
.ndf-otra .ndf-cal-btn { max-width: 340px; }
.ndf-cal-btn.vacio .ndf-cal-v { color: var(--muted, var(--fg)); }
.ndf-cal-btn svg { flex: none; color: var(--accent-ink, var(--fg)); }
.ndf-cal-btn:focus-visible { outline: 2px solid var(--accent-ink, var(--fg)); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ndf-cal-btn:hover { border-color: color-mix(in srgb, var(--fg) 55%, transparent); } }
dialog.ndf-cal { position: fixed; inset: auto; margin: 0; padding: 14px; width: 392px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto; box-sizing: border-box;
  color: var(--fg); background: var(--surface, var(--bg)); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: min(var(--radius, 16px), 22px);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .35); font: 400 14px/1.3 var(--font-body, system-ui), system-ui, sans-serif; }
dialog.ndf-cal::backdrop { background: rgba(0, 0, 0, .18); }
.ndf-cal *, .ndf-cal *::before { box-sizing: border-box; }
.ndf-cal-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px 40px; align-items: center; gap: 4px; margin-bottom: 8px; }
.ndf-cal-head h2 { margin: 0; text-align: center; font: 400 20px/1.2 var(--font-display, Georgia), Georgia, serif; text-transform: var(--heading-case, none); }
.ndf-cal-nav, .ndf-cal-x { width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer; font: 400 24px/1 var(--font-body, system-ui), system-ui, sans-serif; color: var(--fg); background: transparent;
  border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.ndf-cal-x { border-color: transparent; }
.ndf-cal-nav:disabled { opacity: .35; cursor: default; }
.ndf-cal-tag { margin: 0 0 8px; }
.ndf-cal-grid { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.ndf-cal-grid th { padding: 2px 0 4px; font-size: 12px; font-weight: 700; color: var(--muted, var(--fg)); text-align: center; }
.ndf-cal-grid td { padding: 0; }
.ndf-cal-d { display: grid; align-content: center; justify-items: center; gap: 1px; width: 100%; min-height: 52px; padding: 3px 1px; cursor: pointer; border-radius: 10px; color: var(--fg);
  background: color-mix(in srgb, var(--fg) 4%, transparent); border: 1px solid transparent; font: inherit; }
.ndf-cal-n { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ndf-cal-d small { max-width: 100%; font: 700 10px/1.05 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.01em; color: var(--accent-ink, var(--fg)); text-align: center; hyphens: none; overflow-wrap: normal; }
.ndf-cal-d.hoy { border-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.ndf-cal-d[aria-disabled="true"] { cursor: not-allowed; background: transparent; color: color-mix(in srgb, var(--fg) 45%, transparent); }
.ndf-cal-d[aria-disabled="true"] small { color: color-mix(in srgb, var(--fg) 62%, transparent); font-weight: 600; }
.ndf-cal-d.lleno .ndf-cal-n, .ndf-cal-d.bloqueado .ndf-cal-n { text-decoration: line-through; }
.ndf-cal-d.sel { background: var(--accent); color: var(--on-accent); }
.ndf-cal-d.sel small { color: var(--on-accent); }
.ndf-cal-d:focus-visible, .ndf-cal-nav:focus-visible, .ndf-cal-x:focus-visible { outline: 2px solid var(--accent-ink, var(--fg)); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) { .ndf-cal-d:not([aria-disabled="true"]):not(.sel):hover { border-color: var(--accent-ink, var(--fg)); } }
.ndf-cal-st { margin: 8px 2px 0; min-height: 1.3em; font-size: 13.5px; color: var(--fg); }
@media (max-width: 480px) {
  dialog.ndf-cal { inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 92dvh; padding: 14px 10px calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: min(var(--radius, 16px), 22px) min(var(--radius, 16px), 22px) 0 0; }
  dialog.ndf-cal::backdrop { background: rgba(0, 0, 0, .4); }
  .ndf-cal-head { grid-template-columns: 44px minmax(0, 1fr) 44px 44px; }
  .ndf-cal-nav, .ndf-cal-x { width: 44px; height: 44px; }
  .ndf-cal-d { min-height: 56px; }
  .ndf-cal-d small { font-size: 9.5px; letter-spacing: -.02em; }
}
@media (max-width: 380px) {
  .ndf-cal-d small { font-size: 8.6px; letter-spacing: -.03em; }
}
@media (prefers-reduced-motion: no-preference) { dialog.ndf-cal[open] { animation: ndf-cal-in .16s ease-out; } }
@keyframes ndf-cal-in { from { opacity: 0; transform: translateY(6px); } }

/* With a mouse the compact summaries still meet WCAG's 24 px minimum. */
.ndf-hist summary, .ndf-tpl summary { min-height: 24px; display: flex; align-items: center; }
/* a finger needs 44 px: on a touch screen (any width) or up to 1024 px (an iPad held sideways) every control the demo
   adds is at least that tall (and wide, the icon ones); a desktop with a mouse keeps the compact sizes. The appointment
   blocks of the day grid keep their height: it is the length of the appointment. */
@media (pointer: coarse), (max-width: 1024px) {
  .ndf-btn, .ndf-btn.sm, .ndf-seg button, .ndf-opts button, .ndf-chip, button.ndf-pill, .ndf-back, .ndf-add, .ndf-hist summary, .ndf-tpl summary, .ndf-perks summary,
  .ndf-guia input, .ndf-guia select, .ndf-repro input, .ndf-repro select, .ndf-sh select, .ndf-tab input, .ndf-tab select { min-height: 44px; }
  .ndf-btn.sm, .ndf-chip { min-width: 44px; justify-content: center; }
  /* under 16 px the iPhone zooms into the field and leaves the page shifted */
  .ndf input:not([type=checkbox]):not([type=radio]), .ndf select, .ndf textarea, .ndf-sec input:not([type=checkbox]):not([type=radio]), .ndf-sec select, .ndf-sec textarea { font-size: 16px; }
  .ndf-link { display: inline-flex; align-items: center; min-height: 44px; }
  .ndf-hist summary, .ndf-tpl summary, .ndf-perks summary { display: flex; align-items: center; }
  .ndf-step-q button { width: 44px; min-height: 44px; }
  .ndf-nav .ndf-btn { min-width: 44px; }
  .ndf-perks input, .ndf-perks button { min-height: 44px; }
  .ndf-x { width: 44px; height: 44px; }
  .ndf-tags button { flex: none; width: 44px; height: 44px; margin: -8px -10px -8px -6px; }
}
.ndf-code { font: 700 .62em/1.1 var(--font-body, system-ui), system-ui, sans-serif; letter-spacing: .02em; white-space: nowrap; vertical-align: .12em; }

@media (prefers-reduced-motion: reduce) { .ndf-track, dialog.ndf-sheet { scroll-behavior: auto; } }
@media print { .ndf-banner, .ndf-tag { display: none; } }

/* the panel's Hoy (panel.inicio.rubro "joyeria"): «Por hacer y enviar», one card per paid order, closest «Enviar antes de» first */
.ndf-hacer { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.ndf-hacer-c { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); min-width: 0; }
.ndf-hacer-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.ndf-hacer-top .ndf-link { min-height: 44px; display: inline-flex; align-items: center; }
.ndf-hacer-fecha { font-size: 13px; font-weight: 600; color: var(--fg); }
.ndf-hacer-fecha[data-tarde] { color: var(--danger, #b42318); }
.ndf-hacer-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.ndf-hacer-c > .ndf-btn { min-height: 44px; justify-self: stretch; }
.ndf-hacer-pie { margin: 0; text-align: right; }
.ndf-hacer-pie .ndf-link { min-height: 44px; display: inline-flex; align-items: center; }

/* Simulated catalog editor on the shared Productos tab: draft stays in sessionStorage until Publicar. */
.ndf-catalog { display: grid; gap: 12px; margin-bottom: 16px; }
.ndf-catalog h2, .ndf-catalog h3, .ndf-catalog p { margin: 0; }
.ndf-cathead, .ndf-catfilters, .ndf-catfoot, .ndf-catnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ndf-cathead h2, .ndf-cathead h3 { flex: 1 1 180px; }
.ndf-catfilters label { display: grid; gap: 5px; flex: 1 1 180px; min-width: 0; }
.ndf-catfilters input, .ndf-catfilters select { width: 100%; }
.ndf-catcats { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.ndf-catcats li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--rule); border-radius: 12px; }
.ndf-catcats button { min-width: 44px; }
.ndf-catcats b { flex: 1 1 150px; }
.ndf-catlist { display: grid; gap: 8px; }
.ndf-catrow { display: grid; grid-template-columns: 44px 48px minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; border: 1px solid var(--rule); border-radius: 12px; padding: 8px; }
.ndf-catrow img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.ndf-catrow b { overflow-wrap: anywhere; }
.ndf-catcheck { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.ndf-catnav { justify-content: center; }
.ndf-catalog button, .ndf-catdialog button, .ndf-catalog input, .ndf-catalog select, .ndf-catdialog input, .ndf-catdialog select { min-height: 44px; }
.ndf-catrow .ndf-catcheck input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; margin: 0; }
@media (max-width: 600px) { .ndf-catalog input:not([type=checkbox]), .ndf-catalog select, .ndf-catdialog input:not([type=checkbox]), .ndf-catdialog select { font-size: 16px; } }
.ndf-catalog :focus-visible, .ndf-catdialog :focus-visible { outline: 2px solid var(--accent-ink, currentColor); outline-offset: 2px; }
.ndf-catdialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 20px; border: 0; border-radius: 18px; background: var(--surface); color: var(--fg); }
.ndf-catdialog::backdrop { background: rgba(0, 0, 0, .7); }
.ndf-catdialog form { display: grid; gap: 12px; }
.ndf-catdialog form > label { display: grid; gap: 5px; }
.ndf-catdialog fieldset { display: grid; gap: 4px; border: 1px solid var(--rule); border-radius: 12px; }
.ndf-catdialog fieldset label { min-height: 44px; display: flex; align-items: center; gap: 8px; }
.ndf-catphoto { display: grid; gap: 8px; }
.ndf-catphoto label { display: grid; gap: 5px; }
.ndf-caterr { color: var(--danger); }
.ndf-catfoot { justify-content: end; }
@media (max-width: 600px) { .ndf-catrow { grid-template-columns: 44px 48px minmax(0, 1fr); } .ndf-catrow span:last-of-type, .ndf-catrow button { grid-column: 3; } }
