:root {
  --ink: #12202c;
  --ink-soft: #3d5363;
  --navy: #0b1c28;
  --navy-2: #123044;
  --teal: #0f7a75;
  --teal-2: #14958f;
  --mint: #e4f4f2;
  --sand: #f6f1ea;
  --paper: #f7f8f6;
  --white: #ffffff;
  --line: #d5e0de;
  --ok: #2a7a4d;
  --warn: #b7791f;
  --danger: #b44132;
  --crit: #8e1f2f;
  --shadow: 0 10px 30px rgba(12, 32, 44, .08);
  --radius: 16px;
  --sidebar: 268px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Manrope", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  letter-spacing: -.01em;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-2); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.app { display: flex; min-height: 100vh; }
.nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8, 20, 28, .45);
  z-index: 18;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: linear-gradient(180deg, var(--navy) 0%, #08141c 100%);
  color: #e8f0ee;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
  overflow: hidden;
  transition: width .22s ease, flex-basis .22s ease, min-width .22s ease;
}
.sidebar-inner {
  width: var(--sidebar);
  height: 100%;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.app.sidebar-hidden .sidebar {
  width: 0;
  flex-basis: 0;
  min-width: 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 10px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 18px;
}
.brand-text { flex: 1; min-width: 0; }
.side-hide {
  margin-left: auto;
  width: 32px; height: 32px;
  border: 0; border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #c9d9d6;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}
.side-hide:hover { background: rgba(255,255,255,.12); color: #fff; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #18b5ad, #0b6b67);
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(20,149,143,.35);
}
.brand strong { display: block; font-family: var(--font); font-size: 1.25rem; font-weight: 800; }
.brand span { display: block; font-size: .72rem; color: #9db3b0; letter-spacing: .04em; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow: auto; }
.nav a {
  color: #c9d9d6; padding: 10px 12px; border-radius: 10px;
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem;
}
.nav a:hover, .nav a.active { background: rgba(20,149,143,.18); color: #fff; }
.nav .section-label {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: #7f9793; padding: 14px 12px 6px; font-weight: 700;
}
.side-user {
  margin-top: auto; padding: 12px;
  background: rgba(255,255,255,.04); border-radius: 14px;
  display: flex; gap: 10px; align-items: center;
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: #14958f; color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: .8rem; flex-shrink: 0;
}
.side-user small { color: #9db3b0; display: block; }

.main { flex: 1; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; gap: 16px;
  background: rgba(247,248,246,.9);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; font-size: 1.35rem; font-family: var(--font); font-weight: 800; }
.topbar p { margin: 2px 0 0; color: var(--ink-soft); font-size: .9rem; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.notif-wrap { position: relative; }
.notif-btn { position: relative; min-width: 42px; }
.notif-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notif-panel {
  position: absolute;
  right: 0;
  top: 46px;
  width: min(340px, 90vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
  z-index: 30;
  max-height: 70vh;
  overflow: auto;
}
.notif-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 10px;
  color: var(--ink);
}
.notif-item span { font-weight: 800; font-size: .88rem; }
.notif-item small { color: var(--ink-soft); font-size: .78rem; line-height: 1.35; }
.notif-item:hover { background: #f7fbfa; }
.notif-item.leida { opacity: .55; }
.push-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
}
.push-card {
  background: #12202c;
  color: #eef6f4;
  border-radius: 16px;
  padding: 14px 16px 14px 18px;
  border-left: 4px solid #18b5ad;
  animation: push-in .32s ease;
  cursor: pointer;
}
.push-card small {
  display: block;
  margin: 0 0 6px;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7ee0d8;
  font-weight: 800;
}
.push-card h3 { margin: 0 0 4px; font-size: .95rem; }
.push-card p { margin: 0; font-size: .82rem; color: #c9d9d6; line-height: 1.35; }
@keyframes push-in {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.menu-btn { display: inline-flex; min-width: 42px; }
.content { padding: 8px 28px 40px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 11px; padding: 10px 16px; font-weight: 700;
  cursor: pointer; text-decoration: none; font-size: .9rem;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warn { background: #f3e3c6; color: #7a4e10; }
.btn-sm { padding: 7px 11px; font-size: .8rem; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-kpi { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--shadow);
}
.kpi .label { color: var(--ink-soft); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kpi .value {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 2px;
  line-height: 1.1;
}
.kpi .hint { color: var(--ink-soft); font-size: .82rem; }
.kpi.alert { border-color: #f0c9c2; background: #fff8f6; }
.kpi.warn { border-color: #ead8a8; background: #fffdf6; }
.kpi.ok { border-color: #cfe8d8; background: #f7fcf8; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-h { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-h h2, .card-h h3 { margin: 0; font-size: 1.05rem; }
.card-b { padding: 18px; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); background: #f8fbfa; }
tr:hover td { background: #f7fbfa; }
.row-link { color: inherit; font-weight: 700; }
.col-date, .col-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-status { text-align: center; white-space: nowrap; }
.col-actions { text-align: right; white-space: nowrap; }
.col-status .badge, .col-date .badge { justify-content: center; }
.table-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  padding: 4px 10px; font-size: .75rem; font-weight: 800;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-operativo { background: #e4f5ea; color: var(--ok); }
.badge-en_mantenimiento { background: #fff3d6; color: var(--warn); }
.badge-fuera_de_servicio { background: #fde7e3; color: var(--danger); }
.badge-baja { background: #ececec; color: #5c5c5c; }
.badge-preventivo { background: var(--mint); color: var(--teal); }
.badge-correctivo { background: #fde7e3; color: var(--danger); }
.badge-calibracion { background: #e7eefc; color: #2c4d9b; }
.badge-programado, .badge-abierta { background: #fff3d6; color: var(--warn); }
.badge-en_proceso, .badge-en_atencion { background: #e7eefc; color: #2c4d9b; }
.badge-completado, .badge-cerrada { background: #e4f5ea; color: var(--ok); }
.badge-cancelado { background: #ececec; color: #5c5c5c; }
.badge-baja, .badge-media { background: #eef2f1; color: #445; }
.badge-alta { background: #fde7e3; color: var(--danger); }
.badge-critica { background: #8e1f2f; color: #fff; }
.badge-vencido { background: #fde7e3; color: var(--danger); }
.badge-hoy { background: #fde7e3; color: var(--crit); }
.badge-proximo { background: #fff3d6; color: var(--warn); }
.badge-accion { background: #eef2f1; color: #3d5363; }

.dist-list { display: flex; flex-direction: column; gap: 18px; }
.dist-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.dist-top strong { font-size: .95rem; }
.dist-top span { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
.dist-bar { height: 10px; background: #e8efee; border-radius: 999px; overflow: hidden; }
.dist-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #0f7a75, #18b5ad); border-radius: 999px; min-width: 0; }
.dist-sub { margin-top: 6px; }

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filters input,
.filters select,
.filters .btn {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
}
.filters input, .filters select, .form-row input, .form-row select, .form-row textarea {
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px;
  background: #fff; color: var(--ink); width: 100%;
}
.filters input, .filters select {
  width: auto;
  min-width: 180px;
  padding-top: 0;
  padding-bottom: 0;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: .82rem; font-weight: 800; color: var(--ink-soft); }
.help { color: var(--ink-soft); font-size: .8rem; }

.flash { padding: 11px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 700; }
.flash-ok { background: #e4f5ea; color: var(--ok); }
.flash-error { background: #fde7e3; color: var(--danger); }
.flash-warn { background: #fff3d6; color: #7a4e10; }

.equipo-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}
.equipo-aside { display: flex; flex-direction: column; gap: 12px; }
.equipo-hero > .card { height: auto; }
.equipo-photo {
  width: 240px;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.equipo-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px;
  background: #f3f4f3;
  display: block;
}
.equipo-status { display: flex; }
.badge-lg {
  width: 100%;
  justify-content: center;
  font-size: .92rem;
  padding: 10px 14px;
}
.equipo-qr-mini {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 12px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.qr-box-sm { padding: 8px; background: var(--sand); border-radius: 12px; }
.qr-box-sm img, .qr-box-sm canvas { width: 128px !important; height: 128px !important; }
.ficha-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 18px 0;
  flex-wrap: wrap;
}
.ficha-title { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.ficha-brand { margin: 4px 0 0; color: var(--ink-soft); font-weight: 600; }
.ficha-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; }
.ficha-more { position: relative; top: auto; right: auto; }
.dots-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.dots-btn:hover, .ficha-more.open .dots-btn { background: #f7fbfa; }
.ficha-desc { margin: 16px 0 0; color: var(--ink-soft); line-height: 1.5; }
.ficha-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.link-danger {
  background: none;
  border: 0;
  padding: 0;
  color: var(--danger);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
}
.link-danger:hover { text-decoration: underline; }
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fbfdfc;
}
.meta-item {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.meta-item:nth-child(3n) { border-right: none; }
.meta-item:nth-last-child(-n+3) { border-bottom: none; }
.meta-item span {
  display: block;
  font-size: .72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 800;
  margin-bottom: 4px;
}
.meta-item strong { font-size: .95rem; font-weight: 700; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 10px; }
.meta dt { font-size: .75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.meta dd { margin: 0 0 8px; font-weight: 700; }

.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--teal); }
.tabs a.active {
  background: transparent;
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 28, 40, .45);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
.modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px 20px;
  box-shadow: 0 24px 60px rgba(12, 32, 44, .28);
}
.modal-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.modal-h h2 { margin: 0; font-size: 1.15rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: .88rem;
  font-weight: 700;
}
.check-row input { margin-top: 3px; }

.equipo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, 270px);
  justify-content: center;
  gap: 16px;
}
.eq-card {
  position: relative;
  width: 270px;
  height: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.eq-media {
  position: relative;
  width: 270px;
  height: 168px;
  flex: 0 0 168px;
  background: #f3f4f3;
  cursor: pointer;
}
.eq-media img {
  width: 270px;
  height: 168px;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: #f3f4f3;
  display: block;
}
.eq-menu { position: absolute; top: 8px; right: 8px; z-index: 3; }
.eq-menu-btn {
  width: 36px; height: 36px;
  border: 0; border-radius: 10px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 10px rgba(12, 32, 44, .12);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}
.eq-menu-btn:hover, .eq-menu.open .eq-menu-btn { background: #fff; }
.eq-menu-list {
  position: absolute;
  right: 0;
  top: 42px;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.eq-menu-list a,
.eq-menu-list button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 700;
  font-size: .88rem;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.eq-menu-list a:hover,
.eq-menu-list button:hover { background: #f7fbfa; }
.eq-menu-list a.danger,
.eq-menu-list button.danger { color: var(--danger); }
.eq-card .body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.eq-card h3 {
  margin: 8px 0 6px;
  font-size: 1.02rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
  cursor: pointer;
}
.eq-area {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eq-card .body > .btn-primary { margin-top: auto; width: 100%; }
.eq-badge {
  align-self: flex-start;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
}
.eq-badge.badge-operativo { background: #1f7a45; color: #fff; }
.eq-badge.badge-en_mantenimiento { background: #e3a008; color: #1c1400; }
.eq-badge.badge-fuera_de_servicio { background: #b44132; color: #fff; }
.eq-badge.badge-baja { background: #4d4d4d; color: #fff; }
.eq-expand {
  position: absolute;
  inset: 0;
  background: #fff;
  padding: 14px;
  display: none;
  flex-direction: column;
  z-index: 4;
  overflow: auto;
}
.eq-card.is-open .eq-expand { display: flex; }
.eq-expand h4 { margin: 0 0 8px; font-size: 1rem; line-height: 1.3; }
.eq-expand dl { margin: 0 0 12px; display: grid; gap: 8px; }
.eq-expand dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 800; }
.eq-expand dd { margin: 0; font-weight: 700; font-size: .9rem; }
.eq-expand .eq-expand-actions { margin-top: auto; display: flex; gap: 8px; }
.muted { color: var(--ink-soft); font-size: .85rem; }
.pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.pager a, .pager span { padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }

.login-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  background: #e6eceb;
}
.login-art {
  position: relative;
  overflow: hidden;
  color: #eef6f4;
  padding: 48px 52px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(800px 420px at 12% 8%, rgba(24,181,173,.28), transparent 55%),
    linear-gradient(165deg, #0b1c28 0%, #123a3a 52%, #0b1c28 100%);
}
.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='180' viewBox='0 0 720 180' fill='none'%3E%3Cpath d='M0 90 C60 90 70 40 120 90 S190 140 240 90 310 40 360 90 430 140 480 90 550 40 600 90 670 140 720 90' stroke='%2318b5ad' stroke-width='1.6' /%3E%3Cpath d='M0 110 C80 110 90 70 150 110 S240 150 300 110 390 70 450 110 540 150 600 110 680 70 720 110' stroke='%2318b5ad' stroke-width='1' opacity='.45' /%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: center 62%;
  background-size: 720px 180px;
}
.login-art-copy, .login-foot { position: relative; z-index: 1; }
.login-art h1 {
  font-family: var(--font);
  font-size: 2.7rem;
  margin: 14px 0 8px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.login-art p { max-width: 460px; color: #c9d9d6; line-height: 1.5; }
.login-points { list-style: none; padding: 0; margin: 24px 0 0; }
.login-points li { margin: 10px 0; padding-left: 18px; position: relative; }
.login-points li::before { content: ""; width: 8px; height: 8px; background: #18b5ad; border-radius: 50%; position: absolute; left: 0; top: 8px; }
.login-foot {
  font-size: .78rem;
  color: #9db3b0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.login-foot-links { display: flex; gap: 14px; }
.login-foot-links span { color: #c9d9d6; }
.login-box { display: grid; place-items: center; padding: 40px 32px; background: #e6eceb; }
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #cfd8d6;
  box-shadow: 0 22px 50px rgba(12, 32, 44, .14), 0 2px 8px rgba(12, 32, 44, .06);
}
.login-card h2 {
  margin: 0 0 6px;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -.03em;
}
.demo-users { font-size: .78rem; background: var(--mint); border-radius: 12px; padding: 10px 12px; margin-top: 14px; color: #0f4f4c; }

.qr-box { display: grid; place-items: center; padding: 16px; background: var(--sand); border-radius: 16px; }
#reader { width: min(520px, 100%); margin: 0 auto; }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-soft); }
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { font-size: .75rem; font-weight: 800; color: var(--ink-soft); text-align: center; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.cal-day {
  min-height: 108px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
.cal-day.out { background: transparent; border-color: transparent; }
.cal-day.today { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.cal-day .n { font-weight: 800; font-size: .85rem; margin-bottom: 6px; }
.cal-ev {
  display: block;
  font-size: .68rem;
  border-radius: 6px;
  padding: 3px 6px;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  font-weight: 700;
}
.loc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.loc-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.loc-item.inactiva { opacity: .72; background: #f6f6f6; }
.loc-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 4px; }
.loc-edit { display: grid; gap: 6px; margin: 8px 0; }
.loc-edit input, .loc-edit select {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
  width: 100%;
  background: #fff;
  color: var(--ink);
}
.badge-activa { background: #e4f5ea; color: var(--ok); }
.badge-inactiva { background: #ececec; color: #5c5c5c; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 12px 0 12px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; width: 9px; height: 9px; background: var(--teal); border-radius: 50%; position: absolute; left: -6px; top: 18px; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.print-only { display: none; }

@media print {
  .sidebar, .topbar, .tabs, .actions, .filters, .no-print, .ficha-actions, .modal { display: none !important; }
  .app, .main, .content { display: block; padding: 0; }
  .print-only { display: block; }
}

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .equipo-hero { grid-template-columns: 1fr; }
  .equipo-photo { width: 240px; height: 240px; min-height: 240px; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .meta-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .meta-item:nth-child(2n) { border-right: none; }
  .meta-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .meta-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    left: 0;
    width: var(--sidebar);
    flex-basis: var(--sidebar);
    transform: translateX(-110%);
    transition: transform .22s ease;
  }
  .app:not(.sidebar-hidden) .sidebar { transform: none; }
  .app.sidebar-hidden .sidebar {
    width: var(--sidebar);
    flex-basis: var(--sidebar);
    transform: translateX(-110%);
  }
  .app:not(.sidebar-hidden) .nav-backdrop { display: block; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
  .grid-4, .grid-3, .grid-2, .form-grid, .meta-grid { grid-template-columns: 1fr; }
  .meta-item, .meta-item.wide { grid-column: auto; border-right: none; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
