/*
 * carta-marca.css -- estilo Pro "Temático" (2026-09-29). Autocontenida.
 * UNA plantilla (template-parts/carta-marca.php) + 6 temas por tipo de
 * local, elegidos con body[data-tema]. Todo el look sale de variables:
 * paleta, tipografias (se carga solo la del tema activo), patron de fondo,
 * tira decorativa entre secciones, forma de las tarjetas y del boton.
 * Referencia de PATRONES (no de diseño): cartas QR de agencia -- titulo
 * grande por categoria + plato protagonista, grilla con "Agregar" por plato,
 * decimales volados, tiras de tejido/banderines/olas, iconos de contacto.
 */

body.mk-body {
  /* Defaults = tema Criolla */
  --mk-bg: #17121a;
  --mk-pattern: none;
  --mk-top-bg: #17121a;
  --mk-top-ink: #fff6ea;
  --mk-nav-bg: rgba(23, 18, 26, 0.95);
  --mk-surface: #231b26;
  --mk-card: #231b26;
  --mk-card-border: rgba(255, 210, 63, 0.45);
  --mk-card-border-w: 2px;
  --mk-card-shadow: none;
  --mk-ink: #fff6ea;
  --mk-muted: #cdbfcb;
  --mk-title: #fff6ea;
  --mk-title-shadow: 3px 3px 0 #ff2e88;
  --mk-title-transform: none;
  --mk-title-size: 34px;
  --mk-title-spacing: 0;
  --mk-accent: #ff2e88;
  --mk-accent-ink: #17121a;
  --mk-price: #ffd23f;
  --mk-btn: #9bd83a;
  --mk-btn-ink: #17121a;
  --mk-chip-bg: #231b26;
  --mk-chip-ink: #fff6ea;
  --mk-chip-act: #ff2e88;
  --mk-chip-act-ink: #17121a;
  --mk-sello: #ffd23f;
  --mk-sello-ink: #17121a;
  --mk-panel: #1f1822;
  --mk-panel-ink: #fff6ea;
  --mk-field: #17121a;
  --mk-line: rgba(255, 246, 234, 0.14);
  --mk-radius: 14px;
  --mk-foto-radius: 10px;
  --mk-logo-radius: 50%;
  --mk-tira: none;
  --mk-tira-h: 14px;
  --mk-font-display: "Lilita One", "Arial Black", sans-serif;
  --mk-font-text: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mk-wa: #158041;
}

/* ---------- Temas ---------- */

body.mk-body[data-tema="criolla"] {
  --mk-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 5 35 20 20 35 5 20Z' fill='none' stroke='%23ff2e88' stroke-opacity='.07' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='20' r='2' fill='%239bd83a' fill-opacity='.08'/%3E%3C/svg%3E");
  --mk-tira: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='14'%3E%3Cpath d='M0 14 7 2 14 14Z' fill='%23ff2e88'/%3E%3Cpath d='M14 14 21 2 28 14Z' fill='%239bd83a'/%3E%3Cpath d='M28 14 35 2 42 14Z' fill='%23ffd23f'/%3E%3Crect y='0' width='42' height='2' fill='%23ff2e88'/%3E%3C/svg%3E");
}

