/* Estilos extraídos de apps/web/src/index.css (variables base + "Menú digital — carta folk mexicana") */
:root {
  --char: #1A1614;
  --ember: #E07A8C;
  --brown: #6B3E26;
  --paper: #FFFFFF;
  --soft: #b4a795;
  --line: rgba(255,255,255,.16);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Manrope', Arial, sans-serif;
  --label: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--char); color: var(--paper); font-family: var(--body); font-size: 14px; line-height: 1.75; overflow-x: clip; }
body.tm-lock-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }
a, button { transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ember); outline-offset: 5px; }
button:active { transform: scale(.98); }
img { display: block; max-width: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
h3 { font-weight: 500; }
::selection { background: var(--ember); color: var(--char); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Pantalla de Bienvenida: Video + Selección de Idioma ===== */
.tm-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--char);
  background-image: radial-gradient(circle at 50% 15%, rgba(224,122,140,.22), transparent 65%);
  opacity: 1;
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1), visibility .55s ease;
}
.tm-welcome-overlay.tm-welcome-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.tm-welcome-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: min(740px, 92dvh);
  min-height: 560px;
  background-color: #EFEFED;
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .68);
  overflow: hidden;
  transition: background-color .65s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}
.tm-welcome-card.tm-show-lang {
  background-color: #FFFFFF;
}
.tm-welcome-overlay.tm-welcome-hidden .tm-welcome-card {
  transform: scale(1.03) translateY(-10px);
}

/* Fase 1: Video */
.tm-intro-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #EFEFED;
  opacity: 1;
  transform: scale(1);
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1), transform .65s cubic-bezier(.22, 1, .36, 1);
}
.tm-welcome-card.tm-show-lang .tm-intro-stage {
  opacity: 0;
  transform: scale(.94) translateY(-16px);
  pointer-events: none;
}
.tm-intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tm-intro-controls {
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}
.tm-intro-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(26, 22, 20, .14);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
  color: #1A1614;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.tm-intro-ctrl-btn:hover {
  background: rgba(255, 255, 255, .96);
}
.tm-intro-ctrl-btn svg {
  width: 15px;
  height: 15px;
}

/* Toque para entrar (solo si el navegador bloquea el audio automático) */
.tm-tap-to-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 0;
  background: #EFEFED;
  color: #1A1614;
  font-family: var(--body);
}
.tm-tap-to-start[hidden] { display: none; }
.tm-tap-logo { width: 150px; height: auto; object-fit: contain; }
.tm-tap-pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #E07A8C;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(224,122,140,.55);
  animation: tmPulse 1.6s ease-out infinite;
}
.tm-tap-pulse svg { width: 26px; height: 26px; margin-left: 3px; }
.tm-tap-text { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
@keyframes tmPulse {
  0% { box-shadow: 0 0 0 0 rgba(224,122,140,.55); }
  100% { box-shadow: 0 0 0 22px rgba(224,122,140,0); }
}

/* Redes sociales al final del menú (reemplaza el botón de WhatsApp) */
.tm-menu-social {
  display: inline-block;
  background: #E07A8C;
  border-radius: 14px;
  padding: 16px 28px 18px;
}
.tm-menu-social-heading {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  color: #1A1614 !important;
  margin-bottom: 10px !important;
}

/* Fase 2: Idioma + Redes Sociales */
.tm-lang-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 46px 24px 0;
  background-color: #FFFFFF;
  color: #1A1614;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1) .08s, transform .65s cubic-bezier(.22, 1, .36, 1) .08s;
}
.tm-welcome-card.tm-show-lang .tm-lang-stage {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tm-lang-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}
.tm-welcome-logo {
  width: 162px;
  height: auto;
  object-fit: contain;
}
.tm-lang-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin: auto 0;
}
.tm-lang-card {
  width: 122px;
  height: 132px;
  border-radius: 22px;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 14px;
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
  transition: transform .24s cubic-bezier(.34, 1.56, .64, 1), box-shadow .24s ease, filter .2s ease;
}
.tm-lang-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}
.tm-lang-card:active {
  transform: scale(.96);
}
.tm-lang-card-en {
  background-color: #FF0828;
}
.tm-lang-card-es {
  background-color: #006847;
}
.tm-lang-card-label {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: #FFFFFF;
}
.tm-flag-svg {
  width: 78px;
  height: 46px;
  border-radius: 2px;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.tm-flag-mx {
  outline: 1px solid rgba(255, 255, 255, .16);
}

/* Barra inferior rosa de redes sociales */
.tm-social-banner {
  width: calc(100% - 20px);
  max-width: 320px;
  background-color: #E07A8C;
  border-radius: 14px 14px 0 0;
  padding: 20px 18px 24px;
  text-align: center;
  box-shadow: 0 -4px 18px rgba(224, 122, 140, .22);
}
.tm-social-heading {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  color: #1A1614;
  margin-bottom: 14px;
  letter-spacing: .01em;
}
.tm-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.tm-social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  color: #000000;
  border-radius: 8px;
  transition: transform .2s ease, opacity .2s ease;
}
.tm-social-icon-link:hover {
  transform: translateY(-2px) scale(1.1);
  opacity: .72;
}
.tm-social-icon-link svg {
  width: 24px;
  height: 24px;
  display: block;
}

