/* cl_fichaproducto — ficha de producto */
:root {
  --clf-rojo: #d20000;
  --clf-rojo-osc: #a80000;
  --clf-negro: #111;
  --clf-gris: #6b6b6b;
  --clf-gris-cl: #f4f4f4;
  --clf-borde: #e6e6e6;
  --clf-verde: #1f7a35;
  --clf-verde-cl: #e9f6ed;
  --clf-wa: #25d366;
  --clf-radio: 12px;
}

/* ================= Widgets del constructor dentro de la ficha nueva ================= */
.clf-ficha .stsb_pro_name {
  font-size: 30px; line-height: 1.15 !important; font-weight: 800; letter-spacing: -.01em;
  margin: 4px 0 2px; text-transform: none;
}
.clf-ficha .elementor-widget-st-product-summary .stsb_read_more_box { font-size: 16.5px; line-height: 1.55; color: #333; }
.clf-ficha .elementor-widget-st-product-summary .stsb_read_more_box p { margin: 0 0 6px; }
.clf-ficha .elementor-widget-st-product-summary .stsb_read_more_box p:empty { display: none; }

/* Caja de compra */
.clf-ficha .clf-compra {
  border: 1px solid var(--clf-borde); border-radius: var(--clf-radio);
  padding: 20px !important; gap: 10px; margin: 6px 0 4px; background: #fff;
}
.clf-ficha .stsb_pm_price_wrapper { align-items: baseline !important; gap: 4px 12px !important; }
.clf-ficha .stsb_pm_price { font-size: 38px !important; font-weight: 900 !important; color: var(--clf-rojo) !important; letter-spacing: -.02em; line-height: 1.1; }
.clf-ficha .stsb_pm_old_price { font-size: 18px; color: var(--clf-gris) !important; }

/* Stock (icon-box del constructor): una línea en vez de una caja */
.clf-ficha .clf-stock .elementor-icon-box-wrapper { gap: 8px !important; padding: 0 !important; border: 0 !important; background: none !important; }
.clf-ficha .clf-stock .elementor-widget-container { padding: 0 !important; border: 0 !important; background: none !important; }
.clf-ficha .clf-stock .elementor-icon { font-size: 18px !important; }
.clf-ficha .clf-stock .elementor-icon svg { width: 18px; height: 18px; }
.clf-ficha .clf-stock .elementor-icon-box-title { font-size: 15px; font-weight: 700; margin: 0; }

/* Cantidad + botón */
.clf-ficha .stsb_pm_action_button_add_to_cart_wrapper { gap: 10px !important; }
.clf-ficha .stsb_qty_wrap_outer { width: 118px; flex: none; }
.clf-ficha .stsb_qty_wrap button { width: 36px; }
.clf-ficha .stsb_qty_wrap input {
  height: 54px; padding: 0 36px; border: 1px solid var(--clf-borde); border-radius: 10px;
  font-weight: 700; font-size: 16px; -moz-appearance: textfield;
}
.clf-ficha .stsb_qty_wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.clf-ficha .stsb-add-to-cart.elementor-button {
  min-height: 54px; border-radius: 10px !important; background: var(--clf-rojo) !important; color: #fff !important;
  font-size: 17px !important; font-weight: 800 !important; border: 0 !important; width: 100%;
}
.clf-ficha .stsb-add-to-cart.elementor-button:hover { background: var(--clf-rojo-osc) !important; }
.clf-ficha .stsb_pm_action_button_label { text-transform: none; }

/* Pegatina de descuento sobre la foto */
.clf-ficha .stsb_pm_sticker_reduced-price {
  font-weight: 900 !important; font-size: 15px; padding: 5px 11px !important; border-radius: 6px !important;
  border: 0 !important; background: var(--clf-rojo) !important;
}

/* Compartir: pequeño y alineado a la izquierda */
.clf-ficha .elementor-widget-st-product-share .stsb_pm_share_wrapper { justify-content: flex-start !important; }
.clf-ficha .elementor-widget-st-product-share .stsb_pm_share_item {
  width: 34px; height: 34px; border: 1px solid var(--clf-borde); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.clf-ficha .elementor-widget-st-product-share .stsb_pm_share_item svg { width: 15px; height: 15px; }

/* Títulos de sección del constructor (relacionados) */
.clf-ficha .clf-titulo .elementor-heading-title { font-size: 24px; font-weight: 900; text-align: left; }

/* ================= Bloques del módulo ================= */
.clf-cabecera { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--clf-gris); }
.clf-cabecera .clf-marca { height: 30px; width: auto; object-fit: contain; }
.clf-cabecera .clf-marca-txt { font-weight: 700; color: var(--clf-negro); }
.clf-estrellas-link { color: var(--clf-negro) !important; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.clf-estrellas-link:hover { text-decoration: underline; }
.clf-estrellas i { font-style: normal; color: #cfcfcf; letter-spacing: 1px; }
.clf-estrellas i.on { color: #f5a623; }
.clf-ventas::before { content: "·"; margin-right: 8px; }

.clf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.clf-chips span { background: var(--clf-gris-cl); border: 1px solid var(--clf-borde); border-radius: 30px; padding: 5px 12px; font-size: 14px; font-weight: 600; color: var(--clf-negro); }
.clf-chips small { font-weight: 400; color: var(--clf-gris); font-size: 12.5px; margin-right: 2px; }

.clf-btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 2px solid var(--clf-wa); color: #128c4a !important; border-radius: 10px; padding: 11px;
  font-weight: 700; font-size: 15px; text-decoration: none !important; background: #fff;
}
.clf-btn-wa:hover { background: #f1fcf5; }

.clf-incluye { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.clf-incluye > div { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.clf-incluye h4 { margin: 0 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.clf-incluye ul { margin: 0; padding: 0; list-style: none; }
.clf-incluye li { padding-left: 22px; position: relative; margin: 3px 0; line-height: 1.35; }
.clf-si { background: var(--clf-verde-cl); }
.clf-si h4 { color: var(--clf-verde); }
.clf-si li::before { content: "✓"; position: absolute; left: 0; color: var(--clf-verde); font-weight: 900; }
.clf-no { background: var(--clf-gris-cl); }
.clf-no h4 { color: var(--clf-gris); }
.clf-no li::before { content: "✕"; position: absolute; left: 0; color: var(--clf-gris); font-weight: 900; }
.clf-ver-acc { display: inline-block; margin-top: 6px; color: var(--clf-rojo) !important; font-weight: 700; font-size: 13px; }

.clf-confianza { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0; }
.clf-confianza > div { text-align: center; font-size: 12.5px; line-height: 1.3; padding: 10px 4px; border: 1px solid var(--clf-borde); border-radius: 10px; color: var(--clf-gris); }
.clf-confianza svg { width: 26px; height: 26px; margin: 0 auto 6px; display: block; color: var(--clf-negro); }
.clf-confianza b { display: block; font-size: 13px; color: var(--clf-negro); }

/* Accesorios */
.clf-accesorios { padding: 8px 0; }
.clf-accesorios h2, .clf-sec h2 { font-size: 24px; font-weight: 900; margin: 0 0 6px; text-transform: none; }
.clf-lead { color: var(--clf-gris); margin: 0 0 18px; }
.clf-acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.clf-acc { display: flex; gap: 12px; align-items: center; border: 1px solid var(--clf-borde); border-radius: var(--clf-radio); padding: 12px; cursor: pointer; margin: 0; font-weight: 400; }
.clf-acc:has(input:checked) { border-color: var(--clf-rojo); background: #fff6f6; }
.clf-acc input { width: 20px; height: 20px; accent-color: var(--clf-rojo); flex: none; margin: 0; }
.clf-acc img { width: 64px; height: 64px; object-fit: contain; flex: none; background: var(--clf-gris-cl); border-radius: 8px; }
.clf-acc-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 14px; line-height: 1.3; text-align: left; }
.clf-acc-tx a { color: var(--clf-negro) !important; text-decoration: none; font-weight: 500; }
.clf-acc-tx a:hover { text-decoration: underline; }
.clf-acc-tx b { font-weight: 900; font-size: 15px; }
.clf-acc-tx small { color: var(--clf-gris); }
.clf-acc-off { opacity: .55; cursor: default; }
.clf-acc-pie { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 18px; margin-top: 16px; font-size: 15px; }
.clf-acc-btn {
  border: 0; border-radius: 10px; background: var(--clf-rojo); color: #fff; font-weight: 800; font-size: 15px;
  padding: 12px 22px; cursor: pointer;
}
.clf-acc-btn:disabled { background: #c9c9c9; cursor: default; }

/* Pestañas */
.clf-pestanas-wrap { position: relative; }
.clf-tabs { position: sticky; top: var(--clf-top, 0px); z-index: 30; background: #fff; border-bottom: 1px solid var(--clf-borde); margin-bottom: 8px; }
.clf-tabs-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.clf-tabs-in::-webkit-scrollbar { display: none; }
.clf-tabs a { white-space: nowrap; text-decoration: none !important; font-weight: 700; padding: 14px 16px; border-bottom: 3px solid transparent; color: var(--clf-gris) !important; }
.clf-tabs a.on, .clf-tabs a:hover { color: var(--clf-negro) !important; border-color: var(--clf-rojo); }
.clf-sec { padding: 36px 0; border-top: 1px solid var(--clf-borde); }
.clf-sec:first-of-type, .clf-tabs + .clf-sec { border-top: 0; }
.clf-desc { font-size: 16.5px; line-height: 1.6; max-width: 900px; }
.clf-desc img { max-width: 100%; height: auto; }
.clf-desc ul { padding-left: 22px; list-style: disc; }
.clf-desc ol { padding-left: 22px; list-style: decimal; }
.clf-desc h3 { font-size: 19px; font-weight: 800; margin: 18px 0 8px; }
.clf-desc li { margin: 4px 0; }

.clf-specs { width: 100%; max-width: 900px; border-collapse: collapse; font-size: 15px; }
.clf-specs th, .clf-specs td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--clf-borde); vertical-align: top; }
.clf-specs th { width: 42%; color: var(--clf-gris); font-weight: 500; }
.clf-specs tr:nth-child(odd) { background: var(--clf-gris-cl); }
.clf-specs td { font-weight: 700; }

.clf-videos { display: grid; gap: 16px; max-width: 900px; }
.clf-video, .clf-videos iframe { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--clf-radio); overflow: hidden; background: #000; padding: 0; cursor: pointer; }
.clf-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.clf-video:hover img { opacity: 1; }
.clf-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 54px; border-radius: 14px; background: var(--clf-rojo); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; }

.clf-faq { max-width: 900px; }
.clf-faq details { border: 1px solid var(--clf-borde); border-radius: 10px; margin-bottom: 10px; padding: 0 18px; background: #fff; }
.clf-faq summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.clf-faq summary::-webkit-details-marker { display: none; }
.clf-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--clf-rojo); }
.clf-faq details[open] summary::after { content: "–"; }
.clf-faq-r { padding-bottom: 14px; color: #333; }
.clf-faq-r p { margin: 0 0 8px; }

.clf-opiniones { max-width: 900px; }

/* Barra fija de compra (solo móvil) */
.clf-barra { display: none; }

@media (max-width: 767px) {
  .clf-ficha .stsb_pro_name { font-size: 23px; }
  .clf-ficha .stsb_pm_price { font-size: 32px !important; }
  .clf-ficha .clf-compra { padding: 16px !important; }
  .clf-incluye { grid-template-columns: 1fr; }
  .clf-confianza { grid-template-columns: repeat(2, 1fr); }
  .clf-acc-grid { grid-template-columns: 1fr; }
  .clf-acc-pie { justify-content: space-between; }
  .clf-accesorios h2, .clf-sec h2 { font-size: 21px; }
  .clf-sec { padding: 28px 0; }

  .clf-barra {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff;
    border-top: 1px solid var(--clf-borde); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); transform: translateY(110%); transition: transform .25s;
  }
  .clf-barra.ver { transform: none; }
  .clf-barra-precio { font-weight: 900; font-size: 20px; color: var(--clf-rojo); line-height: 1.1; white-space: nowrap; }
  .clf-barra-precio s { display: block; font-weight: 400; font-size: 12px; color: var(--clf-gris); }
  .clf-barra-btn { flex: 1; border: 0; border-radius: 10px; background: var(--clf-rojo); color: #fff; font-weight: 800; font-size: 16px; padding: 13px; }
  .clf-barra-btn:disabled { background: #c9c9c9; }
  body.clf-ficha-on { padding-bottom: 76px; }
}
