/* ============================================================
   FLUX.CSS — Sistema de diseño Moderno Pastel
   Glassmorphism + Neumorphism | Paleta Pastel
   ============================================================ */

/* ─── 1. TOKENS — MODO CLARO ──────────────────────────────── */
:root {
  /* Paleta Pastel Moderna */
  --primary:            #7c5dfa;
  --primary-hover:      #6d50e8;
  --primary-soft:       rgba(124, 93, 250, 0.12);
  --primary-glow:       rgba(124, 93, 250, 0.35);
  --primary-foreground: #ffffff;
  
  --accent:             #ff6b9d;
  --accent-foreground:  #ffffff;
  --accent-soft:        rgba(255, 107, 157, 0.1);
  
  --secondary:          #4facf1;
  --secondary-soft:     rgba(79, 172, 241, 0.1);
  
  /* Gradientes pastel premium */
  --gradient-purple:    linear-gradient(135deg, #7c5dfa, #9f7aea);
  --gradient-pink:      linear-gradient(135deg, #ff6b9d, #ff9dd1);
  --gradient-blue:      linear-gradient(135deg, #4facf1, #7dd3fc);
  --gradient-primary:   linear-gradient(135deg, #7c5dfa, #ff6b9d, #4facf1);
  --gradient-subtle:    linear-gradient(135deg, rgba(124, 93, 250, 0.08), rgba(255, 107, 157, 0.08));

  --background:         #fafbfe;
  --background-alt:     #f5f7fb;
  --foreground:         #1a1f3a;
  --card:               #ffffff;
  --card-foreground:    #1a1f3a;

  --muted:              #f0f2f8;
  --muted-foreground:   #6b7280;
  --secondary-bg:       #f5f7fb;
  --secondary-foreground: #2d3748;

  --destructive:        #ff6b6b;
  --success:            #51cf66;
  --warning:            #ffa94d;
  --info:               #4facf1;

  --border:             #e5e7eb;
  --border-light:       #f0f2f8;
  --input:              #f5f7fb;
  --ring:               #7c5dfa;

  /* Sidebar moderno */
  --sidebar:            rgba(250, 251, 254, 0.95);
  --sidebar-foreground: #1a1f3a;
  --sidebar-muted:      #9ca3af;
  --sidebar-border:     rgba(124, 93, 250, 0.08);
  --sidebar-accent:     rgba(124, 93, 250, 0.06);
  --sidebar-active:     #7c5dfa;

  --chart-1: #7c5dfa;
  --chart-2: #ff6b9d;
  --chart-3: #4facf1;
  --chart-4: #51cf66;
  --chart-5: #ffa94d;

  --radius:    1.25rem;
  --radius-sm: 0.875rem;
  --radius-lg: 1.75rem;

  /* Sombras suaves (neumorphism ligero) */
  --shadow-xs: 0 1px 2px rgba(124, 93, 250, 0.04);
  --shadow-sm: 0 2px 8px rgba(124, 93, 250, 0.08);
  --shadow:    0 8px 16px rgba(124, 93, 250, 0.12);
  --shadow-lg: 0 12px 32px rgba(124, 93, 250, 0.15);
  --shadow-xl: 0 20px 48px rgba(124, 93, 250, 0.18);
  --shadow-glow: 0 0 40px rgba(124, 93, 250, 0.25);

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

/* ─── 2. MODO OSCURO ──────────────────────────────────────── */
.dark {
  --primary:            #b794f6;
  --primary-hover:      #a885f0;
  --primary-soft:       rgba(183, 148, 246, 0.12);
  --primary-glow:       rgba(183, 148, 246, 0.3);
  --primary-foreground: #1a1f3a;
  --accent:             #ff9db5;

  --background:         #0f1117;
  --foreground:         #e5e7eb;
  --card:               #1a1f2e;
  --card-foreground:    #e5e7eb;

  --muted:              #2d3748;
  --muted-foreground:   #9ca3af;
  --secondary:          #2d3748;
  --secondary-foreground: #d1d5db;

  --destructive:        #ff6b6b;
  --success:            #51cf66;
  --warning:            #ffa94d;

  --border:             #2d3748;
  --input:              #2d3748;
  --border-light:       #404854;

  --sidebar:            rgba(15, 17, 23, 0.95);
  --sidebar-foreground: #e5e7eb;
  --sidebar-muted:      #9ca3af;
  --sidebar-border:     rgba(183, 148, 246, 0.08);
  --sidebar-accent:     rgba(183, 148, 246, 0.06);
  --sidebar-active:     #b794f6;

  --shadow-sm: 0 2px 8px rgba(124, 93, 250, 0.12);
  --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 + FONDO CON GRADIENTE ───────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  background: linear-gradient(135deg, #fafbfe 0%, #f5f7fb 50%, #f0f2f8 100%);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ondas sutiles de fondo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(124,93,250,0.05)"/></svg>'),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,70 Q300,20 600,70 T1200,70 L1200,120 L0,120 Z" fill="rgba(255,107,157,0.03)"/></svg>');
  background-size: 100% 100%, 100% 140%;
  background-position: 0 0, 0 50px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
  animation: wave 15s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(2px); }
}

.dark body {
  background: linear-gradient(135deg, #0f1117 0%, #1a1f2e 50%, #2d3748 100%);
}

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. ANIMACIONES ──────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* ─── 5. UTILIDADES PREMIUM ────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(124, 93, 250, 0.1);
  border-radius: var(--radius);
}

.dark .glass-card {
  background: rgba(26, 31, 46, 0.8);
  border: 1px solid rgba(183, 148, 246, 0.1);
}

.neumorphic {
  box-shadow: 
    4px 4px 12px rgba(124, 93, 250, 0.08),
    -4px -4px 12px rgba(255, 255, 255, 0.8);
}

.dark .neumorphic {
  box-shadow: 
    4px 4px 12px rgba(0, 0, 0, 0.3),
    -4px -4px 12px rgba(183, 148, 246, 0.1);
}

.soft-shadow {
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.soft-shadow:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.flux-glow {
  position: relative;
  isolation: isolate;
}

.flux-glow::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: var(--gradient-primary);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.flux-glow:hover::before {
  opacity: 0.5;
}

.flux-frosted {
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(124, 93, 250, 0.1);
}

.dark .flux-frosted {
  background-color: rgba(26, 31, 46, 0.85);
  border-bottom: 1px solid rgba(183, 148, 246, 0.08);
}

.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(rgba(124, 93, 250, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

.dark .flux-dot-grid {
  background-image: radial-gradient(rgba(183, 148, 246, 0.15) 1px, transparent 1px);
}

/* ─── 6. BOTONES MEJORADOS Y MODERNOS ─────────────────────── */
.flux-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  background: var(--gradient-purple);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  letter-spacing: -0.01em;
  border: none;
}

.flux-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.08);
}

.flux-btn-primary:active {
  transform: translateY(-1px);
}

.flux-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: var(--muted);
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: 2px solid var(--border-light);
}

.flux-btn-secondary:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.flux-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.flux-btn-ghost:hover {
  background: var(--primary-soft);
  transform: translateX(2px);
}

.flux-btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.flux-btn-icon:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

/* ─── 7. FORMAS Y INPUTS ──────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--foreground);
}

.form-input,
.form-textarea,
.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted-foreground);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: var(--card);
}

.dark .form-input:focus,
.dark .form-textarea:focus,
.dark .form-select:focus {
  box-shadow: 0 0 0 4px rgba(183, 148, 246, 0.12);
}

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

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, rgba(250, 251, 254, 0.5) 0%, rgba(245, 247, 251, 0.3) 100%);
}

.dark .main {
  background: linear-gradient(180deg, rgba(15, 17, 23, 0.5) 0%, rgba(26, 31, 46, 0.3) 100%);
}

/* ─── 9. SIDEBAR MODERNO MINIMALISTA ──────────────────────── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--sidebar);
  backdrop-filter: blur(15px);
  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;
  transition: all 0.3s ease;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--sidebar-active);
  border-radius: 999px;
  opacity: 0.4;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  opacity: 0.7;
}

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

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-purple);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  letter-spacing: -0.05em;
}

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

.sidebar-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sidebar-foreground);
}

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

.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-section {
  padding: 0;
}

.sidebar-section-title {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sidebar-muted);
  padding: 0.75rem 1rem 0.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  opacity: 0.6;
}

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

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  margin: 0;
  border-radius: var(--radius-sm);
  color: var(--sidebar-foreground);
  opacity: 0.7;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.sidebar-link:hover {
  opacity: 1;
  background: rgba(124, 93, 250, 0.08);
  transform: translateX(3px);
}

.sidebar-link.is-active {
  opacity: 1;
  background: linear-gradient(90deg, rgba(124, 93, 250, 0.15), transparent);
  border-left: 3px solid var(--sidebar-active);
  color: var(--sidebar-active);
  padding-left: calc(1rem - 3px);
  font-weight: 600;
}

.sidebar-link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.sidebar-link:hover .sidebar-link-icon {
  opacity: 1;
  transform: scale(1.05);
}

.sidebar-link-icon svg {
  width: 18px;
  height: 18px;
}

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

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

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

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-user:hover {
  opacity: 0.8;
}

.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-pink);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.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.6rem;
  color: var(--sidebar-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.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;
  opacity: 0.6;
}

.sidebar-user-logout:hover {
  opacity: 1;
  background: var(--sidebar-accent);
  color: var(--sidebar-foreground);
}

.sidebar-user-logout svg {
  width: 16px;
  height: 16px;
}

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

/* ─── 10. HEADER MODERNO FLOTANTE ─────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.875rem 2rem;
  height: 70px;
  border-bottom: 1px solid var(--border-light);
  background: var(--sidebar);
  backdrop-filter: blur(20px);
  color: var(--foreground);
}

.dark .header {
  background: var(--sidebar);
}

.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.05);
}

.header-menu-btn svg {
  width: 20px;
  height: 20px;
}

.header-search {
  flex: 0.8;
  max-width: 450px;
  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: 9999px;
  border: 2px solid var(--border-light);
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  outline: none;
  font-weight: 500;
}

.header-search-input::placeholder {
  color: var(--muted-foreground);
}

.header-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: var(--card);
}

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

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

.header-action-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  transition: all 0.2s ease;
  background: var(--muted);
  border: none;
}

.header-action-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: translateY(-2px);
}

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

.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: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--card);
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px var(--accent);
}

.header-cta {
  margin-left: 0.5rem;
  background: var(--gradient-purple) !important;
  color: white;
  padding: 0.875rem 1.75rem !important;
  font-weight: 600;
  border-radius: 9999px;
}

/* ─── 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;
  }
}


/* ============================================================
   NACHO STYLE - Versión amable, moderna y con carácter
   Para el rol colaborador
   ============================================================ */

/* Header NACHO */
.nacho-header-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.nacho-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nacho-avatar-large {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nacho-greeting {
  font-size: 0.875rem;
  opacity: 0.9;
}

.nacho-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.nacho-message {
  font-size: 0.8125rem;
  opacity: 0.85;
  margin-top: 0.125rem;
}

.nacho-date {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Frase del día */
.nacho-phrase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.nacho-phrase-icon {
  font-size: 1.5rem;
}

.nacho-phrase-text {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  font-style: italic;
  line-height: 1.4;
}

/* Stats burbujas */
.nacho-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.stat-bubble-icon {
  font-size: 1.5rem;
}

.stat-bubble-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

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

/* Secciones */
.nacho-section {
  margin-bottom: 1.5rem;
}

.nacho-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}
.nacho-section-title span:first-child {
  font-size: 1.125rem;
}

/* Acciones rápidas grid */
.nacho-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

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

.action-tile-emoji {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.375rem;
}

.action-tile-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Progress card */
.progress-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.progress-numbers {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-bottom: 1rem;
}

.progress-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.progress-stat-label {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.progress-bar-bg {
  height: 8px;
  background: var(--muted);
  border-radius: 1rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1rem;
  transition: width 0.5s ease;
}

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

/* Lista de solicitudes */
.requests-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.request-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.request-item:last-child {
  border-bottom: none;
}

.request-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.request-icon svg {
  width: 20px;
  height: 20px;
}

.request-info {
  flex: 1;
}

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

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

.request-status {
  text-align: right;
  flex-shrink: 0;
}

.request-date {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Status badges bonitos */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 2rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-aprobada {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.status-pendiente {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.status-enviada {
  background: rgba(0, 153, 204, 0.15);
  color: var(--primary);
}
.status-rechazada {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Notificaciones */
.notifications-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

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

.notification-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notification-icon svg {
  width: 18px;
  height: 18px;
}

.notification-info {
  flex: 1;
}

.notification-title {
  font-weight: 700;
  font-size: 0.8125rem;
  margin-bottom: 0.125rem;
}

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

.notification-time {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* Tip bubble */
.nacho-tip-bubble {
  background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(0,153,204,0.05) 100%);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 3px solid var(--primary);
}

.tip-avatar {
  font-size: 1.75rem;
}

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted-foreground);
}
.empty-state span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}
.empty-state p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.empty-state small {
  font-size: 0.6875rem;
}

/* Responsive */
@media (max-width: 640px) {
  .nacho-stats-row {
    gap: 0.5rem;
  }
  
  .stat-bubble {
    padding: 0.5rem;
  }
  
  .stat-bubble-icon {
    font-size: 1.125rem;
  }
  
  .stat-bubble-value {
    font-size: 0.9375rem;
  }
  
  .nacho-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nacho-header-card {
    flex-direction: column;
    text-align: center;
  }
  
  .nacho-header-left {
    flex-direction: column;
  }
  
  .request-item {
    flex-wrap: wrap;
  }
  
  .request-status {
    text-align: left;
    width: 100%;
    margin-left: 3rem;
  }
  
  .notification-item {
    flex-wrap: wrap;
  }
  
  .notification-time {
    width: 100%;
    margin-left: 3rem;
  }
}

@media (max-width: 480px) {
  .nacho-stats-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   NACHO ADMIN STYLE - Extensiones para el rol admin
   Misma UX amable, funciones completas
   ============================================================ */

/* Badge de sección */
.section-badge {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.125rem 0.5rem;
  border-radius: 2rem;
  font-size: 0.625rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Banner urgente */
.urgente-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-left: 3px solid #f59e0b;
}
.dark .urgente-banner {
  background: linear-gradient(135deg, #422006 0%, #713f12 100%);
}

.urgente-banner-icon {
  font-size: 1.75rem;
}

.urgente-banner-content {
  flex: 1;
}

.urgente-banner-title {
  font-weight: 800;
  font-size: 0.9375rem;
  color: #78350f;
}
.dark .urgente-banner-title {
  color: #fde68a;
}

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

.urgente-banner-btn {
  background: #f59e0b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.urgente-banner-btn:hover {
  background: #d97706;
  gap: 0.5rem;
}

/* Request user */
.request-user {
  font-weight: 400;
  color: var(--muted-foreground);
  font-size: 0.7rem;
}

/* Request actions */
.request-actions {
  display: flex;
  gap: 0.375rem;
  flex-shrink: 0;
}

.action-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.action-btn.approve {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.action-btn.approve:hover {
  background: #10b981;
  color: white;
}
.action-btn.reject {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.action-btn.reject:hover {
  background: #ef4444;
  color: white;
}

/* Ver más */
.ver-mas {
  padding: 0.75rem 1rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

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

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

/* Profile card */
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-card-avatar {
  width: 52px;
  height: 52px;
  background: var(--gradient-primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

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

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

.profile-card-puesto {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.profile-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.profile-card-meta span {
  font-size: 0.625rem;
  background: var(--muted);
  padding: 0.125rem 0.5rem;
  border-radius: 2rem;
}

.profile-card-edit {
  font-size: 0.6875rem;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.2s ease;
}
.profile-card-edit:hover {
  transform: translateX(2px);
}

/* Activity list */
.activity-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity-icon svg {
  width: 16px;
  height: 16px;
}

.activity-info {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.125rem;
}

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

.activity-date {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* Link full */
.btn-link-full {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-link-full:hover {
  background: var(--primary);
  color: white;
}

/* Responsive para admin */
@media (max-width: 900px) {
  .nacho-two-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .request-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }
  
  .request-item {
    flex-wrap: wrap;
  }
  
  .request-date {
    width: 100%;
    margin-left: 3rem;
  }
}

@media (max-width: 640px) {
  .urgente-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-card {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-card-meta {
    justify-content: center;
  }
  
  .activity-item {
    flex-wrap: wrap;
  }
  
  .activity-date {
    width: 100%;
    margin-left: 3rem;
  }
}

/* ============================================================
   SIDEBAR MODERNO NACHO - Diseño fresco y actual
   ============================================================ */

.modern-sidebar {
  background: linear-gradient(180deg, var(--sidebar) 0%, rgba(10, 15, 25, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-right: none;
  position: relative;
  overflow-y: auto;
}

.modern-sidebar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Brand moderno */
.modern-sidebar-brand {
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.5rem;
}

.modern-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-logo-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.modern-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.modern-brand-badge {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.1875rem 0.625rem;
  background: rgba(0, 153, 204, 0.2);
  border-radius: 1rem;
  color: #2dd4bf;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navegación moderna */
.modern-sidebar-nav {
  flex: 1;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modern-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modern-nav-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  padding-left: 0.75rem;
}

.modern-nav-dot {
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.8;
}

.modern-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.modern-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.modern-nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: white;
  transform: translateX(2px);
}

.modern-nav-link.active {
  background: linear-gradient(90deg, rgba(0, 153, 204, 0.15), transparent);
  color: white;
  border-left: 2px solid var(--primary);
}

.modern-nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.modern-nav-icon svg {
  width: 18px;
  height: 18px;
}

.modern-nav-link:hover .modern-nav-icon,
.modern-nav-link.active .modern-nav-icon {
  opacity: 1;
}

.modern-nav-label-text {
  flex: 1;
}

.modern-nav-badge {
  font-size: 0.625rem;
  font-weight: 700;
  background: rgba(0, 153, 204, 0.25);
  color: #2dd4bf;
  padding: 0.125rem 0.5rem;
  border-radius: 2rem;
  min-width: 28px;
  text-align: center;
}

/* Footer usuario moderno */
.modern-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

.modern-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.03);
  transition: background 0.2s ease;
}

.modern-user-card:hover {
  background: rgba(255,255,255,0.06);
}

.modern-user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 153, 204, 0.3);
}

.modern-user-info {
  flex: 1;
  min-width: 0;
}

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

.modern-user-role {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modern-user-logout {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s ease;
}

.modern-user-logout svg {
  width: 16px;
  height: 16px;
}

.modern-user-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Scrollbar personalizado */
.modern-sidebar::-webkit-scrollbar {
  width: 4px;
}

.modern-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.modern-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

.modern-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

/* Responsive sidebar para móvil */
@media (max-width: 900px) {
  .modern-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: 1000;
  }

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

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================================
   REDESIGN V3 — Glassmorphism moderno + scroll independiente
   Todos los overrides van aquí para no tocar el código anterior
   ============================================================ */

/* ─── FIX SCROLL INDEPENDIENTE SIDEBAR / MAIN ─────────────── */
/* El body y el app ya NO hacen scroll — solo el .main */
html {
  height: 100%;
}
body {
  height: 100%;
  overflow: hidden;
}
.app {
  height: 100%;
  min-height: unset;
  overflow: hidden;
}
/* sidebar: deja de ser sticky, ocupa altura completa del flex/grid */
.sidebar,
.modern-sidebar {
  position: static !important;
  height: 100%;
}
/* El main es el único que scrollea */
.main {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.main::-webkit-scrollbar { width: 5px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

/* En móvil, el sidebar es position:fixed (fuera del flujo),
   el .main sigue siendo el scroll container, ok */
@media (max-width: 900px) {
  /* Body puede seguir siendo overflow:hidden porque
     el main scrollea y el sidebar es fixed */
  .app {
    height: 100vh;
    overflow: hidden;
  }
}

/* ─── FONDO CON GRADIENTE FLUIDO ──────────────────────────── */
body {
  background-color: #eef2ff;
  background-image:
    radial-gradient(ellipse 75% 60% at 0% 0%, rgba(0, 153, 204, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 100% 100%, rgba(139, 92, 246, 0.11) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 60% 40%, rgba(236, 72, 153, 0.05) 0%, transparent 65%);
}
.dark body {
  background-color: #0a0c10;
  background-image:
    radial-gradient(ellipse 75% 60% at 0% 0%, rgba(0, 153, 204, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 100% 100%, rgba(139, 92, 246, 0.07) 0%, transparent 60%);
}

/* ─── HERO CARD ────────────────────────────────────────────── */
.hero-card {
  background: linear-gradient(135deg, #0099cc 0%, #006fa8 55%, #7c3aed 100%);
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: white;
  box-shadow:
    0 8px 32px rgba(0, 153, 204, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  animation: slideUpFade 0.4s ease-out both;
}
/* Círculos decorativos en el hero */
.hero-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.hero-card::after {
  content: '';
  position: absolute;
  bottom: -25px;
  right: 22%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.hero-avatar {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.hero-text { position: relative; }

.hero-greeting {
  font-size: 0.9375rem;
  opacity: 0.90;
  margin-bottom: 0.3rem;
  font-weight: 400;
}
.hero-greeting strong {
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.82;
}
.hero-role svg { width: 14px; height: 14px; }

.hero-date-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
}
.hero-date-pill svg { width: 15px; height: 15px; }

/* ─── QUOTE CARD ───────────────────────────────────────────── */
.quote-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-left: 4px solid var(--primary);
  border-radius: 1.25rem;
  padding: 1rem 1.375rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  animation: slideUpFade 0.4s 0.05s ease-out both;
}
.quote-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--gradient-primary);
  border-radius: 0.875rem;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 153, 204, 0.30);
}
.quote-icon svg { width: 18px; height: 18px; }
.quote-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}

/* ─── ADMIN STATS ROW ──────────────────────────────────────── */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.25rem;
  padding: 1.25rem 1.375rem;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
  transition: all 0.25s ease;
  animation: slideUpFade 0.4s ease-out both;
}
.admin-stat-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.09),
    0 2px 8px rgba(0, 0, 0, 0.04);
}
.admin-stat-card:nth-child(1) { animation-delay: 0.08s; }
.admin-stat-card:nth-child(2) { animation-delay: 0.14s; }
.admin-stat-card:nth-child(3) { animation-delay: 0.20s; }

/* Iconos con gradientes semánticos tipo SaaS premium */
.admin-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: white;
}
.admin-stat-icon svg { width: 22px; height: 22px; }

.stat-blue   {
  background: linear-gradient(135deg, #0099cc 0%, #00b4d8 100%);
  box-shadow: 0 6px 16px rgba(0, 153, 204, 0.38);
}
.stat-amber  {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.38);
}
.stat-violet {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.38);
}
.stat-green  {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.38);
}
.stat-pink   {
  background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.38);
}

.admin-stat-val {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--foreground);
}
.admin-stat-unit {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  letter-spacing: 0;
}
.admin-stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ─── ALERT BANNER ─────────────────────────────────────────── */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 251, 235, 0.95);
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 1.25rem;
  padding: 1rem 1.375rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
  animation: slideUpFade 0.4s 0.18s ease-out both;
}
.dark .alert-banner {
  background: rgba(69, 26, 3, 0.90);
  border-color: #b45309;
}
.alert-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
  display: grid;
  place-items: center;
  color: white;
  flex-shrink: 0;
}
.alert-banner-icon svg { width: 20px; height: 20px; }
.alert-banner-content { flex: 1; min-width: 0; }
.alert-banner-title {
  font-weight: 800;
  font-size: 0.9375rem;
  color: #92400e;
  margin-bottom: 0.2rem;
}
.dark .alert-banner-title { color: #fde68a; }
.alert-banner-text {
  font-size: 0.75rem;
  color: #a16207;
  font-weight: 400;
}
.dark .alert-banner-text { color: #fcd34d; }
.alert-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 0.5625rem 1.125rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.30);
}
.alert-banner-btn svg { width: 16px; height: 16px; }
.alert-banner-btn:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.40);
}

/* ─── SECCIONES ADMIN (adm-section) ───────────────────────── */
.adm-section { margin-bottom: 1.5rem; }

.adm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.adm-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.01em;
}
.adm-section-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.adm-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  transition: gap 0.2s ease;
}
.adm-link:hover { gap: 0.5rem; }
.adm-link svg { width: 14px; height: 14px; }

/* ─── GLASS LIST ───────────────────────────────────────────── */
.glass-list {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.04),
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}
.dark .glass-list {
  background: rgba(17, 20, 28, 0.90);
  border-color: rgba(255, 255, 255, 0.05);
}

.glist-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease;
}
.glist-item:last-child { border-bottom: none; }
.glist-item:hover { background: rgba(0, 0, 0, 0.025); }
.dark .glist-item:hover { background: rgba(255, 255, 255, 0.03); }
.dark .glist-item { border-bottom-color: rgba(255, 255, 255, 0.05); }

.glist-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.875rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.glist-icon svg { width: 18px; height: 18px; }
.glist-item:hover .glist-icon { transform: scale(1.08); }

/* Tonos semánticos para glist-icon */
.glist-icon.is-primary    { background: rgba(0, 153, 204, 0.10); color: #0099cc; }
.glist-icon.is-success    { background: rgba(16, 185, 129, 0.10); color: #10b981; }
.glist-icon.is-warning    { background: rgba(245, 158, 11, 0.10); color: #f59e0b; }
.glist-icon.is-destructive{ background: rgba(239, 68, 68, 0.10);  color: #ef4444; }
.glist-icon.is-accent     { background: rgba(0, 180, 216, 0.10);  color: #00b4d8; }

.glist-info { flex: 1; min-width: 0; }

.glist-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.glist-user {
  font-weight: 400;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}
.glist-detail {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botones aprobar / rechazar */
.glist-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}
.glist-btn-approve {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}
.glist-btn-approve svg { width: 13px; height: 13px; }
.glist-btn-approve:hover {
  background: #10b981;
  color: white;
  transform: scale(1.04);
}
.glist-btn-reject {
  width: 32px;
  height: 32px;
  border-radius: 2rem;
  background: rgba(239, 68, 68, 0.10);
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.glist-btn-reject svg { width: 13px; height: 13px; }
.glist-btn-reject:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.04);
}

.glist-date {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 0.25rem;
}

.glist-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}
.dark .glist-footer { border-top-color: rgba(255, 255, 255, 0.05); }
.glist-ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap 0.2s ease;
}
.glist-ver-mas:hover { gap: 0.625rem; }
.glist-ver-mas svg { width: 14px; height: 14px; }

.glist-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted-foreground);
}
.glist-empty svg {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.875rem;
  color: #10b981;
}
.glist-empty p {
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.glist-empty small { font-size: 0.75rem; }

/* ─── TWO COLUMNS GRID ─────────────────────────────────────── */
.adm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ─── PROFILE CARD ─────────────────────────────────────────── */
.adm-profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}
.adm-profile-avatar {
  width: 52px;
  height: 52px;
  background: var(--gradient-primary);
  border-radius: 1rem;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 153, 204, 0.32);
  letter-spacing: -0.02em;
}
.adm-profile-info { flex: 1; min-width: 0; }
.adm-profile-name {
  font-weight: 800;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
  letter-spacing: -0.01em;
}
.adm-profile-puesto {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.adm-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.adm-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  background: var(--muted);
  padding: 0.2rem 0.5rem;
  border-radius: 2rem;
  color: var(--muted-foreground);
  font-weight: 500;
}
.adm-profile-meta svg { width: 11px; height: 11px; color: var(--primary); }

