/* Premium Design System for SIC Gelato */
/* Inspired by Apple and Google design principles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties for Premium Design System */
:root {
  /* Primary Brand Colors - Deep Red Palette */
  --sic-primary: #e11e48;
  --sic-primary-light: #f87171;
  --sic-primary-lighter: #fecaca;
  --sic-primary-dark: #dc2626;
  --sic-primary-darker: #b91c1c;
  --sic-primary-accent: #fbbf24; /* Gold accent for premium touches */

  /* Secondary Colors - Sophisticated Gray Scale */
  --sic-secondary: #6b7280;
  --sic-secondary-light: #9ca3af;
  --sic-secondary-dark: #374151;
  --sic-secondary-darker: #1f2937;

  /* Neutral Color System */
  --sic-white: #ffffff;
  --sic-gray-50: #f9fafb;
  --sic-gray-100: #f3f4f6;
  --sic-gray-200: #e5e7eb;
  --sic-gray-300: #d1d5db;
  --sic-gray-400: #9ca3af;
  --sic-gray-500: #6b7280;
  --sic-gray-600: #4b5563;
  --sic-gray-700: #374151;
  --sic-gray-800: #1f2937;
  --sic-gray-900: #111827;

  /* Premium Background Gradients */
  --sic-bg-gradient: #fef2f2; /* Solid light red tint for harmony with primary red */
  --sic-bg-secondary: var(--sic-gray-50);
  --sic-bg-premium: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(225, 30, 72, 0.05) 100%);
  --sic-bg-clean: #F9FAFB; /* Clean white/light gray background for premium feel */
  --sic-bg-animated: linear-gradient(-45deg, #fef2f2, #fef7f7, #fef2f2, #fce7e7); /* Subtle animated gradient */

  /* Typography System */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing Scale (8px base) */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem;  /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem;    /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem;  /* 24px */
  --space-8: 2rem;    /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem;   /* 48px */
  --space-16: 4rem;   /* 64px */

  /* Border Radius Scale */
  --radius-sm: 0.375rem; /* 6px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-2xl: 1.5rem;  /* 24px */
  --radius-full: 9999px;

  /* Shadow System */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(225, 30, 72, 0.3);
  --shadow-glow-hover: 0 0 30px rgba(225, 30, 72, 0.5);

  /* Animation System */
  --animation-duration-fast: 0.15s;
  --animation-duration-normal: 0.3s;
  --animation-duration-slow: 0.6s;
  --animation-easing: cubic-bezier(0.4, 0.0, 0.2, 1);
  --animation-easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --animation-easing-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Glassmorphism System */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
  --glass-shadow-strong: 0 16px 64px rgba(31, 38, 135, 0.2);
  --glass-bg-premium: rgba(255, 255, 255, 0.85); /* 85% opacity for premium glassmorphism */
  --glass-shadow-floating: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Defined floating shadow */

  /* Dark Mode Variables */
  --sic-dark-bg: #0f172a;
  --sic-dark-surface: #1e293b;
  --sic-dark-surface-hover: #334155;
  --sic-dark-surface-active: #475569;
  --sic-dark-text: #f1f5f9;
  --sic-dark-text-secondary: #94a3b8;
  --sic-dark-text-muted: #64748b;
  --sic-dark-border: rgba(255, 255, 255, 0.1);
  --sic-dark-glass-bg: rgba(30, 41, 59, 0.8);
  --sic-dark-glass-border: rgba(255, 255, 255, 0.08);
}

/* Premium Utility Classes */
.bg-sic-primary { background-color: var(--sic-primary); }
.bg-sic-primary-light { background-color: var(--sic-primary-light); }
.bg-sic-primary-lighter { background-color: var(--sic-primary-lighter); }
.bg-sic-primary-dark { background-color: var(--sic-primary-dark); }
.bg-sic-primary-darker { background-color: var(--sic-primary-darker); }
.bg-sic-accent { background-color: var(--sic-primary-accent); }

.text-sic-primary { color: var(--sic-primary); }
.text-sic-primary-light { color: var(--sic-primary-light); }
.text-sic-primary-dark { color: var(--sic-primary-dark); }
.text-sic-accent { color: var(--sic-primary-accent); }

.border-sic-primary { border-color: var(--sic-primary); }
.border-sic-primary-light { border-color: var(--sic-primary-light); }
.border-sic-accent { border-color: var(--sic-primary-accent); }

.bg-gradient-sic { background: var(--sic-bg-gradient); }
.bg-sic-secondary { background-color: var(--sic-bg-secondary); }
.bg-premium { background: var(--sic-bg-premium); }

/* Typography Utilities */
.font-display { font-family: var(--font-family-display); }
.font-primary { font-family: var(--font-family-primary); }
.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Premium Typography Classes */
.currency-usd {
  font-weight: 600;
  color: var(--sic-primary);
}

.currency-ves {
  font-weight: 400;
  color: var(--sic-secondary);
  opacity: 0.8;
}

/* Spacing Utilities */
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

/* Border Radius Utilities */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-glow-hover:hover { box-shadow: var(--shadow-glow-hover); }

/* Advanced Utility Classes */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(225, 30, 72, 0.3);
}

.shadow-glow-hover:hover {
  box-shadow: 0 0 30px rgba(225, 30, 72, 0.5);
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from { box-shadow: 0 0 20px rgba(225, 30, 72, 0.3); }
  to { box-shadow: 0 0 30px rgba(225, 30, 72, 0.6); }
}

/* Floating Bubbles Animation */
.floating-bubbles {
  position: relative;
  overflow: hidden;
}

.floating-bubbles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(225, 30, 72, 0.15); /* Increased opacity */
  border: 1px solid rgba(225, 30, 72, 0.3); /* Increased border opacity */
  animation: float-up 8s linear infinite;
  pointer-events: none;
  z-index: -1; /* Ensure bubbles are behind content */
}

