/* =========================================================
   Checador — Sistema de Diseño Principal
   Paleta: Navy oscuro + Teal/Cyan + Glassmorphism
   Fuente: Inter (Google Fonts)
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Colores base */
  --bg-900:    #0a0f1e;
  --bg-800:    #0f172a;
  --bg-700:    #1a2235;
  --bg-600:    #1e2d45;
  --surface:   rgba(30, 41, 59, 0.80);
  --surface-2: rgba(30, 41, 59, 0.95);
  --border:    rgba(99, 130, 174, 0.18);
  --border-2:  rgba(99, 130, 174, 0.30);

  /* Texto */
  --text-100: #f1f5f9;
  --text-200: #cbd5e1;
  --text-300: #94a3b8;
  --text-400: #64748b;

  /* Acentos */
  --teal-400:  #2dd4bf;
  --teal-500:  #14b8a6;
  --cyan-400:  #22d3ee;
  --cyan-500:  #06b6d4;
  --blue-400:  #60a5fa;
  --blue-500:  #3b82f6;

  /* Semánticos */
  --success:   #10b981;
  --success-bg:rgba(16, 185, 129, 0.12);
  --warning:   #f59e0b;
  --warning-bg:rgba(245, 158, 11, 0.12);
  --danger:    #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --info:      #38bdf8;
  --info-bg:   rgba(56, 189, 248, 0.12);
  --manual:    #a855f7;
  --manual-bg: rgba(168, 85, 247, 0.12);

  /* Gradientes */
  --grad-primary: linear-gradient(135deg, #0ea5e9, #06b6d4, #14b8a6);
  --grad-success: linear-gradient(135deg, #10b981, #059669);
  --grad-danger:  linear-gradient(135deg, #ef4444, #dc2626);
  --grad-warning: linear-gradient(135deg, #f59e0b, #d97706);
  --grad-purple:  linear-gradient(135deg, #8b5cf6, #7c3aed);
  --grad-blue:    linear-gradient(135deg, #3b82f6, #2563eb);

  /* Espaciado */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;

  /* Radios */
  --radius-sm: 0.5rem;
  --radius:    0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow:    0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --glow-teal: 0 0 30px rgba(20, 184, 166, 0.25);
  --glow-cyan: 0 0 30px rgba(6,  182, 212, 0.25);

  /* Transiciones */
  --tr-fast: 150ms ease;
  --tr:      250ms ease;
  --tr-slow: 400ms ease;

  /* Layout */
  --sidebar-w: 260px;
  --header-h:  64px;
  --max-mobile: 480px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-800);
  color: var(--text-100);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- 3. SPLASH SCREEN ---------- */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-800);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
.splash.hide { opacity: 0; pointer-events: none; }
.splash-inner { text-align: center; }
.splash-logo { display: flex; align-items: center; gap: var(--sp-3); justify-content: center; margin-bottom: var(--sp-8); }
.splash-icon { font-size: 3rem; }
.splash-title {
  font-size: 2.5rem; font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.splash-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--teal-400);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

/* ---------- 4. LAYOUT PRINCIPAL ---------- */
.app-container { min-height: 100dvh; }

/* Layout de admin (sidebar + content) */
.admin-layout {
  display: flex; min-height: 100dvh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-900);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--tr);
}
.sidebar-logo {
  padding: var(--sp-6) var(--sp-6) var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-icon { font-size: 1.75rem; }
.sidebar-logo-text {
  font-size: 1.25rem; font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sidebar-nav { flex: 1; padding: var(--sp-4) 0; overflow-y: auto; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-6);
  color: var(--text-300);
  font-size: 0.9375rem; font-weight: 500;
  border-radius: 0;
  transition: all var(--tr-fast);
  cursor: pointer;
  border-left: 3px solid transparent;
}
.sidebar-nav-item:hover { color: var(--text-100); background: rgba(255,255,255,0.04); }
.sidebar-nav-item.active {
  color: var(--teal-400); background: rgba(20,184,166,0.08);
  border-left-color: var(--teal-400);
}
.sidebar-nav-icon { font-size: 1.2rem; width: 1.5rem; text-align: center; }
.sidebar-footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
}

.admin-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100dvh;
  background: var(--bg-800);
}

/* Header admin */
.admin-header {
  height: var(--header-h);
  background: var(--bg-900);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 var(--sp-8);
  position: sticky; top: 0; z-index: 50;
  gap: var(--sp-4);
}
.admin-header h1 { font-size: 1.25rem; font-weight: 700; flex: 1; }
.admin-body { padding: var(--sp-8); }

/* Pantalla de empleado (mobile-first, centrada) */
.employee-screen {
  min-height: 100dvh;
  background: var(--bg-800);
  display: flex; flex-direction: column;
}
.employee-header {
  padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--bg-900);
  border-bottom: 1px solid var(--border);
}
.employee-content {
  flex: 1;
  max-width: var(--max-mobile);
  margin: 0 auto;
  width: 100%;
  padding: var(--sp-5);
}

