/* The demos: demos.html (the list), demo-carta, demo-citas and demo-gastos, in the look of the rest of the site
   (2026-11-30): they load nueva.css and this file, not styles.css. The page is the dark one with glass panels;
   what the visitor tries is drawn as the real thing would look: a phone with its frame and status bar, and the
   tools of the business (agenda, expense sheet) as windows of an app. Those insides stay light on purpose, so
   .phone__screen, .win, .paper and the QR card set the light values the old styles used (--ink, --line, …).
   carta.html (the diner's menu) also loads this file, after styles.css, for the «.cv-» rules at the end. */

.phone__screen, .win, .paper, .cd-qr__stand {
  --bg: #f7f7f6; --tile: #eeeff0; --ink: #111213; --ink-2: #63676d; --ink-3: #a3a6ab; --line: #dfe0e2; --gold: #f5a623; --error: #a3261a;
  color: #111213;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the page: its opening, then the stage ---------- */
.dm-top { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 76px)); padding-bottom: clamp(26px, 3.6vw, 44px); background: radial-gradient(46% 90% at 88% 0%, rgb(var(--l1) / 0.3), transparent 72%), radial-gradient(30% 60% at 60% 0%, rgb(var(--l2) / 0.1), transparent 70%), var(--night); }
.dm-top::before { content: none; }
.dm-top .nx-h1 { max-width: 19ch; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.dm-top .nx-sol__text { max-width: 64ch; }
.dm-stage { padding: clamp(14px, 2vw, 28px) 0 clamp(72px, 9vw, 120px); background: radial-gradient(36% 26% at 86% 22%, rgb(var(--l1) / 0.24), transparent 70%), radial-gradient(40% 30% at 6% 70%, rgb(var(--l2) / 0.14), transparent 70%), var(--night); }
.dm .note { font-size: 0.86rem; line-height: 1.5; color: var(--muted); max-width: 62ch; }
.dm .label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* steps on the left, the phone on the right; on a phone: one column, in the order of the areas */
.cd { display: grid; gap: 14px; grid-template-areas: 'shot' 'look' 'view' 'qr'; align-items: start; }
.cd-shot { grid-area: shot; }
.cd-look { grid-area: look; }
.cd-qrstep { grid-area: qr; }
.cd-view { grid-area: view; }
@media (min-width: 960px) {
  .cd { grid-template-columns: minmax(0, 1fr) 392px; grid-template-areas: 'shot view' 'look view' 'qr view'; grid-template-rows: auto auto 1fr; column-gap: clamp(28px, 4vw, 56px); gap: 16px clamp(28px, 4vw, 56px); }
}

/* a step: a sheet of glass with its number */
.cd-step { position: relative; display: grid; gap: 18px; align-content: start; min-width: 0; padding: clamp(18px, 2.2vw, 26px); border: 1px solid var(--glass-line); border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge), var(--glass-shadow); }
.dm-step { display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: 1.1rem; line-height: 1.2; letter-spacing: -0.02em; }
.dm-step i, .cd-tip i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #07140b; font-style: normal; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; }
.cd-lead { color: var(--muted); font-size: 0.95rem; max-width: 56ch; }

