/* ---- VOOST: lo que bundle.css pone encima de tokens.css ----

   Copiado tal cual de components/bundle.css del sistema de diseño VOOST 2.10.0 (la parte «hand CSS»),
   sin editar: si cambia en VOOST, se vuelve a copiar. Aquí solo lo que no es de ningún componente:

   - el eje de producto (ADR-003 de VOOST): data-product en <html> elige el acento, y todo lo demás lee
     los genéricos (--accent, --on-accent, --accent-soft, --accent-text, --accent-icon...). Markus es
     Catalogue, y App.razor lo declara;
   - el anillo de foco de marca como un solo valor;
   - el botón sin aspecto (.voost-unbutton);
   - el gris del hover de filas y opciones (--row-hover).

   Las clases de cada componente (.voost-shell, .voost-apphd...) se añaden en la fase en que entra el
   componente (ver Documentacion/Propuestas/PLAN-UI-VOOST-Ejecucion.md). */

:root,[data-product="core"]{--accent:var(--accent-core-fill);--on-accent:var(--accent-core-on-fill);--accent-hover:var(--accent-core-hover);--accent-pressed:var(--accent-core-pressed);--accent-soft:var(--accent-core-soft);--on-accent-soft:var(--accent-core-on-soft);--accent-text:var(--accent-core-text);--accent-icon:var(--accent-core-icon);--accent-selected:var(--accent-core-selected)}
[data-product="multichannel"]{--accent:var(--accent-multichannel-fill);--on-accent:var(--accent-multichannel-on-fill);--accent-hover:var(--accent-multichannel-hover);--accent-pressed:var(--accent-multichannel-pressed);--accent-soft:var(--accent-multichannel-soft);--on-accent-soft:var(--accent-multichannel-on-soft);--accent-text:var(--accent-multichannel-text);--accent-icon:var(--accent-multichannel-icon);--accent-selected:var(--accent-multichannel-selected);--accent-bar-start:var(--accent-multichannel-bar-start);--accent-bar-end:var(--accent-multichannel-bar-end)}
[data-product="catalogue"]{--accent:var(--accent-catalogue-fill);--on-accent:var(--accent-catalogue-on-fill);--accent-hover:var(--accent-catalogue-hover);--accent-pressed:var(--accent-catalogue-pressed);--accent-soft:var(--accent-catalogue-soft);--on-accent-soft:var(--accent-catalogue-on-soft);--accent-text:var(--accent-catalogue-text);--accent-icon:var(--accent-catalogue-icon);--accent-selected:var(--accent-catalogue-selected);--accent-bar-start:var(--accent-catalogue-bar-start);--accent-bar-end:var(--accent-catalogue-bar-end)}
[data-product="pos"]{--accent:var(--accent-pos-fill);--on-accent:var(--accent-pos-on-fill);--accent-hover:var(--accent-pos-hover);--accent-pressed:var(--accent-pos-pressed);--accent-soft:var(--accent-pos-soft);--on-accent-soft:var(--accent-pos-on-soft);--accent-text:var(--accent-pos-text);--accent-icon:var(--accent-pos-icon);--accent-selected:var(--accent-pos-selected);--accent-bar-start:var(--accent-pos-bar-start);--accent-bar-end:var(--accent-pos-bar-end)}
:root{--focus-brand:linear-gradient(90deg,var(--focus-brand-start),var(--focus-brand-mid),var(--focus-brand-end))}
@layer voost-reset{.voost-unbutton{appearance:none;-webkit-appearance:none;border:0;background:transparent;padding:0;margin:0;font:inherit;color:inherit;line-height:inherit;text-transform:inherit;letter-spacing:inherit;text-align:inherit}}
:root{--row-hover:var(--canvas-50)}
[data-theme="dark"]{--row-hover:var(--canvas-overlay)}


/* ---- Fase 1: el armazón. Copiado tal cual de bundle.css: la píldora del producto, la cabecera global de app
   (.voost-apphd), el texto oculto, el giro y el pie (.voost-appfoot). El armazón (.voost-shell) y la barra lateral
   no se copian: Markus los escribe en MainLayout y NavMenu, porque aquí la que se desplaza es la ventana y no el
   panel (ver el plan, fase 1). ---- */