/* ---------- 5. CARDS Y GLASSMORPHISM ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card-sm { padding: var(--sp-4); border-radius: var(--radius); }
.card-glass {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
}
.card-title {
  font-size: 1rem; font-weight: 600; color: var(--text-100);
  margin-bottom: var(--sp-4);
}
.card-subtitle { font-size: 0.8125rem; color: var(--text-300); margin-top: var(--sp-1); }

/* ---------- 6. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  font-size: 0.9375rem; font-weight: 600;
  transition: all var(--tr);
  user-select: none; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-success {
  background: var(--grad-success);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.btn-success:hover { transform: translateY(-1px); }

.btn-danger {
  background: var(--grad-danger);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { transform: translateY(-1px); }

.btn-warning {
  background: var(--grad-warning);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.btn-warning:hover { transform: translateY(-1px); }

.btn-purple {
  background: var(--grad-purple);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-blue {
  background: var(--grad-blue);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-blue:hover { transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-200);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
}
.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: 1.0625rem; }
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: 0.8125rem; }
.btn-full { width: 100%; }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
}

/* ---------- 7. FORMULARIOS ---------- */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--text-200); letter-spacing: 0.02em;
  margin-bottom: var(--sp-2);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-100);
  font-size: 0.9375rem;
  transition: border-color var(--tr), box-shadow var(--tr);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
  background: rgba(255,255,255,0.06);
}
.form-input::placeholder { color: var(--text-400); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: var(--sp-10); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 0.75rem; color: var(--text-400); margin-top: var(--sp-1); }
.form-error-msg { font-size: 0.75rem; color: var(--danger); margin-top: var(--sp-1); }

/* Segmented control (tipo jornada) */
.segmented {
  display: flex; border: 1px solid var(--border-2);
  border-radius: var(--radius); overflow: hidden;
}
.segmented-btn {
  flex: 1; padding: var(--sp-2) var(--sp-3);
  font-size: 0.875rem; font-weight: 500; color: var(--text-300);
  background: transparent;
  transition: all var(--tr-fast);
}
.segmented-btn.active { background: var(--teal-500); color: white; }
.segmented-btn:hover:not(.active) { background: rgba(255,255,255,0.05); color: var(--text-100); }

/* Days of week selector */
.days-selector { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.day-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-2);
  font-size: 0.8125rem; font-weight: 600; color: var(--text-300);
  transition: all var(--tr-fast);
}
.day-btn.active { background: var(--teal-500); border-color: var(--teal-500); color: white; }
.day-btn:hover:not(.active) { border-color: var(--teal-400); color: var(--teal-400); }

