.section {
  padding: 36px 0;
}

.section h3 {
  margin: 0 0 18px;
}

/* Platos */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dish {
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.dish:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dish img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.dish:hover img {
  transform: scale(1.1);
}

.dish .meta {
  display: flex;
  flex-direction: column;
  padding: 0px 15px 15px 15px;
  gap: 6px;
  text-align: start;
}

.dish h4 {
  margin: 0;
  margin-top: 10px;
  font-size: 1.4rem;
  color: var(--color-primary);
}

.dish .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.price {
  font-size: 1rem;
  font-weight: 700;
  color: #d4a017;
}

/* Responsive */
@media(max-width:1000px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:640px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-grid .dish img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
  }

  .dish p {
    font-size: 0.9rem;
    padding: 0;
    margin-top: 5px;
    margin-bottom: 0;
  }

  .dish h4 {
    font-size: 1rem;
    padding: 0;
  }
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.25rem;
}

@media(max-width:820px) {
  nav ul {
    display: none;
    position: absolute;
    right: 20px;
    top: 70px;
    background: var(--card);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.09);
  }

  .menu-toggle {
    display: inline-block;
  }

  nav ul.open {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  border: 1px solid rgba(197, 160, 89, 0.2);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content h2 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  margin-top: 0;
  font-size: 2rem;
  color: #5a3921;
  font-weight: 800;
  text-align: center;
  border-bottom: none;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.modal-content h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: #c5a059;
  margin: 15px auto 0;
  border-radius: 2px;
}

.modal-content p {
  text-align: left;
  margin-top: 20px;
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
  font-weight: 400;
}

#dishDetails ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#dishDetails li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed #e6dace;
  font-size: 1.05rem;
  color: #333;
  background: transparent;
}

#dishDetails li:hover {
  background: transparent;
  transition: transform 0.5s ease, box-shadow 0.4s ease;
  padding-left: 6px;
  border-bottom-color: #c5a059;
}

#dishDetails li:last-child {
  border-bottom: none;
}

#dishDetails li span:first-child {
  font-weight: 500;
  color: #4a4a4a;
}

#dishDetails li .price {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: #c5a059;
  margin-left: 20px;
  white-space: nowrap;
}

.modal .close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f4f4f4;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  z-index: 10;
}

.modal .close:hover {
  background: #c5a059;
  color: #fff;
  transform: rotate(90deg);
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

/* Scrollbar */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: #e0d7bc;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #c5a059;
}

/* RESPONSIVE */
@media(max-width: 600px) {
  .modal-content {
    padding: 30px 20px;
    width: 90%;
    max-height: 80vh;
  }

  .modal-content h2 {
    font-size: 1.6rem;
  }

  #dishDetails li {
    font-size: 0.95rem;
    padding: 12px 0;
  }

  #dishDetails li .price {
    font-size: 1.1rem;
  }
}