/* ZAS Pack Studio · interfaz ZasStudio
   Obsidiana por capas, verde menta con degradado lima → menta → turquesa y paneles de vidrio
   (desenfoque + borde de luz). Las clases son las mismas que genera el JS: solo cambia el aspecto. */
:root {
  --bg: #060908;
  --bg-2: #0b100e;
  --surface: #111715;
  --glass: rgba(17, 23, 21, .56);
  --brand: #00e599;
  --brand-2: #3df2b4;
  --brand-50: rgba(0, 229, 153, .09);
  --brand-100: rgba(0, 229, 153, .17);
  --brand-200: rgba(0, 229, 153, .38);
  --brand-ink: #02150e;
  --lime: #b8ff5a;
  --teal: #00b3a4;
  --grad: linear-gradient(120deg, #c4ff61 0%, #00e599 46%, #00b8a9 100%);
  --ink: #eef3f0;
  --ink-2: #aeb8b3;
  --ink-3: #75817b;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --soft: rgba(255, 255, 255, .055);
  --soft-2: rgba(255, 255, 255, .1);
  --field: rgba(0, 0, 0, .3);
  --canvas: #0a0e0d;
  --white: #ffffff;
  --ok: #00e599;
  --danger: #ff6b6b;
  --dim: #00e599;
  --r: 20px;
  --r-sm: 11px;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', monospace;
  --blur: blur(28px) saturate(170%);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 44px -18px rgba(0, 0, 0, .8);
  --shadow-lg: inset 0 1px 0 rgba(255, 255, 255, .12), 0 44px 90px -24px rgba(0, 0, 0, .9);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* Capas que cambian con el tema */
  --glass-hi: rgba(255, 255, 255, .085);
  --glass-lo: rgba(255, 255, 255, .025);
  --glass-bg: linear-gradient(180deg, var(--glass-hi), var(--glass-lo)), var(--glass);
  --pop-bg: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)), rgba(14, 19, 17, .88);
  --bar: rgba(9, 13, 12, .72);
  --line-3: rgba(255, 255, 255, .28);
  --stage: linear-gradient(#0b0f0e, #1d2a25);
  --checker-a: #141a18;
  --checker-b: #0d1211;
  --chip: rgba(0, 0, 0, .34);
  --chip-solid: rgba(8, 12, 11, .8);
  --track: rgba(255, 255, 255, .16);
  --seg-on: rgba(255, 255, 255, .14);
  --dl-fill: rgba(255, 255, 255, .05);
  --dl-crease: rgba(255, 255, 255, .5);
  --grad-text: var(--grad);
  --inv-bg: #f1f5f3;
  --inv-fg: #05100c;
  --inv-hover: #ffffff;
  --backdrop: rgba(2, 5, 4, .6);
  --aura: .2;
  color-scheme: dark;
}

