/* COMPRAR — capa aislada del marketplace. */
.market-page .sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0
}

.market-page .hero-photo{width:46%;background-position:center 56%}
.market-page .hero-photo::after{
  background:linear-gradient(90deg,var(--hero) 0%,rgba(231,236,243,.82) 24%,rgba(231,236,243,.12) 78%)
}
.market-page .searchbar{position:relative}
.market-page .searchbar select,
.market-page .sortselect,
.market-page .fselect{cursor:pointer}
.market-page .searchbar input:focus,
.market-page .searchbar select:focus,
.market-page .sortselect:focus,
.market-page .fselect:focus{outline:2px solid rgba(30,158,99,.24);outline-offset:2px;border-radius:6px}

.market-page .market{gap:18px}
.market-page .rhead{min-height:44px}
.market-page .rhead h2 span{color:var(--sub);font-weight:600}
.market-page .rhead .sel{gap:6px;min-height:44px}
.market-page .sortselect{border:0;outline:0;background:transparent;padding:2px 4px;color:var(--ink);font:inherit;font-weight:700;min-width:170px}
.market-page .mobile-filter-trigger{
  display:none;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 12px;
  border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-weight:800
}
.market-page .mobile-filter-trigger svg{width:17px;height:17px}
.market-page .mobile-filter-trigger b{
  display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;
  background:var(--green);color:#fff;font-size:11px
}

