/* =============================================
   JARDÍN SAN FRANCISCO - MENÚ DIGITAL
   Premium Light Theme & Ordering System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

:root {
  /* Colors */
  --bg-page: #FDFBF7;
  --bg-card: #FFFFFF;
  --bg-nav: rgba(253, 251, 247, 0.92);
  --bg-accent: #F4EFE6;
  
  --text-main: #2C3531;
  --text-muted: #6E7C73;
  
  --accent-green: #6B8E7B;
  --accent-green-light: #E4ECE7;
  --accent-green-dark: #4A6B58;
  --accent-terra: #C26D5C;
  --accent-terra-light: #F8EBE8;
  --accent-gold: #D4AF37;
  
  /* Typography */
  --font-heading: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Layout */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 999px;
  
  --shadow-sm: 0 4px 12px rgba(44, 53, 49, 0.04);
  --shadow-md: 0 12px 32px rgba(44, 53, 49, 0.08);
  --shadow-float: 0 20px 40px rgba(44, 53, 49, 0.15);
  
  --transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ---- Instructions ---- */
.instructions-section {
  padding: 0 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.instructions-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  text-align: center;
}
.instructions-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--accent-green-dark);
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}
.instructions-steps {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.step-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
}
.step-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-terra);
}
.step strong {
  color: var(--text-main);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.2rem;
}

/* ---- Categories ---- */
.category-hero {
  width: 100%; height: 220px; border-radius: var(--radius-md);
  margin-bottom: 2rem; overflow: hidden; box-shadow: var(--shadow-sm);
}
.category-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Loader ---- */
.loader {
  position: fixed; inset: 0; background: var(--bg-page); z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { width: 160px; animation: pulse 2s infinite ease-in-out; }

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }

/* ---- Hero ---- */
.hero {
  position: relative; height: 85vh; min-height: 600px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); margin-bottom: 2rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(253, 251, 247, 0.3) 0%, rgba(253, 251, 247, 0.98) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 2rem;
  margin-top: auto; margin-bottom: 2rem;
  width: 100%;
}
.hero-logo {
  /* Hizo el logo 3x más grande como pidió el usuario */
  width: 100%; max-width: 600px; 
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}
.hero-tagline {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 500;
  color: var(--text-main); line-height: 1.1; margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 0.9rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-green); font-weight: 700;
}

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--bg-nav); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  z-index: 1000; padding: 0.75rem 1rem;
  transform: translateY(-100%); transition: transform var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.nav.visible { transform: translateY(0); }
.nav-inner {
  display: flex; align-items: center; gap: 1rem; max-width: 800px; margin: 0 auto;
}
.nav-logo { width: 40px; height: 40px; object-fit: contain; }
.nav-categories {
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x mandatory; padding-bottom: 2px;
}
.nav-categories::-webkit-scrollbar { display: none; }
.nav-pill {
  padding: 0.5rem 1.2rem; font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted); border-radius: var(--radius-full);
  white-space: nowrap; scroll-snap-align: start; transition: var(--transition);
}
.nav-pill:hover { color: var(--text-main); background: var(--bg-accent); }
.nav-pill.active {
  background: var(--accent-green); color: white;
  box-shadow: 0 4px 12px rgba(107, 142, 123, 0.3);
}

/* ---- Sections & Cards ---- */
.menu-section { max-width: 700px; margin: 0 auto; padding: 4rem 1.25rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; background: var(--bg-card);
  border-radius: 50%; font-size: 1.8rem; box-shadow: var(--shadow-sm);
  margin-bottom: 1rem; color: var(--accent-terra);
}
.section-title { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 600; }
.category-title {
  font-family: var(--font-heading); font-size: 1.4rem; color: var(--accent-green);
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}

/* Addable Items */
.addable-item {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
  overflow: hidden;
  cursor: pointer;
}
.addable-item:active { transform: scale(0.98); }
.addable-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-green-light);
}

