/* dashboard.wolfstack.io · workspace.css — v1 — 2026-09-25
   Inicio, Perfil y ajustes, Sitio web, Smart Updates y Casas (clientes Modelo B / REI).
   Usa los mismos tokens de dashboard.css (--bg-card, --accent, --border-color…). */

.ws-hidden { display: none !important; }
.ws-h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); }
.ws-sub { color: var(--text-secondary); font-size: .92rem; margin-top: .35rem; line-height: 1.5; }
.ws-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.ws-grid { display: grid; gap: 1rem; }
.ws-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ws-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .ws-grid.cols-2, .ws-grid.cols-3 { grid-template-columns: 1fr; } .ws-h1 { font-size: 1.35rem; } }
.ws-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 1.35rem; animation: cardFadeIn .5s cubic-bezier(.16,1,.3,1) both; }
.ws-card + .ws-card { margin-top: 1rem; }
.ws-grid > .ws-card + .ws-card { margin-top: 0; }
.ws-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: .5rem; }
.ws-card .ws-desc { color: var(--text-secondary); font-size: .85rem; margin: .3rem 0 1rem; line-height: 1.5; }
.ws-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ws-row.between { justify-content: space-between; }
.ws-mt { margin-top: 1rem; }
.ws-muted { color: var(--text-secondary); font-size: .82rem; }
.ws-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1rem; border-radius: 10px; font-weight: 600; font-size: .86rem; border: 1px solid var(--border-color); background: transparent; color: var(--text-primary); cursor: pointer; transition: all .18s ease; text-decoration: none; line-height: 1.1; white-space: nowrap; }
.ws-btn:hover { background: var(--bg-hover); }
.ws-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ws-btn.primary:hover { background: var(--accent-hover); }
.ws-btn.danger { color: var(--error); border-color: rgba(239,68,68,.35); }
.ws-btn.ghost { border-color: transparent; color: var(--text-secondary); }
.ws-btn.sm { padding: .42rem .7rem; font-size: .78rem; border-radius: 8px; }
.ws-btn:disabled { opacity: .5; cursor: not-allowed; }
.ws-btn .spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ws-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--border-color); color: var(--text-secondary); white-space: nowrap; }
.ws-pill.ok { color: #10b981; border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.1); }
.ws-pill.warn { color: #f59e0b; border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.1); }
.ws-pill.err { color: #ef4444; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }
.ws-pill.info { color: var(--accent); border-color: rgba(14,165,233,.35); background: rgba(14,165,233,.08); }
.ws-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ws-dot.pulse { animation: wsPulse 1.4s infinite; }
@keyframes wsPulse { 50% { opacity: .25; } }

/* formulario */
.ws-field { margin-bottom: .9rem; }
.ws-label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-secondary); margin-bottom: .4rem; }
.ws-input, .ws-select, .ws-textarea { width: 100%; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 10px; padding: .65rem .8rem; font-size: .92rem; outline: none; transition: border-color .15s, box-shadow .15s; font-family: inherit; }
.ws-input:focus, .ws-select:focus, .ws-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,.15); }
.ws-textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.ws-help { font-size: .76rem; color: var(--text-secondary); margin-top: .35rem; line-height: 1.45; }
.ws-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.ws-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-primary); border-radius: 999px; padding: .38rem .75rem; font-size: .82rem; cursor: pointer; }
.ws-chip[aria-pressed="true"] { border-color: var(--accent); background: rgba(14,165,233,.12); color: var(--text-primary); }
.ws-chip .x { opacity: .6; cursor: pointer; }
.ws-seg { display: inline-flex; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.ws-seg button { border: 0; background: none; color: var(--text-secondary); padding: .42rem .75rem; border-radius: 8px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.ws-seg button[aria-pressed="true"] { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ws-switch { position: relative; width: 38px; height: 22px; flex: none; }
.ws-switch input { opacity: 0; width: 0; height: 0; }
.ws-switch span { position: absolute; inset: 0; border-radius: 22px; background: var(--border-color); transition: .2s; cursor: pointer; }
.ws-switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.ws-switch input:checked + span { background: var(--accent); }
.ws-switch input:checked + span::before { transform: translateX(16px); }
.ws-hours { display: grid; gap: .45rem; }
.ws-hour { display: flex; align-items: center; gap: .75rem; padding: .5rem .7rem; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-input); }
.ws-hour.off { opacity: .5; }
.ws-hour b { width: 42px; font-size: .85rem; }
.ws-hour select { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 8px; padding: .3rem .4rem; font-size: .8rem; }
.ws-hour select option, .ws-select option { background: var(--bg-card); }

/* inicio */
.ws-hero { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 1.6rem; border: 1px solid var(--border-color);
  background: radial-gradient(120% 140% at 0% 0%, rgba(14,165,233,.18), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(91,71,224,.18), transparent 55%), var(--bg-card); }
.ws-hero .greet { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }
.ws-hero .tour-btn { position: absolute; top: 1.2rem; right: 1.2rem; }
.ws-progress { display: flex; gap: 1.2rem; align-items: center; }
.ws-ring { --p: 0; width: 74px; height: 74px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--border-color) 0); transition: --p 1s; }
.ws-ring::after { content: attr(data-label); width: 58px; height: 58px; border-radius: 50%; background: var(--bg-card); display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: var(--text-primary); }
.ws-check { display: grid; gap: .5rem; margin-top: 1rem; }
.ws-check-item { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-main); }
.ws-check-item .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--border-color); font-size: .8rem; }
.ws-check-item.done .ic { background: #10b981; border-color: #10b981; color: #fff; }
.ws-check-item.done .t { color: var(--text-secondary); text-decoration: line-through; text-decoration-color: rgba(139,148,158,.5); }
.ws-check-item .t { flex: 1; font-size: .88rem; font-weight: 600; }
.ws-check-item .t small { display: block; font-weight: 400; color: var(--text-secondary); text-decoration: none; margin-top: 2px; }
.ws-prod { display: flex; gap: .8rem; align-items: center; padding: .9rem; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-main); }
.ws-prod .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(14,165,233,.12); color: var(--accent); flex: none; }
.ws-prod b { display: block; font-size: .88rem; }
.ws-stat { text-align: center; padding: 1.1rem .6rem; }
.ws-stat .v { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.ws-stat .l { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); margin-top: .2rem; }
.ws-short { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-main); cursor: pointer; color: var(--text-primary); text-align: left; transition: transform .15s, border-color .15s; font-family: inherit; }
.ws-short:hover { transform: translateY(-2px); border-color: var(--accent); }
.ws-short b { font-size: .88rem; }
.ws-short small { color: var(--text-secondary); font-size: .76rem; line-height: 1.35; }

