/* Modo admin: menú de vidrio y tableros sobre la página. Las pantallas (finanzas, cotizador, cotizaciones) son las de siempre, mostradas dentro del vidrio. */
.avx, .avx * { box-sizing: border-box; }
.avx { --rw: 262px; --ink: #F4F2EE; --ink2: rgba(244,242,238,.7); --ink3: rgba(244,242,238,.44);
  --glass: rgba(10,11,9,.74); --glass2: rgba(255,255,255,.07); --edge: rgba(255,255,255,.22); --line: rgba(255,255,255,.13);
  --hanko: #B5122C; --ok: #7FD1A8; --warn: #F0B866; --bad: #FF8A9A;
  font-family: "Schibsted Grotesk", system-ui, sans-serif; color: var(--ink); }
.avx[data-menu="rail"] { --rw: 58px; }
.avx[data-glass="light"] { --ink: #1C1D1A; --ink2: rgba(28,29,26,.72); --ink3: rgba(28,29,26,.5);
  --glass: rgba(246,244,240,.62); --glass2: rgba(28,29,26,.06); --edge: rgba(255,255,255,.8); --line: rgba(28,29,26,.14); --ok: #1E7A52; --warn: #9A5B00; --bad: #B5122C; }
.avx button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
.avx input, .avx select { font: inherit; color: inherit; }
.avx svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* El vidrio */
.avx-glass { position: relative; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--edge); box-shadow: 0 28px 70px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px 0 rgba(0,0,0,.12); }
.avx-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,0) 38%, rgba(181,18,44,.08) 100%); }

