/* ============================================================================
   AIOROS Gamma V2 · Estilos compartidos — tema "Verde Campo"
   ============================================================================ */
:root {
  --accent: #22995C;
  --accent-dark: #166B41;
  --soft: #E4F2E9;
  --page: #F3F6F2;
  --ink: #1c2620;
  --mut: #6b7a70;
  --faint: #9aa89e;
  --line: #e6eae6;
  --line2: #f0f3f0;
  --danger: #C24A3B;
  --danger-soft: #FBE9E6;
  --grad: linear-gradient(115deg, #0E3B24 0%, #1D6E43 60%, #2E8F57 100%);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: #0E3B24; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; display: flex; flex-direction: column; gap: 20px; }
.wrap-narrow { max-width: 1100px; }

/* Barra de sesión */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-badge { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.brand-label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; color: var(--mut); }

.page-title { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.6px; }
.page-sub { font-size: 13px; color: var(--mut); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; animation: fadeUp .3s ease; }
.card-title { font-weight: 800; font-size: 14.5px; }

.mini { background: #fafbfa; border: 1px solid #eef1ee; border-radius: 10px; padding: 9px 12px; }
.mini-label { font-size: 10px; color: var(--mut); }
.mini-val { font-size: 12.5px; font-weight: 800; }

.pill { font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 4px 11px; white-space: nowrap; display: inline-block; }
.pill-ok { background: var(--soft); color: var(--accent-dark); }
.pill-bad { background: var(--danger-soft); color: var(--danger); }

.btn { border: 0; border-radius: 999px; font-family: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { filter: brightness(1.1); }
.btn-primary { background: var(--accent-dark); color: #fff; font-size: 12.5px; padding: 10px 18px; }
.btn-accent { background: var(--accent); color: #fff; font-size: 13px; padding: 12px 18px; }
.btn-ghost { border: 1px solid #dde4de; background: #fff; color: #4b5a51; font-weight: 700; font-size: 12.5px; padding: 9px 16px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); filter: none; }
.btn-link { background: transparent; color: var(--accent-dark); font-size: 12px; padding: 0; }

.input { border: 1px solid #dde4de; background: #fff; border-radius: 999px; padding: 11px 18px; font-family: inherit; font-size: 13px; outline: none; color: var(--ink); }
.input:focus { border-color: var(--accent); }
.input-sq { border-radius: 10px; padding: 10px 12px; font-size: 13.5px; width: 100%; }

label.fld { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--mut); }

.kv { display: flex; flex-direction: column; gap: 2px; }
.kv-k { font-size: 11px; color: var(--mut); }
.kv-v { font-size: 13px; font-weight: 700; }

.modal-bg { position: fixed; inset: 0; background: rgba(14,25,18,.4); display: grid; place-items: center; z-index: 50; }
.modal { background: #fff; border-radius: 18px; padding: 26px; width: min(380px, 92vw); display: flex; flex-direction: column; gap: 14px; max-height: 90vh; overflow-y: auto; }

.loading-screen { min-height: 100vh; display: grid; place-items: center; color: var(--mut); font-size: 13px; font-weight: 700; }
.hidden { display: none !important; }

.thead { font-size: 10.5px; color: var(--mut); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
