:root {
  --bg-color: #fff;
  --header-bg: #fff;
  --header-border: #eee;
  --highlight: #3C82F7;
  --primary-green: #43a047;
  --primary-green-dark: #388e3c;
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #1ebe5d;
  --danger: #e53935;
  --danger-bg: #ffcdd2;
  --success-bg: #b9f6ca;
  --card-bg: #fafafa;
  --card-border: #eee;
  --card-shadow: rgba(0,0,0,0.04);
  --footer-bg: #fffbe6;
  --footer-border: #ffe066;
  --footer-active-bg: #43a047;
  --footer-active-border: #388e3c;
  --footer-shadow: rgba(0,0,0,0.06);
  --btn-bg: #ffe066;
  --btn-bg-active: #ffd23f;
  --btn-disabled-bg: #eee;
  --btn-disabled-color: #aaa;
  --selected-border: #4caf50;
  --selected-bg: #b9f6ca;
  --order-card-selected-border: var(--selected-border);
  --order-card-selected-bg: var(--selected-bg);
  --disabled-filter: grayscale(0.7);
  --text-main: #222;
  --text-light: #666;
  --text-inverse: #fff;
  --text-grey: #333;
  --input-bg: #fafafa;
  --input-border: #43a047;
  --input-shadow: rgba(60,180,60,0.07);
  --font-main: 'Segoe UI', Arial, Roboto, 'Helvetica Neue', sans-serif;
  --tag-promo-bg: #ffe066;
  --tag-promo-color: #c59e00;
  --tag-vegan-bg: #b9f6ca;
  --tag-vegan-color: #388e3c;
  --tag-new-bg: #bbdefb;
  --tag-new-color: #1565c0;
  --tag-default-bg: #eee;
  --tag-default-color: #333;
  --paso-bg: #D5E7FF;
  --paso-border: #002756;
  --paso-text: #002756;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --header-bg: #242424;
  --header-border: #404040;
  --highlight: #5fa8d3;
  --primary-green: #66bb6a;
  --primary-green-dark: #4caf50;
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #20BA5A;
  --danger: #ff6b6b;
  --danger-bg: #3a2323;
  --success-bg: #233a23;
  --card-bg: #2d2d2d;
  --card-border: #404040;
  --card-shadow: rgba(0,0,0,0.3);
  --footer-bg: #2d2d2d;
  --footer-border: #404040;
  --footer-active-bg: #66bb6a;
  --footer-active-border: #4caf50;
  --footer-shadow: rgba(0,0,0,0.4);
  --btn-bg: #ffd23f;
  --btn-bg-active: #ffb300;
  --btn-disabled-bg: #404040;
  --btn-disabled-color: #666;
  --selected-border: #66bb6a;
  --selected-bg: #233a23;
  --order-card-selected-border: var(--selected-border);
  --order-card-selected-bg: var(--selected-bg);
  --disabled-filter: grayscale(0.7) brightness(0.7);
  --text-main: #e0e0e0;
  --text-light: #a0aec0;
  --text-inverse: #1a1a1a;
  --text-grey: #e0e0e0;
  --input-bg: #2d2d2d;
  --input-border: #66bb6a;
  --input-shadow: rgba(102,187,106,0.15);
  --tag-promo-bg: #ffd23f;
  --tag-promo-color: #1a1a1a;
  --tag-vegan-bg: #233a23;
  --tag-vegan-color: #66bb6a;
  --tag-new-bg: #1e3a5f;
  --tag-new-color: #90caf9;
  --tag-default-bg: #404040;
  --tag-default-color: #e0e0e0;
  --paso-bg: #1e3a5f;
  --paso-border: #90caf9;
  --paso-text: #90caf9;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

html, body {
  width: 100vw;
  min-height: 100vh;
  background: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
}

a { 
  color: inherit; 
  text-decoration: none; 
}

#main-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 100;
  height: 80px;
  box-sizing: border-box;
}

.logo { 
  height: 70px; 
}

.header-title { 
  margin-left: 1rem; 
  font-size: 2rem; 
  font-weight: bold; 
}

/* Theme toggle button - LEFT side */
.theme-toggle-menu {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--primary-green);
  transition: transform 0.2s;
  padding: 0.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 2rem;
}

.theme-toggle-menu:hover {
  transform: scale(1.1);
}

.theme-toggle-menu:active {
  transform: scale(0.95);
}

/* WhatsApp button - RIGHT side */
#whatsapp-btn-header {
  display: flex;
  align-items: center;
  background: var(--whatsapp-green);
  color: var(--text-inverse) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37,211,102,0.08);
  transition: background 0.2s, color 0.2s;
  position: absolute;
  right: 2rem;
}

