/* Encabezado */
.notice { margin: 0; min-height: 33px; padding: 8px 16px; background: var(--chip); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 17px; text-align: center; text-wrap: balance; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); box-shadow: 0 1px 0 var(--outline); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 8px 16px; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 0.92; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); text-decoration: none; min-width: 0; text-wrap: balance; }
.tools-r { display: flex; align-items: center; gap: 2px; }
.lang { display: inline-flex; }
.lang button { position: relative; min-width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.lang button + button::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.cart-btn { position: relative; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); display: inline-grid; place-items: center; transition-property: scale; transition-duration: 140ms; transition-timing-function: var(--ease-out); }
.cart-btn:active { scale: 0.96; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn .lbl { display: none; }
.cart-count { position: absolute; top: 5px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); font-weight: 700; font-size: 12px; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; transition-property: scale, opacity; transition-duration: 200ms; transition-timing-function: var(--ease-out); }
.cart-count[data-zero="true"] { opacity: 0; }
.cart-count.bump { scale: 1.25; }
@media (max-width: 359px) { .brand { font-size: 20px; letter-spacing: 0.02em; } }
@media (max-width: 339px) { .brand { font-size: 18px; } }
@media (max-width: 319px) { .brand { font-size: 16px; } }
@media (min-width: 760px) {
  .brand { font-size: 30px; }
  .cart-btn { width: auto; padding: 0 12px; display: inline-flex; gap: 8px; }
  .cart-btn .lbl { display: inline; font-weight: 600; font-size: 15px; }
  .cart-count { position: static; }
  .cart-count[data-zero="true"] { display: none; }
}
main { max-width: 1120px; margin: 0 auto; padding: 0 16px 120px; }

/* Portada */
.hero { padding: 18px 0 22px; max-width: 780px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 9vw, 72px); line-height: 1; letter-spacing: 0; text-wrap: balance; }
.hero p.lead { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.promo { margin-top: 18px; padding-left: 14px; border-left: 4px solid var(--flag); max-width: 52ch; font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.affnote { margin-top: 14px; display: grid; justify-items: start; gap: 10px; max-width: 52ch; color: var(--muted); font-size: 14px; }
.affnote .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.aff-more { position: relative; }
.is-aff:not(.is-empty) .hero-text { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }   /* etiqueta y "Más información" en la misma línea */
.is-aff:not(.is-empty) .hero-text > p { margin-top: 0; }
.aff-more .sub-menu { top: calc(100% + 6px); right: 0; transform-origin: top right; }
/* "Productos por comisión": etiqueta amarilla con el mismo destello que My Rewards */
.is-aff:not(.is-empty) .hero p.lead { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--btn); border-radius: 12px; color: var(--btn); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; animation: rwGlow 2.6s ease-in-out infinite; }
@media (max-width: 420px) { .is-aff:not(.is-empty) .hero-text { gap: 8px; } .is-aff:not(.is-empty) .hero p.lead, .affnote .aff-more > .btn { padding: 0 10px; font-size: 12.5px; white-space: nowrap; } }   /* en celular siguen lado a lado */
@media (max-width: 359px) { .is-aff:not(.is-empty) .hero-text { gap: 6px; } .is-aff:not(.is-empty) .hero p.lead, .affnote .aff-more > .btn { padding: 0 7px; font-size: 11.5px; letter-spacing: 0; } }
@media (max-width: 339px) { .is-aff:not(.is-empty) .hero p.lead, .affnote .aff-more > .btn { padding: 0 6px; font-size: 11px; } }
.is-aff:not(.is-empty) .hero h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* el título queda para lectores de pantalla y buscadores; Hombres / Mujeres / Niños van en la pestaña */

/* Filtros */
.tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.tools > * { min-width: 0; }
.search { width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--sh-1); font-size: 16px; }
.search::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-label { font-weight: 600; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.chip { flex: none; min-width: 44px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--chip); font-weight: 600; font-size: 15px; transition-property: background-color, color, scale; transition-duration: 150ms; transition-timing-function: ease; }
.chip:active { scale: 0.97; }
.chip[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); }
.row-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.count-line { color: var(--muted); font-size: 14px; }
.sort { height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background-color: var(--chip); color: var(--ink); font-size: 15px; font-weight: 600; max-width: 55%; }