/* Modo claro: mismas capas de vidrio sobre un gris verdoso muy suave; el verde se oscurece para leerse sobre blanco */
:root[data-theme="light"] {
  --bg: #eef2f0;
  --bg-2: #e6ebe8;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, .6);
  --brand: #00a06a;
  --brand-2: #00b87a;
  --brand-50: rgba(0, 160, 106, .08);
  --brand-100: rgba(0, 160, 106, .14);
  --brand-200: rgba(0, 160, 106, .34);
  --ink: #0c1411;
  --ink-2: #46534d;
  --ink-3: #7a8782;
  --line: rgba(10, 30, 22, .08);
  --line-2: rgba(10, 30, 22, .13);
  --soft: rgba(10, 30, 22, .045);
  --soft-2: rgba(10, 30, 22, .085);
  --field: rgba(255, 255, 255, .78);
  --canvas: #e7ecea;
  --dim: #00a06a;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 14px 34px -16px rgba(16, 40, 30, .26);
  --shadow-lg: inset 0 1px 0 rgba(255, 255, 255, .9), 0 36px 80px -24px rgba(16, 40, 30, .32);
  --glass-hi: rgba(255, 255, 255, .78);
  --glass-lo: rgba(255, 255, 255, .38);
  --pop-bg: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .7)), rgba(255, 255, 255, .86);
  --bar: rgba(255, 255, 255, .74);
  --line-3: rgba(10, 30, 22, .26);
  --stage: linear-gradient(#dfe7e3, #f7faf8);
  --checker-a: #e1e7e4;
  --checker-b: #f6f8f7;
  --chip: rgba(255, 255, 255, .72);
  --chip-solid: rgba(255, 255, 255, .9);
  --track: rgba(10, 30, 22, .14);
  --seg-on: #ffffff;
  --dl-fill: rgba(255, 255, 255, .92);
  --dl-crease: rgba(12, 20, 17, .42);
  --grad-text: linear-gradient(120deg, #4fb000 0%, #00a06a 50%, #008a82 100%);
  --inv-bg: #0c1411;
  --inv-fg: #ffffff;
  --inv-hover: #1f2b26;
  --backdrop: rgba(20, 32, 27, .28);
  --aura: .12;
  color-scheme: light;
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--track) transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 13px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: rgba(0, 229, 153, .32); }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg use { pointer-events: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
kbd { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-left: auto; }

/* ---------- Vidrio: una sola receta para todo lo que flota ---------- */
.card, .rail-card, .vtools, .dock, .chip-ok, .cam-bar, .menu, .float-bar, .site-nav, .pv-fold, .pv-3d, .toast,
.tool, .sc-tile, .catcard, .tcard .tbox, .cat-side, .banner, .recent {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn.black { background: var(--inv-bg); color: var(--inv-fg); font-weight: 600; }
.btn.black:hover { background: var(--inv-hover); }
.btn.brand-btn { background: var(--grad); color: var(--brand-ink); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 26px -8px rgba(0, 229, 153, .6); }
.btn.brand-btn:hover { filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 34px -8px rgba(0, 229, 153, .8); }
.btn.brand-btn.wide { min-width: 140px; }
.btn.outline { border: 1px solid var(--line-2); background: var(--soft); height: 32px; padding: 0 13px; font-size: 13px; }
.btn.outline:hover { background: var(--soft-2); border-color: var(--line-3); }
.btn.ghost { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--soft-2); }
.btn.light { background: var(--soft); border: 1px solid var(--line-2); }
.btn.light:hover { border-color: var(--line-3); background: var(--soft-2); }
.btn.lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.ib { width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s; }
.ib:hover { background: var(--soft-2); color: var(--ink); }
.ib:disabled { opacity: .35; cursor: default; background: none; }
/* Botón de tema: en oscuro muestra el sol (pasar a claro), en claro la luna */
.theme-btn { border-radius: 50%; }
.theme-btn .th-moon, :root[data-theme="light"] .theme-btn .th-sun { display: none; }
:root[data-theme="light"] .theme-btn .th-moon { display: inline; }
.link { color: var(--brand); font-weight: 500; font-size: 12px; }
.link:hover { text-decoration: underline; }

/* ---------- Pantallas ---------- */
.site, .ws { position: fixed; inset: 0; }
body:not([data-screen="home"]):not([data-screen="catalog"]):not([data-screen="plugin"]) .site { display: none; }
body[data-screen="home"] .ws, body[data-screen="catalog"] .ws, body[data-screen="plugin"] .ws { display: none; }
.site { overflow-y: auto; background:
  radial-gradient(980px 560px at 8% -10%, rgba(0, 229, 153, var(--aura)), transparent 62%),
  radial-gradient(820px 520px at 96% 2%, rgba(184, 255, 90, .09), transparent 60%),
  radial-gradient(1100px 760px at 50% 118%, rgba(0, 179, 164, .16), transparent 62%),
  var(--bg); }

/* ---------- Sitio: navegación en cápsula ---------- */
.site-nav { position: sticky; top: 14px; z-index: 10; width: min(1180px, calc(100% - 32px)); margin: 14px auto 0; height: 58px; display: flex; align-items: center; gap: 22px; padding: 0 9px 0 18px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand b { font-weight: 600; font-size: 16.5px; letter-spacing: -.02em; white-space: nowrap; }
.brand .by { font-family: var(--mono); font-size: 10px; color: var(--ink-3); padding: 3px 7px; border-radius: 99px; border: 1px solid var(--line-2); }
.site-links { display: flex; gap: 2px; flex: 1; }
.site-links a { font-size: 13.5px; color: var(--ink-2); padding: 8px 13px; border-radius: 999px; transition: background .2s, color .2s; }
.site-links a:hover { color: var(--ink); background: var(--soft); }
.site-links a.on { color: var(--ink); background: var(--soft-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.site-main { min-height: calc(100% - 72px); }
.wrap { max-width: 1180px; margin: 0 auto; }

/* ---------- Inicio ---------- */
.hero { padding: 76px 28px 44px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 99px; background: var(--brand-50); border: 1px solid var(--brand-200); color: var(--brand); font-size: 12px; font-weight: 500; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.hero h1 { font-size: clamp(38px, 5.3vw, 70px); line-height: 1.01; font-weight: 600; letter-spacing: -.045em; margin: 22px 0 20px; text-wrap: balance; }
.hero h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 500px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.facts dd { margin: 3px 0 0; font-size: 12px; color: var(--ink-3); }

/* Mesa de luz: los modelos flotan sobre vidrio iluminado desde abajo */
.showcase { position: relative; display: grid; grid-template-columns: 1fr 1.36fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1.14; }
.showcase::before { content: ''; position: absolute; inset: 10% 2%; background: radial-gradient(closest-side, rgba(0, 229, 153, .34), transparent); filter: blur(46px); pointer-events: none; }
.sc-tile { position: relative; border-radius: 24px; overflow: hidden; text-align: left; transition: transform .35s var(--ease), border-color .25s; }
.sc-tile.big { grid-column: 2; grid-row: 1 / span 2; }
.sc-tile:hover { transform: translateY(-4px); border-color: var(--brand-200); }
.sc-tile::after, .catcard::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 24%; height: 16%; background: radial-gradient(closest-side, rgba(0, 229, 153, .5), transparent 72%); filter: blur(11px); pointer-events: none; }
.sc-tile img, .sc-tile .th-ph { position: absolute; left: 9%; top: 8%; width: 82%; height: 66%; object-fit: contain; z-index: 1; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .5)); }
.sc-tile b { position: absolute; left: 15px; right: 12px; bottom: 13px; font-weight: 500; font-size: 12.5px; z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tile.big b { font-size: 14.5px; bottom: 30px; }
.sc-tile.big small { position: absolute; left: 15px; right: 12px; bottom: 13px; font-size: 11.5px; font-family: var(--mono); color: var(--ink-3); z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.th-ph { display: block; width: 100%; height: 120px; border-radius: 14px; background: linear-gradient(100deg, var(--soft) 30%, var(--soft-2) 50%, var(--soft) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }

.section { padding: 46px 28px 6px; }
.sh { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; }
.sh h2 { font-size: 26px; font-weight: 600; letter-spacing: -.035em; margin: 0; }
.sh a, .sh span { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.sh a:hover { color: var(--brand); }

.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 226px; padding: 22px; border-radius: 26px; overflow: hidden; transition: transform .35s var(--ease), border-color .25s; }
.tool:hover { transform: translateY(-4px); border-color: var(--brand-200); }
.tool h3 { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -.025em; }
.tool p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; max-width: 30ch; }
.tool .go { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-2); border: 1px solid var(--line-2); transition: background .25s, color .25s, transform .35s var(--ease); }
.tool:hover .go { background: var(--grad); color: var(--brand-ink); border-color: transparent; transform: rotate(-45deg); }
.tool .vis { margin-top: auto; height: 88px; display: flex; align-items: flex-end; gap: 8px; }
.tool .vis img, .tool .vis .th-ph { width: 84px; height: 84px; flex: none; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)); }
.tool .vis svg { height: 88px; width: auto; max-width: 62%; }
.fmt { font-family: var(--mono); font-size: 11px; padding: 6px 10px; border-radius: 9px; background: var(--soft-2); border: 1px solid var(--line-2); color: var(--ink); }

/* Líneas de troquel sobre oscuro: corte en menta, pliegue en blanco punteado */
.dl-cut { fill: var(--dl-fill); stroke: var(--brand); stroke-width: 1.1; }
.dl-crease { fill: none; stroke: var(--dl-crease); stroke-width: .9; stroke-dasharray: 3 2; }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.catcard { position: relative; aspect-ratio: 1 / 1.1; border-radius: 24px; overflow: hidden; text-align: left; transition: transform .35s var(--ease), border-color .25s; }
.catcard:hover { transform: translateY(-4px); border-color: var(--brand-200); }
.catcard::after { bottom: 32%; }
.catcard img, .catcard .th-ph { position: absolute; left: 12%; top: 11%; width: 76%; height: 54%; object-fit: contain; z-index: 1; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); transition: transform .45s var(--ease); }
.catcard:hover img { transform: translateY(-5px) scale(1.05); }
.catcard b { position: absolute; left: 14px; right: 14px; bottom: 13px; font-weight: 500; font-size: 13.5px; line-height: 1.2; z-index: 2; }
.catcard em { position: absolute; right: 10px; top: 10px; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); padding: 3px 8px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line); z-index: 2; }

.recent { display: flex; align-items: center; gap: 16px; border-radius: 22px; padding: 14px; max-width: 560px; transition: border-color .2s; }
.recent:hover { border-color: var(--brand-200); }
.recent img { width: 104px; height: 80px; object-fit: contain; background: var(--field); border-radius: 14px; }
.recent b { display: block; font-weight: 600; font-size: 14.5px; }
.recent span { color: var(--ink-3); font-size: 12px; }
.site-foot { padding: 34px 28px 40px; color: var(--ink-3); font-size: 12px; border-top: 1px solid var(--line); margin-top: 56px; }
.site-foot .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-foot b { color: var(--ink); font-weight: 600; }
.site-foot span:last-child { margin-left: auto; }