/* Toggle switch */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 0.9375rem; font-weight: 500; }
.toggle-desc { font-size: 0.8125rem; color: var(--text-300); margin-top: 2px; }
.toggle {
  position: relative; width: 48px; height: 26px;
  display: inline-block;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--bg-600);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--tr);
  border: 1px solid var(--border-2);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 50%; transform: translateY(-50%);
  background: var(--text-300);
  border-radius: var(--radius-full);
  transition: all var(--tr);
}
.toggle input:checked + .toggle-slider { background: var(--teal-500); border-color: var(--teal-500); }
.toggle input:checked + .toggle-slider::before { transform: translateY(-50%) translateX(22px); background: white; }

/* ---------- 8. BADGES / CHIPS ---------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 3px var(--sp-3); border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--info-bg);    color: var(--info);    }
.badge-manual  { background: var(--manual-bg);  color: var(--manual);  }
.badge-neutral { background: rgba(255,255,255,0.08); color: var(--text-300); }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 9. TABLA ---------- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: rgba(255,255,255,0.04); }
th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-300); letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
td {
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.875rem; color: var(--text-200);
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ---------- 10. SUMMARY STATS (admin dashboard) ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-6); }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-5);
  text-align: center; transition: transform var(--tr);
}
.stat-card:hover { transform: translateY(-2px); }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-300); margin-top: var(--sp-1); font-weight: 500; }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger  .stat-value { color: var(--danger);  }
.stat-card.info    .stat-value { color: var(--info);    }

/* ---------- 11. PANTALLA DE LOGIN ---------- */
.login-screen {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-900);
  position: relative; overflow: hidden;
  padding: var(--sp-5);
}
.login-bg-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.12;
  pointer-events: none;
}
.login-bg-orb-1 {
  width: 500px; height: 500px;
  background: var(--teal-500);
  top: -200px; right: -100px;
}
.login-bg-orb-2 {
  width: 400px; height: 400px;
  background: var(--blue-500);
  bottom: -150px; left: -100px;
}
.login-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-8);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}
.login-logo { text-align: center; margin-bottom: var(--sp-8); }
.login-logo-icon { font-size: 3rem; display: block; margin-bottom: var(--sp-3); }
.login-logo-title {
  font-size: 2rem; font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-logo-sub { font-size: 0.875rem; color: var(--text-300); margin-top: var(--sp-1); }

/* ---------- 12. CÁMARA DE CHECK-IN ---------- */
.camera-container {
  position: relative;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  max-height: 360px;
}
.camera-container video { width: 100%; height: 100%; object-fit: cover; }
.camera-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.camera-ring {
  width: 220px; height: 220px;
  border-radius: var(--radius-full);
  border: 3px solid var(--border-2);
  position: relative;
  transition: border-color var(--tr);
}
.camera-ring.scanning { border-color: var(--teal-400); animation: pulse-ring 2s ease-in-out infinite; }
.camera-ring.success  { border-color: var(--success); border-width: 4px; }
.camera-ring.fail     { border-color: var(--danger);  border-width: 4px; }
.camera-status {
  position: absolute; bottom: 0; left: 0; right: 0;
  text-align: center; padding: var(--sp-3);
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 0.875rem; font-weight: 600;
}
.camera-canvas { display: none; }

/* ---------- 13. TURNO ACTIVO ---------- */
.shift-timer {
  text-align: center; padding: var(--sp-8) 0;
}
.shift-timer-digits {
  font-size: 4rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow-text 3s ease-in-out infinite alternate;
}
.shift-timer-label { font-size: 0.875rem; color: var(--text-300); margin-top: var(--sp-2); }
.shift-status-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--success-bg); color: var(--success);
  border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 600;
  margin-bottom: var(--sp-6);
}
.shift-status-badge.descanso { background: var(--warning-bg); color: var(--warning); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.shift-actions { display: flex; flex-direction: column; gap: var(--sp-3); }
.shift-action-card {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer; transition: all var(--tr);
}
.shift-action-card:hover { border-color: var(--border-2); transform: translateX(4px); }
.shift-action-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; flex-shrink: 0;
}
.shift-action-title { font-size: 1rem; font-weight: 600; }
.shift-action-desc  { font-size: 0.8125rem; color: var(--text-300); margin-top: 2px; }
.action-blue   .shift-action-icon { background: var(--info-bg); }
.action-orange .shift-action-icon { background: var(--warning-bg); }
.action-red    .shift-action-icon { background: var(--danger-bg); }
.action-green  .shift-action-icon { background: var(--success-bg); }