/* ─── VACATION CARD ────────────────────────────────────────── */
.adm-vacation-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.adm-vacation-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.adm-vacation-val {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.adm-vacation-lbl {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted-foreground);
  margin-top: 0.3rem;
  font-weight: 500;
}
.adm-vacation-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.adm-vacation-bar {
  height: 10px;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
}
.adm-vacation-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 999px;
  width: 0%;
  transition: width 1s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.adm-vacation-bar-lbl {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  text-align: center;
  font-family: var(--font-mono);
}
.adm-vacation-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.adm-vacation-btn svg { width: 15px; height: 15px; }
.adm-vacation-btn:hover { background: var(--primary); color: white; }

/* ─── ANIMACIONES DE ENTRADA ───────────────────────────────── */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.adm-section .glass-list,
.adm-section .adm-profile-card,
.adm-section .adm-vacation-card {
  animation: slideUpFade 0.4s ease-out both;
}

/* ─── RESPONSIVE NUEVAS SECCIONES ──────────────────────────── */
@media (max-width: 1024px) {
  .admin-stats-row { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 640px) {
  .hero-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }
  .hero-date-pill { align-self: flex-start; }
  .admin-stats-row { grid-template-columns: 1fr; }
  .glist-btn-approve span { display: none; }
  .glist-actions { gap: 0.25rem; }
}

@media (max-width: 480px) {
  .hero-greeting strong { font-size: 1.125rem; }
}
