/* =========================================================
   UBBI · Marketplace web del cliente
   Hoja de estilos propia: sin compilación y liviana.
   Marca: azul marino #12285A · azul noche #0A1633 · naranja #FF7A00
   ========================================================= */

/* Colores de UBBi: azul marino de marca, azul noche para texto,
   naranja mandarina como único acento (botones y lo que pide atención). */
:root {
    --brand: #12285A;          /* textos, íconos y bordes de marca */
    --brand-solid: #12285A;    /* fondos de marca con texto blanco */
    --brand-600: #0A1633;
    --brand-50: #E9EEF7;
    --brand-100: #D7E0EF;
    --logo: #12285A;
    --accent: #FF7A00;
    --accent-600: #E86A00;
    --accent-50: #FFF1E5;
    --accent-ink: #A34A00;     /* naranja oscuro para texto sobre fondo claro */
    --ink: #0A1633;
    --text: #0F1B33;
    --muted: #55607A;
    --line: #DDE3EE;
    --bg: #F4F6FA;
    --card: #FFFFFF;
    --chip: #EBEFF5;
    --ok: #0F9F5F;
    --ok-50: #E3F8EE;
    --danger: #E5484D;
    --danger-50: #FFECEC;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 1px 2px rgb(10 22 51 / .05), 0 8px 24px -12px rgb(10 22 51 / .14);
    --shadow-lg: 0 24px 60px -20px rgb(10 22 51 / .38);
    --header-h: 68px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: Poppins, Inter, ui-sans-serif, system-ui, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #9DB7E8;
        --brand-solid: #1B3A7A;
        --brand-600: #B8CCF0;
        --brand-50: #14223F;
        --brand-100: #1B2D52;
        --logo: #FFFFFF;
        --accent-50: #3A1F05;
        --accent-ink: #FF9A40;
        --text: #EEF2F8;
        --muted: #9AA6BF;
        --line: #1F2E4D;
        --bg: #070F22;
        --card: #0E1A33;
        --chip: #15233F;
        --ok-50: #0D2E1F;
        --danger-50: #3A1416;
        --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body.mk { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-family: var(--font-display); font-weight: 700; }
p { margin: 0; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 10px; }

.mk-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mk-main { min-height: 60vh; padding-bottom: 40px; }
.mk-muted { color: var(--muted); }
.mk-ico { width: 20px; height: 20px; flex-shrink: 0; }
.mk-ico-sm { width: 16px; height: 16px; flex-shrink: 0; }
.mk-skip { position: absolute; left: -999px; top: 8px; background: var(--brand-solid); color: #fff; padding: 8px 12px; border-radius: 10px; z-index: 100; }
.mk-skip:focus { left: 8px; }

/* ---------- Logo ---------- */
.mk-logo { display: inline-flex; align-items: center; color: var(--logo); line-height: 0; }
.mk-logo .ubbi-logo { height: 30px; width: auto; display: block; }
.mk-logo-sm .ubbi-logo { height: 24px; }

/* ---------- Botones ---------- */
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 650; font-size: 15px; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s, opacity .15s; }
.mk-btn:active { transform: scale(.97); }
.mk-btn[disabled], .mk-btn.is-disabled { opacity: .5; pointer-events: none; }
.mk-btn-primary { background: var(--accent); color: #0A1633; box-shadow: 0 8px 20px -10px var(--accent); }
.mk-btn-primary:hover { background: var(--accent-600); }
.mk-btn-ghost { color: var(--text); }
.mk-btn-ghost:hover { background: var(--chip); }
.mk-btn-soft { background: var(--brand-50); color: var(--brand); }
.mk-btn-soft:hover { background: var(--brand-100); }
.mk-btn-outline { border: 1.5px solid var(--line); background: var(--card); }
.mk-btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.mk-btn-danger { background: var(--danger-50); color: var(--danger); }
.mk-btn-lg { height: 54px; font-size: 16px; padding: 0 24px; }
.mk-btn-block { width: 100%; }
.mk-btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 999px; }

.mk-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; transition: all .15s; }
.mk-chip:hover { border-color: var(--brand); }
.mk-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { .mk-chip.is-active { background: #fff; border-color: #fff; color: var(--ink); } }

.mk-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.mk-pill-open { background: var(--ok-50); color: var(--ok); }
.mk-pill-closed { background: var(--chip); color: var(--muted); }
.mk-pill-paused { background: var(--accent-50); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .mk-pill-paused { color: var(--accent); } }
.mk-pill-dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }

/* ---------- Header ---------- */
.mk-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.mk-header-row { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.mk-header-search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--chip); border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.mk-header-search:focus-within { border-color: var(--brand); background: var(--card); }
.mk-header-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; min-width: 0; }
.mk-header-search .mk-ico { color: var(--muted); }
.mk-header-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.mk-cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
@media (prefers-color-scheme: dark) { .mk-cart-btn { background: #fff; color: var(--ink); } }
.mk-cart-btn.is-empty { background: var(--chip); color: var(--text); }
.mk-cart-count { min-width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.mk-bump { animation: mk-bump .35s ease; }
@keyframes mk-bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }

.mk-avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--brand-solid); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.mk-menu { position: relative; }
.mk-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; }
.mk-menu-panel a, .mk-menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; font-weight: 550; font-size: 14px; text-align: left; }
.mk-menu-panel a:hover, .mk-menu-panel button:hover { background: var(--chip); }
.mk-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.mk-menu-head span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 760px) {
    :root { --header-h: 60px; }
    .mk-header-search, .mk-hide-sm { display: none; }
    .mk-cart-btn .mk-cart-label { display: none; }
    .mk-cart-btn { padding: 0 12px; }
}

/* ---------- Hero ---------- */
/* Banda azul marino con el pin naranja grande de fondo, como en la publicidad. */
.mk-hero { position: relative; overflow: hidden; padding: 56px 0 84px; background: var(--brand-solid); color: #fff; }
.mk-hero-pin { position: absolute; right: -60px; top: -40px; width: 380px; height: auto; color: var(--accent); opacity: .95; transform: rotate(12deg); pointer-events: none; }
.mk-hero-inner { position: relative; display: grid; gap: 28px; }
.mk-hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -.035em; max-width: 14ch; color: #fff; }
.mk-hero h1 em { font-style: normal; color: var(--accent); }
.mk-hero p { font-size: 18px; color: #C9D3E6; max-width: 46ch; }
.mk-search-xl { display: flex; align-items: center; gap: 12px; max-width: 620px; height: 64px; padding: 0 8px 0 22px; border-radius: 999px; background: var(--card); color: var(--text); border: 1.5px solid transparent; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .5); }
.mk-search-xl:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px rgb(255 122 0 / .25); }
.mk-search-xl input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; min-width: 0; }
.mk-search-xl .mk-ico { color: var(--muted); }
.mk-hero-stats { display: flex; gap: 22px; flex-wrap: wrap; color: #C9D3E6; font-size: 14px; font-weight: 550; }
.mk-hero-stats span { display: inline-flex; align-items: center; gap: 6px; }
.mk-hero-stats .mk-ico { color: var(--accent); width: 18px; height: 18px; }
@media (max-width: 760px) { .mk-hero-pin { width: 220px; right: -70px; top: -30px; opacity: .35; } }

/* ---------- Secciones ---------- */
.mk-section { padding: 28px 0; }
.mk-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mk-section-head h2 { font-size: 24px; font-weight: 800; }
.mk-section-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.mk-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.mk-filters::-webkit-scrollbar { display: none; }

/* ---------- Tarjetas de comercio ---------- */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.mk-store { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.mk-store:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgb(10 22 51 / .35); }
.mk-store.is-closed { opacity: .72; }
.mk-store-cover { position: relative; aspect-ratio: 16 / 8; display: flex; align-items: center; justify-content: center; }
.mk-store-cover img { width: 100%; height: 100%; object-fit: cover; }
.mk-store-initial { font-size: 54px; font-weight: 900; color: rgb(255 255 255 / .92); letter-spacing: -.05em; }
.mk-store-logo { position: absolute; left: 14px; bottom: -22px; width: 52px; height: 52px; border-radius: 16px; background: var(--card); border: 3px solid var(--card); box-shadow: var(--shadow); overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--brand); }
.mk-store-logo img { width: 100%; height: 100%; object-fit: cover; }
.mk-store-status { position: absolute; right: 12px; top: 12px; }
.mk-store-body { padding: 30px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.mk-store-body h3 { font-size: 18px; font-weight: 750; }
.mk-store-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 550; }
.mk-store-meta span { display: inline-flex; align-items: center; gap: 4px; }

