/* ══════════════════════════════════════════════════════════════
   TrazaCanna — sistema de diseño
   ══════════════════════════════════════════════════════════════ */
:root {
  --bg:        #0a1210;
  --bg-2:      #0d1815;
  --surface:   #101d19;
  --surface-2: #14251f;
  --surface-3: #1a2f28;
  --border:    #1e332c;
  --border-2:  #2a453b;

  --text:      #e6f0eb;
  --text-2:    #a8bfb5;
  --muted:     #728a80;

  --green:     #34d399;
  --green-2:   #10b981;
  --green-dim: #065f46;
  --lime:      #a3e635;
  --amber:     #fbbf24;
  --orange:    #fb923c;
  --red:       #f87171;
  --blue:      #38bdf8;
  --violet:    #c084fc;
  --pink:      #f472b6;
  --cyan:      #22d3ee;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
  --glow:      0 0 0 1px rgba(52,211,153,.25), 0 8px 32px -12px rgba(52,211,153,.35);
  --sidebar:   248px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.22rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .8em; }
small { font-size: .82em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.2rem 0; }
::selection { background: rgba(52,211,153,.3); }

/* scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: #3a5a4d; }

/* ═══════════ Layout de la app ═══════════ */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.05rem 1.1rem; border-bottom: 1px solid var(--border);
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px;
  background: linear-gradient(135deg, var(--green), var(--green-dim));
  display: grid; place-items: center; box-shadow: 0 2px 12px -2px rgba(52,211,153,.5);
}
.brand-mark svg { width: 19px; height: 19px; fill: #05231a; }
.brand-txt { font-weight: 700; font-size: 1.06rem; letter-spacing: -.03em; }
.brand-txt em { font-style: normal; color: var(--green); }
.brand-sub { font-size: .66rem; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }

.nav { padding: .7rem .6rem 1.5rem; flex: 1; }
.nav-group { margin-bottom: .3rem; }
.nav-label {
  font-size: .655rem; text-transform: uppercase; letter-spacing: .11em;
  color: var(--muted); padding: .85rem .55rem .35rem; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: .62rem;
  padding: .47rem .6rem; margin-bottom: 1px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: .875rem; font-weight: 500;
  transition: background .13s, color .13s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item.on { background: var(--surface-3); color: #fff; box-shadow: inset 2px 0 0 var(--green); }
.nav-item svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: .85; }
.nav-item.on svg { color: var(--green); opacity: 1; }
.nav-item .pill {
  margin-left: auto; background: var(--surface-3); color: var(--text-2);
  font-size: .68rem; padding: .05rem .38rem; border-radius: 20px; font-weight: 600;
}

.sidebar-foot { padding: .7rem; border-top: 1px solid var(--border); }
.userbox {
  display: flex; align-items: center; gap: .6rem; padding: .5rem;
  border-radius: var(--radius-sm); background: var(--surface);
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  background: linear-gradient(135deg, var(--green-2), #0e7490);
  display: grid; place-items: center; font-weight: 700; font-size: .78rem; color: #04211a;
}
.userbox .nm { font-size: .8rem; font-weight: 600; line-height: 1.15; }
.userbox .rl { font-size: .68rem; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; display: flex; align-items: center; gap: .8rem;
  padding: 0 1.3rem; border-bottom: 1px solid var(--border);
  background: rgba(10,18,16,.82); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 30;
}
.topbar .crumb { color: var(--muted); font-size: .84rem; }
.topbar .crumb b { color: var(--text); font-weight: 600; }
.topbar .sp { flex: 1; }
.burger { display: none; background: none; border: 0; color: var(--text); padding: .3rem; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }

.content { padding: 1.4rem 1.4rem 4rem; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.15rem; }
.page-head .t { flex: 1; min-width: 220px; }
.page-head h1 { margin-bottom: .18rem; }
.page-head .sub { color: var(--muted); font-size: .875rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ═══════════ Cards ═══════════ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card + .card { margin-top: 1rem; }
.card-h {
  padding: .85rem 1.05rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .7rem;
}
.card-h h3 { margin: 0; font-size: .95rem; }
.card-h .sp { flex: 1; }
.card-h .hint { color: var(--muted); font-size: .78rem; }
.card-b { padding: 1.05rem; }
.card-b.tight { padding: 0; }
.card-f { padding: .7rem 1.05rem; border-top: 1px solid var(--border); background: var(--bg-2);
  border-radius: 0 0 var(--radius) var(--radius); font-size: .82rem; color: var(--muted); }

.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); }
.g-side { grid-template-columns: minmax(0,2fr) minmax(280px,1fr); }
@media (max-width: 900px) { .g-side { grid-template-columns: 1fr; } }

/* ═══════════ Stat tiles ═══════════ */
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .95rem 1.05rem; position: relative; overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--c, var(--green)), transparent 75%);
  opacity: .85;
}
.stat .lbl { color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.stat .val { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-top: .18rem; }
.stat .val small { font-size: .55em; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.stat .foot { color: var(--muted); font-size: .76rem; margin-top: .18rem; }
.stat .ic { position: absolute; right: .85rem; top: .9rem; opacity: .16; }
.stat .ic svg { width: 34px; height: 34px; color: var(--c, var(--green)); }

/* ═══════════ Botones ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .42rem;
  padding: .48rem .85rem; border-radius: var(--radius-sm); border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text);
  font-family: inherit; font-size: .855rem; font-weight: 600; cursor: pointer;
  transition: .14s; white-space: nowrap; text-decoration: none !important; line-height: 1.3;
}
.btn:hover { background: var(--surface-3); border-color: #365a4c; }
.btn svg { width: 15px; height: 15px; }
.btn-p { background: linear-gradient(135deg, var(--green), var(--green-2)); border-color: transparent; color: #04231b; }
.btn-p:hover { filter: brightness(1.09); background: linear-gradient(135deg, var(--green), var(--green-2)); }
.btn-d { color: var(--red); border-color: #5c2626; background: #241416; }
.btn-d:hover { background: #33191c; border-color: #7a3030; }
.btn-g { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-g:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: .3rem .58rem; font-size: .78rem; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { padding: .68rem 1.3rem; font-size: .95rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: .45rem; flex-wrap: wrap; }

/* ═══════════ Badges ═══════════ */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .13rem .48rem; border-radius: 20px; font-size: .735rem; font-weight: 600;
  background: color-mix(in srgb, var(--c, var(--green)) 15%, transparent);
  color: var(--c, var(--green));
  border: 1px solid color-mix(in srgb, var(--c, var(--green)) 30%, transparent);
  white-space: nowrap;
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-sq { border-radius: 5px; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px;
  font-size: .78rem; color: var(--text-2);
}

/* ═══════════ Tablas ═══════════ */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .865rem; }
table.tbl th {
  text-align: left; padding: .55rem .85rem; font-size: .715rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-bottom: 1px solid var(--border); background: var(--bg-2);
  position: sticky; top: 0; white-space: nowrap;
}
table.tbl td { padding: .58rem .85rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl .act { text-align: right; white-space: nowrap; }
table.tbl a.lk { font-weight: 600; }
.t-code { font-family: var(--mono); font-size: .83rem; color: var(--green); font-weight: 600; }
.t-sub { color: var(--muted); font-size: .78rem; }

.empty { text-align: center; padding: 2.6rem 1rem; color: var(--muted); }
.empty svg { width: 40px; height: 40px; opacity: .3; margin-bottom: .6rem; }
.empty h4 { color: var(--text-2); margin-bottom: .25rem; }

/* ═══════════ Formularios ═══════════ */
.form-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.form-grid.one { grid-template-columns: 1fr; }
.f { display: flex; flex-direction: column; gap: .28rem; min-width: 0; }
.f.span2 { grid-column: span 2; }
@media (max-width: 620px) { .f.span2 { grid-column: span 1; } }
.f label { font-size: .78rem; font-weight: 600; color: var(--text-2); }
.f label .req { color: var(--red); }
.f .help { font-size: .73rem; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: .48rem .62rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text);
  font-family: inherit; font-size: .875rem; transition: .13s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(52,211,153,.13); background: var(--bg);
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--green-2); }
textarea { resize: vertical; min-height: 62px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23728a80'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .5rem center; background-size: 15px; padding-right: 1.7rem; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .86rem; cursor: pointer; }
.inline-form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }

