/* CondoAdmin Pro — Design System
   Estética: Industrial refinado · Tipografía autoritaria · Micro-interacciones vivas
   Fuentes: Syne (display) + DM Sans (cuerpo) + JetBrains Mono (números)
*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─── TOKENS ────────────────────────────────────────────────────────────────── */
:root {
  /* Paleta principal: Slate profundo + Celadon vivo + Ámbar cálido */
  --ink-900: #0C1220;
  --ink-800: #1A2235;
  --ink-700: #263044;
  --ink-600: #364055;
  --ink-500: #556070;
  --ink-400: #7A8898;
  --ink-300: #A8B4C0;
  --ink-200: #D0D8E0;
  --ink-100: #EBF0F5;
  --ink-50:  #F5F8FB;

  --accent:      #00C896;  /* Celadon principal */
  --accent-dim:  #009E76;
  --accent-glow: rgba(0,200,150,.15);
  --accent-pale: rgba(0,200,150,.08);

  --amber:      #F0A020;
  --amber-pale: rgba(240,160,32,.12);
  --danger:     #E84040;
  --danger-pale:rgba(232,64,64,.10);
  --info:       #3B8FF0;
  --info-pale:  rgba(59,143,240,.10);

  /* Superficies */
  --bg:        #F4F7FA;
  --surface:   #FFFFFF;
  --surface-2: #F0F4F8;
  --surface-3: #E8EDF4;
  --border:    rgba(30,50,80,.10);
  --border-md: rgba(30,50,80,.16);

  /* Tipografía */
  --ff-display: 'Syne', sans-serif;
  --ff-body:    'DM Sans', sans-serif;
  --ff-mono:    'JetBrains Mono', monospace;

  /* Radio */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  22px;
  --r-pill:999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(10,20,40,.08), 0 1px 2px rgba(10,20,40,.06);
  --shadow-md: 0 4px 16px rgba(10,20,40,.10), 0 1px 4px rgba(10,20,40,.06);
  --shadow-lg: 0 12px 40px rgba(10,20,40,.14), 0 4px 12px rgba(10,20,40,.08);

  /* Animaciones */
  --ease-snap: cubic-bezier(.34,1.56,.64,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-in:   cubic-bezier(.4,0,1,1);
  --dur-fast: 140ms;
  --dur-mid:  280ms;
  --dur-slow: 480ms;

  /* Sidebar */
  --sidebar-w: 240px;
}

/* ─── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink-800);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── TIPOGRAFÍA ──────────────────────────────────────────────────────────── */
.display     { font-family: var(--ff-display); font-weight: 700; letter-spacing: -.02em; }
.display-lg  { font-family: var(--ff-display); font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 800; letter-spacing: -.04em; }
.label-upper { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-400); }
.mono        { font-family: var(--ff-mono); }
h1,h2,h3    { font-family: var(--ff-display); font-weight: 700; }

/* ─── LAYOUT SHELL ────────────────────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.main-area {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────────────────── */
.sidebar {
  background: var(--ink-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-brand {
  padding: 28px 22px 22px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative;
  overflow: hidden;
}
.sidebar-brand::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent) 0%, #00A880 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0,200,150,.35);
}
.brand-name {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.brand-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.38);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-section { padding: 16px 0 6px; }
.nav-section-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  padding: 0 22px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 22px;
  font-size: .875rem;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  border-left: 2.5px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  user-select: none;
}
.nav-item .nav-icon {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity var(--dur-fast);
}
.nav-item:hover {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.05);
}
.nav-item:hover .nav-icon { opacity: 1; }
.nav-item.active {
  color: #fff;
  font-weight: 500;
  background: rgba(0,200,150,.12);
  border-left-color: var(--accent);
}
.nav-item.active .nav-icon { opacity: 1; }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-family: var(--ff-mono);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,64,64,.4); }
  50%      { box-shadow: 0 0 0 5px rgba(232,64,64,0); }
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.user-card {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  transition: background var(--dur-fast);
}
.user-card:hover { background: rgba(255,255,255,.09); }
.user-avatar {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--info) 0%, #2070D0 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.user-name  { font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.9); }
.user-role  { font-size: .68rem; color: rgba(255,255,255,.38); margin-top: 1px; }
.logout-btn {
  margin-left: auto;
  background: none; border: none;
  color: rgba(255,255,255,.28);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r-sm);
  font-size: 1rem;
  transition: color var(--dur-fast);
}
.logout-btn:hover { color: var(--danger); }

