* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #c00000 0%, #fc4b08 100%);
  min-height: 100vh;
  padding: 20px;
}

#splash {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.splash-content {
  text-align: center;
}

#splash img {
  width: 200px;
  animation: salto 4s ease-out forwards;
}

/* ✍️ Texto */
.splash-content h1 {
  margin-top: 20px;
  font-size: 60px;
  font-weight: bold;
  text-decoration: underline;
  letter-spacing: 4px;
  opacity: 0;
  animation: textoFade 1.2s ease forwards;
  animation-delay: 1.6s;
}

/* Animación personalizada */
@keyframes salto {
  0% {
    transform: translateY(300px) scale(0.9);
    opacity: 0;
  }
  40% {
    transform: translateY(-30px) scale(1.05); /* Brinco */
    opacity: 1;
  }
  60% {
    transform: translateY(10px) scale(0.98); /* Rebote */
  }
  80% {
    transform: translateY(-5px) scale(1.01); /* Mini rebote */
  }
  100% {
    transform: translateY(0) scale(1); /* Quieto al centro */
    opacity: 1;
  }
}

/* Animación texto */
@keyframes textoFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 1200px;
  margin: 10px auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: white;
  padding: 80px;
  text-align: center;
  line-height: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 2.6em;
  color: black;
  margin-bottom: 10px;
}

header h2 {
  font-size: 2.6em;
  color: black;
  margin-bottom: 10px;
}

h3{
  font-size: 1.5em;
  color: black;
  margin-bottom: 10px;
  line-height: 24px;
}

/*.logo {
  width: 85px;
  height: 80px;
  vertical-align: middle;
  border-radius: 50px;
}*/

.title-box h1{
  display: flex;
  align-items: center;
  justify-content: center; /* 🔥 centra horizontal */
  gap: 5px;
  margin: 5px;
  line-height: 4px;
}

.emoji {
  width: 45px;
  height: 45px;
  vertical-align: middle;
}

.cart-icon {
  position: fixed;
  top: 30px;
  right: 30px;
  background: #f5576c;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
  z-index: 1000;
}

.cart-icon:hover {
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff0000;
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: bold;
}

.tabs {
  display: flex;
  color: #000000;
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.tab {
  color: #000000;
  flex: 1;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  color: #000000;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.tab:hover {
  background: #e9ecef;
}

.tab.active {
  color: #000000;
  border-bottom-color: #f5576c;
  background: white;
}

.content {
  padding: 30px;
}

.category {
  margin-bottom: 40px;
}

.category h2 {
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 3px solid #f5576c;
  font-size: 1.5em;
}

h2 {
  text-align: center;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center; /* 🔥 centra horizontal */
  gap: 20px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.menu-item {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 10px 14px;
  transition: all 0.3s;
  cursor: pointer;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: #f5576c;
}

.menu-item h3 {
  color: #333;
  margin-bottom: 4px;
  font-size: 1.3em;
  text-decoration: underline;
}

.menu-item p {
  color: #6c757d;
  margin-bottom: 6px;
  font-size: 1.2rem;
  line-height: 1em;
}

.menu-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 1.5em;
  font-weight: bold;
  color: #f5576c;
}

.add-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.add-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.toppings-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 10px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  columns: unset; /* anula columns viejas */
}

.toppings-list li {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 1.5px solid #e9ecef;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  text-align: center;
  cursor: default;
  transition: all 0.25s ease;
  user-select: none;
}

.toppings-list li:hover {
  background: linear-gradient(135deg, #ffe3d6 0%, #fff1e8 100%);
  border-color: #fc4b08;
  color: #222;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 10px rgba(252, 75, 8, 0.25);
}

/* ================================
   INPUT TOPPING PERSONALIZADO
================================ */

.custom-topping {
  margin-top: 10px;
}

.custom-topping input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 2px dashed #fc4b08;
  background: #fffaf7;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: all 0.25s ease;
}

/* Placeholder */
.custom-topping input::placeholder {
  color: #999;
  font-style: italic;
}

/* Focus elegante */
.custom-topping input:focus {
  background: #ffffff;
  border-color: #c00000;
  box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.18);
}

/* ================================
   AJUSTES SOLO PARA TARJETAS DE TOPPINGS
================================ */

