/* --- CONTENEDORES DE LOS MODALES --- */
.modal-overlay, .modal-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px); /* Suaviza el fondo */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.modal-overlay.active, .modal-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- CONTENEDOR INTERNO DEL MENÚ COMPLETO --- */
.modal-menu-container {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  height: 85vh;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
}

.modal-menu-overlay.active .modal-menu-container {
  transform: translateY(0);
}

/* --- ENCABEZADO --- */
.modal-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f2f2f2;
}

.modal-menu-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.5px;
}

.btn-close-menu {
  background: #f5f5f5;
  border: none;
  font-size: 22px;
  color: #333;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.btn-close-menu:hover {
  background: #e8e8e8;
}

/* --- CARRUSEL DE CATEGORÍAS (CHIPS) --- */
.categories-carousel {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  overflow-x: auto;
  white-space: nowrap;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.categories-carousel::-webkit-scrollbar {
  display: none;
}

.category-chip {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.category-chip.active {
  background: #ff5722;
  color: #fff;
  border-color: #ff5722;
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.2);
}

/* --- LISTA DE PRODUCTOS --- */
.menu-products-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 24px 40px 24px;
}

/* --- TARJETA DE PRODUCTO REDISEÑADA --- */
.horizontal-product-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #f5f5f5;
}

.horizontal-product-card:last-child {
  border-bottom: none;
}

.product-img-box {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ff5722;
  color: white;
  font-size: 0.6rem;
  text-align: center;
  padding: 3px 0;
  font-weight: 700;
  text-transform: uppercase;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.product-price {
  color: #ff5722;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.product-desc {
  font-size: 0.8rem;
  color: #777;
  margin: 0 0 12px 0;
  line-height: 1.4;
  /* Se eliminaron las propiedades -webkit-line-clamp y overflow para mostrar todo el texto */
  display: block; 
}

/* BOTÓN PEDIR ELEGANTE */
.btn-order-product {
  align-self: flex-start;
  background: #25d366; /* Color verde WhatsApp corporativo */
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.15);
  text-decoration: none;
}

.btn-order-product:hover {
  background: #20ba56;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.btn-order-product svg {
  fill: currentColor;
}