body {
    background-color: #121212;
    font-family: 'Segoe UI', sans-serif;
    color: #f1f1f1;
    padding: 2rem;
  }
  
  body.light-theme {
    background-color: #ffffff;
    color: #222222;
  }
  
  body.light-theme .search-bar input,
  body.light-theme .dropdown-btn,
  body.light-theme .dropdown-content,
  body.light-theme .menu-item,
  body.light-theme .modal-content {
    background-color: #f9f9f9;
    color: #222222;
    border-color: #bbb;
  }
  
  body.light-theme .dropdown-btn {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
  }
  
  body.light-theme .dropdown-content {
    background-color: #ffffff;
    border-color: #007bff;
  }
  
  body.light-theme .dropdown-content button {
    color: #222222;
  }
  
  body.light-theme .dropdown-content button:hover,
  body.light-theme .dropdown-content button:focus {
    background-color: #e0e0e0;
    color: #007bff;
  }
  
  body.light-theme .menu-item h4,
  body.light-theme .menu-item p {
    color: #222222;
  }
  
  body.light-theme .menu-item:hover {
    border-color: #ff7f00;
    box-shadow: 0 4px 12px rgba(255, 127, 0, 0.4);
  }
  
  .theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px;
    border-radius: 50%;
    font-size: 1.2rem;
    background-color: transparent;
    color: #f1f1f1;
    border: none;
    cursor: pointer;
    z-index: 1100;
  }
  
  body.light-theme .theme-toggle-btn {
    color: #222222;
  }
  
  .theme-toggle-btn i {
    pointer-events: none;
  }
  
  footer {
    margin-top: 2rem;
    font-size: 1rem;
    text-align: left;
    padding: 2rem;
    background-color: #1b1b1b;
    border-top: 1px solid #333;
    color: #ccc;
    border-radius: 1rem 1rem 0 0;
  }
  
  body.light-theme footer {
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
    color: #444;
    border-radius: 1rem 1rem 0 0;
  }
  
  footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    line-height: 1.4;
  }
  
  footer p {
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
  }
  
  footer a {
    color: #ff7f00;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  
  footer i {
    color: #ff7f00;
    min-width: 20px;
    text-align: center;
  }
  
  /* --- Estilos generales para la tabla del pedido --- */
.pedido-tabla {
    width: 100%;
    max-width: 600px;
    margin: 1rem auto;
    border-collapse: collapse;
    background: var(--card-bg, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .pedido-tabla th, .pedido-tabla td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  
  .pedido-tabla th {
    background-color: var(--primary, #007bff);
    color: #fff;
  }
  
  /* --- Estilo de los botones de acción del pedido --- */
  .pedido-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .pedido-actions .btn-accent,
  .pedido-actions .btn-warn {
    padding: 0.5rem 1rem;
    border: none;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .pedido-actions .btn-accent {
    background-color: #007bff;
    color: #fff;
  }
  
  .pedido-actions .btn-accent:hover {
    background-color: #0056b3;
  }
  
  .pedido-actions .btn-warn {
    background-color: #ff5722;
    color: #fff;
  }
  
  .pedido-actions .btn-warn:hover {
    background-color: #d84315;
  }
  
  /* --- Ajustes para modo claro --- */
  body.light-theme .pedido-tabla {
    background-color: #fdfdfd;
    color: #333;
  }
  
  body.light-theme .pedido-tabla th {
    background-color: #007bff;
    color: #fff;
  }
  



  

.logo {
  text-align: center;
  margin-bottom: 1rem;
}

.logo img {
  max-height: 250px;
}

.search-bar {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 10px;
  border: 1px solid #66afe9;
  background-color: #1e1e1e;
  color: #f1f1f1;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.search-bar input:focus {
  border-color: #66afe9;
  box-shadow: 0 0 5px #66afe9;
  outline: none;
}

.search-bar i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #66afe9;
  font-size: 1rem;
}

.dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.dropdown-btn {
  background-color: #1e1e1e;
  color: #f1f1f1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #66afe9;
  width: 100%;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2a2a2a;
  border-radius: 8px;
  margin-top: 0.25rem;
  width: 100%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  z-index: 99;
  overflow: hidden;
}

.dropdown-content button {
  color: #f1f1f1;
  padding: 0.75rem 1rem;
  text-align: left;
  border: none;
  background: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-content button:hover,
.dropdown-content button:focus {
  background-color: #333;
  color: #4dabf7;
}

.dropdown.show .dropdown-content {
  display: block;
}

.dropdown i {
  width: 20px;
  text-align: center;
  color: #4dabf7;
}

.menu-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.menu-item {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  border: 1px solid transparent;
  animation: fadeInZoom 0.4s ease;
  cursor: pointer;
}

.menu-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(102, 175, 233, 0.5);
  border: 1px solid #66afe9;
}

.menu-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.menu-item h4 {
  font-size: 1rem;
  margin: 0.5rem 0 0.25rem;
  color: #f1f1f1;
}

.menu-item p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #1e1e1e;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  color: #fff;
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  text-align: center;
  color: #aaa;
}

footer a {
  color: #4dabf7;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Centrar título Mi Pedido */
#pedidoLista h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* --- Modo oscuro para cabecera tabla --- */
  body:not(.light-theme) .pedido-tabla th {
    background-color: #2c2c2c; /* Azul oscuro tipo night */
    color: #ffffff;
  }
  body:not(.light-theme) .pedido-tabla td {
    color: #292a2e;
}
  
  /* --- Botones integrados al fondo con solo bordes --- */
  .pedido-actions .btn-accent,
  .pedido-actions .btn-warn {
    background-color: transparent;
    border: 2px solid currentColor;
    color: inherit;
    font-weight: 600;
  }
  
  .pedido-actions .btn-accent:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
  }
  
  .pedido-actions .btn-warn:hover {
    background-color: #ff5722;
    color: white;
    border-color: #ff5722;
  }
  
  /* También puede aplicarse en modo oscuro para mantener coherencia */
  body:not(.light-theme) .btn-accent:hover {
    background-color: #007bff;
    color: white;
  }
  
  body:not(.light-theme) .btn-warn:hover {
    background-color: #ff5722;
    color: white;
  }
  /* Ajustes para tabla de pedido en modo claro */
body.light-theme .pedido-tabla {
    background-color: #fdfdfd;
    color: #292a2e;
  }
 
  
  body.light-theme .pedido-tabla td,
  body.light-theme .pedido-tabla input {
    color: #222222;
  }
  
  body.light-theme .pedido-tabla input {
    background-color: #fcfcfc;
    border: 1px solid #ccc;
  }
  
/* Estilo para el input de cantidad */
.pedido-tabla input[type="number"] {
    width: 60px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 1rem;
    appearance: textfield;
    background-color: #fff;
    transition: border 0.2s ease;
  }
  
  .pedido-tabla input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
  }
  
  body.dark-theme .pedido-tabla input[type="number"] {
    background-color: #222;
    color: #f1f1f1;
    border-color: #444;
  }
  
  body.dark-theme .pedido-tabla input[type="number"]:focus {
    border-color: #4dabf7;
    box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.3);
  }
  
  /* Centrar el dropdown de categoría */
.dropdown {
    display: flex;
    justify-content: center;
    margin: 1.5rem auto;
  }
  
  /* Centrar el grid de productos */
  #menuGrid {
    display: grid;
    justify-content: center; /* Centra horizontalmente el grid */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
  }
  .add-to-cart.cart-added {
    animation: bump 0.4s ease;
    color: #ff7f00;
  }
  
  @keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
  }
/* Posiciona el botón de carrito en la esquina inferior derecha del card */
.cart-bottom-right {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: transparent;
    border: 2px solid #ff7f00;
    color: #ff7f00;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
  }
  
  .cart-bottom-right:hover,
  .cart-bottom-right.cart-added {
    background-color: #ff7f00;
    color: #fff;
  }
    