.menu-item:has(.toppings-list) {
  background: linear-gradient(180deg, #ffffff 0%, #fff7f3 100%);
  border-color: #f5576c;
}

/* Título más marcado */
.menu-item:has(.toppings-list) h3 {
  color: #c00000;
  text-decoration: none;
  font-weight: 800;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 480px) {
  .toppings-list {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .custom-topping input {
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}

/* Topping seleccionado */
.toppings-list li.selected {
  background: linear-gradient(135deg, #fc4b08, #c00000);
  color: #fff;
  border-color: #c00000;
  box-shadow: 0 4px 12px rgba(192, 0, 0, 0.4);
}

.cart-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  transition: right 0.3s;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  right: 0;
}

.cart-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.5em;
}

.close-cart {
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cart-item h4 {
  color: #333;
  font-size: 1.1em;
}

.remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8em;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-btn {
  background: #667eea;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

.quantity {
  font-weight: bold;
  min-width: 30px;
  text-align: center;
}

.cart-footer {
  padding: 20px;
  border-top: 2px solid #dee2e6;
  background: #f8f9fa;
}

.total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-cart {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

.empty-cart-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.payment-section,
.orders-section {
  display: none;
}

.payment-section.active,
.orders-section.active {
  display: block;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.payment-method {
  border: 2px solid #dee2e6;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-method:hover {
  border-color: #667eea;
}

.payment-method.selected {
  border-color: #667eea;
  background: #f0f4ff;
}

.payment-method-icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.order-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 5px 0;
}

.summary-row.total {
  border-top: 2px solid #dee2e6;
  padding-top: 15px;
  margin-top: 15px;
  font-size: 1.3em;
  font-weight: bold;
  color: #f5576c;
}

.confirm-btn {
  width: 100%;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(56, 239, 125, 0.4);
}

.back-btn {
  width: 100%;
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.success-message {
  display: none;
  text-align: center;
  padding: 40px;
}

.success-message.active {
  display: block;
}

.success-icon {
  font-size: 5em;
  color: #38ef7d;
  margin-bottom: 20px;
}

/* SECCIÓN DE PEDIDOS */
.order-card {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.order-card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #dee2e6;
}

.order-id {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

.order-date {
  color: #6c757d;
  font-size: 0.9em;
}

.order-status {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
}

.order-status.pending {
  background: #fff3cd;
  color: #856404;
}

.order-status.completed {
  background: #d4edda;
  color: #155724;
}

.order-items-list {
  margin: 15px 0;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: #495057;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #dee2e6;
}

.order-total {
  font-size: 1.3em;
  font-weight: bold;
  color: #f5576c;
}

.order-actions {
  display: flex;
  gap: 10px;
}

.complete-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.complete-btn:hover {
  background: #218838;
}

.delete-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.delete-btn:hover {
  background: #c82333;
}

.clear-orders-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.clear-orders-btn:hover {
  background: #c82333;
}

.no-orders {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.no-orders-icon {
  font-size: 5em;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .cart-panel {
    width: 100%;
    right: -100%;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-direction: row;
  }

  .tab {
    border-bottom: 1px solid #dee2e6;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .order-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .order-actions {
    width: 100%;
  }

  .complete-btn,
  .delete-btn {
    flex: 1;
  }
}

/* --- Estilos para el formulario del cliente --- */
.client-form {
  background-color: #f8f9fa;
  padding: 20px 18px; /* antes tenías algo como 25px; reducimos a los lados */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.client-form h3 {
  color: #343a40;
  margin-bottom: 20px; /* Más espacio debajo del título del formulario */
  font-size: 1.6em; /* Un poco más grande */
  border-bottom: 2px solid #e9ecef; /* Una línea sutil debajo del título */
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 16px; /* Aumenta el espacio entre cada grupo de formulario */
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 14px; /* mismo tamaño para todos */
  line-height: 1.3; /* consistente */
  box-sizing: border-box;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #80bdff; /* Color de borde al enfocar */
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Sombra al enfocar */
}

/* Para que el <select> tenga el mismo alto visual que los inputs */
.form-group select {
  height: 38px; /* ajusta si quieres un poco más alto */
}

/* Normalizar el placeholder (opcional, solo estética) */
.form-group ::placeholder {
  color: #adb5bd;
  font-size: 13px;
}

.form-group textarea {
  resize: vertical; /* Permite redimensionar verticalmente */
  min-height: 80px; /* Altura mínima para el área de texto */
}

/* Estilos para la sección de dirección (cuando está visible) */
#seccion-direccion {
  border-top: 1px solid #e9ecef; /* Separador visual */
  padding-top: 20px;
  margin-top: 20px;
}

/* Estilos para los métodos de pago */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr)); /* 2 columnas */
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.payment-method {
  padding: 16px 20px;
  border: 2px solid #ced4da;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background-color: #ffffff;
  font-weight: 600;
  color: #495057;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.payment-method:hover {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.18);
  transform: translateY(-2px);
}

.payment-method.selected {
  border-color: #007bff;
  background-color: #e7f3ff;
  color: #007bff;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.25);
}

.payment-method i {
  font-size: 2.2rem;
  margin-bottom: 8px;
  display: block;
}

.payment-method span {
  display: block;
  white-space: nowrap;
}

/* Responsive: en pantallas pequeñas, una sola columna */
@media (max-width: 600px) {
  .payment-methods {
    grid-template-columns: 1fr; /* 1 columna en móvil */
  }
}

/* Botones de acción */
.confirm-btn,
.back-btn {
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 20px; /* Espacio encima de los botones */
}

.confirm-btn {
  background-color: #28a745;
  color: white;
  border: none;
}

.confirm-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.back-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  margin-left: 15px;
}

.back-btn:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

/* Mensaje de éxito */
#success-message {
  text-align: center;
  padding: 40px 20px;
  background-color: #e9f7ef;
  border: 1px solid #d4edda;
  border-radius: 10px;
  margin-top: 30px;
  display: none; /* Oculto por defecto */
}

#success-message.active {
  display: block;
}

#success-message h2 {
  color: #28a745;
  font-size: 2em;
  margin-bottom: 15px;
}

#success-message p {
  color: #343a40;
  font-size: 1.1em;
  margin-bottom: 25px;
}

#success-message .new-order-btn {
  background-color: #007bff;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#success-message .new-order-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* Estilos para el resumen del pedido en la sección de pago */
.order-summary {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.order-summary h3 {
  color: #343a40;
  margin-bottom: 15px;
  font-size: 1.4em;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 1em;
  color: #555;
}

.summary-row.total {
  font-weight: bold;
  font-size: 1.2em;
  color: #343a40;
  padding-top: 15px;
  border-top: 1px dashed #e9ecef;
  margin-top: 10px;
}

/* Estilos para la sección de pedidos (admin) */
#orders-section {
  padding: 20px;
}

#orders-section h2 {
  color: #343a40;
  margin-bottom: 25px;
  font-size: 2em;
  text-align: center;
}