body.mk-body[data-tema="brasa"] {
  --mk-bg: #120b09;
  --mk-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ccircle cx='14' cy='22' r='1.6' fill='%23ff8a00' fill-opacity='.35'/%3E%3Ccircle cx='80' cy='12' r='1.1' fill='%23ffb81c' fill-opacity='.3'/%3E%3Ccircle cx='60' cy='70' r='1.8' fill='%23e0301e' fill-opacity='.3'/%3E%3Ccircle cx='104' cy='92' r='1.2' fill='%23ff8a00' fill-opacity='.3'/%3E%3Ccircle cx='30' cy='100' r='1' fill='%23ffb81c' fill-opacity='.25'/%3E%3C/svg%3E");
  --mk-top-bg: radial-gradient(120% 90% at 50% 0%, #3a1509 0%, #120b09 70%);
  --mk-top-ink: #fff1e4;
  --mk-nav-bg: rgba(18, 11, 9, 0.95);
  --mk-surface: #1d120f;
  --mk-card: #211411;
  --mk-card-border: #e0301e;
  --mk-card-border-w: 0;
  --mk-card-shadow: inset 0 3px 0 #e0301e;
  --mk-ink: #fff1e4;
  --mk-muted: #d6b8a6;
  --mk-title: #ffb81c;
  --mk-title-shadow: 0 2px 0 #7a1a0c;
  --mk-title-transform: uppercase;
  --mk-title-size: 38px;
  --mk-title-spacing: 0.02em;
  --mk-accent: #e0301e;
  --mk-accent-ink: #ffffff;
  --mk-price: #ffb81c;
  --mk-btn: #e0301e;
  --mk-btn-ink: #ffffff;
  --mk-chip-bg: #1d120f;
  --mk-chip-ink: #fff1e4;
  --mk-chip-act: #ffb81c;
  --mk-chip-act-ink: #120b09;
  --mk-sello: #ffb81c;
  --mk-sello-ink: #120b09;
  --mk-panel: #1d120f;
  --mk-panel-ink: #fff1e4;
  --mk-field: #120b09;
  --mk-line: rgba(255, 241, 228, 0.14);
  --mk-radius: 6px;
  --mk-foto-radius: 4px;
  --mk-logo-radius: 16px;
  --mk-tira: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='24'%3E%3Cpath d='M0 3Q30 7 60 3' fill='none' stroke='%23d6b8a6' stroke-width='1.2'/%3E%3Cpath d='M4 4 12 22 20 5Z' fill='%23e0301e'/%3E%3Cpath d='M24 5.5 32 23 40 5.5Z' fill='%23ffb81c'/%3E%3Cpath d='M44 5 52 22 60 4Z' fill='%23ff8a00'/%3E%3C/svg%3E");
  --mk-tira-h: 24px;
  --mk-font-display: "Anton", Impact, "Arial Black", sans-serif;
  --mk-font-text: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.mk-body[data-tema="cafeteria"] {
  --mk-bg: #efe8d8;
  --mk-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M16 10c7 3 7 13 0 16-7-3-7-13 0-16Z' fill='none' stroke='%231e5a50' stroke-opacity='.09' stroke-width='1.4'/%3E%3Cpath d='M16 10v16' stroke='%231e5a50' stroke-opacity='.09'/%3E%3Cpath d='M48 40c7 3 7 13 0 16-7-3-7-13 0-16Z' fill='none' stroke='%23c98b3e' stroke-opacity='.12' stroke-width='1.4'/%3E%3C/svg%3E");
  --mk-top-bg: #1e5a50;
  --mk-top-ink: #f7f2e6;
  --mk-nav-bg: rgba(239, 232, 216, 0.96);
  --mk-surface: #ffffff;
  --mk-card: #ffffff;
  --mk-card-border: #dcd2bb;
  --mk-card-border-w: 1px;
  --mk-card-shadow: 0 4px 14px rgba(30, 90, 80, 0.1);
  --mk-ink: #1f2d2a;
  --mk-muted: #56645f;
  --mk-title: #1e5a50;
  --mk-title-shadow: none;
  --mk-title-transform: uppercase;
  --mk-title-size: 32px;
  --mk-title-spacing: 0.01em;
  --mk-accent: #1e5a50;
  --mk-accent-ink: #ffffff;
  --mk-price: #1e5a50;
  --mk-btn: #1e5a50;
  --mk-btn-ink: #ffffff;
  --mk-chip-bg: #ffffff;
  --mk-chip-ink: #1f2d2a;
  --mk-chip-act: #1e5a50;
  --mk-chip-act-ink: #ffffff;
  --mk-sello: #c98b3e;
  --mk-sello-ink: #1f2d2a;
  --mk-panel: #ffffff;
  --mk-panel-ink: #1f2d2a;
  --mk-field: #faf7ef;
  --mk-line: #e3dccb;
  --mk-radius: 16px;
  --mk-foto-radius: 12px;
  --mk-logo-radius: 50%;
  --mk-tira: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='16'%3E%3Cpath d='M0 8h44' stroke='%231e5a50' stroke-width='1.5' stroke-dasharray='2 5' stroke-linecap='round'/%3E%3Cpath d='M22 2c4.5 2 4.5 10 0 12-4.5-2-4.5-10 0-12Z' fill='%23c98b3e'/%3E%3C/svg%3E");
  --mk-tira-h: 16px;
  --mk-font-display: "Oswald", "Arial Narrow", sans-serif;
  --mk-font-text: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.mk-body[data-tema="marina"] {
  --mk-bg: #07223d;
  --mk-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cpath d='M0 20q10-8 20 0t20 0 20 0 20 0' fill='none' stroke='%2335d0ba' stroke-opacity='.08' stroke-width='1.5'/%3E%3C/svg%3E");
  --mk-top-bg: linear-gradient(180deg, #0b3159 0%, #07223d 100%);
  --mk-top-ink: #f0f7ff;
  --mk-nav-bg: rgba(7, 34, 61, 0.95);
  --mk-surface: #0d3257;
  --mk-card: #0e3860;
  --mk-card-border: rgba(53, 208, 186, 0.35);
  --mk-card-border-w: 1px;
  --mk-card-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  --mk-ink: #f0f7ff;
  --mk-muted: #a9c1da;
  --mk-title: #ffffff;
  --mk-title-shadow: none;
  --mk-title-transform: none;
  --mk-title-size: 34px;
  --mk-title-spacing: 0;
  --mk-accent: #35d0ba;
  --mk-accent-ink: #07223d;
  --mk-price: #ffd166;
  --mk-btn: #ff6b57;
  --mk-btn-ink: #07223d;
  --mk-chip-bg: #0d3257;
  --mk-chip-ink: #f0f7ff;
  --mk-chip-act: #35d0ba;
  --mk-chip-act-ink: #07223d;
  --mk-sello: #ff6b57;
  --mk-sello-ink: #07223d;
  --mk-panel: #0d3257;
  --mk-panel-ink: #f0f7ff;
  --mk-field: #07223d;
  --mk-line: rgba(240, 247, 255, 0.14);
  --mk-radius: 20px;
  --mk-foto-radius: 16px;
  --mk-logo-radius: 50%;
  --mk-tira: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14'%3E%3Cpath d='M0 7q5-6 10 0t10 0 10 0 10 0' fill='none' stroke='%2335d0ba' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --mk-tira-h: 14px;
  --mk-font-display: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  --mk-font-text: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.mk-body[data-tema="dulce"] {
  --mk-bg: #fff3f5;
  --mk-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Ccircle cx='8' cy='8' r='3' fill='%23d6336c' fill-opacity='.08'/%3E%3Ccircle cx='25' cy='25' r='3' fill='%2362b6a5' fill-opacity='.1'/%3E%3C/svg%3E");
  --mk-top-bg: #ffe0e8;
  --mk-top-ink: #3a1f2b;
  --mk-nav-bg: rgba(255, 243, 245, 0.96);
  --mk-surface: #ffffff;
  --mk-card: #ffffff;
  --mk-card-border: #f4bcd0;
  --mk-card-border-w: 2px;
  --mk-card-shadow: 0 6px 16px rgba(214, 51, 108, 0.08);
  --mk-ink: #3a1f2b;
  --mk-muted: #74515f;
  --mk-title: #c2255c;
  --mk-title-shadow: 2px 2px 0 #ffd0dc;
  --mk-title-transform: none;
  --mk-title-size: 38px;
  --mk-title-spacing: 0.01em;
  --mk-accent: #c2255c;
  --mk-accent-ink: #ffffff;
  --mk-price: #c2255c;
  --mk-btn: #c2255c;
  --mk-btn-ink: #ffffff;
  --mk-chip-bg: #ffffff;
  --mk-chip-ink: #3a1f2b;
  --mk-chip-act: #c2255c;
  --mk-chip-act-ink: #ffffff;
  --mk-sello: #62b6a5;
  --mk-sello-ink: #173a33;
  --mk-panel: #ffffff;
  --mk-panel-ink: #3a1f2b;
  --mk-field: #fff8fa;
  --mk-line: #f7d2de;
  --mk-radius: 22px;
  --mk-foto-radius: 18px;
  --mk-logo-radius: 50%;
  --mk-tira: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Ccircle cx='12' cy='0' r='11' fill='%23f7a8c0'/%3E%3Ccircle cx='12' cy='0' r='6' fill='%23ffe0e8'/%3E%3C/svg%3E");
  --mk-tira-h: 12px;
  --mk-font-display: "Chewy", "Comic Sans MS", cursive;
  --mk-font-text: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.mk-body[data-tema="pizarra"] {
  --mk-bg: #1d2621;
  --mk-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cpath d='M8 30c12-4 24-3 34 2' fill='none' stroke='%23f3f1e7' stroke-opacity='.05' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M50 72c10-3 20-2 30 1' fill='none' stroke='%23f3f1e7' stroke-opacity='.04' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  --mk-top-bg: #1d2621;
  --mk-top-ink: #f3f1e7;
  --mk-nav-bg: rgba(29, 38, 33, 0.96);
  --mk-surface: #243029;
  --mk-card: #26322b;
  --mk-card-border: rgba(243, 241, 231, 0.3);
  --mk-card-border-w: 2px;
  --mk-card-shadow: none;
  --mk-ink: #f3f1e7;
  --mk-muted: #c2c7bd;
  --mk-title: #f6d365;
  --mk-title-shadow: none;
  --mk-title-transform: none;
  --mk-title-size: 42px;
  --mk-title-spacing: 0.01em;
  --mk-accent: #f6d365;
  --mk-accent-ink: #1d2621;
  --mk-price: #f6d365;
  --mk-btn: #f6d365;
  --mk-btn-ink: #1d2621;
  --mk-chip-bg: #243029;
  --mk-chip-ink: #f3f1e7;
  --mk-chip-act: #f6d365;
  --mk-chip-act-ink: #1d2621;
  --mk-sello: #ef8354;
  --mk-sello-ink: #1d2621;
  --mk-panel: #243029;
  --mk-panel-ink: #f3f1e7;
  --mk-field: #1d2621;
  --mk-line: rgba(243, 241, 231, 0.16);
  --mk-radius: 8px;
  --mk-foto-radius: 6px;
  --mk-logo-radius: 12px;
  --mk-tira: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='10'%3E%3Cpath d='M3 5.5c7-1.5 14-.5 22-1' fill='none' stroke='%23f3f1e7' stroke-opacity='.75' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --mk-tira-h: 10px;
  --mk-font-display: "Caveat Brush", "Comic Sans MS", cursive;
  --mk-font-text: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.mk-body {
  margin: 0;
  background-color: var(--mk-bg);
  background-image: var(--mk-pattern);
  color: var(--mk-ink);
  font-family: var(--mk-font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

body.comanda-panel-abierto,
body.lightbox-abierto {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Cabecera (sin portada: logo + nombre + estado) ---------- */

.mk-top {
  position: relative;
  padding: 52px 20px 22px;
  background: var(--mk-top-bg);
  color: var(--mk-top-ink);
}

.mk-idiomas {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  gap: 4px;
}

.mk-idioma {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  opacity: 0.6;
}

.mk-idioma.is-activo {
  opacity: 1;
  background: var(--mk-accent);
  border-color: var(--mk-accent);
  color: var(--mk-accent-ink);
}

.mk-top-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mk-logo {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: var(--mk-logo-radius);
  object-fit: cover;
  border: 3px solid var(--mk-accent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.mk-top-texto {
  min-width: 0;
}

.mk-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mk-accent);
}

/* Cafeteria: el acento (verde) es el mismo color de la cabecera -- el idioma
   activo y el borde del logo usan la crema/kraft del tema para no perderse. */
body.mk-body[data-tema="cafeteria"] .mk-idioma.is-activo {
  background: #f7f2e6;
  border-color: #f7f2e6;
  color: #1e5a50;
}

body.mk-body[data-tema="cafeteria"] .mk-logo {
  border-color: #c98b3e;
}

body.mk-body[data-tema="cafeteria"] .mk-kicker,
body.mk-body[data-tema="dulce"] .mk-kicker {
  color: inherit;
  opacity: 0.85;
}

.mk-titulo {
  margin: 0 0 10px;
  font-family: var(--mk-font-display);
  font-weight: 400;
  font-size: clamp(30px, 8.6vw, 52px);
  line-height: 1;
  letter-spacing: var(--mk-title-spacing);
  text-transform: var(--mk-title-transform);
  overflow-wrap: break-word;
}

body.mk-body[data-tema="cafeteria"] .mk-titulo,
body.mk-body[data-tema="marina"] .mk-titulo {
  font-weight: 700;
}

.estado-pill.mk-estado {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 12.5px;
  font-weight: 600;
}

body.mk-body[data-tema="dulce"] .estado-pill.mk-estado {
  background: rgba(255, 255, 255, 0.7);
}

.estado-pill.mk-estado::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.estado-pill.mk-estado.estado-abierto::before {
  background: #3ecf72;
  opacity: 1;
}

.estado-pill.mk-estado.estado-cerrado::before {
  background: #ff6b57;
  opacity: 1;
}

/* Tira decorativa del tema (tejido, banderines, hojas, olas, festón, tiza) */
.mk-tira {
  height: var(--mk-tira-h);
  background-image: var(--mk-tira);
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- Buscador + categorias (sticky) ---------- */

.mk-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 0 10px;
  background: var(--mk-nav-bg);
  border-bottom: 1px solid var(--mk-line);
  backdrop-filter: blur(8px);
}

.mk-buscar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 10px;
  padding: 0 14px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--mk-line);
  background: var(--mk-surface);
  color: var(--mk-muted);
}

.mk-buscar:focus-within {
  border-color: var(--mk-accent);
}

.mk-buscar input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--mk-ink);
  font-size: 15px;
  outline: none;
}

.mk-buscar input::placeholder {
  color: var(--mk-muted);
}

.mk-chips {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mk-chips::-webkit-scrollbar {
  display: none;
}

.mk-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--mk-line);
  background: var(--mk-chip-bg);
  color: var(--mk-chip-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.mk-chip.is-activo {
  background: var(--mk-chip-act);
  border-color: var(--mk-chip-act);
  color: var(--mk-chip-act-ink);
}

/* ---------- Cuerpo ---------- */

.mk-main {
  padding: 4px 0 8px;
}

.mk-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 32px);
  margin: 18px 16px 4px;
  padding: 12px 14px 12px 12px;
  border: var(--mk-card-border-w, 1px) solid var(--mk-card-border);
  border-radius: var(--mk-radius);
  background: var(--mk-card);
  box-shadow: var(--mk-card-shadow);
  color: var(--mk-ink);
  text-align: left;
  cursor: pointer;
}

.mk-promo-foto {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: var(--mk-foto-radius);
  object-fit: cover;
}

.mk-promo-body {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mk-promo-kicker {
  justify-self: start;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--mk-accent);
  color: var(--mk-accent-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mk-promo-titulo {
  font-family: var(--mk-font-display);
  font-size: 19px;
  line-height: 1.15;
  text-transform: var(--mk-title-transform);
}

.mk-promo-texto {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mk-muted);
}

.mk-promo-flecha {
  flex: 0 0 auto;
  font-size: 28px;
  line-height: 1;
  color: var(--mk-accent);
}

/* Titulo grande de categoria (y de "Los mas pedidos") */
.mk-cat-titulo {
  margin: 0;
  font-family: var(--mk-font-display);
  font-weight: 400;
  font-size: var(--mk-title-size);
  line-height: 1.02;
  letter-spacing: var(--mk-title-spacing);
  text-transform: var(--mk-title-transform);
  color: var(--mk-title);
  text-shadow: var(--mk-title-shadow);
}

body.mk-body[data-tema="cafeteria"] .mk-cat-titulo,
body.mk-body[data-tema="marina"] .mk-cat-titulo {
  font-weight: 700;
}

body.mk-body[data-tema="brasa"] .mk-cat-titulo {
  background: linear-gradient(180deg, #ffd54a 0%, #ff8a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

/* ---------- "Los mas pedidos" (carrusel) ---------- */

.mk-dest {
  padding: 26px 0 6px;
}

.mk-dest-titulo {
  padding: 0 16px;
  font-size: calc(var(--mk-title-size) * 0.82);
}

.mk-track {
  position: relative;
}

.mk-dest-scroll {
  display: flex;
  gap: 12px;
  padding: 14px 16px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mk-dest-scroll::-webkit-scrollbar {
  display: none;
}

.mk-tile {
  flex: 0 0 auto;
  width: 158px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: var(--mk-card-border-w, 1px) solid var(--mk-card-border);
  border-radius: var(--mk-radius);
  background: var(--mk-card);
  box-shadow: var(--mk-card-shadow);
  scroll-snap-align: start;
}

.mk-tile .mk-foto {
  aspect-ratio: 1 / 1;
}

.mk-tile-nombre {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 8px 2px 6px;
  min-height: 2.6em;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.clasica-destacados-nav {
  display: none;
}

@media (hover: hover) and (min-width: 768px) {
  .clasica-destacados-nav {
    position: absolute;
    top: 45%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--mk-accent);
    color: var(--mk-accent-ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
  }

  .clasica-destacados-nav.is-prev {
    left: -8px;
  }

  .clasica-destacados-nav.is-next {
    right: -8px;
  }

  .clasica-destacados-nav:disabled {
    opacity: 0;
    pointer-events: none;
  }
}

/* ---------- Categorias ---------- */

.mk-cat {
  padding: 30px 16px 8px;
  scroll-margin-top: 112px;
}

.mk-tira-cat {
  margin: -30px -16px 22px;
}

.mk-cat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.mk-cat-count {
  flex: 0 0 auto;
  padding-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mk-muted);
}

/* Foto (comun a protagonista, grilla y carrusel) */
.mk-foto-wrap {
  position: relative;
}

.mk-foto {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--mk-foto-radius);
  background: var(--mk-surface);
  overflow: hidden;
  cursor: zoom-in;
}

.mk-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-sin-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mk-font-display);
  font-size: 40px;
  color: var(--mk-accent);
  cursor: default;
}

.mk-sello {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mk-sello);
  color: var(--mk-sello-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Plato protagonista de la categoria */
.mk-hero {
  margin-bottom: 14px;
  padding: 10px;
  border: var(--mk-card-border-w, 1px) solid var(--mk-card-border);
  border-radius: var(--mk-radius);
  background: var(--mk-card);
  box-shadow: var(--mk-card-shadow);
}

.mk-hero .mk-foto {
  aspect-ratio: 16 / 10;
}

.mk-hero .mk-cuerpo {
  padding: 12px 4px 2px;
}

.mk-hero .mk-nombre-plato {
  font-family: var(--mk-font-display);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.08;
  text-transform: var(--mk-title-transform);
}

body.mk-body[data-tema="cafeteria"] .mk-hero .mk-nombre-plato,
body.mk-body[data-tema="marina"] .mk-hero .mk-nombre-plato {
  font-weight: 700;
}

.mk-hero .mk-desc {
  -webkit-line-clamp: 3;
  font-size: 14px;
}

.mk-hero .mk-precio {
  font-size: 24px;
}

/* Grilla de 2 columnas */
.mk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mk-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px;
  border: var(--mk-card-border-w, 1px) solid var(--mk-card-border);
  border-radius: var(--mk-radius);
  background: var(--mk-card);
  box-shadow: var(--mk-card-shadow);
}

.mk-card .mk-foto {
  aspect-ratio: 1 / 1;
}

.mk-card .mk-cuerpo {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 8px 2px 0;
}

.mk-card.is-sin-foto .mk-cuerpo {
  padding-top: 2px;
}

.mk-nombre-plato {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--mk-ink);
}

.mk-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--mk-muted);
}

.mk-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
  margin-top: auto;
  padding-top: 8px;
}

.mk-precios {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  margin: 0;
}

.mk-precio {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--mk-price);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mk-mon {
  margin-right: 2px;
  font-size: 0.62em;
  font-weight: 700;
}

.mk-precio sup {
  font-size: 0.55em;
  vertical-align: top;
  position: relative;
  top: 0.15em;
}

.mk-precio-old {
  font-size: 12px;
  color: var(--mk-muted);
  text-decoration: line-through;
  white-space: nowrap;
}

/* Boton "Agregar" (contrato compacto de comanda.js: "+" -> pildora con texto) */
.mk-add:empty {
  display: none;
}

.mk-add .qty-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px 0 9px;
  border: none;
  border-radius: 999px;
  background: var(--mk-btn);
  color: var(--mk-btn-ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.mk-add .qty-add svg {
  width: 15px;
  height: 15px;
}

.mk-add .qty-add::after {
  content: var(--mk-txt-pedir, "+");
}

.mk-add .qty-add:active {
  transform: scale(0.96);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: var(--mk-btn);
}

.qty-btn {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: var(--mk-btn-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.qty-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.qty-valor {
  min-width: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--mk-btn-ink);
}

/* ---------- Nota, vacio ---------- */

.mk-nota {
  margin: 30px 16px 8px;
  padding: 16px 18px;
  border: 2px dashed var(--mk-card-border);
  border-radius: var(--mk-radius);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mk-muted);
}

.mk-nota strong {
  display: block;
  font-family: var(--mk-font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--mk-title);
}

.mk-nota a {
  color: var(--mk-accent);
  font-weight: 700;
}

body.mk-body[data-tema="cafeteria"] .mk-nota a,
body.mk-body[data-tema="dulce"] .mk-nota a {
  color: var(--mk-title);
}

.mk-vacio {
  margin: 30px 16px;
  text-align: center;
  color: var(--mk-muted);
}

.mk-vacio strong {
  color: var(--mk-ink);
}

/* A2 (carta-mejoras-competencia-v1): sin resultados = mensaje + boton "Borrar"
   (>= 44 px). Con texto en el buscador, carta-clasica-buscar.js oculta promos y
   destacados con el atributo hidden: refuerzo L-334. */
.mk-vacio .busca-vacio-msg {
  margin: 0 0 14px;
}

.busca-borrar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: var(--mk-btn);
  color: var(--mk-btn-ink);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.busca-borrar:focus-visible {
  outline: 2px solid var(--mk-accent);
  outline-offset: 2px;
}

.busca-borrar:empty {
  display: none;
}

[data-promos][hidden],
.mk-dest[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Pie con iconos de contacto ---------- */

.mk-pie {
  margin-top: 24px;
  padding: 0 20px 26px;
  text-align: center;
  background: var(--mk-top-bg);
  color: var(--mk-top-ink);
}

.mk-pie .mk-tira {
  margin: 0 -20px 22px;
}

.mk-pie-titulo {
  margin: 0 0 10px;
  font-family: var(--mk-font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  text-transform: var(--mk-title-transform);
}

.mk-pie-dato {
  margin: 0 0 4px;
  font-size: 14px;
  opacity: 0.85;
}

.mk-iconos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 0;
}

.mk-icono {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mk-accent);
  color: var(--mk-accent-ink);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.mk-pie-provoca {
  margin: 18px 0 0;
  font-size: 12.5px;
  opacity: 0.8;
}

.mk-locales {
  padding: 24px 16px 0;
}

.mk-local {
  padding: 12px 0;
  border-bottom: 1px solid var(--mk-line);
}

.mk-local-nombre {
  margin: 0;
  font-weight: 800;
}

.mk-local-dir {
  margin: 2px 0 8px;
  font-size: 13px;
  color: var(--mk-muted);
}

.mk-local-acciones {
  display: flex;
  gap: 8px;
  margin: 0;
}

.mk-local-acciones a {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--mk-line);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.provoca-crosssell {
  margin: 24px 16px 0;
  padding: 18px 20px;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  text-align: center;
}

.provoca-crosssell-marca {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mk-muted);
}

.provoca-crosssell-texto {
  margin: 0 0 12px;
  font-size: 14px;
}

.provoca-crosssell-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Accesos fijos y barra del pedido ---------- */

.mk-accesos {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--mk-nav-bg);
  border-top: 1px solid var(--mk-line);
  backdrop-filter: blur(8px);
}

.mk-acceso {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.mk-acceso.is-llamar {
  border: 2px solid var(--mk-accent);
  color: var(--mk-ink);
}

.mk-acceso.is-wa {
  background: var(--mk-wa);
  color: #ffffff;
}

.comanda-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
}

.comanda-bar[hidden] {
  display: none;
}

.comanda-bar-btn {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--mk-btn);
  color: var(--mk-btn-ink);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

body:has(.comanda-bar:not([hidden])) .mk-accesos {
  display: none;
}

@supports not selector(:has(*)) {
  body.tiene-comanda .mk-accesos {
    display: none;
  }
}

/* ---------- Mi pedido (checkout de comanda.js) ---------- */

.comanda-overlay {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

.comanda-overlay[hidden] {
  display: none;
}

.comanda-panel {
  width: min(520px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 20px 22px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: var(--mk-panel);
  color: var(--mk-panel-ink);
}

@media (min-width: 640px) {
  .comanda-overlay {
    align-items: center;
    padding: 20px;
  }

  .comanda-panel {
    border-radius: 22px;
  }
}

.comanda-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.comanda-panel-head h2 {
  margin: 0;
  font-family: var(--mk-font-display);
  font-weight: 400;
  font-size: 28px;
  text-transform: var(--mk-title-transform);
}

.comanda-cerrar {
  width: 40px;
  height: 40px;
  border: 1px solid var(--mk-line);
  border-radius: 50%;
  background: none;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.comanda-items {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.comanda-vacio {
  margin: 0;
  padding: 20px 0;
  text-align: center;
  opacity: 0.8;
}

.comanda-vacio-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}

.comanda-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mk-line);
  font-size: 14px;
}

.comanda-item-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.comanda-item-info strong {
  overflow-wrap: break-word;
}

.comanda-item-info span {
  font-size: 12px;
  opacity: 0.75;
}

.comanda-item-subtotal {
  font-weight: 800;
  white-space: nowrap;
}

.comanda-item-quitar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: inherit;
  opacity: 0.6;
  font-size: 18px;
  cursor: pointer;
}

.comanda-item-nota-input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 4px 0;
  border: none;
  border-bottom: 1px dashed var(--mk-line);
  background: transparent;
  color: inherit;
  font-size: 12.5px;
  text-overflow: ellipsis;
}

.comanda-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mk-line);
  font-weight: 700;
}