/* 1.41.3 · Product pill (Sidebar under the logo, header pill), per theme (Cris): light — the product colour, solid, as always;
   dark — a soft fill in the product tint with an outline. */
/* Set on the element itself: a custom property that points at --accent, declared on :root, would freeze :root's product. */
.voost-product-pill{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
[data-theme="dark"] .voost-product-pill,.voost-product-pill[data-theme="dark"]{background:var(--accent-soft);color:var(--on-accent-soft);border-color:var(--accent-icon)}
/* 2.6.0 · Global app header (ADR-017) as a component: VoostDS.AppHeader renders this markup; HTML consumers can write it by hand.
   <header class="voost-apphd"> wordmark · .voost-apphd-product (header pill + chevron, or .is-static) · .voost-apphd-search · IconButtons ·
   .voost-apphd-sep · .voost-apphd-logo (img or node; white pill in dark) or .voost-apphd-client (name in text) */
.voost-apphd{position:relative;z-index:2;height:64px;box-sizing:border-box;display:flex;align-items:center;gap:16px;padding:0 24px;background:var(--surface-raised);border-bottom:1px solid var(--line);color:var(--text)}
.voost-apphd-product{display:inline-flex;align-items:center;gap:6px;flex:none;height:32px;box-sizing:border-box;padding:0 10px 0 12px;border-width:1px;border-style:solid;border-radius:var(--radius-pill);font:400 12px/16px var(--font-display);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;cursor:pointer}
.voost-apphd-product.is-static{padding:0 12px;cursor:default}
.voost-apphd-product svg{width:16px;height:16px;flex:none}
.voost-apphd-product:not(.is-static):hover{background:var(--accent-hover);border-color:var(--accent-hover)}
[data-theme="dark"] .voost-apphd-product:not(.is-static):hover{background:var(--accent-soft);border-color:var(--accent-icon)}
.voost-apphd-search{display:flex;align-items:center;gap:10px;width:360px;max-width:40vw;height:40px;box-sizing:border-box;padding:0 8px 0 16px;border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);color:var(--text-muted);font:400 14px/20px var(--font-mono);text-align:left;cursor:pointer}
.voost-apphd-search svg{width:18px;height:18px;flex:none}
.voost-apphd-search > span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.voost-apphd-product:focus-visible,.voost-apphd-search:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
.voost-apphd-spacer{flex:1}
.voost-apphd-sep{width:1px;height:24px;background:var(--line);margin:0 8px;flex:none}
.voost-apphd-logo{display:inline-flex;align-items:center;flex:none;height:32px;max-width:160px}
.voost-apphd-logo img,.voost-apphd-logo svg{display:block;height:32px;width:auto;max-width:160px;object-fit:contain}
[data-theme="dark"] .voost-apphd-logo{height:40px;padding:0 12px;border-radius:var(--radius-pill);background:var(--white)}
.voost-apphd-client{flex:none;font:600 14px/20px var(--font-body);color:var(--text);white-space:nowrap}
.voost-apphd-item{display:flex;align-items:center;gap:10px;width:100%}
.voost-apphd-item-label{flex:1}
.voost-apphd-item-icon{display:inline-flex;color:var(--text-muted)}
.voost-apphd-item-check{display:inline-flex;color:var(--accent-icon)}
.voost-btn:focus-visible,.voost-apphd-product:focus-visible,.voost-apphd-search:focus-visible{outline-color:var(--accent)}
/* Visually hidden text */
.voost-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.voost-spin{animation:voost-spin 1s linear infinite}
@keyframes voost-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.voost-spin{animation:none}}
/* 2.10.0 · AppFooter (Cris): the foot of a product page, last child of the app shell's panel, on the panel's own ground (surface).
   No top line. full: wordmark 36 with email, phone and LinkedIn under it on the left; the offices side by side on the right;
   legal links centred under a 1px line. minimal: "Powered by" (caption, text-muted) over the wordmark 24, centred.
   Text in `code` (JetBrains Mono 14/20); lines of a block 4px apart (a 24px rhythm). Gutters 32px, as the page inside the panel.
   Put it after the page's content in a column that fills the panel (min-height:100%) and it sits at the bottom: margin-top:auto. */
