:root {
  --brand: #F97316; --brand-d: #EA580C; --brand-l: #FFEDD5; --brand-xl: #FFF7ED;
  --ink: #1F2430; --ink2: #475069; --mute: #7A8296; --line: #E6E8EE; --bg: #F6F4F1; --card: #fff;
  --ok: #16A34A; --ok-l: #DCFCE7; --warn: #B45309; --warn-l: #FEF3C7; --err: #DC2626; --err-l: #FEE2E2;
  --r: 14px; --shadow: 0 1px 2px rgba(20,24,40,.05), 0 6px 20px -8px rgba(20,24,40,.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 26px; letter-spacing: -.3px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
a { color: var(--brand-d); }
button { font: inherit; cursor: pointer; }
.muted { color: var(--mute); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grow { flex: 1; min-width: 0; }

/* --- barra superior --- */
.top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 3px solid var(--brand); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b { font-size: 15px; letter-spacing: .3px; display: block; line-height: 1.1; }
.brand span { font-size: 11px; color: var(--mute); letter-spacing: .6px; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink2); font-weight: 600; font-size: 14px; }
.nav a:hover { background: var(--brand-xl); } .nav a.on { background: var(--brand-l); color: var(--brand-d); }
main { max-width: 1180px; margin: 0 auto; padding: 26px 20px 90px; }

/* --- tarjetas y botones --- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; border: 1px solid #efeff3; }
.card + .card { margin-top: 18px; }
.card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.card .sub { color: var(--mute); font-size: 13.5px; margin-bottom: 16px; }
.num { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #FB923C, var(--brand-d)); color: #fff; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; transition: .12s; white-space: nowrap; }
.btn:hover { border-color: #cfd3dd; background: #fafafb; } .btn:active { transform: translateY(1px); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(249,115,22,.7); }
.btn.pri:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn.big { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink2); } .btn.ghost:hover { background: #f0f0f3; }
.btn.danger { color: var(--err); } .btn.danger:hover { background: var(--err-l); border-color: #fbc5c5; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.spin { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }

/* --- formularios --- */
.grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(12, 1fr); }
.f { display: flex; flex-direction: column; gap: 5px; grid-column: span 6; min-width: 0; }
.f.s3 { grid-column: span 3; } .f.s4 { grid-column: span 4; } .f.s8 { grid-column: span 8; } .f.s12 { grid-column: span 12; } .f.s2 { grid-column: span 2; }
.f > label, .lbl { font-size: 12.5px; font-weight: 700; color: var(--ink2); letter-spacing: .1px; }
.f .hint { font-size: 12px; color: var(--mute); }
.inp { width: 100%; border: 1px solid #d9dce5; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink); transition: .12s; }
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(249,115,22,.18); }
.inp.bad { border-color: var(--err); }
textarea.inp { resize: vertical; min-height: 86px; }
.unit { position: relative; } .unit .inp { padding-right: 52px; } .unit i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--mute); font-style: normal; font-size: 13px; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.chip:hover { border-color: #f9b988; } .chip.on { border-color: var(--brand); background: var(--brand-xl); color: var(--brand-d); }
.chk { display: flex; gap: 9px; align-items: center; font-size: 14px; cursor: pointer; } .chk input { width: 17px; height: 17px; accent-color: var(--brand); }
.callout { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; background: var(--brand-xl); border: 1px solid #fed7aa; color: #7c3a0b; }
.callout.ok { background: var(--ok-l); border-color: #b7ebc7; color: #14532d; } .callout.warn { background: var(--warn-l); border-color: #fde68a; color: #78350f; } .callout.err { background: var(--err-l); border-color: #fbc5c5; color: #7f1d1d; }
.hr { height: 1px; background: var(--line); margin: 18px 0; }
.kvs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; } .kvs dt { color: var(--mute); } .kvs dd { margin: 0; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef0f4; color: var(--ink2); }
.badge.ok { background: var(--ok-l); color: #166534; } .badge.warn { background: var(--warn-l); color: #92400e; } .badge.err { background: var(--err-l); color: #991b1b; } .badge.br { background: var(--brand-l); color: var(--brand-d); }

/* --- editor con pasos --- */
.editor { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.steps { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink2); font-weight: 600; font-size: 14.5px; border: 1px solid transparent; }
.step:hover { background: #fff; } .step.on { background: #fff; border-color: #f9d3b0; box-shadow: var(--shadow); color: var(--ink); }
.step .n { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #d5d8e0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--mute); flex: none; background: #fff; }
.step.on .n { border-color: var(--brand); background: var(--brand); color: #fff; }
.step.done .n { border-color: var(--ok); background: var(--ok); color: #fff; } .step.warn .n { border-color: #f59e0b; background: var(--warn-l); color: var(--warn); }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 25; }
.savebar-in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; gap: 12px; align-items: center; }
.state { font-size: 13px; color: var(--mute); display: flex; gap: 6px; align-items: center; } .state.ok { color: var(--ok); } .state.err { color: var(--err); font-weight: 700; }

/* --- listas, tablas --- */
.proj { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid #ececf1; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: .12s; }
.proj:hover { border-color: #f9b988; transform: translateY(-1px); }
.proj h3 { font-size: 16px; } .proj .meta { color: var(--mute); font-size: 13px; margin-top: 3px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th { text-align: left; font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .5px; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 6px 6px; border-bottom: 1px solid #f0f1f5; vertical-align: middle; } .tbl td .inp { padding: 7px 9px; border-radius: 8px; } .tbl .r { text-align: right; } .tbl tfoot td { font-weight: 700; border-bottom: none; }
.tbl tr.off td { opacity: .45; }
.empty { text-align: center; color: var(--mute); padding: 40px 10px; }

/* --- carga de archivos --- */
.drop { border: 2px dashed #e2c3a6; border-radius: 14px; background: var(--brand-xl); padding: 22px; text-align: center; color: #8a4a1a; cursor: pointer; transition: .12s; }
.drop:hover, .drop.over { border-color: var(--brand); background: #ffedd9; }
.drop b { display: block; font-size: 15px; }
.file { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.file .th { width: 68px; height: 68px; border-radius: 8px; background: #f1f2f6 center/cover no-repeat; border: 1px solid var(--line); flex: none; display: grid; place-items: center; color: var(--mute); font-size: 11px; font-weight: 700; }
.plano { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.plano + .plano { margin-top: 14px; }
.plano .prev { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; background: #f1f2f6; border: 1px solid var(--line); margin-top: 12px; }
.mapbox { position: relative; height: 380px; border-radius: 12px; overflow: hidden; background: #dfe3ea; border: 1px solid var(--line); touch-action: none; cursor: grab; user-select: none; }
.mapbox:active { cursor: grabbing; } .mapbox img.t { position: absolute; width: 256px; height: 256px; pointer-events: none; -webkit-user-drag: none; }
.mapbox .pin { position: absolute; width: 26px; height: 26px; margin: -26px 0 0 -13px; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.mapbox .zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.mapbox .zoom button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #fff; background: rgba(255,255,255,.95); font-size: 18px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.mapbox .attr { position: absolute; left: 6px; bottom: 4px; font-size: 10px; background: rgba(255,255,255,.8); padding: 1px 6px; border-radius: 4px; color: #333; }
.mapbox .layers { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.mapbox .layers button { padding: 5px 10px; border-radius: 8px; border: 1px solid #fff; background: rgba(255,255,255,.92); font-size: 12px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.25); } .mapbox .layers button.on { background: var(--brand); color: #fff; }
.sugg { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; margin-top: 6px; } .sugg button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 9px 12px; border-bottom: 1px solid #f0f1f5; font-size: 13.5px; } .sugg button:hover { background: var(--brand-xl); }

/* --- validaciones --- */
.chk-list { display: flex; flex-direction: column; gap: 8px; }
.issue { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 14px; border: 1px solid transparent; }
.issue.error { background: var(--err-l); color: #7f1d1d; } .issue.warn { background: var(--warn-l); color: #78350f; } .issue.ok { background: var(--ok-l); color: #14532d; }
.issue a { margin-left: auto; font-weight: 700; white-space: nowrap; color: inherit; }

/* --- diálogos y avisos --- */
.overlay { position: fixed; inset: 0; background: rgba(20,24,40,.5); z-index: 60; display: grid; place-items: center; padding: 20px; animation: fi .12s; }
@keyframes fi { from { opacity: 0; } }
.modal { background: #fff; border-radius: 16px; width: min(720px, 100%); max-height: 92vh; overflow: auto; padding: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.modal.wide { width: min(1000px, 100%); } .modal h2 { margin-bottom: 14px; } .modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
#toasts { position: fixed; right: 18px; top: 80px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); max-width: 380px; animation: fi .15s; } .toast.err { background: #b91c1c; } .toast.ok { background: #15803d; }
.pdfframe { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; }
.bar { height: 8px; background: #eceef3; border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--brand); transition: width .2s; }

@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; gap: 14px; }
  .steps { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; gap: 6px; } .step { white-space: nowrap; padding: 8px 12px; background: #fff; border: 1px solid var(--line); } .step .lab { display: none; } .step.on .lab { display: inline; }
  .f, .f.s3, .f.s4, .f.s8, .f.s2 { grid-column: span 12; } .f.s3, .f.s4, .f.s2 { grid-column: span 6; }
  .nav a { padding: 7px 10px; font-size: 13px; } .brand span { display: none; } main { padding: 18px 14px 100px; } .card { padding: 16px; }
}
@media (max-width: 560px) { .top-in { gap: 8px; padding: 8px 12px; } .brand b { display: none; } .proj { grid-template-columns: 1fr; } .tbl .hm { display: none; } }
.kpis { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.kpi { flex: 1 1 140px; background: var(--brand-soft, #FFF4EB); border-radius: 12px; padding: 12px 16px; }
.kpi b { display: block; font-size: 24px; color: var(--brand-dark, #C2410C); } .kpi span { font-size: 12px; color: var(--mute, #6b7280); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; } .tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; color: var(--mute, #6b7280); padding: 6px 6px; border-bottom: 2px solid var(--line, #e5e7eb); }
.tbl td { padding: 4px 4px; border-bottom: 1px solid var(--line, #e5e7eb); vertical-align: middle; } .tbl .inp { padding: 6px 8px; } .tbl td.r, .tbl th.r { text-align: right; }
.tbl tr.off td { opacity: .45; }
.chk.f { flex-direction: row; }
input[type=checkbox]{accent-color:var(--brand,#F97316)}
.docpick { display: grid; gap: 10px; }
.docopt { display: flex; align-items: center; gap: 14px; text-align: left; background: #fff; border: 2px solid var(--line, #e5e7eb); border-radius: 14px; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.docopt:hover { border-color: #fdba74; }
.docopt.on { border-color: var(--brand, #F97316); background: #FFF7ED; }
.docopt .ic { font-size: 28px; } .docopt .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; } .docopt .tx small { color: var(--mute, #6b7280); font-size: 12.5px; line-height: 1.35; }
.docopt .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line, #d1d5db); display: grid; place-items: center; font-weight: 800; color: #fff; }
.docopt.on .tick { background: var(--brand, #F97316); border-color: var(--brand, #F97316); }
.badge.sm { font-size: 11px; }

.pasos{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 18px}
.paso{display:flex;gap:12px;align-items:flex-start;background:var(--card,#fff);border:1px solid var(--line,#e5e7eb);border-radius:14px;padding:14px 16px}
.paso .n{flex:none;width:28px;height:28px;border-radius:50%;background:#F97316;color:#fff;font-weight:700;display:grid;place-items:center}
@media(max-width:760px){.pasos{grid-template-columns:1fr}}
@media (max-width: 560px) {
  .savebar-in { padding: 8px 12px; gap: 8px; }
  .savebar-in .muted.small { display: none; }
  .savebar-in .btn { padding: 8px 12px; white-space: nowrap; max-width: 44vw; overflow: hidden; text-overflow: ellipsis; }
  .savebar-in .state { font-size: 12px; white-space: nowrap; }
}

/* ---------- Pantalla de acceso ---------- */
.lg { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); background: var(--bg); }
.lg-hero { position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; padding: 56px clamp(32px, 6vw, 96px);
  background: radial-gradient(1100px 600px at 85% -10%, #fb923c 0%, rgba(249,115,22,0) 55%), linear-gradient(155deg, #0f172a 0%, #1b2742 55%, #2a2f55 100%); }
.lg-grid { position: absolute; inset: auto -10% -22% -10%; height: 62%; opacity: .5; transform: perspective(700px) rotateX(58deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(148,163,255,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,255,.45) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: linear-gradient(to top, #000 20%, transparent); mask-image: linear-gradient(to top, #000 20%, transparent); }
.lg-sun { position: absolute; right: -90px; top: -90px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fde68a 0%, #fbbf24 30%, #f97316 62%, rgba(249,115,22,0) 70%); filter: blur(2px); opacity: .92; animation: lg-pulse 7s ease-in-out infinite; }
@keyframes lg-pulse { 50% { transform: scale(1.06); opacity: 1; } }
.lg-hero-in { position: relative; max-width: 560px; }
.lg-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 3px; font-size: 13px; opacity: .95; margin-bottom: 40px; }
.lg-brand img { width: 44px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.lg-hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -1.5px; font-weight: 800; margin-bottom: 20px; }
.lg-hero h1::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 3px; background: var(--brand); margin-top: 22px; }
.lg-sub { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: #dbe3ff; margin: 0 0 32px; max-width: 480px; }
.lg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lg-list li { display: grid; gap: 2px; padding-left: 20px; position: relative; }
.lg-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 0 4px rgba(249,115,22,.25); }
.lg-list b { font-size: 15px; } .lg-list span { font-size: 14px; color: #b9c4ea; }
.lg-side { position: relative; display: grid; place-items: center; padding: 32px 20px; background: linear-gradient(160deg, #fff7ed, #f6f4f1 65%); }
.lg-card { width: min(400px, 100%); background: #fff; border-radius: 20px; padding: 36px 32px 28px; box-shadow: 0 30px 70px -30px rgba(15,23,42,.35), 0 2px 6px rgba(15,23,42,.06); display: grid; gap: 14px; }
.lg-logo { width: 64px; height: auto; margin: 0 auto -4px; }
.lg-card h2 { font-size: 26px; text-align: center; letter-spacing: -.4px; }
.lg-hint { margin: -6px 0 6px; text-align: center; color: var(--mute); font-size: 14px; }
.lg-field { position: relative; display: block; }
.lg-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: .55; pointer-events: none; }
.lg-inp { width: 100%; height: 50px; padding: 0 46px 0 42px; font: inherit; font-size: 16px; color: var(--ink); background: #f8f9fb; border: 1.5px solid var(--line); border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.lg-inp:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(249,115,22,.16); }
.lg-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; border-radius: 10px; font-size: 16px; opacity: .6; }
.lg-eye:hover { opacity: 1; background: #eef0f4; }
.lg-btn { height: 50px; border: 0; border-radius: 12px; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .2px; background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 10px 22px -10px rgba(234,88,12,.8); transition: transform .12s, box-shadow .12s, filter .12s; }
.lg-btn:hover { filter: brightness(1.05); transform: translateY(-1px); } .lg-btn:active { transform: none; } .lg-btn:disabled { opacity: .7; cursor: default; }
.lg-err { min-height: 18px; margin: -4px 0; font-size: 13.5px; color: var(--err); text-align: center; }
.lg-foot { margin-top: 4px; text-align: center; font-size: 12px; color: var(--mute); }
.lg-ver { position: absolute; bottom: 14px; right: 18px; font-size: 11px; color: #a3a9b8; }
@media (max-width: 860px) {
  .lg { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .lg-hero { padding: 28px 24px 56px; } .lg-brand { margin-bottom: 18px; } .lg-sub { margin-bottom: 0; } .lg-list, .lg-grid { display: none; }
  .lg-sun { width: 220px; height: 220px; right: -70px; top: -70px; }
  .lg-hero h1 { font-size: 34px; margin-bottom: 12px; } .lg-hero h1::after { margin-top: 14px; width: 48px; }
  .lg-side { margin-top: -34px; border-radius: 26px 26px 0 0; padding-top: 28px; align-items: start; background: var(--bg); }
  .lg-logo { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lg-sun { animation: none; } }
@media (max-width: 560px) { .hide-sm { display: none; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 28px; letter-spacing: -.5px; line-height: 1.1; } .kpi span { color: var(--mute); font-size: 13px; }
.mbars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.mbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.mbar i { display: block; width: 100%; max-width: 38px; background: linear-gradient(180deg, #fb923c, #ea580c); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.mbar em { font-style: normal; font-size: 11px; color: var(--mute); margin-top: 4px; white-space: nowrap; } .mbar u { text-decoration: none; font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 1.2fr) 3fr 28px; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.hbar div { background: #eef0f4; border-radius: 6px; height: 10px; overflow: hidden; } .hbar div i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.act { display: grid; grid-template-columns: 112px 90px 1fr; gap: 8px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); } .act time { color: var(--mute); }
@media (max-width: 560px) { .act { grid-template-columns: 1fr; gap: 0; } }

/* estados de obra */
.est{font:inherit;font-size:12px;font-weight:600;line-height:1;padding:5px 10px;border-radius:999px;border:1px solid var(--line,#ddd);background:var(--card,#fff);color:inherit;cursor:pointer;white-space:nowrap}
.est:hover{filter:brightness(.97)}
.est.on{outline:2px solid currentColor;outline-offset:1px}
.est-preparacion{background:#f1efe9;color:#5b574d}
.est-lista{background:#e3f0fb;color:#1c5a8f}
.est-presentada{background:#fff3d6;color:#8a5a00}
.est-requerida{background:#fde4e1;color:#a3281b}
.est-aprobada{background:#e0f3e4;color:#1f6b35}
.est-cerrada{background:#ececec;color:#555}
.est-espera{background:#fde4e1;color:#a3281b;border-color:#f0b7b0}
span.est{cursor:default}
