/* Pagina de producto (public/js/producto.js) */

/* precio: antes era un <h1> (mal para SEO); mismo aspecto con un div */
.sidebar--single-product .card-pricing .price .price-amount {
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  color: #fff;
}
.sidebar--single-product .card-pricing .price .price-amount sup { font-size: 18px; }
.sidebar--single-product .card-pricing .price .price-pen,
.sidebar--single-product .card-pricing .price .price-fee {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  line-height: 1.4;
}
.sidebar--single-product .card-pricing .price .price-fee { font-size: 12px; opacity: .85; }

/* confianza bajo el boton de compra */
.buy-trust {
  list-style: none;
  margin: 0;
  padding: 4px 30px 18px;
  font-size: 13px;
  color: #3b4659;
}
.buy-trust li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.buy-trust .lnr { color: var(--sx-accent, #1fb5e8); font-size: 15px; }
.buy-trust a { color: inherit; text-decoration: underline; }
.buy-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 30px 0;
  padding: 9px 14px;
  border: 1px solid #25d366;
  border-radius: 6px;
  color: #128c4b !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none !important;
}
.buy-whatsapp:hover { background: #effcf4; }
.buy-whatsapp svg { flex: 0 0 18px; width: 18px; height: 18px; fill: #25d366; }

/* descripcion larga plegada */
.desc-collapse.is-collapsed {
  max-height: var(--desc-max, 900px);
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(#000 75%, transparent);
          mask-image: linear-gradient(#000 75%, transparent);
}
.desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 9px 16px;
  border: 1px solid var(--sx-accent, #1fb5e8);
  border-radius: 6px;
  background: #fff;
  color: var(--sx-accent, #1fb5e8);
  font-weight: 600;
  cursor: pointer;
}
.desc-toggle[aria-expanded="true"] .lnr { transform: rotate(180deg); }

/* barra de compra fija: solo celular y tablet */
.buybar { display: none; }
@media (max-width: 991px) {
  .buybar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -4px 18px rgba(20, 30, 50, .12);
    transform: translateY(0);
    transition: transform .2s ease;
  }
  .buybar.is-hidden { transform: translateY(110%); }
  .buybar__price { display: flex; flex-direction: column; line-height: 1.25; }
  .buybar__price strong { font-size: 19px; color: #1f2a3c; }
  .buybar__price small { font-size: 12px; color: #6b7588; }
  .buybar__btn { flex: 0 0 auto; min-width: 150px; height: 46px; font-size: 16px; text-transform: none; }
  body.has-buybar { padding-bottom: 72px; }
  body.has-buybar .go_top, body.has-buybar #back-top, body.has-buybar .scroll-top { bottom: 84px !important; }
}

/* titulo de seccion que antes era un segundo <h1> */
.section-title h2.section-h1 { font-weight: 400; margin-bottom: 24px; }

/* insignias del producto/autor (destacado, autor elite): icono + titulo + explicacion */
.sidebar-card.badge-card { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.badge-card__icon { flex: 0 0 42px; width: 42px; height: 42px; object-fit: contain; }
.badge-card__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.badge-card__text strong { font-size: 15px; font-weight: 600; color: #1f2a3c; }
.badge-card__text span { font-size: 13px; color: #6b7588; }

/* espacio inferior dentro de la tarjeta de precio (el margen del ultimo elemento se "salia" de la tarjeta) */
.sidebar--single-product .sidebar-card.card-pricing { padding-bottom: 26px; }