.market-page aside.filters{overflow:hidden}
.market-page .fhead{min-height:54px}
.market-page .filter-head-actions{display:flex;align-items:center;gap:8px}
.market-page .filter-reset{
  border:0;background:transparent;padding:4px;color:var(--green);font:inherit;font-size:12.5px;font-weight:800
}
.market-page .filter-close{display:none;border:0;background:var(--bg);color:var(--ink);width:36px;height:36px;border-radius:10px;place-items:center}
.market-page .filter-close svg{width:18px;height:18px}
.market-page .filter-scroll{min-height:0}
.market-page .fg{padding:12px 15px}
.market-page .fg label{display:block;margin:0 0 7px;font-size:12.5px;font-weight:700;color:#2b3a52}
.market-page .fselect{
  width:100%;height:40px;padding:0 34px 0 11px;border:1px solid var(--line);border-radius:10px;
  background:var(--bg);color:var(--ink);font:inherit;font-size:13px;font-weight:650
}
.market-page .filter-apply,.market-page .filter-backdrop{display:none}

.market-page .grid{gap:18px}
.market-page .card{border-color:#dde3ec;box-shadow:0 1px 2px rgba(11,35,69,.04),0 10px 26px -20px rgba(11,35,69,.28)}
.market-page .card:focus-visible{outline:3px solid rgba(30,158,99,.38);outline-offset:3px}
.market-page .card .ph{aspect-ratio:16/10}
.market-page .card .ph img{transition:transform .24s ease}
.market-page .card:hover .ph img{transform:scale(1.025)}
.market-page .card .fav{z-index:2;transition:background .15s,color .15s,transform .15s}
.market-page .card .fav:hover{transform:scale(1.06)}
.market-page .card .fav.saved{background:var(--green);border-color:var(--green)}
.market-page .card .fav.saved svg{color:#fff;fill:#fff}
.market-page .card .cb{display:flex;flex-direction:column;flex:1;padding:14px 15px 16px}
.market-page .card .tt{display:-webkit-box;min-height:36px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.market-page .card .mt{line-height:1.45}
.market-page .card .pr{margin-top:10px}
.market-page .card .vline{margin-top:auto;padding-top:10px}

.market-page .empty{
  min-height:330px;padding:52px 24px;border:1px dashed #ccd5e2;border-radius:16px;background:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center
}
.market-page .empty>svg{width:34px;height:34px;margin-bottom:12px;color:var(--green)}
.market-page .empty h3{margin:0;color:var(--ink);font-size:18px;font-weight:800}
.market-page .empty p{max-width:42ch;margin:7px auto 18px;color:var(--sub);font-weight:500}
.market-page .empty .btn{padding:10px 16px}

@media(min-width:1040px){
  .market-page .center .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1180px){
  .market-page .center .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:1360px){
  .market-page .center .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:1039px){
  .market-page .mobile-filter-trigger{display:inline-flex}
  .market-page aside.filters{
    display:flex;position:fixed;z-index:80;inset:0 auto 0 0;top:0;width:min(88vw,360px);max-height:none;
    flex-direction:column;border:0;border-right:1px solid var(--line);border-radius:0 18px 18px 0;
    transform:translateX(-104%);visibility:hidden;transition:transform .2s ease,visibility .2s ease
  }
  .market-page aside.filters.open{transform:translateX(0);visibility:visible}
  .market-page .filters .fhead{flex:none;padding:13px 16px;background:#fff}
  .market-page .filter-close{display:grid}
  .market-page .filter-scroll{overflow:auto;overscroll-behavior:contain}
  .market-page .filter-apply{display:flex;flex:none;margin:12px 16px 16px;width:calc(100% - 32px)}
  .market-page .filter-backdrop{
    position:fixed;z-index:70;inset:0;border:0;background:rgba(8,23,43,.44);opacity:0;visibility:hidden;
    transition:opacity .2s ease,visibility .2s ease
  }
  .market-page.filters-open{overflow:hidden}
  .market-page.filters-open .filter-backdrop{display:block;opacity:1;visibility:visible}
}

@media(max-width:639px){
  .market-page>.page,
  .market-page .hdr .page{padding-left:16px;padding-right:16px}
  .market-page .hdr .page{height:58px}
  .market-page .logo{gap:7px;font-size:17px}
  .market-page .logo .sh{width:25px;height:25px}
  .market-page .hdr-r .btn{height:40px;padding:8px 12px;font-size:12.5px;border-radius:10px}
  .market-page .hdr-r .btn svg{width:15px;height:15px}

  .market-page .hero{margin:12px 0 14px;min-height:0;border-radius:16px}
  .market-page .hero-photo{width:100%;background-position:center}
  .market-page .hero-photo::after{
    background:linear-gradient(90deg,rgba(231,236,243,.98) 0%,rgba(231,236,243,.88) 58%,rgba(231,236,243,.46) 100%)
  }
  .market-page .hero-in{padding:18px 16px 16px}
  .market-page .hero h1{max-width:12.8ch;font-size:26px;line-height:1.06}
  .market-page .hero .sub{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin:8px 0 12px;font-size:13.2px;line-height:1.45}
  .market-page .tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0 0 12px}
  .market-page .tab{width:100%;padding:8px 6px;border-radius:10px;font-size:12.2px}
  .market-page .tab:nth-child(-n+3){grid-column:span 2}
  .market-page .tab:nth-child(n+4){grid-column:span 3}

  .market-page .searchbar{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:8px}
  .market-page .searchbar .fld{height:42px;padding:0 11px}
  .market-page .searchbar .fld:first-child{grid-column:1/-1}
  .market-page .searchbar .loc,.market-page .searchbar .mk{min-width:0;width:100%;padding-inline:8px}
  .market-page .searchbar .loc{gap:6px}
  .market-page .searchbar input,.market-page .searchbar select{font-size:12.7px;text-overflow:ellipsis}
  .market-page .searchbar .go{grid-column:1/-1;height:42px}

  .market-page .market{gap:0;padding-bottom:20px}
  .market-page .rhead{gap:9px;margin:0 0 12px}
  .market-page .rhead h2{font-size:17px}
  .market-page .rhead .right{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;width:100%}
  .market-page .mobile-filter-trigger{min-width:104px;padding:8px 11px}
  .market-page .rhead .sel{width:100%;min-width:0;padding:7px 9px}
  .market-page .rhead .sel>span{display:none}
  .market-page .sortselect{width:100%;min-width:0;font-size:12.7px}

  .market-page .grid{gap:14px}
  .market-page .card{border-radius:15px}
  .market-page .card .ph{aspect-ratio:16/9}
  .market-page .card .fav{top:11px;right:11px;width:36px;height:36px}
  .market-page .card .fav svg{width:18px;height:18px}
  .market-page .stag{bottom:11px;left:11px}
  .market-page .ftag{top:11px;left:11px}
  .market-page .card .cb{padding:13px 14px 15px}
  .market-page .card .tt{min-height:0;font-size:16px}
  .market-page .card .mt{font-size:12.5px}
  .market-page .card .pr{font-size:20px;margin-top:8px}
  .market-page .card .vline{margin-top:0;padding-top:8px}

  .market-page .empty{min-height:280px;padding:36px 20px}
  .market-page .stats{align-items:stretch;justify-content:flex-start}
  .market-page .stat{min-width:135px}
  .market-page .banner{align-items:flex-start;flex-wrap:wrap;padding:18px}
  .market-page .banner .btn{width:100%}
}

@media(max-width:365px){
  .market-page .hdr-r .btn svg{display:none}
  .market-page .hdr-r .btn{padding-inline:10px}
  .market-page .logo{font-size:16px}
}

@media(prefers-reduced-motion:reduce){
  .market-page .card,
  .market-page .card .ph img,
  .market-page aside.filters,
  .market-page .filter-backdrop{transition:none}
}