#whatsapp-btn-header:hover { 
  background: var(--whatsapp-green-hover); 
  color: var(--text-inverse) !important; 
}

#whatsapp-btn-header .wa-text { 
  font-weight: 600; 
  letter-spacing: 0.5px; 
}

@media (max-width: 600px) {
  #main-header { 
    padding: 1rem 0.5rem; 
    height: 60px; 
  }
  
  .logo { 
    height: 50px; 
  }
  
  .header-title { 
    font-size: 1.1rem; 
    margin-left: 0.5rem; 
  }
  
  .theme-toggle-menu {
    font-size: 1.3em;
    padding: 0.2em;
    left: 0.5rem;
  }
  
  /* Show theme toggle on mobile, simplify WhatsApp button */
  #whatsapp-btn-header {
    display: flex !important;
    padding: 0.4rem 0.8rem;
    right: 0.5rem;
  }
  
  #whatsapp-btn-header .wa-text {
    display: none;
  }
  
  #whatsapp-btn-header img {
    margin-right: 0 !important;
  }
}

.paso-1-container {
  width: 100%;
  max-width: 420px;
  margin: 20px auto 0 auto;
  background: var(--paso-bg);
  border: 2.5px solid var(--paso-border);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(67, 160, 71, 0.08);
  padding: 2rem 1rem 1.5rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

.paso-1-title {
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paso-bg);
  color: var(--paso-text);
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0 1.1em;
  border-radius: 8px;
  letter-spacing: 1px;
  box-shadow: 0 1px 4px rgba(67, 160, 71, 0.09);
  z-index: 10;
  text-align: center;
  border: 2.5px solid var(--paso-border);
}

.order-date-label,
.order-options-label,
.order-time-label {
  font-size: 1.08rem;
  font-weight: bold;
  color: var(--paso-text);
  margin: 1.1em 0 0.5em 0;
  text-align: center;
}

.order-date-input,
.order-time-input {
  width: 100%;
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
  border: 2.5px solid var(--input-border);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--input-shadow);
  outline: none;
  background: var(--input-bg);
  color: var(--text-main);
  margin-bottom: 1rem;
  box-sizing: border-box;
  display: block;
  min-width: 0;
  max-width: 100%;
}

.order-date-input.past {
  border-color: var(--danger) !important;
  background: var(--danger-bg);
}

.order-options-cards {
  display: flex;
  gap: 12px;
  margin: 0.5rem 0 1rem 0;
  width: 100%;
  justify-content: center;
  align-items: stretch;
  flex-direction: row;
}

.order-card {
  flex: 1 1 0;
  min-width: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.7em 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  font-size: 1rem;
  box-sizing: border-box;
  height: 40px;
  position: relative;
}

.order-card input[type="radio"] {
  position: absolute;
  left: -9999px;
}

.order-card span {
  font-size: 1.05rem;
  user-select: none;
  color: var(--text-main);
  padding-left: 0.3em;
  width: 100%;
  text-align: center;
}

.order-card.selected,
.order-card:has(input[type="radio"]:checked) {
  border-color: var(--order-card-selected-border);
  background: var(--order-card-selected-bg);
  box-shadow: 0 0 0 2px var(--order-card-selected-bg);
}

.order-card.selected span,
.order-card:has(input[type="radio"]:checked) span {
  color: var(--primary-green);
  font-weight: bold;
}

/* Fallback for browsers without :has() */
.order-card.selected {
  border-color: var(--order-card-selected-border);
  background: var(--order-card-selected-bg);
  box-shadow: 0 0 0 2px var(--order-card-selected-bg);
}

.order-card.selected span {
  color: var(--primary-green);
  font-weight: bold;
}

