/* Vizion Edit — editor por notas dentro de Vizion Studio (2026-11-04).
   Viene del editor local de Diego (editor-flow/). Todo va dentro de .vze para no
   chocar con los estilos de Studio. */
.vze {
  --bg: #0c0c0e; --bg-2: #111114; --panel: #16161a; --panel-2: #1c1c21; --panel-3: #24242a;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12);
  --text: #eceae5; --text-2: #a9a69f; --text-3: #6f6c66;
  --gold: #e3b873; --gold-2: #f1cf96; --gold-ink: #1a1408;
  --remove: #ff7b6b; --replace: #e3b873; --add: #6fd3a8; --full: #a99bff; --editc: #7cc4ff;
  --danger: #ff6b6b; --ok: #6fd3a8;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, .65), 0 2px 8px rgba(0, 0, 0, .35);
  color-scheme: dark;
  position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 14px/1.45 Geist, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden; animation: vze-fade .3s var(--ease) both;
}
.vze[hidden] { display: none !important; }
.vze *, .vze *::before, .vze *::after { box-sizing: border-box; }
.vze button, .vze input, .vze textarea { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.vze button { cursor: pointer; }
.vze svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vze [hidden] { display: none !important; }
.vze kbd { font: 500 11px/1 inherit; padding: 3px 6px; border-radius: 5px; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--text-2); }
.vze .muted { color: var(--text-3); }

/* botones */
.vze .btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; margin: 0;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font-weight: 500; font-size: 13.5px; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s, transform .12s var(--ease), box-shadow .2s, opacity .2s;
}
.vze .btn:hover { background: var(--panel-3); border-color: rgba(255, 255, 255, .18); }
.vze .btn:active { transform: scale(.97); }
.vze .btn:disabled { opacity: .4; pointer-events: none; }
.vze .btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; gap: 6px; }
.vze .btn.sm svg { width: 15px; height: 15px; }
.vze .btn.primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.vze .btn.primary:hover { background: var(--gold-2); border-color: var(--gold-2); box-shadow: 0 6px 22px -6px rgba(227, 184, 115, .55); }
.vze .btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.vze .btn.ghost:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.vze .icon {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; padding: 0; margin: 0;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2);
  transition: background .18s, color .18s, transform .12s var(--ease), opacity .2s;
}
.vze .icon:hover { background: var(--panel-3); color: var(--text); }
.vze .icon:active { transform: scale(.94); }
.vze .icon:disabled { opacity: .35; pointer-events: none; }
.vze .icon.ghost { border-color: transparent; background: transparent; }
.vze .icon.sm { width: 28px; height: 28px; border-radius: 7px; }
.vze .icon.sm svg { width: 15px; height: 15px; }
.vze .chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--panel-3); color: var(--text-2); border: 1px solid var(--line); }
.vze .chip-btn { height: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 12px; font-weight: 600; }
.vze .chip-btn:hover { color: var(--text); background: var(--panel-3); }

/* barra superior */
.vze .top {
  height: 58px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 0 10px;
  border-bottom: 1px solid var(--line); background: rgba(17, 17, 20, .9); backdrop-filter: blur(12px); z-index: 20;
}
.vze .top-l, .vze .top-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vze .title { font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.vze.with-header .title { display: none; }
.vze .title em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 19px; color: var(--gold); margin-left: 2px; }
.vze .ver { font-variant-numeric: tabular-nums; }
.vze .ver.bump { animation: vze-bump .5s var(--spring); }
.vze .sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 2px; }
.vze .cost { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.vze .cost b { color: var(--gold-2); font-weight: 600; }
.vze .menu-wrap { position: relative; }
.vze .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; padding: 6px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); z-index: 50; animation: vze-pop .18s var(--ease); }
.vze .menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: transparent; font-size: 13px; }
.vze .menu button:hover { background: var(--panel-3); }
.vze .menu small { margin-left: auto; color: var(--text-3); }