.comanda-total-row strong {
  font-size: 22px;
}

.comanda-form {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.comanda-field {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}

.comanda-field[hidden] {
  display: none;
}

.comanda-field input,
.comanda-field select,
.comanda-field textarea {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  background: var(--mk-field);
  color: inherit;
  font-size: 15px;
}

.comanda-field textarea {
  min-height: 64px;
  padding-top: 10px;
  resize: vertical;
}

.comanda-field.campo-error select,
.comanda-field.campo-error input,
.campo-error {
  border-color: #e0513a;
}

.comanda-modo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comanda-modo-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--mk-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.comanda-modo-opt:has(input:checked) {
  border-color: currentColor;
}

.comanda-modo-opt input {
  margin: 0;
}

.comanda-enviar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  background: var(--mk-wa);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.comanda-enviar--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.comanda-confirmacion {
  display: grid;
  gap: 12px;
  padding: 24px 4px 4px;
  text-align: center;
}

.comanda-confirmacion[hidden],
.comanda-confirmacion-sede[hidden] {
  display: none;
}

.comanda-confirmacion-msg {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.comanda-confirmacion-sede {
  margin: 0;
  font-weight: 700;
}

.comanda-confirmacion-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
}

.comanda-confirmacion-pago {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--mk-field);
  font-size: 13px;
  line-height: 1.5;
}