/* ---------- 14. ONBOARDING WIZARD ---------- */
.onboarding-screen {
  min-height: 100dvh; background: var(--bg-800);
  display: flex; flex-direction: column;
}
.onboarding-header {
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
  background: var(--bg-900); border-bottom: 1px solid var(--border);
}
.onboarding-title { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--sp-1); }
.stepper {
  display: flex; gap: var(--sp-3); align-items: center;
  margin-top: var(--sp-5);
}
.stepper-step {
  display: flex; align-items: center; gap: var(--sp-2); flex: 1;
}
.stepper-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  border: 2px solid var(--border-2); color: var(--text-400);
  flex-shrink: 0; transition: all var(--tr);
}
.stepper-step.active .stepper-circle { border-color: var(--teal-400); color: var(--teal-400); background: rgba(45,212,191,0.1); }
.stepper-step.done   .stepper-circle { border-color: var(--success); background: var(--success); color: white; }
.stepper-step-label { font-size: 0.8125rem; font-weight: 500; color: var(--text-400); }
.stepper-step.active .stepper-step-label { color: var(--text-100); }
.stepper-step.done   .stepper-step-label { color: var(--success); }
.stepper-line { flex: 1; height: 1px; background: var(--border); }

.onboarding-body { flex: 1; max-width: 600px; margin: 0 auto; width: 100%; padding: var(--sp-6) var(--sp-5); }
.onboarding-footer {
  padding: var(--sp-5);
  background: var(--bg-900); border-top: 1px solid var(--border);
  display: flex; gap: var(--sp-3); justify-content: flex-end;
  max-width: 600px; margin: 0 auto; width: 100%;
}

/* ---------- 15. FILTROS DE ADMIN ---------- */
.filters-bar {
  display: flex; gap: var(--sp-3); align-items: center;
  margin-bottom: var(--sp-6); flex-wrap: wrap;
}
.filters-bar .form-select, .filters-bar .form-input {
  max-width: 180px; padding: var(--sp-2) var(--sp-3);
  font-size: 0.875rem;
}

/* ---------- 16. AVATAR ---------- */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700; color: white;
  flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 17. TOAST NOTIFICATIONS ---------- */
.toast-container {
  position: fixed; bottom: var(--sp-6); right: var(--sp-6);
  z-index: 10000; display: flex; flex-direction: column; gap: var(--sp-3);
  max-width: 380px;
}
.toast {
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-lg);
  animation: slide-in-right 0.3s ease;
  display: flex; align-items: flex-start; gap: var(--sp-3);
  backdrop-filter: blur(20px);
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger);  }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info    { border-left: 4px solid var(--info);    }
.toast-icon { font-size: 1.25rem; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.9375rem; }
.toast-msg   { font-size: 0.8125rem; color: var(--text-300); margin-top: 2px; }
.toast-close { color: var(--text-400); cursor: pointer; padding: 0 var(--sp-1); font-size: 1rem; }
.toast-close:hover { color: var(--text-100); }

/* ---------- 18. MODAL ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-5);
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--bg-700); border: 1px solid var(--border-2);
  border-radius: var(--radius-xl); width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.25s ease;
}
.modal-header {
  padding: var(--sp-5) var(--sp-6) var(--sp-4);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 1.125rem; font-weight: 700; }
.modal-body  { padding: var(--sp-6); }
.modal-footer {
  padding: var(--sp-4) var(--sp-6) var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex; gap: var(--sp-3); justify-content: flex-end;
}

/* ---------- 19. EMPTY STATE ---------- */
.empty-state {
  text-align: center; padding: var(--sp-16) var(--sp-8);
  color: var(--text-300);
}
.empty-state-icon { font-size: 3rem; margin-bottom: var(--sp-4); }
.empty-state-title { font-size: 1.125rem; font-weight: 600; color: var(--text-200); margin-bottom: var(--sp-2); }
.empty-state-desc  { font-size: 0.875rem; }

