/* =====================================================================
   home-shop.css — Inicio de la tienda ordenado como TikTok Shop
   Protagonistas arriba: Cajas en camino (durazno) y Subastas actuales (morado),
   después Ofertas Rápidas / Tiendas Premium, categorías y productos.
   Colores Wiime: rosado #FF2D55, morado #7614E0, azul #2563EB
   ===================================================================== */

/* ---------- Secciones protagonistas ---------- */
.page-home .hs-sec { border-radius: 22px; padding: 22px 22px 24px; margin-top: 20px; }
.page-home .hs-cajas { background: #fff4e6; }
.page-home .hs-subastas { background: #f4edff; }
.page-home .hs-cab { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.page-home .hs-cab h2 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.5px; display: flex; align-items: center; gap: 9px; }
.page-home .hs-cajas .hs-cab h2 { color: #b45309; }
.page-home .hs-subastas .hs-cab h2 { color: #7614E0; }
.page-home .hs-cab p { margin: 4px 0 0; font-size: 14px; color: #5b5f72; }
.page-home .hs-ver { margin-left: auto; flex: none; background: #fff; color: #161823; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.page-home .hs-ver i { font-size: 11px; margin-left: 3px; }
.page-home .hs-vacio { background: rgba(255,255,255,.7); border-radius: 14px; padding: 22px; text-align: center; color: #5b5f72; font-weight: 600; }
.page-home .hs-vacio i { color: #7614E0; margin-right: 6px; }

/* Computadora: la primera tarjeta grande y las demás al lado (las que sobran, deslizando) */
.page-home .hs-fila { display: flex; align-items: stretch; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.page-home .hs-fila::-webkit-scrollbar { display: none; }
.page-home .hs-card { flex: 0 0 calc((100% - 64px) / 4.5); min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.06); color: #161823; text-decoration: none; cursor: pointer; transition: transform .15s; }
.page-home .hs-card:hover { transform: translateY(-3px); color: #161823; }
.page-home .hs-card.grande { flex-basis: calc((100% - 64px) / 4.5 * 1.45); }
.page-home .hs-card.grande .hs-img { aspect-ratio: auto; flex: 1; min-height: 260px; }
.page-home .hs-img { position: relative; aspect-ratio: 1 / 1; background: #eee center / cover no-repeat; }
.page-home .hs-chip { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; background: #fff; color: #161823; font-size: 12px; font-weight: 800; border-radius: 7px; padding: 3px 9px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.page-home .hs-chip.morado { background: #7614E0; color: #fff; }
.page-home .hs-reloj { font-variant-numeric: tabular-nums; }
.page-home .hs-estado { position: absolute; left: 10px; bottom: 10px; background: #2563EB; color: #fff; font-size: 11.5px; font-weight: 800; border-radius: 7px; padding: 3px 8px; }
.page-home .hs-estado.rosa { background: #FF2D55; }
.page-home .hs-txt { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.page-home .hs-tienda { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #3f4254; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-home .hs-tienda img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.page-home .hs-nom { font-size: 14px; font-weight: 700; line-height: 1.3; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.page-home .hs-ruta { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13px; }
.page-home .hs-barra { flex: 1; height: 5px; border-radius: 3px; background: #e6e7ee; position: relative; }
.page-home .hs-barra > i { display: block; height: 100%; border-radius: 3px; background: #2563EB; }
.page-home .hs-barra > b { position: absolute; top: 50%; transform: translate(-50%, -50%); color: #2563EB; font-size: 12px; }
.page-home .hs-llega { font-size: 12.5px; font-weight: 700; color: #2563EB; margin-top: 7px; }
.page-home .hs-puja { margin-top: 6px; }
.page-home .hs-puja small { display: block; font-size: 11px; color: #6b6f80; }
.page-home .hs-puja b { font-size: 19px; font-weight: 900; color: #7614E0; }
.page-home .hs-gente { font-size: 12px; color: #5b5f72; margin-top: 4px; }
.page-home .hs-gente i { color: #7614E0; margin-right: 3px; }
.page-home .hs-btn { display: block; margin-top: 10px; text-align: center; border-radius: 10px; padding: 9px; font-weight: 800; font-size: 14px; color: #fff; }
.page-home .hs-txt .hs-btn { margin-top: auto; }
.page-home .hs-txt > .hs-llega + .hs-btn, .page-home .hs-txt > .hs-gente + .hs-btn { margin-top: 10px; }
.page-home .hs-btn.naranja { background: #f59e0b; }
.page-home .hs-btn.morado { background: #7614E0; }
.page-home .hs-btn i { font-size: 11px; }
.page-home .hs-card.grande .hs-nom { font-size: 16px; }

/* ---------- Ofertas Rápidas / Tiendas Premium (como los cuadros de TikTok Shop) ---------- */
.page-home .promo-card { border-radius: 18px; padding: 18px 16px 16px; margin-top: 26px; }
.page-home .flash-sales { background: #ffe9ef; }
.page-home .premium-offers { background: #efe5da; }
.page-home .promo-title { font-size: 26px; font-weight: 900; letter-spacing: -.5px; }
.page-home .promo-item { flex: 0 0 calc((100% - 32px) / 3); max-width: calc((100% - 32px) / 3); border-radius: 12px; padding: 10px 10px 12px; box-shadow: none; }
.page-home .promo-item img { height: auto; aspect-ratio: 1 / 1; border-radius: 8px; }

/* Nombre del producto en negro (como TikTok Shop) */
.page-home .product-title { color: #161823; }

/* ---------- Categorías: círculo con foto y el nombre debajo ---------- */
.page-home .category-item { min-width: 104px; }
.page-home .category-img { width: 88px; height: 88px; object-fit: contain; padding: 10px; background: #f3f3f5; }
.page-home .category-label { padding: 0; margin-top: 6px; border-radius: 0; box-shadow: none; background: none; color: #161823; font-size: 14px; font-weight: 700; }

/* ---------- Teléfono ---------- */
@media (max-width: 767px) {
  .page-home .hs-sec { margin: 14px -12px 0; border-radius: 0; padding: 16px 0 16px 12px; }
  .page-home .hs-cab { padding-right: 12px; margin-bottom: 12px; align-items: flex-start; }
  .page-home .hs-cab h2 { font-size: 19px; }
  .page-home .hs-cab p { font-size: 12px; }
  .page-home .hs-ver { font-size: 12px; padding: 6px 11px; }
  .page-home .hs-fila { gap: 10px; padding-right: 12px; }
  .page-home .hs-card, .page-home .hs-card.grande { flex: 0 0 200px; }
  .page-home .hs-card.grande .hs-img { aspect-ratio: 1 / 1; flex: none; min-height: 0; }
  .page-home .hs-card.grande .hs-nom, .page-home .hs-nom { font-size: 13px; }
  .page-home .hs-txt { padding: 8px 10px 10px; }
  .page-home .hs-chip, .page-home .hs-estado { font-size: 10.5px; }
  .page-home .hs-btn { padding: 7px; font-size: 13px; }
  .page-home .hs-puja b { font-size: 17px; }
  .page-home .promo-card { margin-top: 18px; }
  /* Los dos cuadros se deslizan a los lados (como TikTok Shop) */
  .page-home .hs-promos { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: -12px; margin-right: -12px; padding: 0 12px; --bs-gutter-x: 10px; }
  .page-home .hs-promos::-webkit-scrollbar { display: none; }
  .page-home .hs-promos > [class*="col-"] { flex: 0 0 86%; max-width: 86%; scroll-snap-align: start; }
  .page-home .promo-item { flex-basis: calc((100% - 16px) / 3); max-width: calc((100% - 16px) / 3); padding: 6px 6px 8px; background: #fff; }
}

/* ---------- 🎬 Mira y compra (videos) ---------- */
.page-home .mira-fila { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.page-home .mira-fila::-webkit-scrollbar { display: none; }
.page-home .mira-card { flex: 0 0 calc((100% - 64px) / 5); min-width: 0; color: #161823; text-decoration: none; }
.page-home .mira-card:hover { color: #161823; }
.mira-vid, .imc-img.vid { position: relative; aspect-ratio: 9 / 13; border-radius: 14px; overflow: hidden; background: #111; }
.mira-vid video, .imc-img.vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mira-vid::after, .imc-img.vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 70%, rgba(0,0,0,.55)); pointer-events: none; }
.mira-t { position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 3px 7px; display: inline-flex; align-items: center; gap: 4px; }
.mira-t i { font-size: 9px; }
.mira-tienda { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mira-tienda img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.page-home .mira-pie { display: flex; gap: 8px; margin-top: 8px; }
.page-home .mira-txt { flex: 1; min-width: 0; }
.page-home .mira-nom { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.page-home .mira-pr, .imc-pr { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; }
.mira-pr em, .imc-pr em { font-style: normal; color: #FF2D55; font-size: 15px; }
.mira-pr b, .imc-pr b { font-size: 17px; font-weight: 800; }
.mira-mini { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; }

/* ---------- Teléfono: inicio nuevo (como TikTok Shop) ---------- */
.im2 { display: none; }
@media (max-width: 767px) {
  .im2 { display: block; background: #f4f4f6; }
  /* La barra de siempre y lo de antes se esconden en el inicio del teléfono (el carrito flotante sigue funcionando) */
  html body.page-home .top-header { height: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; overflow: visible; position: static !important; }
  body.page-home .top-header > *:not(.header-actions) { display: none !important; }
  body.page-home .top-header .header-actions > *:not(.mini-cart-popup) { display: none !important; }
  body.page-home .inicio-movil, body.page-home .tabs-wrap { display: none !important; }
  body.page-home main.main-content > *:not(.banner-crear-tienda) { display: none !important; }
  body.page-home main.main-content { padding-top: 0 !important; }

  .im2-top { background: linear-gradient(#ffd9e5, #ffe9f0); padding: calc(6px + env(safe-area-inset-top)) 12px 12px; }
  .im2-fila1 { display: flex; align-items: center; gap: 12px; }
  .im2-live { flex: none; display: flex; align-items: center; gap: 4px; background: #FF2D55; color: #fff; border-radius: 9px; padding: 4px 9px 4px 7px; font-size: 12.5px; font-weight: 800; text-decoration: none; }
  .im2-live svg { width: 16px; height: 16px; }
  .im2-tabs-top { flex: 1; display: flex; gap: 16px; justify-content: center; }
  .im2-tabs-top a { font-size: 16px; font-weight: 700; color: #5b5f72; text-decoration: none; padding-bottom: 5px; position: relative; }
  .im2-tabs-top a.on { color: #161823; }
  .im2-tabs-top a.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 2px; background: #161823; }
  .im2-carro { position: relative; flex: none; color: #161823; }
  .im2-carro svg { width: 26px; height: 26px; display: block; }
  .im2-n { position: absolute; top: -5px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #FF2D55; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid #ffe0ea; }
  .im2-n[hidden] { display: none; }
  .im2-buscar { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 5px 5px 5px 12px; margin-top: 12px; }
  .im2-buscar i { color: #6b6f80; }
  .im2-buscar input { flex: 1; min-width: 0; border: none; outline: none; font-size: 14.5px; background: none; }
  .im2-buscar button { border: none; background: #161823; color: #fff; border-radius: 9px; padding: 8px 14px; font-weight: 700; font-size: 13.5px; }
  .im2-chips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
  .im2-chips::-webkit-scrollbar { display: none; }
  .im2-chips a { flex: none; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.75); border-radius: 10px; padding: 7px 11px; font-size: 13px; font-weight: 700; color: #161823; text-decoration: none; white-space: nowrap; }

  .im2-panels { display: flex; gap: 10px; padding: 0 12px 12px; background: #ffe9f0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .im2-panels::-webkit-scrollbar { display: none; }
  .im2-pn { flex: 0 0 74%; scroll-snap-align: start; border-radius: 16px; padding: 12px; color: #161823; text-decoration: none; }
  .im2-pn-t { color: inherit; text-decoration: none; }
  a.im2-tl { color: #161823; text-decoration: none; }
  .im2-pn.caja { background: #f3e6d6; } .im2-pn.sub { background: #e9dcff; } .im2-pn.rosa { background: #ffdbe5; }
  .im2-pn-t { display: block; font-size: 18px; font-weight: 900; margin-bottom: 10px; }
  .im2-pn.sub .im2-pn-t { color: #7614E0; } .im2-pn.caja .im2-pn-t { color: #8a4b0f; } .im2-pn.rosa .im2-pn-t { color: #FF2D55; }
  .im2-tls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .im2-tl { background: #fff; border-radius: 10px; padding: 7px; text-align: center; }
  .im2-tl > i { display: block; aspect-ratio: 1 / 1; border-radius: 6px; background: #eee center / cover; }
  .im2-tl > span { display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 700; background: #f1f1f4; border-radius: 999px; padding: 2px 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .im2-pn.sub .im2-tl > span { background: #f1eaff; color: #7614E0; font-size: 11px; padding: 2px 6px; }

  .im2-tabs { display: flex; gap: 20px; padding: 12px 14px 9px; background: #fff; border-bottom: 1px solid #eee; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 30; }
  .im2-tabs::-webkit-scrollbar { display: none; }
  .im2-tabs a { flex: none; font-size: 15px; font-weight: 600; color: #6b6f80; text-decoration: none; white-space: nowrap; position: relative; }
  .im2-tabs a.on { color: #161823; font-weight: 800; }
  .im2-tabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 3px; border-radius: 2px; background: #161823; }

  .im2-feed { display: flex; gap: 8px; padding: 8px; align-items: flex-start; }
  .im2-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
  .imc { display: block; background: #fff; border-radius: 12px; overflow: hidden; color: #161823; text-decoration: none; cursor: pointer; }
  .imc:hover { color: #161823; }
  .imc-img { position: relative; background: #eee center / cover no-repeat; aspect-ratio: 1 / 1; }
  .imc-img.alto { aspect-ratio: 3 / 4; }
  .imc-img.vid { border-radius: 0; aspect-ratio: 3 / 4; }
  .imc-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .imc-chip { position: absolute; left: 8px; top: 8px; z-index: 2; background: #fff; color: #161823; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 7px; font-variant-numeric: tabular-nums; }
  .imc-chip.rosa { background: #FF2D55; color: #fff; } .imc-chip.morado { background: #7614E0; color: #fff; }
  .imc-est2 { position: absolute; left: 8px; bottom: 8px; z-index: 2; background: #2563EB; color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 2px 7px; }
  .imc-est2.rosa { background: #FF2D55; }
  .imc-tx { padding: 8px 9px 10px; }
  .imc-fila { display: flex; gap: 6px; } .imc-fila > div { flex: 1; min-width: 0; } .imc-fila .mira-mini { width: 36px; height: 36px; }
  .imc-nom { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .imc-est { font-size: 11.5px; color: #6b6f80; margin-top: 3px; } .imc-est b { color: #f59e0b; }
  .imc-of { color: #FF2D55; font-size: 11.5px; font-weight: 700; margin-top: 3px; }
  .imc-pr { flex-wrap: wrap; align-items: center; }
  .imc-pr s { font-size: 11px; color: #9a9db0; }
  .imc-car { margin-left: auto; width: 30px; height: 30px; border: none; border-radius: 50%; background: #f1f1f4; color: #161823; font-size: 13px; display: grid; place-items: center; }
  .imc-puja { margin-top: 5px; } .imc-puja small { display: block; font-size: 11px; color: #6b6f80; } .imc-puja b { font-size: 17px; font-weight: 900; color: #7614E0; }
  .imc-gente { font-size: 11.5px; color: #5b5f72; margin-top: 3px; } .imc-gente i { color: #7614E0; }
  .imc-btn { display: block; margin-top: 8px; text-align: center; border-radius: 9px; padding: 7px; font-weight: 800; font-size: 13px; color: #fff; }
  .imc-btn.morado { background: #7614E0; } .imc-btn.naranja { background: #f59e0b; } .imc-btn.rosa { background: #FF2D55; }
  .imc .hs-ruta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; }
  .imc .hs-barra { flex: 1; height: 5px; border-radius: 3px; background: #e6e7ee; position: relative; }
  .imc .hs-barra > i { display: block; height: 100%; border-radius: 3px; background: #2563EB; }
  .imc .hs-barra > b { position: absolute; top: 50%; transform: translate(-50%, -50%); color: #2563EB; font-size: 11px; }
  .imc .hs-llega { font-size: 12px; font-weight: 700; color: #2563EB; margin-top: 6px; }
  .im2-mas { text-align: center; padding: 6px 0 22px; }
  .im2-mas button { border: none; background: none; padding: 12px 20px; display: inline-flex; gap: 4px; pointer-events: none; }
  .im2-mas button i { width: 13px; height: 13px; border-radius: 50%; display: block; animation: im2Punto .7s ease-in-out infinite alternate; }
  .im2-mas button i:first-child { background: #19C6E8; }
  .im2-mas button i:last-child { background: #FF2D55; animation-delay: -.35s; }
  @keyframes im2Punto { from { transform: translateX(-5px) scale(.85); } to { transform: translateX(5px) scale(1.05); } }
}

/* Computadora: "Sigue descubriendo" con Ver más sin fin */
.page-home .btn-ver-mas-rosa.sigue { margin-top: 22px; }
.page-home #cajas-en-camino { scroll-margin-top: 80px; }

/* Teléfono: el fondo de arriba toma el color del cuadro que se está viendo */
@media (max-width: 767px) {
  .im2 { --im2-a: #ffd9e5; --im2-b: #ffe9f0; }
  .im2[data-fondo="caja"] { --im2-a: #ecd9c2; --im2-b: #f6ebde; }
  .im2[data-fondo="sub"]  { --im2-a: #ddd0ff; --im2-b: #ece4ff; }
  .im2[data-fondo="rosa"] { --im2-a: #ffd2df; --im2-b: #ffe6ee; }
  .im2-top { background: linear-gradient(var(--im2-a), var(--im2-b)) !important; transition: background .35s ease; }
  .im2-panels { background: var(--im2-b) !important; transition: background .35s ease; }
  .im2-pn.caja { background: #f9efe3; } .im2-pn.sub { background: #f3edff; } .im2-pn.rosa { background: #fff0f4; }
  .im2-pn-t { color: inherit; text-decoration: none; }
  .im2-pn.caja .im2-pn-t { color: #8a4b0f; }
  .im2-vacio { text-align: center; color: #6b6f80; padding: 30px 20px 40px; font-weight: 600; }
}

/* Teléfono: barra de arriba fija como TikTok Shop */
@media (max-width: 767px) {
  .im2-top { padding: 0 0 12px !important; background: var(--im2-b, #ffe9f0) !important; }
  .im2-cab { position: sticky; top: 0; z-index: 40; padding: calc(6px + env(safe-area-inset-top)) 12px 10px; background: linear-gradient(var(--im2-a, #ffd9e5), var(--im2-b, #ffe9f0)); transition: background .3s ease, box-shadow .3s ease; }
  .im2-top .im2-chips { padding: 0 12px; margin-top: 0; }
  .im2-cab .im2-buscar { margin-top: 10px; border: 2px solid transparent; transition: border-color .3s; }
  .im2-tabs { top: var(--im2-cab, 104px) !important; z-index: 35; }
  /* Cuando los cuadros ya pasaron: barra blanca, búsqueda con borde negro */
  .im2.im2-blanco .im2-cab { background: #fff; }
  .im2.im2-blanco .im2-cab .im2-buscar { border-color: #161823; }
  .im2.im2-blanco .im2-tabs { border-bottom-color: #eee; }
}

/* ---------- Teléfono: buscador en pantalla completa ---------- */
.imb { display: none; }
@media (max-width: 767px) {
  html.imb-on, html.imb-on body { overflow: hidden; }
  .imb { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 2000; background: #fff; }
  .imb[hidden] { display: none; }
  .imb-cab { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
  .imb-atras { border: none; background: none; font-size: 22px; color: #161823; padding: 4px 6px; }
  .imb-caja { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #f1f1f2; border-radius: 12px; padding: 0 10px; height: 44px; }
  .imb-caja > i { color: #161823; font-size: 17px; }
  .imb-caja input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 16px; color: #161823; }
  .imb-caja input::-webkit-search-cancel-button { display: none; }
  .imb-borrar { border: none; background: none; color: #a1a3b0; font-size: 17px; padding: 0; }
  .imb-borrar[hidden] { display: none; }
  .imb-ir { border: none; background: none; color: #FF2D55; font-weight: 800; font-size: 16px; padding: 4px 2px; }
  .imb-cuerpo { flex: 1; overflow-y: auto; padding: 0 16px 30px; -webkit-overflow-scrolling: touch; }
  .imb-sug { display: flex; align-items: center; gap: 12px; width: 100%; border: none; background: none; padding: 11px 2px; font-size: 15.5px; color: #161823; text-align: left; border-bottom: 1px solid #f3f3f5; }
  .imb-sug i { color: #8a8d9b; font-size: 14px; }
  .imb-rec { display: flex; align-items: center; }
  .imb-rec-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: none; background: none; padding: 7px 0; font-size: 16px; font-weight: 600; color: #161823; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .imb-reloj { width: 34px; height: 34px; border-radius: 50%; background: #f1f1f2; display: grid; place-items: center; color: #5b5f72; font-size: 15px; flex: none; }
  .imb-x { border: none; background: none; color: #8a8d9b; font-size: 18px; padding: 8px 4px 8px 12px; }
  .imb-mas { display: block; margin: 4px auto 4px; border: none; background: none; color: #6b6f80; font-weight: 700; font-size: 14.5px; }
  .imb-mas i { font-size: 11px; }
  .imb-h { font-size: 17px; font-weight: 800; color: #161823; margin: 16px 0 8px; }
  .imb-gus { display: flex; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px solid #f1f1f3; color: #161823; text-decoration: none; }
  .imb-gus img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #f3f3f5; flex: none; }
  .imb-gus span { font-size: 15.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .im2-buscar input[readonly] { cursor: text; }
}
@media (max-width: 767px) { .imb-cuerpo.escribiendo #imbRecientes, .imb-cuerpo.escribiendo .imb-h, .imb-cuerpo.escribiendo #imbGustar { display: none; } }

/* Teléfono: dejar el dedo encima de un video lo reproduce (sin que salga el menú del navegador) */
@media (max-width: 767px) {
  .imc-img.vid, .imc-img.vid video, a.imc { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .imc-img.vid video { background: #111 center / cover; }
}

/* Teléfono: una caja, subasta u oferta por tarjeta, en grande y de colores (se desliza a la derecha) */
@media (max-width: 767px) {
  .im2-panels { padding: 4px 12px 8px !important; gap: 10px !important; }
  .im2-pn.im2-tj { flex: 0 0 66%; min-width: 0; max-width: 66%; display: flex; flex-direction: column; background: var(--tj) !important; border-radius: 18px; padding: 10px 10px 11px; color: #161823; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
  .im2-tj-t { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 900; margin-bottom: 8px; }
  .im2-tj-t small { font-size: 12px; font-weight: 700; opacity: .6; }
  .im2-tj-im { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #fff; }
  .im2-tj-im { flex: none; min-height: 0; }
  .im2-tj-im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .im2-tj-im em { z-index: 1; }
  .im2-tj-im em { position: absolute; left: 8px; top: 8px; font-style: normal; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 4px 8px; font-variant-numeric: tabular-nums; }
  .im2-tj-im em.mor { background: #7614E0; }
  .im2-tj-im em.ro { background: #FF2D55; }
  .im2-tj-n { display: block; font-size: 14px; font-weight: 800; margin: 8px 2px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .im2-tj-d { display: block; font-size: 13px; color: #2b2c33; margin: 2px 2px 0; }
  .im2-tj-d s { color: #6b6c72; font-size: 12.5px; }
  .im2-tj-pr { font-size: 18px; color: #161823; }
  .im2-tj-dto { font-style: normal; color: #d6143f; font-weight: 800; }
  .im2-tj-ruta { display: flex; align-items: center; gap: 6px; margin: 6px 2px 2px; font-size: 13px; }
  .im2-tj-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(0,0,0,.14); position: relative; }
  .im2-tj-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #161823; }
  .im2-tj-bar > b { position: absolute; top: -8px; font-size: 12px; color: #161823; }
  .im2-pn.im2-tj > span:nth-last-child(2) { margin-bottom: 9px; }
  .im2-tj-btn { display: block; margin-top: auto; background: #161823; color: #fff; border-radius: 10px; padding: 8px; text-align: center; font-weight: 800; font-size: 13.5px; }
  .im2-tj-puntos { display: flex; justify-content: center; gap: 5px; padding: 0 0 12px; background: var(--im2-b, #ffe9f0); transition: background .35s ease; }
  .im2-tj-puntos i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.2); transition: width .2s; }
  .im2-tj-puntos i.on { width: 18px; border-radius: 4px; background: #161823; }
}
.im2-tj-puntos { display: none; }
@media (max-width: 767px) { .im2-tj-puntos { display: flex; } }

/* Todo el conjunto de la tarjeta un poco más pequeño (misma proporción) */
@media (max-width: 767px) {
  .im2-pn.im2-tj { flex: 0 0 56% !important; max-width: 56% !important; padding: 8px 8px 9px !important; border-radius: 15px !important; }
  .im2-tj-t { font-size: 13px !important; margin-bottom: 7px !important; }
  .im2-tj-t small { font-size: 10.5px !important; }
  .im2-tj-im { border-radius: 10px !important; }
  .im2-tj-im em { font-size: 10.5px !important; padding: 3px 7px !important; left: 6px !important; top: 6px !important; border-radius: 7px !important; }
  .im2-tj-n { font-size: 12.5px !important; margin: 7px 2px 2px !important; }
  .im2-tj-d { font-size: 11.5px !important; }
  .im2-tj-d s { font-size: 11px !important; }
  .im2-tj-pr { font-size: 15.5px !important; }
  .im2-tj-ruta { font-size: 11.5px !important; margin: 5px 2px 1px !important; }
  .im2-tj-bar { height: 4px !important; }
  .im2-tj-bar > b { font-size: 10.5px !important; top: -7px !important; }
  .im2-pn.im2-tj > span:nth-last-child(2) { margin-bottom: 8px !important; }
  .im2-tj-btn { font-size: 12px !important; padding: 7px !important; border-radius: 9px !important; }
}

/* Todavía más pequeño (otra vez parejo) */
@media (max-width: 767px) {
  .im2-pn.im2-tj { flex: 0 0 46% !important; max-width: 46% !important; padding: 7px 7px 8px !important; border-radius: 13px !important; }
  .im2-tj-t { font-size: 11.5px !important; margin-bottom: 6px !important; }
  .im2-tj-t small { font-size: 9.5px !important; }
  .im2-tj-im { border-radius: 9px !important; }
  .im2-tj-im em { font-size: 9.5px !important; padding: 2px 6px !important; left: 5px !important; top: 5px !important; border-radius: 6px !important; }
  .im2-tj-n { font-size: 11.5px !important; margin: 6px 1px 2px !important; }
  .im2-tj-d { font-size: 10.5px !important; margin: 1px 1px 0 !important; }
  .im2-tj-d s { font-size: 10px !important; }
  .im2-tj-pr { font-size: 13.5px !important; }
  .im2-tj-ruta { font-size: 10px !important; gap: 4px !important; }
  .im2-tj-bar > b { font-size: 9.5px !important; }
  .im2-pn.im2-tj > span:nth-last-child(2) { margin-bottom: 7px !important; }
  .im2-tj-btn { font-size: 11px !important; padding: 6px !important; border-radius: 8px !important; }
}

/* =====================================================
   OPCIÓN B (computadora): Cajas en camino y Subastas lado a lado.
   Cajas: 3 tarjetas iguales a la vista, se desliza a la derecha.
   Subastas: una a la vez, se desliza para ver las demás.
   ===================================================== */
.page-home .hs-flecha, .page-home .hs-puntos { display: none; }
@media (min-width: 768px) {
  .page-home .hs-dos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: stretch; }
  .page-home .hs-dos.sin-cajas { grid-template-columns: minmax(0, 1fr); }
  .page-home .hs-dos > .hs-sec { margin-top: 0; display: flex; flex-direction: column; min-width: 0; }
  .page-home .hs-cab h2 { font-size: 24px; }
  .page-home .hs-cab h2 i { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; color: #fff; font-size: 19px; }
  .page-home .hs-cajas .hs-cab h2 i { background: #b45309; }
  .page-home .hs-subastas .hs-cab h2 i { background: #7614E0; }
  .page-home .hs-cab { align-items: center; }
  .page-home .hs-cab p { margin-left: 51px; margin-top: 0; }

  .page-home .hs-carrusel { position: relative; flex: 1; display: flex; }
  .page-home .hs-carrusel .hs-fila { flex: 1; scroll-behavior: smooth; }
  /* Cajas: 3 a la vista, todas del mismo tamaño */
  .page-home .hs-cajas .hs-card { flex: 0 0 calc((100% - 32px) / 3); }
  .page-home .hs-cajas .hs-img { aspect-ratio: 3 / 4; }
  /* Subastas: una a la vez */
  .page-home .hs-fila.hs-una .hs-card { flex: 0 0 100%; }
  .page-home .hs-subastas .hs-img { aspect-ratio: 6 / 5; }
  .page-home .hs-nom { min-height: 37px; }

  .page-home .hs-flecha { display: grid; place-items: center; position: absolute; top: 38%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: #161823; box-shadow: 0 4px 14px rgba(0,0,0,.16); cursor: pointer; transition: opacity .15s; }
  .page-home .hs-flecha.izq { left: -14px; } .page-home .hs-flecha.der { right: -14px; }
  .page-home .hs-carrusel.al-inicio .hs-flecha.izq, .page-home .hs-carrusel.al-final .hs-flecha.der { opacity: 0; pointer-events: none; }

  .page-home .hs-puntos { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .page-home .hs-puntos i { width: 8px; height: 8px; border-radius: 50%; background: #d6c6f7; }
  .page-home .hs-puntos i.on { width: 22px; border-radius: 5px; background: #7614E0; }

  /* Sin subastas: tarjeta blanca centrada que llena el alto */
  .page-home .hs-subastas .hs-vacio { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #fff; border-radius: 16px; padding: 28px 18px; color: #6b6f80; font-weight: 500; }
  .page-home .hs-vacio-ico { width: 76px; height: 76px; border-radius: 50%; background: #f4edff; display: grid; place-items: center; font-size: 30px; color: #7614E0; margin-bottom: 4px; }
  .page-home .hs-vacio-ico i { margin: 0 !important; }
  .page-home .hs-vacio b { font-size: 18px; color: #161823; }
  .page-home .hs-vacio-btn { margin-top: 6px; background: #7614E0; color: #fff !important; border-radius: 999px; padding: 10px 22px; font-weight: 800; font-size: 14px; text-decoration: none; }
}

/* ---- Ofertas Rápidas y Tiendas Premium más compactas (computadora): 4 cuadritos más pequeños ---- */
@media (min-width: 768px) {
  .page-home .promo-card { padding: 14px 14px 14px; margin-top: 20px; border-radius: 16px; }
  .page-home .promo-head { margin-bottom: 10px; }
  .page-home .promo-title { font-size: 21px; }
  .page-home .promo-item { flex: 0 0 calc((100% - 48px) / 4); max-width: calc((100% - 48px) / 4); padding: 7px 7px 9px; border-radius: 10px; }
  .page-home .promo-item img { border-radius: 7px; }
  .page-home .discount-badge, .page-home .brand-name { font-size: 12px; padding: 3px 10px; margin-top: 6px; }
}

/* ---- "Mira y compra" igual a TikTok Shop (computadora) ---- */
@media (min-width: 768px) {
  .page-home .mira-fila { gap: 16px; }
  .page-home .mira-card { flex: 0 0 calc((100% - 64px) / 5); }
  .page-home .mira-vid { aspect-ratio: 9 / 16; border-radius: 12px; background: #111 center / cover no-repeat; }
  .page-home .mira-t { left: 8px; top: 8px; background: rgba(0,0,0,.55); font-size: 12.5px; border-radius: 5px; padding: 3px 8px; }
  .page-home .mira-tienda { left: 10px; bottom: 12px; font-size: 13px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
  .page-home .mira-pie { gap: 10px; margin-top: 8px; align-items: flex-start; }
  .page-home .mira-nom { font-size: 13.5px; line-height: 1.3; -webkit-line-clamp: 3; color: #161823; min-height: 52px; }
  .page-home .mira-mini { width: 54px; height: 54px; border-radius: 6px; }
  .page-home .mira-cal { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: #161823; }
  .page-home .mira-cal b { font-weight: 500; }
  .page-home .mira-estrellas { color: #F5B400; font-size: 11.5px; letter-spacing: 1px; }
  .page-home .mira-estrellas .vacia { color: #d9d9de; }
  .page-home .mira-vend { color: #3a3b42; }
  .page-home .mira-pr { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
  .page-home .mira-pr em { font-style: normal; color: #FE2C55; font-size: 19px; font-weight: 500; }
  .page-home .mira-pr b { font-size: 19px; font-weight: 700; color: #161823; }
  .page-home .mira-pr b small { font-size: 12px; font-weight: 700; margin-right: 2px; }
  .page-home .mira-pr s { font-size: 13px; color: #8a8b91; }
}

/* ---- "Mira y compra": resalte al pasar el mouse (como TikTok Shop) ---- */
@media (min-width: 768px) {
  .page-home .mira-fila { padding: 8px 6px 14px; margin: -8px -6px 0; }
  .page-home .mira-card { border-radius: 14px; padding-bottom: 10px; background: transparent; transition: background .18s, box-shadow .18s; }
  .page-home .mira-card .mira-pie, .page-home .mira-card .mira-cal, .page-home .mira-card .mira-pr { padding-left: 2px; padding-right: 4px; }
  .page-home .mira-card:hover { background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.13); }
  .page-home .mira-card:hover .mira-vid { border-radius: 14px 14px 12px 12px; }
  .page-home .mira-pr b { font-size: 21px; }
  .page-home .mira-pr b small.cent { font-size: 12px; margin: 0; font-weight: 700; }
}

/* ---- "Mira y compra" súper compacto (computadora): 6 videos a la vista ---- */
@media (min-width: 768px) {
  .page-home .mira-fila { gap: 12px; }
  .page-home .mira-card { flex: 0 0 calc((100% - 60px) / 6); padding-bottom: 8px; border-radius: 12px; }
  .page-home .mira-vid { border-radius: 10px; }
  .page-home .mira-card:hover .mira-vid { border-radius: 12px 12px 10px 10px; }
  .page-home .mira-t { font-size: 11px; padding: 2px 6px; left: 6px; top: 6px; }
  .page-home .mira-tienda { font-size: 11.5px; left: 8px; bottom: 9px; gap: 5px; }
  .page-home .mira-tienda img { width: 17px; height: 17px; }
  .page-home .mira-pie { gap: 6px; margin-top: 6px; }
  .page-home .mira-nom { font-size: 12.5px; line-height: 1.28; -webkit-line-clamp: 2; min-height: 32px; }
  .page-home .mira-mini { width: 40px; height: 40px; border-radius: 5px; }
  .page-home .mira-cal { font-size: 11.5px; gap: 4px; margin-top: 3px; }
  .page-home .mira-estrellas { font-size: 9.5px; letter-spacing: .5px; }
  .page-home .mira-pr { gap: 4px; margin-top: 2px; }
  .page-home .mira-pr em { font-size: 15px; }
  .page-home .mira-pr b { font-size: 17px; }
  .page-home .mira-pr b small { font-size: 10.5px; }
  .page-home .mira-pr b small.cent { font-size: 10.5px; }
  .page-home .mira-pr s { font-size: 11.5px; }
}