.comanda-nuevo-btn {
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: var(--mk-btn);
  color: var(--mk-btn-ink);
  font-weight: 800;
  cursor: pointer;
}

.comanda-volver-btn {
  min-height: 40px;
  border: none;
  background: none;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-error {
  margin: -4px 0 0;
  font-size: 12px;
  color: #e0513a;
}

/* ---------- Visor de fotos y popup ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(8, 8, 10, 0.95);
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1000px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-caption {
  color: #fff;
  font-size: 15px;
  text-align: center;
}

.lightbox-cerrar,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-cerrar {
  top: 18px;
  right: 20px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-prev[hidden],
.lightbox-next[hidden] {
  display: none;
}

.dl-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
}

.dl-popup-overlay[hidden] {
  display: none;
}

.dl-popup {
  position: relative;
  width: min(360px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border: var(--mk-card-border-w, 1px) solid var(--mk-card-border);
  border-radius: var(--mk-radius);
  background: var(--mk-panel);
  color: var(--mk-panel-ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.dl-popup--horizontal {
  width: min(560px, 100%);
}

.dl-popup-cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dl-popup-foto {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.dl-popup-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dl-popup-body {
  padding: 20px 22px 24px;
  text-align: center;
}

.dl-popup-titulo {
  margin: 0 0 6px;
  font-family: var(--mk-font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  text-transform: var(--mk-title-transform);
  color: var(--mk-title);
}

body.mk-body[data-tema="brasa"] .dl-popup-titulo {
  color: #ffb81c;
}

.dl-popup-texto {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.85;
}

.dl-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  background: var(--mk-btn);
  color: var(--mk-btn-ink);
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 640px) {
  .dl-popup--horizontal {
    display: flex;
  }

  .dl-popup--horizontal .dl-popup-foto {
    width: 42%;
    aspect-ratio: auto;
  }

  .dl-popup--horizontal .dl-popup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }
}

/* ---------- Escritorio ---------- */

@media (min-width: 768px) {
  .mk-top-inner,
  .mk-main,
  .mk-locales {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
  }

  .mk-top {
    padding: 56px 32px 28px;
  }

  .mk-logo {
    width: 104px;
    height: 104px;
  }

  .mk-buscar {
    max-width: 560px;
    margin: 0 auto 10px;
  }

  .mk-chips {
    justify-content: center;
    flex-wrap: wrap;
  }

  .mk-promo {
    width: auto;
    margin: 20px 16px 4px;
  }

  .mk-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .mk-hero {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 22px;
    align-items: center;
    padding: 14px;
  }

  .mk-hero .mk-cuerpo {
    padding: 0 10px 0 0;
  }

  .mk-hero .mk-nombre-plato {
    font-size: 34px;
  }

  .mk-pie-titulo {
    font-size: 38px;
  }

  .mk-accesos,
  .comanda-bar {
    left: 50%;
    right: auto;
    width: min(520px, 100%);
    transform: translateX(-50%);
  }

  .mk-accesos {
    border: 1px solid var(--mk-line);
    border-radius: 999px 999px 0 0;
  }
}

/* ---------- Estados ocultos (L-334) ---------- */

.menu-item[hidden],
.clasica-cat[hidden],
section[hidden] {
  display: none !important;
}

@media print {
  .mk-accesos,
  .comanda-bar,
  .dl-popup-overlay,
  .lightbox-overlay,
  .mk-add {
    display: none !important;
  }
}

/* ---------- Carrusel de promos (popup + platos en oferta, 2026-09-29) ---------- */
.mk-promos { margin: 18px 16px 4px; color: var(--mk-muted); }
.mk-promo.is-oferta { cursor: default; }
.mk-promo-texto s { opacity: 0.8; }
.mk-promo-texto strong { color: var(--mk-price); font-size: 15px; }
.mk-promo-add { flex: 0 0 auto; }
/* En la tarjeta de promo el boton va redondo, sin texto: la pildora
   "Agregar" apretaba el nombre del plato a 3 lineas (medido a 390px). */
.mk-promo-add .qty-add { width: 38px; height: 38px; padding: 0; justify-content: center; }
.mk-promo-add .qty-add::after { content: none; }
.mk-promo-add .qty-add svg { width: 18px; height: 18px; }

/* ---------- Portada subida detrás de la cabecera del tema (2026-09-30) ---------- */
.mk-top.has-portada {
  --mk-top-ink: #ffffff;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.mk-portada-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.mk-top.has-portada::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.72) 100%);
}

.mk-top.has-portada .mk-top-inner,
.mk-top.has-portada .mk-idiomas {
  position: relative;
  z-index: 2;
}

.mk-top.has-portada .mk-idiomas {
  position: absolute;
}

.mk-top.has-portada .mk-titulo,
.mk-top.has-portada .mk-kicker {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .mk-top.has-portada {
    min-height: 340px;
  }
}

/* ============================================================
   Variaciones (TDR-009 fase 1): tabla de tamaños + presentaciones
   debajo + selector de tamaño/opción. Clases GENÉRICAS `var-*`
   (mismas que carta.css) pero con las variables PROPIAS de esta
   piel (--mk-*, nunca --ink/--muted/--carta-acento -- este tema no
   las alias).
   ============================================================ */
.var-tabla-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0 18px; border: var(--mk-card-border-w, 1px) solid var(--mk-card-border, rgba(255,255,255,.15)); border-radius: 10px; }
.var-tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
/* La fila es `.menu-item` (dual class) para que carta-clasica-buscar.js la
   encuentre -- por si `.menu-item` llega a tener su propio `display` aquí. */