.bubble:nth-child(1) {
  width: 30px; /* Increased size */
  height: 30px; /* Increased size */
  left: 10%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.bubble:nth-child(2) {
  width: 25px; /* Increased size */
  height: 25px; /* Increased size */
  left: 20%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.bubble:nth-child(3) {
  width: 35px; /* Increased size */
  height: 35px; /* Increased size */
  left: 35%;
  animation-delay: 4s;
  animation-duration: 8s;
}

.bubble:nth-child(4) {
  width: 28px; /* Increased size */
  height: 28px; /* Increased size */
  left: 50%;
  animation-delay: 1s;
  animation-duration: 14s;
}

.bubble:nth-child(5) {
  width: 32px; /* Increased size */
  height: 32px; /* Increased size */
  left: 65%;
  animation-delay: 3s;
  animation-duration: 9s;
}

.bubble:nth-child(6) {
  width: 26px; /* Increased size */
  height: 26px; /* Increased size */
  left: 80%;
  animation-delay: 5s;
  animation-duration: 11s;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0.5); /* Start with a visible scale */
    opacity: 0;
  }
  10% {
    opacity: 0.9; /* Increased opacity */
    transform: translateY(90vh) scale(1); /* Ensure visible scale */
  }
  90% {
    opacity: 0.9; /* Increased opacity */
    transform: translateY(-50px) scale(1.2); /* Ensure visible scale and slight growth */
  }
  100% {
    transform: translateY(-100px) scale(0.5); /* End with a visible scale */
    opacity: 0;
  }
}

/* Premium Icon Styles */
.icon-outline {
  fill: none;
  stroke: var(--sic-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.animate-slide-in {
  animation: slide-in var(--animation-duration-normal) var(--animation-easing);
}

@keyframes slide-in {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.animate-slide-in-up {
  animation: slide-in-up 1.5s var(--animation-easing);
}

@keyframes slide-in-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
  animation: fade-in var(--animation-duration-normal) var(--animation-easing);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-scale-in {
  animation: scale-in var(--animation-duration-normal) var(--animation-easing-bounce);
}

@keyframes scale-in {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.animate-bounce-in {
  animation: bounce-in var(--animation-duration-slow) var(--animation-easing-bounce);
}

@keyframes bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* Premium Button Components */
.btn-premium {
  background: var(--sic-primary) !important;
  color: var(--sic-white) !important;
  border: 2px solid var(--sic-primary-dark) !important;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-semibold);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.25rem;
  transition: all var(--animation-duration-normal) var(--animation-easing);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  will-change: transform, box-shadow;
  -webkit-tap-highlight-color: transparent;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s var(--animation-easing);
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover {
  background: var(--sic-primary-dark) !important;
  border-color: var(--sic-primary-darker) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow-hover);
}

.btn-premium:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s var(--animation-easing);
}

.btn-premium:focus {
  outline: none;
  box-shadow: var(--shadow-glow), 0 0 0 3px rgba(225, 30, 72, 0.2);
  border-color: var(--sic-primary-dark) !important;
}

/* Secondary Button */
.btn-secondary {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(249, 250, 251, 0.8) 50%,
    rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: var(--sic-secondary-darker);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  box-shadow:
    0 4px 16px rgba(31, 38, 135, 0.08),
    0 2px 8px rgba(31, 38, 135, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  will-change: transform, background-color, box-shadow;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(107, 114, 128, 0.1) 50%,
    transparent 100%);
  transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(249, 250, 251, 0.9) 50%,
    rgba(255, 255, 255, 0.95) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(31, 38, 135, 0.12),
    0 4px 12px rgba(31, 38, 135, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--sic-primary);
  border: 1px solid var(--sic-primary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  transition: all var(--animation-duration-normal) var(--animation-easing);
  cursor: pointer;
  position: relative;
  will-change: transform, background-color;
}

.btn-ghost:hover {
  background: var(--sic-primary);
  color: var(--sic-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sic-secondary {
  background: linear-gradient(135deg, var(--sic-secondary) 0%, var(--sic-secondary-dark) 100%);
  color: var(--sic-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all var(--animation-duration-fast) var(--animation-easing);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-sic-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-sic-secondary:hover::before {
  left: 100%;
}

.btn-sic-secondary:hover {
  background: linear-gradient(135deg, var(--sic-secondary-dark) 0%, #1f2937 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.btn-sic-secondary:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

/* Loading Button States */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Premium Card Components */
.card-premium {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 25%,
    rgba(249, 250, 251, 0.9) 50%,
    rgba(225, 30, 72, 0.03) 75%,
    rgba(225, 30, 72, 0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-2xl);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.12),
    0 4px 16px rgba(31, 38, 135, 0.08),
    0 2px 8px rgba(31, 38, 135, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow, opacity;
  contain: layout style paint;
  font-family: var(--font-family-primary);
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(225, 30, 72, 0.08) 25%,
    rgba(251, 191, 36, 0.06) 50%,
    rgba(225, 30, 72, 0.08) 75%,
    transparent 100%);
  transition: left 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.card-premium::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
    rgba(225, 30, 72, 0.03) 0%,
    rgba(251, 191, 36, 0.02) 25%,
    transparent 50%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
  pointer-events: none;
}

.card-premium:hover::before {
  left: 100%;
}

.card-premium:hover::after {
  opacity: 1;
}

.card-premium:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow:
    0 25px 50px -12px rgba(31, 38, 135, 0.25),
    0 12px 24px -6px rgba(31, 38, 135, 0.15),
    0 6px 12px -3px rgba(31, 38, 135, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(225, 30, 72, 0.3);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 25%,
    rgba(249, 250, 251, 0.95) 50%,
    rgba(225, 30, 72, 0.05) 75%,
    rgba(225, 30, 72, 0.02) 100%);
}

.card-premium:active {
  transform: translateY(-3px) scale(1.015);
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 15px 35px -8px rgba(31, 38, 135, 0.2),
    0 8px 16px -4px rgba(31, 38, 135, 0.12),
    0 4px 8px -2px rgba(31, 38, 135, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.card-premium > * {
  position: relative;
  z-index: 2;
}

/* Statistics Cards - Extra Wide Format */
.card-stats-wide {
  aspect-ratio: 5 / 1;
  min-height: 100px;
  max-height: 120px;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 25%,
    rgba(249, 250, 251, 0.9) 50%,
    rgba(225, 30, 72, 0.03) 75%,
    rgba(225, 30, 72, 0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.12),
    0 4px 16px rgba(31, 38, 135, 0.08),
    0 2px 8px rgba(31, 38, 135, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow, opacity;
  contain: layout style paint;
  font-family: var(--font-family-primary);
}

.card-stats-wide::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(225, 30, 72, 0.08) 25%,
    rgba(251, 191, 36, 0.06) 50%,
    rgba(225, 30, 72, 0.08) 75%,
    transparent 100%);
  transition: left 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.card-stats-wide::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
    rgba(225, 30, 72, 0.03) 0%,
    rgba(251, 191, 36, 0.02) 25%,
    transparent 50%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
  pointer-events: none;
}

.card-stats-wide:hover::before {
  left: 100%;
}

.card-stats-wide:hover::after {
  opacity: 1;
}

.card-stats-wide:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow:
    0 25px 50px -12px rgba(31, 38, 135, 0.25),
    0 12px 24px -6px rgba(31, 38, 135, 0.15),
    0 6px 12px -3px rgba(31, 38, 135, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(225, 30, 72, 0.3);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 25%,
    rgba(249, 250, 251, 0.95) 50%,
    rgba(225, 30, 72, 0.05) 75%,
    rgba(225, 30, 72, 0.02) 100%);
}

.card-stats-wide:active {
  transform: translateY(-3px) scale(1.015);
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 15px 35px -8px rgba(31, 38, 135, 0.2),
    0 8px 16px -4px rgba(31, 38, 135, 0.12),
    0 4px 8px -2px rgba(31, 38, 135, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.card-stats-wide > * {
  position: relative;
  z-index: 2;
}

/* Statistics Cards - Unique Gradient Themes (Wide Format) */
.card-stats-products {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(34, 197, 94, 0.02) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(34, 197, 94, 0.03) 75%,
    rgba(34, 197, 94, 0.01) 100%);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.card-stats-products:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(34, 197, 94, 0.04) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(34, 197, 94, 0.05) 75%,
    rgba(34, 197, 94, 0.02) 100%);
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow:
    0 25px 50px -12px rgba(34, 197, 94, 0.15),
    0 12px 24px -6px rgba(34, 197, 94, 0.1),
    0 6px 12px -3px rgba(34, 197, 94, 0.08);
}

.card-stats-orders {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(59, 130, 246, 0.02) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(59, 130, 246, 0.03) 75%,
    rgba(59, 130, 246, 0.01) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.card-stats-orders:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(59, 130, 246, 0.04) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(59, 130, 246, 0.05) 75%,
    rgba(59, 130, 246, 0.02) 100%);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow:
    0 25px 50px -12px rgba(59, 130, 246, 0.15),
    0 12px 24px -6px rgba(59, 130, 246, 0.1),
    0 6px 12px -3px rgba(59, 130, 246, 0.08);
}

.card-stats-revenue {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(225, 30, 72, 0.02) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(225, 30, 72, 0.03) 75%,
    rgba(225, 30, 72, 0.01) 100%);
  border: 1px solid rgba(225, 30, 72, 0.15);
}

.card-stats-revenue:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(225, 30, 72, 0.04) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(225, 30, 72, 0.05) 75%,
    rgba(225, 30, 72, 0.02) 100%);
  border-color: rgba(225, 30, 72, 0.25);
  box-shadow:
    0 25px 50px -12px rgba(225, 30, 72, 0.15),
    0 12px 24px -6px rgba(225, 30, 72, 0.1),
    0 6px 12px -3px rgba(225, 30, 72, 0.08);
}

.card-stats-investment {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 158, 11, 0.02) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(245, 158, 11, 0.03) 75%,
    rgba(245, 158, 11, 0.01) 100%);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.card-stats-investment:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(245, 158, 11, 0.04) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(245, 158, 11, 0.05) 75%,
    rgba(245, 158, 11, 0.02) 100%);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow:
    0 25px 50px -12px rgba(245, 158, 11, 0.15),
    0 12px 24px -6px rgba(245, 158, 11, 0.1),
    0 6px 12px -3px rgba(245, 158, 11, 0.08);
}

