/* Arrocería Imperial - Custom Styles & Luxury Design System */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #C8622A;       /* Terracota mediterránea */
  --color-primary-dark: #A54B1A;
  --color-primary-light: #F9EBE2;
  --color-accent-gold: #D4AF37;   /* Oro Imperial / Azafrán */
  --color-accent-gold-dark: #B38F24;
  --color-dark: #0F1722;          /* Pizarra azul marino profundo */
  --color-dark-surface: #182332;
  --color-sand: #FAF7F2;          /* Arena cálida */
  --color-sand-muted: #F2ECE1;
  --color-text-main: #1E293B;
  --color-text-muted: #64748B;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Base smoothing */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-sand);
}

body {
  overflow-x: hidden;
}

/* Typography utilities */
.font-serif {
  font-family: var(--font-serif);
}

.font-display {
  font-family: var(--font-display);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Custom luxury gradients & textures */
.bg-sand-pattern {
  background-color: #FAF7F2;
  background-image: radial-gradient(#E8DFD3 0.75px, transparent 0.75px);
  background-size: 24px 24px;
}

.bg-dark-mesh {
  background-color: #0F1722;
  background-image: 
    radial-gradient(at 0% 0%, rgba(200, 98, 42, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.1) 0px, transparent 50%);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #ECC44D 0%, #D4AF37 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.terracotta-gradient-text {
  background: linear-gradient(135deg, #DE733B 0%, #C8622A 50%, #9B4515 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass-nav {
  background: rgba(15, 23, 34, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 223, 211, 0.8);
}

.glass-dark-card {
  background: rgba(24, 35, 50, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Card hover animation */
.dish-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 34, 0.08), 0 10px 15px -5px rgba(200, 98, 42, 0.05);
  border-color: rgba(200, 98, 42, 0.3);
}

/* Button glow effects */
.btn-primary-glow {
  background: linear-gradient(135deg, #D96A30 0%, #C8622A 100%);
  box-shadow: 0 4px 14px 0 rgba(200, 98, 42, 0.35);
  transition: all 0.25s ease;
}

.btn-primary-glow:hover {
  background: linear-gradient(135deg, #E27339 0%, #B85520 100%);
  box-shadow: 0 6px 20px 0 rgba(200, 98, 42, 0.5);
  transform: translateY(-1px);
}

.btn-gold-glow {
  background: linear-gradient(135deg, #E6C254 0%, #D4AF37 100%);
  box-shadow: 0 4px 14px 0 rgba(212, 175, 55, 0.35);
  transition: all 0.25s ease;
}

.btn-gold-glow:hover {
  background: linear-gradient(135deg, #F0CC5F 0%, #C49E26 100%);
  box-shadow: 0 6px 20px 0 rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}

/* Pulsing badge */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

.pulse-badge {
  animation: pulse-subtle 2.5s infinite ease-in-out;
}

/* Floating mobile bottom bar */
.mobile-bottom-bar {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F2ECE1;
}

::-webkit-scrollbar-thumb {
  background: #D9CBB7;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C8622A;
}

/* Custom interactive active tab */
.menu-tab-btn.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(200, 98, 42, 0.25);
}

.allergen-pill.active {
  background-color: #0F1722;
  color: #FFFFFF;
  border-color: #0F1722;
}

/* Modal transition */
.modal-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.modal-hidden .modal-content {
  transform: scale(0.95) translateY(20px);
}
