/* =========================================================
   ARVIZTO · Demo de MENÚ VIRTUAL — Iteración 3
   Un plato por pantalla. El modelo 3D es el protagonista:
   se gira con el dedo y se coloca en la mesa con AR.
   Luz cálida de mesa (comida) + cian ARVIZTO (lo interactivo).
   ========================================================= */

@property --lamp {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(255, 186, 120);
}

:root {
  --bg:        #07080b;
  --surface:   #0f1218;
  --surface-2: #131720;

  --text:       #f5f7fb;
  --text-muted: #a3abb8;
  --text-dim:   #6d7684;

  --cyan:    #22d3ee;
  --cyan-2:  #67e8f9;
  --blue:    #3b82f6;
  --violet:  #8b5cf6;
  --green:   #25d366;

  --gradient: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 48%, var(--violet) 100%);

  --border:        rgba(245, 247, 251, 0.08);
  --border-strong: rgba(245, 247, 251, 0.16);
  --border-accent: rgba(34, 211, 238, 0.34);

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 56px;
  --cats-h:   48px;
  --gutter:   22px;
}

/* ---------------------------------------------------------
   Reset
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--cats-h) + 10px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, model-viewer { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

main { position: relative; z-index: 1; }

/* ---------------------------------------------------------
   Ambiente · la luz de la mesa cambia con la categoría
   --------------------------------------------------------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --lamp: rgb(255, 186, 120);
  transition: --lamp 1.4s ease;
  background: radial-gradient(78% 42% at 50% 46%, rgba(255, 186, 120, 0.13), transparent 72%);
}
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .ambient {
    background: radial-gradient(78% 42% at 50% 46%,
      color-mix(in srgb, var(--lamp) 17%, transparent), transparent 72%);
  }
}

/* Progreso de lectura */
.menu-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 110;
  pointer-events: none;
}
.menu-progress span {
  display: block;
  height: 100%;
  background: var(--gradient);
  transform-origin: left;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .menu-progress span {
    animation: readProg linear both;
    animation-timeline: scroll(root);
  }
  @keyframes readProg { to { transform: scaleX(1); } }
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
.mh {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(7, 8, 11, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.mh__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 12px;
}

.mh__icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.mh__icon:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.mh__logo { height: 22px; width: auto; }

.mh__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mh__demo {
  padding: 4px 10px;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  color: var(--cyan-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* ---------------------------------------------------------
   PORTADA
   --------------------------------------------------------- */
.cover {
  padding: calc(var(--header-h) + 34px) var(--gutter) 26px;
  animation: coverIn 0.9s var(--ease) both;
}
@keyframes coverIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.cover__place {
  color: var(--cyan-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.cover__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5.2rem, 30vw, 10rem);
  line-height: 0.8;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.cover__sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.cover__how {
  display: inline-block;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------------------------------------------------------
   CATEGORÍAS
   --------------------------------------------------------- */
.cats {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  height: var(--cats-h);
  background: rgba(7, 8, 11, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.cats__track {
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.cats__track::-webkit-scrollbar { display: none; }

.cat {
  position: relative;
  flex-shrink: 0;
  padding: 0 14px;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cat::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.cat:hover { color: var(--text-muted); }
.cat.is-active { color: var(--text); font-weight: 600; }
.cat.is-active::after { transform: scaleX(1); }

/* ---------------------------------------------------------
   CARTA
   --------------------------------------------------------- */
.menu { padding-bottom: 12px; }

.msec {
  padding-top: 44px;
  scroll-margin-top: calc(var(--header-h) + var(--cats-h) + 10px);
}

.msec__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--gutter) 18px;
}

.msec__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.msec__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* ---------------------------------------------------------
   LISTA CLÁSICA · platos sin 3D
   --------------------------------------------------------- */
.items { padding: 0 var(--gutter); margin-bottom: 8px; }

.item {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.item:last-child { border-bottom: 0; }

.item__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 3px;
}

.item__name {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.item__leader {
  flex: 1;
  min-width: 16px;
  height: 0;
  border-bottom: 1px dotted rgba(245, 247, 251, 0.2);
  transform: translateY(-4px);
}

.item__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

.item__desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 92%;
}

/* ---------------------------------------------------------
   PLATO 3D · una pantalla por plato
   --------------------------------------------------------- */
.dish {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h) - var(--cats-h));
  padding: 26px var(--gutter) 40px;
}

.dish__head { position: relative; z-index: 1; }

.dish__label {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dish__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 19vw, 6.6rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--text);
  cursor: pointer;
  transition: color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.dish__name:hover { color: var(--cyan-2); }
.dish__name--long { font-size: clamp(2.7rem, 13vw, 4.8rem); }

.dish--featured .dish__name { color: var(--cyan-2); }
.dish--featured .dish__stage { max-height: 62svh; }

/* Escenario: el visor sale de los márgenes para que el plato respire */
.dish__stage {
  position: relative;
  z-index: 2;
  flex: 1 1 320px;
  min-height: 300px;
  max-height: 58svh;
  margin: -4px calc(var(--gutter) * -1) 0;
}

.dish__slot { position: absolute; inset: 0; }

.dish__viewer {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  --poster-color: transparent;
  --progress-bar-color: transparent;
  --progress-mask: transparent;
  outline: none;
}
.dish__viewer.is-ready { opacity: 1; }

.dish__loader {
  position: absolute;
  top: 50%; left: 50%;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.16);
  border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.dish.is-loaded .dish__loader,
.dish.is-failed .dish__loader { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.dish.is-failed .dish__stage::before {
  content: "No se pudo cargar el modelo 3D.";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.dish__expand {
  position: absolute;
  top: 6px;
  right: calc(var(--gutter) + 0px);
  z-index: 3;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(7, 8, 11, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.dish__expand:hover { color: var(--cyan-2); border-color: var(--border-accent); }

.dish__hint {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(7, 8, 11, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-size: 0.76rem;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.dish__hint svg { color: var(--cyan); }
body.has-touched .dish__hint { opacity: 0; }

/* Info inferior */
.dish__info { position: relative; z-index: 3; padding-top: 10px; }

.dish__desc {
  max-width: 36ch;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.dish__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.dish__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 0.85;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   BOTÓN AR · "Ver en mi mesa" + tamaño real
   --------------------------------------------------------- */
.ar-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border-accent);
  background: rgba(34, 211, 238, 0.07);
  color: var(--cyan-2);
  text-align: left;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.ar-btn:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(103, 232, 249, 0.6);
  transform: translateY(-1px);
}
.ar-btn:active { transform: translateY(0); }
.ar-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.ar-btn__txt { display: flex; flex-direction: column; line-height: 1.15; }
.ar-btn__t { color: var(--text); font-size: 0.95rem; font-weight: 600; }
.ar-btn__s { margin-top: 2px; color: var(--cyan-2); font-size: 0.74rem; font-weight: 500; }

.ar-btn--lg { width: 100%; justify-content: center; min-height: 60px; }

/* Botones generales (cierre e info) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--gradient);
  color: #04070a;
  box-shadow: 0 14px 34px -16px rgba(34, 211, 238, 0.7);
}
.btn--wa {
  color: #8ceeb0;
  border-color: rgba(37, 211, 102, 0.32);
  background: rgba(37, 211, 102, 0.09);
}
.btn--wa:hover { border-color: rgba(37, 211, 102, 0.55); background: rgba(37, 211, 102, 0.15); }

/* ---------------------------------------------------------
   CIERRE
   --------------------------------------------------------- */
.closing {
  margin: 56px var(--gutter) 0;
  padding: 44px 0 calc(72px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
}

.closing__title {
  max-width: 11ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 17vw, 6rem);
  line-height: 0.86;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.closing__text {
  max-width: 40ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.closing__actions { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }

.closing__note {
  margin-top: 26px;
  max-width: 44ch;
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* ---------------------------------------------------------
   VISTA DE DETALLE
   --------------------------------------------------------- */
.detail {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.42s var(--ease);
  will-change: transform;
}
.detail.is-open { transform: translateY(0); }

.detail__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  will-change: transform;
}

.detail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.detail__close {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  transition: background 0.2s var(--ease);
}
.detail__close:hover { background: rgba(245, 247, 251, 0.06); }

.detail__cat {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.detail__spacer { width: 40px; }

.detail__viewer {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background:
    radial-gradient(70% 55% at 50% 46%, rgba(255, 186, 120, 0.13), transparent 72%),
    var(--bg);
}
.detail__viewer model-viewer {
  width: 100% !important;
  height: 100% !important;
  display: block;
  --poster-color: transparent;
  --progress-bar-color: var(--cyan);
  --progress-mask: rgba(245, 247, 251, 0.06);
}

.detail__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.detail__loader.is-hidden { opacity: 0; }

.detail__loader-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.18);
  border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}

.detail__loader-txt {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.detail__body {
  position: relative;
  flex-shrink: 0;
  padding: 22px var(--gutter) calc(26px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* Pista de gesto: dentro del visor, abajo al centro */
.detail__hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}
.detail__hint.is-hidden { opacity: 0; }
.detail__hint svg { color: var(--cyan); flex-shrink: 0; }

.detail__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.detail__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--text);
}

.detail__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--text);
  white-space: nowrap;
}

.detail__desc {
  max-width: 44ch;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.detail__actions { display: flex; gap: 10px; }

.detail__real {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.5;
}

.detail__ar-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}
.detail__ar-note--safari { color: var(--cyan-2); }
.detail__ar-note--safari strong { color: var(--text); }

/* ---------------------------------------------------------
   AVISO: MEJOR EXPERIENCIA AR EN SAFARI (banner global)
   --------------------------------------------------------- */
.browser-notice {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  z-index: 95;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.browser-notice.is-visible {
  opacity: 1;
  transform: translateY(8px);
  pointer-events: auto;
}

.browser-notice__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 18, 24, 0.94);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.7);
}

.browser-notice__icon { flex-shrink: 0; color: var(--cyan); }

.browser-notice__text {
  flex: 1;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.browser-notice__text strong { color: var(--text); }

.browser-notice__copy {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
  background: transparent;
  color: var(--cyan-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.browser-notice__copy:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(139, 92, 246, 0.45);
}

.browser-notice__close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.browser-notice__close:hover { color: var(--text); background: rgba(245, 247, 251, 0.06); }

@media (min-width: 640px) {
  .browser-notice {
    left: 50%;
    right: auto;
    transform: translate(-50%, -10px);
    width: min(480px, calc(100vw - 48px));
  }
  .browser-notice.is-visible { transform: translate(-50%, 8px); }
}

/* ---------------------------------------------------------
   PANEL: SOBRE ESTA DEMO
   --------------------------------------------------------- */
.info {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 8, 11, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.info__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 34px 26px calc(28px + env(safe-area-inset-bottom, 0px));
  animation: slideUp 0.35s var(--ease);
  border: 1px solid var(--border);
  border-bottom: 0;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.info__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-muted);
}
.info__close:hover { color: var(--text); background: rgba(245, 247, 251, 0.06); }

.info__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.info__text {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.info__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* ---------------------------------------------------------
   ESCRITORIO · ficha de producto: texto a un lado, plato al otro
   --------------------------------------------------------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --header-h: 60px; --cats-h: 52px; }

  .mh__inner { padding: 0 24px; }
  .mh__logo { height: 24px; }

  .cats__track { justify-content: center; }

  .cover,
  .menu,
  .closing {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }
  .closing { margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

  .cover { padding-top: calc(var(--header-h) + 52px); }
  .cover__title { font-size: clamp(8rem, 14vw, 12rem); }

  .ambient {
    background: radial-gradient(44% 56% at 68% 48%, rgba(255, 186, 120, 0.13), transparent 72%);
  }
  @supports (background: color-mix(in srgb, red 10%, transparent)) {
    .ambient {
      background: radial-gradient(44% 56% at 68% 48%,
        color-mix(in srgb, var(--lamp) 17%, transparent), transparent 72%);
    }
  }

  .msec__title { font-size: 2rem; }

  .items { max-width: 640px; }

  .dish {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "head stage"
      "info stage";
    column-gap: 48px;
    align-items: start;
    padding: 36px var(--gutter);
  }

  .dish__head { grid-area: head; align-self: end; padding-bottom: 22px; }
  .dish__name { font-size: clamp(5rem, 8.4vw, 8.4rem); }
  .dish__name--long { font-size: clamp(3.6rem, 6vw, 6rem); }

  .dish__stage {
    grid-area: stage;
    align-self: center;
    width: 100%;
    max-height: none;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0;
  }
  .dish__expand { right: 8px; top: 8px; }

  .dish__info { grid-area: info; align-self: start; padding-top: 0; }
  .dish__desc { font-size: 1.04rem; }
  .dish__foot { justify-content: flex-start; align-items: center; gap: 28px; }
  .dish__price { font-size: 3.4rem; }

  .closing__title { max-width: none; }
  .closing__actions { flex-direction: row; max-width: none; }

  .detail__name { font-size: 3.6rem; }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .detail { transition: none; }
}

/* ---------------------------------------------------------
   Modo AR activo
   --------------------------------------------------------- */
body.is-ar-active .mh,
body.is-ar-active .cats { visibility: hidden; }