:root { --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #f4f6fb; --accent: #0f766e; --accent-2: #0ea5e9; --soft: #ecfeff; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

.topbar { background: linear-gradient(90deg, #0f172a, #134e4a); color: #fff; padding: 12px 20px; display: flex; flex-wrap: wrap;
  gap: 10px; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: .8rem; font-weight: 800; }
.section { opacity: .75; font-weight: 500; }
.whoami { display: inline-flex; gap: 10px; align-items: center; font-size: .9rem; }
.whoami .btn { border-radius: 999px; padding: 2px 14px; }

.page { max-width: 1180px; margin: 0 auto; padding: 24px 16px 60px; }
.page-title { font-weight: 800; margin-bottom: 2px; }
.muted-small { color: var(--muted); font-size: .85rem; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.pills a { cursor: pointer; padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .92rem; }
.pills a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.card-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.table-wrap { overflow-x: auto; }
.table { margin-bottom: 0; }
.table td, .table th { vertical-align: middle; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; justify-content: space-between; margin-bottom: 12px; }
.toolbar .filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #115e59; color: #fff; }
.badge-soft { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #f1f5f9; color: #475569; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-bad { background: #fee2e2; color: #991b1b; }

.auth { min-height: calc(100vh - 54px); display: flex; align-items: center; justify-content: center; padding: 32px 16px;
  background: linear-gradient(135deg, #0f172a, #134e4a); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

.dlg { border: 0; border-radius: 16px; padding: 0; width: min(760px, 96vw); max-height: 92vh; box-shadow: 0 30px 80px rgba(15,23,42,.35); }
.dlg::backdrop { background: rgba(15,23,42,.45); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-body { padding: 16px 20px; max-height: 70vh; overflow-y: auto; }
.dlg-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); }
.sub-title { font-weight: 700; font-size: .95rem; margin: 6px 0 2px; color: var(--accent); }
.guest-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-wrap: wrap;
  gap: 8px; justify-content: space-between; align-items: center; }
.err-list { margin: 0; padding-left: 18px; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.1rem; background: #f1f5f9; padding: 8px 12px; border-radius: 8px; }
.hidden { display: none !important; }

.time-select { max-width: 6.5rem; }

/* Enlace para el huésped (Wallet-e) */
.gl-info { min-width: 220px; }
#glQr { border: 1px solid var(--bs-border-color); border-radius: 8px; background: #fff; }