.voost-appfoot{box-sizing:border-box;margin-top:auto;padding:24px 32px 32px;background:var(--surface);color:var(--text);font:400 14px/20px var(--font-mono)}
.voost-appfoot--full{display:grid;gap:32px}
.voost-appfoot-cols{display:flex;justify-content:space-between;align-items:flex-start;gap:32px;flex-wrap:wrap}
.voost-appfoot-brand{display:grid;gap:16px;justify-items:start}
.voost-appfoot-contact,.voost-appfoot address{display:grid;gap:4px;justify-items:start;font-style:normal}
.voost-appfoot-social{margin-top:8px}
.voost-appfoot-social svg,.voost-appfoot-social img{display:block;width:22px;height:22px}
.voost-appfoot-offices{display:flex;gap:48px;align-items:flex-start}
.voost-appfoot a{color:var(--text);text-decoration:none;border-radius:4px}
.voost-appfoot a:hover{text-decoration:underline;text-underline-offset:3px}
.voost-appfoot a.voost-appfoot-social:hover{color:var(--accent-text)}
.voost-appfoot a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.voost-appfoot-legal{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 24px;padding-top:24px;border-top:1px solid var(--line)}
.voost-appfoot--minimal{display:flex;flex-direction:column;align-items:center;gap:8px}
.voost-appfoot-powered{font:400 12px/16px var(--font-body);letter-spacing:.01em;color:var(--text-muted)}
@media (max-width:800px){.voost-appfoot-offices{gap:24px}}
@media (max-width:560px){.voost-appfoot{padding:24px 16px 32px}.voost-appfoot-offices{flex-direction:column;gap:16px}}


/* ---- Fase 2b: el campo. Copiado tal cual de bundle.css: el campo de VOOST (.voost-field, su etiqueta, su ayuda), sus
   tamaños L, M y S y la etiqueta que aparece encima al enfocarlo o al tener valor (.voost-float). Markus es M
   (data-field-size="m" en <html>, decisión D6) y las etiquetas son flotantes en todos los campos (D5). ---- */
/* Input pattern (ADR-010): shared by the Input component and any form built without the bundle */
.voost-field{font:400 14px/20px var(--font-mono);color:var(--text);background:var(--surface);height:var(--input-height);padding:0 var(--pad-r,var(--input-padding-x)) 0 var(--pad-l,var(--input-padding-x));border:var(--border-width) solid var(--text);border-radius:var(--radius-pill);width:100%;box-sizing:border-box;appearance:none;outline:0}
.voost-field::placeholder{color:var(--text-muted)}
.voost-field--textarea{border-radius:var(--radius-lg);height:auto;min-height:88px;padding:12px var(--input-padding-x);resize:vertical}
:where(.voost-field):focus-visible,.voost-field.is-focus-brand{border:var(--border-width-focus-brand) solid transparent;padding-left:calc(var(--pad-l,var(--input-padding-x)) - 2px);padding-right:calc(var(--pad-r,var(--input-padding-x)) - 2px);background:linear-gradient(var(--surface),var(--surface)) padding-box,var(--focus-brand) border-box}
:where([data-product]:not([data-product="core"])) .voost-field:focus-visible,.voost-field.is-focus-accent{border:var(--border-width-focus-accent) solid var(--accent);padding-left:var(--pad-l,var(--input-padding-x));padding-right:var(--pad-r,var(--input-padding-x));background:var(--surface)}
.voost-field.focus-brand:focus-visible{border:var(--border-width-focus-brand) solid transparent;padding-left:calc(var(--pad-l,var(--input-padding-x)) - 2px);padding-right:calc(var(--pad-r,var(--input-padding-x)) - 2px);background:linear-gradient(var(--surface),var(--surface)) padding-box,var(--focus-brand) border-box}
.voost-field.focus-accent:focus-visible{border:var(--border-width-focus-accent) solid var(--accent);padding-left:var(--pad-l,var(--input-padding-x));padding-right:var(--pad-r,var(--input-padding-x));background:var(--surface)}
.voost-field.is-error{border:var(--border-width-error) solid var(--negative-icon);padding-left:calc(var(--pad-l,var(--input-padding-x)) - 1px);padding-right:calc(var(--pad-r,var(--input-padding-x)) - 1px)}
.voost-field:disabled{border-color:var(--line);background:var(--surface-sunken);color:var(--text-subtle)}
.voost-label{font:400 12px/16px var(--font-body);color:var(--text);display:block;margin-bottom:6px}
.voost-help{font:400 12px/16px var(--font-body);color:var(--text-muted);margin-top:var(--space-1)}
.voost-help--error{color:var(--negative-text)}
/* 1.32.0 · Field sizes L (48, default) · M (40) · S (32). Per field with data-size, or for a whole product with data-field-size on a container
   (HTML consumers; React uses FieldSizeProvider). */