/* ─── TOPBAR ──────────────────────────────────────────────────────────────── */
.topbar {
  height: 62px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-title {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-800);
}
.topbar-breadcrumb {
  font-size: .78rem;
  color: var(--ink-400);
  margin-top: 1px;
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-period {
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--ink-400);
  background: var(--surface-2);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}

/* ─── CONTENT ÁREA ─────────────────────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 28px 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ─── CARDS ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-pad     { padding: 22px 24px; }
.card-header  {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink-800);
  letter-spacing: -.01em;
}
.card-subtitle {
  font-size: .75rem;
  color: var(--ink-400);
  margin-top: 2px;
}

/* ─── STAT CARDS ─────────────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.stat-card.green::before  { background: var(--accent); }
.stat-card.amber::before  { background: var(--amber); }
.stat-card.red::before    { background: var(--danger); }
.stat-card.blue::before   { background: var(--info); }

.stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.stat-icon.green { background: rgba(0,200,150,.12); }
.stat-icon.amber { background: rgba(240,160,32,.12); }
.stat-icon.red   { background: rgba(232,64,64,.10); }
.stat-icon.blue  { background: rgba(59,143,240,.10); }

.stat-value {
  font-family: var(--ff-mono);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-400);
  margin-bottom: 10px;
}
.stat-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.delta-up   { background: rgba(0,200,150,.1);  color: var(--accent-dim); }
.delta-down { background: rgba(232,64,64,.1); color: var(--danger); }
.delta-neu  { background: var(--surface-2); color: var(--ink-400); }

/* ─── TABLAS ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
thead th {
  background: var(--surface-2);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-400);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-700);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr {
  transition: background var(--dur-fast);
}
tbody tr:hover td { background: var(--surface-2); }
.td-mono { font-family: var(--ff-mono); font-size: .82rem; }
.td-bold { font-weight: 600; color: var(--ink-900); }

/* ─── PILLS / BADGES ─────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pill-green  { background: rgba(0,200,150,.1);  color: #007A58; }
.pill-green::before  { background: var(--accent); }
.pill-amber  { background: rgba(240,160,32,.12); color: #9A6000; }
.pill-amber::before  { background: var(--amber); }
.pill-red    { background: rgba(232,64,64,.10);  color: #B02020; }
.pill-red::before    { background: var(--danger); }
.pill-blue   { background: rgba(59,143,240,.10); color: #1560C0; }
.pill-blue::before   { background: var(--info); }
.pill-gray   { background: var(--surface-2); color: var(--ink-500); }
.pill-gray::before   { background: var(--ink-300); }

/* ─── BOTONES ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-family: var(--ff-body);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,200,150,.30);
}
.btn-primary:hover {
  background: var(--accent-dim);
  box-shadow: 0 4px 14px rgba(0,200,150,.40);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink-600);
  border: 1px solid var(--border-md);
}
.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--ink-300);
  color: var(--ink-800);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-500);
  border: none;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink-800); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #C02020; }

.btn-amber {
  background: var(--amber);
  color: #fff;
}
.btn-amber:hover { background: #C88010; }

.btn-sm { padding: 6px 13px; font-size: .78rem; }
.btn-lg { padding: 13px 28px; font-size: .95rem; }
.btn-icon { padding: 8px; border-radius: var(--r-md); }

.btn[disabled], .btn.loading {
  opacity: .5; pointer-events: none;
}

/* ─── FORMULARIOS ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-500);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-md);
  font-family: var(--ff-body);
  font-size: .9rem;
  color: var(--ink-800);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  -webkit-appearance: none;
}
.form-control:hover { border-color: var(--ink-300); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control::placeholder { color: var(--ink-300); }
.form-control.error { border-color: var(--danger); }
.form-control.error:focus { box-shadow: 0 0 0 3px var(--danger-pale); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23778899' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea.form-control { resize: vertical; min-height: 96px; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-hint  { font-size: .72rem; color: var(--ink-400); margin-top: 5px; }
.form-error { font-size: .72rem; color: var(--danger); margin-top: 5px; display: none; }

/* ─── UPLOAD ZONE ────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-md);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-out);
  background: var(--surface-2);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-pale);
}
.upload-icon { font-size: 2rem; margin-bottom: 8px; opacity: .5; }
.upload-text { font-size: .85rem; color: var(--ink-500); }
.upload-sub  { font-size: .72rem; color: var(--ink-300); margin-top: 4px; }
.upload-preview {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-top: 10px;
  font-size: .82rem;
  color: var(--ink-600);
}
.upload-preview.visible { display: flex; }

/* ─── MODAL ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,18,34,.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 560px;
  max-width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(16px) scale(.97);
  transition: transform var(--dur-mid) var(--ease-snap);
  position: relative;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.modal-title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-900);
}
.modal-subtitle { font-size: .78rem; color: var(--ink-400); margin-top: 3px; }
.modal-close {
  background: var(--surface-2);
  border: none;
  border-radius: var(--r-md);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink-400);
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--dur-fast);
}
.modal-close:hover { background: var(--surface-3); color: var(--ink-800); }
.modal-body   { padding: 22px 28px; }
.modal-footer {
  padding: 16px 28px 22px;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  border-top: 1px solid var(--border);
}

/* ─── ALERTAS / TOASTS ───────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: .85rem;
  margin-bottom: 16px;
}
.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.alert-green { background: rgba(0,200,150,.08); border: 1px solid rgba(0,200,150,.2); color: #007050; }
.alert-amber { background: rgba(240,160,32,.08); border: 1px solid rgba(240,160,32,.25); color: #8A5800; }
.alert-red   { background: rgba(232,64,64,.08); border: 1px solid rgba(232,64,64,.2);  color: #A02020; }

.toast-container {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  font-size: .85rem;
  min-width: 280px;
  max-width: 380px;
  transform: translateX(120%);
  transition: transform var(--dur-mid) var(--ease-snap);
  border-left: 3px solid var(--accent);
}
.toast.show { transform: translateX(0); }
.toast.toast-error  { border-left-color: var(--danger); }
.toast.toast-warn   { border-left-color: var(--amber); }
.toast.toast-info   { border-left-color: var(--info); }
.toast-msg { flex: 1; }
.toast-close { background: none; border: none; color: rgba(255,255,255,.4); cursor: pointer; font-size: 1rem; }

/* ─── CHARTS ─────────────────────────────────────────────────────────────── */
.chart-container { position: relative; }