/* ---------- the choices (business, paper, colour, style): buttons with role="radio", see choices() in carta-render.js ---------- */
.cd-tpls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .cd-tpls { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cd-tpl, .cd-swatch, .cd-segopt { border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cd-tpl { display: grid; gap: 2px; align-content: start; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ease); }
.cd-tpl b { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }
.cd-tpl span { color: rgba(255, 255, 255, 0.56); font-size: 0.8rem; line-height: 1.3; }
@media (hover: hover) { .cd-tpl:hover { border-color: rgba(255, 255, 255, 0.36); transform: translateY(-1px); } }
.cd-tpl[aria-checked='true'] { background: linear-gradient(180deg, #fff, #e8efe6); border-color: #fff; color: #0b0d14; box-shadow: inset 0 1px 0 #fff, 0 10px 26px -12px rgb(var(--ac) / 0.75); }
.cd-tpl[aria-checked='true'] span { color: #5f6470; }

.cd-row { display: flex; flex-wrap: wrap; gap: 18px 36px; }
.cd-field { display: grid; gap: 8px; }
.cd-field__label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cd-swatches { display: flex; gap: 12px; min-height: 44px; align-items: center; }
.cd-swatch { position: relative; width: 34px; height: 34px; padding: 0; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.cd-swatch[aria-checked='true'] { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px #fff; }
.cd-seg { display: inline-flex; justify-self: start; padding: 4px; gap: 2px; border-radius: 99px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.045); }
.cd-segopt { padding: 0; background: none; }
.cd-segopt span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 99px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); }
.cd-segopt[aria-checked='true'] span { background: #fff; color: #0b0d14; font-weight: 550; }

/* ---------- the camera: the paper on a table, seen through a phone's camera ---------- */
.cam { display: grid; gap: 20px; }
@media (min-width: 640px) { .cam { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; } }
.cam__view { position: relative; height: 330px; border-radius: 18px; overflow: hidden; cursor: pointer; background: radial-gradient(120% 80% at 30% 15%, #5a4a3c, transparent 70%), repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 46px), #2a211b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 70px rgba(0, 0, 0, 0.55); }
.paper { position: absolute; left: 50%; top: 46px; width: 76%; transform: translateX(-50%) rotate(-3deg); background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.05) 100%), repeating-linear-gradient(0deg, transparent 0 21px, rgba(120, 100, 70, 0.08) 21px 22px), #f4ecdc; color: #2d2620; padding: 18px 18px 30px; box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.6); font-family: 'American Typewriter', 'Courier New', Courier, monospace; font-size: 11px; line-height: 1.6; transition: transform 0.4s ease, filter 0.4s ease; }
.paper__name { text-align: center; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.paper__sec { margin-top: 8px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; text-decoration: underline; }
.paper__item { display: flex; justify-content: space-between; gap: 8px; }
.paper__item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the four corners of the frame, in the accent colour while it looks for the paper */
.cam__corners { position: absolute; inset: 14px 14px 62px; pointer-events: none; opacity: 0.9; --c: var(--accent);
  background: linear-gradient(var(--c), var(--c)) top left / 24px 2px no-repeat, linear-gradient(var(--c), var(--c)) top left / 2px 24px no-repeat, linear-gradient(var(--c), var(--c)) top right / 24px 2px no-repeat, linear-gradient(var(--c), var(--c)) top right / 2px 24px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 24px 2px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 2px 24px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 24px 2px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 2px 24px no-repeat; }
.cam__rec { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 99px; background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 0.72rem; font-weight: 550; white-space: nowrap; }
.cam__rec::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
/* the strip at the bottom with the round button: pressing anywhere on the picture takes the photo */
.cam__shutter { position: absolute; left: 0; right: 0; bottom: 0; height: 54px; display: grid; place-items: center; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6)); }
.cam__shutter::before { content: ''; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5), 0 0 0 5px #fff; transition: transform 0.15s; }
.cam__view:active .cam__shutter::before { transform: scale(0.9); }
.cam__line { position: absolute; left: 14px; right: 14px; top: 14px; height: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 18px 6px rgb(var(--ac) / 0.5); opacity: 0; }
.cam__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam.is-flash .cam__flash { opacity: 0.95; }
.cam:not(.is-flash) .cam__flash { transition: opacity 0.5s ease; }
.cam.is-scanning .paper { transform: translateX(-50%) rotate(0deg) scale(1.04); }
.cam.is-scanning .cam__line { opacity: 1; animation: cam-scan 1.3s ease-in-out infinite alternate; }
.cam.is-done .paper { transform: translateX(-50%) rotate(0deg); }
@keyframes cam-scan { to { top: calc(100% - 68px); } }
.cam__side { display: grid; gap: 16px; align-content: start; }
.cam__shoot { justify-self: start; gap: 10px; }
.cam__shoot:disabled { opacity: 0.6; cursor: progress; transform: none; }
.cam__steps { display: grid; gap: 10px; font-size: 0.93rem; color: rgba(255, 255, 255, 0.42); }
.cam__steps li { position: relative; padding-left: 28px; transition: color 0.2s; }
.cam__steps li::before { content: ''; position: absolute; left: 0; top: 0.16em; width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24); }
.cam__steps li.is-active, .cam__steps li.is-done { color: #fff; }
.cam__steps li.is-active::before { box-shadow: none; border: 2px solid rgb(var(--ac) / 0.3); border-top-color: var(--accent); animation: spin 0.7s linear infinite; }
.cam__steps li.is-done::before { background: var(--accent); box-shadow: none; }
.cam__steps li.is-done::after { content: ''; position: absolute; left: 6px; top: calc(0.16em + 3.5px); width: 5px; height: 8px; border: solid #07140b; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- the phone: a frame, the status bar, the screen ---------- */
.cd-view { display: grid; gap: 16px; justify-items: center; min-width: 0; padding-block: 8px; }
@media (min-width: 960px) { .cd-view { position: sticky; top: 92px; padding-block: 0; } }
.cd-tip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 99px; border: 1px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28); font-size: 0.9rem; font-weight: 550; }
.cd-tip:not(:has(i)) { padding-left: 16px; font-weight: 400; font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }
.cd-tip i { width: 24px; height: 24px; font-size: 0.66rem; }
.phone { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 372px; height: clamp(520px, calc(100vh - 170px), 700px); padding: 0 10px 10px; border-radius: 50px; background: #060607; box-shadow: inset 0 0 0 1.5px #3b3e44, inset 0 0 0 4px #101113, 0 0 0 1px #000, 0 44px 80px -34px rgba(0, 0, 0, 0.95), 0 0 110px -30px rgb(var(--l1) / 0.55); }
.phone__bar { flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 6px 24px 0; color: #fff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; }
.phone__bar::after { content: ''; position: absolute; left: 50%; top: 11px; width: 88px; height: 24px; border-radius: 99px; background: #000; box-shadow: inset 0 0 0 1px #1d1e21; transform: translateX(-50%); }
.phone__sys { display: flex; align-items: center; gap: 5px; }
.phone__sys svg { display: block; }
.phone__screen { display: block; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 12px 12px 40px 40px; background: #f3f2ef; scrollbar-width: none; }
.phone__screen::-webkit-scrollbar { display: none; }
/* the line at the bottom of the screen */
.phone::after { content: ''; position: absolute; left: 50%; bottom: 17px; width: 118px; height: 4px; border-radius: 4px; background: #fff; mix-blend-mode: difference; opacity: 0.55; transform: translateX(-50%); pointer-events: none; }
.phone__wait { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px; color: var(--ink-2); font-size: 0.95rem; }
.phone__wait p:first-of-type { color: var(--ink); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.phone__wait .note { color: var(--ink-2); }
.phone__icon { width: 60px; height: 60px; margin-bottom: 6px; border-radius: 18px; background: linear-gradient(var(--ink-3), var(--ink-3)) 16px 18px / 28px 3px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) 16px 28px / 20px 3px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) 16px 38px / 24px 3px no-repeat, #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 24px -14px rgba(0, 0, 0, 0.3); }
.phone__spin { width: 34px; height: 34px; margin-bottom: 6px; border-radius: 50%; border: 3px solid var(--line); border-top-color: #2f8a45; animation: spin 0.8s linear infinite; }
.phone__skip { margin-top: 10px; border: 0; background: none; font: inherit; font-size: 0.85rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- a window of an app: the bar with its three dots, a title and a status ---------- */
.win { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 30px 60px -30px rgba(0, 0, 0, 0.95); font-size: 0.92rem; }
.win__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 14px; background: #f4f4f5; border-bottom: 1px solid #e4e4e7; }
.win__bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #d6d6da; }
.win__title { flex: 1; min-width: 0; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 550; color: #63676d; }
.win__live { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; border: 1px solid #c5ecd4; background: #e9f8ef; color: #17834a; font-size: 11px; font-weight: 550; white-space: nowrap; }
.win__live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #23b866; animation: nx-live 2.2s ease-in-out infinite; }

/* ---------- the QR: a card as it would stand on a table ---------- */
.cd-qr { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px; align-items: center; }
.cd-qr__stand { display: grid; gap: 8px; justify-items: center; padding: 12px 12px 10px; border-radius: 14px; background: #fff; box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.9); transform: rotate(-2deg); }
.cd-qr__stand p { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: #63676d; }
.cd-qr__code { width: 124px; min-height: 124px; background: #fff; font-size: 0.75rem; }
.cd-qr__code svg { display: block; width: 100%; height: 100%; }
.cd-qr__text { display: grid; gap: 10px; justify-items: start; font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }
.cd-qr__text b { color: #fff; font-weight: 600; }
.cd-local { padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(245, 166, 35, 0.4); background: rgba(245, 166, 35, 0.1); color: #f6d9a3; }
/* on a phone the QR makes no sense: the link is enough */
@media (max-width: 959px) and (pointer: coarse) {
  .cd-qr { grid-template-columns: 1fr; }
  .cd-qr__stand, .cd-qr__text > p:nth-child(1) { display: none; }
}

/* ---------- the pale section under each demo: «¿Lo quieres?» and the other demos ---------- */
.dm-own { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px clamp(32px, 6vw, 88px); align-items: start; }
.dm-own__text { display: grid; gap: 18px; justify-items: start; }
.dm-own__text .nx-h2 { max-width: 16ch; }
.cd-list { display: grid; gap: 10px; color: var(--muted); font-size: 0.98rem; }
.cd-list li { position: relative; padding-left: 26px; }
.cd-list li::before { content: ''; position: absolute; left: 3px; top: 0.34em; width: 6px; height: 11px; border: solid var(--ink-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cd-list b { color: var(--ink); font-weight: 600; }
.dm-next { display: grid; gap: 12px; }
.dm-next > .nx-eyebrow { margin-bottom: 6px; }
.dm-next__card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 18px 20px; border: 1px solid #fff; border-radius: 18px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.5)); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(11, 13, 20, 0.04), 0 22px 50px -30px rgba(40, 80, 50, 0.45); text-decoration: none; transition: transform 0.4s var(--ease); }
.dm-next__card:hover { transform: translateY(-2px); }
.dm-next__card b { font-weight: 650; font-size: 1.08rem; letter-spacing: -0.02em; }
.dm-next__card span { grid-column: 1; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.dm-next__card .arr { grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #0b0d14; color: #fff; transition: transform 0.25s var(--ease); }
.dm-next__card:hover .arr { transform: translateX(3px); }
.dm-next p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.dm-next p a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 860px) { .dm-own { grid-template-columns: minmax(0, 1fr); } }

/* ---------- demos.html: the filter and the list of demos ---------- */
.dm-list { padding-top: clamp(8px, 2vw, 24px); }
.dm-list .nx-wrap { display: grid; gap: 20px; }
.demo-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.demo-filter button { flex: 0 0 auto; padding: 9px 16px; border: 1px solid var(--glass-line); border-radius: 99px; background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28); cursor: pointer; font-weight: 500; font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); white-space: nowrap; transition: color 0.25s, border-color 0.25s; }
.demo-filter button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.36); }
.demo-filter button[aria-pressed='true'] { background: linear-gradient(180deg, #fff, #e8efe6); border-color: #fff; color: #0b0d14; box-shadow: inset 0 1px 0 #fff, 0 8px 24px -10px rgb(var(--ac) / 0.7); }
@media (max-width: 720px) {
  .demo-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -22px; margin-right: -22px; padding: 0 22px 4px; }
  .demo-filter::-webkit-scrollbar { display: none; }
}
.demo-feature { display: grid; color: #fff; text-decoration: none; border-radius: 28px; transition: transform 0.5s var(--ease), border-color 0.3s; }
/* wide screens: text on the left, picture on the right; narrower: picture first */
@media (min-width: 1000px) {
  .demo-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .demo-feature__art { order: 2; }
}
@media (hover: hover) {
  .demo-feature:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.34); }
  .demo-feature:hover .demo-feature__phone { transform: translateY(-6px) rotate(2deg); }
  .demo-feature:hover .demo-feature__sheet { transform: translateY(-6px) rotate(1deg); }
}
/* the picture: the paper or the agenda on the left, the phone or the sheet on the right, on a darker pane of the card */
.demo-feature__art { position: relative; min-height: 420px; margin: 12px; overflow: hidden; border-radius: 18px; background: radial-gradient(80% 70% at 30% 10%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 70%), rgba(4, 7, 5, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.demo-feature__paper.paper { left: max(7%, calc(50% - 280px)); top: 44px; width: clamp(210px, calc(100% - 260px), 290px); transform: rotate(-6deg); pointer-events: none; }
.demo-feature__phone { position: absolute; right: max(7%, calc(50% - 270px)); top: 30px; width: 198px; height: 363px; transform: rotate(3deg); transition: transform 0.25s ease; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.55)); }
.phone--mini { position: absolute; left: 0; top: 0; width: 360px; height: 660px; max-width: none; transform: scale(0.55); transform-origin: 0 0; pointer-events: none; box-shadow: inset 0 0 0 1.5px #3b3e44, inset 0 0 0 4px #101113; }
.demo-feature__body { display: grid; gap: 14px; align-content: center; justify-items: start; padding: 22px 22px 30px; }
@media (min-width: 1000px) { .demo-feature__body { padding: 44px 28px 44px 44px; } }
.demo-feature .nx-eyebrow { color: color-mix(in srgb, var(--c1) 45%, #fff); }
.demo-feature__title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.08; }
.demo-feature__text { font-size: 1.08rem; color: rgba(255, 255, 255, 0.78); max-width: 34ch; text-wrap: pretty; }
.demo-feature__list { display: grid; gap: 9px; margin: 4px 0 8px; color: rgba(255, 255, 255, 0.62); font-size: 0.95rem; }
.demo-feature__list span { position: relative; padding-left: 26px; }
.demo-feature__list span::before { content: ''; position: absolute; left: 3px; top: 0.34em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.demo-feature__list b { color: #fff; font-weight: 600; }
@media (max-width: 480px) {
  .demo-feature__art { min-height: 380px; }
  .demo-feature__paper.paper { left: 4%; width: 60%; font-size: 10px; }
  .demo-feature__phone { right: 4%; top: 36px; transform: rotate(3deg) scale(0.88); transform-origin: top right; }
}
.demo-empty { display: grid; gap: 14px; justify-items: start; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--glass-line); border-radius: 28px; background: var(--glass); box-shadow: var(--glass-edge); }
.demo-empty p:not(.nx-eyebrow) { color: var(--muted); max-width: 54ch; }
.dm-list__note { color: var(--muted); font-size: 0.98rem; margin-top: 6px; }
.dm-list__note a { color: #fff; text-underline-offset: 4px; }

/* ---------- demo-citas.html: the chat in the phone, the agenda as a window beside it ---------- */
.ci { grid-template-areas: 'biz' 'view' 'side'; }
.ci-biz { grid-area: biz; }
.ci-side { grid-area: side; }
@media (min-width: 960px) { .ci { grid-template-areas: 'biz view' 'side view'; grid-template-rows: auto 1fr; } }
/* nine businesses: three per row */
.ci-tpls, .ci-tpls.cd-tpls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 639px) {
  .ci-tpls .cd-tpl { padding: 10px 8px; }
  .ci-tpls .cd-tpl span { display: none; }
  .ci-tpls .cd-tpl b { font-size: 0.88rem; overflow-wrap: anywhere; }
}
/* the chat: it looks like a messaging app (its green, whatever the business), with no logo of any */
.ci-screen { --wa: #1f9d55; display: flex; flex-direction: column; overflow: hidden; background: #efeae2; font-size: 0.92rem; }
.ci-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 8px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); position: relative; z-index: 1; }
.ci-head svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--wa); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ci-head__avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--biz, var(--wa)); color: #fff; font-weight: 600; }
.ci-head__text { flex: 1; display: grid; line-height: 1.25; min-width: 0; }
.ci-head__text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-head__text span { font-size: 0.76rem; color: var(--wa); }
.ci-chat { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 16px; scrollbar-width: none;
  background: radial-gradient(circle at 20% 30%, rgba(120, 100, 70, 0.09) 0 2px, transparent 3px) 0 0 / 28px 28px, radial-gradient(circle at 70% 75%, rgba(120, 100, 70, 0.06) 0 3px, transparent 4px) 0 0 / 44px 44px, #efeae2; }
.ci-chat::-webkit-scrollbar { display: none; }
.ci-day { align-self: center; margin: 6px 0; padding: 4px 11px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); color: var(--ink-2); font-size: 0.74rem; }
.ci-msg { position: relative; max-width: 82%; padding: 7px 10px 5px; border-radius: 12px; box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13); line-height: 1.36; animation: ci-in 0.22s ease both; }
.ci-msg p { overflow-wrap: anywhere; }
.ci-msg--me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.ci-msg--biz { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.ci-msg__time { display: block; text-align: right; font-size: 0.66rem; color: var(--ink-2); margin-top: 1px; }
.ci-ticks { font-style: normal; color: #34a5e0; letter-spacing: -0.14em; margin-left: 3px; }
.ci-typing { display: flex; gap: 4px; padding: 12px 14px; }
.ci-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: ci-dot 1s infinite ease-in-out; }
.ci-typing i:nth-child(2) { animation-delay: 0.15s; }
.ci-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ci-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ci-in { from { opacity: 0; transform: translateY(6px); } }
/* where a keyboard would be: the sentences to send */
.ci-replies { flex: none; max-height: 46%; overflow-y: auto; padding: 10px 10px 26px; background: #f6f5f2; border-top: 1px solid rgba(0, 0, 0, 0.07); }
.ci-replies__label { font-size: 0.74rem; color: var(--ink-2); margin: 0 4px 7px; }
.ci-replies__list { display: flex; flex-wrap: wrap; gap: 6px; }
.ci-reply { min-height: 38px; padding: 7px 13px; border: 0; border-radius: 19px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 rgba(0, 0, 0, 0.04); color: var(--ink); font: inherit; font-size: 0.86rem; line-height: 1.25; text-align: left; cursor: pointer; }
.ci-reply--time { min-width: 66px; text-align: center; font-weight: 600; background: var(--wa); color: #fff; box-shadow: none; }
.ci-reply--jump { background: var(--ink); color: #fff; box-shadow: none; font-weight: 550; }
.ci-reply--odd { box-shadow: none; border: 1px dashed var(--ink-3); }
.ci-reply--again { background: none; box-shadow: none; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .ci-reply:not(.ci-reply--time, .ci-reply--jump, .ci-reply--again, .ci-reply--odd):hover { box-shadow: inset 0 0 0 1px var(--ink); } }

/* the agenda */
.ci-agenda__head { display: flex; align-items: center; gap: 8px 12px; padding: 14px 16px 12px; }
.ci-agenda__head > span:first-child, .ci-agenda__head > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ci-agenda__head b { font-weight: 650; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--ink); }
.ci-agenda__head small, .ci-agenda__head { color: var(--ink-2); font-size: 0.86rem; }
.ci-agenda__nav { flex: none; display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--ink-2); }
.ci-agenda__nav i, .ci-agenda__nav em { font-style: normal; display: grid; place-items: center; height: 28px; min-width: 28px; padding: 0 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.ci-agenda__nav { padding: 3px; border-radius: 10px; background: #f1f2f4; gap: 2px; }
.ci-agenda__nav em { box-shadow: none; }
.ci-agenda__nav em.is-on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.ci-slots { display: grid; list-style: none; margin: 0; padding: 0; }
.ci-slot { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 14px 4px 16px; border-top: 1px solid #eeeef0; }
.ci-slot__time { flex: none; width: 46px; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); }
.ci-slot__who { flex: 1; min-width: 0; padding: 7px 12px; border-radius: 8px; background: #f1f2f4; box-shadow: inset 3px 0 0 #c5c8cf; }
.ci-slot__who b { font-weight: 600; }
.ci-slot.is-free .ci-slot__who { background: none; color: var(--ink-3); box-shadow: none; outline: 1px dashed var(--line); outline-offset: -1px; }
.ci-slot.is-new .ci-slot__who, .ci-slot.is-ok .ci-slot__who { background: color-mix(in srgb, var(--biz) 13%, #fff); box-shadow: inset 3px 0 0 var(--biz); }
.ci-slot.is-flash .ci-slot__who { animation: ci-flash 1.4s ease; }
@keyframes ci-flash { 0% { background: #ffd98a; } }
.ci-tag { flex: none; font-size: 0.7rem; font-weight: 550; padding: 2px 8px; border-radius: 999px; background: #ffe2a8; color: #6b4500; }
.ci-tag--ok { background: var(--biz); color: #fff; }
/* what the assistant has saved the owner, under the agenda */
.ci-kpis { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e4e4e7; background: #fafafa; }
.ci-kpis p { display: grid; gap: 2px; padding: 12px 16px; }
.ci-kpis p + p { border-left: 1px solid #e4e4e7; }
.ci-kpis b { font-weight: 650; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.ci-kpis span { font-size: 0.8rem; line-height: 1.3; color: var(--ink-2); }
/* a question the assistant could not answer: a notice for the owner */
.ci-notes { display: grid; gap: 8px; }
.ci-note { position: relative; padding: 11px 14px 11px 44px; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); font-size: 0.92rem; animation: ci-in 0.3s ease both; }
.ci-note::before { content: '!'; position: absolute; left: 12px; top: 11px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #ffd98a; color: #4a3000; font-weight: 700; font-size: 0.8rem; }

/* the "Citas" card on demos.html: the agenda window, the chat in the phone */
.demo-feature__agenda { position: absolute; left: max(7%, calc(50% - 280px)); top: 52px; width: clamp(210px, calc(100% - 250px), 300px); display: block; transform: rotate(-4deg); font-size: 13px; box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.6); }
[data-mini-agenda] { display: block; }
.demo-feature__agenda .ci-agenda__head b, .demo-feature__agenda .ci-agenda__head small { display: block; }
.ci-head__back { flex: none; width: 10px; height: 10px; margin: 0 2px 0 8px; border: solid var(--wa); border-width: 0 0 2px 2px; transform: rotate(45deg); }
.demo-feature__agenda .win__bar { height: 26px; }
.demo-feature__agenda .win__bar i { width: 7px; height: 7px; }
.demo-feature__agenda .ci-agenda__head { display: block; padding: 9px 12px 8px; }
.demo-feature__agenda .ci-agenda__head b { font-size: 1em; }
.demo-feature__agenda .ci-slots { display: block; }
.demo-feature__agenda .ci-slot { min-height: 34px; padding: 3px 10px; font-size: 0.85rem; }
.demo-feature__agenda .ci-slot__who { padding: 4px 8px; }
.phone--mini .ci-chat { justify-content: flex-end; overflow: hidden; }
.phone--mini .ci-msg { display: block; animation: none; }
.phone--mini .ci-msg > span:first-child { display: block; }
@media (max-width: 480px) {
  .demo-feature__agenda { left: 4%; width: 62%; font-size: 11px; }
  .demo-feature__agenda .ci-slot__who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo-feature__agenda .ci-tag { display: none; }
}
/* the card picture: the (empty) bar to type a message */
.ci-input { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 22px; background: #f6f5f2; }
.ci-input__field { flex: 1; display: block; padding: 9px 14px; border-radius: 20px; background: #fff; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.ci-input__send { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); }
.ci-input__send::after { content: ''; width: 14px; height: 14px; margin-left: 3px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%, 18% 50%); }

/* ---------- demo-gastos.html: a paper in the camera, what was read in the phone, the sheet as a window ---------- */
.ga { grid-template-areas: 'shot' 'view' 'side'; }
.ga-shot { grid-area: shot; }
.ga-side { grid-area: side; }
@media (min-width: 960px) { .ga { grid-template-areas: 'shot view' 'side view'; grid-template-rows: auto 1fr; } }
.ga-view { scroll-margin-top: 84px; }
.ga .cam__view { height: 360px; }
.ga .paper { top: 44px; }
.ga-again { font-size: 0.9rem; color: var(--muted); }
/* the papers: a till receipt (narrow, thermal) and an invoice (wide, clean) */
.paper--ticket { width: 58%; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.06) 100%), #fbfaf5; font-family: var(--mono); font-size: 10.5px; padding: 16px 14px 22px; }
.paper--factura { width: 80%; background: #fff; font-family: var(--sans); font-size: 11px; padding: 18px 18px 24px; }
.paper--factura .paper__name, .paper--factura .paper__meta { text-align: left; }
.paper__meta { text-align: center; opacity: 0.75; }
.paper__rule { border-top: 1px dashed rgba(45, 38, 32, 0.45); margin: 6px 0; }
.paper__total { font-weight: 700; font-size: 1.15em; margin-top: 2px; }
.paper__stain { position: relative; overflow: visible !important; }
.paper__stain::after { content: ''; position: absolute; inset: -7px -9px -8px -12px; border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; background: radial-gradient(closest-side, rgba(92, 58, 28, 0.92), rgba(92, 58, 28, 0.78) 70%, rgba(92, 58, 28, 0.25)); }

/* the phone: the expenses app, with what it read */
.ga-screen { display: flex; flex-direction: column; font-size: 0.92rem; line-height: 1.4; background: #f2f2f4; }
.ga-bar { flex: none; display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px 12px; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 1; }
.ga-bar b { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; }
.ga-bar span { padding: 3px 10px; border-radius: 99px; background: var(--tile); color: var(--ink-2); font-size: 0.8rem; font-weight: 550; }
.ga-body { display: grid; gap: 10px; padding: 12px 12px 28px; }
.ga-status { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #fff; color: var(--ink-2); font-size: 0.88rem; font-weight: 550; }
.ga-status::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.ga-status--ok { background: #e4f3e7; color: #1d5a2b; }
.ga-status--ok::before { background: #23b866; }
.ga-status--warn { background: #fff1d6; color: #6b4500; }
.ga-status--warn::before { background: var(--gold); }
.ga-card { display: grid; gap: 10px; padding: 13px 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); animation: ci-in 0.3s ease both; }
.ga-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ga-cols--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); }
.ga-field { display: grid; gap: 2px; min-width: 0; }
.ga-field__label { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.ga-field__value { min-height: 1.5em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ga-input { width: 100%; min-width: 0; font: inherit; font-size: 16px; /* smaller than this and the iPhone zooms the page */ color: inherit; padding: 6px 9px; margin: 1px 0 0 -1px; border: 0; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.ga-input--n { font-variant-numeric: tabular-nums; }
.ga-input:focus-visible { outline: 2px solid #2f8a45; outline-offset: 1px; }
.ga-input[aria-invalid='true'] { box-shadow: inset 0 0 0 2px var(--error); }
.ga-field.is-doubt .ga-input { background: #fff1d6; box-shadow: inset 0 0 0 2px var(--gold); }
.ga-doubt { display: grid; gap: 8px; justify-items: start; padding: 10px 12px; border-radius: 10px; background: #fff6e5; box-shadow: inset 3px 0 0 var(--gold); font-size: 0.88rem; }
.ga-doubt .btn { min-height: 36px; padding: 0 16px; border: 0; border-radius: 99px; background: #111213; color: #fff; font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.ga-hint { padding: 0 6px 12px; color: var(--ink-2); font-size: 0.82rem; }
.ga-skel { display: block; width: 70%; height: 0.8em; margin: 0.35em 0; border-radius: 4px; background: linear-gradient(90deg, var(--tile) 25%, #f7f7f6 50%, var(--tile) 75%) 0 0 / 200% 100%; animation: ga-skel 1.1s linear infinite; }
@keyframes ga-skel { to { background-position: -200% 0; } }

/* the expense sheet: a spreadsheet, with its numbered rows and the months as tabs below */
.ga-sheet { background: #fff; overflow: hidden; }
.ga-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; counter-reset: row 1; }
.ga-table th, .ga-table td { border: 1px solid #e7e7ea; }
.ga-table tr > :first-child { border-left: 0; }
.ga-table tr > :last-child { border-right: 0; }
.ga-table thead th { border-top: 0; background: #f4f4f5; font-family: var(--mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: 7px 8px; }
.ga-table td { padding: 7px 8px; vertical-align: top; }
/* the grey column with the row's number, as in any spreadsheet */
.ga-table tr::before { content: ''; display: table-cell; width: 30px; border-bottom: 1px solid #e7e7ea; background: #f4f4f5; color: var(--ink-3); font-family: var(--mono); font-size: 0.66rem; text-align: center; vertical-align: middle; }
.ga-table thead tr::before { content: '1'; }
.ga-table tbody tr { counter-increment: row; }
.ga-table tbody tr::before { content: counter(row); }
.ga-table .ga-n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ga-date { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; }
.ga-who b { font-weight: 600; margin-right: 6px; }
.ga-cat { display: block; color: var(--ink-2); font-size: 0.8rem; }
.ga-total { font-weight: 600; }
.ga-table tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; background: #fafafa; font-weight: 650; }
.ga-table tfoot tr::before { border-top: 2px solid var(--ink); border-bottom: 0; }
.ga-table tr.is-new td { background: #f1faf2; }
.ga-table tr.is-flash td { animation: ga-flash 1.4s ease; }
@keyframes ga-flash { 0% { background: #ffd98a; } }
.ga-tabs { display: flex; gap: 2px; padding: 0 10px; background: #f4f4f5; border-top: 1px solid #e4e4e7; font-size: 0.78rem; color: var(--ink-2); }
.ga-tabs span { padding: 7px 12px; }
.ga-tabs .is-on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 #2f8a45; }
.ga-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.ci-count { font-size: 0.92rem; color: var(--muted); }
.ci-count b { color: #fff; font-weight: 650; }
.dm-ghost { background: var(--glass); color: #fff; border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.dm-ghost:hover { background: #fff; color: #0b0d14; box-shadow: none; }
@media (max-width: 520px) {
  .ga-table .ga-wide, .ga-table tr::before { display: none; }
  .ga-table td, .ga-table thead th { padding-inline: 6px; }
}

/* the card on demos.html: the receipt on the left, the sheet window beside it */
.demo-feature__ticket.paper { left: max(6%, calc(50% - 280px)); top: 64px; width: 190px; transform: rotate(-6deg); pointer-events: none; }
.demo-feature__sheet { position: absolute; display: block; right: max(5%, calc(50% - 290px)); top: 128px; width: min(340px, 62%); transform: rotate(2deg); transition: transform 0.25s ease; box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.6); pointer-events: none; }
.demo-feature__sheet .win__bar { height: 26px; }
.demo-feature__sheet .win__bar i { width: 7px; height: 7px; }
.demo-feature__sheet .ga-sheet { display: block; }
.demo-feature__sheet .ga-table { font-size: 0.76rem; }
.demo-feature__sheet .ga-table td, .demo-feature__sheet .ga-table thead th { padding: 5px 6px; }
.demo-feature__sheet .ga-cat, .demo-feature__sheet .ga-wide, .demo-feature__sheet .ga-table tr::before { display: none; }
.demo-feature__sheet .ga-who { width: 100%; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
  .demo-feature__ticket.paper { left: 3%; top: 24px; width: 170px; font-size: 9.5px; }
  .demo-feature__sheet { right: 3%; top: 150px; width: 78%; }
  .demo-feature__sheet .ci-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cam.is-scanning .cam__line { top: 45%; }
}

/* ---------- carta.html (the diner's menu on its own page; it loads styles.css, not nueva.css) ---------- */
.cv-body { background: #fff; }
.cv { max-width: 560px; margin: 0 auto; min-height: 100vh; }
.cv-msg { display: grid; gap: 16px; justify-items: start; padding: 64px 20px; }
.cv-msg h1 { font-size: 2rem; }
.cv-msg p { color: var(--ink-2); }
.cv-msg .btn { margin: 4px 6px 0 0; }
.cv-foot { line-height: 1.7; }
