/* WonState Helpdesk: manual público. Estética del producto (oscuro, azul/verde). */
:root {
  --bg: #0b1020; --bg2: #0e1428; --panel: #131a30; --border: rgba(255, 255, 255, .09);
  --txt: #eef1fa; --txt2: #c9cbe0; --txt3: #8a8db0;
  --blue: #2f7bf6; --green: #0c8a44; --grad: linear-gradient(135deg, #1d4ed8, #0c8a44);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--txt2);
  font: 16px/1.65 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #7fb0ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
  background: rgba(11, 16, 32, .82); border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--txt); font-weight: 800; font-size: 18px; }
.brand b { background: linear-gradient(90deg, #4d94ff, #37d67a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .hd { color: var(--txt3); font-weight: 600; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; }
.nav-links { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.hero { padding: 64px 0 34px; }
.hero h1 { color: var(--txt); font-size: clamp(30px, 4.6vw, 44px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.hero p { max-width: 640px; font-size: 17.5px; color: var(--txt2); margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #37d67a; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 26px 0 70px; }
.card {
  display: block; background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px; color: var(--txt2); transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: rgba(79, 148, 255, .45); text-decoration: none; }
.card h3 { margin: 0 0 6px; color: var(--txt); font-size: 16.5px; display: flex; align-items: center; gap: 9px; }
.card p { margin: 0; font-size: 13.8px; color: var(--txt3); }
.card .soon { font-size: 11px; font-weight: 700; color: var(--txt3); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; margin-left: auto; }
.dot { width: 9px; height: 9px; border-radius: 999px; background: var(--grad); flex-shrink: 0; }

article { max-width: 860px; margin: 0 auto; padding: 40px 22px 80px; }
article header { margin-bottom: 30px; }
article h1 { color: var(--txt); font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; letter-spacing: -.02em; }
article .lead { font-size: 17.5px; color: var(--txt2); }
article h2 { color: var(--txt); font-size: 22px; margin: 46px 0 10px; letter-spacing: -.01em; }
article h3 { color: var(--txt); font-size: 17px; margin: 28px 0 8px; }
article p, article li { font-size: 15.5px; color: var(--txt2); }
article ul { padding-left: 20px; }
article li { margin: 5px 0; }
article strong { color: var(--txt); }
figure { margin: 22px 0 8px; }
figure img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
figcaption { font-size: 13px; color: var(--txt3); margin-top: 9px; text-align: center; }
.tip {
  background: rgba(47, 123, 246, .09); border: 1px solid rgba(47, 123, 246, .3);
  border-radius: 12px; padding: 14px 18px; font-size: 14.5px; margin: 20px 0;
}
.tip b { color: #9cc3ff; }
.crumbs { font-size: 13px; color: var(--txt3); margin-bottom: 18px; }

footer { border-top: 1px solid var(--border); padding: 26px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13px; color: var(--txt3); }

/* ---- Layout con menú lateral ---- */
.wrap-wide { max-width: 1280px; margin: 0 auto; padding: 0 22px; }
.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 34px; align-items: start; }
.side { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; padding: 22px 0 30px; scrollbar-width: thin; }
.side-group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--txt3); margin: 18px 0 6px; }
.side-group:first-of-type { margin-top: 8px; }
.side-link { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 1px 0; border-radius: 8px; font-size: 13.8px; color: var(--txt2); }
.side-link:hover { background: rgba(255, 255, 255, .05); text-decoration: none; }
.side-link.on { background: rgba(47, 123, 246, .16); color: #b9d4ff; font-weight: 600; }
.soon-link { color: var(--txt3); cursor: default; }
.soon { font-size: 10px; font-weight: 700; color: var(--txt3); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; margin-left: auto; }
.side-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--txt2); font-size: 16px; padding: 4px 10px; cursor: pointer; }
main { min-width: 0; }
main article { max-width: 860px; margin: 0; padding: 34px 0 70px; }
main .hero { padding: 48px 0 10px; }
main .grid { padding: 22px 0 60px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: none; position: static; max-height: none; }
  body.side-open .side { display: block; }
  .side-toggle { display: inline-flex; }
}

/* ---- Buscador ---- */
.search { position: relative; margin-bottom: 6px; }
.search input { width: 100%; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: var(--txt); font: inherit; font-size: 13.5px; outline: none; }
.search input:focus { border-color: rgba(79, 148, 255, .5); }
.q-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: #171f38; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 16px 44px rgba(0, 0, 0, .5); }
.q-hit { display: block; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.q-hit:last-child { border-bottom: none; }
.q-hit:hover { background: rgba(47, 123, 246, .12); text-decoration: none; }
.q-hit b { display: block; color: var(--txt); font-size: 13.5px; }
.q-hit span { font-size: 12px; color: var(--txt3); }
.q-hit mark { background: rgba(55, 214, 122, .25); color: #b8f0ce; border-radius: 3px; padding: 0 1px; }
.q-empty { padding: 10px 12px; font-size: 13px; color: var(--txt3); }

/* ---- Figuras: lightbox y foco ---- */
figure .shot { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
figure .shot img { border: none; border-radius: 0; box-shadow: none; cursor: zoom-in; }
figure.focus .shot img.base { filter: blur(2px) brightness(.62) saturate(.85); }
figure.focus .shot img.lens { position: absolute; inset: 0; width: 100%; clip-path: inset(var(--t) var(--r) var(--b) var(--l) round 10px); pointer-events: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 18, .92); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; cursor: zoom-out; padding: 3vh 2vw; }
.lightbox img { max-width: 96vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .8); }
.lb-hint { font-size: 12.5px; color: var(--txt3); }

/* ---- Actualizaciones ---- */
.upd-date { font-size: 15px !important; color: var(--txt3) !important; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.upd { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.upd-mod { flex-shrink: 0; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(47, 123, 246, .13); border: 1px solid rgba(47, 123, 246, .35); color: #9cc3ff; margin-top: 2px; }
.upd-feat { color: var(--txt); font-weight: 600; font-size: 15px; }
.upd-det { margin: 3px 0 0; font-size: 14px; color: var(--txt2); }

/* ---- Footer completo ---- */
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; padding-top: 34px; padding-bottom: 22px; }
.foot-grid a { display: block; font-size: 13.5px; color: var(--txt2); margin: 5px 0; }
.foot-h { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--txt3); margin-bottom: 8px; }
.foot-tag { font-size: 13px; color: var(--txt3); max-width: 300px; margin: 0; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 34px; font-size: 12.5px; color: var(--txt3); border-top: 1px solid var(--border); margin-top: 8px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.lightbox[hidden] { display: none; }
