/* Marketplace (página principal). Se apoya en landing.css (tipografía, colores y botones). Primero el celular. */
body.mk { background: #f6f8fb; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.mk svg { width: 22px; height: 22px; fill: currentColor; flex: 0 0 auto; }
.mk button, .mk select, .mk input, .mk textarea { font-family: inherit; }
.mk-oculto { position: absolute; left: -999px; }

/* Encabezado con el buscador siempre a mano */
.mk-cab { position: sticky; top: 0; z-index: 90; background: var(--carbon); color: #fff; }
.mk-cab-in { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo nav" "busca busca"; align-items: center; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
.mk-logo { grid-area: logo; } .mk-logo img { display: block; height: 30px; width: auto; }
.mk-form { grid-area: busca; display: flex; background: #fff; border-radius: 999px; overflow: hidden; }
.mk-form input { flex: 1; min-width: 0; border: 0; font-size: 16px; min-height: 46px; padding: 0 18px; background: transparent; color: var(--texto); }
.mk-form button { border: 0; background: #007aff; color: #fff; min-width: 54px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mk-nav { grid-area: nav; display: flex; align-items: center; gap: 4px; justify-self: end; }
.mk-ico { display: none; }
.mk-vende { font-weight: 700; font-size: 13px; color: #062b1c; background: var(--verde); padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.mk-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #ff4d5e; color: #fff; font-size: 12px; line-height: 20px; text-align: center; font-weight: 800; }

/* Portada */
.mk-hero { background: linear-gradient(135deg, var(--carbon) 0%, #0a4a9a 70%, #0a7fa8 100%); color: #fff; padding: 22px 0 26px; }
.mk-hero h1 { font-size: clamp(24px, 6vw, 40px); margin-bottom: 8px; }
.mk-hero p { color: #d6e6fb; max-width: 640px; margin-bottom: 14px; }
.mk-claves { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.mk-claves li { font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 12px; }
.mk-claves li::before { content: "✓ "; color: var(--verde); font-weight: 800; }
.mk-tienda-acc { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-tienda-acc .btn-sec { color: #fff; }

/* Categorías */
.mk-cats { display: flex; gap: 10px; overflow-x: auto; padding: 16px 0 8px; scrollbar-width: thin; }
.mk-cats button { flex: 0 0 auto; width: 104px; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.25; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--linea); background: #fff; color: var(--texto); cursor: pointer; }
.mk-cats button svg { width: 28px; height: 28px; color: #007aff; }
.mk-cats button small { color: var(--suave); font-weight: 600; }
.mk-cats button[aria-pressed="true"] { background: var(--carbon); border-color: var(--carbon); color: #fff; }
.mk-cats button[aria-pressed="true"] svg, .mk-cats button[aria-pressed="true"] small { color: #7fe3ff; }

.mk-sec { margin: 18px 0 8px; }
.mk-sec h2 { font-size: 20px; margin: 0 0 2px; }

/* Comercios */
.mk-tiendas { list-style: none; margin: 10px 0 0; padding: 0 0 6px; display: flex; gap: 12px; overflow-x: auto; }
.mk-tiendas li { flex: 0 0 240px; }
.mk-tiendas button { width: 100%; height: 100%; display: flex; gap: 12px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--linea); border-radius: 16px; padding: 12px; cursor: pointer; color: var(--texto); }
.mk-tiendas button:hover { box-shadow: var(--sombra); }
.mk-inicial { width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: #fff; background: var(--grad); }
.mk-tiendas .tx { min-width: 0; } .mk-tiendas b { display: block; font-size: 14px; line-height: 1.3; } .mk-tiendas small { display: block; color: var(--suave); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Productos */
.mk-linea { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: space-between; }
.mk-linea p { margin: 0; color: var(--suave); font-size: 14px; }
.mk-orden { font-size: 13px; font-weight: 600; color: var(--suave); display: flex; gap: 8px; align-items: center; }
.mk-orden select { min-height: 44px; font-size: 14px; border-radius: 10px; border: 1px solid var(--linea); background: #fff; padding: 0 10px; color: var(--texto); }
.mk-quitar { font-size: 14px; font-weight: 600; min-height: 44px; background: none; border: 0; color: var(--azul); cursor: pointer; text-decoration: underline; padding: 0; text-align: left; }
.mk-grilla { list-style: none; margin: 12px 0 18px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea); border-radius: 16px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.mk-card:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.mk-card .ver { display: flex; flex-direction: column; flex: 1; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.mk-card .im { aspect-ratio: 1 / 1; background: #fff; display: block; width: 100%; border-bottom: 1px solid #eef2f7; }
.mk-card .im img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mk-card .tx { padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 3px; }
.mk-card .pr { font-weight: 800; font-size: 18px; color: var(--carbon); }
.mk-card .ti { font-weight: 500; font-size: 14px; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-card .ve { font-size: 12.5px; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-card .acc { padding: 4px 10px 12px; }
.mk .agregar { width: 100%; min-height: 46px; border-radius: 999px; border: 1.5px solid #007aff; background: #fff; color: #005ec4; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.mk .agregar:active { background: var(--azul-claro); }
.mk-paso { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 46px; border-radius: 999px; background: #007aff; color: #fff; padding: 2px; }
.mk-paso button { width: 44px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.mk-paso button:active { background: rgba(255, 255, 255, .4); }
.mk-paso span { font-weight: 700; font-size: 12.5px; text-align: center; line-height: 1.2; }
.mk-corazon { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(11, 45, 91, .18); cursor: pointer; display: flex; align-items: center; justify-content: center; color: #b6c2d2; }
.mk-corazon[aria-pressed="true"] { color: #ff4d5e; }
.mk-hueso { height: 280px; border-radius: 16px; background: linear-gradient(100deg, #eaf0f7 30%, #f7f9fc 50%, #eaf0f7 70%); background-size: 200% 100%; animation: mkbrillo 1.2s linear infinite; }
@keyframes mkbrillo { to { background-position: -200% 0; } }
.mk-vacio { text-align: center; padding: 30px 16px; background: #fff; border: 1px dashed #c9d4e3; border-radius: 16px; margin-bottom: 20px; }
.mk-pag { display: flex; gap: 14px; justify-content: center; align-items: center; padding-bottom: 24px; }

/* Cómo funciona y comercios */
.mk-como { background: #fff; padding: 34px 0; margin-top: 16px; }
.mk-como h2 { text-align: center; }
.mk-como ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.mk-como li { background: var(--fondo-2); border-radius: 16px; padding: 18px; }
.mk-como li b { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--carbon); color: #fff; margin-bottom: 10px; }
.mk-como h3 { margin-bottom: 4px; font-size: 17px; } .mk-como p { margin: 0; color: var(--suave); font-size: 14.5px; }
.mk-vender { background: var(--carbon); color: #fff; padding: 34px 0; }
.mk-vender-in { display: grid; gap: 20px; }
.mk-vender ul { margin: 0; padding-left: 0; list-style: none; color: #d6e6fb; }
.mk-vender li { padding: 4px 0 4px 26px; position: relative; } .mk-vender li::before { content: "✓"; position: absolute; left: 0; color: var(--verde); font-weight: 800; }
.mk-vender-acc { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.mk-vender .btn-sec { color: #fff; }
.mk-pie { padding: 22px 0; font-size: 14px; color: var(--suave); text-align: center; }

/* Barra inferior en el celular */
.mk-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--linea); padding-bottom: env(safe-area-inset-bottom); }
.mk-barra button, .mk-barra a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; font-size: 11.5px; font-weight: 600; background: none; border: 0; color: var(--suave); text-decoration: none; cursor: pointer; }
.mk-barra [aria-current="page"] { color: #007aff; }
.mk-barra .mk-n { position: absolute; top: 6px; left: calc(50% + 6px); }

/* Ficha y panel del pedido */
.mk dialog { border: 0; padding: 0; color: var(--texto); }
.mk dialog::backdrop { background: rgba(8, 25, 52, .65); }
.mk-ficha { width: min(900px, calc(100% - 20px)); max-height: calc(100% - 20px); border-radius: 18px; }
.mk-ficha[open] { display: grid; grid-template-columns: 1fr; }
.mk-cerrar { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea); background: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; color: var(--texto); }
.mk-foto { background: #fff; }
.mk-foto img { width: 100%; max-height: 300px; object-fit: contain; display: block; margin: 0 auto; }
.mk-det { padding: 16px 18px 0; display: flex; flex-direction: column; align-items: flex-start; background: var(--fondo-2); }
.mk-det h2 { font-size: 21px; margin-bottom: 8px; }
.mk-det p { margin-bottom: 10px; overflow-wrap: anywhere; }
.mk-cat { font-size: 13px; font-weight: 700; color: var(--azul); }
.mk-precio { font-size: 28px; font-weight: 800; color: var(--carbon); line-height: 1.2; }
.mk-disp { font-size: 13px; font-weight: 700; color: #0b7a4b; }
.mk-vend { width: 100%; background: #fff; border-radius: 12px; padding: 12px 14px 2px; margin-bottom: 12px; display: flex; flex-direction: column; }
.mk-vend span { color: var(--suave); font-size: 13.5px; }
.mk-ancho { width: 100%; margin-bottom: 10px; }
.mk-fila { display: flex; gap: 10px; width: 100%; margin-bottom: 14px; }
.mk-sec-btn { flex: 1; min-height: 46px; border-radius: 999px; border: 1px solid #c9d4e3; background: #fff; color: var(--carbon); font-weight: 700; font-size: 14px; cursor: pointer; }
.mk-sec-btn[aria-pressed="true"] { color: #d6293a; border-color: #ffc2c9; }
/* Comprar y consultar quedan siempre a la vista, abajo */
.mk-acciones { position: sticky; bottom: 0; align-self: stretch; margin: auto -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--linea); display: grid; gap: 8px; }
.mk-acciones .agregar { background: #007aff; color: #fff; min-height: 50px; font-size: 16px; }
.mk-acciones .mk-paso { min-height: 50px; } .mk-acciones .mk-paso span { font-size: 15px; }
.mk-acciones .btn { width: 100%; min-height: 48px; }

.mk-panel { width: min(460px, 100%); max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; max-height: 100dvh; margin: 0 0 0 auto; background: #f6f8fb; overscroll-behavior: contain; }
.mk-panel-cab { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--linea); padding: 14px 16px; z-index: 3; }
.mk-panel-cab h2 { margin: 0; font-size: 19px; } .mk-panel-cab .mk-cerrar { top: 6px; }
#mkPedCuerpo { padding: 14px 14px 0; }
#mkPedCuerpo > :last-child:not(form) { margin-bottom: 14px; }
.mk-info { font-size: 13.5px; background: var(--azul-claro); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.mk-bolsa { background: #fff; border: 1px solid var(--linea); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.mk-bolsa h3 { font-size: 15.5px; margin-bottom: 6px; }
.mk-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef2f7; }
.mk-item img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; border: 1px solid #eef2f7; }
.mk-item .ti { font-size: 13.5px; line-height: 1.3; display: block; overflow-wrap: anywhere; } .mk-item .pr { font-weight: 800; color: var(--carbon); font-size: 14px; }
.mk-cant { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.mk-cant .mas { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #c9d4e3; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--carbon); }
.mk-cant .mas:disabled { color: #b6c2d2; border-color: var(--linea); cursor: default; }
.mk-cant span { min-width: 36px; text-align: center; font-weight: 700; }
.mk-borrar { margin-left: auto; min-height: 44px; padding: 0 12px; border: 0; background: none; color: #b42318; font-weight: 700; font-size: 13.5px; cursor: pointer; border-radius: 10px; }
.mk-borrar:active { background: #fdecea; }
.mk-entrega { border: 0; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid #eef2f7; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-entrega legend { font-size: 13px; font-weight: 700; padding: 0; float: left; width: 100%; grid-column: 1 / -1; margin-bottom: 8px; }
.mk-entrega legend + * { clear: both; }
.mk-datos .mk-entrega label, .mk-entrega label { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 0 12px; border: 1.5px solid #c9d4e3; border-radius: 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.mk-entrega label:has(input:checked) { border-color: #007aff; background: var(--azul-claro); }
.mk-entrega input { width: 18px; height: 18px; flex: 0 0 auto; }
.mk-entrega .nota { grid-column: 1 / -1; font-size: 12.5px; color: var(--suave); margin: 0; }
.mk-retiro { font-size: 12.5px; color: var(--suave); margin: 10px 0 0; }
/* Datos del comercio: entrega, retiro y beneficios */
.mk-comercio { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.mk-comercio p, .mk-det .mk-comercio p { margin: 6px 0 0; }
.mk-mapa { display: inline-block; font-weight: 700; color: #0062cc; padding: 4px 0; white-space: nowrap; }
.mk-benef { margin-top: 10px; padding: 10px 12px; border: 1px solid #f3dca4; background: #fff8e8; border-radius: 12px; font-size: 13px; line-height: 1.45; color: #4a3a0a; text-align: left; overflow-wrap: anywhere; }
.mk-benef p, .mk-det .mk-benef p { margin: 0 0 4px; }
.mk-benef small { display: block; font-size: 11.5px; color: #75621f; }
#mkTInfo { margin: 10px 0 14px; max-width: 640px; }
.mk-hero #mkTInfo p { color: inherit; font-size: 13px; line-height: 1.45; margin: 6px 0 0; max-width: none; }
.mk-hero #mkTInfo .mk-benef { color: #4a3a0a; }
#mkTInfo .mk-comercio { background: #fff; color: #16263d; border-radius: 14px; padding: 6px 14px 12px; text-align: left; }
.mk-llegar { margin: 0 0 10px; }
.mk-ruc { font-size: 13px; line-height: 1.4; margin: 8px 0 0; color: var(--suave); overflow-wrap: anywhere; }
.mk-ruc.bien { color: #0b6b41; font-weight: 700; }
.mk-ruc.mal { color: #9a5b00; font-weight: 700; }
.mk-ruc .mk-borrar { display: block; padding-left: 0; color: #0062cc; }
.mk-datos label.mk-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 14.5px; cursor: pointer; }
.mk-datos .mk-check input { width: 22px; height: 22px; min-height: 0; flex: 0 0 auto; }
.mk-ubicada { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #0b6b41; }
.mk-subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 14.5px; padding-top: 12px; }
.mk-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; padding-bottom: 10px; }
.mk-datos label { display: block; font-size: 13px; font-weight: 700; margin: 8px 0 4px; }
.mk-datos label small { font-weight: 500; color: var(--suave); }
.mk-datos input, .mk-datos textarea { width: 100%; font-size: 16px; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid #c9d4e3; color: var(--texto); scroll-margin: 90px 0 150px; }
.mk-datos .mk-trampa { position: absolute; left: -999px; }
.mk-datos .nota { font-size: 12.5px; color: var(--suave); margin: 10px 0 0; }
.mk-pie-pedido { position: sticky; bottom: 0; margin: 0 -14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--linea); box-shadow: 0 -6px 18px rgba(11, 45, 91, .08); z-index: 2; }
.mk-pie-pedido .btn { width: 100%; min-height: 52px; }
.mk-error { color: #b42318; font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.mk-listo { background: #e7f8ef; border: 1px solid #a8e3c3; border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.mk-listo h3 { margin-bottom: 6px; color: #0b6b41; }
.mk-listo p { margin-bottom: 10px; font-size: 14.5px; }
.mk-listo .btn { width: 100%; text-align: center; line-height: 1.3; padding-left: 16px; padding-right: 16px; }

.mk-aviso { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 120; background: var(--carbon); color: #fff; border-radius: 16px; padding: 6px 8px 6px 18px; min-height: 52px; display: flex; gap: 10px; align-items: center; justify-content: space-between; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: 14px; font-weight: 600; width: max-content; max-width: calc(100% - 20px); }
.mk-aviso button { min-height: 40px; flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--verde); color: #062b1c; font-weight: 800; padding: 0 16px; cursor: pointer; }
.con-carro .mk-aviso { bottom: calc(136px + env(safe-area-inset-bottom)); }
dialog .mk-aviso, .con-carro dialog .mk-aviso { bottom: calc(150px + env(safe-area-inset-bottom)); }

.mk-carro { position: fixed; left: 10px; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 95; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; border: 0; border-radius: 16px; background: #007aff; color: #fff; font-size: 14.5px; font-weight: 700; box-shadow: 0 10px 28px rgba(0, 80, 180, .4); cursor: pointer; }
.mk-carro b { white-space: nowrap; }

@media (min-width: 700px) {
    .mk-grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .mk-ficha[open] { grid-template-columns: 1fr 1fr; }
    .mk-foto { display: flex; align-items: center; } .mk-foto img { max-height: 520px; }
    .mk-det { overflow-y: auto; max-height: min(640px, calc(100vh - 20px)); max-height: min(640px, calc(100dvh - 20px)); }
    .mk-det h2 { padding-right: 44px; }
    .mk-como ol { grid-template-columns: repeat(3, 1fr); }
    .mk-vender-in { grid-template-columns: 1.4fr 1fr; align-items: center; }
}
@media (min-width: 900px) {
    body.mk { padding-bottom: 0; }
    .mk-barra, .mk-carro { display: none; }
    .mk-cab-in { grid-template-columns: auto 1fr auto; grid-template-areas: "logo busca nav"; gap: 22px; }
    .mk-ico { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: none; border: 0; color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; border-radius: 999px; }
    .mk-ico:hover, .mk-ico[aria-current="page"] { background: rgba(255, 255, 255, .14); }
    .mk-aviso, .con-carro .mk-aviso { bottom: 22px; }
}
@media (min-width: 1040px) { .mk-grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .mk-card, .mk-hueso { transition: none; animation: none; } }

/* Celular: menos alto antes de los productos, filas que se deslizan sin barra, ficha a pantalla completa */
html:has(dialog[open]) { overflow: hidden; }
.mk button, .mk a { -webkit-tap-highlight-color: rgba(0, 122, 255, .15); touch-action: manipulation; }
.mk-quitar { display: inline-flex; align-items: center; }
body.mk.con-carro { padding-bottom: calc(134px + env(safe-area-inset-bottom)); }
.mk-pie a { display: inline-block; padding: 12px 4px; }
@media (max-width: 899px) {
    .mk-cab-in { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo busca"; gap: 10px; padding-left: 12px; padding-right: 12px; }
    .mk-logo { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 46px; } .mk-logo img { height: 36px; width: auto; }
    .mk-nav { display: none; }
    .mk-hero { padding: 16px 0 18px; } .mk-hero p { font-size: 14.5px; margin-bottom: 12px; }
    .mk-claves, .mk-cats, .mk-tiendas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
    .mk-claves::-webkit-scrollbar, .mk-cats::-webkit-scrollbar, .mk-tiendas::-webkit-scrollbar { display: none; }
    .mk-claves li { white-space: nowrap; }
    .mk-cats { padding-top: 12px; }
    .mk-cats button { width: 88px; min-height: 84px; font-size: 12px; scroll-snap-align: start; }
    .mk-tiendas li { flex: 0 0 auto; max-width: 78%; scroll-snap-align: start; }
    .mk-tiendas button { padding: 8px 14px 8px 8px; gap: 10px; border-radius: 999px; }
    .mk-tiendas b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mk-tiendas .mk-inicial { width: 40px; height: 40px; border-radius: 50%; font-size: 17px; } .mk-tiendas small + small { display: none; }
    .mk-sec { margin-top: 12px; } .mk-sec h2 { font-size: 18px; }
    .mk-linea { flex-wrap: nowrap; align-items: center; } .mk-linea > div { min-width: 0; }
    .mk-orden { flex: 0 0 auto; font-size: 0; gap: 0; }
    .mk-hero h1 { font-size: 23px; } .mk-hero p { line-height: 1.45; }
    .mk-orden select { font-size: 16px; min-height: 46px; }
    .mk-ficha { width: 100%; max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; max-height: 100dvh; margin: 0; border-radius: 0; overscroll-behavior: contain; }
    .mk-ficha[open] { display: flex; flex-direction: column; }
    .mk-foto { flex: 0 0 auto; } .mk-foto img { max-height: 42vh; min-height: 180px; }
    .mk-det { flex: 1 0 auto; }
    .mk-ficha .mk-cerrar { position: fixed; top: 10px; right: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
}
@media (max-width: 899px) and (min-width: 700px) { .mk-ficha[open] { display: flex; } .mk-det { max-height: none; overflow: visible; } .mk-det h2 { padding-right: 0; } }
@media (max-width: 360px) { .mk-grilla { gap: 8px; } .mk-card .acc { padding: 4px 6px 10px; } .mk-paso button { width: 40px; } .mk-paso span { font-size: 11px; } }
@media (hover: none) { .mk-card:hover { box-shadow: none; transform: none; } }
