/* ============================================================================
   Pipoon · home_v2.css — Bloques nuevos del home (13 bloques)
   Escritorio + móvil. Usa design tokens con fallback.
   Firma creación: Felipe Salamanca · 2026-07-25
   ============================================================================ */

/* ── B3 · Hero v2 ─────────────────────────────────────────── */
.home-hero-v2 { position: relative; }
.home-hero-v2 .hero-swiper { border-radius: var(--radius-lg, 8px); overflow: hidden; }
.home-hero-v2 .swiper-slide a { display: block; position: relative; }
.home-hero-v2 .swiper-slide img { width: 100%; height: auto; display: block; }
.hero-v2-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 24px 34px;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  color: #fff; display: flex; flex-direction: column; gap: 4px;
  pointer-events: none;
}
.hero-v2-caption strong { font-size: clamp(18px, 2.4vw, 30px); line-height: 1.2; }
.hero-v2-caption em { font-style: normal; font-size: clamp(12px, 1.4vw, 16px); opacity: .9; }
.hero-v2-emoji {
  position: absolute; top: 10px; right: 14px; z-index: 5;
  font-size: 30px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}

/* ── B3 · Hero por defecto: 2 fichas + carrusel de tarjetas ─── */
.home-hero-2col {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 12px;
  --hero-h: 380px;
}
.hero-fichas {
  display: grid; grid-template-rows: 1fr 1fr; gap: 12px;
  height: var(--hero-h); min-width: 0;
}
.hero-ficha {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg, 8px); text-decoration: none;
  background: var(--bg-muted, #eef0f3);
}
.hero-ficha img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-ficha .ficha-label {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 12px 14px 20px; color: #fff; font-weight: 800;
  font-size: clamp(17px, 1.3vw, 21px); line-height: 1.15; text-align: left;
  background: linear-gradient(rgba(0,0,0,.68), transparent);
}
.hero-cards { height: var(--hero-h); min-width: 0; }
.hero-cards .swiper { height: 100%; border-radius: var(--radius-lg, 8px); }
.hero-cards .swiper-slide { height: 100%; }
.hero-card {
  position: relative; display: block; height: 100%; overflow: hidden;
  border-radius: var(--radius-lg, 8px); text-decoration: none;
  background: var(--bg-muted, #eef0f3);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card .card-label {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 14px 14px 22px; color: #fff; font-weight: 800;
  font-size: clamp(19px, 1.5vw, 24px); line-height: 1.2; text-align: left;
  background: linear-gradient(rgba(0,0,0,.7), transparent);
}
.hero-cards .swiper-button-prev,
.hero-cards .swiper-button-next { color: #fff; }
.hero-cards .swiper-button-prev::after,
.hero-cards .swiper-button-next::after { font-size: 22px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.hero-cards .swiper-pagination-bullet { background: #fff; opacity: .6; }
.hero-cards .swiper-pagination-bullet-active { opacity: 1; }

/* ── B3.5 · Carrusel de secciones (fichas de categoría) ── */
.home-secciones { position: relative; }
.secciones-swiper { padding: 0 2px; }
.secciones-swiper .swiper-slide { width: 300px; height: auto; }
.secciones-swiper .swiper-button-prev,
.secciones-swiper .swiper-button-next {
  color: var(--text, #222); background: var(--bg, #fff);
  width: 34px; height: 34px; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.secciones-swiper .swiper-button-prev::after,
.secciones-swiper .swiper-button-next::after { font-size: 15px; font-weight: 700; }
.home-seccion {
  width: 100%;
  background: var(--bg, #fff);
  border: 1px solid var(--line, #e6e8ec);
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}
.home-seccion:hover { box-shadow: 0 6px 16px rgba(0,0,0,.10); border-color: #d7dae0; }
.seccion-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px;
  font-weight: 800; font-size: clamp(14px, 1.2vw, 17px);
  color: var(--text, #222); letter-spacing: .4px;
  border-bottom: 2px solid var(--accent, #ff6a00);
}
.seccion-head-arrow { color: var(--accent, #ff6a00); font-weight: 900; font-size: 20px; line-height: 1; }
.seccion-col { display: flex; flex-direction: column; }
.seccion-ficha {
  position: relative; display: block; text-decoration: none;
  border-bottom: 1px solid var(--line, #e6e8ec);
  transition: background .15s;
}
.seccion-ficha:last-child { border-bottom: none; }
.seccion-ficha:hover { background: var(--bg-soft, #f6f7f9); }
.seccion-ficha-title {
  display: block; padding: 6px 14px 3px;
  font-weight: 700; font-size: 16px; color: var(--text, #222); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seccion-ficha-img { display: block; }
.seccion-ficha-img img {
  width: 100%; height: 42px; object-fit: cover; display: block;
}

/* ── Noticias y rumores (carrusel de categorías) ──────────── */
.noticias-head { margin-bottom: 12px; }
.noticias-title { font-size: clamp(18px, 1.8vw, 24px); font-weight: 900; color: var(--text, #222); }
.noticias-swiper .swiper-slide { height: auto; }
.noticias-card {
  height: 300px;
  display: flex; flex-direction: column;
  background: var(--bg, #fff);
  border: 1px solid var(--line, #e6e8ec);
  border-radius: var(--radius-lg, 8px);
  overflow: hidden;
}
.noticias-card-head {
  flex: 0 0 auto;
  padding: 9px 14px;
  font-weight: 800; font-size: 15px; color: var(--text, #222);
  border-bottom: 2px solid var(--accent, #ff6a00);
}
.noticias-scroll {
  flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain;
}
.noticias-scroll::-webkit-scrollbar { width: 7px; }
.noticias-scroll::-webkit-scrollbar-thumb { background: var(--line, #e6e8ec); border-radius: 4px; }
.noticias-list { list-style: none; margin: 0; padding: 0; }
.noticia { border-bottom: 1px solid var(--line-soft, #f0f1f4); }
.noticia:last-child { border-bottom: none; }
.noticia-link { display: block; padding: 6px 14px; text-decoration: none; }
.noticia-link:hover { background: var(--bg-soft, #f6f7f9); }
.noticia-link:hover .noticia-titulo { color: var(--accent, #ff6a00); }

/* etiqueta de confianza */
.noticia-conf {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; padding: 1px 6px; border-radius: 3px; margin-bottom: 3px;
  background: #eceff3; color: #667;
}
.conf-ok    { background: #e4f6ec; color: #1c8b4c; }
.conf-rumor { background: #fdeede; color: #c9741a; }
.conf-est   { background: #eceff3; color: #667; }

.noticia-titulo {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--text, #222); font-size: 13px; line-height: 1.25;
}
.noticia-desc {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--text-soft, #666); font-size: 11px; line-height: 1.2; margin-top: 1px;
}

/* botón Ver más */
.noticias-mas {
  display: block; width: calc(100% - 24px); margin: 8px 12px 10px;
  padding: 7px 10px; text-align: center;
  font-family: inherit; font-weight: 700; font-size: 12px;
  color: var(--accent, #ff6a00); background: var(--bg-soft, #f6f7f9);
  border: 1px solid var(--line, #e6e8ec); border-radius: 6px; cursor: pointer;
  transition: all .15s;
}
.noticias-mas:hover { background: var(--accent, #ff6a00); border-color: var(--accent, #ff6a00); color: #fff; }

.noticias-swiper .swiper-button-prev,
.noticias-swiper .swiper-button-next {
  color: var(--text, #222); background: var(--bg, #fff);
  width: 34px; height: 34px; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.noticias-swiper .swiper-button-prev::after,
.noticias-swiper .swiper-button-next::after { font-size: 15px; font-weight: 700; }

/* ── Tendencias (carrusel de productos en tendencia) ──────── */
.trends-head { margin-bottom: 12px; }
.trends-title { font-size: clamp(18px, 1.8vw, 24px); font-weight: 900; color: var(--text, #222); }
.trends-swiper .swiper-slide { width: 210px; height: auto; }
.trend-card {
  display: block; height: 100%; text-decoration: none; overflow: hidden;
  background: var(--bg, #fff); border: 1px solid var(--line, #e6e8ec);
  border-radius: var(--radius-lg, 8px); transition: box-shadow .15s, transform .15s;
}
.trend-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.10); transform: translateY(-1px); }
.trend-img { position: relative; display: block; background: var(--bg-muted, #eef0f3); }
.trend-img img { width: 100%; height: 180px; object-fit: contain; display: block; padding: 8px; }
.trend-vert {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
  padding: 2px 7px; border-radius: 10px; color: #fff;
}
.v-frikis { background: #7c3aed; }
.v-vj     { background: #2563eb; }
.v-disp   { background: var(--accent, #ff6a00); }
.v-cosm   { background: #db2777; }
.v-hogar  { background: #059669; }
.v-com    { background: #667; }
.trend-body { display: block; padding: 8px 10px 10px; }
.trend-titulo {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; line-height: 1.25; color: var(--text, #222); font-weight: 600; min-height: 32px;
}
.trend-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.trend-precio { font-weight: 800; font-size: 14px; color: var(--text, #222); }
.trend-fuentes { font-size: 10px; color: var(--text-muted, #999); background: var(--bg-soft, #f6f7f9); padding: 1px 6px; border-radius: 8px; }
.trend-growth { font-size: 10px; font-weight: 800; color: #1c8b4c; }
.trends-swiper .swiper-button-prev,
.trends-swiper .swiper-button-next {
  color: var(--text, #222); background: var(--bg, #fff);
  width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.trends-swiper .swiper-button-prev::after,
.trends-swiper .swiper-button-next::after { font-size: 15px; font-weight: 700; }

/* ── B4 · CTAs ────────────────────────────────────────────── */
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin: 18px 0;
}
.cta-v2 {
  display: flex; align-items: center; justify-content: center;
  min-height: 64px; padding: 12px 16px; text-align: center;
  background: #fff; border: 1px solid var(--line, #e6e8ec);
  border-radius: var(--radius-lg, 8px);
  font-weight: 700; font-size: 15px;
  color: var(--accent, #1d7fd7); text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.cta-v2:hover { box-shadow: 0 4px 12px rgba(0,0,0,.10); transform: translateY(-1px); }

/* ── B5 · Categorías destacadas ───────────────────────────── */
.cats-v2-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.cat-v2 {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 10px 14px; text-align: center;
  background: #fff; border: 1px solid var(--line, #e6e8ec);
  border-radius: var(--radius-md, 6px);
  font-weight: 600; font-size: 14px; color: var(--text, #222);
  text-decoration: none; transition: border-color .15s, color .15s;
}
.cat-v2:hover { border-color: var(--accent, #1d7fd7); color: var(--accent, #1d7fd7); }

/* ── Fila scroll-snap reutilizable (B6 bajadas · B11 magazine) ─ */
.snap-row {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.snap-row::-webkit-scrollbar { height: 6px; }
.snap-row::-webkit-scrollbar-thumb { background: var(--line, #e6e8ec); border-radius: 3px; }

/* ── B6 · Bajadas de precio ───────────────────────────────── */
.mini-card {
  flex: 0 0 180px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line, #e6e8ec);
  border-radius: var(--radius-lg, 8px); padding: 10px;
  text-decoration: none; color: var(--text, #222);
  display: flex; flex-direction: column; gap: 6px;
  transition: box-shadow .15s;
}
.mini-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.mini-img { position: relative; display: block; }
.mini-img img { width: 100%; height: 140px; object-fit: contain; display: block; }
.mini-pct {
  position: absolute; top: 6px; left: 6px; right: 6px; max-width: calc(100% - 12px);
  background: var(--color-discount, #e03060); color: #fff;
  font-size: 11px; font-weight: 800; padding: 3px 8px; line-height: 1.3;
  border-radius: var(--radius-full, 999px); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; width: max-content;
}
.mini-name { font-size: 12px; line-height: 1.35; min-height: 32px; }
.mini-price { font-size: 15px; font-weight: 800; }
.mini-price s { font-size: 11px; font-weight: 400; color: var(--text-muted, #6b7280); margin-left: 6px; }

/* ── B8 · Noticias twits ──────────────────────────────────── */
.news-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.news-tab {
  flex: 0 0 auto; background: #fff; border: 1px solid var(--line, #e6e8ec);
  border-radius: var(--radius-full, 999px);
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  color: var(--text-soft, #555); cursor: pointer; white-space: nowrap;
  transition: all .15s;
}
.news-tab:hover { border-color: var(--accent, #1d7fd7); color: var(--accent, #1d7fd7); }
.news-tab.active { background: var(--accent, #1d7fd7); border-color: var(--accent, #1d7fd7); color: #fff; }
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px;
}
.news-card {
  background: #fff; border: 1px solid var(--line, #e6e8ec);
  border-radius: var(--radius-lg, 8px); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.news-meta { font-size: 11px; font-weight: 700; color: var(--accent, #1d7fd7); text-transform: uppercase; letter-spacing: .5px; }
.news-text { font-size: 14px; line-height: 1.45; color: var(--text, #222); margin: 0; }
.news-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.news-links a { font-size: 13px; font-weight: 700; color: var(--accent, #1d7fd7); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.news-links a.sec { color: var(--text-soft, #555); }
.news-links a:hover { text-decoration: underline; }

/* ── B10 · Marcas v2 ──────────────────────────────────────── */
.marcas-v2-row { display: flex; flex-wrap: wrap; gap: 10px; }
.marca-v2 {
  background: #1a1a1a; color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: var(--radius-md, 6px);
  font-weight: 800; font-size: 15px; letter-spacing: .3px;
  transition: transform .15s, opacity .15s;
}
.marca-v2:hover { transform: translateY(-1px); opacity: .88; }

/* ── B11 · Magazine ───────────────────────────────────────── */
.mag-carousel{position:relative}
.mag-nav{position:absolute;top:42%;transform:translateY(-50%);z-index:2;width:34px;height:34px;
  border-radius:50%;border:1px solid #ddd;background:#fff;cursor:pointer;font-size:20px;line-height:1;
  color:#333;box-shadow:0 2px 8px rgba(0,0,0,.12);display:flex;align-items:center;justify-content:center}
.mag-nav:hover{background:#f5f8ff}
.mag-prev{left:-10px}.mag-next{right:-10px}
@media(max-width:768px){.mag-nav{display:none}}
.mag-card {
  flex: 0 0 260px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line, #e6e8ec);
  border-radius: var(--radius-lg, 8px); overflow: hidden;
  text-decoration: none; color: var(--text, #222);
  display: flex; flex-direction: column;
  transition: box-shadow .15s;
}
.mag-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.mag-img img { width: 100%; height: 145px; object-fit: cover; display: block; }
.mag-cat { font-size: 10px; font-weight: 700; color: var(--accent, #1d7fd7); text-transform: uppercase; letter-spacing: .5px; padding: 10px 12px 0; }
.mag-title { font-size: 14px; font-weight: 700; line-height: 1.35; padding: 4px 12px; }
.mag-date { font-size: 11px; color: var(--text-muted, #6b7280); padding: 0 12px 12px; margin-top: auto; }
.mag-ver-todo { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--accent, #1d7fd7); text-decoration: none; }
.mag-ver-todo:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 780px) {
  .noticias-list { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .cats-v2-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .home-hero-2col { grid-template-columns: 240px 1fr; --hero-h: 320px; }
  .secciones-swiper .swiper-slide { width: 270px; }
}
@media (max-width: 780px) {
  /* Fichas pasan a 2 en fila, arriba; tarjetas debajo a todo el ancho */
  .home-hero-2col { grid-template-columns: 1fr; --hero-h: 300px; }
  .hero-fichas { grid-template-rows: none; grid-template-columns: 1fr 1fr; height: 150px; }
  .secciones-swiper .swiper-slide { width: 250px; }
}
@media (max-width: 620px) {
  .home-ctas-v2 { grid-template-columns: 1fr; }
  .cta-v2 { min-height: 56px; }
  .news-grid { grid-template-columns: 1fr; }
  .hero-v2-caption { padding: 10px 12px 26px; }
  .mini-card { flex-basis: 150px; }
  .mag-card { flex-basis: 220px; }
  .home-hero-2col { --hero-h: 280px; }
  .hero-fichas { height: 130px; }
  .seccion-ficha-img img { height: 33px; }
  .secciones-swiper .swiper-slide { width: 82%; }
  .trends-swiper .swiper-slide { width: 150px; }
  .trend-img img { height: 130px; }
}

.seccion-head-link{ text-decoration:none; color:inherit; cursor:pointer; }
.seccion-head-link:hover{ color: var(--accent, #ff6a00); }
.seccion-head-link:hover .seccion-head-arrow{ transform: translateX(2px); transition: transform .15s; }