/* ---------- Catálogo ---------- */
.catalog { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; padding: 30px 24px 48px; max-width: 1500px; margin: 0 auto; }
.cat-side { position: sticky; top: 92px; align-self: start; border-radius: 22px; padding: 8px; }
.cat-side h4 { font-size: 11.5px; font-weight: 500; margin: 8px 10px 6px; color: var(--ink-3); }
.cat-side button { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 12px; font-size: 13px; color: var(--ink-2); transition: background .15s, color .15s; }
.cat-side button:hover { background: var(--soft); color: var(--ink); }
.cat-side button.on { background: var(--brand-100); color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--brand-200); }
.cat-side button em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.cat-side button.on em { color: var(--brand); }
.banner { position: relative; border-radius: 26px; padding: 24px 26px 26px; margin-bottom: 22px; overflow: hidden; }
.banner::before { content: ''; position: absolute; right: -80px; top: -120px; width: 460px; height: 320px; background: radial-gradient(closest-side, rgba(0, 229, 153, .26), transparent); filter: blur(20px); pointer-events: none; }
.banner > * { position: relative; }
.crumbs { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.crumbs a:hover { color: var(--ink); }
.banner h1 { font-size: 28px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.035em; max-width: 640px; text-wrap: balance; }
.banner p { margin: 0 0 18px; color: var(--ink-2); max-width: 640px; font-size: 13.5px; line-height: 1.55; }
.searchbox { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--field); max-width: 640px; transition: border-color .2s, box-shadow .2s; }
.searchbox:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.searchbox input { flex: 1; border: 0; outline: none; background: none; font-size: 14px; }
.searchbox input::placeholder, .search input::placeholder { color: var(--ink-3); }
.searchbox svg { color: var(--ink-3); flex: none; }
.size-filter { position: absolute; right: 24px; top: 22px; display: flex; gap: 6px; }
.size-filter label { display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--field); font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }
.size-filter label:focus-within { border-color: var(--brand); }
.size-filter input { width: 44px; border: 0; outline: none; font-size: 12.5px; color: var(--ink); text-align: right; background: none; -moz-appearance: textfield; }
.size-filter input::-webkit-outer-spin-button, .size-filter input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cat-count { color: var(--ink-3); font-size: 13px; margin: 0 0 14px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 16px; align-items: start; }
.tcard { display: block; text-align: left; }
.tcard .tbox { position: relative; height: 178px; border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; padding: 18px 10px 10px; transition: transform .35s var(--ease), border-color .25s, box-shadow .25s; }
.tcard:hover .tbox { transform: translateY(-3px); border-color: var(--brand-200); box-shadow: var(--shadow), 0 0 0 4px rgba(0, 229, 153, .07); }
.tcard .tbox svg { width: 100%; height: 96px; opacity: .92; }
.tcard .tbox img { width: 100%; height: 138px; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .5)); }
.tcard .tbox .th-ph { height: 110px; }
.tcard .hot { position: absolute; left: 10px; top: 10px; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--brand-ink); background: var(--grad); border-radius: 99px; padding: 3px 9px; z-index: 2; }
.tcard .hov { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .3s var(--ease); z-index: 2; }
.tcard:hover .hov, .tcard:focus-visible .hov { opacity: 1; transform: none; }
.tcard .hov span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; padding: 7px 10px; border-radius: 99px; background: var(--grad); color: var(--brand-ink); }
.tcard .hov span + span { background: var(--chip-solid); color: var(--ink); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 500; }
.tcard b { display: block; font-weight: 500; font-size: 13px; color: var(--ink); margin: 10px 4px 0; line-height: 1.35; }
.tcard small { display: block; font-size: 11.5px; color: var(--ink-3); margin: 2px 4px 0; }
.empty { color: var(--ink-3); padding: 40px 0; text-align: center; }