/* Action Cards - Interactive Gradient Themes */
.card-action-inventory {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(139, 92, 246, 0.02) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(139, 92, 246, 0.03) 75%,
    rgba(139, 92, 246, 0.01) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.card-action-inventory:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(139, 92, 246, 0.05) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(139, 92, 246, 0.06) 75%,
    rgba(139, 92, 246, 0.03) 100%);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow:
    0 25px 50px -12px rgba(139, 92, 246, 0.2),
    0 12px 24px -6px rgba(139, 92, 246, 0.15),
    0 6px 12px -3px rgba(139, 92, 246, 0.1);
}

.card-action-orders {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(16, 185, 129, 0.02) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(16, 185, 129, 0.03) 75%,
    rgba(16, 185, 129, 0.01) 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.card-action-orders:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(16, 185, 129, 0.05) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(16, 185, 129, 0.06) 75%,
    rgba(16, 185, 129, 0.03) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow:
    0 25px 50px -12px rgba(16, 185, 129, 0.2),
    0 12px 24px -6px rgba(16, 185, 129, 0.15),
    0 6px 12px -3px rgba(16, 185, 129, 0.1);
}

.card-action-reports {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(239, 68, 68, 0.02) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(239, 68, 68, 0.03) 75%,
    rgba(239, 68, 68, 0.01) 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.card-action-reports:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(239, 68, 68, 0.05) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(239, 68, 68, 0.06) 75%,
    rgba(239, 68, 68, 0.03) 100%);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow:
    0 25px 50px -12px rgba(239, 68, 68, 0.2),
    0 12px 24px -6px rgba(239, 68, 68, 0.15),
    0 6px 12px -3px rgba(239, 68, 68, 0.1);
}

.card-action-new-order {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(251, 191, 36, 0.02) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(251, 191, 36, 0.03) 75%,
    rgba(251, 191, 36, 0.01) 100%);
  border: 1px solid rgba(251, 191, 36, 0.15);
}

.card-action-new-order:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(251, 191, 36, 0.05) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(251, 191, 36, 0.06) 75%,
    rgba(251, 191, 36, 0.03) 100%);
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow:
    0 25px 50px -12px rgba(251, 191, 36, 0.2),
    0 12px 24px -6px rgba(251, 191, 36, 0.15),
    0 6px 12px -3px rgba(251, 191, 36, 0.1);
}

.card-action-kitchen {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(236, 72, 153, 0.02) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(236, 72, 153, 0.03) 75%,
    rgba(236, 72, 153, 0.01) 100%);
  border: 1px solid rgba(236, 72, 153, 0.15);
}

.card-action-kitchen:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(236, 72, 153, 0.05) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(236, 72, 153, 0.06) 75%,
    rgba(236, 72, 153, 0.03) 100%);
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow:
    0 25px 50px -12px rgba(236, 72, 153, 0.2),
    0 12px 24px -6px rgba(236, 72, 153, 0.15),
    0 6px 12px -3px rgba(236, 72, 153, 0.1);
}