/* sitio */
.ws-browser { border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden; background: #000; position: relative; height: 360px; }
.ws-browser .bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--bg-main); border-bottom: 1px solid var(--border-color); font-size: .75rem; color: var(--text-secondary); }
.ws-browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-color); }
.ws-browser .bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-browser .frame { position: absolute; top: 32px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.ws-browser iframe { width: 1280px; height: 1400px; border: 0; transform-origin: 0 0; pointer-events: none; }
.ws-dns { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: .6rem; }
.ws-dns th { text-align: left; color: var(--text-secondary); font-weight: 600; padding: .45rem .5rem; border-bottom: 1px solid var(--border-color); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.ws-dns td { padding: .55rem .5rem; border-bottom: 1px solid var(--border-color); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.ws-timeline { display: grid; gap: 0; }
.ws-ver { display: flex; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--border-color); align-items: flex-start; }
.ws-ver:last-child { border-bottom: 0; }
.ws-ver .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--bg-main); border: 1px solid var(--border-color); display: grid; place-items: center; flex: none; font-size: .9rem; }
.ws-ver .body { flex: 1; min-width: 0; }
.ws-ver .body b { font-size: .86rem; }
.ws-ver .body p { color: var(--text-secondary); font-size: .8rem; margin-top: 2px; line-height: 1.4; }

/* smart updates */
.ws-quota { display: flex; align-items: center; gap: 1rem; }
.ws-quota .slots { display: flex; gap: .4rem; }
.ws-quota .slot { width: 34px; height: 34px; border-radius: 10px; border: 2px dashed var(--border-color); display: grid; place-items: center; font-size: .9rem; }
.ws-quota .slot.full { border-style: solid; border-color: var(--accent); background: rgba(14,165,233,.12); color: var(--accent); }
.ws-change { border: 1px solid var(--border-color); border-radius: 14px; padding: .9rem; background: var(--bg-main); position: relative; animation: cardFadeIn .35s both; }
.ws-change + .ws-change { margin-top: .7rem; }
.ws-change .n { position: absolute; top: -10px; left: 12px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.ws-change .ws-textarea { background: transparent; border: 0; padding: .3rem 0; min-height: 70px; box-shadow: none; }
.ws-change .tools { display: flex; align-items: center; gap: .5rem; border-top: 1px solid var(--border-color); padding-top: .6rem; margin-top: .3rem; flex-wrap: wrap; }
.ws-thumbs { display: flex; gap: .45rem; flex-wrap: wrap; }
.ws-thumb { position: relative; width: 58px; height: 58px; border-radius: 9px; overflow: hidden; border: 1px solid var(--border-color); background: var(--bg-input); }
.ws-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ws-thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.ws-thumb.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); animation: shimmer 1s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ws-suggest { display: flex; gap: .4rem; flex-wrap: wrap; margin: .8rem 0 0; }
.ws-steps-anim { display: grid; gap: .6rem; padding: 1.2rem 0; }
.ws-steps-anim div { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--text-secondary); transition: color .3s; }
.ws-steps-anim div.on { color: var(--text-primary); }
.ws-steps-anim div.done { color: #10b981; }
.ws-steps-anim .b { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: .65rem; }
.ws-steps-anim div.on .b { border-top-color: transparent; animation: spin 1s linear infinite; }
.ws-diff { display: grid; gap: .55rem; }
.ws-diff-row { border: 1px solid var(--border-color); border-radius: 12px; padding: .7rem .85rem; background: var(--bg-main); }
.ws-diff-row .k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); display: flex; gap: .4rem; align-items: center; }
.ws-diff-row .from { color: var(--text-secondary); text-decoration: line-through; font-size: .84rem; margin-top: .3rem; }
.ws-diff-row .to { color: var(--text-primary); font-size: .88rem; margin-top: .2rem; }
.ws-diff-row .to::before { content: "→ "; color: #10b981; font-weight: 700; }
.ws-diff-row img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); }
.ws-status-list { display: grid; gap: .5rem; }
.ws-status-item { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; }
.ws-status-item .txt { flex: 1; }
.ws-status-item .txt small { display: block; color: var(--text-secondary); margin-top: 2px; }

