/* ============================================================
   PA TU CORO — menu.css
   Estilos exclusivos de la página "Menú Completo" (menu.html).
   Reutiliza las variables y el reset de styles.css.
   ============================================================ */

/* ── Barra superior simple ── */
.mp-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(246,241,231,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--choco);
}
.mp-topbar-brand img { width: 40px; height: 40px; object-fit: contain; }
.mp-topbar-brand span {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.mp-topbar-actions { display: flex; align-items: center; gap: 0.7rem; }
.mp-back-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  display: none;
}
.mp-back-link:hover { color: var(--terracota); }
.mp-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  background: var(--terracota);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.mp-order-btn:hover { background: var(--terra-dark); transform: translateY(-1px); }

/* ── Hero ── */
.mp-hero {
  position: relative;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  overflow: hidden;
  background: var(--choco);
}
.mp-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/img/dips.jpg");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.32;
}
.mp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,18,10,0.55) 0%, rgba(30,18,10,0.88) 85%);
}
.mp-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.mp-hero-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 0.9rem;
}
.mp-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  color: var(--cream);
  line-height: 1.08;
  margin-bottom: 1rem;
}
.mp-hero-title em { font-style: italic; color: var(--terracota); }
.mp-hero-sub {
  font-size: 0.98rem;
  color: rgba(246,241,231,0.75);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Índice de categorías ── */
.mp-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.mp-toc a {
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  border: 1.5px solid var(--line-strong);
  background: var(--cream);
  color: var(--choco);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.15s;
}
.mp-toc a:hover { border-color: var(--choco); transform: translateY(-1px); }
.mp-toc a.active { background: var(--choco); border-color: var(--choco); color: var(--cream); }

/* ── Secciones de categoría ── */
.mp-category { max-width: 1180px; margin: 0 auto; padding: 3.5rem 1.5rem 1rem; scroll-margin-top: 5rem; }
.mp-category-head { margin-bottom: 2.2rem; }
.mp-category-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 0.4rem;
}
.mp-category-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--choco);
}
.mp-category-desc {
  margin-top: 0.6rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  max-width: 560px;
  line-height: 1.6;
}

/* ── Bloque de plato ── */
.mp-dish {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}
.mp-dish:first-of-type { border-top: none; padding-top: 0; }
.mp-dish--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.mp-dish--reverse .mp-dish-gallery { order: 2; }
.mp-dish--reverse .mp-dish-info { order: 1; }

.mp-dish-gallery { display: flex; flex-direction: column; gap: 0.6rem; }
.mp-hero-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.mp-dish-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  cursor: zoom-in;
  background: var(--cream-2);
  transition: transform 0.3s ease;
}
.mp-dish-hero:hover { transform: scale(1.01); }
.mp-hero-badge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 2rem 1.1rem 1rem;
  background: linear-gradient(to bottom, rgba(20,12,7,0) 0%, rgba(20,12,7,0.75) 100%);
  pointer-events: none;
}
.mp-hero-badge-name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
  text-wrap: balance;
}
.mp-hero-badge-price {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  white-space: nowrap;
  flex-shrink: 0;
}
.mp-dish-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.5rem;
}
.mp-dish-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.15s;
}
.mp-dish-thumbs img:hover { opacity: 1; transform: scale(1.04); }
.mp-photo-count {
  font-size: 0.72rem;
  color: var(--text-mute);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mp-dish-info { display: flex; flex-direction: column; padding-top: 0.3rem; }
.mp-dish-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracota);
  background: rgba(201,106,74,0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.7rem;
}
.mp-dish-name {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--choco);
  margin-bottom: 0.5rem;
}
.mp-dish-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.mp-dish-variants {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.mp-variant-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
}
.mp-dish-variants .mp-variant-row:first-child { border-top: none; padding-top: 0; }
.mp-variant-row {
  border-radius: 10px;
  transition: background 0.15s;
}
.mp-variant-row:hover { background: rgba(201,106,74,0.05); }
.mp-variant-name { flex: 1; min-width: 0; color: var(--choco); font-weight: 600; }
.mp-variant-price { color: var(--terracota); font-weight: 700; font-family: 'Fraunces', serif; white-space: nowrap; }
.mp-add-btn {
  flex-shrink: 0;
  /* El botón flotante de WhatsApp es fixed con z-index 500 y puede coincidir
     con estos botones al hacer scroll — deben quedar por encima para que
     el clic les llegue a ellos y no al flotante. */
  position: relative;
  z-index: 501;
}
.mp-add-btn.added { background: var(--sage); }
.mp-dish-note {
  font-size: 0.78rem;
  color: var(--text-mute);
  font-style: italic;
}

/* ── Extras (dips) ── */
.mp-extras {
  margin-top: 1rem;
  padding: 1.75rem;
  border-radius: 16px;
  background: var(--cream-2);
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1.5rem;
  align-items: center;
}
.mp-extras img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
}
.mp-extras-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--choco);
  margin-bottom: 0.7rem;
}
.mp-extras-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.3rem 1.5rem;
}
.mp-extras-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--line);
}
.mp-extras-list li span:first-child { flex: 1; min-width: 0; }
.mp-extras-list .price { color: var(--terracota); font-weight: 700; white-space: nowrap; }
.mp-extras-list .mp-add-btn { flex-shrink: 0; }

/* ── CTA final ── */
.mp-final-cta {
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  max-width: 560px;
  margin: 0 auto;
}
.mp-final-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--choco);
  margin-bottom: 0.8rem;
}
.mp-final-cta p { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 780px) {
  .mp-dish, .mp-dish--reverse {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .mp-dish--reverse .mp-dish-gallery,
  .mp-dish--reverse .mp-dish-info { order: initial; }
  .mp-extras { grid-template-columns: 1fr; }
  .mp-back-link { display: none !important; }
}
@media (min-width: 640px) {
  .mp-back-link { display: inline-block; }
}