.card-action-settings {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(107, 114, 128, 0.02) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(107, 114, 128, 0.03) 75%,
    rgba(107, 114, 128, 0.01) 100%);
  border: 1px solid rgba(107, 114, 128, 0.15);
}

.card-action-settings:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(107, 114, 128, 0.05) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(107, 114, 128, 0.06) 75%,
    rgba(107, 114, 128, 0.03) 100%);
  border-color: rgba(107, 114, 128, 0.3);
  box-shadow:
    0 25px 50px -12px rgba(107, 114, 128, 0.2),
    0 12px 24px -6px rgba(107, 114, 128, 0.15),
    0 6px 12px -3px rgba(107, 114, 128, 0.1);
}

/* Card Variants */
.card-solid {
  background: var(--sic-white);
  border: 1px solid var(--sic-gray-200);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-solid:hover {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--sic-primary-light);
}

/* Enhanced Reports Page Styles */
.card-stats-reports {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 25%,
    rgba(249, 250, 251, 0.9) 50%,
    rgba(225, 30, 72, 0.03) 75%,
    rgba(225, 30, 72, 0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-2xl);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.12),
    0 4px 16px rgba(31, 38, 135, 0.08),
    0 2px 8px rgba(31, 38, 135, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow, opacity;
  contain: layout style paint;
}

.card-stats-reports::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(225, 30, 72, 0.08) 25%,
    rgba(251, 191, 36, 0.06) 50%,
    rgba(225, 30, 72, 0.08) 75%,
    transparent 100%);
  transition: left 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.card-stats-reports::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
    rgba(225, 30, 72, 0.03) 0%,
    rgba(251, 191, 36, 0.02) 25%,
    transparent 50%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
  pointer-events: none;
}

.card-stats-reports:hover::before {
  left: 100%;
}

.card-stats-reports:hover::after {
  opacity: 1;
}

.card-stats-reports:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 25px 50px -12px rgba(31, 38, 135, 0.25),
    0 12px 24px -6px rgba(31, 38, 135, 0.15),
    0 6px 12px -3px rgba(31, 38, 135, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(225, 30, 72, 0.3);
}

.card-stats-reports > * {
  position: relative;
  z-index: 2;
}

/* Chart Container Enhancements */
.chart-container {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(249, 250, 251, 0.8) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--animation-duration-normal) var(--animation-easing);
}

.chart-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Product Row Enhanced Styling */
.product-row {
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  border-left: 4px solid transparent;
}

.product-row:hover {
  border-left-color: var(--sic-primary);
  background: linear-gradient(90deg,
    rgba(225, 30, 72, 0.02) 0%,
    rgba(225, 30, 72, 0.05) 50%,
    rgba(225, 30, 72, 0.02) 100%);
}

/* View Toggle Buttons */
button[title="Vista de lista"], button[title="Vista de tarjetas"] {
  transition: all var(--animation-duration-normal) var(--animation-easing);
  border-radius: var(--radius-lg);
}

button[title="Vista de lista"]:hover, button[title="Vista de tarjetas"]:hover {
  background: var(--sic-secondary-light);
  transform: scale(1.05);
}

/* Card View Enhancements */
.card-view .bg-white {
  transition: all var(--animation-duration-normal) var(--animation-easing);
}

.card-view .bg-white:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Progress Fill Animation */
.progress-fill {
  background: linear-gradient(90deg,
    var(--sic-primary) 0%,
    var(--sic-primary-light) 50%,
    var(--sic-primary-accent) 100%);
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%);
  animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Counter Number Animation */
.counter-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Enhanced Mobile Responsiveness for Reports */
@media (max-width: 768px) {
  .card-stats-reports {
    padding: 1rem;
  }

  .card-stats-reports .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .chart-container {
    padding: var(--space-2);
  }

  .card-view .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-row td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 640px) {
  .card-stats-reports {
    margin: 0 0.5rem;
    border-radius: var(--radius-xl);
  }

  .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Enhanced Orders Page Styles */
.card-stats-orders {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 25%,
    rgba(249, 250, 251, 0.9) 50%,
    rgba(225, 30, 72, 0.03) 75%,
    rgba(225, 30, 72, 0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-2xl);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.12),
    0 4px 16px rgba(31, 38, 135, 0.08),
    0 2px 8px rgba(31, 38, 135, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow, opacity;
  contain: layout style paint;
}

.card-stats-orders::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(225, 30, 72, 0.08) 25%,
    rgba(251, 191, 36, 0.06) 50%,
    rgba(225, 30, 72, 0.08) 75%,
    transparent 100%);
  transition: left 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.card-stats-orders::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
    rgba(225, 30, 72, 0.03) 0%,
    rgba(251, 191, 36, 0.02) 25%,
    transparent 50%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
  pointer-events: none;
}

.card-stats-orders:hover::before {
  left: 100%;
}

.card-stats-orders:hover::after {
  opacity: 1;
}

.card-stats-orders:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 25px 50px -12px rgba(31, 38, 135, 0.25),
    0 12px 24px -6px rgba(31, 38, 135, 0.15),
    0 6px 12px -3px rgba(31, 38, 135, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(225, 30, 72, 0.3);
}

.card-stats-orders > * {
  position: relative;
  z-index: 2;
}

/* Status Select Enhancement */
.status-select {
  background: linear-gradient(135deg, var(--sic-white) 0%, var(--sic-gray-50) 100%);
  border: 2px solid var(--sic-gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--animation-duration-normal) var(--animation-easing);
  position: relative;
  overflow: hidden;
}

.status-select:focus {
  border-color: var(--sic-primary);
  box-shadow: 0 0 0 3px rgba(225, 30, 72, 0.1);
  transform: translateY(-1px);
}

.status-select:hover {
  border-color: var(--sic-primary-light);
  background: linear-gradient(135deg, var(--sic-white) 0%, var(--sic-gray-100) 100%);
}

/* Order Row Enhanced Styling */
.order-row {
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  border-left: 4px solid transparent;
}

.order-row:hover {
  border-left-color: var(--sic-primary);
  background: linear-gradient(90deg,
    rgba(225, 30, 72, 0.02) 0%,
    rgba(225, 30, 72, 0.05) 50%,
    rgba(225, 30, 72, 0.02) 100%);
}

/* Progress Fill Animation */
.progress-fill {
  background: linear-gradient(90deg,
    var(--sic-primary) 0%,
    var(--sic-primary-light) 50%,
    var(--sic-primary-accent) 100%);
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%);
  animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Search and Filter Enhancements */
