/* JCBike Ofertas y campañas */
.jcbp, .jcbp-home {
  --p-accent: var(--jc-accent, #b8864b);
  --p-ink: var(--jc-ink, #1d1f23);
  --p-paper: var(--jc-paper, #f6f3ee);
  --p-line: #e7e1d7;
  --p-sale: #b3261e;
  --p-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --p-sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--p-sans);
  color: var(--p-ink);
}
.jcbp *, .jcbp-home * { box-sizing: border-box; }
.jcbp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jcbp-logo { display: block; width: 100%; height: auto; }

/* ---------- Tarjeta ---------- */
.jcbp-card { min-width: 0; }
.jcbp-card__link { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none !important; border-radius: 16px; background: #fff; border: 1px solid var(--p-line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.jcbp-card__link:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
.jcbp-card__img { position: relative; aspect-ratio: 1 / 1; background: var(--p-paper); display: flex; align-items: center; justify-content: center; }
.jcbp-card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; }
.jcbp-badge { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 999px; background: var(--p-sale); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.jcbp-card__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; flex: 1; }
.jcbp-card__brand { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8b8d92; }
.jcbp-card__name { margin: 0; font-family: var(--p-sans); font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--p-ink); text-transform: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.jcbp-card__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.jcbp-card__price { font-size: 19px; font-weight: 800; color: var(--p-sale); font-variant-numeric: tabular-nums; }
.jcbp-card__ref { font-size: 13px; color: #8b8d92; }
.jcbp-card__save { font-size: 12px; font-weight: 700; color: #2b7a0b; }
.jcbp-card__low { margin-top: 2px; font-size: 12px; font-weight: 700; color: #9a6700; }

/* ---------- Cuenta atrás ---------- */
.jcbp-count { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jcbp-count__label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }
.jcbp-count__u { display: inline-flex; flex-direction: column; align-items: center; min-width: 46px; padding: 6px 6px 5px; border-radius: 10px; background: var(--p-ink); color: #fff; line-height: 1; }
.jcbp-count__u b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.jcbp-count__u small { margin-top: 3px; font-size: 10px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Botones ---------- */
.jcbp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--p-ink); color: #fff !important; font-weight: 800; font-size: 15px; text-decoration: none !important; transition: background .2s, transform .2s; }
.jcbp-btn:hover { background: var(--p-accent); transform: translateY(-2px); }
.jcbp-btn span { opacity: .7; font-weight: 600; }
.jcbp-btn i { font-style: normal; }
.jcbp-btn--sm { padding: 8px 16px; font-size: 14px; border: 0; cursor: pointer; }

/* ---------- Bloque de portada ---------- */
.jcbp-home { margin: 3rem auto; max-width: 1320px; padding: 0 16px; }
.jcbp-home__head { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 18px; }
.jcbp-home__brand { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 320px; }
.jcbp-home__logo { margin: 0; width: min(300px, 78vw); line-height: 0; }
.jcbp-home__sub { margin: 0; color: #5d5f64; font-size: 15px; max-width: 520px; }
.jcbp-home__nav { display: flex; gap: 8px; margin-left: auto; }
.jcbp-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--p-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.jcbp-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--p-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.jcbp-arrow:hover { background: var(--p-paper); }
.jcbp-arrow[disabled] { opacity: .35; cursor: default; }
.jcbp-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: none; }
.jcbp-track::-webkit-scrollbar { display: none; }
.jcbp-track > .jcbp-card { scroll-snap-align: start; }
.jcbp-home__foot { display: flex; justify-content: center; margin-top: 8px; }

/* ---------- Página ---------- */
.jcbp { max-width: 1320px; margin: 0 auto 3rem; }
.jcbp-hero { position: relative; overflow: hidden; border-radius: 24px; background: #16181b; color: #fff; margin: 0 0 22px; }
.jcbp-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 0%, rgba(200,151,90,.35), transparent 60%); pointer-events: none; }
.jcbp--black-friday .jcbp-hero { background: #0b0b0d; }
.jcbp--cyber-monday .jcbp-hero { background: #0f1733; }
.jcbp--cyber-monday .jcbp-hero::after { background: radial-gradient(ellipse at 85% 0%, rgba(56,225,255,.25), transparent 60%); }
.jcbp--navidad .jcbp-hero { background: #0f3226; }
.jcbp--rebajas-invierno .jcbp-hero { background: #132b45; }
.jcbp--rebajas-verano .jcbp-hero { background: #b9481f; }
.jcbp--rebajas-verano .jcbp-hero::after { background: radial-gradient(ellipse at 85% 0%, rgba(255,209,102,.35), transparent 60%); }
.jcbp-hero__inner { position: relative; z-index: 1; padding: clamp(26px, 5vw, 56px) clamp(18px, 4vw, 52px); }
.jcbp-hero__logo { width: min(340px, 82vw); margin-bottom: 18px; }
.jcbp-hero__title { margin: 0 0 10px; font-family: var(--p-serif); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.02; color: #fff; text-transform: none; letter-spacing: -.01em; }
.jcbp-hero__intro { margin: 0 0 22px; max-width: 640px; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; color: rgba(255,255,255,.82); }
.jcbp-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 30px; }
.jcbp-hero__stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 0; }
.jcbp-hero__stats div { display: flex; flex-direction: column-reverse; }
.jcbp-hero__stats dd { margin: 0; font-family: var(--p-serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; line-height: 1; color: #fff; }
.jcbp-hero__stats dt { margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.jcbp-hero .jcbp-count__label { color: rgba(255,255,255,.75); }
.jcbp-hero .jcbp-count__u { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }

.jcbp-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 6px; scrollbar-width: none; }
.jcbp-tabs::-webkit-scrollbar { display: none; }
.jcbp-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--p-paper); color: var(--p-ink) !important; font-weight: 700; font-size: 14px; text-decoration: none !important; white-space: nowrap; transition: background .2s; }
.jcbp-tab span { font-size: 12px; font-weight: 700; opacity: .55; }
.jcbp-tab:hover { background: #ebe4d8; }
.jcbp-tab.is-on { background: var(--p-ink); color: #fff !important; }
.jcbp-tab.is-on span { opacity: .75; }
.jcbp-tab.is-hot { box-shadow: inset 0 0 0 2px var(--p-sale); }

.jcbp-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 0 0 18px; }
.jcbp-filters label { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 4px; margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6a6c71; }
.jcbp-filters select { min-width: 170px; height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--p-line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--p-ink); }
.jcbp-filters__n { margin: 0 0 10px auto; font-size: 14px; color: #5d5f64; }
.jcbp-filters__n a { color: var(--p-accent); font-weight: 700; }

.jcbp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.jcbp-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 28px 0 10px; }
.jcbp-pages a, .jcbp-pages span { min-width: 42px; height: 42px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--p-paper); color: var(--p-ink) !important; font-weight: 700; text-decoration: none !important; }
.jcbp-pages a.is-on { background: var(--p-ink); color: #fff !important; }
.jcbp-empty { padding: 30px 0; text-align: center; color: #5d5f64; }
.jcbp-empty--big { padding: 50px 16px; border-radius: 18px; background: var(--p-paper); }
.jcbp-legal { margin: 22px 0 0; font-size: 12px; color: #8b8d92; text-align: center; }

/* ---------- Menú ---------- */
.jcbp-menu-link { position: relative; }
.jcbp-menu-link .jcbp-menu-dot { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #d23b2f; vertical-align: middle; animation: jcbp-pulse 1.8s ease-in-out infinite; }
@keyframes jcbp-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
.jcbp-hidden-theme { display: none !important; }

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1199px) {
  .jcbp-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
}
@media (max-width: 991px) {
  .jcbp-track { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; }
}
@media (max-width: 767px) {
  .jcbp-home { margin: 2rem auto; padding: 0 12px; }
  .jcbp-home__head { gap: 12px; margin-bottom: 14px; }
  .jcbp-home__nav { display: none; }
  .jcbp-home__sub { font-size: 14px; }
  .jcbp-track { grid-auto-columns: calc((100% - 12px) / 2.15); gap: 12px; margin: 0 -12px; padding: 4px 12px 14px; scroll-padding: 0 12px; }
  .jcbp-home__foot .jcbp-btn { width: 100%; justify-content: center; }
  .jcbp { margin: 0 0 2rem; }
  .jcbp-hero { border-radius: 0 0 22px 22px; margin: 0 -15px 18px; }
  .jcbp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .jcbp-card__body { padding: 10px 10px 12px; }
  .jcbp-card__name { font-size: 13px; }
  .jcbp-card__price { font-size: 17px; }
  .jcbp-badge { top: 8px; left: 8px; font-size: 12px; padding: 4px 8px; }
  .jcbp-filters { gap: 8px; }
  .jcbp-filters label { flex: 1 1 calc(50% - 8px); }
  .jcbp-filters select { min-width: 0; width: 100%; }
  .jcbp-filters__n { margin: 2px 0 0; width: 100%; }
  .jcbp-count__u { min-width: 40px; padding: 5px 4px 4px; }
  .jcbp-count__u b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .jcbp-card__link, .jcbp-btn, .jcbp-track { transition: none; scroll-behavior: auto; }
  .jcbp-menu-link .jcbp-menu-dot { animation: none; }
}