.sports { list-style: none; margin: 12px 0 0; padding: 0; font-size: 18px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.sports li { display: inline; }
.sports li + li::before { content: ", "; }
.sports li.more::before { content: " "; }
.featured { padding: 4px 0 8px; }
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.feat { display: grid; align-content: start; color: inherit; text-decoration: none; }
.feat .pname { font-size: 22px; margin-top: 8px; }
.feat .price { font-size: 18px; margin-top: 2px; }
.feat-more { margin-top: 22px; }
.is-empty .hero h1 { font-size: clamp(30px, 7vw, 48px); }
@media (min-width: 760px) {
  .feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (hover: hover) { .feat:hover .pname { text-decoration: underline; text-underline-offset: 3px; } }
/* Vitrina del inicio: un producto por sección, uno a la vez */
.hero-art { display: none; }
.hero.is-vit { max-width: none; padding: 16px 0 20px; }
.vit-home .hero-text > :not(h1) { display: none; }
.vit-home .hero-text h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* el título queda para lectores de pantalla y buscadores */
.is-vit .hero-art { display: block; }
.vit-box { --vit-ms: 10s; }
.is-vit:not(.vit-home) .hero-art { margin-top: 16px; }   /* Más vendidos: la vitrina va debajo de la etiqueta */
.vit-track { display: grid; overflow: hidden; }
.vit-slide { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; opacity: 0; visibility: hidden; transform: translateX(56px); transition-property: transform, opacity, visibility; transition-duration: 650ms; transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); }
.vit-slide.out { transform: translateX(-56px); }
.vit-slide.on { opacity: 1; visibility: visible; transform: none; }
.vit-item { display: grid; grid-template-rows: auto 1fr; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; color: inherit; text-decoration: none; }
.vit-shot { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.vit-shot img { position: absolute; inset: 10px; display: block; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; transform: scale(0.9); transition: transform 900ms var(--ease-out); }
.vit-slide.on .vit-shot img { transform: none; }
.vit-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.vit-slide.on .vit-shot::after { animation: vitShine 1100ms 350ms var(--ease-out) both; }   /* destello al entrar cada producto */
.vit-slide.on .vit-item + .vit-item .vit-shot::after { animation-delay: 500ms; }
@keyframes vitShine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.vit-info { display: grid; align-content: start; gap: 3px; padding: 10px 12px 12px; min-width: 0; }
.vit-sec { color: var(--flag); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.vit-name { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.05; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vit-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-weight: 700; font-size: 13px; }
.vit-go svg { width: 15px; height: 15px; transition-property: translate; transition-duration: 200ms; transition-timing-function: var(--ease-out); }
.vit-ctrl { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.vit-pp { flex: none; width: 36px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.vit-pp svg { width: 16px; height: 16px; }
.vit-dots { display: flex; }
.vit-dots button { position: relative; width: 22px; height: 40px; padding: 0; border: 0; background: transparent; }
.vit-dots button::before, .vit-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 4px; background: var(--line); }
.vit-dots button::after { display: none; }
.vit-dots button[aria-current="true"] { width: 36px; }
.vit-dots button[aria-current="true"]::before { width: 24px; margin-left: -12px; }
.vit-dots button[aria-current="true"]::after { display: block; width: 24px; margin-left: -12px; background: var(--flag); transform-origin: left; animation: vitBarA var(--vit-ms) linear both; }   /* la barra se llena mientras corre el tiempo */
.vit-box.run-b .vit-dots button[aria-current="true"]::after { animation-name: vitBarB; }
.vit-box.is-still .vit-dots button[aria-current="true"]::after { animation: none; }
@keyframes vitBarA { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vitBarB { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) {
  .vit-item:hover .vit-go { text-decoration: underline; text-underline-offset: 4px; }
  .vit-item:hover .vit-go svg { translate: 3px 0; }
  .vit-pp:hover { color: var(--ink); }
  .vit-dots button:not([aria-current="true"]):hover::before { background: var(--muted); }
}
@media (min-width: 760px) {
  .vit-slide { gap: 16px; }
  .vit-item { grid-template-rows: none; grid-template-columns: 180px minmax(0, 1fr); height: 180px; border-radius: 18px; }
  .vit-shot { aspect-ratio: auto; }
  .vit-info { align-content: center; gap: 6px; padding: 16px 22px; }
  .vit-name { font-size: 26px; }
  .vit-go { font-size: 14px; }
}
.is-aff .promo, .is-aff .foot-help, .is-aff .sort, .is-aff .foot-pay-h, .is-aff .foot-pay { display: none; }
.is-empty .hero-art, .is-empty .sports, .is-empty .promo, .is-empty .tools, .is-empty .row-meta, .is-empty #grid, .is-empty #empty { display: none; }
body:not(.ready) > :not(noscript) { visibility: hidden; animation: reveal 0s 3s forwards; }   /* oculto hasta .ready; a los 3 s aparece solo */
@keyframes reveal { to { visibility: visible; } }
.noscript { margin: 0; padding: 16px; text-align: center; background: var(--chip); }
/* Filtros como Walmart: botón "Filtros" + los más usados a la vista; todos en un panel lateral (izquierda en computadora, desde abajo en celular) */
.row-meta { flex-wrap: wrap; }
.filters-btn { display: inline-flex; align-items: center; gap: 8px; }
.filters-btn svg { width: 18px; height: 18px; }
.f-count:not([hidden]) { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--flag); color: var(--flag-ink); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.quick { flex: 1 1 auto; min-width: 0; }
@media (max-width: 759px) { .quick { flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .quick::-webkit-scrollbar { display: none; } }   /* celular: una sola fila que se desliza, como Walmart */
#filters .tools { margin: 20px 0 16px; }
.f-actions { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; padding: 12px 0 4px; background: var(--bg); }
.f-actions .btn { flex: 1 1 0; }
@media (min-width: 760px) {
  #filters[open] { justify-content: flex-start; align-items: stretch; }
  #filters .sheet { width: min(400px, 100vw); max-height: none; height: 100dvh; border-radius: 0 24px 24px 0; padding: 24px; transform: translateX(-28px); }
  #filters.in .sheet { transform: none; }
}
/* Publicidad: misma vitrina que arriba, entre los productos y el pie de página */
.ads { margin: 32px 0 4px; }
.ads-h { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.vit-box.one-page .vit-ctrl { display: none; }
/* Publicidad: 10 tarjetas chicas a la vista (2 por fila en celular, 5 en tablet, 10 en computadora), en formato vertical */
.ads .vit-slide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ads .vit-item { grid-template-columns: none; grid-template-rows: auto 1fr; height: auto; border-radius: 14px; }
.ads .vit-shot { aspect-ratio: 1; }
.ads .vit-shot img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.ads .vit-info { align-content: start; gap: 3px; padding: 9px 10px 11px; }
.ads .vit-sec { font-size: 10px; }
.ads .vit-name { font-size: 16px; }
.ads .vit-go { font-size: 12px; display: flex; min-width: 0; }
.ads .vit-go-t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }   /* el enlace en una línea */
.ads .vit-go svg { flex: none; }
@media (min-width: 700px) { .ads .vit-slide { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } .ads .vit-name { font-size: 14px; } .ads .vit-go { font-size: 11px; } .ads .vit-info { padding: 8px 8px 10px; } }
@media (min-width: 1000px) { .ads .vit-slide { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; } .ads .vit-sec { font-size: 9px; } .ads .vit-name { font-size: 13px; } .ads .vit-info { padding: 7px 7px 9px; gap: 2px; } .ads .vit-shot img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); } }