@media (max-width: 600px) {
  .paso-1-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 20px 0 0 0 !important;
    padding: 1.2rem 0 1.2rem 0 !important;
    border-radius: 12px;
  }
  .paso-1-title {
    font-size: 1rem;
    top: -1.1rem;
    padding: 0 0.7em;
    border-radius: 8px;
    border: 2.5px solid var(--paso-border);
  }
  .order-date-label,
  .order-options-label,
  .order-time-label {
    font-size: 1rem;
    margin-top: 0.7em;
    margin-bottom: 0.4em;
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .order-date-input,
  .order-time-input {
    width: 92vw !important;
    max-width: 92vw !important;
    min-width: 0 !important;
    margin-left: 4vw !important;
    margin-right: 4vw !important;
    font-size: 1rem;
    padding: 0.6rem 0.5rem;
    margin-bottom: 0.7rem;
    box-sizing: border-box;
    display: block;
  }
  .order-options-cards {
    flex-direction: column;
    gap: 8px;
    width: 92vw !important;
    margin: 0.4rem 0 1rem 0;
    margin-left: 4vw !important;
    margin-right: 4vw !important;
    box-sizing: border-box;
  }
  .order-card {
    font-size: 0.97rem;
    height: 36px;
    padding: 0.5em 0.5em;
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

[disabled], .disabled {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(0.7);
}

.order-card,
.dish-card,
.sticky-footer,
.order-date-input,
.order-time-input {
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.category-section {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  padding: 0 1rem;
}

.category-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  margin: 3rem 0 2rem 0;
  background: transparent;
  padding-top: 72px;
  color: var(--text-main);
}

.category-subheader {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.2em;
  font-style: italic;
  background: var(--card-bg);
  padding: 0.7em 1em;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--card-shadow);
  text-align: center;
}

.dishes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dish-card {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--card-shadow);
  padding: 0.75rem 1rem;
  transition: box-shadow 0.2s;
  position: relative;
  min-height: 80px;
  border: 1px solid var(--card-border);
}

.dish-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 1rem;
  background: var(--card-border);
  flex-shrink: 0;
  box-shadow: 0 1px 6px var(--input-shadow);
}

.dish-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dish-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main);
}

.dish-desc {
  font-size: 0.95rem;
  color: var(--text-light);
}

.dish-price {
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;
  color: var(--text-main);
}

.dish-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 70px;
  margin-left: 1rem;
  gap: 0.3rem;
}

.dish-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dish-btn {
  background: var(--btn-bg);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 1px 3px var(--footer-shadow);
  user-select: none;
  touch-action: manipulation;
  color: var(--text-inverse);
}

.dish-btn:active {
  background: var(--btn-bg-active);
}

.dish-qty {
  min-width: 28px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-grey);
}

.dish-card.selected {
  border: 2px solid var(--selected-border);
  box-shadow: 0 0 0 2px var(--selected-bg);
}

.dish-card.disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: var(--disabled-filter);
}

.dish-card.disabled .dish-btn {
  background: var(--btn-disabled-bg) !important;
  color: var(--btn-disabled-color) !important;
  cursor: not-allowed !important;
}

.dish-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3em;
  margin-bottom: 0.2em;
  overflow-x: auto;
}

.dish-tag {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  padding: 0.12em 0.6em;
  border-radius: 10px;
  background: var(--tag-default-bg);
  color: var(--tag-default-color);
  border: none;
  letter-spacing: 0.5px;
  user-select: none;
  white-space: nowrap;
  line-height: 1.2;
}

.dish-tag.promo {
  background: var(--tag-promo-bg);
  color: var(--tag-promo-color);
}

.dish-tag.vegan {
  background: var(--tag-vegan-bg);
  color: var(--tag-vegan-color);
}

.dish-tag.new {
  background: var(--tag-new-bg);
  color: var(--tag-new-color);
}
.sticky-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  box-shadow: 0 -2px 8px var(--footer-shadow);
  z-index: 200;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  gap: 2rem;
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.sticky-footer.active {
  background: var(--footer-active-bg);
  color: var(--text-inverse);
  border-top: 1px solid var(--footer-active-border);
}

.sticky-footer .footer-count,
.sticky-footer .footer-total {
  color: inherit;
}

.sticky-footer .footer-content {
  display: flex;
  gap: 2rem;
}

@media (max-width: 600px) {
  .sticky-footer {
    padding: 0.7rem 0.5rem;
    font-size: 1rem;
    gap: 1rem;
  }
  .sticky-footer .footer-content {
    gap: 1rem;
  }
  .dish-btn {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }
}

@media (max-width: 800px) {
  .dishes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .category-title,
  .sticky-category-title {
    font-size: 1.5rem;
  }
  .category-title {
    padding-top: 56px;
  }
}

.paso-separador {
  display: flex;
  align-items: center;
  width: 100vw;
  margin: 2.5rem 0 2rem 0;
}

.paso-separador::before,
.paso-separador::after {
  content: "";
  flex: 1;
  border-top: 2.5px solid var(--paso-border);
  height: 0;
  margin: 0 12px;
  border-radius: 2px;
}

.paso-separador-label {
  background: var(--paso-bg);
  color: var(--paso-text);
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0 1.2em;
  border-radius: 8px;
  letter-spacing: 1px;
  box-shadow: 0 1px 4px rgba(255, 224, 102, 0.09);
  z-index: 1;
  position: relative;
  border: 2.5px solid var(--paso-border);
}