/* casas */
.ws-homes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.ws-home { border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; background: var(--bg-card); display: flex; flex-direction: column; animation: cardFadeIn .45s both; }
.ws-home .ph { aspect-ratio: 4/3; background: var(--bg-input) center/cover no-repeat; position: relative; }
.ws-home .ph .ws-pill { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.65); border-color: transparent; color: #fff; backdrop-filter: blur(6px); }
.ws-home .ph .hid { position: absolute; top: 10px; right: 10px; }
.ws-home .bd { padding: .85rem .95rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.ws-home .price { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.ws-home .addr { font-size: .86rem; font-weight: 600; }
.ws-home .specs { font-size: .78rem; color: var(--text-secondary); }
.ws-home .act { display: flex; gap: .35rem; margin-top: .7rem; flex-wrap: wrap; }
.ws-empty { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--border-color); border-radius: 18px; }
.ws-empty .big { font-size: 2.4rem; margin-bottom: .5rem; }
.ws-drop { border: 2px dashed var(--border-color); border-radius: 14px; padding: 1rem; text-align: center; color: var(--text-secondary); font-size: .85rem; cursor: pointer; transition: all .15s; }
.ws-drop.over { border-color: var(--accent); background: rgba(14,165,233,.06); }
.ws-photos { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.ws-photos .ws-thumb { width: 84px; height: 64px; cursor: grab; }
.ws-photos .ws-thumb:first-child::before { content: "Cover"; position: absolute; left: 4px; bottom: 4px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 5px; z-index: 1; }
.ws-qr { background: #fff; border-radius: 14px; padding: 14px; width: 240px; max-width: 100%; margin: 0 auto; }
.ws-qr svg { width: 100%; height: auto; display: block; }

/* modal */
.ws-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.ws-modal.open { display: flex; animation: viewFadeIn .25s both; }
.ws-modal .box { width: 100%; max-width: 620px; max-height: calc(100vh - 2rem); overflow: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.ws-modal .box.sm { max-width: 420px; }
.ws-modal .mh { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; background: var(--bg-card); z-index: 1; }
.ws-modal .mh h3 { font-size: 1.05rem; font-weight: 700; }
.ws-modal .mb { padding: 1.2rem 1.3rem; }
.ws-modal .mf { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.3rem; border-top: 1px solid var(--border-color); position: sticky; bottom: 0; background: var(--bg-card); }
@media (max-width: 767px) { .ws-modal { align-items: flex-end; padding: 0; } .ws-modal .box { border-radius: 20px 20px 0 0; max-height: 92vh; } }

/* tour */
.ws-tour-hl { position: fixed; z-index: 3000; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,.62), 0 0 0 3px var(--accent); transition: all .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.ws-tour-tip { position: fixed; z-index: 3001; width: 300px; max-width: calc(100vw - 24px); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: all .35s cubic-bezier(.2,.8,.2,1); }
.ws-tour-tip h4 { font-size: .98rem; font-weight: 700; margin-bottom: .35rem; }
.ws-tour-tip p { font-size: .84rem; color: var(--text-secondary); line-height: 1.5; }
.ws-tour-tip .foot { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; }
.ws-tour-tip .dots { display: flex; gap: 4px; }
.ws-tour-tip .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-color); }
.ws-tour-tip .dots i.on { background: var(--accent); width: 16px; border-radius: 3px; }

/* navegación nueva */
.nav-badge { margin-left: auto; font-size: .65rem; font-weight: 800; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 7px; }
.ws-skel { background: linear-gradient(90deg, var(--bg-input), var(--bg-hover), var(--bg-input)); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: 10px; height: 14px; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ws-drop { display: block; }
.ws-grid.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) {
  .ws-hero .tour-btn { position: static; margin-bottom: .7rem; }
  .ws-hero .greet { font-size: 1.3rem; }
  .ws-grid.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .ws-stat { padding: .8rem .3rem; } .ws-stat .v { font-size: 1.5rem; } .ws-stat .l { font-size: .58rem; }
  .ws-browser { height: 240px; }
}

/* v2 · vista previa navegable */
.ws-browser.tall { height: 560px; }
@media (max-width: 767px) { .ws-browser.tall { height: 460px; } }
.ws-browser.interactive .frame { overflow: hidden; }
.ws-browser[data-device="mobile"] .frame { background: #0b0d12; }
