:root {
    --mmf-ink: #171a66;
    --mmf-blue: #55adec;
    --mmf-green: #3eb292;
    --mmf-coral: #ff8a72;
    --mmf-paper: #fff;
    --mmf-canvas: #f7f9fd;
    --mmf-line: #e1e7f2;
    --mmf-text: #262d48;
    --mmf-muted: #565f77;
    --mmf-shadow: 0 12px 32px rgb(23 26 102 / .07);
    --mmf-radius: 22px;
    --mmf-gutter: clamp(16px, 4vw, 52px);
    --mmf-font: Inter, "Segoe UI", system-ui, sans-serif;
}
body.mmf {
    font-family: var(--mmf-font);
    color: var(--mmf-text);
    background: var(--mmf-canvas);
    background-image: none;
    line-height: 1.55;
    min-width: 0;
}
.mmf *, .mmf *::before, .mmf *::after { box-sizing: border-box; }
.mmf img { max-width: 100%; }
.mmf :focus-visible { outline: 3px solid #286aa7; outline-offset: 3px; }
.mmf :is(h1, h2, h3, .section-title, .menu-header-title) { letter-spacing: -.025em; }
.mmf :is(input, button, textarea, select) { font-family: inherit; }
.mmf :is(input:not([type=checkbox], [type=radio], [type=color], [type=hidden], [type=range]), select, textarea) {
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    font-size: max(16px, 1em);
    border-radius: 12px;
}
.mmf :is(input:not([type=checkbox], [type=radio], [type=color], [type=hidden], [type=range], [type=submit]), select, textarea) {
    border-color: #bdc9df;
    background-color: var(--mmf-paper);
    color: var(--mmf-text);
}
.mmf iframe { max-width: 100%; }
mmf-card { display: block; }
.mmf :is(.card, .menu-card, .alta-box, .info-block, .form-container, .login-box, .registro-box, .upload-box, .menu-type-card, .category-card) {
    border: 1px solid var(--mmf-line);
    border-radius: var(--mmf-radius);
    box-shadow: var(--mmf-shadow);
}
.mmf :is(.top-header, .header-box, .app-header) {
    min-height: 72px;
    padding-inline: var(--mmf-gutter);
    background: var(--mmf-paper);
    color: var(--mmf-ink);
    border-bottom: 1px solid var(--mmf-line);
    box-shadow: none;
}
.mmf :is(.top-title, .header-left, .header-title, .header-title-resenas) { color: inherit; }
.mmf :is(.top-title, .header-left, .header-title-resenas) {
    font-size: clamp(1rem, 3vw, 1.35rem);
    font-weight: 750;
    line-height: 1.2;
}
.mmf :is(.top-title, .header-left, .header-title-resenas) img { display: block; }
.mmf-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mmf-brand img, .mmf-mark { width: clamp(100px, 25vw, 145px); height: 44px; object-fit: contain; }
.mmf :is(.login-btn, .btn-alta-rest, .btn-primary, .btn-agregar, .btn-save, .btn-gold) {
    background: var(--mmf-ink);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: none;
}
.mmf :is(.btn, .login-btn, .btn-agregar, .btn-save, .btn-alta-rest, .btn-login-rest, .btn-volver) {
    min-height: 44px;
    align-content: center;
    text-wrap: pretty;
}
.mmf :is(.btn-primary, .login-btn, .btn-agregar, .btn-save, .btn-alta-rest):hover { background: #272b87; color: white; }
.mmf .login-btn { display: inline-grid; place-items: center; text-align: center; }
.mmf .top-btn-round { background: #edf3ff; color: var(--mmf-ink); box-shadow: none; }
.mmf .top-btn-round svg { stroke: currentColor; }
.mmf .btn-maps { background: #e7f7f2; color: #0b5140; }
.mmf .price-top { background: #e7f7f2; color: #0b5140; border-radius: 999px; }
.mmf .menu-header-title, .mmf .section-title { color: var(--mmf-ink); }
.mmf .menu-text, .mmf .distance-info { overflow-wrap: anywhere; }
.mmf .menu-header img { flex: 0 0 auto; }
.mmf .bottom-menu:has(.mmf-nav-label) {
    position: fixed;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: min(calc(100% - 24px), 520px);
    height: auto;
    left: 50%;
    right: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    padding: 5px;
    border: 1px solid var(--mmf-line);
    border-radius: 20px;
    background: var(--mmf-paper);
    box-shadow: 0 8px 32px rgb(23 26 102 / .16);
}
.mmf .bottom-menu:has(.mmf-nav-label) .menu-item {
    width: auto;
    height: auto;
    min-width: 0;
    background: transparent !important;
    padding: 0;
}
.mmf .bottom-menu:has(.mmf-nav-label) a {
    display: grid;
    grid-template: auto auto / 1fr;
    place-items: center;
    gap: 3px;
    width: 100%;
    padding: 7px 1px;
    min-height: 52px;
    font: 650 clamp(10px, 2.8vw, 12px)/1.15 var(--mmf-font);
    color: var(--mmf-muted) !important;
    border-radius: 14px;
    text-decoration: none;
}
.mmf .bottom-menu:has(.mmf-nav-label) svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
}
.mmf .bottom-menu a[aria-current=page], .mmf .bottom-menu:has(.mmf-nav-label) a:hover {
    background: #eaf4ff;
    color: var(--mmf-ink) !important;
}
.mmf--public:has(.bottom-menu) { padding-bottom: calc(91px + env(safe-area-inset-bottom)); }
.mmf-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: center;
    min-height: 275px;
    margin: clamp(12px, 3vw, 28px) var(--mmf-gutter) 0;
    padding: clamp(24px, 5vw, 70px);
    color: var(--mmf-ink);
    background: linear-gradient(110deg, #e9f5ff, #eefaf6 75%, #fff0ed);
    border: 1px solid var(--mmf-line);
    border-radius: clamp(22px, 4vw, 36px);
    overflow: hidden;
}
.mmf-hero h1 {
    max-width: 13ch;
    font: 800 clamp(2.3rem, 6.5vw, 5rem)/1.02 var(--mmf-font);
    letter-spacing: -.065em;
    margin: 0 0 14px;
}
.mmf-hero p { font-size: clamp(1rem, 2vw, 1.2rem); margin: 0; max-width: 34ch; }
.mmf--feed .search-bar { margin-inline: var(--mmf-gutter); padding: 18px 0; }
.mmf--feed .search-bar input { background: white; border-color: #bfcce1; border-radius: 14px; }
.mmf--feed .search-icon { background-color: var(--mmf-ink); color: white; min-width: 46px; height: 46px; }
.mmf--feed .search-icon svg { stroke: white; }
.mmf--feed .separator { background: var(--mmf-line); }
.mmf--feed .carousel { margin: 0; padding: 16px var(--mmf-gutter) 32px; gap: 14px; }
.mmf--feed .slide { padding: 0; min-width: 0; flex: 0 0 100%; scroll-margin-inline: var(--mmf-gutter); }
.mmf--feed .carousel { scroll-padding-inline: var(--mmf-gutter); }
.mmf--feed .menu-card { padding: clamp(16px, 2.4vw, 28px); }
.mmf--feed .mmf-results { margin: 18px var(--mmf-gutter) 0; color: var(--mmf-ink); font-size: 1.1rem; }
.mmf--feed #splash { pointer-events: none; animation-delay: 0s; animation-duration: .65s; }
.mmf--feed .splash-logo { opacity: 1; animation: none; }
.mmf--restaurants .container { max-width: 1050px; padding: 24px var(--mmf-gutter); }
.mmf--restaurants .alta-box { background: linear-gradient(130deg, white 45%, #e9f8f3); text-align: left; padding: clamp(22px, 5vw, 55px); }
.mmf--restaurants .alta-box h1 { color: var(--mmf-ink); margin: 0 0 .65em; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; max-width: 18ch; }
.mmf--restaurants .alta-box ul { margin: 1rem 0; padding-left: 1.2rem; }
.mmf--restaurants .botones-alta { flex-wrap: wrap; }
.mmf--admin > :is(.header, .header-box) {
    background: white;
    color: var(--mmf-ink);
    border-bottom: 1px solid var(--mmf-line);
    box-shadow: none;
}
.mmf--admin > .header { font-weight: 750; }
.mmf--admin :is(.form-container, .login-box, .registro-box, .card) { background-color: white; }
.mmf--admin .mmf-dashboard { display: grid; gap: 16px; padding: 4px var(--mmf-gutter) 36px; max-width: 1440px; margin-inline: auto; }
.mmf--admin .mmf-dashboard > .card { margin: 0; max-width: none; min-width: 0; width: 100%; overflow-wrap: anywhere; }
.mmf--admin .mmf-dashboard > .card > img { aspect-ratio: 16 / 8; width: 100%; height: auto; object-fit: cover; display: block; }
.mmf--admin .mmf-dashboard > .card > .card-content { padding: 20px; }
.mmf--admin .mmf-dashboard > .card .btn { border-radius: 10px; padding-inline: 12px; }
.mmf--restaurant .hero :is(.hero-title, .hero-sub) { text-wrap: balance; }
.mmf--creator .app-header { gap: 10px; }
.mmf--creator .app-logo span { color: var(--mmf-ink); letter-spacing: 0; text-transform: none; }
.mmf--creator .app-logo img { display: block; }
.mmf--creator .step-bar { overflow-x: auto; justify-content: flex-start; }
.mmf--creator .step-item { flex-shrink: 0; }
@media (min-width: 680px) {
    .mmf--feed .carousel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 20px; }
    .mmf--admin .mmf-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
    .mmf-hero { background: linear-gradient(90deg, #e9f5ff 0%, #eefaf6 43%, transparent 68%), url("../comida/restaurante.jpg") right center / 60% auto no-repeat, #eefaf6; }
    .mmf--feed .carousel, .mmf--admin .mmf-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .mmf .top-header { gap: 8px; }
    .mmf .top-header .mmf-brand { flex-direction: column; align-items: start; gap: 0; }
    .mmf .top-header .mmf-brand img { height: 34px; }
    .mmf--creator .app-header { position: static; flex-wrap: wrap; }
    .mmf--creator .header-right { margin-left: 0; }
    .mmf--creator .editor-panel { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .mmf *, .mmf *::before, .mmf *::after { scroll-behavior: auto !important; }
    .mmf--feed #splash { display: none; }
}
.mmf .mmf-brand { color: var(--mmf-ink); font: 800 clamp(.95rem, 2.8vw, 1.22rem)/1.1 var(--mmf-font); letter-spacing: -.045em; }
.mmf .mmf-brand img { flex: none; width: 36px; height: 36px; border-radius: 10px; }
.mmf .mmf-page-name { display: block; margin-top: 5px; font-size: .76rem; color: var(--mmf-muted); }
.mmf .mmf-entry { display: grid; justify-items: center; gap: 12px; }
.mmf .top-header .mmf-brand { flex-direction: row; align-items: center; gap: 8px; }
.mmf .header-right { flex-shrink: 0; }
.mmf .top-btn-round { width: 44px; height: 44px; }
.mmf .mmf-dashboard .btn svg { flex-shrink: 0; }
.mmf--admin .btn-agregar { max-width: 360px; }
.mmf--admin .mmf-dashboard :is(.btn-menu, .btn-edit, .btn-web, .btn-html, .btn-reseñas) {
    background: #eef4ff;
    color: var(--mmf-ink);
}
.mmf--admin .mmf-dashboard .btn-menu { background: var(--mmf-ink); color: white; }
.mmf--admin .mmf-dashboard .btn-delete { background: #ffede8; color: #832f28; }
.mmf--admin .mmf-dashboard .btn svg { stroke: currentColor; }
.mmf-account, .mmf--admin .form-area {
    background: white;
    border: 1px solid var(--mmf-line);
    box-shadow: var(--mmf-shadow);
    border-radius: var(--mmf-radius);
    width: min(calc(100% - 32px), 540px);
    margin: clamp(20px, 5vw, 56px) auto;
    padding: clamp(16px, 4vw, 30px);
}
.mmf-account > .mmf-brand { justify-content: center; margin-bottom: 12px; }
.mmf-account .tabs { padding: 0; margin: 0 0 22px; gap: 5px; }
.mmf-account .tab {
    color: var(--mmf-ink);
    border: 0;
    background: #f4f6fa;
    font-size: .95rem;
    padding: 12px 8px;
    border-radius: 10px;
}
.mmf-account .tab.active { background: #e5f2ff; }
.mmf .mmf-account :is(input, button) { width: 100%; }
.mmf--admin .form-area form { width: 100%; }
.mmf .form-area .pass-wrapper { width: 95%; margin-inline: auto; max-width: 550px; }
.mmf--creator { --cream: #f7f9fd; --warm-white: white; --espresso: #171a66; --gold: #2869a4; --sage: #3eb292; --terracotta: #a04134; --border: #e1e7f2; }
.mmf--creator .app-logo { display: grid; gap: 3px; }
.mmf--creator .app-logo .mmf-brand span { font: inherit; }
.mmf--creator .app-body > * { min-width: 0; }
.mmf--creator .menu-type-card { min-width: 0; overflow-wrap: anywhere; }
.mmf-mobile-chat { display: none; }
.mmf--sample {
    --bg-color: #fff;
    --section-bg: #f7f9fd;
    --section-bg-alt: #edf6fd;
    --text-color: #171a66;
    --text-secondary: #45506c;
    --accent-color: #55adec;
    --accent-hover: #91cef6;
}
.mmf--sample .hero { --text-color: #fff; --accent-color: #b8e1fd; }
.mmf--sample :is(.footer, .menu-card, .step) { background: white; }
.mmf--sample .carousel-btn { background: #e2eeff; }
.mmf--sample :is(.navbar, .header, .mobile-menu) { background-color: white; color: var(--mmf-ink); }
.mmf--restaurant .hero .btn-ghost { color: white; }
.mmf--restaurant .section { background-color: var(--mmf-canvas); }
.mmf--restaurant .section .card { background-color: white; color: var(--mmf-text); }
.mmf--light-template .hero { color: white; }
.mmf--light-template .section :is(.h2, .p, .small, .menu-title, .menu-text, .price, .meta, .badge) { color: var(--mmf-text) !important; }
.mmf--light-template .section :is(.card, .menu-item, .badge) { border: 1px solid var(--mmf-line); }
.mmf--light-template .section .menu-item { background: var(--mmf-canvas); border-radius: 14px; }
.mmf--light-template .section .sep { background: var(--mmf-line); }
@media (max-width: 900px) {
    .mmf-mobile-chat { display: inline-flex; }
    .mmf--creator .app-body { height: auto; }
    .mmf--creator .app-body.mmf-chat-open .chat-panel { display: flex; min-height: 70vh; }
    .mmf--creator .app-body.mmf-chat-open .editor-panel { display: none; }
}
@media (max-width: 679px) {
    .mmf--feed .carousel:has(.slide ~ .slide) .slide { flex-basis: calc(100% - 26px); }
}

.mmf .top-btn-round, .mmf .top-btn-round svg { color: var(--mmf-ink) !important; stroke: currentColor !important; }
.mmf-account .tabs .tab { margin: 0; width: auto; min-height: 44px; }
.mmf--feed .btn-circle { background: var(--mmf-ink); }
.mmf--feed .btn-circle:hover { background: #272b87; }
.mmf--feed .carousel { scrollbar-width: thin; scrollbar-color: #b3c5dd transparent; }
