/* Tecnosmart Precios — bloque de precios, catálogo, carrito, checkout y pago por transferencia. */
.tsp-block, .tsp-block span, .tsp-mini, .tsp-mini span, .tsp-ci, .tsp-ci span { display: block; }
.tsp-block, .tsp-mini, .tsp-ci, .tsp-tarifas, .tsp-pago { font-weight: 400; line-height: 1.35; letter-spacing: normal; text-align: left; }
.tsp-block .woocommerce-Price-amount, .tsp-mini .woocommerce-Price-amount, .tsp-ci .woocommerce-Price-amount { display: inline; }
/* El tema fuerza el tamaño de .amount con !important: se gana con mayor especificidad. */
html body .tsp-block .woocommerce-Price-amount, html body .tsp-mini .woocommerce-Price-amount, html body .tsp-ci .woocommerce-Price-amount { color: inherit !important; font-size: inherit !important; font-weight: inherit !important; }
.tsp-block bdi, .tsp-mini bdi, .tsp-ci bdi { display: inline; }
.tsp-block .woocommerce-Price-amount *, .tsp-mini .woocommerce-Price-amount *, .tsp-ci .woocommerce-Price-amount *, .tsp-tarifa .woocommerce-Price-amount *, .tsp-pago .woocommerce-Price-amount * { display: inline !important; }

