/* Estilos Minimalistas Claros para Los Comensales - Estrategia 90 Días */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #FFFFFF;
  --bg-subtle: #FAFAFA;
  --bg-card: #FFFFFF;
  --gold-primary: #D97706;
  --gold-dark: #B45309;
  --border-subtle: #E5E7EB;
  --text-main: #111827;
  --text-muted: #4B5563;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #FAFAFA;
  color: #111827;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F3F4F6;
}
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* Drawer active indicator */
.drawer-active-item {
  background-color: #FEF3C7 !important;
  color: #92400E !important;
  border-left: 3px solid #D97706 !important;
  font-weight: 600;
}

/* Clean minimalist cards */
.card-clean {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.875rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-clean:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.06);
}

/* Subtle warm highlight */
.editorial-quote {
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px solid #D97706;
}

/* Smooth fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.2s ease-out forwards;
}

/* Off-canvas Navigation Drawer */
.nav-drawer-overlay {
  background-color: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(3px);
  transition: opacity 0.2s ease-in-out;
}

.nav-drawer-panel {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Input styles */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Touch & Mobile UX Optimizations */
* {
  -webkit-tap-highlight-color: transparent;
}

button, a, input, select, textarea, label {
  touch-action: manipulation;
}

/* iOS Safari: Prevent involuntary auto-zoom on form inputs by enforcing 16px font on small screens */
@media (max-width: 640px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Scroll snap & custom mobile tracks */
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* Sticky column for tables on mobile swipe */
.sticky-col-header {
  position: sticky;
  left: 0;
  z-index: 20;
  background-color: #F9FAFB;
  box-shadow: 2px 0 6px -2px rgba(0, 0, 0, 0.08);
}
.sticky-col-cell {
  position: sticky;
  left: 0;
  z-index: 10;
  background-color: #FFFFFF;
  box-shadow: 2px 0 6px -2px rgba(0, 0, 0, 0.08);
}
tr:hover .sticky-col-cell {
  background-color: #FFFBEB !important;
}

/* Mobile Safe Areas */
.safe-area-bottom {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
}
.safe-area-top {
  padding-top: max(0.5rem, env(safe-area-inset-top, 0.5rem));
}

/* Print optimizations */
@media print {
  header, nav, #appToast, #navDrawerModal, #mobileBottomBar, .no-print {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
}

