/*
  Sistema visual BTOL (guía de estilo de btol.tech), aplicado al live demo.
  - Un solo acento: el azul de la marca. Sin degradados, brillos ni sombras;
    las superficies se separan con bordes. El logo trae su propio degradado.
  - Oscuro primero; el tema claro sigue a prefers-color-scheme.
  - Radios: botones y chips = píldora; tarjetas = 16 px; campos y avisos = 12 px.
  - Geist para todo, Geist Mono para datos (contraseñas, cuentas atrás).
  La pantalla de la derecha NO sigue esto: es el contenido del cliente.
*/

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/geist-mono-latin.woff2) format("woff2");
}

:root {
  --ink: #07080c;
  --ink-2: #0d0f15;
  --ink-3: #151925;
  --line: #232838;
  --fg: #eef1f6;
  --muted: #98a1b3;
  --accent: #5ea1ed;
  --danger: #f2727f;
  --accent-rgb: 94 161 237;
  --danger-rgb: 242 114 127;
  --fg-rgb: 238 241 246;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #f5f6f8;
    --ink-2: #fcfcfd;
    --ink-3: #eceef2;
    --line: #dde1e8;
    --fg: #0d1017;
    --muted: #555d70;
    --accent: #1d67c9;
    --danger: #c42b3c;
    --accent-rgb: 29 103 201;
    --danger-rgb: 196 43 60;
    --fg-rgb: 13 16 23;
  }
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font: 15px/1.5 "Geist", ui-sans-serif, system-ui, sans-serif;
}

h1, h2, h3 { letter-spacing: -0.025em; text-wrap: balance; font-weight: 600; }

::selection { background: var(--accent); color: var(--ink); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }

.mono { font-family: "Geist Mono", ui-monospace, monospace; }

/* ── Cabecera ─────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}
.top .spacer { flex: 1; }
.top .who { color: var(--muted); font-size: 14px; }

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--fg); }
.brand img { height: 26px; width: auto; display: block; }
.brand .product { padding-left: 14px; border-left: 1px solid var(--line); }

/* Etiqueta sobre el título (eyebrow) */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* ── Botones: píldora; el principal en fg sobre ink ───────────────────── */

button, .button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--fg);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, transform .2s;
}
button:hover, .button:hover { background: rgb(var(--fg-rgb) / .85); text-decoration: none; }
button:active, .button:active { transform: scale(.98); }
button:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: default; transform: none; }

button.ghost, .button.ghost { background: transparent; border-color: var(--line); color: var(--fg); }
button.ghost:hover, .button.ghost:hover { border-color: rgb(var(--fg-rgb) / .4); background: rgb(var(--fg-rgb) / .05); }
button.small, .button.small { padding: 7px 16px; font-size: 13px; }

/* ── Formularios ──────────────────────────────────────────────────────── */

label { display: block; font-size: 14px; color: rgb(var(--fg-rgb) / .8); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .25);
}

.count { float: right; font-size: 12px; color: var(--muted); font-family: "Geist Mono", ui-monospace, monospace; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--fg); font-size: 14px; }
.check input { margin-top: 4px; accent-color: var(--accent); }

/* Avisos: vacíos no ocupan caja; con texto, el patrón de la guía */
.msg { margin: 12px 0 0; font-size: 14px; }
.msg:empty { display: none; }
.msg.error { color: var(--danger); border: 1px solid rgb(var(--danger-rgb) / .4); background: rgb(var(--danger-rgb) / .1); border-radius: 12px; padding: 10px 14px; }
.msg.ok { color: var(--fg); border: 1px solid rgb(var(--accent-rgb) / .4); background: rgb(var(--accent-rgb) / .1); border-radius: 12px; padding: 10px 14px; }

.actions { margin-top: 18px; }

/* ── Superficies ──────────────────────────────────────────────────────── */

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}
.card + .card { margin-top: 16px; }
.card h2 { margin: 0 0 4px; font-size: 17px; }
.card p.help, p.help { margin: 0 0 8px; color: var(--muted); font-size: 13px; }

/* ── Página del demo ──────────────────────────────────────────────────── */