#searchOrders, #statusFilter {
  background: linear-gradient(135deg, var(--sic-white) 0%, var(--sic-gray-50) 100%);
  border: 2px solid var(--sic-gray-200);
  transition: all var(--animation-duration-normal) var(--animation-easing);
}

#searchOrders:focus, #statusFilter:focus {
  border-color: var(--sic-primary);
  box-shadow: 0 0 0 3px rgba(225, 30, 72, 0.1);
  background: var(--sic-white);
  transform: translateY(-1px);
}

/* Status Badge Enhanced */
.status-badge {
  transition: all var(--animation-duration-normal) var(--animation-easing);
  position: relative;
  overflow: hidden;
}

.status-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%);
  transition: left 0.5s var(--animation-easing);
}

.status-badge:hover::before {
  left: 100%;
}

/* Table Header Gradient */
thead tr {
  background: linear-gradient(90deg,
    var(--sic-secondary-light) 0%,
    var(--sic-gray-100) 50%,
    var(--sic-secondary-light) 100%);
  background-size: 200% 100%;
  animation: table-header-flow 4s ease-in-out infinite;
}

@keyframes table-header-flow {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

/* Counter Number Animation */
.counter-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Enhanced Mobile Responsiveness for Orders */
@media (max-width: 768px) {
  .card-stats-orders {
    padding: 1rem;
  }

  .card-stats-orders .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .order-row td {
    padding: 0.75rem 0.5rem;
  }

  .order-row .flex.items-center {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  #searchOrders, #statusFilter {
    width: 100%;
  }

  .card-header .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .card-stats-orders {
    margin: 0 0.5rem;
    border-radius: var(--radius-xl);
  }

  .status-select {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .order-row {
    font-size: 0.875rem;
  }
}

.card-gradient {
  background: linear-gradient(135deg, var(--sic-white) 0%, var(--sic-gray-50) 100%);
  border: 1px solid var(--sic-gray-200);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-interactive {
  cursor: pointer;
  transition: all var(--animation-duration-normal) cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform, opacity;
}

.card-interactive:hover {
  transform: translateY(-2px) scale(1.01);
  opacity: 0.95;
}

.card-interactive:active {
  transform: translateY(0) scale(0.99);
  transition: all 0.1s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Card Content Areas */
.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--glass-border);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.02);
}

/* Interactive Card States */
.card-interactive {
  cursor: pointer;
  transition: all var(--animation-duration-normal) cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform, opacity;
}

.card-interactive:hover {
  transform: translateY(-3px) scale(1.015);
  opacity: 0.96;
}

.card-interactive:active {
  transform: translateY(-1px) scale(1.005);
  transition: all 0.1s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Card Variants */
.card-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card-gradient {
  background: linear-gradient(135deg, var(--sic-white) 0%, var(--sic-gray-50) 100%);
}

.card-animated {
  animation: card-entrance var(--animation-duration-slow) var(--animation-easing);
}

@keyframes card-entrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Logo Styles */
.logo-sic {
  max-width: 100%;
  height: auto;
  max-height: 60px; /* Smaller logo */
  transition: all var(--animation-duration-normal) var(--animation-easing);
  margin-top: 10px;
}

@media (max-width: 768px) {
  .logo-sic {
    max-height: 45px;
  }
}

/* Premium Navigation System */
.nav-premium {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 25%,
    rgba(249, 250, 251, 0.9) 50%,
    rgba(225, 30, 72, 0.02) 75%,
    rgba(225, 30, 72, 0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 20px rgba(31, 38, 135, 0.08),
    0 2px 10px rgba(31, 38, 135, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: sticky;
  top: 0;
  z-index: 50;
  will-change: background-color, box-shadow, backdrop-filter;
}

.nav-premium:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 25%,
    rgba(249, 250, 251, 0.95) 50%,
    rgba(225, 30, 72, 0.03) 75%,
    rgba(225, 30, 72, 0.02) 100%);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.12),
    0 4px 16px rgba(31, 38, 135, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-premium .nav-brand {
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, filter;
  position: relative;
}

.nav-premium .nav-brand::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.nav-premium .nav-brand:hover {
  transform: scale(1.02);
}

.nav-premium .nav-brand:hover::before {
  opacity: 0.7;
}

.nav-premium .nav-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--animation-duration-normal) var(--animation-easing);
}

.nav-premium .nav-logo:hover {
  transform: scale(1.05);

}

.nav-premium .nav-title {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
  background: linear-gradient(135deg,
    var(--sic-primary) 0%,
    var(--sic-primary-dark) 50%,
    var(--sic-primary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: var(--space-4);
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(225, 30, 72, 0.1);
  position: relative;
}

.nav-premium .nav-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    var(--sic-primary) 0%,
    var(--sic-primary-accent) 50%,
    var(--sic-primary) 100%);
  border-radius: 1px;
  opacity: 0.8;
}

.nav-premium .nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-premium .nav-link {
  color: var(--sic-secondary-darker);
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  will-change: color, background-color, transform;
  overflow: hidden;
}

.nav-premium .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(225, 30, 72, 0.08) 25%,
    rgba(251, 191, 36, 0.06) 50%,
    rgba(225, 30, 72, 0.08) 75%,
    transparent 100%);
  transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.nav-premium .nav-link:hover {
  color: var(--sic-primary);
  background: linear-gradient(135deg,
    rgba(225, 30, 72, 0.05) 0%,
    rgba(251, 191, 36, 0.03) 50%,
    rgba(225, 30, 72, 0.05) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 30, 72, 0.15);
}

.nav-premium .nav-link:hover::before {
  left: 100%;
}

.nav-premium .nav-link.active {
  color: var(--sic-primary);
  background: linear-gradient(135deg,
    rgba(225, 30, 72, 0.08) 0%,
    rgba(251, 191, 36, 0.05) 50%,
    rgba(225, 30, 72, 0.08) 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(225, 30, 72, 0.12);
}

.nav-premium .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--sic-primary) 0%,
    var(--sic-primary-accent) 50%,
    var(--sic-primary) 100%);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
}

.nav-premium .nav-link.active::after,
.nav-premium .nav-link:hover::after {
  width: 80%;
}