.var-tabla tr.menu-item { display: table-row; }
.var-tabla th, .var-tabla td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--mk-card-border, rgba(255,255,255,.15)); vertical-align: top; }
.var-tabla-th-nombre, .var-tabla-td-nombre { text-align: left; min-width: 118px; }
.var-tabla thead th { background: var(--mk-surface); font-weight: 700; color: var(--mk-ink); }
.var-tabla-th-top { display: block; font-size: 12px; }
.var-tabla-th-sub { display: block; font-size: 10px; font-weight: 400; color: var(--mk-muted); }
.var-tabla-nombre { display: block; font-weight: 700; color: var(--mk-ink); overflow-wrap: anywhere; }
.var-tabla-desc, .var-tabla-opciones { overflow-wrap: anywhere; }
.var-tabla-desc, .var-tabla-opciones { display: block; font-size: 11px; color: var(--mk-muted); font-weight: 400; margin-top: 2px; }
.var-tabla-sin { color: var(--mk-muted); opacity: .5; }
.var-tabla-precio-txt { display: block; font-weight: 700; color: var(--mk-price, var(--mk-ink)); white-space: nowrap; }
.var-tabla-add { margin-top: 4px; min-height: 26px; display: flex; align-items: center; justify-content: center; }
/* "+" de la tabla: círculo con los colores del botón de la piel (sin esto
   salía el botón gris por defecto; la píldora con texto de .mk-add no cabe). */