.paso-instruccion-1 {
  margin-top: 90px;
  margin-left: auto;
  margin-right: auto;
  max-width: 480px;
  color: var(--text-light);
  font-size: 1.06rem;
  text-align: center;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 0.8em 1em;
  box-shadow: 0 1px 4px var(--card-shadow);
  display: block;
}

.paso-instruccion {
  max-width: 480px;
  margin: 0 auto 1.5rem auto;
  color: var(--text-light);
  font-size: 1.06rem;
  text-align: center;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 0.8em 1em;
  box-shadow: 0 1px 4px var(--card-shadow);
}

.order-summary-box {
  background: var(--footer-bg);
  border: 2.5px solid var(--footer-border);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--card-shadow);
  max-width: 480px;
  margin: 0 auto 2rem auto;
  padding: 1.2rem 1rem 1.5rem 1rem;
  text-align: left;
}

.order-summary-title {
  font-weight: bold;
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.6em;
  text-align: center;
}

.order-summary-content {
  color: var(--text-main);
  font-size: 1.05rem;
  margin-bottom: 1em;
  min-height: 2em;
}

.order-summary-message-label {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 0.2em;
}

.order-summary-message {
  width: 100%;
  min-height: 70px;
  max-width: 100%;
  border: 1.5px solid var(--footer-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-main);
  font-size: 1rem;
  padding: 0.7em;
  resize: none;
  font-family: var(--font-main);
}

.sticky-category-title {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 101;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  padding: 1rem 0 0.5rem 0;
  box-shadow: 0 2px 8px var(--footer-shadow);
  display: none;
  height: 72px;
  line-height: 56px;
  transition: all 0.3s;
  color: var(--text-main);
}

.footer-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 1.2em;
  user-select: none;
}

.v-arrow {
  display: block;
  font-size: 1.6em;
  line-height: 1;
  color: var(--primary-green);
  font-weight: bold;
  margin: -0.15em 0;
  opacity: 0.7;
  position: relative;
  animation: arrow-bounce 1.2s infinite;
}

.v-arrow:nth-child(1) {
  animation-delay: 0s;
  opacity: 0.5;
}

.v-arrow:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0.7;
}

.v-arrow:nth-child(3) {
  animation-delay: 0.4s;
  opacity: 1;
}

.v-arrow::before {
  content: "∨";
  font-family: inherit;
  display: block;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0) scaleX(1); }
  25% { transform: translateY(0.2em) scaleX(1.2); }
  50% { transform: translateY(0.4em) scaleX(1); }
  75% { transform: translateY(0.2em) scaleX(0.9); }
}

#qr-code img, #qr-code canvas {
  max-width: 90vw;
  max-height: 60vw;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (min-width: 600px) {
  #qr-code img, #qr-code canvas {
    max-width: 220px;
    max-height: 220px;
  }
}
/*Photo Gallery*/
.gallery-modal {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100vw; 
  height: 100vh;
  background: rgba(0,0,0,0.92); 
  z-index: 99999;
  display: flex; 
  align-items: center; 
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.2s;
}

.gallery-content {
  position: relative;
  max-width: 95vw; 
  max-height: 90vh;
  display: flex; 
  flex-direction: column; 
  align-items: center;
}

.gallery-modal img {
  max-width: 90vw; 
  max-height: 70vh; 
  border-radius: 12px; 
  box-shadow: 0 2px 16px #0008;
  background: #fff;
}

.gallery-close {
  position: absolute; 
  top: 2vw; 
  right: 3vw; 
  font-size: 2.5rem; 
  color: #fff; 
  cursor: pointer; 
  z-index: 2;
  background: rgba(0,0,0,0.3); 
  border-radius: 50%; 
  padding: 0.2em 0.5em;
  transition: background 0.2s;
}

.gallery-close:hover { 
  background: rgba(0,0,0,0.7);
}

.gallery-controls {
  margin-top: 1em; 
  display: flex; 
  gap: 1.5em; 
  justify-content: center;
}

.gallery-controls button {
  background: #fff; 
  color: #222; 
  border: none; 
  border-radius: 50%;
  width: 48px; 
  height: 48px; 
  font-size: 2rem; 
  cursor: pointer; 
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s;
}

.gallery-controls button:hover { 
  background: var(--btn-bg); 
}

.gallery-caption {
  color: #fff; 
  margin-top: 0.7em; 
  font-size: 1.1em; 
  text-align: center; 
  max-width: 90vw;
}

@media (max-width: 600px) {
  .gallery-modal img { 
    max-width: 98vw; 
    max-height: 60vh; 
  }
  .gallery-close { 
    top: 1vw; 
    right: 2vw; 
    font-size: 2rem; 
  }
}