/* Menube v1 · layout */


/* =========================================================
   1. ENVOLTORIOS GENERALES
   ========================================================= */

.menu2-wrapper {
  background: #ffffff;
  padding: 32px 12px;
}

.menu2-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
  padding: 24px 18px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  font-family: var(--mb-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  color: #111827;
}

/* =========================================================
   2. CABECERA
   ========================================================= */

.menu2-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 14px;
}

.menu2-header-centered {
  text-align: center;
}

.titulo-carta {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
  color: #1a1a1a;
  text-transform: uppercase;
}

.menu2-header-line {
  width: 60px;
  height: 3px;
  background: #c8a462;
  margin: 8px auto 14px auto;
  border-radius: 2px;
}

.menu2-subtitle {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  opacity: 0.9;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
  color: #333;
}

.menu2-meta {
  text-align: center;
  font-size: 15px;
  opacity: 0.75;
  margin-bottom: 18px;
  letter-spacing: 0.4px;
  color: #444;
}

/* =========================================================
   3. BUSCADOR
   ========================================================= */

.menu2-search-wrap {
  margin: 10px 0 14px 0;
}

.menu2-search-wrap input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: .85rem;
  outline: none;
}

.menu2-search-wrap input:focus {
  border-color: #c59d5f;
  box-shadow: 0 0 0 1px rgba(197, 157, 95, 0.35);
}

/* =========================================================
   4. ITEMS DEL MENÚ
   ========================================================= */

.menu2-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  row-gap: 6px;
  padding: 16px 16px 16px 20px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  margin-bottom: 14px;
}

.menu2-item:last-child {
  margin-bottom: 0;
}

.menu2-item.with-image {
  grid-template-columns: 150px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 16px;
}

.menu2-thumb {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
  cursor: pointer;
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: start;
  align-self: start;
  margin-left: 12px;
}

.menu2-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu2-thumb-label-inside {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.60);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

.menu2-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-left: 12px;
}

.menu2-item.with-image .menu2-item-main {
  grid-column: 2;
  grid-row: 1;
}

.menu2-item-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #111827;
}

.menu2-item-desc {
  font-size: .82rem;
  color: #6b7280;
  line-height: 1.45;
}

.menu2-desc-list {
  margin: 0 0 6px 0;
  padding-left: 18px;
}

.menu2-desc-list li {
  margin-bottom: 4px;
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.45;
}

.menu2-item-allergens {
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.menu2-item.with-image .menu2-item-allergens {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  padding-left: 12px;
}

.menu2-allergen-pill {
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.7rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
}

.menu2-item-price {
  font-size: .85rem;
  font-weight: 600;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  white-space: nowrap;
  align-self: start;
}

.menu2-item.with-image .menu2-item-price {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: start;
  text-align: right;
}

.menu2-price-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

.menu-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 999px;
  border: none;
  background: #c59d5f;
  color: #fff;
  cursor: pointer;
}

/* =========================================================
   5. LIGHTBOX + FOOTER BÁSICO
   ========================================================= */

.menu2-lightbox-bg {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.menu2-lightbox-bg.open {
  opacity: 1;
  pointer-events: auto;
}

.menu2-lightbox-bg img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  object-fit: contain;
}


.menu2-footer {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  font-size: .78rem;
  color: #6b7280;
  text-align: center;
}

/* FIX definitivo lightbox */
body #menu2-lightbox.menu2-lightbox-bg {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.88) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .2s ease !important, visibility .2s ease !important;
}

body #menu2-lightbox.menu2-lightbox-bg.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body #menu2-lightbox.menu2-lightbox-bg img {
  max-width: 92% !important;
  max-height: 92% !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
  object-fit: contain !important;
}

/* Fondo blanco para toda la zona del menú */
[data-menube-app="1"] {
  background: #ffffff;
}

/* Fondo blanco también en la página completa */
body,
.site,
.site-content,
.site-main,
.entry-content,
.wp-site-blocks,
.page,
.page-content,
.content-area {
  background: #ffffff !important;
}

.menu2-item.menu2-soldout {
  opacity: 0.6;
  position: relative;
}

.menu2-soldout-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #dc2626;
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 3;
}

.menu-add-btn.is-disabled,
.menu-add-btn:disabled {
  background: #9ca3af !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

.menu2-title,
.menu2-subtitle,
.menu2-meta,
.menu2-section-title,
.menu2-section-subtitle,
.menu2-sub-title,
.menu2-sub-note,
.menu2-item-name,
.menu2-item-desc,
.menu2-item-price,
.menu2-price-line,
.menu2-cart-panel,
.menu2-cart-panel button,
.menu2-ai-panel,
.menu2-ai-panel button,
.menu2-ai-panel input,
.menu2-search-wrap input,
.menu2-footer,
.menu2-footer button {
  font-family: var(--mb-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}
