/* ============================================================
   RICOS — página del menú
   ============================================================ */
.menu-page { background: var(--crema); }
.menu-top { background: rgba(247, 240, 228, 0.94); border-bottom-color: rgba(25,24,24,.12); }
.menu-top .menu-toggle span { background: var(--carbon); }
.menu-top .btn.ghost { --fg: var(--carbon); box-shadow: inset 0 0 0 2px var(--carbon); }
.menu-top .btn.ghost:hover { background: rgba(25,24,24,.07); }
.menu-top .actions .ghost { display: none; }
@media (min-width: 700px) { .menu-top .actions .ghost { display: inline-flex; } }
.menu-top nav { display: none; }
@media (min-width: 980px) { .menu-top nav { display: flex; } }
.menu-top .menu-toggle { display: none; }

.menu-hero { padding: clamp(44px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.menu-hero .wrap { display: grid; gap: 18px; }
.menu-hero h1 { font-size: clamp(64px, 12vw, 180px); }
.menu-hero .lede { color: #5f584d; }
@media (min-width: 900px) { .menu-hero .wrap { grid-template-columns: 1fr auto; align-items: end; } }

/* Barra pegajosa: buscador + categorías */
.menu-tools {
  position: sticky; top: 84px; z-index: 30;
  background: var(--crema);
  border-block: 1px solid rgba(25,24,24,.12);
  padding: 12px 0;
}
.menu-tools .wrap { display: grid; gap: 10px; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; width: 20px; height: 20px; color: #7a7367; pointer-events: none; }
.search input {
  width: 100%; height: 50px; padding: 0 44px 0 44px;
  background: #fff; color: var(--carbon); border: 2px solid var(--carbon); border-radius: 0;
  font: inherit; font-size: 16px;
}
.search input::placeholder { color: #8a8378; }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search input:focus { outline: 3px solid var(--rojo); outline-offset: 2px; }
.search button { position: absolute; right: 6px; width: 38px; height: 38px; font-size: 26px; line-height: 1; color: var(--carbon); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 18px; line-height: 1;
  padding: 10px 14px 11px; color: var(--carbon); border: 2px solid rgba(25,24,24,.25); transform: skewX(var(--skew));
  transition: background .15s, border-color .15s, color .15s;
}
.chips a > span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }
.chips a:hover { border-color: var(--carbon); }
.chips a.active { background: var(--carbon); color: var(--crema); border-color: var(--carbon); }
@media (min-width: 900px) {
  .menu-tools .wrap { grid-template-columns: minmax(280px, 420px) 1fr; align-items: center; gap: 20px; }
}

/* Carta */
.carta { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 8vw, 110px); }
.menu-status { font-size: 14px; color: #6b655a; margin-bottom: 28px; }
.family { margin-top: clamp(40px, 6vw, 80px); }
.family:first-child { margin-top: 0; }
.family-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 3px solid var(--carbon); }
.family-head h2 { font-size: clamp(40px, 6vw, 84px); }
.family-head span { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 20px; color: #6b655a; white-space: nowrap; }
.family-grid { display: grid; gap: 28px; }
.msection { break-inside: avoid; }
@media (min-width: 820px) {
  .family-grid { display: block; columns: 2; column-gap: 48px; }
  .msection { margin-bottom: 32px; }
  .family-grid.single { columns: 1; }
  .family-grid.single .dishes { columns: 2; column-gap: 48px; }
  .family-grid.single .dish-row { break-inside: avoid; }
}
.msection h3 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 6px; scroll-margin-top: 180px; }
.msection .note { font-size: 14px; color: #6b655a; margin-bottom: 10px; max-width: 60ch; }
.dishes { display: grid; }
.dish-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(25,24,24,.12); }
.dish-row:last-child { border-bottom: 0; }
.dish-row .name { font-weight: 600; font-size: 17px; line-height: 1.3; }
.dish-row .name mark { background: #ffd8d3; color: inherit; padding: 0; }
.dish-row .desc { grid-column: 1; font-size: 14px; color: #6b655a; line-height: 1.4; }
.dish-row .p { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 24px; line-height: 1; color: var(--rojo); white-space: nowrap; }
.family[hidden], .msection[hidden], .dish-row[hidden] { display: none; }
.empty { padding: 48px 0; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty p { color: #6b655a; }
.empty a { color: var(--rojo); text-decoration: underline; text-underline-offset: 3px; }

/* CTA final */
.menu-cta { background: var(--carbon); color: var(--crema); --ink: var(--crema); --ink-soft: #b8b0a4; padding-block: clamp(64px, 9vw, 120px); }
.menu-cta .wrap { display: grid; gap: 20px; }
.menu-cta .lede { color: var(--ink-soft); }
.menu-cta .btn.ghost { --fg: var(--crema); box-shadow: inset 0 0 0 2px var(--crema); }
.menu-page footer { background: var(--carbon); color: var(--crema); --ink-soft: #b8b0a4; border-top-color: rgba(247,240,228,.14); }

.to-top {
  position: fixed; left: 16px; bottom: 16px; z-index: 50; width: 46px; height: 46px;
  background: var(--carbon); color: var(--crema); font-size: 22px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.to-top[hidden] { display: none; }
@media (min-width: 900px) { .to-top { left: 24px; bottom: 24px; } }

/* En celular, el botón flotante solo muestra el ícono para no tapar los precios */
@media (max-width: 899px) {
  .menu-page .wa-float { padding: 12px; }
  .menu-page .wa-float span { display: none; }
}