.mk-cover-0 { background: linear-gradient(135deg, #12285A, #2E4F96); }
.mk-cover-1 { background: linear-gradient(135deg, #FF7A00, #FFA14D); }
.mk-cover-2 { background: linear-gradient(135deg, #0A1633, #34507F); }
.mk-cover-3 { background: linear-gradient(135deg, #1E3A78, #5B7BC0); }
.mk-cover-4 { background: linear-gradient(135deg, #E86A00, #FFB36B); }
.mk-cover-5 { background: linear-gradient(135deg, #12285A, #FF7A00); }

/* ---------- Banners de vender / repartir ---------- */
.mk-promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.mk-promo { position: relative; overflow: hidden; border-radius: 26px; padding: 28px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.mk-promo h3 { font-size: 26px; font-weight: 800; max-width: 16ch; }
.mk-promo p { max-width: 36ch; opacity: .85; }
.mk-promo-brand { background: var(--brand-solid); color: #fff; }
.mk-promo-ink { background: var(--ink); color: #fff; }
.mk-promo-ink .mk-btn, .mk-promo-brand .mk-btn { background: var(--accent); color: #0A1633; }
.mk-promo-art { position: absolute; right: -24px; bottom: -40px; width: 150px; height: auto; color: var(--accent); transform: rotate(14deg); pointer-events: none; }

/* ---------- Vacíos ---------- */
.mk-empty { text-align: center; padding: 56px 20px; background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.mk-empty-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.mk-empty-ico .mk-ico { width: 30px; height: 30px; }
.mk-empty h3 { font-size: 20px; margin-bottom: 6px; }
.mk-empty p { color: var(--muted); max-width: 40ch; margin: 0 auto 18px; }

/* ---------- Página del comercio ---------- */
.mk-store-hero { position: relative; }
.mk-store-banner { height: 190px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden; }
.mk-store-banner img { width: 100%; height: 100%; object-fit: cover; }
.mk-store-head { position: relative; margin-top: -46px; display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.mk-store-head .mk-store-logo { position: static; width: 92px; height: 92px; border-radius: 26px; border-width: 4px; font-size: 34px; }
.mk-store-head-info { flex: 1; min-width: 220px; padding-bottom: 4px; display: flex; flex-direction: column; gap: 8px; }
.mk-store-head-info h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 850; }
.mk-info-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; font-weight: 550; }
.mk-info-row > span { display: inline-flex; align-items: center; gap: 5px; }
.mk-select { height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236E6A7C'%3E%3Cpath fill-rule='evenodd' d='M5.2 7.2a.75.75 0 0 1 1.06.02L10 11.17l3.74-3.95a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06Z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; appearance: none; font-weight: 600; font-size: 14px; }

.mk-closed-banner { margin-top: 20px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--chip); font-weight: 550; }
.mk-closed-banner.is-paused { background: var(--accent-50); }

.mk-cat-nav { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin-top: 22px; border-bottom: 1px solid var(--line); }
.mk-cat-nav .mk-filters { padding: 12px 0; }

.mk-menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 8px; }
@media (max-width: 980px) { .mk-menu-layout { grid-template-columns: minmax(0, 1fr); } .mk-side-cart { display: none; } }
.mk-cat { padding-top: 26px; }
.mk-cat h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.mk-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.mk-product { display: flex; gap: 14px; text-align: left; width: 100%; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.mk-product:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); }
.mk-product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mk-product-info h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.mk-product-info p { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-price { font-weight: 800; font-size: 15px; }
.mk-product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-add { width: 34px; height: 34px; border-radius: 999px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.mk-product-img { width: 104px; height: 104px; border-radius: 14px; flex-shrink: 0; overflow: hidden; background: var(--chip); }
.mk-product-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-product-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 30px; color: var(--brand); background: linear-gradient(135deg, var(--brand-50), var(--accent-50)); }

/* ---------- Carrito lateral (escritorio) y cajón ---------- */
.mk-side-cart { position: sticky; top: calc(var(--header-h) + 80px); }
.mk-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mk-card-pad { padding: 20px; }
.mk-cart-lines { display: flex; flex-direction: column; gap: 14px; }
.mk-cart-line { display: flex; gap: 12px; align-items: flex-start; }
.mk-cart-line-info { flex: 1; min-width: 0; }
.mk-cart-line-info strong { display: block; font-size: 15px; }
.mk-cart-line-info small { display: block; font-size: 12.5px; color: var(--muted); }
.mk-stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--chip); border-radius: 999px; padding: 3px; }
.mk-stepper button { width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.mk-stepper button:hover { background: var(--card); }
.mk-stepper span { min-width: 24px; text-align: center; font-weight: 750; font-size: 14px; }
.mk-stepper-lg button { width: 42px; height: 42px; }
.mk-stepper-lg span { min-width: 34px; font-size: 17px; }
.mk-totals { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; margin-top: 14px; border-top: 1px dashed var(--line); font-size: 14.5px; }
.mk-totals div { display: flex; justify-content: space-between; }
.mk-totals .mk-total { font-size: 18px; font-weight: 850; padding-top: 6px; }

.mk-overlay { position: fixed; inset: 0; background: rgb(10 22 51 / .5); backdrop-filter: blur(2px); z-index: 60; }
.mk-drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.mk-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mk-drawer-head h2 { font-size: 20px; font-weight: 800; }
.mk-drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.mk-drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }

/* Hoja de producto (abajo en el celular, centrada en escritorio) */
.mk-sheet { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 94vw); max-height: 88vh; background: var(--card); border-radius: 26px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }
@media (max-width: 640px) {
    .mk-sheet { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; }
}
.mk-sheet-img { height: 210px; background: var(--chip); position: relative; flex-shrink: 0; }
.mk-sheet-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-sheet-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; z-index: 2; }
.mk-sheet-body { overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.mk-sheet-body h2 { font-size: 24px; font-weight: 850; }
.mk-group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.mk-group-head h4 { font-size: 15px; font-weight: 750; }
.mk-tag { font-size: 11.5px; font-weight: 750; padding: 3px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.mk-tag-req { background: var(--accent-50); color: var(--accent-ink); }
.mk-tag-ok { background: var(--ok-50); color: var(--ok); }
.mk-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.mk-opt + .mk-opt { margin-top: 8px; }
.mk-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.mk-opt input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; flex-shrink: 0; }
.mk-opt span { flex: 1; font-weight: 550; }
.mk-opt em { font-style: normal; color: var(--muted); font-size: 14px; font-weight: 600; }
.mk-opt.is-disabled { opacity: .45; cursor: not-allowed; }
.mk-textarea, .mk-input { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); padding: 12px 14px; outline: 0; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.mk-input { height: 50px; }
.mk-textarea { min-height: 76px; resize: vertical; }
.mk-textarea:focus, .mk-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(18 40 90 / .12); }
.mk-sheet-foot { display: flex; gap: 12px; align-items: center; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.mk-sheet-foot .mk-btn { flex: 1; justify-content: space-between; }
.mk-error { color: var(--danger); font-size: 13.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; }

/* ---------- Formularios y cuenta ---------- */
.mk-auth { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; padding: 40px 20px; }
.mk-auth-card { width: min(440px, 100%); }
.mk-auth-card h1 { font-size: 30px; font-weight: 850; margin-bottom: 6px; }
.mk-field { display: flex; flex-direction: column; gap: 6px; }
.mk-field label { font-size: 14px; font-weight: 650; }
.mk-field small { font-size: 12.5px; color: var(--muted); }
.mk-form { display: flex; flex-direction: column; gap: 16px; }
.mk-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .mk-row-2 { grid-template-columns: minmax(0, 1fr); } }
.mk-check { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 550; }
.mk-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.mk-divider { text-align: center; color: var(--muted); font-size: 14px; }
.mk-link { color: var(--brand); font-weight: 650; }
.mk-link:hover { text-decoration: underline; }

.mk-page-head { padding: 32px 0 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mk-page-head h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 850; }
.mk-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .mk-two-col { grid-template-columns: minmax(0, 1fr); } }
.mk-stack { display: flex; flex-direction: column; gap: 16px; }
.mk-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.mk-card h3 .mk-ico { color: var(--brand); }
.mk-address { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.mk-address + .mk-address { margin-top: 8px; }
.mk-address:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.mk-address input { accent-color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }
.mk-address strong { display: block; }
.mk-address small { color: var(--muted); }
.mk-pay { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--brand); background: var(--brand-50); border-radius: 14px; font-weight: 650; }
.mk-pay-soon { border-color: var(--line); background: var(--card); color: var(--muted); font-weight: 550; }
.mk-sticky-cta { position: sticky; bottom: 0; }
.mk-sr { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mk-pay-opts { display: grid; gap: 10px; }
.mk-pay-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.mk-pay-opt:hover { border-color: var(--brand); }
.mk-pay-opt:focus-within { box-shadow: 0 0 0 4px rgb(18 40 90 / .12); }
.mk-pay-opt.is-on { border-color: var(--brand); background: var(--brand-50); }
.mk-pay-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #E9EEF7; color: var(--brand); flex-shrink: 0; }
.mk-pay-opt.is-on .mk-pay-ico { background: var(--brand); color: #fff; }
.mk-pay-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-pay-txt strong { font-weight: 700; }
.mk-pay-txt small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.mk-cards { display: flex; gap: 5px; margin-top: 6px; }
.mk-cards i { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .4px; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.mk-pay-radio { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--line); flex-shrink: 0; transition: .15s; }
.mk-pay-opt.is-on .mk-pay-radio { border: 7px solid var(--accent, #FF7A00); }
.mk-paybar { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: #0A1633; color: #fff; margin-bottom: 16px; }
.mk-paybar .mk-ico { color: #FF9A40; }
.mk-paybar strong { display: block; font-family: Poppins, Inter, sans-serif; }
.mk-paybar small { opacity: .8; }
.mk-paybar .mk-btn { margin-left: auto; white-space: nowrap; }
.mk-paid { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: #0F9F5F; background: #E3F7EC; padding: 5px 10px; border-radius: 999px; }
.mk-paid .mk-ico { width: 16px; height: 16px; }

/* ---------- Pedidos ---------- */
.mk-order-row { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: border-color .15s, box-shadow .15s; }
.mk-order-row:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.mk-order-row + .mk-order-row { margin-top: 10px; }
.mk-order-row .mk-store-logo { position: static; width: 48px; height: 48px; border: 0; box-shadow: none; background: var(--brand-50); border-radius: 14px; flex-shrink: 0; }
.mk-order-row-info { flex: 1; min-width: 0; }
.mk-order-row-info strong { display: block; }
.mk-order-row-info small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mk-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 750; white-space: nowrap; }
.mk-status-warning { background: var(--accent-50); color: var(--accent-ink); }
.mk-status-info, .mk-status-primary { background: var(--brand-50); color: var(--brand); }
.mk-status-success { background: var(--ok-50); color: var(--ok); }
.mk-status-danger, .mk-status-gray { background: var(--danger-50); color: var(--danger); }
@media (prefers-color-scheme: dark) { .mk-status-warning { color: var(--accent); } }

.mk-track-hero { padding: 26px; border-radius: 26px; background: var(--brand-solid); color: #fff; position: relative; overflow: hidden; }
.mk-track-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px; border-radius: 999px; background: radial-gradient(circle, rgb(255 122 0 / .45), transparent 70%); }
.mk-track-hero.is-bad { background: #3A1416; }
.mk-track-hero.is-done { background: #0B3B25; }
.mk-track-hero h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 850; position: relative; }
.mk-track-hero p { opacity: .8; position: relative; margin-top: 6px; }
.mk-track-code { position: relative; display: inline-flex; margin-top: 14px; padding: 6px 12px; border-radius: 10px; background: rgb(255 255 255 / .12); font-weight: 700; letter-spacing: .04em; font-size: 14px; }
.mk-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mk-step { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.mk-step:last-child { padding-bottom: 0; }
.mk-step::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.mk-step:last-child::before { display: none; }
.mk-step.is-done::before { background: var(--brand-solid); }
.mk-step-dot { width: 32px; height: 32px; border-radius: 999px; background: var(--chip); color: var(--muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; }
.mk-step.is-done .mk-step-dot { background: var(--brand-solid); color: #fff; }
.mk-step.is-current .mk-step-dot { background: var(--accent); color: var(--ink); box-shadow: 0 0 0 6px rgb(255 122 0 / .25); animation: mk-pulse 1.6s infinite; }
@keyframes mk-pulse { 50% { box-shadow: 0 0 0 10px rgb(255 122 0 / .08); } }
.mk-step-text strong { display: block; }
.mk-step-text small { color: var(--muted); }
.mk-step:not(.is-done):not(.is-current) .mk-step-text { opacity: .55; }

.mk-skel { background: linear-gradient(90deg, var(--chip), var(--line), var(--chip)); background-size: 200% 100%; animation: mk-skel 1.2s infinite; border-radius: 12px; }
@keyframes mk-skel { to { background-position: -200% 0; } }

/* ---------- Footer y barra inferior ---------- */
.mk-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 calc(100px + env(safe-area-inset-bottom)); background: var(--card); }
.mk-footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 24px; }
.mk-footer-grid h4 { font-size: 14px; font-weight: 750; margin-bottom: 10px; }
.mk-footer-grid a:not(.mk-logo) { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
.mk-footer-grid a:not(.mk-logo):hover { color: var(--brand); }
.mk-footer-grid p { margin-top: 10px; font-size: 14px; }
.mk-footer-bottom { margin-top: 28px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.mk-footer-legal { display: flex; gap: 16px; }
.mk-footer-legal a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 760px) { .mk-footer-grid { grid-template-columns: 1fr 1fr; } .mk-footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (min-width: 761px) { .mk-footer { padding-bottom: 40px; } }

.mk-tabbar { display: none; }
@media (max-width: 760px) {
    .mk-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
    .mk-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 650; color: var(--muted); border-radius: 12px; }
    .mk-tabbar a.is-active { color: var(--brand); }
    .mk-tabbar .mk-ico { width: 22px; height: 22px; }
    .mk-main { padding-bottom: 96px; }
}

/* Barra flotante del carrito en el celular */
.mk-float-cart { display: none; }
@media (max-width: 980px) {
    .mk-float-cart { display: flex; position: fixed; z-index: 44; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); height: 58px; border-radius: 18px; background: var(--brand-solid); color: #fff; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 750; box-shadow: 0 16px 34px -12px var(--brand-solid); }
}
@media (max-width: 760px) { .mk-float-cart { bottom: calc(78px + env(safe-area-inset-bottom)); } }

/* ---------- Avisos ---------- */
.mk-toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
@media (max-width: 760px) { .mk-toasts { bottom: calc(150px + env(safe-area-inset-bottom)); } }
.mk-toast { padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 650; font-size: 14px; box-shadow: var(--shadow-lg); max-width: 90vw; }
.mk-toast-error { background: var(--danger); }
@media (prefers-color-scheme: dark) { .mk-toast { background: #fff; color: var(--ink); } .mk-toast-error { background: var(--danger); color: #fff; } }

.mk-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 550; }
.mk-alert-warning { background: var(--accent-50); }
.mk-alert-danger { background: var(--danger-50); color: var(--danger); }
.mk-alert-info { background: var(--brand-50); }
.mk-alert-success { background: var(--ok-50); color: var(--ok); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.mk-loading { opacity: .55; transition: opacity .15s; pointer-events: none; }
.mk-drawer-from { transform: translateX(100%); }
.mk-drawer { transition: transform .22s ease; }
.is-disabled-soft { opacity: .75; }

/* Encabezado del comercio: el logo se monta sobre la portada, el texto queda debajo */
.mk-store-head { align-items: flex-start; }
.mk-store-head-info { padding-top: 54px; }
.mk-info-row label { white-space: nowrap; }
@media (max-width: 640px) {
    .mk-store-banner { height: 120px; border-radius: 0 0 22px 22px; }
    .mk-store-head { flex-direction: column; gap: 12px; margin-top: -40px; }
    .mk-store-head .mk-store-logo { width: 76px; height: 76px; border-radius: 22px; font-size: 28px; }
    .mk-store-head-info { padding-top: 0; min-width: 0; width: 100%; }
    .mk-info-row label { width: 100%; }
    .mk-info-row .mk-select { flex: 1; }
    .mk-product-img { width: 88px; height: 88px; }
    .mk-hero { padding: 32px 0 60px; }
    .mk-search-xl { height: 56px; }
}
.mk-promo > div { position: relative; z-index: 1; }
@media (max-width: 640px) {
    .mk-promo-art { width: 110px; right: -40px; bottom: -40px; opacity: .6; }
    .mk-section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mapa para marcar la entrega ---------- */
.mk-map { display: flex; flex-direction: column; gap: 10px; }
.mk-map-canvas { height: 280px; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--line); z-index: 0; }
.mk-map-canvas.is-empty { border-style: dashed; border-color: var(--brand); }
.mk-map-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-map-ok { color: var(--ok); font-weight: 650; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }
.leaflet-container { font-family: var(--font); z-index: 0; } /* los marcadores no tapan ventanas ni el menú */
@media (max-width: 640px) { .mk-map-canvas { height: 240px; } }

/* ---------- Seguimiento en vivo ---------- */
.mk-track-map-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; }
.mk-track-map-head strong { display: block; font-size: 16px; }
.mk-track-map { height: 320px; z-index: 0; }
@media (max-width: 640px) { .mk-track-map { height: 260px; } }
.mk-live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--danger); background: var(--danger-50); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.mk-live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--danger); animation: mk-blink 1.4s infinite; }
@keyframes mk-blink { 50% { opacity: .25; } }
.ubbi-pin { background: none; border: 0; }

/* Ingredientes del producto: ya incluidos, se tocan para quitar */
.mk-ico-xs { width: 14px; height: 14px; flex-shrink: 0; }
.mk-ings { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-ing { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-weight: 650; font-size: 15px;
    border: 1.5px solid var(--brand); background: var(--brand-50); color: var(--ink); transition: background .15s, border-color .15s, color .15s; }
.mk-ing .mk-ing-ico { display: inline-flex; color: var(--brand); }
.mk-ing:hover:not(:disabled) { filter: brightness(.97); }
.mk-ing.is-out { border-color: var(--line); background: transparent; color: var(--muted); text-decoration: line-through; }
.mk-ing.is-out .mk-ing-ico { color: #E5484D; }
.mk-ing.is-locked { border-color: var(--line); background: var(--chip); cursor: default; }
.mk-ing.is-locked .mk-ing-ico { color: var(--muted); }
.mk-ing.is-gone { border-color: var(--line); background: transparent; color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.mk-ing em { font-style: normal; font-size: 12px; text-decoration: none; }
.mk-ing-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.mk-ing-note b { color: #C2272D; }

/* =========================================================
   Marketplace "pro": portadas, categorías, cómo pedir, lo más pedido
   ========================================================= */

/* Portadas con foto o, si no hay, color de marca con el pin de fondo */
.mk-store-cover.has-photo { background: var(--chip); }
.mk-store-cover.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 22 51 / .0) 50%, rgb(10 22 51 / .35)); pointer-events: none; }
.mk-store-cover > img { position: absolute; inset: 0; }
.mk-store:hover .mk-store-cover > img { filter: brightness(1.05); }
.mk-store-cover-pin { position: absolute; right: 8%; top: 0; width: 34%; height: auto; color: rgb(255 255 255 / .16); transform: rotate(12deg); pointer-events: none; }
.mk-store-status, .mk-store-logo { z-index: 1; }
.mk-store-desc { color: var(--muted); font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-store-desc strong { color: var(--text); font-weight: 650; }
.mk-store-meta { margin-top: 4px; }

.mk-store-banner { height: 240px; }
.mk-store-banner.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 22 51 / .05) 40%, rgb(10 22 51 / .45)); }
.mk-store-banner .mk-store-cover-pin { width: 220px; right: 6%; top: -40px; }
.mk-kicker { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--accent-50); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; }
.mk-store-tagline { color: var(--muted); font-size: 15px; max-width: 60ch; }
@media (max-width: 760px) { .mk-store-banner { height: 150px; } .mk-store-banner .mk-store-cover-pin { width: 140px; } }

/* Categorías (inicio) */
.mk-cats-section { padding-top: 0; margin-top: -34px; position: relative; z-index: 2; }
.mk-cats { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; scroll-snap-type: x proximity; }
.mk-cats::-webkit-scrollbar { display: none; }
.mk-cat-card { scroll-snap-align: start; flex: 0 0 auto; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 20px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 650; text-align: center; line-height: 1.2; transition: border-color .15s, transform .15s; }
.mk-cat-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.mk-cat-ico { width: 46px; height: 46px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); }
.mk-cat-ico .mk-ico { width: 26px; height: 26px; }
.mk-cat-card.is-active { background: var(--brand-solid); border-color: var(--brand-solid); color: #fff; }
.mk-cat-card.is-active .mk-cat-ico { background: var(--accent); color: #0A1633; }

/* Cómo pedir */
.mk-how { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.mk-how h2 { font-size: 26px; font-weight: 800; margin-bottom: 22px; }
.mk-how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; counter-reset: none; }
.mk-how-steps li { position: relative; padding: 18px; border-radius: 20px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.mk-how-steps strong { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; }
.mk-how-steps p { color: var(--muted); font-size: 14px; }
.mk-how-num { position: absolute; right: 16px; top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--line); }
.mk-how-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: #0A1633; display: flex; align-items: center; justify-content: center; }

/* Menú: buscador y categorías en la misma barra */
.mk-cat-nav-row { display: flex; align-items: center; gap: 12px; }
.mk-cat-nav-row .mk-filters { flex: 1; min-width: 0; }
.mk-menu-search { flex: 0 0 220px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); color: var(--muted); }
.mk-menu-search:focus-within { border-color: var(--brand); }
.mk-menu-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--text); }
@media (max-width: 760px) {
    .mk-cat-nav-row { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
    .mk-menu-search { flex-basis: auto; }
}
[hidden] { display: none !important; }
#mk-menu-empty { margin-top: 26px; }

/* Lo más pedido */
.mk-popular { padding-top: 26px; }
.mk-popular h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.mk-popular h2 .mk-ico { color: var(--accent); }
.mk-popular-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 220px); gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.mk-popular-row::-webkit-scrollbar { display: none; }
.mk-pop { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.mk-pop-img { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--chip); border: 1px solid var(--line); }
.mk-pop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mk-pop:hover .mk-pop-img img { transform: scale(1.05); }
.mk-pop-img .mk-add { position: absolute; right: 10px; bottom: 10px; background: var(--accent); color: #0A1633; box-shadow: var(--shadow); }
.mk-pop strong { font-size: 14.5px; font-weight: 650; line-height: 1.25; }

/* Progreso del pedido (checkout y seguimiento) */
.mk-progress { list-style: none; margin: 4px 0 22px; padding: 0; display: flex; gap: 8px; }
.mk-progress li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600; min-width: 0; }
.mk-progress-dot { width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--chip); color: var(--muted); }
.mk-progress-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-progress li.is-done { color: var(--text); }
.mk-progress li.is-done .mk-progress-dot { background: var(--brand-solid); color: #fff; }
.mk-progress li.is-current { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px rgb(255 122 0 / .12); }
.mk-progress li.is-current .mk-progress-dot { background: var(--accent); color: #0A1633; }
@media (max-width: 640px) { .mk-progress li:not(.is-current) .mk-progress-label { display: none; } .mk-progress li:not(.is-current) { flex: 0 0 auto; } }
.mk-step-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: var(--accent); color: #0A1633; font-family: var(--font-display); font-weight: 800; font-size: 13px; }

/* =========================================================
   Ubbicación (web): pin fijo al centro, invitación y animaciones
   ========================================================= */
.mk-ubb { position: relative; border-radius: 16px; overflow: hidden; }
.mk-ubb .mk-map-canvas { height: 380px; border-radius: 16px; }
.mk-ubb.is-empty .mk-map-canvas { filter: saturate(.6) brightness(.95); }
@media (max-width: 640px) { .mk-ubb .mk-map-canvas { height: 300px; } }

.mk-ubb-pin { position: absolute; left: 50%; top: 50%; width: 46px; height: 58px; margin-left: -23px; margin-top: -58px; z-index: 500; pointer-events: none; transition: transform .18s ease-out; }
.mk-ubb.is-moving .mk-ubb-pin { transform: translateY(-16px); }
.mk-ubb-pin-svg { width: 46px; height: 58px; color: var(--accent); filter: drop-shadow(0 6px 10px rgb(10 22 51 / .35)); }
.mk-ubb-pin-icon { position: absolute; left: 50%; top: 22px; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 999px; background: #fff; color: #12285A; display: flex; align-items: center; justify-content: center; }
.mk-ubb-shadow { position: absolute; left: 50%; bottom: -5px; width: 16px; height: 5px; margin-left: -8px; border-radius: 50%; background: rgb(10 22 51 / .35); transition: transform .18s; }
.mk-ubb.is-moving .mk-ubb-shadow { transform: translateY(16px) scale(.6); }

.mk-ubb-hint { position: absolute; left: 12px; right: 64px; top: 12px; z-index: 500; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #12285A; color: #fff; font-size: 13px; font-weight: 600; width: fit-content; max-width: calc(100% - 76px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--shadow); }
.mk-ubb-hint .mk-ico-sm { color: var(--accent); flex-shrink: 0; }
.mk-ubb-gps { position: absolute; right: 12px; bottom: 26px; z-index: 500; width: 46px; height: 46px; border-radius: 999px; background: var(--card); color: #12285A; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
@media (prefers-color-scheme: dark) { .mk-ubb-gps { color: #fff; } }
.mk-spin { width: 20px; height: 20px; border-radius: 999px; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: mk-rot .8s linear infinite; display: block; }
@keyframes mk-rot { to { transform: rotate(360deg); } }

.mk-ubb-ask { position: absolute; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(10 22 51 / .35); backdrop-filter: blur(2px); }
.mk-ubb-ask-card { width: min(360px, 100%); max-height: 100%; overflow: auto; background: var(--card); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mk-ubb-ask-card strong { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.mk-ubb-ask-card p { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.mk-ubb-ask-card small { color: var(--muted); font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.mk-ico-xs { width: 12px; height: 12px; }
.mk-ubb-bounce { position: relative; width: 70px; height: 70px; flex-shrink: 0; }
.mk-ubb-bounce-pin { position: absolute; left: 50%; bottom: 8px; width: 48px; height: 60px; margin-left: -24px; color: var(--accent); animation: mk-hop 1.1s ease-in-out infinite alternate; }
.mk-ubb-bounce-shadow { position: absolute; left: 50%; bottom: 0; width: 34px; height: 8px; margin-left: -17px; border-radius: 50%; background: rgb(10 22 51 / .18); animation: mk-hop-shadow 1.1s ease-in-out infinite alternate; }
@keyframes mk-hop { to { transform: translateY(-14px); } }
@keyframes mk-hop-shadow { to { transform: scale(.65); opacity: .6; } }

/* Seguimiento: moto que rebota, humito, huella y casa que late */
.ubbi-moto-wrap, .ubbi-home-wrap, .ubbi-trail { background: none; border: 0; }
.ubbi-moto { position: relative; width: 52px; height: 52px; }
.ubbi-moto-body { position: absolute; inset: 4px; border-radius: 999px; background: #FF7A00; color: #0A1633; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgb(10 22 51 / .35); animation: ubbi-bob .55s ease-in-out infinite alternate; }
.ubbi-moto.is-left .ubbi-moto-body svg { transform: scaleX(-1); }
.ubbi-moto.is-driving .ubbi-moto-body { animation-duration: .28s; }
.ubbi-moto-puff { position: absolute; left: -2px; top: 30px; width: 10px; height: 10px; border-radius: 999px; background: rgb(255 255 255 / .9); border: 1px solid rgb(10 22 51 / .12); opacity: 0; }
.ubbi-moto.is-left .ubbi-moto-puff { left: auto; right: -2px; }
.ubbi-moto.is-driving .ubbi-moto-puff { animation: ubbi-puff .9s ease-out infinite; }
.ubbi-moto.is-driving .ubbi-moto-puff.p2 { animation-delay: .45s; }
@keyframes ubbi-bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-4px) rotate(3deg); } }
@keyframes ubbi-puff { 0% { opacity: .9; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(-16px, -6px) scale(1.5); } }
.ubbi-moto.is-left .ubbi-moto-puff { animation-name: ubbi-puff-r; }
@keyframes ubbi-puff-r { 0% { opacity: .9; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(16px, -6px) scale(1.5); } }

.ubbi-trail span { display: block; width: 8px; height: 8px; margin: 1px; border-radius: 999px; background: #FF7A00; border: 1.5px solid #fff; }
.ubbi-route { animation: ubbi-dash 1.2s linear infinite; }
@keyframes ubbi-dash { to { stroke-dashoffset: -28; } }

.ubbi-home { position: relative; width: 60px; height: 60px; }
.ubbi-home-ring { position: absolute; left: 50%; bottom: 0; width: 26px; height: 10px; margin-left: -13px; border-radius: 50%; border: 2px solid #FF7A00; opacity: 0; animation: ubbi-ring 2s ease-out infinite; }
.ubbi-home-ring.r2 { animation-delay: 1s; }
@keyframes ubbi-ring { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.6); } }
.ubbi-home-pin { position: absolute; left: 50%; bottom: 6px; margin-left: -19px; width: 38px; height: 47px; filter: drop-shadow(0 6px 8px rgb(10 22 51 / .3)); }
.ubbi-home-pin svg { display: block; }
.ubbi-home-ico { position: absolute; left: 50%; top: 19px; transform: translate(-50%, -50%); color: #12285A; display: flex; }

@media (prefers-reduced-motion: reduce) {
    .ubbi-moto-body, .ubbi-moto-puff, .ubbi-route, .ubbi-home-ring, .mk-ubb-bounce-pin, .mk-ubb-bounce-shadow { animation: none !important; }
}

/* Envío transparente: se ve antes de pedir */
.mk-fee-box { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--brand-50); border: 1.5px solid var(--brand-100); }
.mk-fee-box.is-far { background: var(--danger-50); border-color: var(--danger); }
.mk-fee-ico { width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0; background: var(--accent); color: #0A1633; display: flex; align-items: center; justify-content: center; }
.mk-fee-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-fee-text strong { font-size: 14.5px; }
.mk-fee-text small { color: var(--muted); font-size: 13px; }
.mk-fee-amount { display: flex; flex-direction: column; align-items: flex-end; }
.mk-fee-amount span:first-child { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.mk-fee-amount small { color: var(--muted); font-size: 12px; }
.mk-address { align-items: center; }
.mk-address-fee { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; padding-left: 10px; }
.mk-address-fee b { font-family: var(--font-display); font-size: 16px; }
.mk-address-fee small { color: var(--muted); font-size: 12px; }
.mk-address-fee.is-far b { color: var(--danger); font-size: 13px; }
.mk-fee-rule { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: 12.5px; margin: 6px 0 0; line-height: 1.4; }
.mk-fee-rule .mk-ico-xs { margin-top: 2px; flex-shrink: 0; }

/* ================= Favoritos y calificaciones ================= */
.ubbi-star-pin .p { fill: var(--accent); }
.ubbi-star-pin.is-off .p { fill: var(--line); }
.ubbi-star-pin .s { fill: #fff; }
.ubbi-star-pin.is-off .s { fill: var(--card); }
.ubbi-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 1; color: var(--text); white-space: nowrap; }
.ubbi-rating b { font-weight: 800; }
.ubbi-rating span { color: var(--muted); font-weight: 550; }
.ubbi-rating-ico { width: 15px; height: 19px; flex-shrink: 0; }
.ubbi-rating-lg { font-size: 18px; gap: 6px; }
.ubbi-rating-lg .ubbi-rating-ico { width: 20px; height: 25px; }
.ubbi-rating.is-new b { font-size: 12px; font-weight: 750; color: var(--brand); background: var(--brand-50); padding: 3px 7px; border-radius: 999px; }
.ubbi-rating.is-new .ubbi-rating-ico { display: none; }
a.ubbi-rating:hover b { text-decoration: underline; }

.mk-fav { position: relative; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgb(255 255 255 / .94); box-shadow: 0 4px 14px -6px rgb(10 22 51 / .45); transition: transform .15s; flex-shrink: 0; }
.mk-fav:hover { transform: scale(1.08); }
.mk-fav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mk-fav svg { width: 20px; height: 25px; }
.ubbi-heart-pin .p { fill: none; stroke: #0A1633; stroke-width: 5; }
.ubbi-heart-pin .h { fill: #0A1633; }
.mk-fav.is-on .ubbi-heart-pin .p, .ubbi-heart-pin.is-on .p { fill: var(--accent); stroke: var(--accent); }
.mk-fav.is-on .ubbi-heart-pin .h, .ubbi-heart-pin.is-on .h { fill: #fff; }
.mk-fav.is-pop svg { animation: mkFavPop .45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes mkFavPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25) translateY(-3px); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .mk-fav.is-pop svg { animation: none; } }

.mk-store-wrap { position: relative; }
.mk-store-wrap > .mk-store { height: 100%; }
.mk-store-wrap > .mk-fav { position: absolute; left: 12px; top: 12px; z-index: 2; }
.mk-store-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-store-title h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mk-product-wrap { position: relative; }
.mk-product-wrap > .mk-product { height: 100%; }
.mk-product-wrap > .mk-fav { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; z-index: 2; }
.mk-product-wrap > .mk-fav svg { width: 17px; height: 21px; }
.mk-reco-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--accent-ink); background: var(--accent-50); padding: 3px 8px; border-radius: 999px; width: max-content; }
.mk-reco-badge svg { width: 11px; height: 14px; }

.mk-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 290px); gap: 16px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.mk-rail > * { scroll-snap-align: start; }
.mk-rank { position: absolute; z-index: 3; right: 12px; bottom: -14px; width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 900; font-size: 15px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--card); }
.mk-section-ico { display: inline-flex; vertical-align: -4px; margin-right: 6px; }
.mk-section-ico svg { width: 22px; height: 28px; }

.mk-dish { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-align: left; }
.mk-dish:hover { border-color: var(--brand); }
.mk-dish-img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--chip); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mk-dish-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-dish-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mk-dish-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-dish-info small { color: var(--muted); }

/* Reseñas */
.mk-reviews { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 820px) { .mk-reviews { grid-template-columns: minmax(0, 1fr); } }
.mk-rv-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
@media (max-width: 820px) { .mk-rv-summary { position: static; } }
.mk-rv-big { display: flex; align-items: center; gap: 12px; }
.mk-rv-big strong { font-family: Poppins, Inter, sans-serif; font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.mk-rv-pins { display: inline-flex; gap: 3px; }
.mk-rv-pins svg { width: 16px; height: 20px; }
.mk-rv-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.mk-rv-bar { display: grid; grid-template-columns: 14px 1fr 30px; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); font-weight: 650; }
.mk-rv-bar i { display: block; height: 8px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.mk-rv-bar i b { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.mk-rv-list { display: flex; flex-direction: column; gap: 14px; }
.mk-rv { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.mk-rv-head { display: flex; align-items: center; gap: 10px; }
.mk-rv-av { width: 38px; height: 38px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mk-rv-head small { color: var(--muted); display: block; }
.mk-rv-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-rv-tags span { font-size: 12px; font-weight: 650; padding: 4px 9px; border-radius: 999px; background: var(--chip); }
.mk-rv-reply { border-left: 3px solid var(--accent); background: var(--accent-50); border-radius: 0 14px 14px 0; padding: 10px 12px; font-size: 14px; }
.mk-rv-reply b { display: block; font-size: 12.5px; margin-bottom: 2px; }

/* Calificar pedido */
.mk-rate { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.mk-rate h3 { font-size: 20px; font-weight: 850; }
.mk-rate-q { font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mk-rate-q small { color: var(--accent-ink); font-weight: 750; }
.mk-stars { display: flex; gap: 8px; }
.mk-star { width: 46px; height: 56px; padding: 0; border-radius: 12px; transition: transform .15s; display: flex; align-items: center; justify-content: center; }
.mk-star svg { width: 38px; height: 48px; transition: transform .2s cubic-bezier(.2, 1.8, .4, 1); }
.mk-star:hover svg { transform: translateY(-3px); }
.mk-star.is-on svg { transform: scale(1.08); }
.mk-star:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.mk-star-sm { width: 36px; height: 44px; }
.mk-star-sm svg { width: 28px; height: 35px; }
.mk-tagpick { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-tagpick button { padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 650; }
.mk-tagpick button.is-on { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.mk-rate textarea { width: 100%; min-height: 84px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; font: inherit; background: var(--bg); color: var(--text); resize: vertical; }
.mk-rate textarea:focus { outline: 0; border-color: var(--brand); }
.mk-rate-done { display: flex; gap: 12px; align-items: center; }
.mk-rate-done svg.big { width: 44px; height: 55px; flex-shrink: 0; }
.mk-rate-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--accent-ink); background: var(--accent-50); padding: 4px 9px; border-radius: 999px; }
.mk-rate-badge svg { width: 12px; height: 15px; }
.mk-fav.mk-fav-sheet { box-shadow: none; border: 1.5px solid var(--line); width: 42px; height: 42px; }
.mk-product-wrap > .mk-product .mk-product-info { padding-right: 0; }
.mk-product-wrap[hidden] { display: none; }
.mk-nav-fav svg, .mk-tab-fav svg { width: 18px; height: 22px; }
.mk-nav-fav .ubbi-heart-pin .p, .mk-tab-fav .ubbi-heart-pin .p { stroke: currentColor; }
.mk-nav-fav .ubbi-heart-pin .h, .mk-tab-fav .ubbi-heart-pin .h { fill: currentColor; }
.mk-nav-fav .ubbi-heart-pin.is-on .h, .mk-tab-fav .ubbi-heart-pin.is-on .h { fill: #fff; }
.mk-fav-tabs { display: flex; gap: 8px; margin-bottom: 18px; }

/* ================= Ubbicación del cliente en el inicio ================= */
.mk-locbar { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; margin-bottom: 18px; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); color: #fff; text-align: left; max-width: 100%; transition: background .15s; }
.mk-locbar:hover { background: rgb(255 255 255 / .16); }
.mk-locbar:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mk-locbar-pin { width: 22px; height: 28px; color: var(--accent); flex-shrink: 0; }
.mk-locbar-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mk-locbar-txt small { font-size: 11.5px; opacity: .75; font-weight: 600; }
.mk-locbar-txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.mk-locbar-cta { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 750; color: #FF9A40; white-space: nowrap; }

.mk-store.is-far { opacity: .62; }
.mk-store.is-far:hover { opacity: .85; }
.mk-far { color: #B42318 !important; font-weight: 650; }
.mk-fee-strong { color: var(--text) !important; font-weight: 700; }

.mk-near-map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mk-near-map-canvas { height: 380px; background: var(--chip); }
@media (max-width: 640px) { .mk-near-map-canvas { height: 300px; } }
.ubbi-store-wrap { background: none; border: 0; }
.ubbi-store-pin { position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; background: #fff; border: 3px solid var(--accent, #FF7A00); box-shadow: 0 8px 18px -6px rgb(10 22 51 / .5); overflow: hidden; transition: transform .15s; }
.ubbi-store-pin::after { content: ''; position: absolute; }
.ubbi-store-wrap:hover .ubbi-store-pin { transform: translateY(-3px) scale(1.06); }
.ubbi-store-pin img { width: 100%; height: 100%; object-fit: cover; }
.ubbi-store-pin b { font-weight: 900; color: #12285A; font-size: 18px; }
.ubbi-store-pin.is-off { border-color: #9AA4B8; filter: grayscale(.7); }
.ubbi-pop { display: flex; flex-direction: column; gap: 6px; min-width: 170px; font-family: Inter, system-ui, sans-serif; }
.ubbi-pop strong { font-family: Poppins, Inter, sans-serif; font-size: 15px; color: #0A1633; }
.ubbi-pop-row { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #4A5568; }
.ubbi-pop-open { color: #0F9F5F; font-weight: 700; }
.ubbi-pop-closed { color: #8A94A6; font-weight: 700; }
.ubbi-pop-far { color: #B42318; font-weight: 700; }
.ubbi-pop-rating { color: #B35500; font-weight: 800; }
.ubbi-pop-btn { margin-top: 4px; display: block; text-align: center; padding: 8px 10px; border-radius: 10px; background: #FF7A00; color: #0A1633 !important; font-weight: 800; text-decoration: none; }
.leaflet-popup-content-wrapper { border-radius: 16px; }

.mk-locmodal { position: fixed; inset: 0; z-index: 2000; background: rgb(10 22 51 / .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mk-locmodal-card { width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow: auto; background: var(--card); border-radius: 28px; padding: 26px; box-shadow: 0 30px 80px -20px rgb(10 22 51 / .6); animation: mkLocIn .35s cubic-bezier(.2, 1.2, .4, 1); }
.mk-locmodal-card:has(.mk-locmodal-map) { max-width: 620px; }
@keyframes mkLocIn { from { transform: translateY(24px) scale(.97); opacity: 0; } }
@media (max-width: 560px) { .mk-locmodal { align-items: flex-end; padding: 0; } .mk-locmodal-card { border-radius: 26px 26px 0 0; max-height: 92dvh; } }
.mk-locmodal-ask { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.mk-locmodal-ask h2 { font-size: 24px; font-weight: 850; line-height: 1.15; }
.mk-locmodal-ask > p { color: var(--muted); margin-bottom: 6px; }
.mk-locmodal-art { position: relative; width: 96px; height: 96px; margin: 0 auto 4px; display: flex; align-items: center; justify-content: center; }
.mk-locmodal-pin { position: relative; width: 50px; height: 62px; color: var(--accent); z-index: 1; animation: mkPinHop 1.6s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgb(255 122 0 / .35)); }
.mk-locmodal-ring { position: absolute; left: 50%; bottom: 10px; width: 44px; height: 14px; margin-left: -22px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: mkRing 1.6s ease-out infinite; }
.mk-locmodal-ring.r2 { animation-delay: .8s; }
@keyframes mkPinHop { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-12px); } }
@keyframes mkRing { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mk-locmodal-pin, .mk-locmodal-ring { animation: none; } .mk-locmodal-card { animation: none; } }
.mk-locmodal-err { color: #B42318; font-size: 14px; font-weight: 600; }
.mk-locmodal-saved { display: flex; flex-direction: column; gap: 6px; text-align: left; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.mk-locmodal-saved small { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.mk-locmodal-saved button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); text-align: left; }
.mk-locmodal-saved button:hover { border-color: var(--brand); }
.mk-locmodal-saved span { display: flex; flex-direction: column; min-width: 0; }
.mk-locmodal-saved em { font-style: normal; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-locmodal-skip { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.mk-locmodal-map { display: flex; flex-direction: column; gap: 12px; }
.mk-locmodal-maphead { display: flex; gap: 8px; align-items: flex-start; }
.mk-locmodal-maphead h2 { font-size: 19px; font-weight: 850; }
.mk-locmodal-maphead p { font-size: 14px; }
.mk-locmodal-back { width: 40px; height: 40px; padding: 0; flex-shrink: 0; }
.mk-locmodal .mk-ubb .mk-map-canvas { height: 360px; }
@media (max-width: 560px) { .mk-locmodal .mk-ubb .mk-map-canvas { height: 46dvh; } }
.mk-locbar { align-self: flex-start; width: fit-content; }
.mk-section-ico .ubbi-pin, .mk-section-ico > svg:not(.ubbi-star-pin):not(.ubbi-heart-pin) { color: var(--accent); }

/* ================= Sucursales ================= */
.mk-branch-now { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand); }
.mk-branch-now a { font-weight: 750; font-size: 13px; color: var(--accent-ink); background: var(--card); padding: 4px 10px; border-radius: 999px; }
.mk-branch-now a:hover { text-decoration: underline; }
.mk-chooser { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .mk-chooser { grid-template-columns: minmax(0, 1fr); } }
.mk-chooser-map { height: 460px; }
@media (max-width: 900px) { .mk-chooser-map { height: 300px; } }
.mk-branch-list { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow: auto; padding-right: 4px; }
@media (max-width: 900px) { .mk-branch-list { max-height: none; } }
.mk-branch-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); transition: border-color .15s, transform .15s; }
.mk-branch-row:hover { border-color: var(--brand); transform: translateY(-1px); }
.mk-branch-row.is-far { opacity: .6; }
.mk-branch-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-50); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mk-branch-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mk-branch-info b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-branch-info small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-branch-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.mk-store-branch { display: inline-flex; align-items: center; gap: 4px; width: max-content; max-width: 100%; margin-top: -2px; font-size: 12.5px; font-weight: 750; color: var(--brand); background: var(--brand-50); padding: 3px 9px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-store-branch svg { width: 12px; height: 12px; color: var(--accent); flex-shrink: 0; }

/* =========================================================
   Promociones: precios con descuento, envío gratis, cupones y destacados
   ========================================================= */
.mk-price-wrap { display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.mk-price.is-promo { color: var(--accent-ink); }
.mk-price-old { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration-thickness: 1.5px; }
.mk-price-wrap.is-lg .mk-price { font-size: 20px; }
.mk-price-wrap.is-lg .mk-price-old { font-size: 15px; }
.mk-promo-badge { display: inline-flex; align-items: center; gap: 4px; width: max-content; background: var(--accent); color: #0A1633; font-size: 12px; font-weight: 850; padding: 3px 9px 3px 7px; border-radius: 999px; line-height: 1.3; }
.mk-promo-badge .mk-ico-sm { width: 14px; height: 14px; }
.mk-promo-badge.is-ship { background: var(--brand-solid); color: #fff; }
.mk-promo-badge.is-float { position: absolute; top: 10px; left: 10px; box-shadow: 0 6px 16px -6px rgb(10 22 51 / .45); z-index: 1; }
.mk-promo-badge.is-lg { font-size: 13.5px; padding: 5px 11px 5px 9px; }
.mk-promo-badge.is-mini { font-size: 10.5px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.mk-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-promo-note { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 13.5px; font-weight: 650; color: var(--brand); background: var(--brand-50); padding: 8px 10px; border-radius: 12px; }
.mk-product-img, .mk-pop-img { position: relative; }

.mk-save-line { color: var(--ok); font-weight: 700; }
.mk-save-line span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.mk-free { color: var(--ok); font-weight: 850; }
.mk-totals .mk-price-old { font-size: 13px; }

.mk-coupon { margin-top: 14px; }
.mk-coupon-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--brand); padding: 6px 0; }
.mk-coupon-toggle:hover { text-decoration: underline; }
.mk-coupon-row { display: flex; gap: 8px; }
.mk-coupon-row input { flex: 1; min-width: 0; height: 46px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; font: inherit; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; background: var(--card); color: var(--text); }
.mk-coupon-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; }
.mk-coupon-row input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.mk-coupon-row .mk-btn { height: 46px; }
.mk-coupon-err { color: var(--danger); font-size: 13px; font-weight: 650; margin-top: 6px; }
.mk-coupon-on { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--ok-50); color: var(--ok); border: 1.5px dashed color-mix(in srgb, var(--ok) 45%, transparent); }
.mk-coupon-on span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mk-coupon-on b { letter-spacing: .06em; font-weight: 850; }
.mk-coupon-on small { color: var(--text); font-size: 12.5px; font-weight: 600; }

.mk-sponsor-tag { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgb(10 22 51 / .82); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(6px); z-index: 1; }
.mk-store-cover .mk-sponsor-tag { top: auto; bottom: 10px; right: 10px; }
.mk-featured { display: flex; flex-direction: column; gap: 6px; }
.mk-featured-line { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-ink); padding: 0 6px; }

.mk-cat-card.is-promo { background: var(--accent-50); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-ink); }
.mk-cat-card.is-promo .mk-cat-ico { background: var(--accent); color: #0A1633; }
.mk-cat-card.is-promo:hover { border-color: var(--accent); }
.mk-nav-promo.is-active { color: var(--accent-ink); }

/* Tarjeta de producto en promo */
.mk-deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.mk-deals-rail { grid-auto-columns: minmax(210px, 240px); }
.mk-deal { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.mk-deal:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mk-deal-img { position: relative; aspect-ratio: 4 / 3; background: var(--chip); overflow: hidden; display: block; }
.mk-deal-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mk-deal:hover .mk-deal-img img { transform: scale(1.05); }
.mk-deal-img .mk-product-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.mk-deal-closed { position: absolute; inset: auto 10px 10px auto; background: rgb(10 22 51 / .78); color: #fff; font-size: 11.5px; font-weight: 750; padding: 3px 9px; border-radius: 999px; }
.mk-deal.is-closed .mk-deal-img img { filter: grayscale(.55); }
.mk-deal-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.mk-deal-body strong { font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-deal-store { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-deal-logo { width: 20px; height: 20px; border-radius: 6px; overflow: hidden; background: var(--brand-solid); color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mk-deal-logo img { width: 100%; height: 100%; object-fit: cover; }
.mk-deal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }

/* Portada de Promociones */
.mk-promo-hero { background: linear-gradient(135deg, #FF7A00 0%, #FF9A3D 55%, #FFB870 100%); color: #0A1633; overflow: hidden; }
.mk-promo-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: center; padding-top: 38px; padding-bottom: 38px; }
.mk-promo-hero-kicker { display: inline-flex; align-items: center; gap: 6px; background: #0A1633; color: #fff; font-size: 12.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px; }
.mk-promo-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.05; margin-top: 14px; letter-spacing: -.02em; }
.mk-promo-hero h1 em { font-style: normal; color: #fff; text-shadow: 0 2px 0 rgb(10 22 51 / .15); }
.mk-promo-hero p { margin-top: 10px; font-size: 16px; font-weight: 550; max-width: 560px; }
.mk-promo-hero-coupon { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; background: rgb(255 255 255 / .55); padding: 8px 13px; border-radius: 12px; font-size: 13.5px; font-weight: 700; border: 1.5px dashed rgb(10 22 51 / .3); }
.mk-promo-hero-art { position: relative; height: 180px; }
.mk-promo-hero-pin { position: absolute; right: 30px; top: 0; width: 140px; height: 175px; opacity: .95; filter: drop-shadow(0 18px 30px rgb(10 22 51 / .3)); }
.mk-promo-hero-chip { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 5px; font-weight: 850; border-radius: 999px; padding: 7px 13px; box-shadow: 0 12px 24px -10px rgb(10 22 51 / .5); }
.mk-promo-hero-chip.c1 { left: 0; top: 26px; background: #0A1633; color: #fff; font-size: 20px; transform: rotate(-8deg); }
.mk-promo-hero-chip.c2 { left: 30px; bottom: 18px; background: #fff; color: #0A1633; font-size: 13.5px; transform: rotate(4deg); }
@media (max-width: 720px) {
    .mk-promo-hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 26px; padding-bottom: 26px; }
    .mk-promo-hero-art { display: none; }
    .mk-deals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .mk-deal-body { padding: 10px 11px 12px; }
}
.mk-deal .mk-sponsor-tag { top: auto; right: auto; bottom: 10px; left: 10px; }
.mk-deal-closed { inset: auto 10px 10px auto; }
.mk-section-head .mk-filters { max-width: 100%; }

/* =========================================================
   Páginas legales y de ayuda
   ========================================================= */
.mk-legal-hero { background: var(--brand-solid); color: #fff; padding: 40px 0 46px; }
.mk-legal-kicker { display: inline-flex; align-items: center; gap: 6px; background: rgb(255 255 255 / .12); color: #fff; font-size: 12.5px; font-weight: 750; padding: 5px 11px; border-radius: 999px; }
.mk-legal-hero h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-top: 12px; letter-spacing: -.02em; }
.mk-legal-hero p { margin-top: 8px; color: rgb(255 255 255 / .8); font-size: 15.5px; max-width: 640px; }
.mk-legal-date { display: block; margin-top: 6px; font-size: 13px; color: var(--accent); font-weight: 700; }
.mk-legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: -22px; }
.mk-legal-nav { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.mk-legal-nav a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 650; color: var(--muted); }
.mk-legal-nav a:hover { background: var(--chip); color: var(--text); }
.mk-legal-nav a.is-active { background: var(--brand-50); color: var(--brand); }
.mk-legal-nav a.is-active .mk-ico-sm { color: var(--accent); }
.mk-legal-help { margin-top: 8px; padding: 12px; border-top: 1px dashed var(--line); font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.mk-legal-help a { padding: 0; color: var(--brand); font-weight: 700; }
.mk-legal-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 38px; box-shadow: var(--shadow); font-size: 15.5px; line-height: 1.7; color: var(--text); max-width: 820px; }
.mk-legal-body h2 { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin: 30px 0 10px; scroll-margin-top: calc(var(--header-h) + 20px); line-height: 1.3; }
.mk-legal-body h3 { font-size: 15.5px; font-weight: 800; margin: 18px 0 6px; }
.mk-legal-body p { margin: 8px 0; }
.mk-legal-body ul { margin: 8px 0; padding-left: 22px; list-style: disc; display: flex; flex-direction: column; gap: 6px; }
.mk-legal-body ul li::marker { color: var(--accent); }
.mk-legal-body a { color: var(--brand); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.mk-legal-tldr { background: var(--accent-50); border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 16px; padding: 16px 18px; margin-bottom: 8px; }
.mk-legal-tldr > b { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 2px; }
.mk-legal-tldr p { margin: 0; }
.mk-legal-steps { list-style: none; padding: 0; margin: 22px 0 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mk-legal-steps li { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.mk-legal-steps li > span { width: 30px; height: 30px; flex-shrink: 0; border-radius: 999px; background: var(--brand-solid); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.mk-legal-steps b { font-size: 15px; }
.mk-legal-steps p { margin: 2px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.mk-legal-table { overflow-x: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 14px; }
.mk-legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mk-legal-table th, .mk-legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mk-legal-table th { background: var(--chip); font-weight: 750; }
.mk-legal-table tr:last-child td { border-bottom: 0; }
.mk-legal-foot { margin-top: 34px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.mk-legal-foot p { margin: 3px 0; }
.mk-check a { font-weight: 750; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
    .mk-legal-layout { grid-template-columns: minmax(0, 1fr); margin-top: -18px; gap: 16px; }
    .mk-legal-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; }
    .mk-legal-nav a { white-space: nowrap; flex-shrink: 0; }
    .mk-legal-help { display: none; }
    .mk-legal-body { padding: 22px 18px; font-size: 15px; }
    .mk-legal-steps { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Notificaciones del cliente
   ========================================================= */
.mk-bell { position: relative; width: 42px; height: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: var(--chip); flex-shrink: 0; }
.mk-bell:hover, .mk-bell.is-active { color: var(--brand); background: var(--brand-50); }
.mk-bell-count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #0A1633; font-size: 11px; font-weight: 850; display: flex; align-items: center; justify-content: center; border: 2px solid var(--card); }
.mk-page-narrow { max-width: 720px; padding-bottom: 40px; }
.mk-notif { width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; transition: border-color .15s, transform .15s; }
.mk-notif:hover { border-color: var(--accent); transform: translateY(-1px); }
.mk-notif.is-new { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-50); }
.mk-notif-ico { width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0; background: var(--brand-solid); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.mk-notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-notif-body b { font-size: 15px; }
.mk-notif-body span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.mk-notif-body small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mk-notif-go { color: var(--muted); flex-shrink: 0; }
.mk-notif-optin { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--brand-50); margin-bottom: 14px; font-size: 14px; line-height: 1.5; }
.mk-notif-optin .mk-ico { color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.mk-switch-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; cursor: pointer; }
.mk-switch-row b { display: block; font-size: 15px; }
.mk-switch-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.mk-switch { width: 48px; height: 28px; border-radius: 999px; background: var(--line-strong, rgb(10 22 51 / .2)); position: relative; flex-shrink: 0; transition: background .15s; }
.mk-switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .25); transition: transform .15s; }
.mk-switch.is-on { background: var(--ok); }
.mk-switch.is-on span { transform: translateX(20px); }
.mk-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Iniciar sesión con Google */
.mk-btn-google { background: #fff; color: #1f1f1f; border: 1.5px solid var(--line); gap: 10px; font-weight: 700; margin-bottom: 4px; }
.mk-btn-google:hover { border-color: #747775; background: #f8f9fa; }
html.dark .mk-btn-google, [data-theme="dark"] .mk-btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
.mk-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.mk-or::before, .mk-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.mk-welcome-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-50); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.mk-social { display: flex; flex-direction: column; gap: 10px; }
.mk-btn-facebook { background: #1877F2; color: #fff; gap: 10px; font-weight: 700; border: 1.5px solid #1877F2; }
.mk-btn-facebook:hover { background: #166FE5; }

/* Crédito, saldo pendiente y efectivo bloqueado */
.mk-debt-line { color: var(--danger); font-weight: 700; }
.mk-debt-line span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.mk-pay-opt.is-disabled { opacity: .55; cursor: not-allowed; }
.mk-pay-opt.is-disabled small { color: var(--danger); font-weight: 650; }

/* Entrega segura y reclamos */
.mk-handoff { border: 2px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.mk-handoff.is-arrived { border-color: var(--accent); background: var(--accent-50); animation: mk-pulse-b 2s ease-in-out infinite; }
@keyframes mk-pulse-b { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); } }
.mk-handoff-head { display: flex; gap: 10px; align-items: center; font-size: 17px; margin-bottom: 8px; }
.mk-handoff-head .mk-ico { color: var(--accent-ink); }
.mk-handoff-steps { list-style: none; padding: 0; margin: 6px 0 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.mk-handoff-steps li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.mk-handoff-steps li > span { width: 24px; height: 24px; flex-shrink: 0; border-radius: 999px; background: var(--brand-solid); color: #fff; font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mk-pin-row { display: flex; gap: 8px; }
.mk-pin-row input { flex: 1; min-width: 0; height: 52px; border: 2px solid var(--line); border-radius: 14px; text-align: center; font-size: 24px; font-weight: 800; letter-spacing: .35em; font-variant-numeric: tabular-nums; background: var(--card); color: var(--text); }
.mk-pin-row input:focus { outline: 0; border-color: var(--brand); }
.mk-pin-row .mk-btn { height: 52px; }
.mk-handoff-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.mk-claim-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mk-claim-bad { color: var(--danger); }
.mk-claim-items { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mk-claim-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.mk-claim-item span { display: flex; flex-direction: column; min-width: 0; }
.mk-claim-item small { color: var(--muted); font-size: 12.5px; }
.mk-claim-item select { height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; font-weight: 650; background: var(--card); color: var(--text); }
.mk-claim-photo { display: flex; gap: 12px; align-items: center; padding: 12px; margin-top: 10px; border: 1.5px dashed var(--line); border-radius: 14px; cursor: pointer; }
.mk-claim-photo:hover { border-color: var(--accent); }
.mk-claim-photo span { display: flex; flex-direction: column; }
.mk-claim-photo small { color: var(--muted); font-size: 12.5px; }
.mk-claim-status { border-left: 4px solid var(--accent); }

/* ---------- Ajustes responsive ---------- */
/* Tarjetas de login/registro: que nunca se salgan en teléfonos chicos (320px) */
.mk-auth-card { min-width: 0; }
@media (max-width: 400px) {
    .mk-auth { padding: 24px 12px; }
    .mk-auth-card { padding: 22px !important; }
    .mk-auth-card .mk-btn { white-space: normal; text-align: center; }
    .mk-header-row { gap: 10px; }
}
/* Tablets (761–1100px): el menú del encabezado queda solo con íconos para que quepa */
@media (min-width: 761px) and (max-width: 1100px) {
    .mk-header-row { gap: 12px; }
    .mk-header-search { min-width: 0; }
    .mk-header-nav .mk-hide-sm { font-size: 0; gap: 0; padding: 0 12px; }
    .mk-header-nav .mk-hide-sm .ubbi-heart-pin { width: 20px; height: 20px; }
    .mk-cart-btn .mk-cart-label { display: none; }
}