/* ═══════════ Alertas ═══════════ */
.alert {
  display: flex; gap: .65rem; padding: .7rem .9rem; border-radius: var(--radius-sm);
  font-size: .855rem; border: 1px solid; margin-bottom: 1rem; align-items: flex-start;
}
.alert svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: .12rem; }
.alert-ok  { background: #06251c; border-color: #14563f; color: #6ee7b7; }
.alert-warn{ background: #2a2008; border-color: #6b4d0d; color: #fcd34d; }
.alert-err { background: #2a1113; border-color: #6d2427; color: #fca5a5; }
.alert-info{ background: #0a2028; border-color: #14556b; color: #7dd3fc; }
.alert b { font-weight: 700; }

/* ═══════════ Modal ═══════════ */
.modal-bg {
  position: fixed; inset: 0; background: rgba(3,8,7,.72); backdrop-filter: blur(3px);
  z-index: 100; display: none; align-items: flex-start; justify-content: center;
  padding: 4vh 1rem; overflow-y: auto;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius);
  width: 100%; max-width: 620px; box-shadow: 0 24px 70px -20px #000; animation: pop .16s ease-out;
}
.modal.wide { max-width: 880px; }
@keyframes pop { from { transform: translateY(-8px) scale(.985); opacity: 0; } }
.modal-h { padding: .95rem 1.15rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .7rem; }
.modal-h h3 { margin: 0; }
.modal-h .x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0 .2rem; }
.modal-h .x:hover { color: var(--text); }
.modal-b { padding: 1.15rem; }
.modal-f { padding: .85rem 1.15rem; border-top: 1px solid var(--border); display: flex; gap: .5rem; justify-content: flex-end; background: var(--bg-2); border-radius: 0 0 var(--radius) var(--radius); }

/* ═══════════ Salas (grid visual) ═══════════ */
.rooms { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.room {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; position: relative; overflow: hidden; display: block; color: inherit;
  transition: .16s; box-shadow: var(--shadow);
}
.room:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); transform: translateY(-2px);
  text-decoration: none; box-shadow: 0 12px 32px -14px color-mix(in srgb, var(--c) 55%, transparent); }
.room::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c), transparent);
}
.room .rh { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .8rem; }
.room .ric {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 15%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.room .ric svg { width: 20px; height: 20px; color: var(--c); }
.room .rn { font-weight: 650; font-size: 1rem; letter-spacing: -.01em; }
.room .rt { font-size: .755rem; color: var(--c); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.room .rmeta { display: flex; gap: 1.1rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.room .rmeta div { min-width: 0; }
.room .rmeta .k { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.room .rmeta .v { font-weight: 650; font-size: .95rem; font-variant-numeric: tabular-nums; }
.room .qr { position: absolute; right: .8rem; bottom: .8rem; opacity: .5; }
.room .qr svg { width: 15px; height: 15px; }
.room.off { opacity: .5; }

/* ═══════════ Barra de ocupación ═══════════ */
.bar { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: .45rem; }
.bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--c, var(--green)), color-mix(in srgb, var(--c, var(--green)) 55%, #000)); }

/* ═══════════ Timeline ═══════════ */
.tl { position: relative; padding-left: 1.5rem; }
.tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border-2); }
.tl-i { position: relative; padding-bottom: 1.05rem; }
.tl-i:last-child { padding-bottom: 0; }
.tl-i::before {
  content: ''; position: absolute; left: -1.5rem; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--c, var(--green)); border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--green)) 18%, transparent);
}
.tl-i .tl-t { font-weight: 620; font-size: .89rem; }
.tl-i .tl-d { color: var(--muted); font-size: .765rem; }
.tl-i .tl-x { color: var(--text-2); font-size: .82rem; margin-top: .15rem; }