.add-btn {
  position: absolute;
  right: 1rem; bottom: 1rem;
  width: 36px; height: 36px;
  background: var(--accent-green-light);
  color: var(--accent-green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.addable-item:hover .add-btn {
  background: var(--accent-green);
  color: white;
  transform: scale(1.1);
}

/* Specific Card Layouts */
.menu-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
.menu-item { padding: 1.25rem; padding-right: 4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.menu-item .add-btn { top: 50%; transform: translateY(-50%); bottom: auto; }
.addable-item:hover .menu-item .add-btn { transform: translateY(-50%) scale(1.1); }

.menu-item-name { font-weight: 700; font-size: 1.05rem; color: var(--text-main); line-height: 1.2; }
.menu-item-desc { font-size: 0.85rem; color: var(--text-muted); }
.menu-item-price { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--accent-terra); }

.burger-card { padding: 1.25rem; padding-right: 4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.burger-card .add-btn { top: 50%; transform: translateY(-50%); bottom: auto; }
.addable-item:hover .burger-card .add-btn { transform: translateY(-50%) scale(1.1); }
.burger-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.2rem; }
.burger-name { font-weight: 700; font-size: 1.05rem; color: var(--text-main); line-height: 1.2; }
.burger-desc { font-size: 0.85rem; color: var(--text-muted); }
.burger-price { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--accent-terra); flex-shrink: 0; }

.burger-grid, .drinks-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 3rem; }
.hotdog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 3rem; }
@media (min-width: 600px) {
  .burger-grid, .drinks-grid { grid-template-columns: 1fr 1fr; }
  .hotdog-grid { grid-template-columns: repeat(4, 1fr); }
}

.drink-item { padding: 1rem; padding-right: 3.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.drink-item .add-btn { top: 50%; transform: translateY(-50%); bottom: auto; width: 32px; height: 32px; font-size: 1rem; }
.addable-item:hover .drink-item .add-btn { transform: translateY(-50%) scale(1.1); }
.drink-item .drink-name { font-weight: 600; font-size: 0.95rem; }
.drink-item .drink-price { font-family: var(--font-heading); color: var(--accent-terra); font-weight: 600; }

.promo-card { padding: 1.5rem; padding-bottom: 4rem; border: 1px solid var(--accent-green-light); background: linear-gradient(135deg, var(--bg-card), var(--bg-accent)); }
.promo-title { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 0.5rem; }
.promo-price { font-family: var(--font-heading); font-size: 1.6rem; color: var(--accent-terra); margin-bottom: 1rem; }

.grill-card { padding: 1.5rem; padding-right: 4rem; border-left: 4px solid var(--accent-terra); }

/* ---- Toast Notification ---- */
.toast {
  position: fixed; top: 100px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--text-main); color: white;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10000;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---- Comanda FAB ---- */
.comanda-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 998;
  background: var(--accent-terra); color: white;
  padding: 0.8rem 1.5rem; border-radius: var(--radius-full);
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600;
  box-shadow: var(--shadow-float);
  transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.comanda-fab.visible { transform: translateY(0); }
.comanda-fab:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 25px 50px rgba(194, 109, 92, 0.3); }
.comanda-count {
  background: white; color: var(--accent-terra);
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700;
}

/* ---- Comanda Modal ---- */
.comanda-overlay {
  position: fixed; inset: 0; background: rgba(44, 53, 49, 0.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.comanda-overlay.open { opacity: 1; visibility: visible; }

.comanda-modal {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-page);
  border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg);
  padding: 1.5rem; padding-bottom: 3rem;
  max-height: 90vh; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 10000;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
  max-width: 600px; margin: 0 auto;
}
.comanda-overlay.open .comanda-modal { transform: translateY(0); }

.comanda-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--accent-green-light);
}
.comanda-header h2 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-main); }
.close-modal { font-size: 1.5rem; color: var(--text-muted); padding: 0.5rem; }