.var-tabla-add .qty-add { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: none; border-radius: 999px; background: var(--mk-btn); color: var(--mk-btn-ink); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18); cursor: pointer; }
.var-tabla-add .qty-add svg { width: 15px; height: 15px; }
/* Contador del carrito DENTRO de la tabla de tamaños en VERTICAL (+ / 1 / -):
   en horizontal medía ~90px, ensanchaba su columna y sacaba la tabla de la
   pantalla (medido 5-oct en Libro y Marca a 390px). */
.var-tabla-add .qty-stepper { flex-direction: column-reverse; gap: 3px; padding: 4px 3px; }
.var-presentaciones { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.var-presentacion { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; border-bottom: 1px dashed var(--mk-card-border, rgba(255,255,255,.15)); padding-bottom: 3px; color: var(--mk-ink); }
.var-presentacion-precio { font-weight: 700; color: var(--mk-price, var(--mk-ink)); white-space: nowrap; }
.var-opciones-linea { font-size: 12px; color: var(--mk-muted); margin: 4px 0 0; }
.mk-precio-desde { font-size: 14px; }
.var-cuerpo { padding: 4px 18px 10px; display: flex; flex-direction: column; gap: 14px; }
.var-tamano-fijo { font-size: 13px; font-weight: 700; color: var(--mk-ink); margin: 0; }
.var-grupo-titulo { font-size: 12px; font-weight: 700; color: var(--mk-muted); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 6px; }
.var-pildoras { display: flex; flex-wrap: wrap; gap: 8px; }
/* 13-oct (L-846): píldora de 44 px, radio nativo invisible cubriéndola, punto visible en ::before. */
.var-pildora { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--mk-card-border, rgba(255,255,255,.15)); border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; background: var(--mk-surface); color: var(--mk-ink); }
.var-pildora input { position: absolute; inset: -1px; width: auto; height: auto; margin: 0; opacity: 0; cursor: pointer; }
.var-pildora::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; }
.var-pildora:has(input:checked) { border-color: var(--mk-accent); background: var(--mk-panel, var(--mk-surface)); }
.var-pildora:has(input:checked)::before { background: var(--mk-accent); border-color: var(--mk-accent); box-shadow: inset 0 0 0 3px var(--mk-surface); }
.var-pildora:has(input:focus-visible) { outline: 2px solid var(--mk-accent); outline-offset: 2px; }
.var-confirmar:disabled { opacity: .45; cursor: not-allowed; }
.var-panel h2, .var-panel [data-variante-nombre] { color: var(--mk-ink); }
@media (max-width: 420px) {
  .var-tabla { font-size: 11.5px; }
  .var-tabla th, .var-tabla td { padding: 6px 4px; }
  .var-tabla-th-nombre, .var-tabla-td-nombre { min-width: 88px; }
}
/* Android de 360px: 4 tamaños + nombre sin desplazamiento (medido 5-oct: a 360 la piel
   Marca se pasaba 4px con min-width 88). */