/* ---------- Menú lateral: casi todo el alto, flecha redonda en el borde ---------- */
.avx-rail { position: fixed; z-index: 7000; left: 14px; top: 14px; bottom: 14px; width: var(--rw); border-radius: 30px; padding: 14px 12px 12px; display: flex; flex-direction: column; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.avx-rail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; border-radius: 0 0 30px 30px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(181,18,44,.3)); }
.avx-arrow { position: absolute; z-index: 5; top: 30px; right: -15px; width: 30px; height: 30px; border-radius: 50%; background: #F4F2EE; color: #1C1D1A; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.35); transition: transform .2s; }
.avx-arrow:hover { transform: scale(1.1); }
.avx-arrow svg { width: 16px; height: 16px; stroke-width: 2.4; transition: transform .4s; }
.avx[data-menu="rail"] .avx-arrow svg { transform: scaleX(-1); }
.avx-arrow[data-tip]:hover::before { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 5px 10px; border-radius: 8px; background: rgba(16,17,15,.92); color: #F4F2EE; font-size: 12px; white-space: nowrap; pointer-events: none; }
.avx-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 2px; scrollbar-width: none; position: relative; z-index: 2; }
.avx-scroll::-webkit-scrollbar { display: none; }
.avx-head { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 4px; flex: none; }
.avx-seal { width: 34px; height: 38px; border-radius: 8px; background: var(--hanko); color: #fff; display: grid; place-items: center; font: 700 12px/1.1 "Noto Serif JP", serif; text-align: center; flex: none; box-shadow: 0 6px 16px rgba(181,18,44,.45); }
.avx-title { display: grid; line-height: 1.2; white-space: nowrap; min-width: 0; overflow: hidden; }
.avx-title b { font-size: 15px; } .avx-title small { font-size: 11.5px; color: var(--ink3); }
.avx-search { display: flex; align-items: center; gap: 8px; height: 40px; margin: 10px 0 4px; padding: 0 12px; border-radius: 14px; background: var(--glass2); border: 1px solid var(--line); flex: none; }
.avx-search svg { width: 17px; height: 17px; color: var(--ink3); }
.avx-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 13.5px; }
.avx-search input::placeholder { color: var(--ink3); }
.avx-search kbd { font: 600 10.5px "Schibsted Grotesk", sans-serif; padding: 2px 6px; border-radius: 6px; background: var(--glass2); color: var(--ink3); }
.avx-group { margin: 14px 10px 4px; font: 600 10.5px "Schibsted Grotesk", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); white-space: nowrap; flex: none; }
.avx-item { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 99px; width: 100%; text-align: left; white-space: nowrap; font-size: 14.5px; font-weight: 500; transition: background .2s; position: relative; flex: none; }
.avx-item:hover { background: var(--glass2); }
.avx-item[aria-pressed="true"] { background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.08)); box-shadow: inset 0 0 0 1.5px var(--edge), 0 6px 18px rgba(0,0,0,.18); }
.avx-item svg { width: 19px; height: 19px; }
.avx-item .b { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; display: grid; place-items: center; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--line); }
.avx-item .b.red { background: #E5484D; color: #fff; }
.avx-item .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; }
.avx-item .chev { margin-left: auto; width: 16px; height: 16px; transition: transform .25s; } .avx-item[aria-expanded="true"] .chev { transform: rotate(180deg); }
.avx-sub { display: none; margin: 0 0 4px 26px; padding-left: 14px; border-left: 1px solid var(--line); } .avx-sub.on { display: grid; gap: 2px; }
.avx-sub button { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 99px; font-size: 13px; color: var(--ink2); text-align: left; } .avx-sub button:hover { background: var(--glass2); }
.avx-sub i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.avx-foot { flex: none; position: relative; z-index: 2; padding-top: 10px; display: grid; gap: 8px; }
.avx-switch { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-radius: 99px; width: 100%; font-size: 14px; white-space: nowrap; }
.avx-switch:hover { background: var(--glass2); }
.avx-switch i { margin-left: auto; width: 40px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.avx-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.avx[data-glass="light"] .avx-switch i { background: var(--hanko); } .avx[data-glass="light"] .avx-switch i::after { transform: translateX(16px); }
.avx-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.avx-av { width: 36px; height: 36px; border-radius: 50%; background: var(--hanko); color: #fff; display: grid; place-items: center; font: 800 13px sans-serif; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.25); position: relative; }
.avx-av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #3DD68C; border: 2px solid #222; }
.avx-user div { display: grid; line-height: 1.2; font-size: 13.5px; font-weight: 600; } .avx-user small { font-weight: 400; color: var(--ink3); font-size: 11.5px; }

/* plegado: queda una barrita de íconos */
.avx[data-menu="rail"] .avx-title, .avx[data-menu="rail"] .avx-search, .avx[data-menu="rail"] .avx-item span, .avx[data-menu="rail"] .avx-item .b, .avx[data-menu="rail"] .avx-item .dot, .avx[data-menu="rail"] .avx-item .chev,
.avx[data-menu="rail"] .avx-sub, .avx[data-menu="rail"] .avx-switch span, .avx[data-menu="rail"] .avx-switch i, .avx[data-menu="rail"] .avx-user div { display: none; }
.avx[data-menu="rail"] .avx-group { height: 1px; margin: 10px 10px; background: var(--line); font-size: 0; }
.avx[data-menu="rail"] .avx-item, .avx[data-menu="rail"] .avx-switch { justify-content: center; padding: 0; }
.avx[data-menu="rail"] .avx-head { justify-content: center; padding: 0; } .avx[data-menu="rail"] .avx-user { justify-content: center; padding: 10px 0; }
.avx[data-menu="rail"] .avx-item[data-tip]:hover::before { content: attr(data-tip); position: absolute; left: calc(100% + 22px); top: 50%; transform: translateY(-50%); padding: 5px 10px; border-radius: 8px; background: rgba(16,17,15,.92); color: #F4F2EE; font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 9; }
.avx[data-menu="rail"] .avx-scroll { overflow: visible; }

/* ---------- Dashboard: llena la pantalla ---------- */
.avx-scrim { position: fixed; inset: 0; z-index: 6990; display: none; }
.avx[data-open] .avx-scrim { display: block; }
.avx-panel { position: fixed; z-index: 6995; left: calc(var(--rw) + 30px); right: 14px; top: 14px; bottom: 14px; border-radius: 30px; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(14px) scale(.985); pointer-events: none; transition: opacity .3s ease, transform .4s cubic-bezier(.2,.8,.2,1), left .4s cubic-bezier(.2,.8,.2,1); }
.avx[data-open] .avx-panel { opacity: 1; transform: none; pointer-events: auto; }
.avx-ph { display: flex; align-items: center; gap: 12px; padding: 20px 26px 10px; flex-wrap: wrap; position: relative; }
.avx-hello h2 { margin: 0; font: 700 24px/1.15 "Schibsted Grotesk", sans-serif; letter-spacing: -.015em; }
.avx-hello p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink2); }
.avx-ph .sp { flex: 1; }
.avx-psearch { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--glass2); border: 1px solid var(--line); min-width: 220px; color: var(--ink3); font-size: 13px; }
.avx-psearch svg { width: 16px; height: 16px; }
.avx-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 99px; background: var(--glass2); border: 1px solid var(--line); color: var(--ink2); white-space: nowrap; }
.avx-chip.ej { background: rgba(240,184,102,.2); border-color: rgba(240,184,102,.5); color: var(--warn); }
.avx-chip.ok { color: var(--ok); } .avx-chip.warn { color: var(--warn); } .avx-chip.bad { color: var(--bad); }
.avx-chip.s { padding: 3px 10px; font-size: 11.5px; }
.avx-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--glass2); border: 1px solid var(--line); }
.avx-x:hover { background: var(--line); }
.avx-body { flex: 1; min-height: 0; overflow: auto; padding: 8px 26px 26px; display: grid; gap: 16px; align-content: start; }
@supports not selector(::-webkit-scrollbar) { .avx-body { scrollbar-width: thin; scrollbar-color: rgba(230,228,222,.26) transparent; } }
.avx-body::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
.avx-body::-webkit-scrollbar-thumb { background: rgba(230,228,222,.26); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.avx-body::-webkit-scrollbar-thumb:hover { background-color: rgba(230,228,222,.42); }
.avx-body::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
.avx-note { font-size: 12.5px; color: var(--ink2); margin: 0; }
.avx-fgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; }
.avx-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.avx-card { position: relative; border-radius: 24px; padding: 18px 18px 16px; background: var(--glass2); border: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; align-content: end; min-height: 128px; }
.avx-card.hi { background: linear-gradient(145deg, rgba(224,53,79,.75), rgba(181,18,44,.35)); border-color: rgba(255,255,255,.35); box-shadow: 0 14px 34px rgba(181,18,44,.3); color: #fff; }
.avx-card.hi small, .avx-card.hi .avx-ico { color: rgba(255,255,255,.85); }
.avx-card small { font-size: 12.5px; color: var(--ink2); }
.avx-card b { font: 700 28px/1.1 "Schibsted Grotesk", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow-wrap: anywhere; }
.avx-card .row { display: flex; align-items: center; gap: 8px; justify-content: space-between; } .avx-card .row small { font-size: 11.5px; }
.avx-ico { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--glass2); color: var(--ink2); }
.avx-ico svg { width: 15px; height: 15px; }
.avx-card.hi .avx-ico { background: rgba(255,255,255,.25); }
.avx-delta { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(127,209,168,.2); color: var(--ok); } .avx-delta.dn { background: rgba(255,138,154,.18); color: var(--bad); }
.avx-card.hi .avx-delta { background: rgba(255,255,255,.25); color: #fff; }
.avx-box { border-radius: 24px; padding: 18px 20px; background: var(--glass2); border: 1px solid var(--line); min-width: 0; position: relative; }
.avx-box h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; } .avx-box h3 small { font-weight: 400; font-size: 11.5px; color: var(--ink3); }
.avx-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-items: end; height: 230px; padding-top: 34px; }
.avx-bars i { position: relative; display: block; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.2)); height: var(--h); min-height: 4px; transition: filter .2s; }
.avx[data-glass="light"] .avx-bars i { background: linear-gradient(180deg, rgba(28,29,26,.75), rgba(28,29,26,.2)); }
.avx-bars i.cur { background: linear-gradient(180deg, #FF5A74, var(--hanko)); box-shadow: 0 0 22px rgba(181,18,44,.55); }
.avx-bars i:hover { filter: brightness(1.25); }
.avx-bars i::after { content: attr(data-v); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 3px 8px; border-radius: 8px; background: #F4F2EE; color: #1C1D1A; font: 700 11px sans-serif; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.avx-bars i.cur::after, .avx-bars i:hover::after { opacity: 1; }
.avx-axis { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; margin-top: 8px; font-size: 10.5px; color: var(--ink3); text-align: center; }
.avx-three { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; }
.avx-big { display: grid; align-content: space-between; min-height: 190px; }
.avx-big b { font: 700 52px/1 "Schibsted Grotesk", sans-serif; letter-spacing: -.03em; } .avx-big p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink2); }
.avx-donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avx-donut { width: 130px; height: 130px; border-radius: 50%; flex: none; position: relative; }
.avx-donut::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: rgba(20,21,19,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.avx[data-glass="light"] .avx-donut::after { background: rgba(246,244,240,.85); }
.avx-leg { display: grid; gap: 7px; font-size: 12.5px; flex: 1; min-width: 150px; } .avx-leg span { display: flex; align-items: center; gap: 8px; } .avx-leg i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; } .avx-leg b { margin-left: auto; font-variant-numeric: tabular-nums; }
.avx-list { display: grid; }
.avx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; font-size: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.avx-row:last-child { border-bottom: 0; }
.avx-row b { font-variant-numeric: tabular-nums; } .avx-row .n { min-width: 0; overflow-wrap: anywhere; }
.avx-row small { color: var(--ink3); display: block; font-size: 11.5px; }
.avx-prog { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 6px; display: block; } .avx-prog i { display: block; height: 100%; width: var(--w); background: var(--hanko); border-radius: 6px; }
.avx-tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .avx-tbl th { text-align: left; font-weight: 600; font-size: 11.5px; color: var(--ink3); padding: 0 10px 10px 0; }
.avx-tbl td { padding: 12px 10px 12px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; } .avx-tbl td:last-child { white-space: nowrap; }
.avx-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; background: var(--hanko); color: #fff; font-weight: 600; font-size: 13.5px; box-shadow: 0 8px 20px rgba(181,18,44,.35); }
.avx-btn.ghost { background: var(--glass2); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.avx-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Cotizador ---------- */
.avx-qgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.avx-form { display: grid; gap: 14px; }
.avx-field { display: grid; gap: 5px; font-size: 12px; color: var(--ink2); }
.avx-field input, .avx-field select, .avx-qrow input { height: 40px; padding: 0 12px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--line); outline: 0; font-size: 14px; color: var(--ink); min-width: 0; width: 100%; }
.avx-field input:focus, .avx-qrow input:focus, .avx-field select:focus { border-color: var(--hanko); box-shadow: 0 0 0 3px rgba(181,18,44,.25); }
.avx-field select option { color: #1C1D1A; }
.avx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.avx-qrow, .avx-qhead { display: grid; grid-template-columns: minmax(0, 1fr) 64px 100px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.avx-qrow button { width: 36px; height: 36px; border-radius: 50%; background: var(--glass2); display: grid; place-items: center; } .avx-qrow button svg { width: 15px; height: 15px; }
.avx-qhead { font-size: 11px; color: var(--ink3); margin-bottom: 6px; }
.avx-pay { display: flex; gap: 8px; flex-wrap: wrap; } .avx-pay button { padding: 9px 16px; border-radius: 99px; background: var(--glass2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; } .avx-pay button[aria-pressed="true"] { background: var(--hanko); border-color: transparent; color: #fff; }
.avx-sheet { background: #fff; color: #1C1D1A; border-radius: 10px; padding: 26px 26px 22px 30px; box-shadow: 0 18px 50px rgba(0,0,0,.35); font-size: 13px; position: relative; overflow: hidden; }
.avx-sheet::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: #B5122C; }
.avx-sheet h4 { margin: 0; font: 800 20px "Schibsted Grotesk", sans-serif; letter-spacing: .02em; } .avx-sheet h4 span { color: #B5122C; }
.avx-sheet .meta { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0; font-size: 12px; color: #4E5049; }
.avx-sheet table { width: 100%; border-collapse: collapse; font-size: 12.5px; } .avx-sheet th { text-align: left; font-size: 10.5px; color: #8a8b85; font-weight: 600; padding-bottom: 6px; } .avx-sheet td { padding: 7px 0; border-top: 1px solid #e6e4de; font-variant-numeric: tabular-nums; } .avx-sheet td:last-child, .avx-sheet th:last-child { text-align: right; }
.avx-sheet .tot { margin-top: 14px; display: grid; gap: 4px; justify-items: end; font-size: 12px; color: #4E5049; font-variant-numeric: tabular-nums; }
.avx-sheet .big { font: 800 26px "Schibsted Grotesk", sans-serif; color: #B5122C; letter-spacing: -.01em; } .avx-sheet .big small { display: block; font: 600 10.5px "Schibsted Grotesk", sans-serif; color: #8a8b85; text-align: right; letter-spacing: .06em; text-transform: uppercase; }
.avx-sheet .pay { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #cfcdc6; font-size: 11.5px; color: #4E5049; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.avx-sheet .ejb { position: absolute; right: 14px; top: 14px; font-size: 10px; font-weight: 700; color: #9A5B00; background: #FBE9C8; padding: 3px 8px; border-radius: 99px; }

/* Cambiar al modo editor */
.avx-mode { position: fixed; z-index: 7001; top: 74px; left: 50%; transform: translate(-50%, -140%); border-radius: 99px; padding: 6px 8px 6px 16px; display: flex; align-items: center; gap: 12px; font-size: 13px; transition: transform .4s cubic-bezier(.2,.8,.2,1); white-space: nowrap; visibility: hidden; opacity: 0; }
.avx[data-mode="editor"] .avx-mode { transform: translate(-50%, 0); visibility: visible; opacity: 1; }
.avx-mode button { border-radius: 99px; padding: 7px 14px; background: var(--hanko); color: #fff; font-weight: 600; font-size: 12.5px; }
.avx-toast { position: fixed; z-index: 7100; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 14px; font-size: 13px; transition: .3s; pointer-events: none; max-width: calc(100vw - 32px); }
.avx-toast.on { opacity: 1; transform: translate(-50%, 0); }
html.avx-editing :is(main, section, header) :is(h1, h2, h3, p, li, a.btn):not(.avx *):hover { outline: 1px dashed #E0354F; outline-offset: 4px; }
html.avx-editing [contenteditable="true"] { outline: 1px dotted rgba(224,53,79,.5); outline-offset: 4px; }

@media (max-width: 1100px) {
  .avx-fgrid, .avx-qgrid { grid-template-columns: 1fr; } .avx-three { grid-template-columns: 1fr 1fr; } .avx-three > :last-child { grid-column: 1 / -1; }
}
/* Celular: barra abajo, tablero a pantalla completa */
@media (max-width: 720px) {
  .avx[data-menu] { --rw: 0px; }
  .avx-rail, .avx[data-menu] .avx-rail { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; height: 62px; border-radius: 26px; padding: 6px; flex-direction: row; align-items: center; transition: none; }
  .avx-rail::after { display: none; }
  .avx-scroll { flex-direction: row; align-items: center; gap: 2px; overflow: hidden; }
  .avx-head, .avx-search, .avx-group, .avx-sub, .avx-item .b, .avx-item .dot, .avx-item .chev, .avx-item[data-act="demo"], .avx-item[data-act="proj"], .avx-item[data-act="v:resumen"], .avx-arrow { display: none !important; }
  .avx-foot { display: flex !important; padding: 0 2px 0 6px; margin: 0; order: 9; } .avx-foot .avx-switch, .avx-user div { display: none !important; } .avx-user { padding: 0; border: 0; }
  .avx-item, .avx[data-menu] .avx-item { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 2px; height: 50px; padding: 0 1px; font-size: 10px; letter-spacing: -.01em; border-radius: 18px; }
  .avx-item span, .avx[data-menu] .avx-item span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .avx-item[data-act="v:cotizador"] span { font-size: 0; } .avx-item[data-act="v:cotizador"] span::after { content: "Armar"; font-size: 10px; }
  .avx-item[data-act="v:cotizaciones"] span { font-size: 0; } .avx-item[data-act="v:cotizaciones"] span::after { content: "Lista"; font-size: 10px; }
  /* solo la bolita del usuario */
  .avx[data-menu="dot"] .avx-rail { right: auto; width: 56px; height: 56px; padding: 0; border-radius: 50%; justify-content: center; }
  .avx[data-menu="dot"] .avx-scroll { display: none; } .avx[data-menu="dot"] .avx-foot { padding: 0; }
  .avx-panel, .avx[data-menu] .avx-panel { left: 8px; right: 8px; top: 8px; bottom: 82px; border-radius: 24px; }
  .avx-ph { padding: 14px 14px 6px; gap: 8px; } .avx-hello h2 { font-size: 20px; } .avx-psearch { display: none; } .avx-body { padding: 6px 14px 16px; gap: 12px; }
  .avx-cards { gap: 10px; } .avx-card { min-height: 104px; padding: 14px; } .avx-card b { font-size: 21px; }
  .avx-bars { height: 170px; gap: 5px; } .avx-axis { gap: 5px; } .avx-three { grid-template-columns: 1fr; } .avx-big { min-height: 140px; } .avx-big b { font-size: 42px; }
  .avx-two { grid-template-columns: 1fr; } .avx-qrow, .avx-qhead { grid-template-columns: minmax(0, 1fr) 52px 84px 34px; gap: 6px; }
  .avx-sheet { padding: 20px 16px 16px 22px; }
  .avx-mode { max-width: calc(100vw - 20px); white-space: normal; border-radius: 20px; font-size: 12px; }
  .avx-toast { bottom: 82px; }
}

/* Pantallas reales dentro del vidrio */
.avx-framewrap { flex: 1; min-height: 0; margin: 4px 14px 14px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: rgba(10,11,9,.25); display: flex; }
.avx-framewrap.light { background: rgba(236,234,229,.94); }
.avx-frame { flex: 1; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: normal; }
@media (max-width: 720px) { .avx-framewrap { margin: 2px 6px 6px; border-radius: 18px; } }
/* Con el menú de vidrio activo se esconde el menú viejo (sus botones siguen ahí: el nuevo los usa). Si este archivo no carga, queda el viejo. */
html.avx-on .ed-rail, html.avx-on .ed-dock { display: none !important; }
.avx-others { display: flex; gap: 4px; padding: 0 6px 4px; } .avx-others:empty { display: none; }
.avx[data-menu="dot"] .avx-others { display: none; }
@media (max-width: 720px) { .avx-item[data-act="old:edBoards"], .avx-item[data-act="panel"], .avx-others { display: none !important; } }


/* ---------- v4 (PC): empieza solo la bolita del usuario; sube a barrita delgada bajo el menú de la página; con una sección se agranda ---------- */
@media (min-width: 721px) {
  .avx { --rh: calc(100vh - 112px); }
  .avx[data-open] { --rh: calc(100vh - 28px); }
  .avx[data-menu="dot"] { --rh: 58px; --rw: 58px; }
  .avx-rail { top: auto; bottom: 22px; height: var(--rh); transition: width .42s cubic-bezier(.2,.8,.2,1), height .5s cubic-bezier(.2,.8,.2,1), bottom .4s, padding .3s; }
  .avx[data-open] .avx-rail { bottom: 14px; }
  .avx[data-menu="dot"] .avx-rail { width: 58px; padding: 0; justify-content: flex-end; }
  .avx[data-menu="dot"] .avx-rail::after, .avx[data-menu="dot"] .avx-scroll, .avx[data-menu="dot"] .avx-arrow, .avx[data-menu="dot"] .avx-foot .avx-switch { display: none; }
  .avx[data-menu="dot"] .avx-foot { padding: 0; } .avx[data-menu="dot"] .avx-user { padding: 9px; border: 0; justify-content: center; } .avx[data-menu="dot"] .avx-user div { display: none; }
  /* la flecha: grande, roja y siempre en el medio de la barra */
  .avx-arrow { top: 50%; margin-top: -19px; right: -19px; width: 38px; height: 38px; background: var(--hanko); color: #fff; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 6px 20px rgba(181,18,44,.6), 0 0 0 4px rgba(181,18,44,.18); }
  .avx-arrow svg { width: 19px; height: 19px; stroke-width: 2.8; }
  .avx-arrow:hover { transform: scale(1.12); }
}
.avx-foot .avx-user { width: 100%; text-align: left; background: none; border-radius: 99px; } .avx-foot .avx-user:hover { background: var(--glass2); }
.avx[data-menu="open"] .avx-foot { border: 0; }
.avx[data-menu="dot"] .avx-foot .avx-item { display: none; }
@media (max-width: 720px) { .avx-foot .avx-item { display: none !important; } }

/* v6: flecha blanca, encabezado bajo, banner solo cuando no hay tablero */
@media (min-width: 721px) {
  .avx-arrow { background: #fff !important; color: #B5122C !important; border: 2px solid rgba(181,18,44,.95) !important; box-shadow: 0 6px 20px rgba(0,0,0,.4), 0 0 0 4px rgba(255,255,255,.22) !important; }
}
.avx-ph { padding: 9px 14px 5px; gap: 10px; flex-wrap: nowrap; align-items: center; }
.avx-ph h2 { margin: 0; font: 700 16px/1.2 "Schibsted Grotesk", sans-serif; letter-spacing: -.005em; }
.avx-ph .avx-x { width: 30px; height: 30px; } .avx-ph .avx-x svg { width: 16px; height: 16px; }
.avx-ph .avx-chip { padding: 4px 10px; font-size: 11.5px; }
.avx-framewrap { margin: 2px 10px 10px; }
.avx[data-open] .avx-mode { visibility: hidden; opacity: 0; }
@media (max-width: 720px) { .avx-ph { padding: 8px 12px 4px; } .avx-framewrap { margin: 2px 6px 6px; } }

/* Con el menú ancho o un tablero abierto, lo que hay detrás no se anima: evita el parpadeo del vidrio */
html.avx-calm body > :not(.avx), html.avx-calm body > :not(.avx) *, html.avx-calm body > :not(.avx) *::before, html.avx-calm body > :not(.avx) *::after { animation-play-state: paused !important; transition: none !important; scroll-behavior: auto !important; }

/* v7: sin barra de título, flecha con borde blanco, preloader con la marca */
@media (min-width: 721px) {
  .avx-arrow { background: rgba(20,20,18,.8) !important; color: #fff !important; border: 2px solid #fff !important; box-shadow: 0 6px 20px rgba(0,0,0,.45), 0 0 0 4px rgba(255,255,255,.22) !important; }
}
.avx-framewrap { margin: 6px; position: relative; }
.avx-x-float { position: absolute; z-index: 6; top: 10px; right: 14px; width: 34px; height: 34px; background: rgba(20,20,18,.55); border-color: rgba(255,255,255,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; }
.avx-nhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; } .avx-nhead h2 { margin: 0; font: 700 20px "Schibsted Grotesk", sans-serif; }
.avx-load { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(10,11,9,.62); transition: opacity .4s ease; border-radius: inherit; }
.avx-framewrap.is-ready > .avx-load { opacity: 0; pointer-events: none; }
.avx-load-in { display: grid; justify-items: center; gap: 14px; }
.avx-load-seal { width: 46px; height: 62px; border-radius: 9px; background: #B5122C; color: #fff; display: grid; place-items: center; align-content: center; font: 700 17px/1.1 "Noto Serif JP", serif; box-shadow: 0 10px 30px rgba(181,18,44,.55); animation: avxPulse 1.4s ease-in-out infinite; }
.avx-load-word { font: 800 17px "Schibsted Grotesk", sans-serif; letter-spacing: .28em; padding-left: .28em; color: #F4F2EE; } .avx-load-word i { color: #E0354F; font-style: normal; }
.avx-load-bar { width: 120px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; } .avx-load-bar i { display: block; width: 40%; height: 100%; background: #E0354F; border-radius: 2px; animation: avxSlide 1.1s ease-in-out infinite; }
@keyframes avxPulse { 50% { transform: scale(.94); box-shadow: 0 6px 18px rgba(181,18,44,.35); } }
@keyframes avxSlide { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
#avxNativeBody > .avx-load { position: static; background: none; height: 60vh; }

/* Proyectos: tarjetas y editor de un proyecto */
.avx-sm { font-weight: 400; font-size: 12px; color: var(--ink3); margin-left: 8px; }
.avx-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.avx-pcard { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; background: var(--glass2); border: 1px solid var(--line); text-align: left; cursor: pointer; transition: transform .25s, border-color .2s; }
.avx-pcard:hover, .avx-pcard:focus-visible { transform: translateY(-3px); border-color: var(--edge); outline: 0; }
.avx-pimg { aspect-ratio: 16 / 10; overflow: hidden; background: rgba(0,0,0,.35); display: grid; place-items: center; color: var(--ink3); font-size: 13px; }
.avx-pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avx-pinfo { display: grid; gap: 2px; padding: 12px 14px 14px; } .avx-pinfo b { font-size: 15px; } .avx-pinfo small { color: var(--ink2); font-size: 12px; }
.avx-pmove { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; } .avx-pmove button { width: 28px; height: 28px; border-radius: 50%; background: rgba(10,11,9,.6); color: #fff; font-size: 17px; line-height: 1; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); } .avx-pmove button:disabled { opacity: .3; }
.avx-pnew { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 220px; border-style: dashed; color: var(--ink2); font-weight: 600; } .avx-pnew span { font-size: 38px; line-height: 1; color: var(--ink); }
.avx-hrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avx-back { padding: 8px 14px; border-radius: 99px; background: var(--glass2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; } .avx-back:hover { background: var(--line); }
.avx-btn.danger { color: var(--bad); }
.avx-pe-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.avx-fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .avx-fgrid2 .wide { grid-column: 1 / -1; }
.avx-field textarea { padding: 10px 12px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--line); outline: 0; font-size: 14px; color: var(--ink); resize: vertical; width: 100%; font-family: inherit; }
.avx-field textarea:focus { border-color: var(--hanko); box-shadow: 0 0 0 3px rgba(181,18,44,.25); }
.avx-box h3 small { font-weight: 400; font-size: 11.5px; color: var(--ink3); }
.avx-fr { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; cursor: grab; touch-action: none; } .avx-fr img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.avx-fr .dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.5); pointer-events: none; }
.avx-presets { display: grid; grid-template-columns: repeat(3, 36px); gap: 6px; margin: 8px 0; } .avx-presets button { height: 32px; border-radius: 10px; background: var(--glass2); border: 1px solid var(--line); font-size: 15px; } .avx-presets button:hover { background: var(--hanko); border-color: var(--hanko); color: #fff; }
.avx-vrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; } .avx-vrow input:not([type="file"]) { flex: 1; min-width: 200px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--line); outline: 0; font-size: 14px; color: var(--ink); }
.avx-drop { display: grid; gap: 4px; justify-items: center; padding: 22px 16px; border: 1.5px dashed var(--edge); border-radius: 16px; text-align: center; cursor: pointer; margin-bottom: 10px; } .avx-drop.is-over { background: var(--glass2); border-color: var(--hanko); } .avx-drop span { font-size: 12px; color: var(--ink2); }
.avx-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.avx-img { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--glass2); border: 1px solid var(--line); } .avx-img.is-cover { border-color: #E0354F; box-shadow: 0 0 0 2px rgba(224,53,79,.45); }
.avx-img > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.avx-badge { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 99px; background: #B5122C; color: #fff; font-size: 11px; font-weight: 700; }
.avx-img figcaption { display: grid; gap: 6px; padding: 8px; } .avx-img select { height: 32px; border-radius: 10px; background: var(--glass2); border: 1px solid var(--line); color: var(--ink); padding: 0 8px; font-size: 12.5px; } .avx-img select option { color: #1C1D1A; }
.avx-irow { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; } .avx-irow button { min-width: 30px; height: 30px; padding: 0 9px; border-radius: 99px; background: var(--glass2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; } .avx-irow button:hover:not(:disabled) { background: var(--hanko); border-color: var(--hanko); color: #fff; } .avx-irow button:disabled { opacity: .35; } .avx-irow svg { width: 13px; height: 13px; }
@media (max-width: 1100px) { .avx-pe-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .avx-fgrid2 { grid-template-columns: 1fr; } .avx-pgrid { grid-template-columns: 1fr 1fr; gap: 10px; } .avx-imgs { grid-template-columns: 1fr 1fr; } }

/* v8: separación pareja en los tableros propios (Visitas, Proyectos) y tarjeta «Nuevo proyecto» centrada */
#avxNativeBody { display: grid; gap: 16px; align-content: start; }
#avxNative .avx-nhead { margin-bottom: 0; }
#avxNative .avx-note { margin: 0; }
.avx-three, .avx-fgrid, .avx-two { margin: 0; }
.avx-pgrid { align-items: stretch; }
.avx-pnew { display: grid; grid-template-rows: none; place-content: center; justify-items: center; text-align: center; padding: 16px; }

/* El cursor de bolita con punto de la web se ve siempre: también sobre el menú y los tableros */
html.has-cursor .avx input, html.has-cursor .avx textarea, html.has-cursor .avx select { cursor: text !important; }

/* v9: X negra sobre fondo claro, el desplazamiento no pasa a la página de abajo y el preloader tapa todo lo que carga detrás */
.avx-framewrap.light > .avx-x-float { color: #1C1D1A; background: rgba(255,255,255,.8); border-color: rgba(28,29,26,.28); -webkit-backdrop-filter: none; backdrop-filter: none; }
.avx-load { background: rgba(10,11,9,.97); }
.avx-rail, .avx-scroll, .avx-panel, .avx-body, .avx-frame { overscroll-behavior: contain; }
html.avx-lock, html.avx-lock body { overflow: hidden !important; overscroll-behavior: none; }
html.avx-lock { scrollbar-gutter: stable; }

/* Proyectos destacados (assets/avx-destacados.js): lista de la página principal con imagen y encuadre propios */
.avx-dlink { color: var(--ink); font-weight: 600; }
.avx-dlist { display: grid; gap: 12px; }
.avx-drow { border-radius: 20px; padding: 12px; background: var(--glass2); border: 1px solid var(--line); }
.avx-drow.is-off { opacity: .55; } .avx-drow.is-open { opacity: 1; border-color: rgba(181,18,44,.6); }
.avx-dtop { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.avx-dimg { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.25); display: grid; place-items: center; font-size: 12px; color: var(--ink3); }
.avx-dimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avx-dinfo { display: grid; gap: 3px; min-width: 0; } .avx-dinfo b { font-size: 15px; } .avx-dinfo small { color: var(--ink3); font-size: 12px; }
.avx-dshow { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 13px; cursor: pointer; } .avx-dshow input { accent-color: var(--hanko); margin: 0; }
.avx-dact { display: flex; align-items: center; gap: 10px; }
.avx-dedit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.avx-dstrip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: thin; }
.avx-dstrip button { flex: none; width: 104px; aspect-ratio: 16 / 9; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: rgba(0,0,0,.25); cursor: pointer; position: relative; }
.avx-dstrip button[aria-pressed="true"] { border-color: var(--hanko); }
.avx-dstrip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avx-dstrip small { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: rgba(0,0,0,.65); color: #fff; padding: 1px 5px; border-radius: 4px; }
.avx-dfr { aspect-ratio: 16 / 9; }
@media (max-width: 720px) { .avx-dtop { grid-template-columns: 96px minmax(0, 1fr); } .avx-dact { grid-column: 1 / -1; justify-content: space-between; } .avx-dedit { grid-template-columns: 1fr; } }
.avx-dact .avx-pmove { position: static; }
.avx-dinfo .avx-chip { justify-self: start; } .avx-dinfo b + .avx-chip { margin-top: 2px; }
.avx-count.sel { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink2); } .avx-count.sel b { font-size: 18px; color: var(--ink); }
/* Destacados: asa para arrastrar, flechas ↑ ↓ y aviso de guardado */
.avx-dtop { grid-template-columns: 28px 168px minmax(0, 1fr) auto; }
.avx-dgrip { width: 28px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--ink3); font-size: 15px; letter-spacing: -3px; cursor: grab; touch-action: none; }
.avx-dgrip:hover { background: var(--glass2); color: var(--ink); } .avx-drow.is-drag { opacity: .85; border-color: var(--hanko); box-shadow: 0 12px 30px rgba(0,0,0,.35); } .avx-drow.is-drag .avx-dgrip { cursor: grabbing; }
.avx-dmove { display: flex; gap: 6px; } .avx-dmove button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass2); color: var(--ink); font-size: 15px; cursor: pointer; } .avx-dmove button:disabled { opacity: .3; cursor: default; }
.avx-save { margin-left: auto; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(127,209,168,.14); color: var(--ok); } .avx-save[data-state="busy"] { background: rgba(240,184,102,.16); color: var(--warn); } .avx-save[data-state="bad"] { background: rgba(255,138,154,.16); color: var(--bad); }
@media (max-width: 720px) { .avx-dtop { grid-template-columns: 24px 96px minmax(0, 1fr); } .avx-dact { grid-column: 1 / -1; } }
