:root {
  --brand: #20a464;
  --brand-dark: #147846;
  --brand-soft: #e9f8f0;
  --accent: #f4c542;
  --text: #222;
  --muted: #68727d;
  --surface: #fff;
  --page: #f2f3f5;
  --border: #e4e7eb;
  --shadow: 0 8px 28px rgba(23, 35, 43, .08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.market-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.market-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.market-header__top,
.market-header__bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.market-header__top {
  min-height: 74px;
  gap: 24px;
}

.market-header__bottom {
  min-height: 44px;
  gap: 28px;
  font-size: 13px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand__logo {
  height: 55px;
  width: auto;
  display: block;
  transition: transform .25s;
}
@media (max-width:768px){

  .brand__logo{
      height:42px;
  }

}

.brand__logo:hover {
  transform: scale(1.03);
}

.market-search {
  position: relative;
  flex: 1;
  max-width: 720px;
}

.market-search > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #7c8792;
}

.market-search input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 48px 0 44px;
  background: #fff;
  outline: none;
  box-shadow: 0 3px 12px rgba(0,0,0,.04);
}

.market-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(32,164,100,.12);
}

.market-search button {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7c8792;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.market-search button.visible {
  opacity: 1;
  pointer-events: auto;
}

.market-actions {
  margin-left: auto;
}

/* BOTÓN CREAR */

.market-actions__primary{

    width:40px;
    height:40px;
    min-width:40px;
    min-height:40px;

    padding:0;

    border-radius:12px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:var(--brand);

    box-shadow:0 4px 10px rgba(159,29,50,.18);
}

.market-actions__primary i{
    margin:0;
    font-size:10px;
}

.market-actions__primary:hover{
    transform:translateY(-1px);
}

.categories-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}

.quick-links {
  display: flex;
  gap: 24px;
}

.quick-links a {
  color: #4f5963;
}

.market-count {
  margin-left: auto;
  color: var(--muted);
}

.hero-ad {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  background: linear-gradient(120deg, #dff6e9, #fff8d6);
}

.hero-ad__track {
  position: relative;
  min-height: 330px;
}

.hero-ad__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
  padding: 48px max(24px, calc((100vw - 1200px) / 2));
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
  gap: 40px;
}

.hero-ad__slide--active {
  opacity: 1;
  pointer-events: auto;
}

.hero-ad__slide h1,
.hero-ad__slide h2 {
  max-width: 680px;
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -2px;
}

.hero-ad__slide p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #48535d;
  font-size: 18px;
  line-height: 1.55;
}

.ad-label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #49525b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.hero-ad__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.hero-ad__visual {
  display: grid;
  place-items: center;
  width: min(280px, 100%);
  aspect-ratio: 1;
  justify-self: end;
  border-radius: 50%;
  background: rgba(255,255,255,.62);
  color: var(--brand);
  font-size: 110px;
}

.hero-ad__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 72px;
  border: 0;
  background: rgba(255,255,255,.92);
  color: #37404a;
  cursor: pointer;
}

.hero-ad__arrow--left {
  left: 0;
  border-radius: 0 14px 14px 0;
}

.hero-ad__arrow--right {
  right: 0;
  border-radius: 14px 0 0 14px;
}

.hero-ad__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-ad__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
}

.hero-ad__dots button.active {
  width: 26px;
  border-radius: 999px;
  background: var(--brand);
}

.category-panel,
.market-section,
.ad-strip,
.ad-pair,
.final-ad,
.seller-cta {
  margin-top: 30px;
}

.category-panel {
  position: relative;
  margin-top: -34px;
  z-index: 5;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 25px;
  letter-spacing: -.6px;
}

.section-link,
.section-result {
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.category-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 10px;
  background: #fff;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #3d4650;
  cursor: pointer;
  transition: .2s ease;
}

.category-card:hover,
.category-card.active {
  transform: translateY(-3px);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 8px 20px rgba(32,164,100,.12);
}

.category-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 20px;
}

.category-card span:last-child {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 220px);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
}

