/* Public layer: load after marketplace-2026.css. Native SF on Apple; no font assets. */
body:is(.mh-marketplace-home, .mh-services) {
  --public-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable', 'Segoe UI', Arial, sans-serif;
  --shop-bg: #f5f5f7;
  --shop-surface: #fff;
  --shop-ink: #191c22;
  --shop-muted: #59616d;
  --shop-line: #dde1e7;
  --shop-blue: #0867cb;
  --shop-cyan: #087e98;
  --public-soft: #edf1f5;
  --public-glass: rgba(255,255,255,.86);
  --public-selected: #e4effb;
  --shop-radius: 20px;
  background: var(--shop-bg);
  color: var(--shop-ink);
  font-family: var(--public-font) !important;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}
body:is(.mh-marketplace-home, .mh-services) :is(button, input, select, textarea, .btn, .category-chip) {
  font-family: var(--public-font) !important;
}
body:is(.mh-marketplace-home, .mh-services) :is(h1,h2,h3,h4,p,a,span,label,output,strong,b,small) { font-family:var(--public-font) !important; }
body.mh-marketplace-home .store-header-main .store-section-links { justify-content:center; padding:0; flex-wrap:nowrap; }
body.mh-marketplace-home #productos .store-search { margin:0 0 12px; }
body.mh-marketplace-home #productos .store-navigation { margin-bottom:16px; border:0; }
body.mh-marketplace-home #productos .store-navigation .shell { width:100%; }
body.mh-services .top { top:10px; width:min(1240px,calc(100% - 36px)); margin:10px auto 0; border:1px solid var(--shop-line);border-radius:22px;background:var(--public-glass);backdrop-filter:blur(24px); }
body.mh-services .top .shell { width:100%;padding-inline:18px; }
body.mh-services .visual { height:auto;aspect-ratio:3/2;max-height:480px;background:var(--shop-bg);border:0;box-shadow:none; }
body.mh-services .visual img { filter:none;object-fit:contain; }
body.mh-marketplace-home .product-card { transition:transform 240ms cubic-bezier(.23,1,.32,1),box-shadow 240ms ease,border-color 160ms ease !important; }
body.mh-marketplace-home .product-card img { transition:transform 240ms cubic-bezier(.23,1,.32,1); }
@media (hover:hover) and (pointer:fine) {
 body.mh-marketplace-home .product-card:hover { transform:translateY(-4px);box-shadow:0 16px 36px rgba(12,25,42,.1); }
 body.mh-marketplace-home .product-card:hover img { transform:scale(1.035); }
}
[data-theme="dark"] body:is(.mh-marketplace-home, .mh-services) {
  --shop-bg: #101216;
  --shop-surface: #191d23;
  --shop-ink: #f1f3f6;
  --shop-muted: #b2bbc7;
  --shop-line: #333b47;
  --shop-blue: #0867cb;
  --shop-cyan: #69cde1;
  --public-soft: #222831;
  --public-glass: rgba(25,29,35,.88);
  --public-selected: #203951;
  color-scheme: dark;
}
body:is(.mh-marketplace-home, .mh-services) .shell { width: min(1240px, calc(100% - 36px)); }
body:is(.mh-marketplace-home, .mh-services) .store-header {
  position: sticky;
  top: 10px;
  width: min(1240px, calc(100% - 36px));
  margin: 10px auto 0;
  border: 1px solid var(--shop-line);
  border-radius: 22px;
  background: var(--shop-surface);
  box-shadow: 0 8px 30px rgba(12,25,42,.07);
  isolation: isolate;
}
@supports (backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px)) {
  body:is(.mh-marketplace-home, .mh-services) .store-header {
    background: var(--public-glass);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
  }
}
body:is(.mh-marketplace-home, .mh-services) .store-header .shell { width: 100%; box-sizing: border-box; padding-inline: 18px; }
body:is(.mh-marketplace-home, .mh-services) .store-header-main {
  grid-template-columns: 112px minmax(0,1fr) auto;
  gap: 24px;
  min-height: 80px;
}
body:is(.mh-marketplace-home, .mh-services) .store-search {
  height: 46px; border-radius: 14px; background: var(--public-soft) !important; border-color: transparent;
}
body:is(.mh-marketplace-home, .mh-services) .store-search:focus-within { border-color: var(--shop-blue); box-shadow: none; }
body:is(.mh-marketplace-home, .mh-services) .store-search input { font-size: 16px; }
body:is(.mh-marketplace-home, .mh-services) .store-search input::placeholder { color: var(--shop-muted); }
body:is(.mh-marketplace-home, .mh-services) .store-actions { min-width: 0; flex-wrap: wrap; }
body:is(.mh-marketplace-home, .mh-services) .store-actions :is(.btn, .icon-btn) {
  min-height: 44px; border-radius: 13px; font-weight: 600; background: var(--public-soft); color: var(--shop-ink); border-color: var(--shop-line);
}
body:is(.mh-marketplace-home, .mh-services) .store-actions .primary { background: var(--shop-blue); color: #fff; border-color: var(--shop-blue); }
body:is(.mh-marketplace-home, .mh-services) .store-navigation { background: transparent; border-color: var(--shop-line); border-radius: 0 0 22px 22px; }
body:is(.mh-marketplace-home, .mh-services) .store-navigation::after { content: none; }
body:is(.mh-marketplace-home, .mh-services) .store-navigation-inner {
  min-width: 0; min-height: 52px; gap: 4px; overflow-x: auto; scrollbar-width: thin;
  scrollbar-color: var(--shop-muted) transparent; padding-block: 4px; scroll-padding-inline: 18px;
}
body:is(.mh-marketplace-home, .mh-services) .store-navigation-inner::-webkit-scrollbar { display: block; height: 5px; }
body:is(.mh-marketplace-home, .mh-services) .store-navigation-inner::-webkit-scrollbar-thumb { background: var(--shop-muted); border-radius: 4px; }
body:is(.mh-marketplace-home, .mh-services) .category-chip {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  min-height: 44px; border-radius: 11px; color: var(--shop-muted); font-weight: 600;
}
body:is(.mh-marketplace-home, .mh-services) .category-chip:is(.active, [aria-current="page"]) {
  background: var(--public-selected); border-color: var(--shop-line); color: var(--shop-ink);
}
body:is(.mh-marketplace-home, .mh-services) .store-section-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  padding: 4px 18px 10px; color: var(--shop-muted); font-size: 13px;
}
body:is(.mh-marketplace-home, .mh-services) .store-section-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px;
  border-radius: 9px; color: inherit; text-decoration: none; font-weight: 600;
}
body:is(.mh-marketplace-home, .mh-services) .store-section-links a[aria-current="page"] { color: var(--shop-ink); background: var(--public-soft); }
body.mh-marketplace-home main > #productos { min-height: 0; padding: 28px 0 60px !important; }
body.mh-marketplace-home #productos .section-head { gap: 20px; margin-bottom: 20px !important; }
body.mh-marketplace-home #productos .section-head h1 { font-size: clamp(1.6rem, 2.8vw, 2.2rem) !important; line-height: 1.15 !important; letter-spacing: -.03em !important; font-weight: 700; }
body.mh-marketplace-home #productos .section-head p { max-width: 42ch; }
body.mh-marketplace-home .mh-shop-tools { position: static !important; box-shadow: none; border-radius: 16px !important; }
body.mh-marketplace-home .mh-filter-summary { flex-wrap: wrap; white-space: normal; }
body.mh-marketplace-home .products { gap: 20px !important; }
body.mh-marketplace-home :is(.product-card, .product-card.featured) { border-radius: 20px !important; box-shadow: none; }
body.mh-marketplace-home :is(.product-img, .mh-product-photo) { height: 240px !important; min-height: 240px !important; padding: 20px !important; background: var(--public-soft) !important; }
body.mh-marketplace-home .product-card .product-body { padding: 18px !important; gap: 0; }
body.mh-marketplace-home .product-body h3 { font-size: 18px !important; font-weight: 650; overflow-wrap: anywhere; }
body.mh-marketplace-home .product-sub { display: block; }
body.mh-marketplace-home .mh-product-meta { gap: 6px; overflow-wrap: anywhere; }
body.mh-marketplace-home .price-row { flex-wrap: wrap; gap: 8px; }
body.mh-marketplace-home .price b { font-size: 23px !important; font-weight: 750; }
body.mh-marketplace-home .product-card .product-body > .btn { min-height: 44px; background: var(--shop-blue); color: #fff; border-color: var(--shop-blue); font-weight: 650; }
body:is(.mh-marketplace-home, .mh-services) :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--shop-cyan) !important; outline-offset: 3px; }
body:is(.mh-marketplace-home, .mh-services) :is(button, .btn, .category-chip, .store-section-links a) { transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
body:is(.mh-marketplace-home, .mh-services) :is(button, .btn, .category-chip, .store-section-links a):active { background-color: var(--public-selected); color: var(--shop-ink); border-color: var(--shop-cyan); }
body:is(.mh-marketplace-home, .mh-services) :is(button:disabled, input:disabled, select:disabled) { opacity: .55; cursor: not-allowed; }
body.mh-marketplace-home .product-card:hover,
body:is(.mh-marketplace-home, .mh-services) .store-actions :is(.btn, .icon-btn):hover { transform: none; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  body:is(.mh-marketplace-home, .mh-services) :is(.category-chip, .store-section-links a):hover { background: var(--public-soft); color: var(--shop-ink); }
  body.mh-marketplace-home .product-card:hover { border-color: var(--shop-cyan) !important; }
}
@media (max-width: 980px) {
  body:is(.mh-marketplace-home, .mh-services) .store-header-main { gap: 14px; }
  body.mh-marketplace-home .products { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}
@media (max-width: 760px) {
  body.mh-marketplace-home .store-header-main .store-section-links { grid-column:1/-1;grid-row:2;justify-content:flex-start; }
  body.mh-marketplace-home .store-header-main .store-actions { grid-column:2;grid-row:1; }
  body:is(.mh-marketplace-home, .mh-services) .store-header-main { grid-template-columns: 112px minmax(0,1fr); padding-block: 8px; gap: 8px 12px; }
  body:is(.mh-marketplace-home, .mh-services) .store-search { grid-column: 1/-1; grid-row: 2; height: 44px; }
  body:is(.mh-marketplace-home, .mh-services) .store-actions { gap: 6px; }
  body:is(.mh-marketplace-home, .mh-services) .store-actions .btn { padding-inline: 9px; font-size: 12px; }
  body.mh-marketplace-home .products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 14px !important; }
  body.mh-marketplace-home #productos .section-head { display: block !important; }
  body.mh-marketplace-home :is(.product-img, .mh-product-photo) { height: 190px !important; min-height: 190px !important; padding: 14px !important; }
  body.mh-marketplace-home .product-card .product-body { padding: 14px !important; }
  body.mh-marketplace-home .product-body h3 { font-size: 16px !important; }
  body.mh-marketplace-home .price b { font-size: 20px !important; }
}
@media (max-width: 480px) {
  body:is(.mh-marketplace-home, .mh-services) :is(.shell, .store-header) { width: calc(100% - 24px); }
  body:is(.mh-marketplace-home, .mh-services) .store-header .shell { width: 100%; padding-inline: 10px; }
  body:is(.mh-marketplace-home, .mh-services) .store-header-main { column-gap: 8px; }
  body:is(.mh-marketplace-home, .mh-services) .store-section-links { padding-inline: 10px; }
  body.mh-marketplace-home .products { grid-template-columns: minmax(0,1fr) !important; }
  body.mh-marketplace-home :is(.product-img, .mh-product-photo) { height: 230px !important; min-height: 230px !important; }
  body.mh-marketplace-home .mh-more-filters-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body:is(.mh-marketplace-home, .mh-services) *,
  body:is(.mh-marketplace-home, .mh-services) *::before,
  body:is(.mh-marketplace-home, .mh-services) *::after { transition: none !important; animation:none !important; scroll-behavior: auto !important; }
  body.mh-marketplace-home .product-card:hover,body.mh-marketplace-home .product-card:hover img { transform:none; }
}
/* Optical depth on deliberate pointer interaction; no idle motion. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 body.mh-marketplace-home .product-card:hover { transform:translateY(-4px);box-shadow:0 16px 36px rgba(12,25,42,.1); }
 body.mh-marketplace-home .product-card:hover img { transform:scale(1.035); }
}
body.mh-marketplace-home .mh-purchase-assurances { display:flex;flex-wrap:wrap;gap:10px 24px;margin:0 0 20px;color:var(--shop-muted);font-size:13px; }
body.mh-marketplace-home .mh-purchase-assurances span::before { content:'✓';color:var(--shop-cyan);margin-right:7px; }
body.mh-services .intro h1 { font-size:clamp(38px,4.8vw,64px);font-weight:600;line-height:1.08;letter-spacing:-.035em; }
body.mh-services :is(h2,h3,.links a,.links button,.links .page-label,.intro-context) { font-weight:600; }
body.mh-services .visual { width:100%;height:clamp(260px,42vw,520px);aspect-ratio:auto;max-height:none; }
body.mh-services .visual img { width:100%;height:100%;object-fit:cover;object-position:center 55%; }
@media (min-width:981px) {
 body.mh-marketplace-home .mh-shop-tools { grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto auto !important; }
 body.mh-marketplace-home .mh-filter-summary { grid-column:auto;gap:16px;flex-wrap:nowrap; }
 body.mh-marketplace-home :is(.product-img,.mh-product-photo) { height:210px !important;min-height:210px !important; }
}
@media (max-width:760px) {
 body.mh-marketplace-home .mh-shop-tools { grid-template-columns:minmax(120px,1fr) auto !important; }
 body.mh-marketplace-home .mh-shop-tools > label:first-child { display:none; }
 body.mh-marketplace-home .mh-filter-summary { grid-column:1/-1; }
 body.mh-marketplace-home .store-header .shell { padding-inline:6px; }
 body.mh-marketplace-home .store-header-main { column-gap:4px; }
 body.mh-marketplace-home .store-actions { flex-wrap:nowrap;gap:4px; }
 body.mh-marketplace-home .store-actions :is(.store-account,#headerCart) { position:relative;width:44px;min-width:44px;height:44px;padding:0;font-size:0;display:grid;place-items:center; }
 body.mh-marketplace-home .store-account::before,body.mh-marketplace-home #headerCart::before { content:'';width:19px;height:19px;background:currentColor;mask:center/contain no-repeat; }
 body.mh-marketplace-home .store-account::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M20 21v-2a7 7 0 0 0-14 0v2M17 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z'/%3E%3C/svg%3E"); }
 body.mh-marketplace-home #headerCart::before { mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='m5 7 1 14h12l1-14ZM9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E"); }
 body.mh-marketplace-home #headerCart::after { content:attr(data-count);position:absolute;top:-5px;right:-3px;min-width:18px;height:18px;padding:0 3px;border-radius:9px;background:var(--shop-ink);color:var(--shop-surface);font:600 10px/18px var(--public-font); }
}
