/*
 * Tecmáss — estilos propios sobre WoodMart.
 *
 * Colores y tipografías base se configuran primero en Tema > Ajustes de WoodMart;
 * aquí va solo lo que WoodMart no permite desde el panel.
 */

:root {
	/* Línea gráfica Tecmáss */
	--tm-black: #000;
	--tm-mint: #21ce94;   /* verde menta de marca */
	--tm-leaf: #01f0ab;   /* hoja del logo */
	--tm-mint-dark: #14b27d;
	--tm-green-ink: #0e8f64; /* verde para TEXTO: el menta sobre blanco no se lee (2:1) */
	--tm-white: #fff;
}

/* Precios en el verde legible (el color primario es el menta, pensado para fondos). */
body .price,
body .price .amount,
body .price ins .amount {
	color: var(--tm-green-ink);
}

/* Tarjetas de producto: la foto tenía 0 de margen y tocaba el borde de la tarjeta. */
.wd-product:not(.wd-hover-small) .wd-loop-prod-thumb,
.wd-product:not(.wd-hover-small) .product-element-top {
	padding: 16px 16px 6px;
}
/* Título de producto: el prebuilt lo corta a 1 línea y en celular "iPhone 18 Pro Max"
   se leía "iPhone 18 Pro". Hasta 2 líneas. */
