/* =================================================================
   assets/css/pages/inicio-computadora.css
   Inicio en COMPUTADORA (includes/inicio_computadora.php).
   Filas que se deslizan de lado, una por tema, y al final una
   cuadrícula que sigue cargando productos al bajar.
   En el celular no se usa (home-shop.css esconde <main>).
   Colores sólidos de Wiime: morado #7C3AED, azul #2563EB, rosa #FE2C55.
   ================================================================= */
/* Ancho como eBay: en una pantalla de 1920 px el contenido mide unos 1490 px */
@media (min-width: 768px) {
  body.page-home.no-sidebar .main-content { max-width: none; padding-left: 0; padding-right: 0; }
}
.ic { max-width: 1568px; margin: 0 auto; padding: 0 40px 10px; font-family: 'TikTok Sans', -apple-system, "Segoe UI", Roboto, sans-serif; color: #161823; }

/* --- Barra de secciones --- */
.ic-nav-wrap { position: relative; border-bottom: 1px solid #f0f0f2; }
.ic-nav { display: flex; align-items: center; gap: 26px; padding: 12px 0 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; white-space: nowrap; }
.ic-nav-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d0d0d4; background: #fff; color: #161823; display: flex; align-items: center; justify-content: center; font-size: 13px; z-index: 2; cursor: pointer; box-shadow: 0 0 0 10px #fff, 0 2px 8px rgba(0,0,0,.14); }
.ic-nav-flecha:hover { background: #f6f6f8; }
.ic-nav-flecha.izq { left: 0; }
.ic-nav-flecha.der { right: 0; }
.ic-nav-flecha[hidden] { display: none; }
.ic-nav::-webkit-scrollbar { display: none; }
.ic-nav a { font-size: 14px; color: #3f4047; text-decoration: none; flex: none; }
.ic-nav a:hover { color: #7C3AED; }
.ic-nav a.ic-nav-on { background: #F3EEFF; color: #161823; font-weight: 700; border-radius: 18px; padding: 7px 14px; display: inline-flex; align-items: center; gap: 7px; }
.ic-nav a.ic-nav-on i { width: 7px; height: 7px; border-radius: 50%; background: #7C3AED; }

/* --- Cada sección --- */
.ic-sec { padding-top: 28px; }
.ic-cab { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.ic-cab h2 { margin: 0; font-size: 25px; font-weight: 800; color: #161823; }
.ic-cab p { margin: 2px 0 0; font-size: 16px; color: #4a4b55; }
.ic-cab a { font-size: 14px; color: #161823; text-decoration: underline; flex: none; }
.ic-cab a:hover { color: #7C3AED; }

/* --- Fila que se desliza --- */
.ic-carrusel { position: relative; }
.ic-fila { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 2px; }
.ic-fila::-webkit-scrollbar { display: none; }
.ic-fila > * { scroll-snap-align: start; }
.ic-flecha { position: absolute; top: 116px; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid #d0d0d4; box-shadow: 0 2px 8px rgba(0,0,0,.14); color: #161823; display: flex; align-items: center; justify-content: center; font-size: 15px; z-index: 3; cursor: pointer; }
.ic-flecha:hover { background: #f6f6f8; }
.ic-flecha.izq { left: -20px; }
.ic-flecha.der { right: -20px; }
.ic-flecha[hidden] { display: none; }
#icSubastas ~ .ic-flecha, #icCajas ~ .ic-flecha, #icVideos ~ .ic-flecha { top: 150px; }
#icParaTi ~ .ic-flecha, #icVistos ~ .ic-flecha { top: 112px; }
/* Barrita de abajo: solo se ve con el mouse encima de la fila; se puede arrastrar o tocar */
.ic-barra { height: 16px; margin-top: 6px; position: relative; cursor: default; opacity: 0; transition: opacity .2s; touch-action: none; user-select: none; }
.ic-barra::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 6px; border-radius: 3px; background: #ececf0; }
.ic-barra i { position: absolute; top: 5px; height: 6px; left: 0; width: 30%; border-radius: 3px; background: #a6a7ad; cursor: default; }
.ic-barra:hover i, .ic-barra.arrastrando i { background: #6b6c74; }
.ic-sec:hover .ic-barra, .ic-barra.arrastrando { opacity: 1; }
.ic-barra[hidden] { display: none; }
body.ic-arrastrando, body.ic-arrastrando * { user-select: none !important; cursor: default !important; }
/* Mientras se arrastra la barra, la fila se mueve libre (sin "imán" ni animación) */
.ic-fila.arrastrando { scroll-snap-type: none !important; scroll-behavior: auto !important; }

/* --- Tarjeta alta (subastas y cajas) --- */
.ic-alta { width: 232px; flex: none; display: flex; flex-direction: column; color: #161823; text-decoration: none; }
a.ic-alta:hover { color: #161823; }
a.ic-alta .ic-tit:hover { text-decoration: underline; }
.ic-alta.solo-flyer { cursor: default; }
.ic-alta-img { position: relative; display: block; height: 340px; border-radius: 16px; overflow: hidden; background: #f1f1f3; }
.ic-alta-img > img, .ic-alta-img > video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
a.ic-alta .ic-alta-img:hover > img, a.ic-alta .ic-alta-img:hover > video { transform: scale(1.03); }
.ic-chip { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(22,24,35,.72); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .2px; padding: 5px 10px; border-radius: 14px; }
.ic-punto { width: 7px; height: 7px; border-radius: 50%; background: #FE2C55; flex: none; }
.ic-punto.azul { background: #60A5FA; }
.ic-pie { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 7px; background: rgba(22,24,35,.72); border-radius: 12px; padding: 6px 7px; color: #fff; font-size: 12.5px; font-weight: 700; }
.ic-pie > img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.ic-pie-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-reloj { flex: none; display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #161823; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.ic-reloj.urgente { background: #FE2C55; color: #fff; }
.ic-tit { font-size: 15px; line-height: 1.35; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ic-sub { font-size: 14px; color: #4a4b55; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-sub b { color: #161823; font-weight: 800; }
.ic-viaje { display: block; height: 5px; border-radius: 3px; background: #ececf0; margin-top: 8px; overflow: hidden; }
.ic-viaje i { display: block; height: 100%; background: #2563EB; border-radius: 3px; }

/* --- Tarjeta de producto --- */
.ic-prod { width: 232px; flex: none; display: flex; flex-direction: column; color: #161823; text-decoration: none; cursor: pointer; }
.ic-prod:hover { color: #161823; }
.ic-prod .ic-tit:hover { text-decoration: underline; }
.ic-prod-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #f1f1f3; }
.ic-prod-img > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.ic-prod .ic-prod-img:hover > img { transform: scale(1.03); }
.ic-corazon { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff; color: #161823; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: pointer; }
.ic-corazon.active, .ic-corazon.active i { color: #FE2C55; }
.ic-desc { position: absolute; left: 10px; bottom: 10px; background: #FE2C55; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.ic-agotado { position: absolute; left: 10px; bottom: 10px; background: #161823; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.ic-precio { font-size: 19px; font-weight: 800; margin-top: 6px; }
.ic-precio s { font-size: 13px; color: #6b6c74; font-weight: 400; margin-left: 4px; }
.ic-tienda { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #161823; margin-top: 10px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-tienda + .ic-tit { margin-top: 6px; }
.ic-tienda img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid #e4e4ea; background: #fff; flex: none; }

/* --- Más productos: cuadrícula sin fin --- */
.ic-cuadricula { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.ic-cuadricula .ic-prod { width: auto; }
.ic-cuadricula .ic-prod-img { aspect-ratio: 4 / 5; }   /* Más productos: un poco más alta */
.ic-fila > .ic-prod { width: 265px; }                   /* Para ti y Vistos: cuadrado grande, como eBay */
.ic-cargando { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 0 36px; color: #4a4b55; font-size: 15px; }
.ic-cargando[hidden] { display: none; }
.ic-ver-mas { border: 2px solid #161823; background: #fff; color: #161823; border-radius: 24px; padding: 10px 26px; font-weight: 700; font-size: 15px; cursor: pointer; }
.ic-ver-mas:hover { background: #F3EEFF; }
.ic-rueda { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #e4e4ea; border-top-color: #7C3AED; animation: ic-gira .8s linear infinite; }
@keyframes ic-gira { to { transform: rotate(360deg); } }

@media (max-width: 1300px) { .ic-cuadricula { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .ic { padding: 0 28px 10px; } .ic-cuadricula { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ic-alta, .ic-prod { width: 200px; } .ic-fila > .ic-prod { width: 220px; } .ic-alta-img { height: 300px; } }
@media (max-width: 900px)  { .ic-cuadricula { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Producto en tarjeta alta (rellena Subastas o Cajas cuando hay pocas) */
.ic-alta-prod .ic-corazon { right: 10px; top: 10px; }
.ic-alta-prod .ic-reloj { font-size: 12.5px; }
.ic-sub s { color: #6b6c74; font-weight: 400; margin-left: 4px; }
.ic-chip .fa-play { font-size: 9px; }

/* Envío de Cajas y Subastas: tarjeta más ancha y más alta, en proporción 2:3 (vertical),
   igual que los flyers (ej. 1080 x 1620 px) para que la imagen se vea completa */
/* Lo mismo para Wiime Subastas (y su relleno de productos) */
#icCajas > .ic-alta, #icSubastas > .ic-alta { width: 260px; }
#icCajas .ic-alta-img, #icSubastas .ic-alta-img { height: auto; aspect-ratio: 2 / 3; }
#icCajas ~ .ic-flecha, #icSubastas ~ .ic-flecha { top: 175px; }
@media (max-width: 1100px) { #icCajas > .ic-alta, #icSubastas > .ic-alta { width: 220px; } }

/* Wiime Videos: mismo tamaño que las tarjetas de "Más productos" (6 por fila, un poco más altas que anchas) */
#icVideos > .ic-alta { width: calc((100% - 5 * 16px) / 6); min-width: 200px; }
#icVideos .ic-alta-img { height: auto; aspect-ratio: 4 / 5; }
#icVideos ~ .ic-flecha { top: 130px; }
