/* Banner de ofertas patrocinadas - Parque Berrío */
.pbob {
  --pbob-h: 340px;
  --pbob-hm: 420px;
  --pbob-accent: #e8452c;
  --pbob-bg: #14213d;
  --pbob-page: #f4f1ec;
  --pbob-ink: #1d2329;
  --pbob-muted: #5b636b;
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--pbob-page);
  color: var(--pbob-ink);
  font-family: inherit;
  /* Sin position ni z-index: el banner nunca se dibuja encima de los menús del tema */
}
.pbob *, .pbob *::before, .pbob *::after { box-sizing: border-box; }
.pbob[hidden] { display: none !important; }
.pbob a { text-decoration: none; }
.pbob a:focus-visible, .pbob button:focus-visible { outline: 3px solid var(--pbob-accent); outline-offset: 2px; }

/* ---------- Pista de diapositivas ---------- */
.pbob-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.pbob-track::-webkit-scrollbar { display: none; }

.pbob-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
  height: var(--pbob-h);
  padding: 16px max(16px, calc((100% - 1200px) / 2));
}

/* ---------- Izquierda: anuncio ---------- */
.pbob-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--pbob-ink);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.pbob-item:hover .pbob-cta { filter: brightness(1.08); }
.pbob-item__img { display: block; min-height: 0; background: #e9e6e1; }
.pbob-item__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pbob-noimg { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #ece8e2 0 12px, #e4dfd8 12px 24px); }

.pbob-item__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 18px 22px;
}
.pbob-badge {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--pbob-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pbob-cat { font-size: 13px; color: var(--pbob-muted); }
.pbob-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pbob-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pbob-price__now { font-size: 26px; font-weight: 800; color: var(--pbob-accent); font-variant-numeric: tabular-nums; }
.pbob-price__old { font-size: 15px; color: var(--pbob-muted); }
.pbob-cta {
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pbob-ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

/* ---------- Derecha: perfil de la empresa ---------- */
.pbob-profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--pbob-bg);
  color: #fff;
  overflow: hidden;
}
/* Imagen de fondo del perfil (portada del perfil profesional o imagen subida),
   con un velo del color de la marca para que el texto se lea */
.pbob-profile.has-img {
  background-color: var(--pbob-bg);
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), var(--pbob-img);
  background-image: linear-gradient(color-mix(in srgb, var(--pbob-bg) 72%, transparent), color-mix(in srgb, var(--pbob-bg) 72%, transparent)), var(--pbob-img);
  background-size: cover;
  background-position: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.pbob-profile.has-img .pbob-btn { text-shadow: none; }

.pbob-sponsored {
  align-self: flex-end;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.pbob-profile__head { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; }
.pbob-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  font-size: 24px;
  font-weight: 800;
}
.pbob-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbob-name { font-size: 20px; font-weight: 800; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.pbob-check { vertical-align: -3px; color: #4cc2ff; }
.pbob-info {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pbob-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 13px; opacity: 0.8; }
.pbob-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pbob-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--pbob-ink) !important;
  font-weight: 700;
  font-size: 14px;
}
.pbob-btn--wa { background: #25d366; color: #fff !important; }
.pbob-btn--ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }

/* ---------- Controles ---------- */
.pbob-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
}
.pbob-ctl {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d8d3cc;
  border-radius: 50%;
  background: #fff;
  color: var(--pbob-ink);
  cursor: pointer;
}
.pbob-ctl .pbob-i-play { display: none; }
.pbob-ctl[aria-pressed="true"] .pbob-i-pause { display: none; }
.pbob-ctl[aria-pressed="true"] .pbob-i-play { display: block; }
.pbob-dots { display: flex; gap: 6px; padding: 0 4px; }
.pbob-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #c9c3bb;
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}
.pbob-dot.is-on { width: 26px; background: var(--pbob-accent); }

/* ---------- Celular: anuncio arriba, perfil abajo ---------- */
@media (max-width: 767.98px) {
  .pbob-slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 10px;
    height: var(--pbob-hm);
    padding: 12px;
  }
  .pbob-item { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
  .pbob-item__body { padding: 12px 14px; gap: 6px; }
  .pbob-badge { font-size: 12px; padding: 4px 8px; }
  .pbob-title { font-size: 17px; }
  .pbob-price__now { font-size: 20px; }
  .pbob-cta { padding: 8px 14px; font-size: 14px; }
  .pbob-cat { display: none; }
  .pbob-profile { padding: 12px 14px; gap: 8px; }
  .pbob-avatar { width: 44px; height: 44px; font-size: 18px; }
  .pbob-name { font-size: 17px; }
  .pbob-info { -webkit-line-clamp: 2; font-size: 13px; }
  .pbob-meta { display: none; }
  .pbob-sponsored { order: 9; align-self: flex-start; }
  .pbob-btn { min-height: 36px; padding: 6px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .pbob-dot { transition: none; }
}
