/* ============================================================
   FLUX.CSS — Sistema de diseño Carcacha v2
   Modernizado con Lexend, #0099cc como primary
   ============================================================ */

/* ─── 1. TOKENS — MODO CLARO ──────────────────────────────── */
:root {
  --primary:            #0099cc;
  --primary-hover:      #0088b8;
  --primary-soft:       rgba(0, 153, 204, 0.12);
  --primary-glow:       rgba(0, 153, 204, 0.35);
  --primary-foreground: #ffffff;
  --accent:             #00b4d8;
  --accent-foreground:  #ffffff;

  --background:         #f8fafc;
  --foreground:         #0f172a;
  --card:               #ffffff;
  --card-foreground:    #0f172a;

  --muted:              #f1f5f9;
  --muted-foreground:   #64748b;
  --secondary:          #f1f5f9;
  --secondary-foreground: #1e293b;

  --destructive:        #ef4444;
  --success:            #10b981;
  --warning:            #f59e0b;
  --info:               #0099cc;

  --border:             #e2e8f0;
  --input:              #e2e8f0;
  --ring:               #0099cc;

  /* Sidebar moderno con glassmorphism */
  --sidebar:            rgba(15, 23, 42, 0.95);
  --sidebar-foreground: #f1f5f9;
  --sidebar-muted:      #94a3b8;
  --sidebar-border:     rgba(255, 255, 255, 0.08);
  --sidebar-accent:     rgba(255, 255, 255, 0.06);
  --sidebar-active:     #0099cc;

  --chart-1: #0099cc;
  --chart-2: #00b4d8;
  --chart-3: #10b981;
  --chart-4: #f59e0b;
  --chart-5: #ef4444;

  --radius:    1rem;
  --radius-sm: 0.75rem;
  --radius-lg: 1.5rem;

  /* Sombras refinadas */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow:    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 32px rgba(0, 153, 204, 0.25);

  --font-sans: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --gradient-primary: linear-gradient(135deg, #0099cc, #00b4d8);
  --gradient-subtle: linear-gradient(135deg, rgba(0, 153, 204, 0.08), rgba(0, 180, 216, 0.04));
}

/* ─── 2. MODO OSCURO ──────────────────────────────────────── */
.dark {
  --primary:            #2dd4bf;
  --primary-hover:      #14b8a6;
  --primary-soft:       rgba(45, 212, 191, 0.12);
  --primary-glow:       rgba(45, 212, 191, 0.3);
  --primary-foreground: #0f172a;
  --accent:             #2dd4bf;

  --background:         #0a0c10;
  --foreground:         #edf2f7;
  --card:               #11141c;
  --card-foreground:    #edf2f7;

  --muted:              #1a1f2e;
  --muted-foreground:   #94a3b8;
  --secondary:          #1a1f2e;
  --secondary-foreground: #e2e8f0;

  --destructive:        #f87171;
  --success:            #34d399;
  --warning:            #fbbf24;

  --border:             #1e293b;
  --input:              #1e293b;

  --sidebar:            rgba(8, 10, 15, 0.95);
  --sidebar-foreground: #e2e8f0;
  --sidebar-muted:      #7e8a98;
  --sidebar-border:     rgba(255, 255, 255, 0.04);
  --sidebar-accent:     rgba(255, 255, 255, 0.03);
  --sidebar-active:     #2dd4bf;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow:    0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* ─── 3. RESET MODERNO ────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

img, svg {
  display: block;
}

/* ─── 4. UTILIDADES PREMIUM ───────────────────────────────── */
.flux-shadow {
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.flux-shadow-lg {
  box-shadow: var(--shadow-lg);
}
.flux-shadow-xl {
  box-shadow: var(--shadow-xl);
}

.flux-glow {
  position: relative;
  isolation: isolate;
}
.flux-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--gradient-primary);
  filter: blur(16px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.flux-glow:hover::before {
  opacity: 0.6;
}

.flux-frosted {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.dark .flux-frosted {
  background-color: rgba(17, 20, 28, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flux-gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

.flux-dot-grid {
  background-image: radial-gradient(var(--primary) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}
.dark .flux-dot-grid {
  background-image: radial-gradient(rgba(45, 212, 191, 0.3) 1px, transparent 1px);
}

/* ─── 5. BOTONES MEJORADOS ───────────────────────────────── */
.flux-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.flux-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
  filter: brightness(1.05);
}
.flux-btn-primary:active {
  transform: translateY(0);
}

.flux-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 500;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}
.flux-btn-secondary:hover {
  background: var(--muted);
  transform: translateY(-1px);
}

.flux-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
}
.flux-btn-ghost:hover {
  background: rgba(0, 153, 204, 0.2);
  transform: translateX(2px);
}

/* ─── 6. LAYOUT ───────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: var(--background);
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ─── 7. SIDEBAR MODERNO ──────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--sidebar);
  backdrop-filter: blur(10px);
  color: var(--sidebar-foreground);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--sidebar-border);
  scrollbar-width: thin;
  scrollbar-color: var(--sidebar-active) transparent;
  z-index: 40;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--sidebar-active);
  border-radius: 999px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 153, 204, 0.3);
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sidebar-brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sidebar-muted);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

.sidebar-section {
  padding: 0.25rem 0;
}

.sidebar-section + .sidebar-section {
  margin-top: 0.5rem;
}

.sidebar-section-title {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sidebar-muted);
  padding: 0.625rem 0.75rem 0.375rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  margin: 0;
  border-radius: var(--radius-sm);
  color: var(--sidebar-foreground);
  opacity: 0.7;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.sidebar-link:hover {
  opacity: 1;
  background: var(--sidebar-accent);
  transform: translateX(2px);
}
.sidebar-link.is-active {
  opacity: 1;
  background: linear-gradient(90deg, 
    rgba(0, 153, 204, 0.15),
    transparent
  );
  border-left: 2px solid var(--sidebar-active);
  color: white;
}

.sidebar-link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-link-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-link-label {
  flex: 1;
}

.sidebar-link-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  background: var(--primary);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  line-height: 1.4;
}

.sidebar-footer {
  border-top: 1px solid var(--sidebar-border);
  padding: 1rem;
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 153, 204, 0.2);
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sidebar-user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--sidebar-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-user-logout {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--sidebar-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.sidebar-user-logout svg {
  width: 16px;
  height: 16px;
}
.sidebar-user-logout:hover {
  color: var(--sidebar-foreground);
  background: var(--sidebar-accent);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 39;
}

/* ─── 8. HEADER REFINADO ──────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.85);
}
.dark .header {
  background: rgba(10, 12, 16, 0.85);
}

.header-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  transition: all 0.2s ease;
  background: var(--primary-soft);
}
.header-menu-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.02);
}
.header-menu-btn svg {
  width: 20px;
  height: 20px;
}

.header-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.header-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}
.header-search-icon svg {
  width: 18px;
  height: 18px;
}

.header-search-input {
  width: 100%;
  height: 44px;
  padding: 0 3rem 0 2.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  outline: none;
}
.header-search-input::placeholder {
  color: var(--muted-foreground);
}
.header-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.12);
}

.header-search-kbd {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--muted-foreground);
  background: var(--muted);
  border-radius: 0.375rem;
  padding: 0.1875rem 0.5rem;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  transition: all 0.2s ease;
  background: var(--muted);
}
.header-action-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: translateY(-1px);
}
.header-action-btn svg {
  width: 18px;
  height: 18px;
}

.header-action-btn[data-theme-toggle] .icon-moon { display: inline-flex; }
.header-action-btn[data-theme-toggle] .icon-sun  { display: none; }
.dark .header-action-btn[data-theme-toggle] .icon-moon { display: none; }
.dark .header-action-btn[data-theme-toggle] .icon-sun  { display: inline-flex; }

.notif-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--destructive);
  border: 1.5px solid var(--card);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.header-cta {
  margin-left: 0.25rem;
  background: var(--gradient-primary);
  color: white;
}

/* ─── 9. CONTENIDO PRINCIPAL ──────────────────────────────── */
.content {
  padding: 2rem 2rem 3rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.page-greeting {
  margin-bottom: 2rem;
}

.page-greeting h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-greeting-sub {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 450;
}

/* ─── 10. DASHBOARD GRID ──────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.col-4  { grid-column: span 4; }
.col-6  { grid-column: span 6; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ─── 11. STAT CARDS PREMIUM ──────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.25s ease;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.stat:hover::before {
  opacity: 1;
}

.stat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 153, 204, 0.25);
}
.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  font-feature-settings: 'tnum';
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

.stat-value-sufijo {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-left: 0.25rem;
}

.stat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.stat-meta-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}
.stat-trend.up {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.stat-trend.down {
  background: rgba(239, 68, 68, 0.1);
  color: var(--destructive);
}

/* ─── 12. CARDS MEJORADAS ─────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.25s ease;
}
.card:hover {
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.card-link {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
}
.card-link:hover {
  gap: 0.625rem;
  color: var(--primary-hover);
}
.card-link svg {
  width: 14px;
  height: 14px;
}

/* ─── 13. BANNER MODERNO ──────────────────────────────────── */
.banner {
  position: relative;
  padding: 2rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0099cc 0%, #00b4d8 50%, #48cae4 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: white;
  margin-bottom: 1rem;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}

.banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.banner-title {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

.banner-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius);
  background: white;
  color: #0099cc;
  font-weight: 700;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.banner-cta svg {
  width: 16px;
  height: 16px;
}
.banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  gap: 0.875rem;
}

/* ─── 14. PERFIL ──────────────────────────────────────────── */
.profile-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 153, 204, 0.25);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-puesto {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}
.profile-meta-item svg {
  width: 12px;
  height: 12px;
  color: var(--primary);
}

/* ─── 15. VACACIONES ──────────────────────────────────────── */
.vacation-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.vacation-stat-val {
  font-size: 1.875rem;
  font-weight: 800;
  font-feature-settings: 'tnum';
  color: var(--primary);
  line-height: 1;
}

.vacation-stat-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.vacation-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vacation-bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.vacation-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
}

.vacation-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* ─── 16. ITEM LISTS ──────────────────────────────────────── */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.list-item:first-child {
  padding-top: 0;
}
.list-item:hover {
  background: var(--muted);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: var(--radius-sm);
}

.list-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.list-icon svg {
  width: 18px;
  height: 18px;
}

.list-icon.is-primary {
  background: rgba(0, 153, 204, 0.1);
  color: var(--primary);
}
.list-icon.is-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.list-icon.is-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.list-icon.is-destructive {
  background: rgba(239, 68, 68, 0.1);
  color: var(--destructive);
}
.list-icon.is-accent {
  background: rgba(0, 180, 216, 0.1);
  color: var(--accent);
}

.list-content {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.list-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.list-time {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ─── 17. BADGES ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-enviada {
  background: rgba(0, 153, 204, 0.1);
  color: var(--primary);
}
.badge-enviada::before { background: var(--primary); }

.badge-aprobada {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.badge-aprobada::before { background: var(--success); }

.badge-rechazada {
  background: rgba(239, 68, 68, 0.1);
  color: var(--destructive);
}
.badge-rechazada::before { background: var(--destructive); }

.badge-pendiente {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.badge-pendiente::before { background: var(--warning); }

.badge-cancelada {
  background: var(--muted);
  color: var(--muted-foreground);
}
.badge-cancelada::before { background: var(--muted-foreground); }

/* ─── 18. ACCESOS RÁPIDOS ─────────────────────────────────── */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.quick-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 153, 204, 0.25);
}
.quick-card-icon svg {
  width: 22px;
  height: 22px;
}

.quick-card-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ─── 19. UTILIDADES ──────────────────────────────────────── */
.icon-sm svg  { width: 16px; height: 16px; }
.icon-xs svg  { width: 14px; height: 14px; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* ─── 20. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .col-4, .col-6, .col-8, .col-12 {
    grid-column: span 12;
  }
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar.is-open ~ .main .sidebar-overlay,
  .sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .header-menu-btn {
    display: flex;
  }

  .header-search {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 1.5rem 1rem 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dashboard-grid {
    gap: 1rem;
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vacation-stats {
    gap: 0.75rem;
  }

  .page-greeting h1 {
    font-size: 1.5rem;
  }

  .banner {
    padding: 1.5rem;
  }

  .banner-title {
    font-size: 1.125rem;
  }
}

@media (max-width: 640px) {
  .quick-access-grid {
    grid-template-columns: 1fr;
  }

  .profile-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-meta {
    justify-content: center;
  }

  .vacation-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .header-search-kbd {
    display: none;
  }

  .header-cta span:not(svg) {
    display: none;
  }

  .header-actions {
    gap: 0.25rem;
  }

  .header-action-btn {
    width: 36px;
    height: 36px;
  }

  .header-cta {
    padding: 0.5rem 0.875rem;
  }
}

/* ─── 21. ANIMACIONES ─────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .stat, .banner {
  animation: fadeIn 0.4s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }

/* Dark mode adjustments */
.dark .flux-frosted {
  backdrop-filter: blur(20px);
}

.dark .card:hover {
  border-color: rgba(45, 212, 191, 0.3);
}

.dark .quick-card:hover {
  border-color: var(--primary);
}

.dark .stat:hover {
  border-color: var(--primary);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus visible para accesibilidad */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── Estilos NACHO ───────────────────────────────────────── */
.nacho-welcome {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: white;
  box-shadow: var(--shadow-lg);
}

.nacho-avatar {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  backdrop-filter: blur(4px);
}

.nacho-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.nacho-text h1 .flux-gradient-text {
  background: white;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nacho-saludo {
  font-size: 0.9375rem;
  opacity: 0.95;
  margin-bottom: 0.25rem;
}

.nacho-frase {
  font-size: 0.8125rem;
  opacity: 0.85;
  font-style: italic;
}

.resumen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.resumen-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resumen-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 0.5rem;
}
.resumen-icon svg {
  width: 24px;
  height: 24px;
}

.resumen-info {
  flex: 1;
}

.resumen-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  display: block;
  margin-bottom: 0.25rem;
}

.resumen-valor {
  font-size: 1.125rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.125rem;
}

.resumen-sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.resumen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s ease;
  align-self: flex-start;
}
.resumen-btn:hover {
  background: var(--primary);
  color: white;
  gap: 0.5rem;
}

.seccion {
  margin-bottom: 2rem;
}

.seccion-titulo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.seccion-titulo svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.acciones-rapidas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.accion-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.accion-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.accion-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.accion-label {
  font-weight: 700;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.25rem;
}

.accion-desc {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.movimientos {
  padding: 0;
  overflow: hidden;
}

.movimiento-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.movimiento-item:last-child {
  border-bottom: none;
}
.movimiento-item:hover {
  background: var(--muted);
}

.movimiento-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.movimiento-icon svg {
  width: 18px;
  height: 18px;
}

.movimiento-info {
  flex: 1;
}

.movimiento-tipo {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.movimiento-detalle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.movimiento-estado {
  text-align: right;
  flex-shrink: 0;
}

.movimiento-fecha {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
  display: block;
}

.movimiento-vacio {
  padding: 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

.nacho-tip {
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.nacho-tip-icon {
  font-size: 1.75rem;
}

.nacho-tip-text {
  font-size: 0.8125rem;
  line-height: 1.5;
}
.nacho-tip-text strong {
  color: var(--primary);
}

@media (max-width: 900px) {
  .resumen-grid {
    grid-template-columns: 1fr;
  }
  
  .acciones-rapidas {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nacho-welcome {
    flex-direction: column;
    text-align: center;
  }
  
  .acciones-rapidas {
    grid-template-columns: 1fr;
  }
  
  .movimiento-item {
    flex-wrap: wrap;
  }
  
  .movimiento-estado {
    text-align: left;
    width: 100%;
    margin-left: 3rem;
  }
}


/* ============================================================
   ESTILOS MODERNOS NACHO ADMIN
   Sin espacios vacíos, diseño limpio y funcional
   ============================================================ */

/* Dashboard header moderno */
.nacho-dashboard-header {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.nacho-badge-corner {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.nacho-header-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nacho-avatar-xl {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 20px var(--primary-glow);
}

.nacho-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.nacho-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.nacho-wave {
  font-size: 1.25rem;
}

.nacho-header-quote {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  max-width: 300px;
}

.nacho-date-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--muted);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.nacho-date-badge svg {
  width: 14px;
  height: 14px;
}

/* Stats mini modernas */
.stats-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-mini {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}
.stat-mini:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.stat-mini-icon {
  font-size: 1.75rem;
}

.stat-mini-val {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-mini-label {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Banner de alerta moderno */
.nacho-alert-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.dark .nacho-alert-banner {
  background: linear-gradient(135deg, #422006 0%, #713f12 100%);
}

.nacho-alert-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245,158,11,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.nacho-alert-icon {
  font-size: 2rem;
  z-index: 1;
}

.nacho-alert-content {
  flex: 1;
  z-index: 1;
}

.nacho-alert-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #78350f;
}
.dark .nacho-alert-title {
  color: #fde68a;
}

.nacho-alert-badge {
  background: #ef4444;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  margin-left: 0.5rem;
}

.nacho-alert-text {
  font-size: 0.75rem;
  color: #78350f;
}
.dark .nacho-alert-text {
  color: #fcd34d;
}

.nacho-alert-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f59e0b;
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  z-index: 1;
  white-space: nowrap;
}
.nacho-alert-btn:hover {
  background: #d97706;
  gap: 0.75rem;
}

/* Grid principal sin espacios vacíos */
.admin-modern-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modern-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.modern-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modern-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
}

.title-icon {
  font-size: 1.25rem;
}

.title-badge {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.modern-link {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.2s ease;
}
.modern-link:hover {
  gap: 0.25rem;
  transform: translateX(2px);
  display: inline-flex;
}

.full-width {
  width: 100%;
}

/* Solicitudes modern list */
.solicitudes-modern-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.solicitud-modern-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--muted);
  border-radius: var(--radius-sm);
  gap: 1rem;
  flex-wrap: wrap;
}

.solicitud-modern-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.solicitud-modern-icon svg {
  width: 18px;
  height: 18px;
}

.solicitud-modern-info {
  flex: 1;
  min-width: 180px;
}

.solicitud-modern-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.solicitud-modern-user {
  font-weight: 400;
  color: var(--muted-foreground);
}

.solicitud-modern-detail {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.solicitud-modern-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.action-btn {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.action-btn.approve {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}
.action-btn.approve:hover {
  background: var(--success);
  color: white;
}
.action-btn.reject {
  background: rgba(239, 68, 68, 0.15);
  color: var(--destructive);
}
.action-btn.reject:hover {
  background: var(--destructive);
  color: white;
}

/* Grid de 2 columnas */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Perfil moderno */
.profile-modern {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.profile-modern-avatar {
  width: 72px;
  height: 72px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.profile-modern-info {
  flex: 1;
}

.profile-modern-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.profile-modern-puesto {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.profile-modern-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  background: var(--muted);
  border-radius: 999px;
}
.profile-badge svg {
  width: 10px;
  height: 10px;
}

/* Vacaciones modernas */
.vacaciones-modern-numbers {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-bottom: 1rem;
}

.vacaciones-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.vacaciones-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--muted-foreground);
  letter-spacing: 0.08em;
}

.vacaciones-bar-progress {
  margin-bottom: 1rem;
}

.vacaciones-bar-bg {
  height: 8px;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.vacaciones-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.vacaciones-bar-text {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  text-align: center;
}

.modern-btn-full {
  display: block;
  text-align: center;
  padding: 0.625rem;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.modern-btn-full:hover {
  background: var(--primary);
  color: white;
}

/* Alertas y actividad */
.alertas-modern-list,
.actividad-modern-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alerta-modern-item,
.actividad-modern-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.alerta-modern-item:last-child,
.actividad-modern-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.alerta-modern-icon,
.actividad-modern-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.alerta-modern-icon svg,
.actividad-modern-icon svg {
  width: 16px;
  height: 16px;
}

.alerta-modern-info,
.actividad-modern-info {
  flex: 1;
}

.alerta-modern-title,
.actividad-modern-title {
  font-weight: 700;
  font-size: 0.8125rem;
  margin-bottom: 0.125rem;
}

.alerta-modern-text,
.actividad-modern-text {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.alerta-modern-time,
.actividad-modern-date {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* Accesos rápidos */
.quick-modern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.quick-modern-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.75rem;
}
.quick-modern-item span:first-child {
  font-size: 1.5rem;
}
.quick-modern-item:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

/* Footer tip */
.nacho-footer-tip {
  margin-top: 1.5rem;
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.nacho-footer-avatar {
  font-size: 1.75rem;
}

.nacho-footer-text {
  font-size: 0.8125rem;
  line-height: 1.5;
}
.nacho-footer-text strong {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1100px) {
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stats-mini {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nacho-dashboard-header {
    flex-direction: column;
    text-align: center;
  }
  
  .nacho-header-content {
    flex-direction: column;
  }
  
  .nacho-badge-corner {
    position: static;
    margin-bottom: 0.5rem;
    display: inline-flex;
    width: fit-content;
  }
  
  .solicitud-modern-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .solicitud-modern-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .profile-modern {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-modern-badges {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .stats-mini {
    grid-template-columns: 1fr;
  }
  
  .quick-modern-grid {
    grid-template-columns: 1fr;
  }
  
  .nacho-alert-banner {
    flex-direction: column;
    text-align: center;
  }
}