/* Premium Responsive Design System */
@media (max-width: 1024px) {
  .card-premium:hover {
    transform: translateY(-4px) scale(1.015);
  }

  .card-interactive:hover {
    transform: translateY(-3px) scale(1.015);
  }

  .card-stats-products:hover,
  .card-stats-orders:hover,
  .card-stats-revenue:hover,
  .card-stats-investment:hover,
  .card-action-inventory:hover,
  .card-action-orders:hover,
  .card-action-reports:hover,
  .card-action-new-order:hover,
  .card-action-kitchen:hover,
  .card-action-settings:hover {
    transform: translateY(-4px) scale(1.015);
  }

  .btn-premium:hover,
  .btn-secondary:hover,
  .btn-ghost:hover {
    transform: translateY(-2px) scale(1.01);
  }

  :root {
    --space-8: 1.5rem;
    --space-12: 2.5rem;
    --space-16: 3rem;
  }
}

@media (max-width: 768px) {
  .card-premium {
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
  }

  .card-premium:hover {
    transform: translateY(-3px) scale(1.01);
  }

  .card-interactive:hover {
    transform: translateY(-2px) scale(1.01);
  }

  .card-stats-products:hover,
  .card-stats-orders:hover,
  .card-stats-revenue:hover,
  .card-stats-investment:hover,
  .card-action-inventory:hover,
  .card-action-orders:hover,
  .card-action-reports:hover,
  .card-action-new-order:hover,
  .card-action-kitchen:hover,
  .card-action-settings:hover {
    transform: translateY(-3px) scale(1.01);
  }

  .btn-premium,
  .btn-secondary,
  .btn-ghost {
    padding: var(--space-3) var(--space-4);
    font-size: 0.875rem;
  }

  .nav-premium .nav-title {
    font-size: 1rem;
  }

  .notification {
    left: var(--space-3);
    right: var(--space-3);
    min-width: auto;
    max-width: none;
  }

  .toast-container {
    bottom: var(--space-3);
    right: var(--space-3);
    left: var(--space-3);
  }

  .toast {
    max-width: none;
  }

  :root {
    --space-6: 1rem;
    --space-8: 1.5rem;
    --space-10: 2rem;
    --space-12: 2rem;
    --space-16: 2.5rem;
  }
}