/* ---------- 20. PROFILE CARD (empleado) ---------- */
.profile-card {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5); margin-bottom: var(--sp-5);
}
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--teal-500); }
.profile-name  { font-size: 1.125rem; font-weight: 700; }
.profile-role  { font-size: 0.8125rem; color: var(--text-300); margin-top: 2px; }
.lang-toggle {
  margin-left: auto;
  display: flex; border: 1px solid var(--border-2); border-radius: var(--radius-full);
  overflow: hidden;
}
.lang-btn {
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.8125rem; font-weight: 600; color: var(--text-300);
}
.lang-btn.active { background: var(--teal-500); color: white; }

/* ---------- 21. ACTIVIDADES (selección al checar) ---------- */
.activity-grid { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.activity-chip {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-2);
  font-size: 0.875rem; font-weight: 500; color: var(--text-200);
  cursor: pointer; transition: all var(--tr-fast);
}
.activity-chip:hover  { border-color: var(--teal-400); color: var(--teal-400); }
.activity-chip.active { background: rgba(20,184,166,0.15); border-color: var(--teal-400); color: var(--teal-400); }

/* ---------- 22. ANIMACIONES ---------- */
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes pulse-ring {
  0%,100% { box-shadow: 0 0 0 0 rgba(45,212,191,0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(45,212,191,0); }
}
@keyframes pulse-dot  {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.6); opacity: 0.4; }
}
@keyframes glow-text  {
  from { filter: drop-shadow(0 0 8px rgba(20,184,166,0.3)); }
  to   { filter: drop-shadow(0 0 20px rgba(20,184,166,0.6)); }
}
@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}
@keyframes modal-in {
  from { transform: scale(0.92) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0);        opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.animate-in { animation: fade-in 0.35s ease; }

/* ---------- 23. SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-900); }
::-webkit-scrollbar-thumb { background: var(--bg-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-400); }

/* ---------- 24. UTILIDADES ---------- */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.mt-2  { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); }
.mb-4  { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.text-sm { font-size: 0.875rem; } .text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-300); }
.font-bold  { font-weight: 700; } .font-semibold { font-weight: 600; }
.w-full { width: 100%; }
.relative { position: relative; }

/* ---------- 25. RESPONSIVE ---------- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .admin-content {
    margin-left: 0;
  }
  .admin-body {
    padding: var(--sp-5) var(--sp-4);
  }
  .shift-timer-digits { font-size: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  th, td { padding: var(--sp-2) var(--sp-3); }
  .filters-bar .form-select,
  .filters-bar .form-input { max-width: 140px; }
}

/* ---------- 26. IMPRESIÓN (@media print) ---------- */
@media print {
  body {
    background: white !important;
    color: black !important;
    font-size: 11px !important;
  }
  .sidebar, .admin-header, .filters-bar, .btn,
  .toast-container, .modal-overlay, #toast-container,
  .no-print {
    display: none !important;
  }
  .admin-content { margin-left: 0 !important; }
  .admin-body { padding: 0 !important; }
  .table-wrapper { border: none !important; }
  table { border-collapse: collapse; }
  th, td {
    border: 1px solid #ccc !important;
    color: black !important;
    background: white !important;
    padding: 4px 8px !important;
  }
  thead th { background: #f0f0f0 !important; }
  .print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 16px;
  }
  .print-header h1 { font-size: 18px; color: black; }
  .print-header p  { font-size: 11px; color: #555; }
  .badge { border: 1px solid #999 !important; }
  .card  { border: 1px solid #ccc !important; background: white !important; }
  @page { margin: 1.5cm; }
}
.print-header { display: none; }