.page { max-width: 1280px; margin: 0 auto; padding: 40px 24px 64px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.intro h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; margin: 8px 0 10px; }
.intro .lead { color: var(--muted); margin: 0; max-width: 46rem; }
.session-info { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.muted { color: var(--muted); }
.strong { font-weight: 500; }
.card.start { max-width: 520px; }

/* ── Constructor + pantalla (de NexusBuilder.astro, btol.tech/nexus) ──── */

.nb { display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: 32px; align-items: start; }
.nb-col { min-width: 0; }
.nb-col > .card { margin-top: 16px; }

.surface { border-radius: 16px; border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; }
.chrome { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.chrome p { margin: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { display: flex; gap: 6px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dots span:nth-child(2) { background: #febc2e; }
.dots span:nth-child(3) { background: #28c840; }

.ed-body { padding: 20px; }
.nb-label { margin: 0 0 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.nb-label:not(:first-child) { margin-top: 20px; }
.nb-label.sub { margin: 14px 0 0; }
.nb-ico { width: 18px; height: 18px; flex: none; color: var(--c); }
.ed-body .hint { margin: 10px 0 0; }

/* Control segmentado (orientación, tamaño de las franjas) */
.seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); }
.seg button { flex: 1; padding: 8px 12px; background: transparent; color: var(--muted); font-weight: 500; }
.seg button:hover { background: rgb(var(--fg-rgb) / .06); color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }
.seg.small { margin: 10px 0 4px; }
.seg.small button { padding: 6px 10px; font-size: 13px; }
.or-ico { display: inline-block; border: 1.5px solid currentColor; border-radius: 3px; }
.or-ico.v { width: 10px; height: 16px; }
.or-ico.h { width: 16px; height: 10px; }

/* Piezas para arrastrar */
.palette { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pieza {
  width: 100%; flex-direction: column; gap: 8px; padding: 16px 10px; border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--c) 45%, var(--line)); background: color-mix(in oklab, var(--c) 10%, transparent);
  color: var(--fg); font-weight: 500; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.pieza:hover { background: color-mix(in oklab, var(--c) 18%, transparent); border-color: var(--c); }
.pieza .nb-ico { width: 24px; height: 24px; }
.drag-ghost {
  position: fixed; z-index: 100; width: 120px; pointer-events: none; transform: translate(-50%, -50%) rotate(-3deg);
  background: color-mix(in oklab, var(--c) 30%, var(--ink-2)); border-color: var(--c); opacity: .95;
}
body.dragging, body.dragging * { cursor: grabbing !important; }

/* Panel del bloque seleccionado */
.editor { border-top: 1px solid var(--line); padding: 20px 22px 22px; }
.editor h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 17px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.uploads li.empty { color: var(--muted); font-size: 13px; }

/* ── Tótem: la pantalla siempre es oscura, como un display real ────────── */

.totem-col { display: flex; flex-direction: column; align-items: center; position: sticky; top: 24px; min-width: 0; }
.totem {
  border-radius: 1.6rem; background: #1b1e27; padding: 10px; transition: width .35s ease;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .1);
}
/* Vertical: que quepa de alto en la ventana. Horizontal: todo el ancho. */
.totem[data-orient="vertical"] { width: min(100%, 24rem, calc((100vh - 170px) * 9 / 16 + 20px)); }
.totem[data-orient="horizontal"] { width: 100%; border-radius: 1.2rem; }
.nb-pantalla {
  position: relative; aspect-ratio: 9 / 16; container-type: size; overflow: hidden;
  border-radius: 1.1rem; background: #0b0d1a; color: #fff; transition: box-shadow .3s;
}
.totem[data-orient="horizontal"] .nb-pantalla { aspect-ratio: 16 / 9; border-radius: .7rem; }
.nb-pantalla.cambiando { box-shadow: 0 0 0 3px var(--c), 0 0 48px -4px var(--c); }
.totem-cuello { width: 24px; height: 32px; background: linear-gradient(#1b1e27, #14161d); }
.totem-base { width: 160px; height: 12px; border-radius: 12px 12px 0 0; background: #1b1e27; box-shadow: 0 0 0 1px rgb(255 255 255 / .1); }
[hidden] { display: none !important; }

/* Pantalla: franja de texto, zonas y cinta. Separaciones mínimas para
   aprovechar el área; los tamaños los pone demo.js con pasos fijos. */
.sc { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 1.2cqmin; padding: 1.2cqmin; }
.sc-band { position: relative; z-index: 4; flex: 0 0 10%; min-height: 0; container-type: size; border-radius: 1.6cqmin; transition: flex-basis .25s ease; }
.sc-texto { display: grid; place-items: center; background: #161a3a; padding: 0 4cqw; }
.sc-title {
  margin: 0; text-align: center; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere;
  font-size: min(42cqh, 9cqw); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-cinta { display: flex; align-items: center; overflow: hidden; background: #12142b; }
.nb-marquesina { margin: 0; white-space: nowrap; font-size: 50cqh; font-weight: 600; padding-left: 3cqw; animation: nb-cinta 16s linear infinite; }
@keyframes nb-cinta { to { transform: translateX(-50%); } }

/* Área de zonas. Cada zona va en posición absoluta (demo.js la calcula del
   reparto) y se encoge medio hueco por lado; el margen negativo devuelve
   ese medio hueco en el borde exterior. */
.sc-zones { --g: 1.2cqmin; position: relative; flex: 1; min-height: 0; margin: calc(var(--g) / -2); }
.sc-zones.empty {
  margin: 0;
  display: grid; place-items: center; text-align: center; padding: 0 8cqw;
  border: 2px dashed rgb(255 255 255 / .18); border-radius: 1.6cqmin; color: rgb(255 255 255 / .55); font-size: 4.2cqmin;
}
.sc-zones.empty::before { content: "Suelta aquí fotos o videos"; }
.sc-zone {
  position: absolute; container-type: size; border-radius: 1.6cqmin; background: rgb(255 255 255 / .05);
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}
/* Con contenido, el fondo de la zona es transparente: sólo se ve la foto o el video. */
.sc-zone.lleno { background: transparent; }
.nb-slides { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.nb-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; background: transparent; }
.nb-slide.on { opacity: 1; }
/* Contenido completo dentro de su zona: nada se recorta. */
.nb-slide img, .nb-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.nb-slide.ejemplo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqmin;
  padding: 0 6cqw; text-align: center; background: linear-gradient(#6d3cf5, #2b1a8f);
}
.nb-slide.ejemplo .eb { margin: 0; font-size: 5cqmin; font-weight: 600; text-transform: uppercase; letter-spacing: .25em; color: rgb(255 255 255 / .7); }
.nb-slide.ejemplo .tt { margin: 0; font-size: 16cqmin; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.nb-slide.ejemplo .sb { margin: 1cqmin 0 0; font-size: 6cqmin; color: rgb(255 255 255 / .8); }
.nb-barras { position: absolute; left: 4cqmin; right: 4cqmin; top: 4cqmin; display: flex; gap: 1.5cqmin; z-index: 2; }
.nb-barras > span { height: max(2px, 1.2cqmin); flex: 1; overflow: hidden; border-radius: 999px; background: rgb(255 255 255 / .25); }
.nb-barras > span > span { display: block; height: 100%; width: 0; background: #fff; }

.sc-empty {
  position: absolute; inset: 1.2cqmin; display: grid; place-items: center; text-align: center; padding: 0 8cqw;
  border: 2px dashed rgb(255 255 255 / .18); border-radius: 1.6cqmin; color: rgb(255 255 255 / .55); font-size: 4.2cqmin;
}
.sc-empty p { margin: 0; }

/* Edición sobre la pantalla: marco al pasar o seleccionar, × y bordes */
.ed-frame { position: absolute; inset: 0; z-index: 3; border-radius: inherit; cursor: pointer; transition: box-shadow .15s; }
.sc-band:hover > .ed-frame, .sc-zone:hover > .ed-frame { box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--c) 70%, transparent); }
.selected > .ed-frame { box-shadow: inset 0 0 0 3px var(--c) !important; }
.ed-x {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0; border-radius: 999px;
  background: rgb(0 0 0 / .65); color: #fff; opacity: 0; transition: opacity .15s;
}
.ed-x:hover { background: #000; }
.ed-x svg { width: 14px; height: 14px; }
.sc-band:hover .ed-x, .sc-zone:hover .ed-x, .selected .ed-x { opacity: 1; }
.sc-band .ed-x { top: 50%; transform: translateY(-50%); width: 22px; height: 22px; }

/* Bordes para cambiar el tamaño: siempre a la vista (una barrita blanca) y
   con un área de agarre generosa, también para el dedo. */
.ed-handle, .ed-split { touch-action: none; z-index: 5; }
.ed-handle { position: absolute; left: 0; right: 0; height: 28px; cursor: ns-resize; }
.ed-handle.texto { bottom: -14px; }
.ed-handle.cinta { top: -14px; }
.ed-split { position: absolute; z-index: 7; }
.ed-split.anidado { z-index: 6; }
.ed-split.col { cursor: ns-resize; }
.ed-split.row { cursor: ew-resize; }
.ed-handle::after, .ed-split::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 6px; transform: translate(-50%, -50%);
  border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px rgb(0 0 0 / .5), 0 2px 8px rgb(0 0 0 / .5);
  opacity: .75; transition: opacity .15s, width .15s, height .15s;
}
.ed-split.row::after { width: 6px; height: 44px; }
.ed-handle:hover::after, .ed-split:hover::after, .ed-handle.activo::after, .ed-split.activo::after { opacity: 1; width: 64px; }
.ed-split.row:hover::after, .ed-split.row.activo::after { width: 6px; height: 64px; }

/* Vista previa de dónde cae lo que se arrastra */
.sc-drop {
  position: absolute; z-index: 6; display: grid; place-items: center; pointer-events: none;
  border: 2px dashed var(--c); border-radius: 1.6cqmin; background: color-mix(in oklab, var(--c) 30%, transparent);
  transition: left .12s, top .12s, width .12s, height .12s;
}
.sc-drop span { padding: 4px 12px; border-radius: 999px; background: var(--c); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sc-size {
  position: absolute; z-index: 7; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; pointer-events: none;
  padding: 6px 14px; border-radius: 999px; background: rgb(0 0 0 / .8); color: #fff; font-size: 14px; font-weight: 600;
}

/* Destello: al agregar o cambiar un bloque, prende de su color un momento */
.nb-flash::after {
  content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none;
  background: color-mix(in oklab, var(--c) 45%, transparent);
  box-shadow: inset 0 0 0 0.9cqmin var(--c), 0 0 6cqmin var(--c);
  animation: nb-flash 1.6s ease-out forwards;
}
@keyframes nb-flash { 0%, 40% { opacity: 1; } 20% { opacity: .45; } 100% { opacity: 0; } }

.sync { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #28c840; }
.sync-dot.cambiando { background: var(--c, var(--accent)); animation: nb-latido .6s ease-in-out infinite alternate; }
@keyframes nb-latido { to { opacity: .3; } }

.qr { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.qr img { width: 150px; height: 150px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.qr .url { font-size: 12px; color: var(--muted); word-break: break-all; font-family: "Geist Mono", ui-monospace, monospace; }

.uploads { list-style: none; margin: 8px 0 0; padding: 0; }
.uploads li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.uploads li:first-child { border-top: 0; }
.uploads .what { flex: 1; min-width: 0; }
.uploads .thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--ink-3); flex: none; }
.uploads .reason { display: block; color: var(--danger); font-size: 12px; }

.badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.listo { border-color: rgb(var(--accent-rgb) / .5); background: rgb(var(--accent-rgb) / .1); color: var(--accent); }
.badge.rechazado { border-color: rgb(var(--danger-rgb) / .4); background: rgb(var(--danger-rgb) / .1); color: var(--danger); }

.timer { font-family: "Geist Mono", ui-monospace, monospace; color: var(--fg); }

.progress { height: 4px; border-radius: 2px; background: var(--ink-3); overflow: hidden; margin-top: 12px; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* ── Páginas centradas (login, celular, privacidad, invitaciones) ─────── */

.center { max-width: 440px; margin: 0 auto; padding: 48px 16px; }
.center > .brand { margin-bottom: 40px; }
.center h1 { font-size: 34px; line-height: 1.05; letter-spacing: -0.04em; margin: 8px 0 10px; }
.center .lead { color: var(--muted); margin: 0 0 28px; }
.wide { max-width: 960px; }
.card h2 + p { margin-top: 0; }
.card h2:not(:first-child) { margin-top: 20px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 6px; border-top: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }

.secret {
  font: 500 20px/1.2 "Geist Mono", ui-monospace, monospace;
  background: var(--ink); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 12px; display: inline-block; margin: 6px 8px 6px 0;
}

/* ── Modales (en lugar de alert/confirm del navegador) ─────────────────── */

.modal {
  width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--ink-2); color: var(--fg);
}
.modal::backdrop { background: rgb(4 5 8 / .7); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .18s ease-out; }
.modal[open]::backdrop { animation: modal-fade .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes modal-fade { from { opacity: 0; } }
.modal-box { padding: 28px 28px 24px; }
.modal-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; margin-bottom: 16px;
  font-weight: 700; font-size: 18px; color: var(--accent);
  border: 1px solid rgb(var(--accent-rgb) / .4); background: rgb(var(--accent-rgb) / .12);
}
.modal.error .modal-mark { color: var(--danger); border-color: rgb(var(--danger-rgb) / .4); background: rgb(var(--danger-rgb) / .12); }
.modal h2 { margin: 0 0 8px; font-size: 20px; }
.modal p { margin: 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
button.danger { background: var(--danger); color: #fff; }
button.danger:hover { background: rgb(var(--danger-rgb) / .85); }

@media (max-width: 1023px) {
  .nb { grid-template-columns: 1fr; }
  .totem-col { position: static; order: -1; }
  .totem[data-orient="vertical"] { width: min(100%, 20rem); }
  .palette { grid-template-columns: repeat(4, 1fr); }
  .pieza { padding: 12px 6px; font-size: 13px; }
}

@media (max-width: 640px) {
  .page { padding: 24px 16px 48px; }
  .top { padding: 12px 16px; flex-wrap: wrap; }
  .top .who { display: none; }
  .brand img { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0s !important; }
  .nb-marquesina, .sync-dot.cambiando, .spinner { animation: none; }
  .sc-band, .sc-zone, .totem { transition: none; }
  .nb-flash::after { animation: none; opacity: 0; }
  .modal[open], .modal[open]::backdrop { animation: none; }
}