/* lienzo */
.vze .main { flex: 1; display: flex; min-height: 0; position: relative; }
.vze .stage-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vze .viewport {
  position: relative; flex: 1; overflow: hidden; cursor: crosshair; user-select: none; -webkit-user-select: none; touch-action: none;
  background-color: #0a0a0c; background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 22px 22px;
}
.vze .viewport.panning, .vze .viewport.space { cursor: grab; }
.vze .viewport.panning { cursor: grabbing; }
.vze .viewport.placing { cursor: copy; }
.vze .doc { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255,255,255,.06); }
.vze .doc.anim { transition: transform .45s var(--ease), width .45s var(--ease), height .45s var(--ease); }
.vze .doc canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vze .doc canvas.cv-main { position: relative; }
.vze .before { z-index: 2; }
.vze .preview { position: absolute; z-index: 3; pointer-events: none; }
.vze .preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vze .preview.reveal { animation: vze-reveal 1.1s var(--ease) both; }
.vze .preview.flash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 240, 210, .38) 50%, transparent 70%); background-size: 250% 100%; animation: vze-sheen 1.2s .25s var(--ease) both; mix-blend-mode: screen; }
.vze .marks { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.vze .marks > * { pointer-events: auto; }

/* recuadros */
.vze .box {
  --c: var(--gold);
  position: absolute; border: 1.5px solid var(--c); border-radius: 3px; z-index: 3;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0); transition: box-shadow .35s var(--ease), opacity .3s;
  animation: vze-boxin .45s var(--ease) backwards; pointer-events: none;
}
.vze .box[data-mode="remove"] { --c: var(--remove); }
.vze .box[data-mode="add"] { --c: var(--add); border-style: dashed; }
.vze .box[data-mode="edit"] { --c: var(--editc); }
.vze .box[data-mode="full"] { --c: var(--full); }
.vze .box.dim { opacity: .45; }
.vze .box.sel { box-shadow: 0 0 0 9999px rgba(6, 6, 8, .42); pointer-events: auto; cursor: move; z-index: 4; }
.vze .box.draft:not(.sel) { border-style: dashed; cursor: pointer; pointer-events: auto; }
.vze .box.pend { border-style: dashed; pointer-events: auto; cursor: pointer; }
.vze .box .h { position: absolute; width: 14px; height: 14px; border-radius: 4px; background: #fff; border: 2px solid var(--c); display: none; touch-action: none; }
.vze .box.sel:not(.locked) .h { display: block; }
.vze .box .h.nw { left: -8px; top: -8px; cursor: nwse-resize; } .vze .box .h.ne { right: -8px; top: -8px; cursor: nesw-resize; }
.vze .box .h.sw { left: -8px; bottom: -8px; cursor: nesw-resize; } .vze .box .h.se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.vze .box.working { border-color: transparent; }
.vze .box.working::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 3px; padding: 1.5px;
  background: conic-gradient(from var(--vze-a, 0deg), var(--c), transparent 30%, var(--c) 60%, transparent 85%, var(--c));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: vze-spin 2.4s linear infinite;
}
.vze .box.working::after {
  content: ""; position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(227, 184, 115, 0) 40%, rgba(255, 232, 190, .22) 50%, rgba(227, 184, 115, 0) 60%, transparent 100%);
  background-size: 100% 260%; animation: vze-scan 2.2s var(--ease) infinite; mix-blend-mode: screen;
}
.vze .box .clock { position: absolute; right: 6px; bottom: 6px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.7); font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--gold-2); display: none; font-variant-numeric: tabular-nums; }
.vze .box.working .clock { display: block; }
@property --vze-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.vze .box-top {
  position: absolute; left: -1.5px; bottom: calc(100% + 7px); display: flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 3px; border-radius: 9px; background: rgba(14, 14, 16, .92); border: 1px solid var(--line-2); box-shadow: 0 8px 24px rgba(0,0,0,.45);
  pointer-events: auto; cursor: default; animation: vze-pop .25s var(--ease) both;
}
.vze .box.inside-top .box-top { bottom: auto; top: 6px; left: 6px; }
.vze .box-top .tag { padding: 3px 8px; border-radius: 6px; background: var(--c); color: #141109; font-size: 11.5px; font-weight: 700; }
.vze .box-top .fmts { display: inline-flex; gap: 2px; }
.vze .box-top .fmts[hidden] { display: none !important; }
.vze .box-top .fmt { height: 24px; padding: 0 7px; margin: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.vze .box-top .fmt:hover { background: var(--panel-3); color: var(--text); }
.vze .box-top .fmt.on { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.vze .box-top .px { padding: 0 6px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.vze .box-top .x { height: 24px; display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; padding: 0 8px 0 6px; border: 1px solid rgba(255, 107, 107, .45); border-radius: 6px; background: rgba(255, 107, 107, .16); color: #ff8a8a; font-size: 11.5px; font-weight: 700; transition: background .15s, color .15s, transform .15s; }
.vze .box-top .x:hover { background: var(--danger); border-color: var(--danger); color: #1a0d0d; }
.vze .box-top .x:active { transform: scale(.94); }
.vze .box-top .x svg { width: 13px; height: 13px; stroke-width: 2.6; }
.vze .box .mini { position: absolute; left: -1.5px; bottom: calc(100% + 6px); max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 9px; border-radius: 7px; background: var(--c); color: #141109; font-size: 11.5px; font-weight: 600; pointer-events: auto; }
.vze .box.inside-top .mini { bottom: auto; top: 6px; left: 6px; }
.vze .box-note {
  position: absolute; left: -1.5px; top: calc(100% + 8px); width: max(100%, 330px); max-width: 440px; display: flex; gap: 6px; align-items: flex-end;
  padding: 6px; border-radius: 12px; background: rgba(14, 14, 16, .94); border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0,0,0,.55);
  pointer-events: auto; cursor: default; animation: vze-pop .3s .05s var(--ease) both; backdrop-filter: blur(10px);
}
.vze .box.note-above .box-note { top: auto; bottom: calc(100% + 44px); }
.vze .box.note-inside .box-note { top: auto; bottom: 8px; left: 8px; width: max(calc(100% - 16px), 330px); max-width: 440px; }
/* la nota nunca se aprieta y se puede mover a mano (2026-11-07) */
.vze .box-note { min-width: min(330px, calc(100vw - 24px)); }
.vze .box-note .note-grip { width: 18px; height: 34px; flex: none; display: grid; place-items: center; padding: 0; margin: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); font-size: 15px; line-height: 1; cursor: grab; touch-action: none; }
.vze .box-note .note-grip:hover { color: var(--text); background: rgba(255,255,255,.06); }
.vze .box-note .note-grip:active { cursor: grabbing; }
.vze .box-note textarea { flex: 1; min-width: 0; min-height: 34px; max-height: 120px; resize: none; border: 1px solid transparent; border-radius: 8px; padding: 7px 9px; margin: 0; background: var(--panel-2); color: var(--text); font-size: 13.5px; line-height: 1.4; overflow: hidden; box-shadow: none; }
.vze .box-note textarea:focus { outline: none; border-color: var(--c); }
.vze .box-note textarea::placeholder { color: var(--text-3); }
.vze .box-note .go { height: 34px; flex: none; background: var(--c); border-color: var(--c); color: #141109; font-weight: 600; }
.vze .box-note .go:hover { filter: brightness(1.08); box-shadow: 0 6px 20px -6px var(--c); background: var(--c); }
.vze .box-note .go small { font-weight: 500; opacity: .7; font-size: 11px; }
.vze .box-note { flex-wrap: wrap; }
.vze .box-err { order: -1; flex: 1 0 100%; padding: 7px 10px; border-radius: 8px; font-size: 12px; line-height: 1.4; color: #ffb3a8; background: rgba(40, 14, 14, .92); border: 1px solid rgba(255,107,107,.3); }
.vze .box-note .ref-btn { width: 34px; height: 34px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 8px; border: 1px dashed var(--line-2); background: transparent; color: var(--text-2); transition: border-color .2s, color .2s, background .2s; }
.vze .box-note .ref-btn:hover { border-color: var(--c); color: var(--c); background: rgba(255,255,255,.04); }
.vze .box-note .ref-chip { position: relative; width: 34px; height: 34px; flex: none; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--c); animation: vze-verin .35s var(--spring) both; }
.vze .box-note .ref-chip img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.vze .box-note .ref-x { position: absolute; top: 0; right: 0; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 0 7px 0 6px; background: rgba(0,0,0,.75); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.vze .box-note .ref-chip:hover .ref-x { opacity: 1; }
.vze .box-note .ref-x svg { width: 10px; height: 10px; }
.vze .box-note.over { box-shadow: 0 0 0 2px var(--c), 0 14px 40px rgba(0,0,0,.55); }

/* comparar */
.vze .split { position: absolute; inset: 0; z-index: 6; cursor: ew-resize; }
.vze .split-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.6); }
.vze .split-knob { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: var(--shadow); }
.vze .split .tag { position: absolute; top: 14px; padding: 5px 10px; border-radius: 7px; background: rgba(0,0,0,.65); font-size: 12px; font-weight: 600; letter-spacing: .03em; backdrop-filter: blur(6px); }
.vze .split .tag.l { left: 14px; } .vze .split .tag.r { right: 14px; }
.vze .split.anim .split-line { animation: vze-splitin .9s var(--ease) both; }

.vze .viewing, .vze .review-bar {
  position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 14px;
  border-radius: 14px; background: rgba(22, 22, 26, .92); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(12px); z-index: 12;
  animation: vze-barin .4s var(--spring) both; max-width: calc(100% - 24px);
}
.vze .viewing { top: 16px; font-size: 13px; }
.vze .review-bar { bottom: 22px; }
.vze .rb-t { font-size: 13px; color: var(--text-2); margin-right: 4px; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vze .rb-t b { color: var(--text); }
.vze .rb-nav { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.vze .zoom { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 10px; background: rgba(22, 22, 26, .85); border: 1px solid var(--line); z-index: 10; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.vze .zoom span { min-width: 42px; text-align: center; }
.vze .hint { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 8px 14px; border-radius: 99px; background: rgba(22, 22, 26, .85); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); z-index: 9; pointer-events: none; transition: opacity .4s; animation: vze-barin .6s .3s var(--spring) both; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }

.vze .sent { position: absolute; right: 16px; bottom: 80px; width: 360px; max-width: calc(100% - 32px); z-index: 13; border-radius: 14px; background: rgba(22, 22, 26, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: vze-pop .25s var(--ease) both; }
.vze .sent-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.vze .sent-b { display: flex; gap: 12px; padding: 12px 14px 14px; align-items: flex-start; }
.vze .sent-imgs { display: flex; gap: 8px; flex: none; }
.vze .sent-imgs figure { margin: 0; }
.vze .sent-imgs img { width: 120px; height: 120px; object-fit: contain; background: #000; border-radius: 8px; display: block; }
.vze .sent-imgs figcaption { font-size: 10.5px; color: var(--text-3); margin-top: 3px; text-align: center; }
.vze .sent-meta { font-size: 12px; color: var(--text-2); }

/* versiones */
.vze .versions { height: 96px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-top: 1px solid var(--line); background: var(--bg-2); overflow-x: auto; overflow-y: hidden; }
.vze .versions::-webkit-scrollbar { height: 6px; } .vze .versions::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 3px; }
.vze .ver-t { flex: none; position: relative; height: 70px; border-radius: 9px; overflow: hidden; border: 1.5px solid var(--line-2); background: var(--panel); padding: 0; cursor: pointer; transition: border-color .2s, transform .25s var(--ease), opacity .2s; animation: vze-verin .5s var(--spring) both; }
.vze .ver-t:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.vze .ver-t.cur { border-color: var(--gold); }
.vze .ver-t.view { border-color: #fff; }
.vze .ver-t.future { opacity: .4; border-style: dashed; }
.vze .ver-t img { height: 100%; display: block; }
.vze .ver-t b { position: absolute; left: 5px; top: 5px; padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.7); font-size: 10.5px; font-weight: 700; }
.vze .ver-t span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 4px; font-size: 10.5px; background: linear-gradient(transparent, rgba(0,0,0,.85)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.vze .ver-arrow { color: var(--text-3); flex: none; }
.vze .ver-arrow svg { width: 14px; height: 14px; }

/* herramientas */
.vze .tools {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 11;
  display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 16px;
  background: rgba(22, 22, 26, .9); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(12px);
  animation: vze-toolsin .5s var(--spring) both;
}
.vze .tools button {
  --c: var(--gold);
  position: relative; width: 84px; padding: 9px 4px 7px; margin: 0; border: 0; border-radius: 11px; background: transparent; color: var(--text-2);
  display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500;
  transition: background .2s, color .2s, transform .15s var(--ease);
}
.vze .tools button svg { width: 21px; height: 21px; transition: transform .3s var(--spring); }
.vze .tools button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.vze .tools button:hover svg { transform: translateY(-1px) scale(1.06); }
.vze .tools button:active { transform: scale(.95); }
.vze .tools button.on { background: var(--c); color: #141109; font-weight: 600; box-shadow: 0 8px 22px -8px var(--c); }
.vze .tools button kbd { position: absolute; top: 5px; right: 6px; padding: 1px 4px; font-size: 9.5px; opacity: .55; background: transparent; border-color: transparent; color: inherit; }
.vze .tools button[data-tool="remove"] { --c: var(--remove); }
.vze .tools button[data-tool="add"] { --c: var(--add); }
.vze .tools button[data-tool="edit"] { --c: var(--editc); }
.vze .tools button[data-tool="full"] { --c: var(--full); }
.vze .tools-sep { height: 1px; margin: 3px 8px; background: var(--line-2); }

/* avisos y carga */
.vze .toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; }
.vze .toast { min-width: 260px; max-width: 420px; padding: 11px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; animation: vze-toastin .4s var(--spring) both; pointer-events: auto; }
.vze .toast.out { animation: vze-toastout .3s var(--ease) both; }
.vze .toast svg { width: 16px; height: 16px; margin-top: 1px; color: var(--gold); }
.vze .toast.ok svg { color: var(--ok); } .vze .toast.bad svg { color: var(--danger); }
.vze .busy { position: fixed; inset: 0; background: rgba(8, 8, 10, .72); backdrop-filter: blur(6px); z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; animation: vze-fade .25s both; font-size: 14px; color: var(--text-2); text-align: center; padding: 20px; }
.vze .spinner { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.1); border-top-color: var(--gold); animation: vze-spin2 .8s linear infinite; }

/* animaciones */
@keyframes vze-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes vze-fade { from { opacity: 0; } }
@keyframes vze-boxin { from { opacity: 0; clip-path: inset(50% 50% 50% 50%); } to { opacity: 1; clip-path: inset(-60px -60px -60px -60px); } }
@keyframes vze-spin { to { --vze-a: 360deg; } }
@keyframes vze-spin2 { to { transform: rotate(360deg); } }
@keyframes vze-scan { 0% { background-position: 0 100%; } 100% { background-position: 0 0%; } }
@keyframes vze-reveal { from { clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%)); } to { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); } }
@keyframes vze-sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes vze-splitin { from { left: 100%; } }
@keyframes vze-barin { from { opacity: 0; transform: translate(-50%, 12px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes vze-verin { from { opacity: 0; transform: translateY(10px) scale(.9); } }
@keyframes vze-toastin { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes vze-toastout { to { opacity: 0; transform: translateX(30px); } }
@keyframes vze-bump { 40% { transform: scale(1.25); background: var(--gold); color: var(--gold-ink); } }
@keyframes vze-toolsin { from { opacity: 0; transform: translate(-12px, -50%); } }
@media (prefers-reduced-motion: reduce) { .vze *, .vze *::before, .vze *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* teléfono: herramientas abajo, barra superior compacta */
@media (max-width: 760px) {
  .vze .top { padding: 0 8px; gap: 6px; }
  .vze .top .lbl, .vze .cost, .vze .sep, .vze #vze-btn-compare span { display: none; }
  .vze .title em { display: none; }
  .vze .btn { padding: 0 10px; }
  .vze .tools { left: 50%; top: auto; bottom: 10px; transform: translateX(-50%); flex-direction: row; padding: 4px; animation: none; }
  .vze .tools button { width: 62px; padding: 7px 2px 6px; font-size: 10.5px; }
  .vze .tools button kbd, .vze .tools-sep { display: none; }
  .vze .zoom { display: none; }
  .vze .review-bar { top: 10px; bottom: auto; flex-wrap: wrap; justify-content: center; padding: 7px; width: max-content; }
  .vze .rb-t { max-width: 100%; flex-basis: 100%; text-align: center; margin: 0; }
  .vze .review-bar .lbl { display: none; }
  .vze .versions { height: 74px; }
  .vze .ver-t { height: 52px; }
  .vze .box-note { width: min(calc(100vw - 24px), 440px); }
  .vze .hint { top: 10px; font-size: 12px; }
  .vze .toasts { left: 12px; right: 12px; bottom: 90px; }
  .vze .toast { min-width: 0; max-width: none; }
}

/* Intentos anteriores (2026-11-18): versiones que quedaron atrás al editar desde una versión vieja. */
.vze .ver-sep { flex: none; align-self: center; margin: 0 4px 0 14px; padding-left: 12px; border-left: 1px solid var(--line-2); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.vze .ver-t.rama { opacity: .5; filter: grayscale(.35); border-style: dashed; }
.vze .ver-t.rama:hover, .vze .ver-t.rama.view { opacity: .95; filter: none; }

/* Guía de herramientas (2026-11-18): la primera vez que se abre el editor. */
.vze .vze-guia { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5,4,3,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vze .vze-guia-card { max-width: 460px; width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.vze .vze-guia-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.vze .vze-guia-card p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; }
.vze .vze-guia-card ul { margin: 0 0 12px; padding-left: 18px; font-size: 13.5px; line-height: 1.7; }
.vze .vze-guia-card i { color: var(--text-2); }
.vze .vze-guia-card .btn { width: 100%; justify-content: center; margin-top: 4px; }

/* Panel guía (2026-11-18): a la derecha del editor cuando se abre desde el menú de Studio. */
.vze-ayuda { position: fixed; right: 0; bottom: 0; width: 360px; box-sizing: border-box; z-index: 2147483000; overflow-y: auto; padding: 22px 20px 28px;
  background: #121110; border-left: 1px solid rgba(255,255,255,.08); color: #ece8df; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.vze-ayuda[hidden], .vze-ayuda.angosto { display: none; }
.vze-ayuda svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vze-ayuda .muted { color: #a59f93; margin: 0; font-size: 13.5px; }
.vze-ayuda h3 { margin: 2px 0 6px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.vze-ayuda .ay-k, .vze-ayuda .ay-k2 { margin: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ca8262; font-weight: 600; }
.vze-ayuda .ay-k2 { margin: 18px 0 8px; color: #8a837a; }
.vze-ayuda .ay-h { margin-bottom: 16px; }
.vze-ayuda .ay-lista { display: grid; gap: 8px; }
.vze-ayuda .ay-herr { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 12px; border-radius: 12px; cursor: pointer;
  background: #1b1a17; border: 1px solid rgba(255,255,255,.07); color: inherit; transition: border-color .2s, transform .2s; }
.vze-ayuda .ay-herr:hover { border-color: #ca8262; transform: translateX(2px); }
.vze-ayuda .ay-herr span { flex: 1; display: grid; }
.vze-ayuda .ay-herr small { color: #a59f93; font-size: 12.5px; }
.vze-ayuda .ay-tip { display: flex; gap: 9px; margin: 18px 0 0; padding: 11px 12px; border-radius: 10px; background: #1b1a17; color: #c9c3b8; font-size: 12.5px; }
.vze-ayuda .ay-tip svg { color: #ca8262; margin-top: 1px; }
.vze-ayuda .ay-pasos { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 8px; }
.vze-ayuda .ay-pasos li { counter-increment: p; display: flex; gap: 10px; font-size: 13.5px; }
.vze-ayuda .ay-pasos li::before { content: counter(p); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(202,130,98,.16); color: #ca8262; font-weight: 700; font-size: 12px; }
.vze-ayuda .ay-ejs { display: flex; flex-wrap: wrap; gap: 6px; }
.vze-ayuda .ay-ejs button { padding: 6px 11px; border-radius: 999px; cursor: pointer; font-size: 12.5px; color: #ece8df; background: #1b1a17; border: 1px solid rgba(255,255,255,.1); transition: border-color .2s, background .2s; }
.vze-ayuda .ay-ejs button:hover { border-color: #ca8262; background: rgba(202,130,98,.1); }

/* La demo: antes → cursor y recuadro → nota → después, en bucle de 7 s. */
.vze-ayuda .ay-demo { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.vze-ayuda .ay-demo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vze-ayuda .ay-despues { opacity: 0; animation: ay-despues 7s ease-in-out infinite; }
.vze-ayuda .ay-box { position: absolute; border: 2px solid #ca8262; border-radius: 6px; box-shadow: 0 0 0 9999px rgba(0,0,0,.28); opacity: 0; transform: scale(.92);
  animation: ay-box 7s ease-in-out infinite; }
.vze-ayuda .ay-box span { position: absolute; left: -2px; top: -22px; padding: 2px 7px; border-radius: 5px 5px 5px 0; background: #ca8262; color: #140f0b; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.vze-ayuda .ay-full .ay-box span { top: 4px; left: 4px; border-radius: 5px; }
.vze-ayuda .ay-cursor { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.35);
  opacity: 0; animation: ay-cursor 7s ease-in-out infinite; }
.vze-ayuda .ay-full .ay-cursor { display: none; }
.vze-ayuda .ay-nota { position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 8px); max-width: 88%; padding: 6px 11px; border-radius: 8px;
  background: rgba(18,17,16,.92); border: 1px solid rgba(202,130,98,.6); font-size: 12px; white-space: nowrap; overflow: hidden; opacity: 0; animation: ay-nota 7s ease-in-out infinite; }
.vze-ayuda .ay-nota span { display: inline-block; overflow: hidden; vertical-align: bottom; white-space: nowrap; width: 0; animation: ay-tipeo 7s steps(28, end) infinite; }
.vze-ayuda .ay-tag { position: absolute; top: 9px; right: 9px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; background: rgba(0,0,0,.6); }
.vze-ayuda .ay-tag-a { animation: ay-tag-a 7s step-end infinite; }
.vze-ayuda .ay-tag-d { opacity: 0; background: #ca8262; color: #140f0b; animation: ay-tag-d 7s step-end infinite; }
@keyframes ay-cursor { 0%, 8% { opacity: 0; transform: translate(40px, 30px); } 16% { opacity: 1; transform: translate(0, 0); } 20% { transform: scale(.7); } 24% { transform: scale(1); } 34% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes ay-box { 0%, 19% { opacity: 0; transform: scale(.92); } 25%, 52% { opacity: 1; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1); } }
@keyframes ay-nota { 0%, 26% { opacity: 0; transform: translate(-50%, 8px); } 30%, 54% { opacity: 1; transform: translate(-50%, 0); } 60%, 100% { opacity: 0; } }
@keyframes ay-tipeo { 0%, 30% { width: 0; } 46%, 100% { width: 100%; } }
@keyframes ay-despues { 0%, 56% { opacity: 0; } 64%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes ay-tag-a { 0% { opacity: 1; } 60% { opacity: 0; } 95% { opacity: 1; } }
@keyframes ay-tag-d { 0% { opacity: 0; } 60% { opacity: 1; } 95% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vze-ayuda .ay-demo * { animation: none !important; } .vze-ayuda .ay-despues { opacity: 1; } .vze-ayuda .ay-tag-a { opacity: 0; } .vze-ayuda .ay-tag-d { opacity: 1; } }

/* Entrada del panel (2026-11-18): la demo rota por las 5 herramientas, con su nombre arriba. */
.vze-ayuda .ay-rotulo { position: absolute; top: 9px; left: 9px; padding: 3px 10px; border-radius: 999px; background: rgba(18,17,16,.85); border: 1px solid rgba(202,130,98,.6);
  font-size: 11.5px; font-weight: 700; color: #ece8df; animation: ay-rotulo .5s ease-out both; }
@keyframes ay-rotulo { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.vze-ayuda .ay-full .ay-box span { top: auto; bottom: 4px; }