.voost-field[data-size="m"],[data-field-size="m"] .voost-field:not([data-size]){--input-height:40px;--input-padding-x:16px}
.voost-field[data-size="s"],.voost-field[data-size="xs"],[data-field-size="s"] .voost-field:not([data-size]){--input-height:32px;--input-padding-x:14px;font-size:13px;line-height:16px}
/* 1.39.1 · Field label above, only when it is needed (Cris): at rest a field takes no extra room — rows sit 16px apart box to box.
   When the field is focused, open, or holds a value, 22px open above it (20 in S) and the label appears there: accent-text while focused
   or open, text-muted while it only holds a value. The room opens with a short transition; Combobox and DatePicker open on pointer down so
   the move never cancels a click. Aligned with the text inside (20 / 16 / 14px by size).
   HTML: <div class="voost-float"><input class="voost-field" placeholder="Nombre*"><label class="voost-float-label">Nombre</label></div> */
.voost-float{position:relative;display:flex;flex-direction:column;padding-top:0;transition:padding-top .15s ease}
.voost-float:focus-within,.voost-float:has([data-voost-trigger][data-state=open]),.voost-float:has(input:not([type=file]):not([type=hidden]):not(:placeholder-shown)),.voost-float:has(textarea:not(:placeholder-shown)),.voost-float:has([data-voost-trigger]:not([data-placeholder]):not([data-empty])){padding-top:22px}
.voost-float[data-size="s"]:is(:focus-within,:has([data-voost-trigger][data-state=open]),:has(input:not([type=file]):not([type=hidden]):not(:placeholder-shown)),:has(textarea:not(:placeholder-shown)),:has([data-voost-trigger]:not([data-placeholder]):not([data-empty]))){padding-top:20px}
.voost-float-label{position:absolute;left:20px;top:0;z-index:2;padding:0;font:400 12px/16px var(--font-body);color:var(--text-muted);opacity:0;translate:0 4px;transition:opacity .15s ease,translate .15s ease,color .15s ease;pointer-events:none;white-space:nowrap;max-width:calc(100% - 40px);overflow:hidden;text-overflow:ellipsis}
.voost-float[data-size="m"] .voost-float-label{left:16px}
.voost-float[data-size="s"] .voost-float-label{left:14px;font-size:11px}
.voost-float:focus-within .voost-float-label,.voost-float:has([data-voost-trigger][data-state=open]) .voost-float-label{opacity:1;translate:0 0;color:var(--accent-text)}
.voost-float:has(input:not([type=file]):not([type=hidden]):not(:placeholder-shown)) .voost-float-label,.voost-float:has(textarea:not(:placeholder-shown)) .voost-float-label,.voost-float:has([data-voost-trigger]:not([data-placeholder]):not([data-empty])) .voost-float-label{opacity:1;translate:0 0}
.voost-float .voost-float-label[data-error]{color:var(--negative-text)}
.voost-float:has(:disabled) .voost-float-label{color:var(--text-subtle)}
/* 1.39.2 · Required fields carry the asterisk in the label too: from Field required, a required/aria-required control, or a placeholder
   ending in "*" (the system's convention). */
.voost-float:is([data-required],:has(input[placeholder$="*"]),:has(textarea[placeholder$="*"]),:has([data-required]),:has([aria-required="true"]),:has(input[required])) .voost-float-label::after{content:"*"}
/* 2.2.1 · A text field narrower than its placeholder or value cuts it with an ellipsis instead of clipping it mid-letter (Cris). */
.voost-field{text-overflow:ellipsis}
.voost-field::placeholder{text-overflow:ellipsis}