.wd-product .wd-loop-prod-title.wd-line-clamp {
	max-height: none;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.wd-product:not(.wd-hover-small) .wd-loop-prod-thumb img,
.wd-product:not(.wd-hover-small) .product-element-top img {
	border-radius: 12px;
}

/* Etiqueta "Agotado": el prebuilt Electronics 3 la pinta con texto del mismo color que el fondo.
   WoodMart carga su CSS de etiquetas después del nuestro: hace falta más especificidad. */
.product-labels .product-label.out-of-stock {
	color: var(--tm-white);
}

/* Hero (slider de la home): en celular los nombres de las slides bajan a dos líneas y
   pisan el producto; ahí bastan las flechas y el deslizamiento. */
@media (max-width: 768px) {
	.wd-slider .wd-nav-pagin-wrap {
		display: none;
	}
}

/* "Comprar ahora" de la ficha: la plantilla le pone fondo casi negro, y al pasar los botones
   de compra a texto oscuro (sobre menta) quedó negro sobre negro. */
body .wd-buy-now-btn.btn-accent,
body .wd-buy-now-btn.btn-accent:hover {
	color: var(--tm-white);
}

/* Lupa del buscador del header: negra con ícono blanco (pedido del cliente). */
body .searchform.wd-style-with-bg-2 .searchsubmit {
	background-color: var(--tm-black);
	color: var(--tm-white);
}
body .searchform.wd-style-with-bg-2 .searchsubmit:hover {
	background-color: #333;
	color: var(--tm-white);
}

/* =====================================================================================
   PLP — referencia del cliente (1 dic 2026): verde profundo para acciones y precios,
   menta clarito para estados activos, tarjetas blancas con borde suave.
   ===================================================================================== */
:root {
	--tm-green-deep: #0b4236;       /* barra superior, badges, carrito, precio de oferta */
	--tm-green-deep-hover: #07302a;
	--tm-mint-tint: #dbf5ea;        /* píldoras activas (mostrar 12, vista grilla) */
	--tm-strike: #8a8f98;           /* precio tachado */
	--tm-line: #eceef0;             /* bordes de tarjeta y separadores */
}

/* Precios: verde profundo (antes verde medio) */
body .price,
body .price .amount,
body .price ins .amount {
	color: var(--tm-green-deep);
}

/* ---------- Barra superior ---------- */
body .whb-header .whb-top-bar {
	background-color: var(--tm-green-deep) !important;
	border-bottom: 0 !important;
}
body .whb-top-bar,
body .whb-top-bar a,
body .whb-top-bar .wd-nav > li > a,
body .whb-top-bar .wd-header-text {
	color: #fff !important;
}
.whb-top-bar .wd-header-text {
	display: flex;
	align-items: center;
	gap: 14px;
	font-weight: 600;
}
.tm-tb {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.tm-tb::before {
	content: "";
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--tm-icono) center / contain no-repeat;
	mask: var(--tm-icono) center / contain no-repeat;
}
.tm-tb-sep {
	opacity: 0.6;
}
.tm-tb--envio { --tm-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E"); }
.tm-tb--precio { --tm-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }
.tm-tb--garantia { --tm-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
@media (max-width: 1024px) {
	.whb-top-bar .wd-header-text { gap: 8px; font-size: 12px; }
	.tm-tb-sep, .tm-tb--precio, .tm-tb--garantia { display: none; }
}

/* ---------- Header: botón Descuentos ---------- */
.whb-k6tv93mm21wbheaf9zla .btn {
	border-color: var(--tm-green-deep) !important;
	color: var(--tm-green-deep) !important;
	font-weight: 700;
	gap: 8px;
}
.whb-k6tv93mm21wbheaf9zla .btn::before {
	content: "";
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.whb-k6tv93mm21wbheaf9zla .btn:hover {
	background-color: var(--tm-mint-tint) !important;
}

/* ---------- Cabecera de la PLP ([tecmass_encabezado]) ---------- */
.tm-archive-head {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) minmax(0, 1.55fr);
	gap: 40px;
	align-items: center;
	margin: 4px 0 28px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--tm-line);
}
.tm-archive-head--sin-banner { grid-template-columns: 240px minmax(0, 1fr); }
.tm-archive-head--simple { display: block; padding-bottom: 20px; }
.tm-archive-head__logo {
	height: 112px;
	border-radius: 16px;
	background: linear-gradient(135deg, #f5f9f0 0%, #e2f5ea 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.tm-archive-head__logo img {
	max-height: 92px;
	width: auto;
	mix-blend-mode: multiply;
}
.tm-archive-head__wordmark {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: #111;
}
.tm-archive-head__title {
	margin: 0 0 8px;
	font-size: 34px;
	font-weight: 800;
	color: #111;
}
.tm-archive-head__desc,
.tm-archive-head__desc p {
	margin: 0;
	color: #4b5563;
	font-size: 16px;
}
.tm-archive-head__banner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
	min-height: 120px;
	padding: 18px 32px;
	border-radius: 16px;
	background: #e8f6ef center right / cover no-repeat;
	color: #0b2b22;
	text-decoration: none;
	overflow: hidden;
}
.tm-archive-head__banner-title {
	max-width: 52%;
	font-size: 21px;
	line-height: 1.15;
	font-weight: 800;
	color: #0b2b22;
}
.tm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--tm-green-deep);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	transition: background-color 0.2s;
}
.tm-archive-head__banner:hover .tm-btn { background: var(--tm-green-deep-hover); }
@media (max-width: 1024px) {
	.tm-archive-head { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
	.tm-archive-head__logo { height: 84px; }
	.tm-archive-head__wordmark { font-size: 20px; }
	.tm-archive-head__title { font-size: 26px; }
	.tm-archive-head__banner { grid-column: 1 / -1; }
	.tm-archive-head__banner-title { max-width: 60%; font-size: 18px; }
}

/* ---------- Barra de herramientas: conteo, mostrar, vista, orden ---------- */
.tm-conteo {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #111;
}
.wd-products-per-page .per-page-title {
	color: #4b5563;
	margin-inline-end: 6px;
}
.wd-products-per-page .per-page-border { display: none; }
.wd-products-per-page .per-page-variation {
	padding: 6px 11px;
	border-radius: 10px;
	color: #374151;
	font-weight: 600;
}
.wd-products-per-page .per-page-variation.current-variation {
	background: var(--tm-mint-tint);
	color: var(--tm-green-deep);
}
.wd-products-shop-view .shop-view {
	border-radius: 10px;
	padding: 6px;
}
.wd-products-shop-view .shop-view.current-variation {
	background: var(--tm-mint-tint);
	color: var(--tm-green-deep);
}
form.woocommerce-ordering {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 6px 0 16px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
}
form.woocommerce-ordering::before {
	content: "Ordenar por:";
	color: #4b5563;
	font-size: 14px;
	white-space: nowrap;
}
form.woocommerce-ordering select.orderby {
	border: 0;
	font-weight: 700;
	color: #111;
	padding-inline-start: 0;
	background-color: transparent;
}

/* ---------- Filtros (sidebar) ---------- */
.sidebar-widget .widget-title {
	font-size: 18px;
	font-weight: 800;
	color: #111;
}
.widget_product_categories .product-categories > li > a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #1f2937;
}
.widget_product_categories .product-categories > li > a::before {
	content: "";
	width: 18px;
	height: 18px;
	border: 1.5px solid #c7ccd3;
	border-radius: 5px;
	background: #fff;
	flex: 0 0 auto;
}
.widget_product_categories .product-categories > li.current-cat > a::before {
	background: var(--tm-green-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
	border-color: var(--tm-green-deep);
}
.sidebar-widget .count {
	color: #9aa0a6;
	background: transparent;
	border: 0;
}
.widget_price_filter .ui-slider .ui-slider-range { background-color: var(--tm-green-deep); }
.widget_price_filter .ui-slider .ui-slider-handle {
	background: #fff;
	border: 2px solid var(--tm-green-deep);
	width: 18px;
	height: 18px;
	top: -7px;
}
.widget_price_filter .price_slider_amount .button {
	background: transparent;
	border: 1.5px solid var(--tm-green-deep);
	color: var(--tm-green-deep);
	border-radius: 999px;
	font-weight: 700;
	padding: 6px 16px;
}
.widget_price_filter .price_slider_amount .button:hover {
	background: var(--tm-mint-tint);
}
.widget_price_filter .price_label span {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	font-weight: 600;
	color: #111;
}
.woodmart-woocommerce-layered-nav .wd-swatch {
	width: 26px;
	height: 26px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* ---------- Tarjeta de producto ---------- */
.wd-products .wd-product .wd-product-wrapper,
.products .wd-product .wd-product-wrapper {
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: box-shadow 0.2s, transform 0.2s;
}
.wd-products .wd-product:hover .wd-product-wrapper,
.products .wd-product:hover .wd-product-wrapper {
	box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}
.wd-product .product-labels .product-label.onsale {
	background: var(--tm-green-deep);
	color: #fff;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 10px;
	min-height: 0;
	line-height: 1;
}
/* Acciones: solo favoritos, siempre visible (comparar y vista rápida quedan en la ficha). */
.wd-product .wd-loop-prod-thumb .wd-compare-btn,
.wd-product .wd-loop-prod-thumb .wd-quick-view-btn {
	display: none !important;
}
.wd-product .wd-loop-prod-thumb .wp-block-wd-container:has(.wd-wishlist-btn),
.wd-product .wd-loop-prod-thumb .wd-wishlist-btn {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}
.wd-product .wd-loop-prod-thumb .wd-wishlist-btn > a {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
	color: #111;
}
.wd-product .wd-product-cats,
.wd-product .wd-product-cats a {
	color: #6b7280;
	font-size: 13px;
}
.wd-product .wd-entities-title,
.wd-product .wd-entities-title a {
	color: #111;
	font-weight: 700;
}
/* Precio: tachado gris arriba, oferta grande en verde profundo abajo
   (WoodMart pone .price en block con la misma especificidad y carga después). */
.wd-product .wd-loop-prod-price .price,
.wd-product .price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	line-height: 1.15;
}
.wd-product .price del,
.wd-product .price del .amount {
	color: var(--tm-strike);
	font-size: 13px;
	font-weight: 500;
	opacity: 1;
}
.wd-product .price ins {
	text-decoration: none;
}
.wd-product .price ins .amount,
.wd-product .price > .amount {
	color: var(--tm-green-deep);
	font-size: 20px;
	font-weight: 800;
}
/* Botón de carrito: cuadrado verde profundo con ícono blanco */
.wd-product .wd-add-btn.wd-style-icon > a {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--tm-green-deep);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wd-product .wd-add-btn.wd-style-icon > a:hover {
	background: var(--tm-green-deep-hover);
	color: #fff;
}
.wd-product .wd-add-btn.wd-style-icon > a .wd-action-icon,
.wd-product .wd-add-btn.wd-style-icon > a .wd-action-icon::before {
	color: #fff;
}

/* Tarjeta: el borde de la plantilla de WoodMart (más oscuro) y la línea sobre el precio,
   que la referencia no tiene. */
.wd-product .wd-product-wrapper.wd-entry-content {
	border-color: var(--tm-line);
}
.wd-product .wd-product-wrapper .wp-block-wd-container:has(> .wd-loop-prod-price) {
	border-top: 0;
}

/* ---------- PLP en celular ---------- */
/* Banner de marca: velo claro detrás del texto para que el producto no lo tape. */
.tm-archive-head__banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #e8f6ef 0%, #e8f6ef 38%, rgba(232, 246, 239, 0) 62%);
}
.tm-archive-head__banner > * { position: relative; }
@media (max-width: 768px) {
	.tm-archive-head__banner { background-position: right -60px center; }
	.tm-archive-head__banner::before { background: linear-gradient(90deg, #e8f6ef 0%, #e8f6ef 55%, rgba(232, 246, 239, 0) 85%); }
	form.woocommerce-ordering { border: 0; padding: 0; background: transparent; }
	form.woocommerce-ordering::before { display: none; }
}

/* =====================================================================================
   PDP — referencia del cliente (1 dic 2026)
   ===================================================================================== */
.single-product .product_title {
	font-size: 34px;
	line-height: 1.15;
	font-weight: 800;
	color: #111;
}
@media (max-width: 768px) {
	.single-product .product_title { font-size: 26px; }
}

/* Galería: imagen sobre fondo gris claro redondeado */
.single-product .woocommerce-product-gallery .wd-carousel-item,
.single-product .woocommerce-product-gallery__image {
	background: #f5f5f7;
	border-radius: 18px;
	overflow: hidden;
}

/* Variantes enlazadas: capacidad en cajas, color en círculos */
.single-product .wd-swatches-product .wd-swatch.wd-text,
.single-product .wd-swatches-single .wd-swatch.wd-text {
	min-width: 84px;
	padding: 10px 18px;
	border: 1.5px solid #d1d5db;
	border-radius: 12px;
	background: #fff;
	font-weight: 700;
	color: #111;
	text-align: center;
	text-decoration: none;
}
.single-product .wd-swatches-product .wd-swatch.wd-text.wd-active,
.single-product .wd-swatches-single .wd-swatch.wd-text.wd-active {
	border-color: var(--tm-green-deep);
	background: var(--tm-mint-tint);
	color: var(--tm-green-deep);
}
.single-product .wd-swatches-product .wd-swatch.wd-text:not(.wd-active):hover {
	border-color: var(--tm-green-deep);
}
.single-product .wd-swatch.wd-bg {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.single-product .wd-swatch.wd-bg.wd-active {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 3px #fff, 0 0 0 5px var(--tm-green-deep);
}

/* Precio grande */
.single-product .summary .price,
.single-product .wd-single-price .price {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
}
.single-product .wd-single-price .price del,
.single-product .wd-single-price .price del .amount {
	font-size: 18px;
	font-weight: 500;
	color: var(--tm-strike);
}
.single-product .wd-single-price .price ins { text-decoration: none; }

/* Cantidad en píldora */
.single-product form.cart .quantity {
	border: 1.5px solid #d1d5db;
	border-radius: 999px;
	padding: 2px 6px;
	height: 52px;
	align-items: center;
}
.single-product form.cart .quantity input,
.single-product form.cart .quantity .minus,
.single-product form.cart .quantity .plus {
	border: 0;
	background: transparent;
	height: 46px;
}

/* Añadir al carrito (verde profundo) y Comprar ahora (menta clarito) */
.single-product form.cart .single_add_to_cart_button {
	min-height: 52px;
	border-radius: 999px;
	background: var(--tm-green-deep);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	text-transform: none;
}
.single-product form.cart .single_add_to_cart_button:hover {
	background: var(--tm-green-deep-hover);
	color: #fff;
}
body.single-product .wd-buy-now-btn.btn-accent,
body.single-product .wd-buy-now-btn.btn-accent:hover {
	min-height: 52px;
	border-radius: 999px;
	background: var(--tm-mint-tint);
	color: var(--tm-green-deep);
	font-size: 16px;
	font-weight: 800;
	text-transform: none;
	gap: 8px;
}
body.single-product .wd-buy-now-btn.btn-accent::before {
	content: "";
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Recuadro de beneficios ([tecmass_beneficios]) */
.tm-beneficios {
	list-style: none;
	margin: 20px 0 0;
	padding: 6px 18px;
	border: 1px solid var(--tm-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 18px;
}
.tm-beneficios li {
	margin: 0;
	padding: 12px 0;
	list-style: none;
}
.tm-beneficios li > a,
.tm-beneficios li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}
.tm-beneficios__txt {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}
.tm-beneficios__txt strong {
	font-size: 14px;
	font-weight: 700;
	color: #111;
}
.tm-beneficios__txt span {
	font-size: 13px;
	color: #6b7280;
}
.tm-beneficios__icono {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	background-color: var(--tm-green-deep);
	-webkit-mask: var(--tm-icono) center / contain no-repeat;
	mask: var(--tm-icono) center / contain no-repeat;
}
.tm-ico--envio { --tm-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E"); }
.tm-ico--tienda { --tm-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9l1.5-5h13L20 9M4 9h16v11H4zM4 9c0 1.7 1.3 3 3 3s3-1.3 3-3c0 1.7 1.3 3 3 3s3-1.3 3-3c0 1.7 1.3 3 3 3M10 20v-5h4v5'/%3E%3C/svg%3E"); }
.tm-ico--garantia { --tm-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.tm-ico--whatsapp { --tm-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.2-4.2A8.5 8.5 0 1 1 20 11.5z'/%3E%3Cpath d='M9 8.5c.3 2.6 2 4.6 5 5.5l1-1.5-1.8-.8-.7.8c-1-.5-1.8-1.3-2.2-2.3l.8-.7-.7-1.8z'/%3E%3C/svg%3E"); }
@media (max-width: 768px) {
	.tm-beneficios { grid-template-columns: 1fr; }
}

/* Menú de anclas (Descripción · Especificaciones) como pestañas con subrayado */
.single-product .wd-nav-horizontal > li > a {
	position: relative;
	font-weight: 700;
	color: #374151;
}
.single-product .wd-nav-horizontal > li > a:hover,
.single-product .wd-nav-horizontal > li.current-menu-item > a {
	color: var(--tm-green-deep);
	box-shadow: inset 0 -2px 0 var(--tm-green-deep);
}

/* PDP: cantidad + "Añadir al carrito" a todo el ancho; "Comprar ahora" debajo. */
.single-product form.cart {
	flex-wrap: wrap;
	gap: 12px;
}
.single-product form.cart .single_add_to_cart_button {
	flex: 1 1 auto;
}
body.single-product form.cart .wd-buy-now-btn {
	flex: 1 1 100%;
	margin: 0;
}
/* Sin la rayita que WoodMart pone bajo la opción activa (ya va resaltada). */
.single-product .wd-swatch.wd-active::after {
	display: none;
}
/* Ícono de "Características" (venía morado). */
.single-product .elementor-widget-wd_single_product_additional_info_table :is(svg, i, .wd-icon, img) {
	color: var(--tm-green-deep);
	fill: currentColor;
}
/* "Descripción" se oculta mientras el producto no tenga texto. */
.elementor-element-c3cc766:not(:has(.elementor-widget-wd_single_product_content)) {
	display: none;
}
.single-product .elementor-widget-wd_single_product_additional_info_table img {
	display: none; /* ícono del demo (SVG morado); la referencia no lo lleva */
}

/* =====================================================================================
   Footer ([tecmass_footer])
   ===================================================================================== */
.tm-ico {
	display: inline-block;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	background-color: var(--tm-green-deep);
	-webkit-mask: var(--tm-icono) center / contain no-repeat;
	mask: var(--tm-icono) center / contain no-repeat;
}
.tm-ico--instagram { --tm-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.6' fill='black'/%3E%3C/svg%3E"); }
.tm-ico--correo { --tm-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.tm-ico--reloj { --tm-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }

.tm-footer {
	background: #f5f5f7;
	color: #1d1d1f;
	font-size: 14px;
}
.tm-footer__sellos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 56px;
	margin: 0;
	padding: 18px 16px;
	list-style: none;
	border-bottom: 1px solid #e5e7eb;
	font-weight: 700;
}
.tm-footer__sellos li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}
.tm-footer__sellos .tm-beneficios__icono { flex-basis: 22px; width: 22px; height: 22px; }
.tm-footer__main {
	max-width: 1252px;
	margin: 0 auto;
	padding: 48px 15px 32px;
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1.5fr;
	gap: 40px;
}
.tm-footer__logo img { width: 180px; height: auto; }
.tm-footer__marca p {
	margin: 14px 0 0;
	max-width: 300px;
	color: #4b5563;
	line-height: 1.5;
}
.tm-footer h3 {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 800;
	color: #111;
}
.tm-footer ul { margin: 0; padding: 0; list-style: none; }
.tm-footer li { margin: 0 0 10px; }
.tm-footer a { color: #4b5563; text-decoration: none; }
.tm-footer a:hover { color: var(--tm-green-deep); }
.tm-footer__contacto li,
.tm-footer__contacto a {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #4b5563;
	line-height: 1.45;
}
.tm-footer__social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: #111;
}
.tm-footer__social .tm-ico { margin-top: 0; }
.tm-footer__legal {
	max-width: 1252px;
	margin: 0 auto;
	padding: 18px 15px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	font-size: 13px;
	color: #6b7280;
}
.tm-footer__legal a { color: #111; font-weight: 700; }
@media (max-width: 1024px) {
	.tm-footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.tm-footer__main { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
	.tm-footer__sellos { justify-content: flex-start; gap: 10px; }
	.tm-footer__legal { flex-direction: column; }
}

/* Páginas informativas: preguntas en acordeón (<details>) */
.entry-content details,
.wd-entry-content details {
	border-bottom: 1px solid var(--tm-line);
	padding: 14px 0;
}
.entry-content summary,
.wd-entry-content summary {
	cursor: pointer;
	font-weight: 700;
	color: #111;
}
.entry-content details[open] summary,
.wd-entry-content details[open] summary {
	color: var(--tm-green-deep);
	margin-bottom: 8px;
}
/* El footer ya va dentro del contenedor de WoodMart: sin ancho ni márgenes propios. */
.wd-footer.footer-container { background: #f5f5f7; }
.tm-footer__main,
.tm-footer__legal {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

/* Blog: sin autor (usuario administrador) ni contador de comentarios (cerrados). */
.wd-post-meta .wd-post-author,
.wd-post-meta .wd-post-reply,
.wd-post .wd-post-reply {
	display: none;
}

/* WhatsApp flotante (escritorio). En el celular está en la barra inferior. */
.tm-wa-flotante {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 390;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px 12px 14px;
	border-radius: 999px;
	background: var(--tm-green-deep);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(11, 66, 54, 0.3);
	text-decoration: none;
	transition: transform 0.2s, background-color 0.2s;
}
.tm-wa-flotante:hover {
	background: var(--tm-green-deep-hover);
	color: #fff;
	transform: translateY(-2px);
}
.tm-wa-flotante .tm-ico {
	width: 22px;
	height: 22px;
	flex-basis: 22px;
	margin: 0;
	background-color: #fff;
}
/* El "volver arriba" de WoodMart sube para no quedar debajo del botón. */
.scrollToTop,
.wd-scroll-top {
	bottom: 88px !important;
}
@media (max-width: 1024px) {
	.tm-wa-flotante { display: none; }
	.scrollToTop, .wd-scroll-top { bottom: 72px !important; }
}

/* Pestañas de la home: el demo las pone en "capitalize" y "iPhone" salía "IPhone". */
.elementor-widget-wd_products_tabs .wd-nav-tabs,
.elementor-widget-wd_products_tabs .wd-nav-tabs * {
	text-transform: none !important;
}

/* Cuotas bajo el precio */
.price .tm-cuotas {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #4b5563;
}
.price .tm-cuotas .amount {
	font-size: inherit !important;
	font-weight: 800 !important;
	color: var(--tm-green-deep);
}
.wd-hover-small .tm-cuotas { display: none; }
.single-product .wd-single-price .price .tm-cuotas {
	margin-top: 8px;
	font-size: 16px;
	font-weight: 600;
}
.price .tm-cuotas-nota {
	display: block;
	margin-top: 4px;
	font-size: 12px !important;
	font-weight: 400;
	line-height: 1.4;
	color: #6b7280;
}
.tm-footer__nota {
	flex-basis: 100%;
	order: 3;
	font-size: 12px;
	color: #6b7280;
}