/* ─── TIMELINE ───────────────────────────────────────────────────────────── */
.timeline { list-style: none; }
.timeline-item {
  display: flex; gap: 14px;
  padding: 10px 0;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px; top: 36px;
  bottom: -10px; width: 1px;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 30px; height: 30px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}
.dot-green { background: rgba(0,200,150,.12); color: var(--accent-dim); }
.dot-amber { background: rgba(240,160,32,.12); color: var(--amber); }
.dot-blue  { background: rgba(59,143,240,.10); color: var(--info); }
.dot-red   { background: rgba(232,64,64,.10);  color: var(--danger); }
.timeline-content { flex: 1; }
.timeline-title { font-size: .86rem; font-weight: 500; color: var(--ink-800); }
.timeline-meta  { font-size: .74rem; color: var(--ink-400); margin-top: 2px; }

/* ─── LOADING STATES ─────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.4s ease-in-out infinite;
  border-radius: var(--r-md);
}
@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── PANEL TRANSITIONS ──────────────────────────────────────────────────── */
.page-panel { display: none; animation: panel-in var(--dur-mid) var(--ease-out); }
.page-panel.active { display: block; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── GAUGE SVG ──────────────────────────────────────────────────────────── */
.gauge-ring {
  transform-origin: center;
  transition: stroke-dashoffset .8s var(--ease-out);
}

/* ─── SCROLLBAR ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* ─── UTILIDADES ─────────────────────────────────────────────────────────── */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-20  { margin-bottom: 20px; }
.mb-24  { margin-bottom: 24px; }
.mt-auto { margin-top: auto; }
.text-muted  { color: var(--ink-400); }
.text-sm     { font-size: .82rem; }
.text-xs     { font-size: .72rem; }
.text-right  { text-align: right; }
.w-full      { width: 100%; }
.truncate    { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.divider     { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