@media (max-width: 370px) {
  .var-tabla th, .var-tabla td { padding: 6px 2px; }
  .var-tabla-th-nombre, .var-tabla-td-nombre { min-width: 72px; }
}

/* Variaciones: columna del nombre a la izquierda. `.var-tabla th` (más
   específico) la centraba aunque `.var-tabla-td-nombre` pedía izquierda. */
.var-tabla .var-tabla-th-nombre, .var-tabla .var-tabla-td-nombre { text-align: left; }
/* El nombre del plato heredaba el 11.5px de la tabla en celular: casi igual
   que la descripción, no se distinguía el plato. */
.var-tabla .var-tabla-nombre { font-size: 14px; }

/* Selector de tamaño: cada tamaño a lo ancho, nombre a la izquierda y precio
   a la derecha sin cortarse; botón "Agregar · S/ X" a todo el ancho. */
.var-pildora--tamano { width: 100%; }
.var-pildora-nombre { flex: 1 1 auto; min-width: 0; }
.var-pildora-precio { flex: 0 0 auto; margin-left: auto; white-space: nowrap; font-weight: 700; }
.var-panel .var-confirmar { width: 100%; justify-content: center; text-align: center; }

/* Alérgenos por plato (2026-10-10, spec alergenos.md) -- mismo bloque que
   carta.css, con las variables propias del tema Marca (--mk-*). */
.alg-iconos { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.alg-ico { display: inline-flex; align-items: center; color: var(--mk-muted); cursor: default; font-size: 11px; line-height: 1.25; font-weight: 500; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; }
.alg-ico svg { display: block; }
.alg-ico--trazas { opacity: .55; }
.alg-filtro { position: relative; }
.alg-filtro-btn { display: inline-flex; align-items: center; gap: 6px; border: var(--mk-card-border-w, 1px) solid var(--mk-card-border, rgba(255,255,255,.15)); background: var(--mk-bg); color: var(--mk-ink); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit; }
.alg-filtro-btn.is-activo { background: var(--mk-accent); color: var(--mk-accent-ink); border-color: transparent; }
.alg-filtro-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 220px; max-width: min(320px, 90vw); background: var(--mk-bg); border: var(--mk-card-border-w, 1px) solid var(--mk-card-border, rgba(255,255,255,.15)); border-radius: 10px; padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.3); display: grid; gap: 6px; }
.alg-filtro-panel[hidden] { display: none; }
.alg-filtro-titulo { font-size: 12px; color: var(--mk-muted); margin: 0 0 4px; }
.alg-filtro-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mk-ink); }
.is-alg-oculto { display: none !important; }
.alg-pie { margin: 18px 0; padding: 14px 0 0; border-top: var(--mk-card-border-w, 1px) solid var(--mk-card-border, rgba(255,255,255,.15)); }
.alg-pie-titulo { font-size: 13px; font-weight: 700; color: var(--mk-ink); margin: 0 0 8px; }
.alg-pie-lista { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.alg-pie-lista li { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--mk-muted); }
.alg-pie-lista li.is-trazas { opacity: .75; }
.alg-pie-lista svg { color: var(--mk-muted); flex-shrink: 0; }
.alg-aviso { font-size: 11.5px; color: var(--mk-muted); margin: 0; line-height: 1.4; }

/* Visor vertical (fotos-videos-verticales v2): boton "Ver en vertical" en la
   esquina opuesta a los idiomas. Estilo base en visor-vertical.css. */
.pv-abrir--marca { position: absolute; top: 8px; left: 14px; z-index: 3; }

