/* ===== Slider V2 + Category Strip ===== */

/* Ancho base compartido con products2.php */
:root {
  --po-content-w: min(1600px, 95vw);
}

/* ── Wrapper hero ── */
.po-hero-wrap {
  background: #f5f5f5;
}

/* Ocultar paginación y flechas del slider responsiveSlides */
.centered-btns_tabs,
.centered-btns_nav { display: none !important; }

/* ── Slide inner: imagen de fondo full-width ── */
.po-slide-inner {
  width: 100%;
  height: 450px;
  background-image: var(--po-bg-d);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Degradé inferior hacia las categorías */
.po-slide-inner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 110px;
  background: linear-gradient(to bottom, transparent 0%, rgba(245,245,245,.92) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Contenedor centrado dentro del slide ── */
.po-slide-content {
  width: var(--po-content-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* ── Texto del slide ── */
.po-slide-text {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.po-slide-text p {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 14px;
  color: #333;
}

.po-slide-text p.po-slide-white { color: #fff; }

.po-slide-text small {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  display: block;
  margin-top: 8px;
}

.po-slide-text .btnRedSlide p {
  font-size: 18px !important;
}

/* ── Strip de categorías ── */
.po-cat-strip {
  position: relative;
  z-index: 10;
  margin-top: -46px;
  padding-bottom: 20px;
}

/* Centrado e igual ancho que el resto del contenido */
.po-cat-scroll {
  display: flex;
  gap: 20px;
  padding: 0 0 8px;
  width: var(--po-content-w);
  margin: 0 auto;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.po-cat-scroll::-webkit-scrollbar { display: none; }
.po-cat-scroll.is-dragging { cursor: grabbing; }

/* Tile de categoría */
.po-cat-tile {
  flex: 0 0 145px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  text-decoration: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 12px 14px;
  transition: transform .18s ease, box-shadow .18s ease;
  user-select: none;
}

.po-cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.po-cat-img {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f0f0;
}

.po-cat-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #FF1717;
  text-align: center;
  padding: 0 0 10px;
  line-height: 1.25;
  letter-spacing: .2px;
  text-transform: none;
  word-break: break-word;
  hyphens: auto;
}

/* ── Desktop: banner más grande ── */
@media (max-width: 901px) {
  .po-slide-inner {
    height: 300px !important;
    margin-top: 62px;
  }

  .rslides li {
    height: 398px !important;
  }

  .po-slide-text p {
    font-size: 62px;
    margin-left: 35%;
  }

  .po-slide-text small {
    font-size: 21px;
  }

  .po-cat-tile {
    flex: 0 0 190px;
  }

  .po-cat-img {
    height: 230px;
  }

  .po-cat-name {
    font-size: 14px;
  }
}

/* ── Mobile ── */
@media (max-width: 650px) {
  .po-slide-inner {
    background-image: var(--po-bg-m, var(--po-bg-d));
    background-position: top center;
    align-items: flex-start;
    padding-top: 20px;
    height: 650px !important;
    margin-top: 31px;
  }

  .rslides li {
    height: 660px !important;
  }

  .po-slide-content {
    width: 100%;
    padding: 0 16px;
  }

  .po-slide-text {
    width: 75%;
  }

  .po-slide-text p { font-size: 36px; }
  .po-slide-text small { font-size: 14px; }

  .po-slide-text .btnRedSlide p {
    font-size: 13px !important;
    padding: 4px 4px;
    width: 190px !important;
  }

  .po-cat-strip { margin-top: -36px; }

  .po-cat-scroll {
    width: 100%;
    padding: 0 12px 8px;
  }

  .po-cat-tile { flex: 0 0 110px; }
  .po-cat-img { height: 76px; }
  .po-cat-name { font-size: 10px; }
}

@media (max-width: 480px) {
  .po-slide-text p {
    font-size: 28px;
    line-height: 1.05;
  }
  .po-slide-text small { font-size: 12px; }
}

/* ── Sección de productos destacados (index.php) ── */
.po-home-section {
  padding: 0;
}

.po-home-wrap {
  width: var(--po-content-w);
  margin: 0 auto;
  padding: 20px 0 32px;
}

/* Título estilo MercadoLibre */
.po-home-wrap .contentSubTitle,
.po-i2-products-wrap .contentSubTitle {
  background: #fff;
  border-radius: 6px 6px 0 0;
  padding: 18px 20px 14px;
  margin-bottom: 0;
}

.po-home-wrap .contentSubTitle h2,
.po-i2-products-wrap .contentSubTitle h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #333;
  border: none;
  padding: 0;
  text-align: left;
}
