/* Identidad compartida con la futura app Windows: Grafito / Jade. */
:root {
  color-scheme: dark;
  --k-bg:#191d23; --k-sidebar:#14191f; --k-surface:#20262e; --k-surface-2:#252d36;
  --k-input:#191f27; --k-border:#36414c; --k-line:#2c3540;
  --k-text:#e2e9f0; --k-muted:#a8b4c3; --k-subtle:#8899ab;
  --k-jade:#46b89c; --k-jade-hover:#66c9ae; --k-danger:#f1a1aa;
  --k-header-h:82px; --k-sidebar-w:232px;
  --gk-orange:var(--k-jade); --orange:var(--k-jade); --orange-2:var(--k-jade-hover);
  --dark:var(--k-bg); --dark-2:var(--k-surface); --dark-3:var(--k-surface-2);
  --line:var(--k-line); --line-2:var(--k-border); --text:var(--k-text);
  --muted:var(--k-muted); --muted-2:var(--k-subtle);
}
*,*::before,*::after {box-sizing:border-box;}
html {background:var(--k-bg); -webkit-text-size-adjust:100%;}
body {margin:0; background:var(--k-bg); color:var(--k-text); font-family:'Segoe UI',system-ui,-apple-system,sans-serif; font-size:14px; line-height:1.55;}
a {color:#72ceb4; text-underline-offset:3px;}
a:hover {color:#9ce1ce;}
button,input,select,textarea {font:inherit;}
button,a,input,select,textarea,summary {-webkit-tap-highlight-color:transparent;}
button {cursor:pointer;}
button:disabled {opacity:.55; cursor:wait;}
:focus-visible {outline:2px solid var(--k-jade); outline-offset:4px;}
[hidden] {display:none!important;}
img,svg {max-width:100%;}
code,pre {font-family:Consolas,'Cascadia Code',monospace; color:#a2d4c8;}
.k-icon {width:21px; height:21px; flex-shrink:0; display:inline-block; vertical-align:middle;}
.k-skip {position:fixed; z-index:2000; top:-80px; left:12px; background:var(--k-jade); color:#10221b; padding:12px; border-radius:6px;}
.k-skip:focus {top:10px;}
.k-topbar {height:var(--k-header-h); background:#161c23; border-bottom:1px solid var(--k-border); display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 30px; position:sticky; top:0; z-index:100;}
.k-brand {display:inline-flex; align-items:center; gap:17px; text-decoration:none; color:var(--k-text); flex-shrink:0;}
.k-brand:hover {color:var(--k-text);}
.k-brand img {object-fit:contain;}
.k-brand strong {display:block; font-size:18px; line-height:1.3; font-weight:750; letter-spacing:.8px;}
.k-brand small {display:block; color:var(--k-muted); font-size:12px; margin-top:3px;}
.k-topbar-right {display:flex; align-items:center; gap:24px; min-width:0;}
.k-topbar form {margin:0;}
.k-account {display:flex; align-items:center; gap:10px; font-size:13px; color:#c9d4df; min-width:0;}
.k-account>span:last-child {max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.k-avatar {width:32px; height:32px; display:grid; place-items:center; border:1px solid #40505f; border-radius:50%; color:#cbd8e6; background:#293440; font-size:13px; font-weight:600;}
.k-logout {display:flex; align-items:center; gap:8px; border:0; background:transparent; color:var(--k-muted); font-size:12px; padding:8px; border-radius:6px;}
.k-logout:hover {background:var(--k-surface-2); color:var(--k-text);}
.app-main,.software-layout {min-height:calc(100vh - var(--k-header-h));}
.software-sidebar {position:fixed; inset:var(--k-header-h) auto 0 0; width:var(--k-sidebar-w); background:var(--k-sidebar); border-right:1px solid var(--k-line); display:flex; flex-direction:column; z-index:90; overflow-y:auto;}
.sidebar-header {padding:31px 25px 16px;}
.sidebar-header>span,.k-nav-label {font-size:10px; font-weight:600; letter-spacing:1.6px; color:#8a9aaa;}
.sidebar-nav {flex:1; padding:0 13px;}
.sidebar-nav ul {list-style:none; padding:0; margin:0;}
.sidebar-nav li {margin:3px 0;}
.sidebar-nav a {display:flex; align-items:center; gap:13px; min-height:46px; padding:10px 15px; border-radius:7px; text-decoration:none; color:#b7c4d3; border:1px solid transparent; font-size:13px;}
.sidebar-nav a:hover {background:#202932; color:var(--k-text);}
.sidebar-nav a.active {background:#223e35; border-color:#315b4d; color:#8bddc4; font-weight:600;}
.sidebar-nav .k-icon {width:19px; height:19px;}
.k-nav-label {margin:30px 12px 12px;}
.sidebar-footer {border-top:1px solid var(--k-line); padding:21px 25px;}
.k-sidebar-badge {display:flex; align-items:center; gap:8px; color:#b5c4d0; font-size:12px;}
.k-sidebar-badge .k-icon {width:16px; height:16px; color:var(--k-jade);}
.sidebar-footer small {display:block; font-size:10px; color:var(--k-subtle); margin-top:6px;}
.software-main {margin-left:var(--k-sidebar-w); padding:36px 38px 28px; min-width:0;}
.remoto {max-width:1480px; margin:0 auto;}
.area-sidebar-toggle,.area-sidebar-backdrop {display:none;}
.page-header {display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:28px; flex-wrap:wrap;}
.page-header h1 {font-size:29px; line-height:1.25; letter-spacing:-.65px; font-weight:650; margin:0 0 8px; color:#e9eff5;}
.page-header h1 span {color:inherit;}
.rm-eyebrow {font-size:10px; text-transform:uppercase; color:#92a5b7; letter-spacing:1.7px; margin:0 0 10px; font-weight:600;}
.page-subtitle {color:var(--k-muted); font-size:13px; margin:0;}
.page-header-actions,.rm-actions {display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.btn-volver,.btn-nuevo {min-height:37px; display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:8px 14px; border-radius:6px; text-decoration:none; font-size:12px; font-weight:600; transition:background .12s,border-color .12s; line-height:1.4;}
.btn-volver {background:transparent; border:1px solid #465461; color:#c5d1de;}
.btn-volver:hover {background:#28343e; border-color:#6a897e; color:#e2eee9;}
.btn-nuevo {background:var(--k-jade); border:1px solid var(--k-jade); color:#10251d;}
.btn-nuevo:hover {background:var(--k-jade-hover); border-color:var(--k-jade-hover); color:#0c2118;}
.rm-stats {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; margin-bottom:24px;}
.rm-stats a {display:flex; justify-content:space-between; align-items:center; gap:14px; padding:20px 23px; background:var(--k-surface); border:1px solid var(--k-border); border-radius:9px; color:var(--k-text); text-decoration:none;}
.rm-stats a:hover {border-color:#587467;}
.rm-stats span {font-size:12px; color:var(--k-muted);}
.rm-stats strong {font-size:28px; font-weight:600; line-height:1;}
.rm-filters {display:flex; align-items:end; flex-wrap:wrap; gap:13px; margin-bottom:24px; background:var(--k-surface); border:1px solid var(--k-border); padding:20px; border-radius:9px;}
.rm-filters>div {min-width:135px;}
.rm-filters .rm-search {flex:1; min-width:200px;}
.remoto label,.k-login-card label {display:block; font-size:12px; color:#bdcad8; font-weight:500; margin-bottom:8px;}
.rm-filters input,.rm-filters select,.rm-form input,.rm-form select,.rm-form textarea,.rm-config-text {width:100%; min-height:41px; border:1px solid #42505f; border-radius:6px; background:var(--k-input); color:var(--k-text); padding:9px 12px; font:inherit; font-size:13px; color-scheme:dark;}
input::placeholder,textarea::placeholder {color:#8999aa; opacity:1;}
.rm-filters input:focus,.rm-filters select:focus,.rm-form input:focus,.rm-form select:focus,.rm-form textarea:focus {border-color:var(--k-jade); outline:2px solid #46b89c36; outline-offset:1px;}
.rm-filters>.btn-nuevo,.rm-filters>.btn-volver {min-height:41px;}
.rm-card {background:var(--k-surface); border:1px solid var(--k-border); border-radius:9px; margin-bottom:21px; overflow:hidden; min-width:0;}
.rm-padding {padding:23px;}
.rm-card h2 {font-size:15px; font-weight:600; color:#dfe8f1; margin:0 0 17px;}
.rm-card-heading {display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:17px;}
.rm-card-heading h2 {margin:0;}
.rm-card>.rm-card-heading:not(.rm-padding) {padding:20px 23px 0;}
.rm-card-heading>span {font-size:11px; color:var(--k-muted);}
.rm-card-heading a {color:#7dcdb6;}
.rm-table-wrap {position:relative; overflow-x:auto; max-width:100%;}
.rm-table {width:100%; border-collapse:collapse; white-space:nowrap; font-size:12px;}
.rm-table th {font-weight:600; color:#b8c6d6; background:#252e38; border-block:1px solid var(--k-border); padding:13px 21px; font-size:11px;}
.rm-table td {padding:18px 21px; border-bottom:1px solid var(--k-line); color:#c9d5e1; vertical-align:middle;}
.rm-table tr:last-child td {border-bottom:0;}
.rm-table tbody tr:hover {background:#232e37;}
.rm-table .btn-volver {min-height:30px; padding:5px 12px; border-color:#3d9d83; color:#80d4ba; font-size:11px;}
.rm-table small,.rm-assets small {display:block; font-size:10px; color:#92a6b9; margin-top:5px;}
.rm-name {color:#e0e9f2; text-decoration:none; font-weight:600;}
.rm-name:hover {color:#8fddc5;}
.rm-table code {font-size:11px; color:#abc6c0;}
.rm-status {display:inline-flex; gap:6px; align-items:center; font-size:10px; font-weight:500; color:#b0bdcb; padding:4px 9px; border:1px solid #3a4856; border-radius:20px; background:#29323d; white-space:nowrap;}
.rm-status.online {background:#233b32; color:#95d4b9; border-color:#345a49;}
.rm-dot {display:inline-block; width:6px; height:6px; border-radius:50%; background:#98a6b5; vertical-align:middle; flex-shrink:0;}
.rm-dot.online {background:#67c39b;}
.rm-muted {color:var(--k-muted);}
.rm-footnote {color:#98a8b9; font-size:11px; line-height:1.8; margin:17px 0;}
.rm-empty {padding:38px 20px; text-align:center; white-space:normal; max-width:550px; margin:auto;}
.rm-empty h3 {font-size:17px; margin:12px 0; color:var(--k-text);}
.rm-empty p {color:var(--k-muted); font-size:13px; line-height:1.8;}
.rm-empty-icon {color:var(--k-jade); font-size:30px;}
.rm-pagination {display:flex; justify-content:center; gap:20px; padding:17px; font-size:12px; border-top:1px solid var(--k-line); color:var(--k-muted);}
.rm-detail-grid {display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:21px;}
.rm-detail-grid>*,.rm-detail-grid aside {min-width:0;}
.rm-data {display:grid; grid-template-columns:160px minmax(0,1fr); gap:12px 16px; margin:0; font-size:12px;}
.rm-data dt {color:var(--k-muted); font-weight:400;}
.rm-data dd {color:#d2deea; overflow-wrap:anywhere; margin:0;}
.rm-form p {margin:0 0 18px;}
.rm-form .helptext {color:var(--k-muted); display:block; font-size:11px; margin-top:7px; line-height:1.7;}
.errorlist {color:var(--k-danger); font-size:12px; padding-left:18px;}
.rm-label {font-size:10px; color:#8ed1b7; background:#263b32; padding:4px 8px; border:1px solid #365646; border-radius:4px;}
.rm-success {color:#96cfb4; font-size:12px;}
.rm-text-button {color:#85d3ba; border:0; background:transparent; text-decoration:underline; font-size:11px; padding:3px 5px;}
.rm-secret {display:flex; justify-content:space-between; align-items:center; gap:12px; padding:15px; margin-top:15px; background:#171e26; border:1px solid #446758; border-radius:6px;}
.rm-secret code {font-size:15px; color:#c5e5d8; overflow-wrap:anywhere; user-select:all;}
.rm-password-form {border-top:1px solid var(--k-border); margin-top:20px; padding-top:18px;}
.rm-password-form summary,.rm-events summary {color:#bfcfdc; cursor:pointer; font-size:12px; margin-bottom:15px;}
.rm-password-form:has(.errorlist) {border-color:#bb7381;}
.rm-audit-list {padding:0; margin:0; list-style:none;}
.rm-audit-list li {padding:11px 0; border-bottom:1px solid var(--k-line); font-size:12px;}
.rm-audit-list li:last-child {border:0;}
.rm-audit-list span {display:block; color:var(--k-muted); font-size:10px; margin-top:5px;}
.rm-qr {display:block; max-width:100%; height:auto; width:228px; margin:0 auto 17px; border-radius:5px;}
.rm-config-text {font-family:Consolas,monospace; font-size:11px; resize:vertical; margin-bottom:16px; overflow-wrap:anywhere;}
.rm-assets {padding:0; margin:0; list-style:none;}
.rm-assets li {display:flex; justify-content:space-between; align-items:center; gap:15px; padding:17px 0; border-bottom:1px solid var(--k-line); font-size:12px;}
.rm-assets li:last-child {border:0;}
.rm-break {word-break:break-all;}
.rm-events {margin-top:25px; font-size:12px;}
.rm-feedback {position:fixed; bottom:24px; right:24px; max-width:min(420px,90vw); padding:15px 20px; border:1px solid #4a7561; border-radius:8px; background:#233c31; color:#d8ece2; font-size:12px; z-index:1000; box-shadow:0 8px 30px #0004;}
.alert {background:#243b32; border:1px solid #3c6753; color:#c4e2d2; font-size:13px; border-radius:7px;}
.alert-error,.alert-danger {background:#3b2831; border-color:#764552; color:#f1bdc5;}
/* Acceso al panel. */
.k-login-page {min-height:100vh; display:grid; place-items:center; padding:45px 20px; background:#171c23;}
.k-login-wrap {width:100%; max-width:430px; text-align:center;}
.k-login-wrap>.k-brand {margin-bottom:35px; text-align:left; gap:18px;}
.k-login-wrap .k-brand strong {font-size:22px;}
.k-login-card {padding:30px; border:1px solid var(--k-border); border-radius:12px; background:#202730; text-align:left;}
.k-login-icon {display:grid; place-items:center; width:40px; height:40px; color:#76ccb0; background:#263e34; border:1px solid #3b5f4c; border-radius:9px; margin-bottom:20px;}
.k-login-card h1 {font-size:23px; font-weight:600; margin:0 0 9px;}
.k-login-card>p {font-size:12px; color:var(--k-muted); margin:0 0 26px;}
.k-login-card .btn-nuevo {width:100%; font-size:13px; justify-content:space-between; padding:12px 15px; margin-top:5px;}
.k-login-back {display:inline-block; font-size:12px; margin-top:24px; color:#b3c7d5; text-decoration:none;}
.k-login-footer {font-size:10px; color:#94a4b6; margin-top:28px;}
/* Descargas: la misma identidad, conservando el blanco legible del QR. */
.k-public {font-family:'Segoe UI',system-ui,sans-serif;}
.k-public .pu-nav {background:#161c23; border-color:var(--k-border);}
.k-public .pu-nav__inner {max-width:1160px; height:82px;}
.k-public-nav {display:flex; align-items:center;}
.k-public .pu-section {padding-block:55px;}
.k-public .pu-wrap {max-width:1100px;}
.k-public .pu-eyebrow,.k-public .pu-label,.k-public .rd-platform-icon {color:#78cbb1;}
.k-public .pu-btn--orange {background:var(--k-jade); border-color:var(--k-jade); color:#11281f; box-shadow:none;}
.k-public .pu-btn--orange:hover {background:var(--k-jade-hover); border-color:var(--k-jade-hover);}
.k-public .rd-hero {background:#191f27; padding:65px 0; border-bottom:1px solid var(--k-border);}
.k-public .rd-hero h1 {font-size:clamp(32px,5vw,49px); font-weight:650; letter-spacing:-1.4px;}
.k-public .rd-hero h1 span {color:#81cdb5;}
.k-public .rd-card,.k-public .rd-android {background:#202730; border-color:#3a4653;}
.k-public .rd-card.is-recommended {border-color:#48ac8c; box-shadow:0 0 0 1px #48ac8c;}
.k-public .rd-recommended {background:#254236; color:#a7dfc8;}
.k-public .rd-notice {background:#283a33; border-color:#46b89c; color:#c5dacd;}
.k-public .rd-card h3,.k-public .rd-android h3 {color:#dfe8ef;}
.k-public .rd-android>a,.k-public .rd-android summary,.k-public .rd-license a {color:#81d0b5;}
.k-public .rd-steps li>span {background:#263c33; border-color:#426d57; color:#a8dfc7;}
.k-public .rd-android textarea {background:#192029; color:#d6e3ec; border-color:#495b69;}
.k-public .pu-section--alt {background:#171d24; border-color:var(--k-border);}
.k-public .pu-foot {background:#141a20; border-color:var(--k-border); padding-block:26px;}
.k-public .pu-foot__inner {display:flex; justify-content:space-between; gap:15px; color:#a9b9c8; font-size:12px;}
@media(max-width:1190px) {
  .software-main {padding:28px 25px;}
  .page-header-actions {gap:7px;}
  .rm-detail-grid {grid-template-columns:1fr;}
}
@media(max-width:991px) {
  :root {--k-header-h:74px;}
  .k-topbar {padding-inline:20px; z-index:130;}
  .software-main {margin-left:0; padding:24px 20px;}
  .software-sidebar {transform:translateX(-100%); width:255px; max-width:85vw; z-index:120;}
  .software-sidebar.sidebar-open {transform:translateX(0);}
  .area-sidebar-toggle {display:flex; align-items:center; gap:10px; width:calc(100% - 40px); margin:18px 20px 0; padding:11px 15px; background:#202b34; border:1px solid #40515e; color:#c6d6e4; border-radius:7px; font-size:12px;}
  .area-sidebar-backdrop.show {display:block; position:fixed; inset:var(--k-header-h) 0 0; z-index:110; background:#0009;}
  .sidebar-lock-scroll {overflow:hidden;}
  .k-account {gap:7px;}
}
@media(max-width:600px) {
  .k-topbar {padding-inline:15px; gap:10px;}
  .k-brand {gap:11px;}
  .k-brand img {width:48px; height:32px;}
  .k-brand strong {font-size:13px; letter-spacing:.5px;}
  .k-brand small {font-size:10px;}
  .k-topbar-right {gap:8px;}
  .k-account>span:last-child,.k-logout>span {display:none;}
  .k-avatar {width:28px; height:28px; font-size:11px;}
  .k-logout {padding:6px;}
  .software-main {padding:23px 15px;}
  .area-sidebar-toggle {width:calc(100% - 30px); margin-inline:15px;}
  .page-header {margin-bottom:21px; gap:15px;}
  .page-header h1 {font-size:25px;}
  .page-subtitle {font-size:12px;}
  .page-header-actions {width:100%; gap:8px;}
  .rm-stats {gap:8px;}
  .rm-stats a {padding:15px 12px; flex-direction:column; align-items:flex-start; gap:16px; border-radius:7px;}
  .rm-stats span {font-size:10px; line-height:1.6;}
  .rm-stats strong {font-size:24px;}
  .rm-filters {padding:16px; gap:14px;}
  .rm-filters>div {width:100%;}
  .rm-filters .rm-search {min-width:0;}
  .rm-equipment-table thead {display:none;}
  .rm-equipment-table,.rm-equipment-table tbody,.rm-equipment-table tr,.rm-equipment-table td {display:block; width:100%; white-space:normal;}
  .rm-equipment-table tr {padding:10px 0; border-bottom:1px solid var(--k-border);}
  .rm-equipment-table tr:last-child {border:0;}
  .rm-equipment-table td {padding:6px 18px; border:0;}
  .rm-equipment-table td[data-label] {display:flex; align-items:center; justify-content:space-between; gap:12px;}
  .rm-equipment-table td[data-label]::before {content:attr(data-label); color:var(--k-muted); font-size:11px; flex-shrink:0;}
  .rm-equipment-table td:last-child .btn-volver {margin-top:7px;}
  .rm-padding {padding:18px;}
  .rm-data {grid-template-columns:1fr; gap:5px;}
  .rm-data dd {margin-bottom:10px;}
  .rm-assets li {flex-direction:column; align-items:flex-start;}
  .rm-table th,.rm-table td {padding:12px 16px;}
  .rm-feedback {right:5vw; bottom:18px;}
  .k-login-card {padding:24px;}
  .k-public .pu-nav__inner {padding-inline:17px; height:74px;}
  .k-public-nav .btn-volver {padding:7px 10px; font-size:10px; min-height:32px;}
  .k-public .pu-section {padding-block:38px;}
  .k-public .rd-hero {padding:43px 0;}
  .k-public .rd-hero h1 {font-size:34px;}
  .k-public .rd-hero p:not(.pu-eyebrow) {font-size:14px;}
  .k-public .pu-foot__inner {flex-direction:column;}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {scroll-behavior:auto!important; transition:none!important;}
}