.horizontal-products .product-card {
  scroll-snap-align: start;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(23,35,43,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(23,35,43,.12);
}

.product-card__image {
  position: relative;
  aspect-ratio: 1 / .83;
  overflow: hidden;
  background: #f7f7f7;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.035);
}

.product-card__discount,
.product-card__soldout {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card__soldout {
  left: auto;
  right: 10px;
  background: #3f464d;
}

.product-card__body {
  padding: 15px;
}

.product-card__old-price {
  display: block;
  min-height: 16px;
  color: #9299a0;
  font-size: 12px;
  text-decoration: line-through;
}

.product-card__price {
  margin: 2px 0 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.5px;
}

.product-card h3 {
  min-height: 40px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #303840;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__business {
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__business i {
  color: var(--brand);
  margin-right: 4px;
}

.product-card__category {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f5f7;
  color: #69737d;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__action {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.ad-strip {
  padding: 0;
}

.ad-strip__content,
.final-ad {
  min-height: 170px;
  padding: 30px 36px;
  border-radius: var(--radius);
  background: linear-gradient(115deg, #182a22, #245b40);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: var(--shadow);
}

.ad-strip h3,
.final-ad h2 {
  margin: 10px 0 7px;
  font-size: 28px;
}

.ad-strip p,
.final-ad p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

.ad-strip__button,
.final-ad > a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  color: #17251e;
  background: #fff;
  font-weight: 900;
}

.ad-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.mini-ad {
  min-height: 220px;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff2c7, #f7d978);
  display: flex;
  flex-direction: column;
  justify-content: end;
  box-shadow: var(--shadow);
}

.mini-ad--alt {
  background: linear-gradient(135deg, #d8f5e6, #8bd6ae);
}

.mini-ad h3 {
  max-width: 420px;
  margin: 12px 0 8px;
  font-size: 27px;
  line-height: 1.05;
}

.mini-ad p {
  margin: 0 0 20px;
  color: #535b61;
}

.mini-ad > span:last-child {
  font-weight: 900;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.business-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  transition: .2s ease;
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.business-card__cover {
  height: 115px;
  padding: 20px;
  background: linear-gradient(135deg, #edf9f2, #fff);
  display: grid;
  place-items: center;
}

.business-card__cover img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}

.business-card__body {
  padding: 18px;
}

.business-card h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.business-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.business-card span {
  display: block;
  margin-bottom: 16px;
  color: #7a848d;
  font-size: 11px;
}

.business-card strong {
  color: var(--brand);
  font-size: 12px;
}

.seller-cta {
  margin-bottom: 50px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow);
}

.seller-cta__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 30px;
}

.seller-cta h2 {
  margin: 4px 0 6px;
}

.seller-cta p {
  margin: 0;
  color: var(--muted);
}

.seller-cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 240px;
  padding: 40px;
  border: 1px dashed #cfd5da;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  display: grid;
  place-items: center;
  align-content: center;
}

.empty-state i {
  color: var(--brand);
  font-size: 42px;
}

.empty-state h3 {
  margin: 14px 0 5px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.empty-state--search {
  display: none;
}

.empty-state--search.visible {
  display: grid;
}

.market-footer {
  background: #18201c;
  color: #fff;
}

.market-footer__grid {
  padding: 46px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}

.brand--footer .brand__mark {
  background: var(--brand);
}

.market-footer p {
  max-width: 360px;
  color: rgba(255,255,255,.66);
  line-height: 1.6;
}

.market-footer h4 {
  margin: 0 0 14px;
}

.market-footer a {
  display: block;
  margin: 9px 0;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

.market-footer__bottom {
  padding: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  text-align: center;
  font-size: 12px;
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .business-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .market-header {
    position: static;
  }

  .market-header__top{
    padding:8px 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

  .market-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }

  .market-actions__primary {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .market-actions__primary i {
    font-size: 15px;
  }

  .market-header__bottom {
    overflow-x: auto;
    gap: 20px;
  }

  .quick-links {
    gap: 18px;
    white-space: nowrap;
  }

  .market-count {
    display: none;
  }

  .hero-ad,
  .hero-ad__track {
    min-height: 385px;
  }

  .hero-ad__slide {
    padding: 35px 24px 55px;
    grid-template-columns: 1fr;
  }

  .hero-ad__slide h1,
  .hero-ad__slide h2 {
    font-size: 38px;
  }

  .hero-ad__visual {
    display: none;
  }

  .category-panel {
    margin-top: -22px;
    padding: 18px;
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    overflow-x: auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .product-card__body {
    padding: 11px;
  }

  .product-card__price {
    font-size: 18px;
  }

  .product-card h3 {
    min-height: 37px;
    font-size: 12px;
  }

  .ad-strip__content,
  .final-ad {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px;
  }

  .ad-pair {
    grid-template-columns: 1fr;
  }

  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .seller-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .seller-cta__icon {
    margin: 0 auto;
  }

  .market-footer__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 480px) {
  .market-container,
  .market-header__top,
  .market-header__bottom {
    width: min(100% - 20px, 1200px);
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand__name {
    font-size: 22px;
  }

  .category-grid {
    grid-template-columns: repeat(4, 92px);
  }

  .category-card {
    padding: 13px 7px;
  }

  .category-card__icon {
    width: 42px;
    height: 42px;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .product-card__image {
    aspect-ratio: 1;
  }

  .product-card__action {
    font-size: 10px;
  }

  .business-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   BINKU — IDENTIDAD VISUAL + OPTIMIZACIÓN PARA CELULARES
   Agregar al FINAL de marketplace.css
========================================================= */

/* COLORES OFICIALES BINKU */
:root {
  --brand: #9f1d32;
  --brand-dark: #741322;
  --brand-hover: #b5263e;
  --brand-soft: #f9eaed;

  --accent: #d8b06a;

  --text: #20242b;
  --muted: #69727d;

  --surface: #ffffff;
  --page: #f5f6f8;
  --border: #e4e6ea;

  --footer: #151a1d;

  --shadow:
    0 8px 28px rgba(27, 31, 36, 0.08);

  --shadow-mobile:
    0 5px 18px rgba(27, 31, 36, 0.07);

  --radius: 16px;
}


/* =========================================================
   BASE
========================================================= */

html {
  width: 100%;
  overflow-x: hidden;
  scroll-padding-top: 125px;
}

body {
  width: 100%;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page);
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}


/* =========================================================
   HEADER
========================================================= */

.market-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 3px 14px rgba(20, 24, 29, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 90px;
}

.brand__logo {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
}

.market-actions__primary {
  background: var(--brand);
  box-shadow: 0 6px 16px rgba(159, 29, 50, 0.22);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.market-actions__primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.market-search input {
  border-color: #dfe2e7;
  background: #ffffff;
}

.market-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(159, 29, 50, 0.1);
}

.market-search > i,
.market-search button {
  color: #7f8792;
}

.categories-toggle {
  color: var(--text);
}

.categories-toggle i {
  color: var(--brand);
}

.quick-links a {
  position: relative;
  padding: 13px 0;
  transition: color 0.2s ease;
}

.quick-links a:hover {
  color: var(--brand);
}

.quick-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  border-radius: 20px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.quick-links a:hover::after {
  transform: scaleX(1);
}


/* =========================================================
   HERO
========================================================= */

.hero-ad {
  background:
    radial-gradient(
      circle at 88% 25%,
      rgba(216, 176, 106, 0.24),
      transparent 35%
    ),
    linear-gradient(
      120deg,
      #fff7f8 0%,
      #f8e9ec 48%,
      #f5eddf 100%
    );
}

.hero-ad__slide h1,
.hero-ad__slide h2 {
  color: #241f21;
}

.hero-ad__slide p {
  color: #5f6269;
}

.hero-ad__button {
  background: var(--brand);
  box-shadow: 0 7px 18px rgba(159, 29, 50, 0.2);
}

.hero-ad__button:hover {
  background: var(--brand-hover);
}

.hero-ad__visual {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.67);
}

.hero-ad__dots button.active {
  background: var(--brand);
}


/* =========================================================
   TÍTULOS Y SECCIONES
========================================================= */

.section-kicker,
.section-link,
.section-result {
  color: var(--brand);
}

.section-heading h2 {
  color: var(--text);
}


/* =========================================================
   CATEGORÍAS
========================================================= */

.category-panel {
  border: 1px solid rgba(228, 230, 234, 0.85);
}

.category-card {
  background: #ffffff;
}

.category-card:hover,
.category-card.active {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 8px 20px rgba(159, 29, 50, 0.12);
}

.category-card__icon {
  color: var(--brand);
  background: var(--brand-soft);
}


/* =========================================================
   PRODUCTOS
========================================================= */

.product-card {
  border-color: var(--border);
  box-shadow: 0 4px 15px rgba(25, 29, 34, 0.045);
}

.product-card:hover {
  box-shadow: 0 12px 28px rgba(25, 29, 34, 0.11);
}

.product-card__discount {
  background: var(--brand);
}

.product-card__business i,
.product-card__action {
  color: var(--brand);
}

.product-card__action {
  align-items: center;
}

.product-card__action i {
  flex-shrink: 0;
}


/* =========================================================
   PUBLICIDAD
========================================================= */

.ad-strip__content,
.final-ad {
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(216, 176, 106, 0.2),
      transparent 38%
    ),
    linear-gradient(
      125deg,
      #45101a 0%,
      #751526 52%,
      #9f1d32 100%
    );
}

.mini-ad {
  background:
    linear-gradient(
      135deg,
      #fff3d9,
      #eed092
    );
}

.mini-ad--alt {
  background:
    linear-gradient(
      135deg,
      #fae7ea,
      #e9b5bf
    );
}


/* =========================================================
   NEGOCIOS
========================================================= */

.business-card__cover {
  background:
    linear-gradient(
      135deg,
      #fff6f7,
      #f7e7ea
    );
}

.business-card strong {
  color: var(--brand);
}


/* =========================================================
   CTA FINAL
========================================================= */

.seller-cta__icon {
  color: var(--brand);
  background: var(--brand-soft);
}

.seller-cta > a {
  background: var(--brand);
  box-shadow: 0 7px 18px rgba(159, 29, 50, 0.2);
}

.seller-cta > a:hover {
  background: var(--brand-hover);
}


/* =========================================================
   FOOTER
========================================================= */

.market-footer {
  background: var(--footer);
}

.market-footer a:hover {
  color: #ffffff;
}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 1024px) {

  .market-container,
  .market-header__top,
  .market-header__bottom {
    width: min(100% - 28px, 1200px);
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 768px) {

  html {
    scroll-padding-top: 130px;
  }

  .market-container,
  .market-header__top,
  .market-header__bottom {
    width: calc(100% - 20px);
  }

  /* Header fijo también en celular */
  .market-header {
    position: sticky;
    top: 0;
  }

  .market-header__top {
    min-height: auto;
    padding: 9px 0 10px;
    grid-template-columns: 1fr auto;
    gap: 9px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand__logo {
    width: auto;
    height: 45px;
  }

  .market-actions {
    display: flex;
    justify-content: flex-end;
  }

  .market-actions__primary{
    width:36px;
    height:36px;

    min-width:36px;
    min-height:36px;

    padding:0;

    border-radius:10px;
}

  .market-actions__primary i {
    margin: 0;
    font-size: 17px;
  }

  .market-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .market-search input {
    height: 46px;
    border-radius: 12px;
    padding-right: 45px;
    font-size: 14px;
  }

  .market-header__bottom {
    min-height: 43px;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .market-header__bottom::-webkit-scrollbar {
    display: none;
  }

  .categories-toggle {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
  }

  .quick-links {
    flex: 0 0 auto;
    gap: 21px;
  }

  .quick-links a {
    min-height: 42px;
    padding: 13px 0;
    white-space: nowrap;
  }

  /* Hero más compacto */
  .hero-ad,
  .hero-ad__track {
    min-height: 335px;
  }

  .hero-ad__slide {
    min-height: 335px;
    padding: 38px 27px 55px;
    align-content: center;
  }

  .hero-ad__slide h1,
  .hero-ad__slide h2 {
    max-width: 330px;
    margin: 10px 0 12px;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.02;
    letter-spacing: -1.4px;
  }

  .hero-ad__slide p {
    max-width: 315px;
    margin-bottom: 21px;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-ad__button {
    min-height: 43px;
    padding: 0 20px;
  }

  .hero-ad__arrow {
    width: 36px;
    height: 64px;
  }

  .hero-ad__dots {
    bottom: 14px;
  }

  /* Categorías desplazables */
  .category-panel {
    margin-top: -18px;
    padding: 20px 17px 17px;
    border-radius: 16px;
    box-shadow: var(--shadow-mobile);
  }

  .section-heading {
    align-items: flex-end;
    margin-bottom: 15px;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .category-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 89px;
    gap: 10px;
    width: 100%;
    padding: 2px 1px 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .category-card {
    width: 89px;
    min-width: 89px;
    min-height: 92px;
    padding: 12px 7px;
    scroll-snap-align: start;
  }

  .category-card__icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .category-card span:last-child {
    width: 100%;
    font-size: 11px;
    text-align: center;
  }

  /* Productos */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    border-radius: 13px;
  }

  .product-card__image {
    aspect-ratio: 1 / 0.93;
  }

  .product-card__body {
    padding: 12px 10px 11px;
  }

  .product-card__price {
    margin-bottom: 7px;
    font-size: 18px;
  }

  .product-card h3 {
    min-height: 35px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.4;
  }

  .product-card__business {
    font-size: 11px;
  }

  .product-card__action {
    margin-top: 12px;
    font-size: 10px;
  }

  /* Publicidades */
  .ad-strip__content,
  .final-ad {
    min-height: auto;
    padding: 27px 25px;
    border-radius: 15px;
  }

  .ad-strip h3,
  .final-ad h2 {
    font-size: 25px;
    line-height: 1.15;
  }

  .ad-strip__button,
  .final-ad > a {
    width: 100%;
    min-height: 45px;
  }

  .ad-pair {
    gap: 16px;
  }

  .mini-ad {
    min-height: 210px;
    padding: 27px 26px;
  }

  .mini-ad h3 {
    font-size: 25px;
  }

  /* Negocios */
  .business-grid {
    grid-template-columns: 1fr;
  }

  .business-card__cover {
    height: 120px;
  }

  /* CTA */
  .seller-cta {
    margin-bottom: 40px;
    padding: 27px 22px;
    gap: 17px;
    border-radius: 16px;
    box-shadow: var(--shadow-mobile);
  }

  .seller-cta h2 {
    margin: 4px auto 7px;
    max-width: 290px;
    font-size: 24px;
    line-height: 1.2;
  }

  .seller-cta p {
    max-width: 320px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.5;
  }

  .seller-cta > a {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
  }

  /* Footer */
  .market-footer__grid {
    padding: 39px 0 30px;
    gap: 28px;
  }

  .market-footer p {
    font-size: 14px;
  }
}


/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 390px) {

  .market-container,
  .market-header__top,
  .market-header__bottom {
    width: calc(100% - 16px);
  }

  .brand__logo {
    height: 42px;
  }

  .hero-ad__slide {
    padding-right: 25px;
    padding-left: 25px;
  }

  .hero-ad__slide h1,
  .hero-ad__slide h2 {
    font-size: 31px;
  }

  .category-panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .product-grid {
    gap: 8px;
  }

  .product-card__body {
    padding: 10px 9px;
  }

  .product-card__price {
    font-size: 17px;
  }
}

/* =========================================================
   PRODUCTOS — 3 POR FILA EN CELULAR
   AGREGAR AL FINAL DE marketplace.css
========================================================= */

@media (max-width: 768px) {

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .product-card {
    min-width: 0;
    border-radius: 11px;
  }

  .product-card__image {
    aspect-ratio: 1 / 1;
  }

  .product-card__body {
    padding: 8px 7px 9px;
  }

  .product-card__old-price {
    min-height: 12px;
    font-size: 9px;
  }

  .product-card__price {
    margin: 1px 0 5px;
    font-size: 13px;
    line-height: 1.15;
    letter-spacing: -0.2px;
  }

  .product-card h3 {
    min-height: 30px;
    margin: 0 0 6px;
    font-size: 11px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .product-card__business {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .product-card__business i {
    margin-right: 2px;
    font-size: 8px;
  }

  .product-card__category {
    padding: 4px 6px;
    font-size: 8px;
  }

  .product-card__action {
    margin-top: 8px;
    gap: 4px;
    font-size: 8px;
  }

  .product-card__action i {
    font-size: 8px;
  }

  .product-card__discount,
  .product-card__soldout {
    top: 6px;
    left: 6px;
    padding: 4px 6px;
    font-size: 8px;
  }

  .product-card__soldout {
    right: 6px;
    left: auto;
  }
}


/* CELULARES MUY PEQUEÑOS */

@media (max-width: 390px) {

  .product-grid {
    gap: 6px;
  }

  .product-card__body {
    padding: 7px 6px 8px;
  }

  .product-card__price {
    font-size: 12px;
  }

  .product-card h3 {
    min-height: 28px;
    font-size: 10px;
  }

  .product-card__business {
    font-size: 8px;
  }

  .product-card__category {
    font-size: 7px;
  }

  .product-card__action {
    font-size: 7px;
  }
}

/* =========================================================
   NEGOCIOS - 2 POR FILA EN CELULAR
========================================================= */

@media (max-width:768px){

  .business-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .business-card{
    border-radius:12px;
  }

  .business-card__cover{
    height:80px;
    padding:12px;
  }

  .business-card__cover img{
    width:54px;
    height:54px;
    border-width:3px;
  }

  .business-card__body{
    padding:10px;
  }

  .business-card h3{
    margin:0 0 4px;
    font-size:15px;
    line-height:1.2;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .business-card p{
    margin:0 0 5px;
    font-size:11px;
    line-height:1.3;
  }

  .business-card span{
    margin-bottom:8px;
    font-size:10px;
  }

  .business-card strong{
    font-size:11px;
  }

}