/* ---------- Espacio de trabajo: barra superior ---------- */
.ws { background: radial-gradient(900px 500px at 0 0, rgba(0, 229, 153, .1), transparent 60%), radial-gradient(900px 600px at 100% 100%, rgba(0, 179, 164, .1), transparent 60%), var(--bg); }
.ws-top { position: absolute; left: 0; right: 0; top: 0; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--bar); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); z-index: 20; }
body[data-screen="studio"] .ed-only, body[data-screen="editor"] .st-only, body[data-screen="ia"] .st-only, body[data-screen="ia"] .ed-only, body:not([data-screen="ia"]) .ia-only { display: none; }
.brand.sm { margin-right: 2px; }
.ws-title { font-weight: 600; font-size: 14px; white-space: nowrap; letter-spacing: -.01em; }
.ws-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.vsep { width: 1px; height: 22px; background: var(--line-2); }
.proj-name { border: 1px solid transparent; background: none; border-radius: 10px; height: 30px; padding: 0 9px; font-size: 12.5px; color: var(--ink-3); width: 210px; min-width: 60px; }
.proj-name:hover { border-color: var(--line-2); }
.proj-name:focus { border-color: var(--brand); color: var(--ink); outline: none; background: var(--field); }
.cloud { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--brand); border-radius: 10px; }
.cloud.warn { color: #ffb020; }
.cloud .tip { position: absolute; left: 0; top: 38px; white-space: nowrap; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-size: 11px; padding: 6px 10px; border-radius: 9px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 30; }
.cloud:hover .tip { opacity: 1; }
.menu-wrap { position: relative; }
.menu { position: absolute; left: 0; top: 42px; min-width: 258px; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; display: grid; background: var(--pop-bg); }
.menu a, .menu button { display: flex; align-items: center; text-align: left; padding: 9px 11px; border-radius: 11px; font-size: 13px; color: var(--ink-2); }
.menu a:hover, .menu button:hover { background: var(--soft-2); color: var(--ink); }
.ed-meta { color: var(--ink-3); font-size: 12px; margin-left: 6px; font-family: var(--mono); }

/* ---------- Generador de mockups ---------- */
.studio, .editor { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; }
body[data-screen="studio"] .editor, body[data-screen="editor"] .studio, body[data-screen="ia"] .studio, body[data-screen="ia"] .editor, body:not([data-screen="ia"]) .iascreen { visibility: hidden; pointer-events: none; }
.stage3d { position: absolute; inset: 0; background: var(--stage); }
.stage3d[data-bg="transparent"], .preview-3d[data-bg="transparent"] { background: repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 0 0 / 22px 22px; }
.stage3d canvas, .preview-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; outline: none; }
.rail { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 6; }
.rail-card { border-radius: 22px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.rail button { width: 58px; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 16px; color: var(--ink-2); font-size: 10.5px; line-height: 1.1; text-align: center; padding: 4px 2px; transition: background .2s, color .2s; }
.rail button:hover { background: var(--soft-2); color: var(--ink); }
.rail button.on { color: var(--brand); background: var(--brand-100); box-shadow: inset 0 0 0 1px var(--brand-200); }
.rail button.on svg, .rail button.accent svg { color: var(--brand); }
.rail.sub .rail-card:not(.back-card) { display: none; }
.rail.sub .back-card { display: flex !important; }
.side-card { position: absolute; left: 88px; top: 12px; width: 280px; max-height: calc(100% - 96px); overflow-y: auto; z-index: 5; padding: 16px; }
.side-card[hidden] { display: none; }
.card { border-radius: var(--r); }
.vtools { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 2px; border-radius: 18px; padding: 5px; z-index: 5; }
.vtools button { width: 34px; height: 34px; border-radius: 13px; display: grid; place-items: center; color: var(--ink-2); transition: background .2s, color .2s; }
.vtools button:hover { background: var(--soft-2); color: var(--ink); }
.vtools button.on { color: var(--brand); background: var(--brand-100); }
.vtools button:disabled { opacity: .35; background: none; cursor: default; }
.vt-sep { height: 1px; background: var(--line-2); margin: 3px 5px; }
.dock-row { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; z-index: 6; }
.dock { display: flex; align-items: center; gap: 2px; border-radius: 999px; padding: 6px 8px; }
.db { min-width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; color: var(--ink-2); font-size: 17px; line-height: 1; padding: 0 7px; transition: background .2s, color .2s; }
.db:hover { background: var(--soft-2); color: var(--ink); }
.db.on { color: var(--brand); background: var(--brand-100); }
.db:disabled { opacity: .35; background: none; cursor: default; }
.db.zl { font-size: 12px; font-weight: 500; min-width: 54px; color: var(--ink); font-family: var(--mono); }
.dsep { width: 1px; height: 18px; background: var(--line-2); margin: 0 5px; }
.fold-ctl { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--ink-2); padding: 0 8px; }
.fold-ctl span:last-child { color: var(--ink-3); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 118px; height: 20px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) var(--p, 100%), var(--track) var(--p, 100%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; margin-top: -6px; box-shadow: 0 1px 5px rgba(0, 0, 0, .6), 0 0 0 4px rgba(0, 229, 153, .0); transition: box-shadow .2s; }
input[type=range]:hover::-webkit-slider-thumb { box-shadow: 0 1px 5px rgba(0, 0, 0, .6), 0 0 0 5px rgba(0, 229, 153, .22); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--track); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--brand); }
input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 0; }
.chip-ok { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 15px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; color: var(--ink-2); }
.chip-ok svg { color: var(--brand-ink); background: var(--grad); border-radius: 50%; padding: 3px; width: 18px; height: 18px; }
.cam-bar { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); display: flex; gap: 5px; border-radius: 22px; padding: 6px; z-index: 6; }
.cam-bar[hidden] { display: none; }
.cam-bar button { width: 68px; height: 56px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; line-height: 1.15; color: var(--ink-2); background: var(--soft); border: 1px solid transparent; text-align: center; transition: background .2s, border-color .2s, color .2s; }
.cam-bar button:hover { background: var(--soft-2); color: var(--ink); }
.cam-bar button.on { border-color: var(--brand-200); color: var(--brand); background: var(--brand-100); }
.cam-bar button.save { background: var(--brand-50); color: var(--brand); }
.help-fab { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: var(--brand-ink); display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(0, 229, 153, .7); z-index: 6; transition: transform .25s var(--ease); }
.help-fab:hover { transform: scale(1.06); }
.help-pop { position: fixed; right: 18px; bottom: 72px; width: 300px; padding: 18px; z-index: 50; background: var(--pop-bg); }
.help-pop h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; font-size: 12px; }
.keys dt { font-family: var(--mono); font-size: 10.5px; color: var(--brand); }
.keys dd { margin: 0; color: var(--ink-2); }

/* Deslizadores con valor (luz, relieve, margen de color) */
.rng-list { display: grid; gap: 6px; }
.rng { display: grid; gap: 3px; }
.rng span { display: flex; align-items: baseline; font-size: 12px; color: var(--ink-2); }
.rng span b { margin-left: auto; font-weight: 500; font-family: var(--mono); font-size: 10.5px; color: var(--ink); }
.rng input[type=range] { width: 100%; }
.fx-lbl { display: block; font-size: 12px; color: var(--ink-2); margin: 12px 0 6px; }
.fx-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); margin: -1px 0 4px; }
.fx-card { padding: 12px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.fx-card h3 { margin-bottom: 10px; }
.fx-color { align-items: center; }
.fx-color input[type=color] { flex: none; width: 28px; height: 22px; padding: 0; border: 0; border-radius: 7px; background: none; cursor: pointer; }
.sec h3 .tag { font-size: 10px; font-weight: 500; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: 99px; padding: 1px 8px; margin-left: 6px; }
.sec h3 .tag + .more { margin-left: 8px; }

/* Acabado por color */
.cfx-list { display: grid; gap: 6px; margin-bottom: 8px; }
.cfx-list:empty { display: none; }
.cfx { display: grid; grid-template-columns: 32px 1fr 32px; gap: 6px; align-items: center; padding: 9px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.cfx.off { opacity: .55; }
.cfx input[type=color] { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.cfx select { height: 32px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); font-size: 12px; padding: 0 8px; min-width: 0; }
.cfx .ico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-3); }
.cfx .ico:hover { background: rgba(255, 107, 107, .14); color: var(--danger); }
.cfx .rng { grid-column: 1 / -1; }
.row2 { display: flex; gap: 6px; }
.row2 .btn { flex: 1; height: 34px; font-size: 12.5px; padding: 0 10px; }

