:root {
  /* Paleta original */
  --primary: #49291c;
  --primary-hover: #3a1f14;
  --secondary: #efc7b8;
  --accent: #5b3b30;
  --bg-dark: #514e4e;
  --sidebar-bg: #2a2a2a;
  --text-light: #f5f0ee;

  /* Extras modernos */
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(239, 199, 184, 0.15);
  --glass-bg: rgba(42, 42, 42, 0.75);
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 64px;
  --sidebar-width: 260px;
  --bottom-nav-height: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sidebar-bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fallIn {
  from { opacity: 0; transform: translateY(-40px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

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

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--accent) 25%, var(--bg-dark) 50%, var(--accent) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* Swal Overrides */
.swal2-popup {
  background: var(--sidebar-bg) !important;
  color: var(--secondary) !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--card-border) !important;
}
.swal2-title { color: var(--text-light) !important; }
.swal2-close { color: var(--secondary) !important; }
.swal2-image {
  border-radius: var(--radius-md) !important;
  max-height: 220px !important;
  object-fit: cover !important;
}

/* Utility */
.fade-in-up { animation: fadeInUp 0.45s ease both; }