/* ---------- Ficha de producto ---------- */
.price .tsp-block, .tsp-block { margin: 6px 0 16px; width: 100%; max-width: 480px; font-size: 14px; color: #0f1115; }
/* Dos tarifas lado a lado; si no caben (celular), se apilan. */
.tsp-block .tsp-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.tsp-block .tsp-box { position: relative; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 12px; padding: 12px 14px; }
.tsp-block .tsp-card { background: #eef1f4; color: #0f1115; }
.tsp-block .tsp-cash { background: #0f1115; color: #fff; }
.tsp-block .tsp-box__k { display: inline; font-size: 13px; font-weight: 700; line-height: 1.3; }
.tsp-block .tsp-card .tsp-box__k { color: #3b414c; }
.tsp-block .tsp-cash .tsp-box__k { color: #38bdf8; }
.tsp-block .tsp-box__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 10px; font-size: 12px; color: #5b6270; }
.tsp-badge { display: inline-block !important; font-size: 12px; font-weight: 700; line-height: 1.5; color: #0f1115; background: #4ade80; border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.tsp-block .tsp-card__price { display: block; margin-top: 4px; font-size: 26px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; color: #3b414c; }
.tsp-block .tsp-cash__price { display: block; margin-top: 4px; font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; color: #fff; }
.tsp-block .tsp-cash__save { font-size: 15px; font-weight: 700; color: #4ade80; }
.tsp-block .tsp-cash__save-t { display: inline; }
.tsp-iva { display: inline-block !important; font-size: 11px; font-weight: 600; line-height: 1.6; color: #166534; background: #dcfce7; border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.tsp-iva--dark { color: #4ade80; background: rgba(74, 222, 128, .15); }

/* Zona de precio + desglose (aparece con puntero, foco de teclado o toque) */
.tsp-block .tsp-pz { position: relative; display: block; cursor: help; }
.tsp-block .tsp-pz__meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.tsp-block .tsp-info { display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 auto; width: 20px; height: 20px; min-width: 20px; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 1px solid currentColor !important; border-radius: 50% !important; background: transparent !important; box-shadow: none !important; color: #5b6270; font: italic 700 12px/1 Georgia, "Times New Roman", serif !important; text-transform: none !important; letter-spacing: 0 !important; cursor: help; opacity: .75; }
.tsp-block .tsp-cash .tsp-info { color: #9ca3af; }
.tsp-block .tsp-pz:hover .tsp-info, .tsp-block .tsp-info:focus-visible { opacity: 1; }
.tsp-block .tsp-info:focus-visible { outline: 2px solid #0369a1; outline-offset: 2px; }
.tsp-block .tsp-bd { position: absolute; top: 100%; left: 0; z-index: 30; box-sizing: border-box; width: 232px; max-width: calc(100vw - 32px); margin-top: 6px; padding: 10px 12px; border: 1px solid #e3e6ea; border-radius: 10px; background: #fff; color: #0f1115; font-size: 12.5px; box-shadow: 0 10px 30px rgba(15, 17, 21, .18); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; pointer-events: none; }
.tsp-block .tsp-cash .tsp-bd { left: auto; right: 0; }
.tsp-block .tsp-bd::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.tsp-block .tsp-pz:hover .tsp-bd, .tsp-block .tsp-pz:focus-within .tsp-bd, .tsp-block .tsp-pz.is-open .tsp-bd { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.tsp-block .tsp-bd__t { margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #5b6270; }
.tsp-block .tsp-bd__r { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; color: #3b414c; }
.tsp-block .tsp-bd__r > span { display: inline; }
.tsp-block .tsp-bd__r--tot { margin-top: 4px; padding-top: 6px; border-top: 1px solid #e3e6ea; font-weight: 700; color: #0f1115; }
@media (prefers-reduced-motion: reduce) { .tsp-block .tsp-bd { transition: none; } }

/* Simulador: control segmentado + cuota "/mes" */
.tsp-block .tsp-q { margin-top: 10px; border: 1px solid #e3e6ea; border-radius: 12px; padding: 12px 14px; background: #fff; }
.tsp-block .tsp-q__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tsp-block .tsp-q__title { display: inline; font-size: 14px; font-weight: 600; color: #0f1115; }
.tsp-block .tsp-q__tag { display: inline; font-size: 11px; color: #5b6270; }
.tsp-block .tsp-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; margin: 10px 0; padding: 3px; background: #e8e8ed; border-radius: 10px; }
.tsp-block .tsp-seg__btn { min-height: 44px; margin: 0; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: #1d1d1f; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; text-transform: none; letter-spacing: normal; cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease; }
.tsp-block .tsp-seg__btn:hover { background: rgba(255, 255, 255, .55); color: #1d1d1f; }
.tsp-block .tsp-seg__btn[aria-pressed="true"] { background: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); }
.tsp-block .tsp-seg__btn:focus { outline: none; }
.tsp-block .tsp-seg__btn:focus-visible { outline: 2px solid #0369a1; outline-offset: 1px; }
.tsp-block .tsp-q__row { display: flex; align-items: baseline; gap: 4px; }
.tsp-block .tsp-q__cuota { display: inline; font-size: 26px; font-weight: 700; letter-spacing: -.5px; color: #0369a1; }
.tsp-block .tsp-q__mes { display: inline; font-size: 14px; color: #5b6270; }
.tsp-block .tsp-q__total { font-size: 13px; color: #3b414c; }
.tsp-block .tsp-q__total span { display: inline; }
.tsp-block .tsp-q__legal { margin-top: 6px; font-size: 11px; color: #5b6270; }

/* ---------- Catálogo y búsqueda: "Tarjeta $" y "Transferencia $" ---------- */
.tsp-mini { display: flex !important; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 13px; line-height: 1.2; }
.tsp-mini .tsp-mini__box { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: baseline; justify-content: space-between; gap: 4px; box-sizing: border-box; border-radius: 10px; padding: 8px; text-align: left; }
.tsp-mini .tsp-mini__k, .tsp-mini .tsp-mini__v { display: inline; white-space: nowrap; }
.tsp-mini .tsp-mini__box--range { flex-wrap: wrap; }
.tsp-mini .tsp-mini__k { font-size: 11px; font-weight: 700; }
.tsp-mini .tsp-mini__v { margin-left: auto; text-align: right; }
.tsp-mini .tsp-mini__box--card { background: #eef1f4; color: #3b414c; }
.tsp-mini .tsp-mini__box--card .tsp-mini__k { color: #3b414c; }
.tsp-mini .tsp-mini__box--card .tsp-mini__v { font-size: 14px; font-weight: 700; }
.tsp-mini .tsp-mini__box--cash { background: #0f1115; color: #fff; }
.tsp-mini .tsp-mini__box--cash .tsp-mini__k { color: #38bdf8; }
.tsp-mini .tsp-mini__box--cash .tsp-mini__v { font-size: 15px; font-weight: 800; letter-spacing: -.3px; color: #fff; }
.tsp-mini .tsp-mini__d { display: inline; font-size: 11px; font-weight: 500; opacity: .8; margin-right: 2px; }

/* ---------- Carrito ---------- */
.tsp-ci .tsp-ci__cash { font-weight: 700; color: #0f1115; }
.tsp-ci .tsp-ci__card { font-size: 12px; color: #5b6270; }
.tsp-ci small { font-size: 11px; font-weight: 400; color: #5b6270; }
.tsp-ci--tarjeta .tsp-ci__cash { font-weight: 400; font-size: 12px; color: #5b6270; }
.tsp-ci--tarjeta .tsp-ci__card { font-size: inherit; font-weight: 700; color: #0f1115; }
.tsp-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #f0f9ff; color: #0c4a6e; font-size: 13px; }
.tsp-note--mini { margin: 8px 0; font-size: 12px; }

/* ---------- Checkout: selección de tarifa ---------- */
.tsp-tarifas { margin: 0 0 20px; }
.tsp-tarifas .tsp-tarifas__title { margin: 0 0 10px; font-size: 18px; }
.tsp-tarifa { position: relative; display: block; margin: 0 0 10px; padding: 14px 16px 14px 46px; border: 1.5px solid #cfd5dc; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.tsp-tarifa.is-active { border-color: #0369a1; box-shadow: 0 0 0 3px rgba(3, 105, 161, .12); }
.tsp-tarifa input[type="radio"] { position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; margin: 0; accent-color: #0369a1; }
.tsp-tarifa__body, .tsp-tarifa__body span { display: block; }
.tsp-tarifa__kicker { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #0369a1; }
.tsp-tarifa__name { font-size: 15px; font-weight: 600; color: #0f1115; }
.tsp-tarifa__price { margin-top: 2px; font-size: 22px; font-weight: 800; color: #0f1115; }
.tsp-tarifa__price .woocommerce-Price-amount { display: inline; }
.tsp-tarifa__desc { margin-top: 2px; font-size: 12px; color: #5b6270; }
.tsp-tarifas__note { margin: 0; font-size: 12px; color: #5b6270; }

/* ---------- Pago por transferencia ---------- */
.tsp-pago { margin: 24px 0; padding: 20px; border: 1px solid #e3e6ea; border-radius: 14px; background: #fff; color: #0f1115; }
.tsp-pago .tsp-pago__title { margin: 0 0 4px; font-size: 20px; }
.tsp-pago .tsp-pago__lead { margin: 0 0 14px; color: #3b414c; }
.tsp-pago__keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tsp-pago__key { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-radius: 10px; background: #0f1115; color: #fff; }
.tsp-pago__k { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #38bdf8; }
.tsp-pago__v { flex: 1 1 auto; font-size: 20px; font-weight: 800; }
.tsp-pago__v .woocommerce-Price-amount { color: #fff; }
.tsp-bancos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tsp-banco { padding: 12px 14px; border: 1px solid #e3e6ea; border-radius: 10px; background: #f7f8fa; }
.tsp-banco__name { margin-bottom: 6px; font-weight: 700; }
.tsp-banco__row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; }
.tsp-banco__row span { flex: 0 0 96px; color: #5b6270; font-size: 12px; }
.tsp-banco__row strong { flex: 1 1 auto; word-break: break-all; }
.tsp-copy { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid #cfd5dc; border-radius: 8px; background: #fff; color: #0f1115; font: inherit; font-size: 13px; font-weight: 600; line-height: 1; text-transform: none; cursor: pointer; }
.tsp-pago__key .tsp-copy { border-color: rgba(255, 255, 255, .3); background: transparent; color: #fff; }
.tsp-copy.is-done { border-color: #15803d; background: #15803d; color: #fff; }
.tsp-copy:focus-visible { outline: 2px solid #0369a1; outline-offset: 2px; }
.tsp-qr { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tsp-qr img { width: 160px; height: 160px; border-radius: 8px; border: 1px solid #e3e6ea; }
.tsp-up { padding: 14px; border-radius: 10px; background: #f0f9ff; }
.tsp-up .tsp-up__title { margin: 0 0 8px; font-size: 16px; }
.tsp-up__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tsp-up__label { width: 100%; font-size: 12px; color: #3b414c; }
.tsp-up__btn { min-height: 44px; }
.tsp-up__msg { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.tsp-up__msg--ok { background: #dcfce7; color: #166534; }
.tsp-up__msg--err { background: #fee2e2; color: #991b1b; }
.tsp-up__count, .tsp-up__alt { margin: 8px 0 0; font-size: 13px; color: #3b414c; }
.tsp-wa { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 14px; padding: 0 18px; border-radius: 10px; background: #25d366; color: #0f1115 !important; font-weight: 700; text-decoration: none !important; }
.tsp-wa:hover { background: #1fbd5a; }

@media (max-width: 480px) {
	.tsp-block .tsp-cash__price { font-size: 30px; }
	.tsp-block .tsp-seg__btn { font-size: 13px; padding: 0 2px; }
	.tsp-banco__row { flex-wrap: wrap; }
	.tsp-banco__row span { flex-basis: 100%; }
}

/* ---------- Ficha: precios arriba, un solo precio, mismo ancho ---------- */
body.tsp-on { --tsp-w: 480px; }
/* El precio ya está en el bloque de arriba: se oculta el repetido junto al WhatsApp y en la barra fija. */
body.tsp-on .wd-price-wa-wrap .tsp-mini,
body.tsp-on .wd-sticky-btn .tsp-mini { display: none !important; }
body.tsp-on .wd-sticky-btn .price:has(.tsp-mini) { display: none !important; }
/* Marcos de precio y bloque de compra con el mismo ancho. */
body.tsp-on .wd-single-price { flex: 1 1 100% !important; width: 100% !important; max-width: var(--tsp-w) !important; box-sizing: border-box; }
body.tsp-on .wd-single-add-cart { width: 100%; max-width: var(--tsp-w); box-sizing: border-box; }
body.tsp-on .tsp-block { width: 100%; max-width: none; box-sizing: border-box; }
body.tsp-on .tsp-block .tsp-prices,
body.tsp-on .tsp-block .tsp-q { width: 100%; box-sizing: border-box; }
/* Bloque de compra: cantidad + WhatsApp en una fila; "Añadir" y "Comprar ahora" a todo el ancho. */
body.tsp-on .wd-single-add-cart form.cart:not(.variations_form) { display: grid !important; grid-template-columns: auto 1fr; gap: 8px; align-items: stretch; width: 100%; max-width: var(--tsp-w); }
body.tsp-on .wd-single-add-cart form.cart:not(.variations_form) > .quantity { grid-column: 1; margin: 0; }
body.tsp-on .wd-single-add-cart form.cart:not(.variations_form) > .wd-price-before-cart { grid-column: 2; margin: 0; min-width: 0; }
body.tsp-on .wd-single-add-cart form.cart:not(.variations_form) > .wd-price-before-cart .wd-price-wa-wrap { display: block; }
body.tsp-on .wd-single-add-cart form.cart:not(.variations_form) .wd-wa-btn { display: flex; width: 100%; height: 100%; min-height: 42px; justify-content: center; align-items: center; box-sizing: border-box; margin: 0; }
body.tsp-on .wd-single-add-cart form.cart:not(.variations_form) > .single_add_to_cart_button,
body.tsp-on .wd-single-add-cart form.cart:not(.variations_form) > .wd-buy-now-btn { grid-column: 1 / -1; width: 100%; margin: 0; box-sizing: border-box; }

/* WoodMart (hover "Alternativo"): el tema fija la altura del bloque de precio a UNA línea con overflow:clip
   (para intercambiarlo con el botón al pasar el puntero). Con las dos cajas de tarifa eso las recortaba y la fila de abajo las tapaba.
   Se libera la altura solo en tarjetas con tarifa dual y el botón queda debajo de las cajas. */
.wd-product .swap-wrapp:has(.tsp-mini) { height: auto !important; overflow: visible !important; }
.wd-product .swap-wrapp:has(.tsp-mini) .wd-add-btn { margin-top: 8px; }
.tsp-mini { width: 100% !important; align-self: stretch; }