@media (max-width: 640px) {
  .nav-premium {
    padding: 0.75rem 1rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }

  .nav-premium .nav-menu {
    display: none;
  }

  .nav-premium .nav-brand {
    margin-left: auto;
    margin-right: auto;
  }

  .nav-premium .nav-title {
    font-size: 1.25rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .card-premium {
    margin-bottom: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .card-stats-wide {
    aspect-ratio: auto;
    min-height: 90px;
    max-height: 100px;
    padding: 1rem 1.25rem;
    margin-bottom: var(--space-3);
  }

  .card-premium:hover,
  .card-stats-wide:hover {
    transform: none;
  }

  .card-interactive:hover {
    transform: none;
  }

  .btn-secondary {
    padding: var(--space-2) var(--space-4);
    font-size: 0.8125rem;
  }

  :root {
    --space-4: 0.75rem;
    --space-6: 1rem;
    --space-8: 1.25rem;
  }
}

@media (max-width: 480px) {
  .card-premium:hover {
    transform: none;
    box-shadow:
      0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  .card-interactive:hover {
    transform: none;
    opacity: 1;
  }

  .btn-premium:hover,
  .btn-secondary:hover,
  .btn-ghost:hover {
    transform: none;
  }

  .logo-sic:hover {
    transform: none;
  }

  .nav-premium .nav-title {
    display: none;
  }

  .notification {
    top: var(--space-3);
    border-radius: var(--radius-lg);
  }

  :root {
    --space-2: 0.375rem;
    --space-3: 0.5rem;
    --space-4: 0.75rem;
    --space-6: 0.875rem;
    --space-8: 1rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .nav-premium:hover {
    background: inherit;
    box-shadow: inherit;
  }

  .nav-premium .nav-brand:hover {
    transform: none;
    filter: none;
  }

  .nav-premium .nav-brand:hover::before {
    opacity: 0;
  }

  .nav-premium .nav-link:hover {
    color: inherit;
    background: none;
    transform: none;
    box-shadow: none;
  }

  .nav-premium .nav-link:hover::before {
    left: -100%;
  }

  .nav-premium .nav-link:hover::after {
    width: 0;
  }

  .card-premium:hover,
  .card-premium:active,
  .card-stats-wide:hover,
  .card-stats-wide:active {
    transform: none;
    box-shadow:
      0 8px 32px rgba(31, 38, 135, 0.12),
      0 4px 16px rgba(31, 38, 135, 0.08),
      0 2px 8px rgba(31, 38, 135, 0.06);
  }

  .card-interactive:hover,
  .card-interactive:active {
    transform: none;
    opacity: 1;
  }

  .card-stats-products:hover,
  .card-stats-orders:hover,
  .card-stats-revenue:hover,
  .card-stats-investment:hover,
  .card-action-inventory:hover,
  .card-action-orders:hover,
  .card-action-reports:hover,
  .card-action-new-order:hover,
  .card-action-kitchen:hover,
  .card-action-settings:hover {
    transform: none;
    box-shadow: inherit;
  }

  .btn-premium:hover,
  .btn-premium:active,
  .btn-secondary:hover,
  .btn-secondary:active,
  .btn-ghost:hover,
  .btn-ghost:active {
    transform: none;
  }

  .btn-secondary:hover::before {
    left: -100%;
  }

  /* Enhanced touch targets for mobile */
  .card-interactive,
  .card-stats-wide {
    min-height: 120px;
    padding: 1.5rem;
  }

  .btn-premium,
  .btn-secondary,
  .btn-ghost {
    min-height: 48px;
    padding: 0.875rem 1.5rem;
  }

  .nav-premium .nav-link {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-premium,
  .btn-premium,
  .nav-premium {
    border-width: 0.5px;
  }
}

/* Premium Accessibility & Performance Features */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-float,
  .animate-pulse-premium,
  .animate-glow,
  .animate-slide-up,
  .animate-slide-down,
  .animate-fade-scale,
  .animate-stagger-in {
    animation: none !important;
  }

  .gsap-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .card-premium {
    border: 3px solid var(--sic-gray-800);
    background: var(--sic-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .card-stats-products,
  .card-stats-orders,
  .card-stats-revenue,
  .card-stats-investment,
  .card-action-inventory,
  .card-action-orders,
  .card-action-reports,
  .card-action-new-order,
  .card-action-kitchen,
  .card-action-settings {
    border: 3px solid var(--sic-gray-800);
    background: var(--sic-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .btn-premium {
    border: 3px solid var(--sic-primary-dark);
  }

  .nav-premium {
    border-bottom: 3px solid var(--sic-gray-800);
  }

  .form-premium input,
  .form-premium select,
  .form-premium textarea {
    border: 3px solid var(--sic-gray-800);
  }
}

/* Color Blind Friendly Adjustments */
@media (prefers-contrast: high) or (prefers-color-scheme: high-contrast) {
  /* Ensure sufficient contrast for all text */
  .card-premium .text-sic-secondary {
    color: var(--sic-gray-800);
  }

  /* Enhanced icon visibility */
  .icon-outline {
    stroke-width: 2.5;
  }

  /* Better focus indicators */
  .card-interactive:focus-visible {
    outline: 4px solid var(--sic-primary-dark);
    outline-offset: 4px;
  }
}

/* Focus Visible for Keyboard Navigation */
.btn-premium:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.card-interactive:focus-visible,
.form-premium input:focus-visible,
.form-premium select:focus-visible,
.form-premium textarea:focus-visible {
  outline: 3px solid var(--sic-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(225, 30, 72, 0.15);
}

/* Enhanced Card Focus States */
.card-premium:focus-visible,
.card-interactive:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 20px 40px -8px rgba(31, 38, 135, 0.3),
    0 12px 20px -4px rgba(31, 38, 135, 0.2),
    0 0 0 3px rgba(225, 30, 72, 0.2);
  border-color: rgba(225, 30, 72, 0.3);
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Performance Optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.will-change-auto {
  will-change: auto;
}

/* GPU Acceleration for Animations */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Containment for Performance */
.contain-layout {
  contain: layout;
}

.contain-style {
  contain: style;
}

.contain-paint {
  contain: paint;
}

/* Lazy Loading Placeholder */
.lazy-loading {
  background: var(--sic-gray-100);
  animation: loading-skeleton 1.5s infinite;
}

.lazy-loaded {
  animation: none;
}

/* Loading Screen Styles */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--sic-primary-lighter); /* Fondo claro para la pantalla de carga */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

#loading-screen img {
  max-width: 250px;
  height: auto;
  animation: pulse-logo 2s infinite ease-in-out;
}

#loading-screen p {
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--sic-primary);
  margin-top: var(--space-4);
}

@keyframes pulse-logo {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Print Styles */
@media print {
  #loading-screen,
  .nav-premium,
  .btn-premium,
  .notification,
  .toast-container {
    display: none !important;
  }

  .card-premium {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }

  body {
    background: white !important;
  }
}

/* Navigation Styles */
.nav-sic {
  background-color: var(--sic-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-sic .nav-brand {
  display: flex;
  align-items: center;
}

.nav-sic .nav-brand img {
  margin-right: 0.75rem;
}

/* Premium Form Components */
.form-premium {
  font-family: var(--font-family-primary);
}

.form-premium .form-group {
  margin-bottom: var(--space-6);
  position: relative;
}

.form-premium label {
  display: block;
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  color: var(--sic-secondary-darker);
  margin-bottom: var(--space-2);
  transition: color var(--animation-duration-fast) var(--animation-easing);
}

.form-premium input,
.form-premium select,
.form-premium textarea {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  border: 2px solid var(--sic-gray-200);
  border-radius: var(--radius-lg);
  background: var(--sic-white) !important;
  font-family: var(--font-family-primary);
  font-size: 0.875rem;
  color: var(--sic-secondary-darker) !important;
  transition: all var(--animation-duration-normal) var(--animation-easing);
  will-change: border-color, box-shadow, transform;
  -webkit-appearance: none;
  appearance: none;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 2;
  background-color: white !important;
  border-color: #ccc !important;
}

.form-premium input:focus,
.form-premium select:focus,
.form-premium textarea:focus {
  outline: none;
  border-color: var(--sic-primary);
  box-shadow: 0 0 0 4px rgba(225, 30, 72, 0.15);
  background: var(--sic-white);
  transform: translateY(-1px);
}

.form-premium input:hover,
.form-premium select:hover,
.form-premium textarea:hover {
  border-color: var(--sic-primary-light);
}

.form-premium input::placeholder,
.form-premium textarea::placeholder {
  color: var(--sic-gray-400);
  opacity: 1;
}

.form-premium select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: var(--space-10);
  background-color: var(--sic-white);
}

/* Floating Label Inputs */
.form-floating {
  position: relative;
}

.form-floating label {
  position: absolute;
  top: 0.75rem; /* Ajustado para que la etiqueta no se superponga con el input */
  left: var(--space-4);
  font-size: 0.875rem;
  color: var(--sic-gray-500);
  transition: all var(--animation-duration-normal) var(--animation-easing);
  pointer-events: none;
  background: var(--sic-white);
  padding: 0 var(--space-1);
  z-index: 3; /* Aumentado para asegurar que esté por encima del input */
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating select:focus + label,
.form-floating textarea:focus + label,
.form-floating textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: var(--space-3);
  font-size: 0.75rem;
  color: var(--sic-primary);
  font-weight: var(--font-weight-semibold);
}

/* Form Validation States */
.form-sic input.is-valid {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-sic input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Floating Labels */
.form-floating {
  position: relative;
}

.form-floating label {
  position: absolute;
  top: 0.75rem; /* Ajustado para que la etiqueta no se superponga con el input */
  left: var(--space-4);
  font-size: 0.875rem;
  color: var(--sic-gray-500);
  transition: all var(--animation-duration-normal) var(--animation-easing);
  pointer-events: none;
  background: var(--sic-white);
  padding: 0 var(--space-1);
  z-index: 3; /* Aumentado para asegurar que esté por encima del input */
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating select:focus + label,
.form-floating textarea:focus + label,
.form-floating textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: var(--space-3);
  font-size: 0.75rem;
  color: var(--sic-primary);
  font-weight: 600;
}

/* Premium Animation System */
.animate-float {
  animation: float 3s ease-in-out infinite;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-pulse-premium {
  animation: pulse-premium 2s ease-in-out infinite;
}

@keyframes pulse-premium {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: var(--shadow-glow); }
  to { box-shadow: var(--shadow-glow-hover); }
}

.animate-slide-up {
  animation: slide-up var(--animation-duration-normal) var(--animation-easing);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slide-down var(--animation-duration-normal) var(--animation-easing);
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-scale {
  animation: fade-scale var(--animation-duration-normal) var(--animation-easing-bounce);
}

@keyframes fade-scale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-stagger-in {
  opacity: 0;
  animation: stagger-in var(--animation-duration-normal) var(--animation-easing) forwards;
}

@keyframes stagger-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* GSAP Integration Classes */
.gsap-reveal {
  opacity: 0;
  transform: translateY(50px);
}

.gsap-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Loading States */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(225, 30, 72, 0.3);
  border-radius: 50%;
  border-top-color: var(--sic-primary);
  animation: spin 1s ease-in-out infinite;
  will-change: transform;
}

.loading-spinner-large {
  width: 64px;
  height: 64px;
  border-width: 4px;
}

.loading-dots {
  display: inline-block;
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  color: var(--sic-primary);
}

.loading-dots::after {
  content: '';
  animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

.loading-skeleton {
  background: linear-gradient(90deg, var(--sic-gray-200) 25%, var(--sic-gray-100) 50%, var(--sic-gray-200) 75%);
  background-size: 200% 100%;
  animation: loading-skeleton 1.5s infinite;
  border-radius: var(--radius-md);
  will-change: background-position;
}

@keyframes loading-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-shimmer {
  position: relative;
  overflow: hidden;
}

.loading-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.3) 40%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 60%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%);
  animation: shimmer 2s infinite;
  transform: translateX(-100%);
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Progressive Loading Animation for Cards */
.card-loading {
  background: linear-gradient(135deg,
    rgba(249, 250, 251, 0.8) 0%,
    rgba(243, 244, 246, 0.9) 50%,
    rgba(229, 231, 235, 0.8) 100%);
  animation: card-loading-pulse 1.5s ease-in-out infinite;
}

@keyframes card-loading-pulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.005);
  }
}

/* Card Reveal Animation with Stagger */
.card-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: card-reveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.card-reveal:nth-child(1) { animation-delay: 0.1s; }
.card-reveal:nth-child(2) { animation-delay: 0.2s; }
.card-reveal:nth-child(3) { animation-delay: 0.3s; }
.card-reveal:nth-child(4) { animation-delay: 0.4s; }
.card-reveal:nth-child(5) { animation-delay: 0.5s; }
.card-reveal:nth-child(6) { animation-delay: 0.6s; }

@keyframes card-reveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Page Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fade-in var(--animation-duration-normal) var(--animation-easing);
}

.loading-overlay.hide {
  animation: fade-out var(--animation-duration-normal) var(--animation-easing);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Progress Indicators */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--sic-gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sic-primary) 0%, var(--sic-primary-light) 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Page Transitions */
.page-transition {
  animation: page-fade-in var(--animation-duration-normal) var(--animation-easing);
}

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-exit {
  animation: page-fade-out var(--animation-duration-fast) var(--animation-easing);
}

@keyframes page-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

/* Premium Notification System */
.notification {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 1000;
  min-width: 320px;
  max-width: 480px;
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  font-family: var(--font-family-primary);
  animation: notification-slide-in var(--animation-duration-normal) var(--animation-easing);
  will-change: transform, opacity;
}

.notification.success {
  background: rgba(16, 185, 129, 0.95);
  border-left: 4px solid #10b981;
  color: white;
}

.notification.error {
  background: rgba(239, 68, 68, 0.95);
  border-left: 4px solid #ef4444;
  color: white;
}

.notification.warning {
  background: rgba(245, 158, 11, 0.95);
  border-left: 4px solid #f59e0b;
  color: white;
}

.notification.info {
  background: rgba(59, 130, 246, 0.95);
  border-left: 4px solid #3b82f6;
  color: white;
}

.notification .notification-title {
  font-weight: var(--font-weight-semibold);
  font-size: 0.875rem;
  margin-bottom: var(--space-1);
}

.notification .notification-message {
  font-size: 0.8125rem;
  opacity: 0.9;
  line-height: 1.4;
}

.notification .notification-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: opacity var(--animation-duration-fast) var(--animation-easing);
}

.notification .notification-close:hover {
  opacity: 1;
}

@keyframes notification-slide-in {
  from {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

.notification.fade-out {
  animation: notification-fade-out var(--animation-duration-normal) var(--animation-easing);
}

@keyframes notification-fade-out {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-family-primary);
  font-size: 0.875rem;
  color: var(--sic-secondary-darker);
  animation: toast-slide-up var(--animation-duration-normal) var(--animation-easing);
  max-width: 400px;
}

.toast.success {
  border-left: 3px solid #10b981;
}

.toast.error {
  border-left: 3px solid #ef4444;
}

@keyframes toast-slide-up {
  from {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: modal-fade-in var(--animation-duration-normal) var(--animation-easing);
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(225, 30, 72, 0.2);
  border-radius: var(--radius-2xl);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(225, 30, 72, 0.1);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-scale-in var(--animation-duration-normal) var(--animation-easing);
  position: relative;
}

.modal-large {
  max-width: 800px;
  width: 95%;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  color: var(--sic-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--animation-duration-fast) var(--animation-easing);
  z-index: 1001;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--sic-primary);
}

.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
}

.modal-title {
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--sic-primary-darker);
  margin: 0;
}

.modal-body {
  padding: var(--space-6);
  text-align: center;
}

.modal-message {
  font-family: var(--font-family-primary);
  font-size: 1rem;
  color: var(--sic-secondary-darker);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.modal-product-info {
  background: rgba(225, 30, 72, 0.05);
  border: 1px solid rgba(225, 30, 72, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.modal-product-info strong {
  color: var(--sic-primary);
}

.modal-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: var(--sic-white);
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-semibold);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.25rem;
  transition: all var(--animation-duration-normal) var(--animation-easing);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  will-change: transform, box-shadow;
  -webkit-tap-highlight-color: transparent;
}

.btn-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s var(--animation-easing);
}

.btn-danger:hover::before {
  left: 100%;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-danger:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s var(--animation-easing);
}

.btn-danger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Form Grid for Modal */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-span-2 {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-span-2 {
    grid-column: span 1;
  }
}

/* Modal Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: var(--space-4);
    max-height: 95vh;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(225, 30, 72, 0.15);
  }

  .modal-large {
    width: 98%;
    max-width: none;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: var(--space-4);
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-footer {
    flex-direction: column;
  }

  .btn-secondary,
  .btn-danger,
  .btn-premium {
    width: 100%;
    padding: var(--space-3) var(--space-4);
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    margin: var(--space-2);
  }

  .modal-title {
    font-size: 1.125rem;
  }

  .modal-message {
    font-size: 0.875rem;
  }
}