/* ==========================================================================
   A3 (carta-mejoras-competencia-v1): zonas tactiles de 44 px REALES.
   Cada control mide >= 44x44 como caja propia (un ::before invisible amplia el
   toque pero el medidor no lo cuenta). El aspecto visible queda IGUAL: la
   pildora/disco se dibuja en ::before con su medida de siempre y el margen
   negativo le devuelve a la fila el tamano de antes (el layout no se mueve).
   ========================================================================== */

/* Idiomas ES/EN/PT (34 x 28, borde currentColor): caja de 44, borde y relleno activo intactos. */
.mk-idioma {
  position: relative;
  isolation: isolate;
  min-width: 44px;
  height: 44px;
  margin: -8px -5px;
  padding: 0 11px;
  border: 0;
  background: none !important;
}

.mk-idioma::before {
  content: '';
  position: absolute;
  inset: 8px 5px;
  z-index: -1;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.mk-idioma.is-activo::before {
  background: var(--mk-accent);
  border-color: var(--mk-accent);
}

body.mk-body[data-tema="cafeteria"] .mk-idioma.is-activo::before {
  background: #f7f2e6;
  border-color: #f7f2e6;
}

/* Chips de categorias (34 px): caja de 44 y chip visible intacto. El contenedor gana 5 px de relleno por
   lado (para contener la caja, que no se recorte) y se compensa con margen negativo: el nav no cambia de alto. */
.mk-chips {
  padding-block: 5px;
  margin-block: -5px;
}

.mk-chip {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  margin-block: -5px;
  padding: 0 15px;
  border: 0;
  background: none !important;
}

.mk-chip::before {
  content: '';
  position: absolute;
  inset: 5px 0;
  z-index: -1;
  border: 1px solid var(--mk-line);
  border-radius: 999px;
  background: var(--mk-chip-bg);
}

.mk-chip.is-activo::before {
  background: var(--mk-chip-act);
  border-color: var(--mk-chip-act);
}

/* Buscador: el input (40 px dentro de la caja de 42) mide 44; transparente, con margen negativo. */
.mk-buscar input {
  height: 44px;
  margin-block: -2px;
}

/* "+ Agregar" (pildora de 34 px, con sombra): caja de 44, pildora visible en ::before. */
.mk-add .qty-add {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  margin-block: -5px;
  background: none;
  box-shadow: none;
}

.mk-add .qty-add::before {
  content: '';
  position: absolute;
  inset: 5px 0;
  z-index: -1;
  border-radius: 999px;
  background: var(--mk-btn);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* "+" redondo de las promos (38 px) y de la tabla de tamanos (32 px). */
.mk-promo-add .qty-add,
.var-tabla-add .qty-add {
  width: 44px;
  height: 44px;
  min-height: 44px;
}

.mk-promo-add .qty-add {
  margin: -3px;
}

.mk-promo-add .qty-add::before {
  inset: 3px;
  border-radius: 50%;
}

.var-tabla-add .qty-add {
  position: relative;
  isolation: isolate;
  margin: -6px;
  background: none;
  box-shadow: none;
}

.var-tabla-add .qty-add::before {
  content: '';
  position: absolute;
  inset: 6px;
  z-index: -1;
  border-radius: 50%;
  background: var(--mk-btn);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* +/- del stepper (disco de 30 px translucido, sin sombra): fondo recortado al contenido. */
.qty-btn {
  width: 44px;
  height: 44px;
  margin: -7px;
  padding: 7px;
  background-clip: content-box;
}

.qty-btn::before {
  content: none;
}

/* Flechas del carrusel (solo escritorio): 42 -> 44. */
@media (hover: hover) and (min-width: 768px) {
  .clasica-destacados-nav {
    width: 44px;
    height: 44px;
  }
}

/* Cerrar, quitar y popup. */
.comanda-cerrar {
  position: relative;
  isolation: isolate;
  width: 44px;
  height: 44px;
  margin: -2px;
  border: 0;
}

.comanda-cerrar::before {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  border: 1px solid var(--mk-line);
  border-radius: 50%;
}

.comanda-item-quitar {
  width: 44px;
  height: 44px;
  margin: -5px;
}

.dl-popup-cerrar {
  isolation: isolate;
  width: 44px;
  height: 44px;
  margin: -4px;
  background: none;
}

.dl-popup-cerrar::before {
  content: '';
  position: absolute;
  inset: 4px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
}

/* El popup enfoca este boton al abrirse: el anillo de foco rodea el disco visible, no la caja de 44. */
.dl-popup-cerrar:focus-visible {
  outline: none;
}

.dl-popup-cerrar:focus-visible::before {
  outline: -webkit-focus-ring-color auto 1px;
}

.comanda-field input,
.comanda-field select {
  min-height: 44px;
}

/* Boton "Alergenos" del filtro (38 px de alto con el borde del tema, aparece cuando algun plato declara
   alergenos): caja de 44, pildora visible intacta en ::before. */
.alg-filtro-btn {
  --h: 38px;
  position: relative;
  isolation: isolate;
  min-height: 44px;
  margin-block: calc((var(--h) - 44px) / 2);
  padding: 0 calc(14px + var(--mk-card-border-w, 1px));
  border: 0;
  background: none;
}

.alg-filtro-btn::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: var(--h);
  transform: translateY(-50%);
  z-index: -1;
  border: var(--mk-card-border-w, 1px) solid var(--mk-card-border, rgba(255, 255, 255, 0.15));
  border-radius: 999px;
  background: var(--mk-bg);
}

.alg-filtro-btn.is-activo {
  background: none;
}

.alg-filtro-btn.is-activo::before {
  background: var(--mk-accent);
  border-color: transparent;
}

/* Nota por plato del carrito (campo de linea de 27 px): la caja crece hacia arriba y el texto queda donde estaba. */
.comanda-item-nota-input {
  min-height: 44px;
  padding-top: 21px;
  margin-top: -13px;
}

/* Pildoras de "Nuestros locales" (35,5 px; solo con 2+ sedes) y CTA del cross-sell (40 px; solo plan Gratis):
   caja de 44 y pildora visible intacta en ::before (alto --h, centrada). */
.mk-local-acciones a,
.provoca-crosssell-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-block: calc((var(--h) - 44px) / 2);
  border: 0;
}

.mk-local-acciones a {
  --h: 35.5px;
  padding: 0 15px;
}

.provoca-crosssell-cta {
  --h: 40px;
  display: inline-flex;
  padding: 0 21px;
}

.mk-local-acciones a::before,
.provoca-crosssell-cta::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: var(--h);
  transform: translateY(-50%);
  z-index: -1;
  border: 1px solid var(--mk-line);
  border-radius: 999px;
}

.provoca-crosssell-cta::before {
  border-color: currentColor;
}