.comanda-items { flex: 1; overflow-y: auto; padding-right: 0.5rem; margin-bottom: 1.5rem; }
.comanda-items::-webkit-scrollbar { width: 4px; }
.comanda-items::-webkit-scrollbar-thumb { background: var(--accent-green-light); border-radius: 4px; }

.order-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; border-bottom: 1px dashed var(--accent-green-light);
}
.order-item-info { flex: 1; padding-right: 1rem; }
.order-item-name { font-weight: 600; color: var(--text-main); font-size: 0.95rem; }
.order-item-price { color: var(--accent-terra); font-size: 0.9rem; font-weight: 600; margin-top: 0.2rem; }

.order-qty {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-card); padding: 0.25rem; border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm); border: 1px solid var(--accent-green-light);
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-accent); color: var(--text-main);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; transition: var(--transition);
}
.qty-btn:hover { background: var(--accent-green); color: white; }
.qty-value { font-weight: 700; font-size: 0.9rem; width: 20px; text-align: center; }

.comanda-footer {
  background: var(--bg-card); padding: 1.5rem; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); border: 1px solid var(--accent-green-light);
}
.comanda-total {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
  margin-bottom: 1.5rem; color: var(--text-main);
}
.comanda-total span:last-child { color: var(--accent-terra); }

.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 1rem;
  background: var(--accent-green); color: white;
  border-radius: var(--radius-full);
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.8rem;
  background: transparent; color: var(--text-muted);
  border: 1px solid #D1D8D4; border-radius: var(--radius-full);
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
  margin-top: 1rem; transition: var(--transition);
}
.btn-secondary:hover { background: var(--bg-accent); color: var(--text-main); border-color: var(--text-main); }

/* QR Code Display */
#qr-container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem 0; display: none;
}
#qr-code { padding: 1rem; background: white; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.qr-instructions { text-align: center; font-size: 0.9rem; color: var(--text-muted); max-width: 250px; }

/* Empty state */
.empty-state { text-align: center; padding: 2rem 0; color: var(--text-muted); font-size: 1rem; }

/* Extas & Footers */
.footer { background: var(--bg-card); padding: 4rem 1.5rem 6rem; text-align: center; border-top: 1px solid var(--accent-green-light); }
.footer-logo { width: 150px; margin: 0 auto 2rem; opacity: 0.8; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05)); }
.footer-social { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.social-link { width: 50px; height: 50px; background: var(--bg-page); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); color: var(--accent-green); transition: var(--transition); }
.social-link:hover { background: var(--accent-green); color: white; transform: translateY(-4px); box-shadow: var(--shadow-md); }
.social-link svg { width: 24px; height: 24px; fill: currentColor; }

/* ---- Floating Button ---- */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 999;
  width: 48px; height: 48px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-float);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 24px; height: 24px; fill: white; }

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---- General Modals ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 10000; opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-content {
  background: white; border-radius: var(--radius-lg);
  width: 90%; max-width: 400px; padding: 2rem;
  transform: scale(0.9); transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg); text-align: center;
}
.modal-overlay.open .modal-content { transform: scale(1); }

/* Welcome Modal */
.welcome-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--accent-green-dark); margin-bottom: 1.5rem; }
.welcome-btn { margin-top: 2rem; width: 100%; padding: 1rem; font-size: 1.1rem; border-radius: var(--radius-full); }

/* Options Modal */
.options-title { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 1rem; color: var(--text-main); }
.options-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }
.option-btn {
  padding: 1rem; border: 1px solid #E2E8F0; border-radius: var(--radius-md);
  background: transparent; color: var(--text-main); font-weight: 600; transition: var(--transition); cursor: pointer; font-size: 1rem;
}
.option-btn:hover { background: var(--bg-accent); border-color: var(--accent-green); color: var(--accent-green-dark); }
