/* ============================================================
   TiendaIQ Bundles — estilos del widget de producto.
   Hereda la tipografía del tema (font: inherit). Todo va namespaced en
   .tiq-bdl para no pisar los estilos de la tienda.
   ============================================================ */

.tiq-bdl {
  --tiq-borde: #111;
  --tiq-badge: #111;
  --tiq-badge-txt: #fff;
  --tiq-etq: #e11d48;
  --tiq-txt: #111;
  --tiq-radio: 12px;
  --tiq-bot-fondo: #111;
  --tiq-bot-txt: #fff;
  --tiq-bot-radio: 8px;
  --tiq-bot-tam: 16px;

  font: inherit;
  color: var(--tiq-txt);
  margin: 20px 0;
  -webkit-font-smoothing: antialiased;
}

.tiq-bdl *,
.tiq-bdl *::before,
.tiq-bdl *::after { box-sizing: border-box; }

/* --- encabezado --- */
.tiq-bdl__head { margin-bottom: 12px; }
.tiq-bdl__h1 {
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.tiq-bdl__h2 {
  font-size: 0.9em;
  opacity: 0.65;
  margin-top: 2px;
}

/* --- lista de tarjetas --- */
.tiq-bdl__cards { display: flex; flex-direction: column; gap: 10px; }

.tiq-bdl__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--tiq-radio);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.tiq-bdl__card:hover { border-color: rgba(0, 0, 0, 0.28); }

.tiq-bdl__card.is-sel {
  border-color: var(--tiq-borde);
  box-shadow: 0 0 0 1px var(--tiq-borde) inset;
  background: rgba(0, 0, 0, 0.015);
}

/* radio dibujado a mano para no depender del input del tema */
.tiq-bdl__radio {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.28);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.15s ease;
}
.tiq-bdl__card.is-sel .tiq-bdl__radio { border-color: var(--tiq-borde); }
.tiq-bdl__card.is-sel .tiq-bdl__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--tiq-borde);
}

.tiq-bdl__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.tiq-bdl__titulo {
  font-weight: 650;
  font-size: 0.98em;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tiq-bdl__etq {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tiq-etq);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
.tiq-bdl__sub { font-size: 0.85em; opacity: 0.6; line-height: 1.25; }
.tiq-bdl__ahorro { font-size: 0.82em; font-weight: 600; color: var(--tiq-etq); }

.tiq-bdl__precio { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.tiq-bdl__precio-now { font-weight: 700; font-size: 1em; line-height: 1.2; }
.tiq-bdl__precio-old { font-size: 0.82em; opacity: 0.5; text-decoration: line-through; }

/* --- badge (ribbon superior derecho) --- */
.tiq-bdl__badge {
  position: absolute;
  top: -9px;
  right: 14px;
  background: var(--tiq-badge);
  color: var(--tiq-badge-txt);
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.4;
  white-space: nowrap;
}

/* --- botón --- */
.tiq-bdl__cta {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 15px 20px;
  border: none;
  border-radius: var(--tiq-bot-radio);
  background: var(--tiq-bot-fondo);
  color: var(--tiq-bot-txt);
  font: inherit;
  font-size: var(--tiq-bot-tam);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}
.tiq-bdl__cta:hover { filter: brightness(1.08); }
.tiq-bdl__cta:active { transform: translateY(1px); }
.tiq-bdl__cta:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 480px) {
  .tiq-bdl__card { padding: 12px 13px; gap: 10px; }
  .tiq-bdl__titulo { font-size: 0.92em; }
}
