.modal-backdrop {
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40, 41, 61, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 96vw;
  width: 50vw;
  box-shadow: 0 8px 36px rgba(30,30,80,0.20);
  padding: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalIn 0.22s;
}
@keyframes modalIn {
  from { transform: translateY(60px) scale(.95); opacity:0;}
  to   { transform: none; opacity:1;}
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #6366f1;
  cursor: pointer;
  z-index: 2;
}
.modal-image-container {
  width: 100%;
  height: 210px; /* O el alto que prefieras */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f4f4fa;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  min-height: unset;
  margin-bottom: 0;
}
.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  margin: 0;
  display: block;
}
.modal-body {
  width: 90%;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-body h2 {
  /* margin-top: 14px; */
  font-size: 1.24rem;
}
.modal-price {
  font-size: 1.17rem;
  font-weight: bold;
  color: #6366f1;
  /* margin-bottom: 10px; */
}
.modal-section {
  margin: 8px 0;
}

.modal-product-name{
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0;
  color: #222;
}
.modal-product-description{
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}
.modal-product-price{
  font-size: 1.1rem;
  font-weight: bold;
  color: #6366f1;
  margin-top: 4px;
  margin-bottom: 12px;
}


#modalIngredients, #modalAdditionals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 4px;
}
.ingredient-chip, .additional-chip {
  border: 1px solid #c7d2fe;
  border-radius: 7px;
  padding: 4px 12px;
  font-size: .99rem;
  background: #f4f7fe;
  cursor: pointer;
  transition: background .18s, border .18s;
  user-select: none;
}
.ingredient-chip.removed {
  text-decoration: line-through;
  opacity: .55;
  background: #fde2e2;
  border-color: #ffadad;
}
.additional-chip.selected {
  background: #dbeafe;
  border-color: #6366f1;
  color: #222;
  font-weight: 500;
}
.modal-qty input {
  width: 62px;
  margin-left: 10px;
  font-size: 1.1rem;
  border-radius: 6px;
  border: 1px solid #dbeafe;
  padding: 4px 6px;
}
.modal-add-btn {
  margin-top: 18px;
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
  display: block;
}
.modal-add-btn:hover {
  background: #4f46e5;
}

.modal-done-btn{
  margin-top: 18px;
  width: 90%;
  padding: 12px;
  font-size: 1.1rem;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}

@media (max-width: 800px) {
  .modal-content {
    width: 95vw;
  }
  .modal-image-container {
    height: 180px; /* Ajusta según sea necesario */
  }
  .modal-body h2 {
    font-size: 1.1rem;
  }
  .modal-price {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .modal-content {
    width: 98vw;
    max-width: 98vw;
    max-height: 95vh;
    overflow-y: auto;
  }
  .modal-body h2 {
    font-size: 1.05rem;
  }
  .modal-price {
    font-size: 0.95rem;
  }
}