/* ═══════════ Árbol de trazabilidad ═══════════ */
.tree { font-size: .875rem; }
.tree ul { list-style: none; margin: 0; padding-left: 1.35rem; border-left: 1px dashed var(--border-2); }
.tree li { padding: .3rem 0; position: relative; }
.tree li::before { content: ''; position: absolute; left: -1.35rem; top: 1.05rem; width: .95rem; height: 1px; background: var(--border-2); }
.tree > ul { padding-left: 0; border: 0; }
.tree > ul > li::before { display: none; }
.node {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .65rem;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
}
.node.acc { border-color: var(--green-dim); background: #08251c; }
.node svg { width: 14px; height: 14px; color: var(--c, var(--green)); }
.node .nc { font-family: var(--mono); font-weight: 650; font-size: .82rem; }
.node .nx { color: var(--muted); font-size: .78rem; }

/* ═══════════ Tabs ═══════════ */
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--border); margin-bottom: 1.1rem; overflow-x: auto; }
.tab {
  padding: .55rem .9rem; font-size: .875rem; font-weight: 600; color: var(--text-2);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.on { color: var(--green); border-bottom-color: var(--green); }

/* ═══════════ Auth / landing ═══════════ */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 460px; }
@media (max-width: 940px) { .auth-wrap { grid-template-columns: 1fr; } .auth-hero { display: none !important; } }
.auth-hero {
  background: radial-gradient(1000px 600px at 20% 15%, #0e3a2c 0%, transparent 60%), linear-gradient(160deg, #08150f, #0a1a14 55%, #071310);
  padding: 3rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.auth-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(52,211,153,.09) 1px, transparent 0);
  background-size: 26px 26px; pointer-events: none;
}
.auth-hero .h { position: relative; max-width: 480px; }
.auth-hero h1 { font-size: 2.35rem; letter-spacing: -.035em; margin-bottom: .6rem; }
.auth-hero h1 em { font-style: normal; color: var(--green); }
.auth-hero p { color: var(--text-2); font-size: 1rem; }
.auth-feats { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .7rem; }
.auth-feats li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.auth-feats svg { width: 17px; height: 17px; color: var(--green); flex: 0 0 17px; margin-top: .15rem; }
.auth-panel { background: var(--bg); border-left: 1px solid var(--border); padding: 2.4rem 2.1rem; display: flex; flex-direction: column; justify-content: center; }
.auth-panel .brand { border: 0; padding: 0 0 1.5rem; }
.auth-panel form { display: grid; gap: .85rem; }
.auth-alt { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: .855rem; color: var(--muted); text-align: center; }