.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.orders-header h3 {
  margin: 0;
  color: #343a40;
  font-size: 1.5em;
}

.clear-orders-btn {
  background-color: #dc3545;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.clear-orders-btn:hover {
  background-color: #c82333;
}

.no-orders {
  text-align: center;
  padding: 50px 20px;
  background-color: #f8f9fa;
  border: 1px dashed #ced4da;
  border-radius: 10px;
  margin-top: 30px;
}

.no-orders-icon {
  font-size: 4em;
  color: #6c757d;
  margin-bottom: 20px;
}

.no-orders h3 {
  color: #343a40;
  margin-bottom: 10px;
}

.no-orders p {
  color: #6c757d;
}

.order-card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.order-card:hover {
  transform: translateY(-3px);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f3f5;
}

.order-id {
  font-weight: bold;
  font-size: 1.2em;
  color: #343a40;
}

.order-date {
  font-size: 0.9em;
  color: #6c757d;
}

.order-status {
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.85em;
  text-transform: uppercase;
}

.order-status.pending {
  background-color: #fff3cd;
  color: #856404;
}

.order-status.completed {
  background-color: #d4edda;
  color: #155724;
}

.order-items-list {
  margin-bottom: 15px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.95em;
  color: #555;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f1f3f5;
}

.order-total {
  font-weight: bold;
  font-size: 1.3em;
  color: #343a40;
}

.order-actions button {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  margin-left: 10px;
  transition: background-color 0.3s ease;
}

.order-actions .complete-btn {
  background-color: #28a745;
  color: white;
}

.order-actions .complete-btn:hover {
  background-color: #218838;
}

.order-actions .delete-btn {
  background-color: #dc3545;
  color: white;
}

.order-actions .delete-btn:hover {
  background-color: #c82333;
}

.commercial-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  margin: 30px auto;
  max-width: 420px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border: 1px solid #eaeaea;
}

.commercial-card h3 {
  font-size: 25px;
  text-align: center;
  margin-bottom: 8px;
  text-decoration: underline;
}

.commercial-card .description {
  font-size: 17px;
  text-align: center;
  color: #000000;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 14px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.web-link {
  font-size: 28px;
  color: black;
  font-weight: 800;
  text-decoration: none;
}

.web-link:hover {
  text-decoration: underline;
  color: #6c63ff;
}

@media (max-width: 480px) {
  /* Header compacto */
  header {
    padding: 10px 8px;
    gap: 6px;
  }

  .logo {
    width: 75px;
  }

  .title {
    font-size: 1.7rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  /* Contenedor más compacto */
  .container {
    border-radius: 12px;
  }

  /* Tabs */
  .tab {
    padding: 14px 6px;
    font-size: 0.9rem;
  }

  /* Tarjetas */
  .menu-item {
    padding: 12px;
    border-radius: 14px;
  }

  .menu-item h3 {
    font-size: 1.1rem;
  }

  .menu-item p {
    font-size: 0.95rem;
  }

  .price {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .menu-grid {
    gap: 18px; /* un poco más de espacio */
  }

  .menu-item {
    padding: 14px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .custom-topping input {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .cart-icon {
    width: 52px;
    height: 52px;
  }

  .cart-badge {
    width: 22px;
    height: 22px;
    font-size: 0.75em;
  }
}

.cart-panel {
  touch-action: pan-y;
}

@media (max-width: 600px) {
  .add-btn, .checkout-btn, .confirm-btn {
    padding: 14px 22px;
    font-size: 1.15em;
  }
}

@media (max-width: 480px) {
  .client-form {
    padding: 18px;
  }

  .form-group {
    margin-bottom: 18px;
  }
}