@media (max-width: 560px) {
  .tm-welcome-overlay {
    padding: 0;
  }
  .tm-welcome-card {
    max-width: none;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .tm-social-banner {
    width: calc(100% - 44px);
    max-width: 340px;
  }
}

/* ===== Menú digital — carta folk mexicana ===== */
.tm-menu-page {
  --tm-card: #FFFFFF;
  --tm-ink: #1A1614;
  --tm-accent: #E07A8C;
  --tm-accent-dark: #b8596a;
  --tm-soft: #6B3E26;
  --tm-line: rgba(26,22,20,.18);
  --tm-gray: #7a6a5c;
  min-height: 100dvh;
  padding: 40px 12px 110px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: var(--char);
  background-image: radial-gradient(circle at 50% 8%, rgba(224,122,140,.16), transparent 60%);
}
.tm-menu-card { width: 100%; max-width: 560px; background-color: var(--tm-card); position: relative; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.6); overflow: clip; }
.tm-folk-edge-top, .tm-folk-edge-bottom {
  height: 22px;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 22' preserveAspectRatio='none' width='40' height='22'%3E%3Cpath d='M0,0 L40,0 L40,12 A10,10 0 0 1 20,12 A10,10 0 0 1 0,12 Z' fill='%23E07A8C'/%3E%3Cg fill='%23FFFFFF'%3E%3Cg transform='translate(10 5)'%3E%3Cellipse rx='1.8' ry='3.2'/%3E%3Cellipse rx='3.2' ry='1.8'/%3E%3C/g%3E%3Cg transform='translate(30 5)'%3E%3Cellipse rx='1.8' ry='3.2'/%3E%3Cellipse rx='3.2' ry='1.8'/%3E%3C/g%3E%3Cpath d='M18,5 L20,2.5 L22,5 L20,7.5 Z'/%3E%3Cpath d='M3,5 L5,3 L7,5 L5,7 Z'/%3E%3Cpath d='M33,5 L35,3 L37,5 L35,7 Z'/%3E%3C/g%3E%3Cg fill='%23b8596a'%3E%3Ccircle cx='10' cy='5' r='1'/%3E%3Ccircle cx='30' cy='5' r='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 40px 22px;
  background-color: var(--tm-accent);
}
.tm-folk-edge-bottom { transform: rotate(180deg); }
.tm-folk-frame { position: relative; background: var(--tm-card); border: 2px solid var(--tm-accent); box-shadow: inset 0 0 0 4px var(--tm-card), inset 0 0 0 5px rgba(224,122,140,.3); margin: 0 6px; padding: 18px 14px 26px; }
.tm-header { position: relative; text-align: center; padding: 6px 8px 16px; border-bottom: 1px dashed rgba(61,34,23,.2); }
.tm-lang-switch {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(224, 122, 140, .45);
  background: rgba(224, 122, 140, .08);
  color: var(--tm-ink);
  font-family: var(--label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
}
.tm-lang-switch:hover {
  background: var(--tm-accent);
  border-color: var(--tm-accent);
  color: #FFFFFF;
}
.tm-lang-switch svg {
  width: 13px;
  height: 13px;
}
.tm-logo-icon { width: 66px; height: 66px; margin: 0 auto 6px; display: block; border-radius: 8px; }
.tm-brand-subtitle { font-family: var(--label); font-size: 10px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--tm-accent); display: block; margin-bottom: 4px; }
.tm-header-ornament { width: 120px; height: 14px; margin: 8px auto 0; display: block; color: var(--tm-accent); }
.tm-filter-bar-sticky { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); margin: 0 -14px; padding: 12px 14px 10px; border-bottom: 1px solid rgba(61,34,23,.1); }
.tm-filter-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; padding-bottom: 2px; }
.tm-filter-scroll::-webkit-scrollbar { display: none; }
.tm-chip-btn { flex: 0 0 auto; padding: 8px 15px; border-radius: 999px; border: 1.5px solid rgba(61,34,23,.22); background-color: transparent; color: var(--tm-soft); font-family: var(--body); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .22s cubic-bezier(.25,1,.5,1); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tm-chip-btn svg { width: 14px; height: 14px; }
.tm-chip-btn:active { transform: scale(.95); }
.tm-chip-btn.tm-chip-active { background-color: var(--tm-accent); border-color: var(--tm-accent); color: var(--tm-card); box-shadow: 0 4px 12px rgba(224,122,140,.35); }
.tm-menu-sections { padding-top: 8px; }
.tm-category-block { margin-bottom: 26px; animation: tmFadeSlide .35s ease forwards; }
@keyframes tmFadeSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tm-cat-header { margin: 14px 0 12px; text-align: left; border-left: 3.5px solid var(--tm-accent); padding-left: 10px; }
.tm-cat-title { font-family: var(--display); font-size: 27px; font-weight: 600; color: var(--tm-ink); line-height: 1.05; letter-spacing: .2px; }
.tm-cat-note { font-size: 11.5px; color: var(--tm-soft); margin-top: 4px; line-height: 1.4; font-style: italic; }
.tm-dish-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; padding: 12px 4px; border-bottom: 1px dotted rgba(61,34,23,.22); transition: background-color .2s ease; border-radius: 8px; }
.tm-dish-item:last-child { border-bottom: none; }
.tm-dish-item:active { background-color: rgba(224,122,140,.05); }
.tm-dish-thumb-wrap { position: relative; width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--tm-accent), var(--tm-ink)); cursor: pointer; box-shadow: 0 3px 8px rgba(35,18,11,.2); transition: transform .2s cubic-bezier(.34,1.56,.64,1); border: 0; }
.tm-dish-thumb-wrap:hover, .tm-dish-thumb-wrap:active { transform: scale(1.08); }
.tm-dish-thumb { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 1.5px solid var(--tm-card); background-color: #e8dfd5; }
.tm-zoom-badge { position: absolute; bottom: -1px; right: -1px; width: 18px; height: 18px; border-radius: 50%; background-color: var(--tm-ink); color: var(--tm-card); display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--tm-card); pointer-events: none; }
.tm-zoom-badge svg { width: 10px; height: 10px; stroke-width: 3; }
.tm-dish-info { flex: 1; min-width: 0; padding-right: 4px; cursor: pointer; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding-left: 0; }
div.tm-dish-info { cursor: default; }
.tm-dish-title-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tm-dish-name { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--tm-ink); line-height: 1.15; }
.tm-dish-desc { font-size: 12px; color: var(--tm-gray); line-height: 1.4; margin-top: 3px; font-weight: 400; }
.tm-dish-price-col { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; min-width: 76px; }
.tm-price-main { font-family: var(--body); font-size: 15px; font-weight: 700; color: var(--tm-accent); line-height: 1.2; letter-spacing: -.3px; }
.tm-price-sublabel { font-family: var(--label); font-size: 9px; font-weight: 500; color: var(--tm-soft); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.tm-footer-note { text-align: center; padding-top: 16px; margin-top: 10px; border-top: 1px dashed rgba(61,34,23,.25); }
.tm-footer-note p { font-size: 11px; color: var(--tm-soft); margin-bottom: 14px; }
.tm-order-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--tm-accent); color: var(--tm-card); font-family: var(--label); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding: 12px 22px; border-radius: 999px; transition: background .2s ease, transform .2s ease; }
.tm-order-cta svg { width: 15px; height: 15px; }
.tm-order-cta:hover { background: var(--tm-accent-dark); transform: translateY(-2px); }
.tm-photo-modal-backdrop { position: fixed; inset: 0; background-color: rgba(18,10,7,.8); backdrop-filter: blur(5px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.tm-photo-modal-backdrop.tm-modal-open { opacity: 1; pointer-events: auto; }
.tm-wa-popup-card { width: 100%; max-width: 320px; background-color: var(--tm-ink); border: 2px solid var(--tm-accent); border-radius: 12px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.85); transform: scale(.75); transition: transform .26s cubic-bezier(.34,1.56,.64,1); }
.tm-photo-modal-backdrop.tm-modal-open .tm-wa-popup-card { transform: scale(1); }
.tm-wa-img-box { position: relative; width: 100%; aspect-ratio: 1 / 1; background-color: #1a0f0a; }
.tm-wa-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-wa-title-overlay { position: absolute; top: 0; left: 0; right: 0; padding: 12px 14px; background: linear-gradient(to bottom, rgba(18,10,7,.9), transparent); color: #fff; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tm-wa-title-text { font-family: var(--display); font-size: 22px; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,.7); line-height: 1.1; }
.tm-wa-price-pill { background-color: var(--tm-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.tm-wa-desc-bar { padding: 13px 14px; background-color: #fff; color: var(--tm-ink); font-size: 13px; line-height: 1.45; border-top: 2px solid var(--tm-accent); }
.tm-wa-action-bar { display: flex; justify-content: center; align-items: center; background-color: var(--tm-ink); padding: 10px 6px; }
.tm-wa-action-btn { background: none; border: none; color: #fff; font-family: var(--body); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 14px; border-radius: 6px; transition: background .2s; }
.tm-wa-action-btn svg { width: 18px; height: 18px; color: #E07A8C; stroke-width: 2.2; }
.tm-wa-action-btn:hover { background-color: rgba(224,122,140,.25); }
.tm-fab-backdrop { position: fixed; inset: 0; background-color: rgba(18,10,7,.6); backdrop-filter: blur(2px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.tm-fab-backdrop.tm-fab-active { opacity: 1; pointer-events: auto; }
.tm-fab-corner-container { position: fixed; bottom: 22px; right: 18px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; pointer-events: none; }
.tm-fab-options-list { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-bottom: 4px; }
.tm-fab-pill { pointer-events: none; opacity: 0; transform: translateY(24px) scale(.8); transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .2s ease; background-color: var(--tm-ink); color: #fff; border: 1.5px solid var(--tm-accent); padding: 6px 12px; border-radius: 999px; display: flex; align-items: center; gap: 7px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.55); font-family: var(--body); font-size: 11px; font-weight: 600; }
.tm-fab-pill:nth-child(even) { background-color: #fff; color: var(--tm-ink); border-color: var(--tm-ink); }
.tm-fab-corner-container.tm-fab-open .tm-fab-pill { pointer-events: auto; opacity: 1; transform: translateY(0) scale(1); }
.tm-fab-pill:active { transform: scale(.94) !important; }
.tm-fab-pill svg { flex-shrink: 0; width: 14px; height: 14px; }
.tm-fab-trigger { pointer-events: auto; width: 58px; height: 58px; border-radius: 18px; background-color: var(--tm-accent); color: #fff; border: 2px solid #fff; box-shadow: 0 10px 25px rgba(224,122,140,.55); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .25s ease, border-radius .25s ease; }
.tm-fab-trigger svg { width: 26px; height: 26px; stroke-width: 2.5; }
.tm-fab-corner-container.tm-fab-open .tm-fab-trigger { background-color: var(--tm-ink); border-radius: 50%; transform: rotate(135deg); }
@media (max-width: 640px) {
  body { font-size: 13px; }
  .tm-menu-page { padding: 20px 8px 100px; }
  .tm-cat-title { font-size: 24px; }
  .tm-dish-name { font-size: 18px; }
  .tm-dish-thumb-wrap { width: 50px; height: 50px; }
  .tm-dish-price-col { min-width: 64px; }
  .tm-price-main { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