/* ═══════════ Landing ═══════════ */
.lp-nav { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.6rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(10,18,16,.85); backdrop-filter: blur(12px); z-index: 30; }
.lp-nav .sp { flex: 1; }
.lp-nav .brand { border: 0; padding: 0; }
.lp-hero { padding: 4.5rem 1.6rem 3.5rem; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(900px 480px at 50% -8%, #10402f 0%, transparent 65%); }
.lp-hero::after { content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(52,211,153,.07) 1px, transparent 0); background-size: 28px 28px; }
.lp-hero .in { position: relative; max-width: 780px; margin: 0 auto; }
.lp-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.35rem); letter-spacing: -.04em; margin-bottom: .7rem; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--green), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero p.lead { font-size: 1.1rem; color: var(--text-2); max-width: 620px; margin: 0 auto 1.7rem; }
.lp-sec { max-width: 1140px; margin: 0 auto; padding: 3.2rem 1.6rem; }
.lp-sec h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); letter-spacing: -.03em; text-align: center; }
.lp-sec .lead { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 2.2rem; }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.feat .fi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: .8rem;
  background: color-mix(in srgb, var(--c, var(--green)) 14%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--c, var(--green)) 26%, transparent); }
.feat .fi svg { width: 21px; height: 21px; color: var(--c, var(--green)); }
.feat h3 { font-size: .98rem; margin-bottom: .3rem; }
.feat p { color: var(--text-2); font-size: .875rem; margin: 0; }
.lp-foot { border-top: 1px solid var(--border); padding: 2rem 1.6rem; text-align: center; color: var(--muted); font-size: .84rem; }
.tag { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 20px;
  background: color-mix(in srgb, var(--green) 12%, transparent); border: 1px solid color-mix(in srgb, var(--green) 28%, transparent);
  color: var(--green); font-size: .78rem; font-weight: 600; margin-bottom: 1.1rem; }

/* ═══════════ Print / QR ═══════════ */
.qr-card { text-align: center; padding: 1.2rem; background: #fff; border-radius: var(--radius); color: #111; }
.qr-card img { width: 100%; max-width: 230px; height: auto; }
.qr-card .qc { font-family: var(--mono); font-weight: 700; margin-top: .5rem; font-size: 1rem; }
.qr-card .qn { color: #555; font-size: .85rem; }

/* ═══════════ Utilidades ═══════════ */
.muted { color: var(--muted); }
.dim { color: var(--text-2); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mt1 { margin-top: .55rem; } .mt2 { margin-top: 1.05rem; } .mt3 { margin-top: 1.7rem; }
.mb0 { margin-bottom: 0; } .mb1 { margin-bottom: .55rem; } .mb2 { margin-bottom: 1.05rem; }
.flex { display: flex; gap: .6rem; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.sp { flex: 1; }
.hide { display: none !important; }
.fs-sm { font-size: .82rem; }
.fw6 { font-weight: 600; }
.tabnum { font-variant-numeric: tabular-nums; }
.scroll-y { max-height: 420px; overflow-y: auto; }

@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 60px #000; }
  .sidebar.open { transform: none; }
  .burger { display: block; }
  .content { padding: 1rem .9rem 3rem; }
  .sb-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 39; display: none; }
  .sb-scrim.on { display: block; }
}
@media print {
  .sidebar, .topbar, .page-actions, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border-color: #ccc; box-shadow: none; }
}