/* Iluminación */
.light-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.light-grid button { display: grid; justify-items: center; gap: 6px; padding: 10px 2px 8px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); transition: background .2s, border-color .2s, color .2s; }
.light-grid button:hover { background: var(--soft-2); color: var(--ink); }
.light-grid button.on { background: var(--brand-100); border-color: var(--brand-200); color: var(--ink); font-weight: 500; }
.light-grid i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff 0 18%, var(--c) 60%, color-mix(in srgb, var(--c) 55%, #3a3a3a) 100%); box-shadow: 0 0 calc(var(--s) * 12px) color-mix(in srgb, var(--c) 70%, transparent); }

/* Calidad de la vista previa (barra inferior) */
.q-seg { display: inline-flex; height: 44px; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: var(--glass-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.q-seg button { height: 32px; min-width: 38px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink-3); font-family: var(--mono); transition: background .2s, color .2s; }
.q-seg button:hover { color: var(--ink); }
.q-seg button.on { background: var(--grad); color: var(--brand-ink); font-weight: 600; }

/* ---------- Revisión de impresión (panel aparte, a la derecha) ---------- */
.adv-btn { position: relative; gap: 6px; }
.adv-btn.on { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand); }
.adv-btn[data-level="ok"] svg { color: var(--brand); }
.adv-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 600; color: #1a1300; background: #ffb020; }
.adv-badge[data-level="error"] { color: #fff; background: #ff5a5a; }
.advisor { position: absolute; right: 12px; top: 64px; bottom: 12px; width: 360px; z-index: 30; display: flex; flex-direction: column; border-radius: 24px; background: var(--pop-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: adv-in .35s var(--ease); }
@keyframes adv-in { from { opacity: 0; transform: translateX(16px); } }
.adv-head { display: flex; align-items: flex-start; gap: 8px; padding: 16px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.adv-head > div { flex: 1; min-width: 0; }
.adv-head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.adv-head p { margin: 3px 0 0; font-size: 11.5px; color: var(--ink-3); }
.adv-body { flex: 1; overflow-y: auto; padding: 14px; display: grid; align-content: start; gap: 12px; }
.adv-verdict { display: grid; gap: 2px; padding: 13px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--soft); }
.adv-verdict b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.adv-verdict span { font-size: 12px; color: var(--ink-2); }
.adv-verdict.lv-ok { border-color: var(--brand-200); background: var(--brand-50); }
.adv-verdict.lv-ok b { color: var(--brand); }
.adv-verdict.lv-warn { border-color: rgba(255, 176, 32, .45); background: rgba(255, 176, 32, .1); }
.adv-verdict.lv-error { border-color: rgba(255, 90, 90, .5); background: rgba(255, 90, 90, .1); }
.adv-verdict.lv-error b { color: #ff6b6b; }
:root[data-theme="light"] .adv-verdict.lv-error b { color: #d33b3b; }
.adv-proof { display: grid; gap: 8px; padding: 12px 13px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.adv-proof h3 { margin: 0; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.adv-proof .note { margin: 0; }
.adv-list { display: grid; gap: 8px; }
.adv-item { position: relative; padding: 12px 13px 12px 15px; border-radius: 15px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.adv-item::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lv, var(--ink-3)); }
.adv-item.lv-error { --lv: #ff5a5a; }
.adv-item.lv-warn { --lv: #ffb020; }
.adv-item.lv-note { --lv: #5aa9ff; }
.adv-item.lv-ok { --lv: var(--brand); }
.adv-item h4 { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 4px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.adv-item .lv { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--lv); background: color-mix(in srgb, var(--lv) 16%, transparent); margin-top: -1px; }
.adv-item p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.adv-sws { display: grid; gap: 4px; margin-top: 9px; }
.adv-sw { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-3); min-width: 0; }
.adv-sw i { width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .35); }
.adv-sw svg { flex: none; color: var(--ink-3); }
.adv-sw em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 3px; }
.adv-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.adv-act .btn { height: 30px; font-size: 12px; padding: 0 12px; }
.adv-foot { margin: 2px 2px 4px; font-size: 10.5px; line-height: 1.5; color: var(--ink-3); }
.proof-chip { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 7; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 6px 0 13px; border-radius: 99px; font-size: 12px; color: var(--ink); background: var(--glass-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--brand-200); box-shadow: var(--shadow); white-space: nowrap; }
.proof-chip svg { color: var(--brand); }
.proof-chip span { color: var(--ink-2); }
.proof-chip button { height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--brand-ink); background: var(--grad); }
@media (max-width: 860px) { .advisor { left: 12px; width: auto; } .adv-btn { padding: 0 10px; } }

/* Cotas sobre el 3D */
.v-dims { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.v-dim { position: absolute; left: 0; top: 0; display: grid; justify-items: center; line-height: 1.15; gap: 2px; }
.v-dim b { font-size: 20px; font-weight: 600; color: var(--brand); text-shadow: 0 1px 8px var(--chip); }
.v-dim span { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--ink); background: var(--chip-solid); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 99px; }
.preview .v-dim b { font-size: 12px; }
.preview .v-dim span { font-size: 10px; }

/* ---------- Contenido de paneles ---------- */
.p-title { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.p-title .unit-seg { margin-left: auto; }
.p-sub { color: var(--ink-3); font-size: 12px; line-height: 1.5; margin: -6px 0 12px; }
.sec { margin-top: 18px; }
.sec h3, h3.sh3 { font-size: 12.5px; font-weight: 500; margin: 0 0 8px; color: var(--ink); display: flex; align-items: center; }
.sec h3 .link, .sec h3 .more { margin-left: auto; }
.more { font-size: 11.5px; color: var(--ink-3); }
.more:hover { color: var(--ink); }
.note { color: var(--ink-3); font-size: 11.5px; line-height: 1.5; margin: 6px 0 0; }
.upload-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 154px; border-radius: 16px; background: radial-gradient(closest-side, rgba(0, 229, 153, .14), transparent), var(--brand-50); border: 1.5px dashed var(--brand-200); color: var(--brand); transition: background .2s, border-color .2s; width: 100%; }
.upload-box:hover, .upload-box.drag { background: radial-gradient(closest-side, rgba(0, 229, 153, .22), transparent), var(--brand-100); border-color: var(--brand); }
.upload-box .btn { height: 32px; }
.dl-link { display: block; text-align: center; font-size: 12.5px; color: var(--ink-2); margin: 10px 0 12px; }
.dl-link:hover { color: var(--brand); }
.rows { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.row-link { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 11px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.row-link:hover { background: var(--soft-2); border-color: var(--line-2); }
.row-link > span { flex: 1; min-width: 0; display: grid; }
.row-link small { font-size: 10.5px; color: var(--ink-3); }
.row-link b { font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-link svg { color: var(--ink-3); flex: none; }
.row-link .sw-mini { width: 28px; height: 28px; border-radius: 9px; background-size: cover; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.model-id { display: flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 11px; margin-top: 10px; font-family: var(--mono); }
.model-id u { text-underline-offset: 2px; }

/* Material */
.mat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mcard { display: grid; gap: 5px; text-align: center; font-size: 11px; color: var(--ink-2); padding: 0; }
.mcard i { display: block; aspect-ratio: 1 / 1; border-radius: 16px; background-size: cover; background-position: center; border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s, transform .3s var(--ease); }
.mcard:hover i { border-color: var(--line-3); transform: scale(1.02); }
.mcard.on i { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100), 0 10px 24px -10px rgba(0, 229, 153, .6); }
.mcard.on { color: var(--ink); font-weight: 500; }
.seg { display: flex; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { flex: 1; height: 28px; border-radius: 9px; font-size: 12px; color: var(--ink-2); padding: 0 6px; white-space: nowrap; transition: background .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--seg-on); color: var(--ink); font-weight: 500; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 6px rgba(0, 0, 0, .3); }
.seg.wrap { flex-wrap: wrap; max-width: none; margin: 0; }
.seg.wrap button { flex: 1 1 30%; }
.seg.sm button { height: 22px; font-size: 11px; }
.unit-seg { display: inline-flex; background: var(--field); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.unit-seg button { height: 20px; padding: 0 8px; border-radius: 7px; font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }
.unit-seg button.on { background: var(--brand-100); color: var(--brand); font-weight: 600; }
.special-list { display: grid; gap: 6px; }
.special { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 13px; background: var(--soft); border: 1px solid var(--line); font-size: 12.5px; }
.special i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), inset 3px -3px 6px rgba(255, 255, 255, .5); flex: none; }
.special span { flex: 1; }
.special em { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); }

/* Campos */
.dim3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dim3 label { display: grid; gap: 4px; }
.dim3 label span { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dim3 input { height: 36px; width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); text-align: center; font-size: 13px; background: var(--field); padding: 0 4px; font-family: var(--mono); transition: border-color .2s, box-shadow .2s; }
.dim3 input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-100); }
.fields { display: grid; gap: 10px; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 11.5px; color: var(--ink-2); }
.field select, .inp { height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 10px; background: var(--field); width: 100%; min-width: 0; }
.field select:focus, .inp:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-100); }
.num { display: flex; align-items: center; height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--field); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.num input { flex: 1; min-width: 0; border: 0; outline: none; background: none; text-align: right; padding: 0 4px; font-size: 13px; font-family: var(--mono); }
.num em { font-style: normal; font-size: 11px; color: var(--ink-3); padding: 0 9px 0 2px; }
.num .step { width: 28px; height: 100%; color: var(--ink-3); font-size: 15px; }
.num .step:hover { background: var(--soft-2); color: var(--ink); }
.num:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 12.5px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle i { position: relative; width: 36px; height: 21px; border-radius: 99px; background: var(--track); flex: none; transition: background .25s; }
.toggle i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.toggle input:checked + i { background: var(--brand); }
.toggle input:checked + i::after { transform: translateX(15px); }
.toggle input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
details.adv { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
details.adv summary { cursor: pointer; font-size: 12.5px; font-weight: 500; list-style: none; display: flex; align-items: center; gap: 6px; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::before { content: '›'; display: inline-block; transition: transform .2s; color: var(--brand); }
details.adv[open] summary::before { transform: rotate(90deg); }
details.adv > div { margin-top: 10px; }
.sum-t { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 12px; }
.sum-t th, .sum-t td { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--line); font-weight: 400; font-family: var(--mono); }
.sum-t th:first-child { text-align: left; color: var(--ink-2); font-family: var(--font); }
.sum-t thead th { color: var(--ink-3); font-size: 10.5px; font-family: var(--font); }
.sum-t .hl { color: var(--brand); font-weight: 600; }
.sum-d { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; font-size: 11.5px; margin: 10px 0 0; }
.sum-d dt { color: var(--ink-3); }
.sum-d dd { margin: 0; text-align: right; font-family: var(--mono); }

/* Modelos */
.lib-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.lib-tabs button { height: 30px; padding: 0 13px; border-radius: 99px; font-size: 12px; color: var(--ink-2); }
.lib-tabs button.on { background: var(--grad); color: var(--brand-ink); font-weight: 600; }
.lib-tabs button:not(.on):hover { background: var(--soft-2); color: var(--ink); }
.search { display: flex; align-items: center; gap: 7px; height: 36px; border: 1px solid var(--line-2); border-radius: 99px; padding: 0 12px; margin-bottom: 8px; background: var(--field); }
.search:focus-within { border-color: var(--brand); }
.search input { flex: 1; border: 0; outline: none; min-width: 0; font-size: 12.5px; background: none; }
.search svg { color: var(--ink-3); flex: none; }
.chips { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; scrollbar-width: none; }
.chips button { flex: none; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line); }
.chips button.on { border-color: var(--brand-200); color: var(--brand); background: var(--brand-100); }
.chips button:not(.on):hover { background: var(--soft-2); color: var(--ink); }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.mitem { display: grid; gap: 4px; text-align: center; font-size: 10px; color: var(--ink-3); line-height: 1.2; }
.mitem .thumb { aspect-ratio: 1; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; transition: border-color .2s, background .2s; }
.mitem .thumb img, .mitem .thumb svg { width: 92%; height: 92%; object-fit: contain; }
.mitem:hover .thumb { border-color: var(--line-3); background: var(--soft-2); }
.mitem.on .thumb { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.mitem.on { color: var(--ink); }
.proj-card { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); width: 100%; text-align: left; }
.proj-card img { width: 64px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--field); }
.proj-card b { display: block; font-weight: 500; font-size: 12.5px; }
.proj-card span { font-size: 11px; color: var(--ink-3); }

/* Fondo y video */
.bg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bgsw { aspect-ratio: 1; border-radius: 14px; background: var(--c); border: 1px solid var(--line-2); position: relative; overflow: hidden; transition: transform .25s var(--ease); }
.bgsw:hover { transform: scale(1.05); }
.bgsw.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.bgsw.check { background: repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 0 0 / 12px 12px; }
.bgsw.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.bgsw.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.comp-grid button { height: 56px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.comp-grid button:hover { background: var(--soft-2); color: var(--ink); }
.comp-grid button.on { border-color: var(--brand-200); color: var(--brand); background: var(--brand-100); }
.vid-prev { border-radius: 16px; overflow: hidden; background: var(--field); border: 1px solid var(--line); aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--ink-3); font-size: 12px; text-align: center; padding: 10px; }
.stack { display: grid; gap: 8px; }

/* ---------- Editor: Subir y diseñar ---------- */
.ed-rail { top: 12px; }
.ed-panel { left: 88px; top: 12px; bottom: 12px; width: 244px; max-height: none; }
.stage { position: absolute; left: 344px; right: 384px; top: 0; bottom: 0; background: transparent; overflow: hidden; }
.canvas-host { position: absolute; inset: 0; background: radial-gradient(1100px 700px at 50% 42%, rgba(255, 255, 255, .045), transparent 70%); }
.canvas-host .canvas-container { position: absolute !important; inset: 0; }
.canvas-host.is-hand .upper-canvas { cursor: grab !important; }
.canvas-host.is-panning .upper-canvas { cursor: grabbing !important; }
.editor { background: var(--canvas); }
.ed-dock { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; }
.side-badge { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); font-size: 11px; font-weight: 500; color: var(--brand); background: var(--chip-solid); border: 1px solid var(--brand-200); padding: 4px 12px; border-radius: 99px; pointer-events: none; display: none; z-index: 3; }
body[data-side="in"] .side-badge { display: block; }
.drop-hint { position: absolute; inset: 14px; border: 2px dashed var(--brand); border-radius: 22px; display: none; place-items: center; font-weight: 500; color: var(--brand); background: rgba(0, 229, 153, .07); pointer-events: none; z-index: 5; }
.stage.drop-on .drop-hint { display: grid; }
.ed-right { position: absolute; right: 12px; top: 12px; bottom: 12px; width: 360px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.preview { position: relative; flex: none; height: 340px; overflow: hidden; background: var(--stage); }
.preview-3d { position: absolute; inset: 0; }
.pv-3d { position: absolute; right: 10px; top: 10px; font-size: 10px; font-weight: 700; width: 34px; height: 24px; display: grid; place-items: center; border-radius: 99px; z-index: 3; font-family: var(--mono); }
.pv-3d:hover { color: var(--brand); border-color: var(--brand-200); }
.pv-fold { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-size: 10.5px; padding: 4px 13px; border-radius: 99px; z-index: 3; color: var(--ink-2); }
.pv-fold input[type=range] { width: 96px; }
.color-card { padding: 14px; flex: none; }
.color-card h4, .inspector h4 { font-size: 12px; font-weight: 500; margin: 12px 0 8px; color: var(--ink); }
.color-card h4:first-child { margin-top: 0; }
.dots { display: flex; flex-wrap: wrap; gap: 7px; }
.dot { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: transform .2s var(--ease); }
.dot:hover { transform: scale(1.14); }
.dot.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--brand); }
.dot.picker { background: conic-gradient(#f43, #fb2, #4c4, #2cf, #46f, #c4f, #f43); }
.dot.picker::after { content: '+'; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; line-height: 1; color: var(--ink); }
.dot.picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dot.none { background: #fff; }
.dot.none::after { content: ''; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 1.5px; background: #e5484d; transform: rotate(45deg); }
.inspector { padding: 16px; flex: none; }
.inspector:empty { display: none; }

/* Panel de archivos */
.upl-btn { width: 100%; height: 40px; }
.file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.file-grid button { aspect-ratio: 1; border-radius: 14px; background: var(--soft); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); }
.file-grid button:hover { border-color: var(--brand); }
.file-grid img { width: 100%; height: 100%; object-fit: contain; }
.file-grid .ph { display: block; aspect-ratio: 1; border-radius: 14px; background: repeating-linear-gradient(135deg, var(--soft) 0 8px, var(--soft-2) 8px 16px); border: 1px dashed var(--line-2); }
.files-foot { color: var(--ink-3); font-size: 11px; margin-top: 10px; line-height: 1.5; }

/* Panel de elementos */
.el-sec { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 11px; margin-top: 10px; }
.el-sec h3 { display: flex; align-items: center; font-size: 12px; font-weight: 500; margin: 0 0 8px; }
.el-sec h3 button { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.el-sec h3 button:hover { color: var(--brand); }
.el-row { display: flex; gap: 6px; overflow: hidden; }
.el-sec.open .el-row { flex-wrap: wrap; }
.el-row > button { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--soft-2); display: grid; place-items: center; color: var(--ink); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.el-row > button:hover { border-color: var(--brand); background: var(--soft-2); }
.el-row.pats > button { background-size: cover; }
.combo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.combo-grid button { aspect-ratio: 1; border-radius: 16px; background: #f3f5f4; padding: 8px; color: #111917; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .2s; }
.combo-grid button:hover { transform: scale(1.03); box-shadow: 0 0 0 3px var(--brand-200); }
.combo-grid svg { width: 100%; height: 100%; }
.add-text { display: block; width: 100%; text-align: left; padding: 11px 13px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); margin-top: 6px; transition: background .2s, border-color .2s; }
.add-text:hover { background: var(--soft-2); border-color: var(--line-2); }
.add-text.t1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.add-text.t2 { font-size: 15px; font-weight: 500; }
.add-text.t3 { font-size: 12px; color: var(--ink-2); }
.pat-opts { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cfield { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); cursor: pointer; }
.sw { position: relative; width: 26px; height: 26px; border-radius: 9px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); flex: none; display: inline-block; }
.sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.sw.lg { width: 34px; height: 34px; border-radius: 11px; }
.ifield { display: flex; align-items: center; gap: 6px; height: 34px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 9px; background: var(--field); min-width: 0; transition: border-color .2s, box-shadow .2s; }
.ifield > span { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.ifield input, .ifield select { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 12.5px; text-align: right; }
.ifield input { font-family: var(--mono); }
.ifield select { text-align: left; }
.ifield em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.ifield.wide { width: 100%; }
.ifield:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.pat-opts .ifield { width: 110px; }
.code-row { display: flex; gap: 6px; margin-top: 6px; }
.code-row input, .code-row select { height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 9px; min-width: 0; flex: 1; background: var(--field); }
.code-row input:focus, .code-row select:focus { border-color: var(--brand); outline: none; }
.code-row select { flex: 0 0 84px; }
.code-row .btn { height: 36px; padding: 0 12px; }
select option { background: var(--surface); color: var(--ink); }

/* Caras */
.faces { display: grid; gap: 4px; }
.face-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 13px; transition: background .15s; }
.face-row:hover, .face-row.on { background: var(--soft); }
.face-row.on { box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-50); }
.face-name { flex: 1; text-align: left; min-width: 0; display: grid; }
.face-name b { font-weight: 500; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.face-name span { font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }
.face-row .ib { width: 28px; height: 28px; }
.ibtn-sp { width: 28px; }
details.flaps { margin-top: 10px; }
details.flaps summary { cursor: pointer; font-size: 12px; color: var(--ink-2); padding: 4px 0; }

/* Capas */
.layers { display: grid; gap: 3px; }
.layer { display: flex; align-items: center; gap: 4px; padding: 3px 5px; border-radius: 12px; }
.layer:hover { background: var(--soft); }
.layer.on { background: var(--brand-100); box-shadow: inset 0 0 0 1px var(--brand-200); }
.layer.hidden { opacity: .5; }
.layer .lk { width: 26px; display: grid; place-items: center; color: var(--ink-3); }
.layer-name { flex: 1; min-width: 0; text-align: left; font-size: 12px; display: grid; padding: 4px 2px; }
.layer-name em { font-style: normal; font-size: 10px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer .ib { width: 26px; height: 26px; }

/* Inspector */
.i-head { display: grid; gap: 2px; margin-bottom: 4px; }
.eyebrow { font-size: 10.5px; color: var(--brand); font-weight: 600; letter-spacing: .02em; }
.i-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.i-name { border: 1px solid transparent; border-radius: 9px; padding: 3px 7px; margin-left: -7px; font-size: 14.5px; font-weight: 600; background: none; }
.i-name:hover { border-color: var(--line-2); }
.i-name:focus { border-color: var(--brand); outline: none; background: var(--field); }
.i-sec { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 12px; }
.i-note { color: var(--ink-3); font-size: 11.5px; line-height: 1.5; margin: 6px 0 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tbar { margin-top: 6px; }
.tbar button { flex: 1 1 0; min-width: 26px; }
.color-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-row .ifield { width: 112px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches.sm { margin-top: 8px; }
.sw-b { width: 21px; height: 21px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); transition: transform .2s var(--ease); }
.sw-b:hover { transform: scale(1.14); }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-row.icons .ib { width: 32px; height: 32px; border: 1px solid var(--line-2); background: var(--soft); }
.btn-row .btn { height: 34px; font-size: 12px; padding: 0 10px; flex: 1; }
.ib.danger:hover { color: var(--danger); background: rgba(255, 107, 107, .14); }
.pat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pat-grid button { aspect-ratio: 1; border-radius: 11px; background-size: cover; border: 1.5px solid transparent; }
.pat-grid button.on, .pat-grid button:hover { border-color: var(--brand); }

/* Barra flotante sobre la selección */
.float-bar { position: absolute; z-index: 6; display: flex; align-items: center; gap: 1px; padding: 5px; border-radius: 999px; box-shadow: var(--shadow-lg); transform: translate(-50%, -100%); white-space: nowrap; background: var(--pop-bg); }
.float-bar.below { transform: translate(-50%, 0); }
.float-bar[hidden] { display: none; }
.float-bar button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.float-bar button:hover { background: var(--soft-2); color: var(--ink); }
.float-bar button.danger:hover { color: var(--danger); background: rgba(255, 107, 107, .14); }
.fb-sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 3px; }
.fb-finish { display: flex; align-items: center; gap: 3px; color: var(--brand); padding: 0 5px; }
.fb-finish select { border: 0; background: none; font-size: 11.5px; max-width: 120px; outline: none; color: var(--ink); }

/* ---------- Diálogos ---------- */
.dlg { border: 1px solid var(--line-2); border-radius: 28px; padding: 0; width: min(780px, 94vw); max-height: 90vh; box-shadow: var(--shadow-lg); color: var(--ink); background: var(--pop-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); overflow: hidden; }
.dlg::backdrop { background: var(--backdrop); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dlg[open] { animation: dlg-in .35s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.dlg-head { display: flex; align-items: flex-start; gap: 10px; padding: 22px 24px 8px; margin: 0; }
.dlg-head > div { flex: 1; }
.dlg-head h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.dlg-head p { margin: 3px 0 0; color: var(--ink-3); font-size: 12.5px; }
.dlg-body { padding: 4px 24px 24px; overflow-y: auto; max-height: calc(90vh - 96px); }
.dlg-body section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.dlg-body section:first-child { border-top: 0; margin-top: 0; }
.dlg-body h3 { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; }
.dlg-body p { margin: 0 0 10px; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.dlg-body p b { color: var(--brand); font-weight: 500; font-family: var(--mono); font-size: 11.5px; }
.ex-opts { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 12.5px; margin: 6px 0 10px; color: var(--ink-2); }
.ex-opts select { height: 32px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 8px; margin-left: 6px; background: var(--field); }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; }
.ex-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ex { display: grid; gap: 3px; text-align: left; padding: 13px 15px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--soft); transition: border-color .2s, box-shadow .2s, background .2s, transform .3s var(--ease); }
.ex:hover { border-color: var(--brand-200); background: var(--soft-2); box-shadow: 0 0 0 3px var(--brand-50); transform: translateY(-2px); }
.ex b { font-weight: 600; font-size: 13px; }
.ex span { font-size: 11.5px; color: var(--ink-3); }
.ex.ex-main { background: var(--grad); border-color: transparent; color: var(--brand-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 28px -10px rgba(0, 229, 153, .65); }
.ex.ex-main span { color: rgba(2, 21, 14, .72); }
.ex:disabled { opacity: .5; cursor: default; }
.dlg-progress { display: flex; align-items: center; gap: 12px; padding: 12px 24px 20px; font-size: 12.5px; color: var(--ink-2); }
.dlg-progress[hidden] { display: none; }
.dlg-progress .bar { flex: 1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.dlg-progress .bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.dlg.confirm { width: 370px; padding: 28px 26px 24px; text-align: center; }
.dlg.confirm h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.dlg.confirm p { margin: 0 0 20px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.cf-row { display: flex; gap: 10px; justify-content: center; }
.cf-row .btn { min-width: 116px; height: 40px; }
.cf-x { position: absolute; right: 12px; top: 12px; }

.toast { position: fixed; left: 50%; bottom: 82px; transform: translate(-50%, 10px); color: var(--ink); padding: 11px 18px; border-radius: 999px; font-size: 12.5px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); z-index: 100; max-width: min(560px, 92vw); text-align: center; background: var(--pop-bg); border-color: var(--brand-200); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.thumb-host { position: fixed; left: -10000px; top: 0; width: 360px; height: 280px; }

/* Carga inicial */
body:not(.ready) .ws::after { content: 'Cargando el estudio…'; position: absolute; inset: 52px 0 0; display: grid; place-items: center; background: var(--bg); color: var(--ink-3); z-index: 50; }

/* ---------- Responsivo ---------- */
@media (max-width: 1320px) {
  .ed-right { width: 300px; }
  .stage { right: 324px; }
  .preview { height: 280px; }
  .cats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .ed-panel { width: 214px; }
  .stage { left: 314px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .showcase { max-width: 620px; }
  .tools { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .cat-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .cat-side h4 { width: 100%; }
  .cat-side button { width: auto; }
  .cat-side button em { margin-left: 4px; }
  .proj-name { display: none; }
}
@media (max-width: 860px) {
  .site-links { display: none; }
  .site-nav { justify-content: space-between; }
  .hero { padding: 48px 18px 28px; }
  .section { padding: 36px 18px 6px; }
  .tools { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .size-filter { position: static; margin-bottom: 12px; }
  .catalog { padding: 22px 16px 40px; }
  .ed-right { display: none; }
  .stage { right: 0; }
  .fold-ctl span { display: none; }
  .chip-ok { display: none; }
}
@media (max-width: 520px) {
  .brand .by { display: none; }
  .showcase { aspect-ratio: 1; gap: 8px; }
  .sc-tile { border-radius: 18px; }
  .facts { gap: 14px 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Conmutador de pantallas (barra de trabajo) y menú móvil del sitio ---------- */
.ws-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); margin-left: 4px; }
.ws-switch a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.ws-switch a:hover { color: var(--ink); background: var(--soft-2); }
.ws-switch a svg { opacity: .8; }
body[data-screen="studio"] .ws-switch [data-ws="studio"], body[data-screen="editor"] .ws-switch [data-ws="editor"], body[data-screen="ia"] .ws-switch [data-ws="ia"] { color: var(--brand-ink); background: var(--grad); box-shadow: 0 6px 16px -8px rgba(0, 229, 153, .6); }
body[data-screen="studio"] .ws-switch [data-ws="studio"] svg, body[data-screen="editor"] .ws-switch [data-ws="editor"] svg, body[data-screen="ia"] .ws-switch [data-ws="ia"] svg { opacity: 1; }
.nav-btn { display: none; }
@media (max-width: 1100px) { .ws-switch a span, .ws-switch a { padding: 0 9px; } .ws-title { display: none; } }
@media (max-width: 860px) {
  .nav-btn { display: inline-grid; }
  .site-nav { position: sticky; }
  .site-links.open { display: flex; flex-direction: column; position: absolute; left: 10px; right: 10px; top: 64px; padding: 8px; border-radius: 18px; background: var(--pop-bg); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
  .site-links.open a { padding: 11px 14px; }
  .ws-switch a { padding: 0 8px; }
  .ws-switch a svg { display: none; }
}
