/* ==========================================================================
   Trinidad Maquinaria — tema hijo de Kadence · dirección "Campo profesional"
   Colores: paleta global de Kadence (--global-paletteN) + --tm-field / --tm-wheat
   (ver inc/paletas.php). Tipografías servidas desde el tema (assets/fonts).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tipografías
   ----------------------------------------------------------------------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800.woff2") format("woff2"); }

:root {
	--tm-red: var(--global-palette1, #7a1f2b);
	--tm-red-dark: var(--global-palette2, #5c1520);
	--tm-ink: var(--global-palette3, #1c2622);
	--tm-text: var(--global-palette5, #45524c);
	--tm-muted: var(--global-palette6, #6f7b75);
	--tm-soft: var(--global-palette8, #f4f7f4);
	--tm-soft-2: var(--global-palette7, #e4ece6);
	--tm-line: #dfe5e1;
	--tm-white: var(--global-palette9, #fff);
	--tm-field: #2f5d46; /* sobrescrito por la paleta */
	--tm-wheat: #b8913a; /* sobrescrito por la paleta */
	--tm-cream: #faf6ee;
	--tm-radius: 12px;
	--tm-wrap: var(--global-content-width, 1240px);
	--tm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tm-display: "Barlow Condensed", "Arial Narrow", "Inter", sans-serif;
	--global-body-font-family: var(--tm-font);
	--global-heading-font-family: var(--tm-display);
}

body { font-family: var(--tm-font); color: var(--tm-text); -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .product_title, .woocommerce-loop-product__title {
	font-family: var(--tm-display);
	color: var(--tm-ink);
	letter-spacing: .01em;
}
h1, .entry-title, .page-title, .product_title { font-weight: 800; text-transform: uppercase; line-height: 1.02; }
h2 { font-weight: 800; line-height: 1.05; }
h3, h4 { font-weight: 700; line-height: 1.1; }

.tm-wrap {
	max-width: var(--tm-wrap);
	margin: 0 auto;
	padding: 0 var(--global-content-edge-padding, 16px);
}

/* Botones */
.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: background .15s, color .15s, border-color .15s;
}
.tm-btn-primary { background: var(--tm-red); color: #fff; }
.tm-btn-primary:hover, .tm-btn-primary:focus { background: var(--tm-red-dark); color: #fff; }
.tm-btn-outline { border: 2px solid var(--tm-ink); color: var(--tm-ink); }
.tm-btn-outline:hover { background: var(--tm-ink); color: #fff; }
.tm-btn-light { background: #fff; color: var(--tm-red); }
.tm-btn-light:hover { background: var(--tm-ink); color: #fff; }
.tm-btn-ghost { border: 2px solid currentColor; color: inherit; }

.tm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #e9dcb8;
}
.tm-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--tm-wheat); }
.tm-eyebrow.is-dark { color: var(--tm-field); }

/* --------------------------------------------------------------------------
   Cabecera
   ----------------------------------------------------------------------- */
.site-top-header-wrap .site-header-row-container-inner { background: var(--tm-red-dark); color: #fff; }
/* Franja superior [trinidad_topbar]: lema en Barlow Condensed, contacto en Inter con iconos */
.site-top-header-wrap .site-header-section-center,
.site-top-header-wrap .site-header-item,
.site-top-header-wrap .header-html,
.site-top-header-wrap .header-html-inner { flex-grow: 1; width: 100%; }
.site-top-header-wrap .header-html { color: #fff; }
.tm-topbar { display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding: 4px 0; }
.tm-topbar-claim { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; font-family: var(--tm-display); font-weight: 600; font-size: 15px; letter-spacing: .07em; text-transform: uppercase; line-height: 1.2; color: #fff; }
.tm-topbar-sep { display: inline-flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .78); }
.tm-topbar-sep::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tm-wheat); }
.tm-topbar-contact { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.tm-topbar-contact li { margin: 0; }
.site-top-header-wrap .tm-topbar-contact a { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-family: var(--tm-font); font-size: 13px; font-weight: 600; letter-spacing: .01em; text-decoration: none; }
.tm-topbar-contact .tm-svg { width: 15px; height: 15px; vertical-align: 0; color: var(--tm-wheat); }
.site-top-header-wrap .tm-topbar-contact a:hover span { text-decoration: underline; text-decoration-color: var(--tm-wheat); text-underline-offset: 3px; }
@media (max-width: 1200px) { .tm-topbar-sep, .tm-topbar-mail { display: none !important; } }

.site-main-header-wrap .site-header-row-container-inner { border-bottom: 1px solid var(--tm-line); }

.main-navigation .primary-menu-container > ul > li.menu-item > a {
	font-family: var(--tm-display);
	font-size: 19px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--tm-ink);
}
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a { color: var(--tm-red); }
.main-navigation .primary-menu-container > ul > li.tm-hot > a { color: var(--tm-red); }

/* Desplegable "Productos" */
.header-navigation .header-menu-container ul ul.sub-menu {
	background: #fff;
	border: 1px solid var(--tm-line);
	border-top: 3px solid var(--tm-red);
	box-shadow: 0 14px 30px rgba(28, 38, 34, .12);
	min-width: 240px;
}
.header-navigation .header-menu-container ul ul li.menu-item > a {
	color: var(--tm-ink);
	font-weight: 600;
	font-size: 15px;
	padding: .7em 1.1em;
	border-bottom: 1px solid var(--tm-soft-2);
}
.header-navigation .header-menu-container ul ul li.menu-item > a:hover { background: var(--tm-soft); color: var(--tm-red); }

/* Menú móvil: tres rayas del mismo tamaño que buscar y carrito */
.mobile-toggle-open-container .menu-toggle-open { color: var(--tm-ink); padding: .4em; }
.mobile-toggle-open-container .menu-toggle-open .menu-toggle-icon { font-size: 28px; }
.mobile-navigation ul li > a { font-family: var(--tm-display); font-size: 20px; font-weight: 700; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Cabecera de tienda, categorías y páginas: franja compacta verde pino
   ----------------------------------------------------------------------- */
.entry-hero.product-archive-hero-section .entry-hero-container-inner,
.entry-hero.page-hero-section .entry-hero-container-inner {
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, 0) 60%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 14px, rgba(255, 255, 255, 0) 14px 28px),
		var(--tm-field);
	border-bottom: 4px solid var(--tm-wheat);
}
.entry-hero .hero-section-overlay { display: none; }
.entry-hero .hero-container { padding-top: 18px; padding-bottom: 18px; }
.entry-hero .entry-header { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.entry-hero .entry-header h1,
.entry-hero .entry-header .entry-title,
.entry-hero .entry-header .page-title,
.product-archive-title h1 {
	color: #fff;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 14px;
}
.entry-hero .entry-header h1::before { content: ""; flex: 0 0 auto; width: 6px; height: .9em; background: var(--tm-wheat); border-radius: 2px; }
.entry-hero .kadence-breadcrumbs { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .7); }
.entry-hero .kadence-breadcrumbs a { color: #fff; font-weight: 600; text-decoration: none; }
.entry-hero .kadence-breadcrumbs a:hover { text-decoration: underline; text-decoration-color: var(--tm-wheat); }
/* El título ya va debajo: sin repetirlo en las migas ni dejar una "/" colgando */
.entry-hero .kadence-breadcrumbs .kadence-bread-current,
.entry-hero .kadence-breadcrumbs .bc-delimiter:has(+ .kadence-bread-current),
.kadence-breadcrumbs .bc-delimiter:last-child { display: none; }
.entry-hero .archive-description,
.entry-hero .term-description { color: rgba(255, 255, 255, .85); font-size: 15px; max-width: 70ch; margin: 4px 0 0; }
.entry-hero .archive-description p { margin: 0; }
@media (max-width: 767px) {
	.entry-hero .hero-container { padding-top: 12px; padding-bottom: 12px; }
	.entry-hero .entry-header h1::before { width: 5px; }
}

/* Menos espacio entre la franja y el contenido */
.tm-has-filters .content-area,
.page .content-area { margin-top: 24px; }

/* --------------------------------------------------------------------------
   Tarjetas de producto
   ----------------------------------------------------------------------- */
.woocommerce ul.products li.product {
	background: var(--tm-white);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 10px 28px rgba(28, 38, 34, .12); transform: translateY(-3px); }

.woocommerce ul.products li.product .woocommerce-loop-image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 14px;
	background: #fff;
}
.woocommerce ul.products li.product .woocommerce-loop-image-link img,
.woocommerce ul.products li.product a img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0;
}

/* Margen interior del texto: Kadence lo pone a 0 en páginas "sin caja" (p. ej. relacionados de la ficha) */
.woocommerce ul.products li.product .product-details,
body.woocommerce ul.products li.product.content-bg.loop-entry .product-details.content-bg:not(.loop-entry) {
	padding: 14px 18px 18px !important;
	margin: 0 !important;
	background: #fff;
	border-top: 1px solid var(--tm-line);
}
@media (max-width: 767px) {
	.woocommerce ul.products li.product .product-details,
	body.woocommerce ul.products li.product.content-bg.loop-entry .product-details.content-bg:not(.loop-entry) { padding: 12px 12px 14px !important; }
}
.tm-card-type {
	display: block;
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--tm-muted);
}
.woocommerce ul.products li.product .woocommerce-loop-image-link { position: relative; }
.tm-tag-corner {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	font-size: 12px;
	padding: 4px 10px;
	line-height: 1.3;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.tm-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tm-tag.t-gas { background: #fcefd9; color: #7a4b06; }
.tm-tag.t-bat { background: #e1eee6; color: #1f4d36; }
.tm-tag.t-ele { background: #e3ecf7; color: #1e4a7a; }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 22px;
	line-height: 1.1;
	font-weight: 700;
	min-height: 2.2em;
	padding: 0;
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a { color: var(--tm-ink); }
.woocommerce ul.products li.product .price {
	color: var(--tm-ink);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
}
.woocommerce ul.products li.product .price del { color: var(--tm-muted); font-size: 13px; font-weight: 400; }
.woocommerce ul.products li.product .price ins { color: var(--tm-red); text-decoration: none; }
.woocommerce-price-suffix { display: block; font-size: 11px; font-weight: 400; color: var(--tm-muted); }

.woocommerce ul.products li.product .product-action-wrap .button {
	width: 100%;
	justify-content: center;
	margin-top: 10px;
	border: 2px solid var(--tm-ink);
	background: transparent;
	color: var(--tm-ink);
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	padding: .55em 1em;
	box-shadow: none;
}
.woocommerce ul.products li.product .product-action-wrap .button:hover { background: var(--tm-ink); color: #fff; }

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	background: var(--tm-red);
	color: #fff;
	border-radius: 6px;
	font-family: var(--tm-display);
	font-size: 18px;
	font-weight: 800;
	padding: 2px 9px;
	line-height: 1.3;
	min-height: 0;
	top: 10px;
	left: 10px;
	right: auto;
}

@media (max-width: 767px) {
	.woocommerce ul.products { gap: 12px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 19px; }
	.woocommerce ul.products li.product .price { font-size: 17px; }
	.woocommerce ul.products li.product .product-action-wrap .button { font-size: 13px; padding: .5em .6em; }
}

/* --------------------------------------------------------------------------
   Filtros de la tienda (HUSKY) en la barra lateral
   ----------------------------------------------------------------------- */
.tm-filters {
	background: #fff;
	border: 1px solid var(--tm-line);
	border-top: 4px solid var(--tm-field);
	border-radius: 12px;
	overflow: hidden;
}
.tm-filters > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
	background: var(--tm-field);
	color: #fff;
}
.tm-filters > summary::-webkit-details-marker { display: none; }
.tm-filters-title { font-family: var(--tm-display); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tm-filters-icon { font-size: 22px; line-height: 1; transition: transform .2s; color: var(--tm-wheat); }
.tm-filters[open] .tm-filters-icon { transform: rotate(45deg); }
.tm-filters-body { padding: 6px 18px 18px; }

.tm-filters .woof_container { padding: 14px 0; margin: 0; border-bottom: 1px solid var(--tm-line); }
.tm-filters .woof_container:last-of-type { border-bottom: 0; }
.tm-filters .woof_container h4 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-family: var(--tm-display);
	font-size: 19px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--tm-ink);
}
.tm-filters .woof_container h4::before { content: ""; width: 18px; height: 3px; background: var(--tm-wheat); }
.tm-filters .woof_list { margin: 0; padding: 0; list-style: none; }
.tm-filters .woof_list li { margin: 0; padding: 5px 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.tm-filters .woof_list li label { cursor: pointer; color: var(--tm-text); }
.tm-filters .woof_list li label:hover { color: var(--tm-red); }
.tm-filters input[type="checkbox"] { accent-color: var(--tm-red); width: 18px; height: 18px; margin: 0; }
.tm-filters .woof_checkbox_count { color: var(--tm-muted); font-size: 13px; }
.tm-filters .woof_checkbox_sales + label { font-weight: 600; color: var(--tm-red); }
.tm-filters .irs--round .irs-bar,
.tm-filters .irs-bar { background: var(--tm-red); }
.tm-filters .irs--round .irs-handle,
.tm-filters .irs-handle { border-color: var(--tm-red); }
.tm-filters .irs--round .irs-from,
.tm-filters .irs--round .irs-to,
.tm-filters .irs--round .irs-single { background: var(--tm-field); }
.tm-filters .woof_reset_search_form,
.tm-filters .woof_submit_search_form {
	border-radius: 999px;
	background: var(--tm-red);
	color: #fff;
	border: 0;
	padding: .55em 1.2em;
	font-weight: 700;
	margin-top: 10px;
}
.woof_products_top_panel { margin-bottom: 14px; }
.woof_products_top_panel li a { background: var(--tm-soft-2); color: var(--tm-ink); border-radius: 999px; padding: 4px 10px; }

/* Tienda con barra lateral: en móvil/tablet los filtros van ENCIMA de los productos */
@media (max-width: 1024px) {
	.tm-has-filters.has-left-sidebar .content-container.site-container { display: flex; flex-direction: column; }
	.tm-has-filters #secondary { order: -1; margin: 0 0 18px; }
	.tm-has-filters #secondary .sidebar-inner-wrap > *:not(:first-child) { display: none; }
}
@media (min-width: 1025px) {
	.tm-filters > summary { cursor: default; pointer-events: none; }
	.tm-filters-icon { display: none; }
}

/* --------------------------------------------------------------------------
   Ficha de producto
   ----------------------------------------------------------------------- */
/* Migas de pan: franja verde compacta, como la cabecera de la tienda */
.single-product .content-area { margin-top: 20px; }
.single-product .product-title.product-above {
	display: flex;
	align-items: center;
	min-height: 48px;
	margin: 0 0 24px;
	padding: 10px 18px 10px 20px;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 14px, rgba(255, 255, 255, 0) 14px 28px),
		var(--tm-field);
	border: 0;
	border-bottom: 3px solid var(--tm-wheat);
	border-radius: 10px;
}
.single-product .product-title.product-above .kadence-breadcrumbs {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, .65);
}
.single-product .product-title.product-above .kadence-breadcrumb-container { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.single-product .product-title.product-above .kadence-breadcrumbs a { color: #fff; font-weight: 600; text-decoration: none; }
.single-product .product-title.product-above .kadence-breadcrumbs a:hover { text-decoration: underline; text-decoration-color: var(--tm-wheat); text-underline-offset: 3px; }
.single-product .product-title.product-above .kadence-bc-home::before { content: "⌂ "; color: var(--tm-wheat); }
@media (max-width: 767px) {
	.single-product .content-area { margin-top: 12px; }
	.single-product .product-title.product-above { min-height: 42px; padding: 8px 14px; margin-bottom: 16px; font-size: 13px; }
}

/* Galería */
.single-product div.product .woocommerce-product-gallery {
	background: #fff;
	border: 1px solid var(--tm-line);
	border-top: 4px solid var(--tm-red);
	border-radius: 14px;
	padding: 16px;
}
.single-product div.product span.onsale { top: 22px; left: 22px; font-size: 22px; }

/* Resumen */
.tm-single-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; margin-bottom: 8px; }
.tm-single-meta .tm-card-type { display: inline; margin: 0; }
.tm-single-meta .tm-card-type { font-size: 13px; color: var(--tm-field); }
.tm-single-meta .tm-tag { font-size: 12px; padding: 3px 10px; }
.single-product div.product .product_title { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 8px; }
.single-product div.product .summary .price {
	display: inline-block;
	color: var(--tm-red);
	font-size: 34px;
	font-weight: 800;
	font-family: var(--tm-display);
	margin: 4px 0 16px;
}
.single-product div.product .summary .price del { color: var(--tm-muted); font-size: 22px; font-weight: 600; }
.single-product div.product .summary .price ins { text-decoration: none; }
.single-product div.product .summary .woocommerce-price-suffix { display: inline; font-family: var(--tm-font); font-size: 13px; margin-left: 6px; }

.single-product .woocommerce-product-details__short-description {
	background: var(--tm-cream);
	border-left: 4px solid var(--tm-wheat);
	border-radius: 0 12px 12px 0;
	padding: 14px 18px;
	margin-bottom: 20px;
	color: var(--tm-ink);
}
.single-product .woocommerce-product-details__short-description ul { margin: 0; padding-left: 0; list-style: none; }
.single-product .woocommerce-product-details__short-description li { position: relative; padding-left: 24px; margin: 4px 0; }
.single-product .woocommerce-product-details__short-description li::before { content: "✔"; position: absolute; left: 0; color: var(--tm-field); font-weight: 700; }
.single-product .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

.single-product .single_add_to_cart_button {
	min-height: 54px;
	border-radius: 999px;
	font-size: 17px;
	font-weight: 700;
	padding: 0 32px;
	background: var(--tm-red);
}
.single-product .single_add_to_cart_button:hover { background: var(--tm-red-dark); }
.single-product div.product form.cart .quantity .qty { min-height: 54px; border-radius: 999px; border: 2px solid var(--tm-line); }

/* Bloque de confianza: verde pino con rayas doradas, como la franja de ventajas */
.tm-trust-list {
	list-style: none;
	margin: 22px 0;
	padding: 16px 18px;
	background: var(--tm-field);
	color: #fff;
	border-radius: 14px;
	font-size: 14px;
	display: grid;
	gap: 10px;
}
.tm-trust-list li { margin: 0; padding-left: 12px; border-left: 3px solid var(--tm-wheat); }
.tm-trust-list span { display: none; }
.tm-trust-list a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--tm-wheat); text-underline-offset: 3px; }

.single-product .product_meta { font-size: 13px; color: var(--tm-muted); }
.single-product .product_meta a { color: var(--tm-red); }

/* Pestañas */
.single-product .woocommerce-tabs { margin-top: 40px; }
.single-product .woocommerce-tabs ul.tabs {
	background: var(--tm-field);
	border-radius: 12px 12px 0 0;
	padding: 0 12px;
	margin: 0;
	border: 0;
	display: flex;
	flex-wrap: wrap;
}
.single-product .woocommerce-tabs ul.tabs::before { display: none; }
.single-product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; margin: 0; padding: 0; }
.single-product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 14px 18px;
	font-family: var(--tm-display);
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: rgba(255, 255, 255, .8);
	border-bottom: 4px solid transparent;
}
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover { color: #fff; border-bottom-color: var(--tm-wheat); }
.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
	background: #fff;
	border: 1px solid var(--tm-line);
	border-top: 0;
	border-radius: 0 0 12px 12px;
	padding: 24px;
	margin: 0;
}
.woocommerce-Tabs-panel h2, .woocommerce-Tabs-panel h3 { text-transform: uppercase; color: var(--tm-field); }
.woocommerce-Tabs-panel table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-Tabs-panel table td,
.woocommerce-Tabs-panel table th { padding: 9px 12px; border-bottom: 1px solid var(--tm-line); vertical-align: top; }
.woocommerce-Tabs-panel table tr:nth-child(odd) { background: var(--tm-soft); }
.woocommerce-Tabs-panel table td:first-child { font-weight: 600; color: var(--tm-ink); }
@media (max-width: 600px) { .woocommerce-Tabs-panel { overflow-x: auto; } .single-product .woocommerce-tabs ul.tabs li a { font-size: 17px; padding: 12px; } }

/* Pestañas: Kadence/WooCommerce usan selectores más fuertes (.woocommerce div.product …). */
.woocommerce.single-product div.product .woocommerce-tabs ul.tabs li,
.woocommerce.single-product div.product .woocommerce-tabs ul.tabs li.active {
	display: inline-block;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}
.woocommerce.single-product div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 14px 18px 12px;
	font-family: var(--tm-display);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .78);
	opacity: 1;
	border-bottom: 4px solid transparent;
}
.woocommerce.single-product div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce.single-product div.product .woocommerce-tabs ul.tabs li a:hover { color: #fff; border-bottom-color: var(--tm-wheat); }
.woocommerce.single-product div.product .woocommerce-tabs .panel {
	margin: 0;
	padding: clamp(20px, 3vw, 32px);
	background: #fff;
	border: 1px solid var(--tm-line);
	border-top: 0;
	border-radius: 0 0 12px 12px;
}
/* El panel repetía el nombre de la pestaña ("Descripción") como título */
.woocommerce.single-product div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce.single-product div.product .woocommerce-tabs .panel ul { padding-left: 1.3em; }
.woocommerce.single-product div.product .woocommerce-tabs .panel li::marker { color: var(--tm-field); }
@media (max-width: 600px) {
	.woocommerce.single-product div.product .woocommerce-tabs ul.tabs li a { font-size: 17px; padding: 12px 12px 10px; }
	.woocommerce.single-product div.product .woocommerce-tabs .panel { padding: 18px 16px; }
}

a.tm-manual {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
	padding: 10px 16px;
	border: 2px solid var(--tm-red);
	border-radius: 999px;
	color: var(--tm-red);
	font-weight: 700;
	text-decoration: none;
}
a.tm-manual::before { content: "⬇"; }
a.tm-manual:hover { background: var(--tm-red); color: #fff; }

/* Productos relacionados */
.single-product .related.products,
.single-product .upsells.products { margin-top: 48px; padding: 32px 24px; background: var(--tm-soft); border-radius: 16px; }
.single-product .related.products > h2,
.single-product .upsells.products > h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: clamp(28px, 3.5vw, 40px);
	text-transform: uppercase;
	margin: 0 0 20px;
}
.single-product .related.products > h2::before,
.single-product .upsells.products > h2::before { content: ""; width: 34px; height: 4px; background: var(--tm-wheat); }
@media (max-width: 767px) { .single-product .related.products, .single-product .upsells.products { padding: 22px 12px; } }

/* --------------------------------------------------------------------------
   Portada
   ----------------------------------------------------------------------- */
.home #inner-wrap > .tm-home { width: 100%; }

.tm-section { padding: 64px 0; }
.tm-section-alt { background: var(--tm-soft); }
.tm-pt-0 { padding-top: 0; }
.tm-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.tm-section-head h2 { margin: 0; font-size: clamp(32px, 4.5vw, 48px); text-transform: uppercase; }
.tm-section-head p { margin: 6px 0 0; max-width: 56ch; }
.tm-section-head a { color: var(--tm-red); font-weight: 700; white-space: nowrap; text-decoration: none; }
@media (max-width: 767px) { .tm-section { padding: 44px 0; } .tm-pt-0 { padding-top: 0; } }

/* Portada con foto */
.tm-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 560px;
	color: #fff;
	background: var(--tm-ink) var(--tm-hero-img, none) center / cover no-repeat;
}
.tm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(18, 26, 22, .88) 0%, rgba(18, 26, 22, .55) 45%, rgba(18, 26, 22, .05) 75%),
		linear-gradient(0deg, rgba(18, 26, 22, .6), transparent 40%);
}
.tm-hero .tm-wrap { position: relative; width: 100%; padding-top: 80px; padding-bottom: 56px; }
.tm-hero h1 {
	color: #fff;
	font-size: clamp(46px, 8vw, 96px);
	text-transform: uppercase;
	font-weight: 800;
	line-height: .98;
	margin: 12px 0 14px;
	max-width: 11ch;
}
.tm-hero-text { font-size: clamp(16px, 2vw, 20px); max-width: 44ch; color: rgba(255, 255, 255, .9); margin: 0 0 24px; }
.tm-hero-search { max-width: 560px; margin-bottom: 16px; }
.tm-hero-search form { display: flex; position: relative; background: #fff; border-radius: 999px; padding: 5px; }
.tm-hero-search label { flex: 1; margin: 0; }
.tm-hero-search .screen-reader-text { position: absolute; }
.tm-hero-search input[type="search"] {
	width: 100%;
	min-height: 46px;
	border: 0;
	border-radius: 999px;
	padding: 0 18px;
	font-size: 16px;
	color: var(--tm-ink);
	background: transparent;
	box-shadow: none;
}
.tm-hero-search button,
.tm-hero-search input[type="submit"] {
	min-height: 46px;
	border: 0;
	border-radius: 999px;
	padding: 0 24px;
	background: var(--tm-red);
	color: #fff;
	font-weight: 700;
}
.tm-hero-search .kadence-search-icon-wrap { display: none; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-chips a {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .3);
	padding: 6px 12px;
	border-radius: 999px;
}
.tm-chips a:hover { background: rgba(255, 255, 255, .26); }
@media (max-width: 767px) {
	.tm-hero { min-height: 520px; background-image: var(--tm-hero-img-m, var(--tm-hero-img, none)); background-position: 30% center; }
	.tm-hero::before { background: linear-gradient(0deg, rgba(18, 26, 22, .92) 0%, rgba(18, 26, 22, .55) 60%, rgba(18, 26, 22, .25) 100%); }
}

/* Franja de ventajas */
.tm-trust { background: var(--tm-field); color: #fff; }
.tm-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.tm-trust-grid div { border-left: 3px solid var(--tm-wheat); padding-left: 12px; }
.tm-trust-grid strong { display: block; font-family: var(--tm-display); font-size: 21px; text-transform: uppercase; letter-spacing: .02em; }
.tm-trust-grid span { font-size: 13px; color: rgba(255, 255, 255, .8); }
@media (max-width: 800px) { .tm-trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ¿Qué trabajo vas a hacer? */
.tm-uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tm-use {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 340px;
	border-radius: 14px;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	background: var(--tm-ink);
}
.tm-use img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tm-use:hover img { transform: scale(1.05); }
.tm-use::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 26, 22, .9), rgba(18, 26, 22, .1) 60%); }
.tm-use div { position: relative; z-index: 1; padding: 22px; }
.tm-use h3 { color: #fff; font-size: 34px; text-transform: uppercase; margin: 0 0 4px; }
.tm-use p { margin: 0 0 10px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.tm-use span { font-size: 14px; font-weight: 700; color: #f1dfae; }
@media (max-width: 800px) { .tm-uses { grid-template-columns: 1fr; } .tm-use { min-height: 220px; } }

/* Banner del taller */
.tm-taller { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--tm-cream); border-radius: 16px; overflow: hidden; }
.tm-taller-txt { padding: 44px; }
.tm-taller h2 { font-size: clamp(34px, 4vw, 50px); text-transform: uppercase; margin: 8px 0 12px; }
.tm-taller ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tm-taller li { background: #fff; border-left: 4px solid var(--tm-field); border-radius: 0 10px 10px 0; padding: 10px 12px; font-weight: 600; font-size: 14px; color: var(--tm-ink); }
.tm-taller li::before { content: "✔ "; color: var(--tm-field); }
.tm-taller-img { position: relative; min-height: 380px; }
.tm-taller-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-taller-img span { position: absolute; left: 16px; bottom: 16px; background: rgba(28, 38, 34, .85); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.tm-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
	.tm-taller { grid-template-columns: 1fr; }
	.tm-taller-img { min-height: 240px; order: -1; }
	.tm-taller-txt { padding: 26px; }
	.tm-taller ul { grid-template-columns: 1fr; }
}

/* Compra por máquina */
.tm-machines { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.tm-machine { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--tm-ink); text-align: center; }
.tm-machine span {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--tm-line);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14%;
	transition: border-color .2s, box-shadow .2s;
}
.tm-machine:hover span { border-color: var(--tm-red); box-shadow: 0 6px 18px rgba(28, 38, 34, .1); }
.tm-machine img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 900px) { .tm-machines { grid-template-columns: repeat(4, 1fr); } }

/* Banner de temporada */
.tm-season {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 300px;
	border-radius: 16px;
	overflow: hidden;
	color: #fff;
	background: var(--tm-red-dark) var(--tm-season-img, none) 70% center / cover no-repeat;
}
.tm-season::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(92, 21, 32, .94) 0%, rgba(92, 21, 32, .72) 40%, rgba(92, 21, 32, 0) 72%); }
.tm-season > div { position: relative; padding: 40px; max-width: 560px; }
.tm-season h2 { color: #fff; font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; margin: 6px 0 10px; }
.tm-season p { margin: 0 0 20px; color: rgba(255, 255, 255, .92); }
@media (max-width: 700px) { .tm-season::before { background: rgba(92, 21, 32, .82); } .tm-season > div { padding: 28px; } }

/* --------------------------------------------------------------------------
   Marcas: [lista_marcas]
   ----------------------------------------------------------------------- */
.tm-brand-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .tm-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tm-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .tm-brand-grid.is-compact { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tm-brand {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	margin: 0; padding: 14px 12px 12px;
	background: #fff; border: 1px solid var(--tm-line); border-radius: var(--tm-radius);
	text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tm-brand:hover { border-color: var(--tm-field); box-shadow: 0 6px 20px rgba(0, 0, 0, .07); transform: translateY(-2px); }
.tm-brand.has-products { border-top: 4px solid var(--tm-red); }
.tm-brand-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 84px; }
.tm-brand-logo img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.tm-brand-text { font-family: var(--tm-display); font-weight: 800; font-size: 22px; color: var(--tm-ink); }
.tm-brand-name { font-weight: 700; font-size: 14px; color: var(--tm-ink); }
.tm-brand-cta { font-size: 13px; font-weight: 700; color: var(--tm-red); text-decoration: none; }
.tm-brand-cta:hover { text-decoration: underline; }
.tm-brand-cta.is-muted { color: var(--tm-muted); font-weight: 600; }
.tm-brand-grid.is-compact .tm-brand { padding: 10px; }
.tm-brand-grid.is-compact .tm-brand-logo { height: 70px; }

.tm-brands-intro { max-width: 62ch; font-size: 17px; margin: 0 0 24px; }
.tm-brands-help {
	margin-top: 32px; padding: 20px;
	border-radius: 0 var(--tm-radius) var(--tm-radius) 0;
	background: var(--tm-soft); border-left: 4px solid var(--tm-field);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.tm-brands-help p { margin: 0; }

/* --------------------------------------------------------------------------
   Pie de página: verde pino con rayas doradas, como la franja de ventajas
   ----------------------------------------------------------------------- */
#colophon .site-middle-footer-wrap .site-footer-row-container-inner { background: var(--tm-field); color: rgba(255, 255, 255, .85); padding-top: 52px; padding-bottom: 40px; }
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner { background: color-mix(in srgb, var(--tm-field) 70%, #000); color: rgba(255, 255, 255, .75); font-size: 13px; }
#colophon .site-middle-footer-wrap .site-footer-section { border-left: 3px solid var(--tm-wheat); padding-left: 18px; }
#colophon a { color: rgba(255, 255, 255, .88); text-decoration: none; }
#colophon a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--tm-wheat); text-underline-offset: 3px; }
.tm-foot-title { font-family: var(--tm-display); color: #fff; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 12px; }
.tm-foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.tm-foot-list li { margin: 0; }
.tm-foot-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.tm-foot-logo img { height: 42px; width: auto; }
.tm-foot-brand p { margin: 0; font-size: 15px; max-width: 32ch; }
@media (max-width: 1024px) {
	/* Marca y contacto arriba a lo ancho; Ayuda y Legal debajo, en 2 columnas. */
	#colophon .site-middle-footer-wrap .site-footer-row { column-gap: 28px; row-gap: 30px; }
	#colophon .site-middle-footer-wrap .site-footer-section { margin-bottom: 0; }
}
@media (max-width: 719px) {
	#colophon .site-middle-footer-wrap .site-footer-row { column-gap: 16px; }
	#colophon .site-middle-footer-wrap .site-footer-section { padding-left: 12px; }
	#colophon .site-middle-footer-wrap .tm-foot-list { font-size: 14px; }
}
@media (max-width: 380px) {
	#colophon .site-middle-footer-wrap .site-footer-row { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Páginas legales y de información (body.tm-legal)
   ----------------------------------------------------------------------- */
.tm-legal .content-container { max-width: 900px; }
.tm-legal .entry-content-wrap { padding: clamp(20px, 4vw, 44px); border-radius: 14px; border: 1px solid var(--tm-line); }
.tm-legal .entry-content { font-size: 16px; line-height: 1.7; color: var(--tm-text); }
.tm-legal .entry-content > * + * { margin-top: 1.1em; }
.tm-legal .entry-content h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 2.2em 0 .6em;
	font-size: clamp(24px, 3vw, 32px);
	text-transform: uppercase;
	color: var(--tm-ink);
}
.tm-legal .entry-content h2::before { content: ""; flex: 0 0 auto; width: 26px; height: 4px; background: var(--tm-wheat); border-radius: 2px; }
.tm-legal .entry-content h3 { font-size: 21px; text-transform: uppercase; color: var(--tm-field); margin: 1.6em 0 .4em; }
.tm-legal .entry-content a { color: var(--tm-red); font-weight: 600; text-underline-offset: 3px; }
.tm-legal .entry-content ul { padding-left: 1.2em; }
.tm-legal .entry-content li::marker { color: var(--tm-field); }
.tm-legal .tm-legal-lead {
	font-size: 18px;
	color: var(--tm-ink);
	padding-left: 16px;
	border-left: 4px solid var(--tm-field);
}

/* Tablas legales */
.tm-legal .wp-block-table { overflow-x: auto; margin: 1.2em 0; }
.tm-legal .wp-block-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border: 1px solid var(--tm-line); border-radius: 12px; overflow: hidden; }
.tm-legal .wp-block-table thead th {
	background: var(--tm-field);
	color: #fff;
	text-align: left;
	font-family: var(--tm-display);
	font-size: 17px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 12px 14px;
	border: 0;
}
.tm-legal .wp-block-table td { padding: 12px 14px; border: 0; border-top: 1px solid var(--tm-line); vertical-align: top; }
.tm-legal .wp-block-table tbody tr:nth-child(even) td { background: var(--tm-soft); }
.tm-legal .wp-block-table td:nth-child(2) { font-weight: 600; color: var(--tm-ink); white-space: nowrap; }
@media (max-width: 640px) { .tm-legal .wp-block-table td:nth-child(2) { white-space: normal; } }

.tm-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tm-pill-own { background: #e1eee6; color: #1f4d36; }
.tm-pill-third { background: #fcefd9; color: #7a4b06; }

/* Política de cookies */
.tm-consent-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin: 28px 0;
	padding: 22px 24px;
	background: var(--tm-field);
	color: #fff;
	border-radius: 14px;
	border-left: 6px solid var(--tm-wheat);
}
.tm-consent-box h2 { color: #fff; margin: 0 0 4px !important; font-size: 26px !important; }
.tm-consent-box h2::before { display: none; }
.tm-consent-box p { margin: 0; color: rgba(255, 255, 255, .88); }
.tm-consent-action button,
.tm-consent-action .cmplz-manage-consent,
.tm-consent-action a {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--tm-red) !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
}
.tm-consent-action button:hover,
.tm-consent-action a:hover { background: var(--tm-wheat); color: var(--tm-ink) !important; }

.tm-cookie-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 1em; }
.tm-cookie-type { background: var(--tm-soft); border-radius: 12px; padding: 16px 18px; border-top: 4px solid var(--tm-field); }
.tm-legal .tm-cookie-type h3 { margin: 0 0 8px; font-size: 18px; color: var(--tm-ink); }
.tm-cookie-type ul { margin: 0; padding-left: 1.1em; font-size: 15px; }
@media (max-width: 760px) { .tm-cookie-types { grid-template-columns: 1fr; } }

/* Lista automática de cookies de Complianz ([cmplz-cookies]): acordeón + tabla */
.tm-legal #cmplz-cookies-overview { display: grid; gap: 12px; margin: 1.2em 0 0; }
.tm-legal #cmplz-cookies-overview .cmplz-dropdown {
	margin: 0;
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}
.tm-legal #cmplz-cookies-overview .cmplz-dropdown:hover { border-color: #c9d2cd; }
.tm-legal #cmplz-cookies-overview .cmplz-dropdown[open] { border-color: var(--tm-field); box-shadow: 0 8px 22px rgba(28, 38, 34, .08); }

/* Cabecera del acordeón */
.tm-legal #cmplz-cookies-overview .cmplz-dropdown > summary {
	display: block;
	list-style: none;
	cursor: pointer;
	margin: 0;
	padding: 16px 20px;
	background: #fff;
}
.tm-legal #cmplz-cookies-overview .cmplz-dropdown > summary::-webkit-details-marker,
.tm-legal #cmplz-cookies-overview .cmplz-dropdown > summary::marker { display: none; content: ""; }
.tm-legal #cmplz-cookies-overview .cmplz-dropdown[open] > summary { background: var(--tm-soft); border-bottom: 1px solid var(--tm-line); }
.tm-legal #cmplz-cookies-overview summary > div {
	display: flex;
	align-items: center;
	gap: 14px;
}
.tm-legal #cmplz-cookies-overview summary > div::after {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	margin-left: 4px;
	border-right: 2px solid var(--tm-red);
	border-bottom: 2px solid var(--tm-red);
	transform: rotate(45deg) translateY(-3px);
	transition: transform .2s;
	background: none;
}
.tm-legal #cmplz-cookies-overview .cmplz-dropdown[open] summary > div::after { transform: rotate(-135deg) translateY(-3px); }
.tm-legal #cmplz-cookies-overview summary h3 {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	font-size: 19px;
	line-height: 1.2;
	color: var(--tm-ink);
	text-transform: uppercase;
}
.tm-legal #cmplz-cookies-overview summary p {
	flex: 0 0 auto;
	margin: 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: #e1eee6;
	color: #1f4d36;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-align: right;
}
.tm-legal #cmplz-cookies-overview summary label,
.tm-legal #cmplz-cookies-overview summary input { display: none; }
.tm-legal #cmplz-cookies-overview .cmplz-service-description,
.tm-legal #cmplz-cookies-overview .cmplz-sharing-data,
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .purpose { display: none; }

/* Tabla de cookies: cabecera una sola vez y tres columnas */
.tm-legal #cmplz-cookies-overview .cookies-per-purpose {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, 1.6fr);
	margin: 0;
	padding: 6px 20px 14px;
	font-size: 14px;
	line-height: 1.5;
	background: #fff;
}
.tm-legal #cmplz-cookies-overview .cookies-per-purpose > div { padding: 11px 14px 11px 0; border-top: 1px solid var(--tm-line); margin: 0; }
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .name-header,
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .name { grid-column: 1; }
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .retention-header,
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .retention { grid-column: 2; }
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .function-header,
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .function { grid-column: 3; padding-right: 0; }
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .name-header,
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .retention-header,
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .function-header { grid-row: 1; border-top: 0; padding-top: 12px; padding-bottom: 8px; }
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .name-header ~ .name-header,
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .retention-header ~ .retention-header,
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .function-header ~ .function-header { display: none; }
.tm-legal #cmplz-cookies-overview .cookies-per-purpose h5 {
	margin: 0;
	font-family: var(--tm-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--tm-field);
}
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .name {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12.5px;
	color: var(--tm-ink);
	overflow-wrap: anywhere;
}
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .retention { color: var(--tm-muted); }
.tm-legal #cmplz-cookies-overview .cookies-per-purpose .function { color: var(--tm-text); }

/* Móvil: cada cookie como una ficha con sus etiquetas */
@media (max-width: 640px) {
	.tm-legal #cmplz-cookies-overview summary > div { flex-wrap: wrap; gap: 6px 10px; }
	.tm-legal #cmplz-cookies-overview summary h3 { flex-basis: calc(100% - 30px); font-size: 17px; }
	.tm-legal #cmplz-cookies-overview .cookies-per-purpose { grid-template-columns: 1fr; padding: 4px 16px 12px; }
	.tm-legal #cmplz-cookies-overview .cookies-per-purpose > div { grid-column: 1 !important; grid-row: auto !important; padding: 0; border-top: 0; }
	.tm-legal #cmplz-cookies-overview .cookies-per-purpose .name-header ~ .name-header,
	.tm-legal #cmplz-cookies-overview .cookies-per-purpose .retention-header ~ .retention-header,
	.tm-legal #cmplz-cookies-overview .cookies-per-purpose .function-header ~ .function-header { display: block; }
	.tm-legal #cmplz-cookies-overview .cookies-per-purpose .name-header { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--tm-line); }
	.tm-legal #cmplz-cookies-overview .cookies-per-purpose .purpose + .name-header { border-top: 0; margin-top: 4px; }
	.tm-legal #cmplz-cookies-overview .cookies-per-purpose .retention-header,
	.tm-legal #cmplz-cookies-overview .cookies-per-purpose .function-header { margin-top: 6px; }
	.tm-legal #cmplz-cookies-overview .cookies-per-purpose h5 { font-size: 12px; color: var(--tm-muted); }
}

.tm-browser-links { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.tm-browser-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border: 2px solid var(--tm-line);
	border-radius: 999px;
	color: var(--tm-ink) !important;
	text-decoration: none;
	font-weight: 600;
}
.tm-browser-links a::after { content: "↗"; color: var(--tm-red); }
.tm-browser-links a:hover { border-color: var(--tm-red); }

/* Pie: contacto y horario debajo del logo, en dos columnas */
.tm-foot-info { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 28px; margin-top: 22px; }
.tm-foot-info .tm-foot-title { font-size: 19px; margin-bottom: 8px; }
.tm-foot-info a[href^="mailto:"], .tm-foot-info a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 600px) { .tm-foot-info { grid-template-columns: 1fr; } .tm-foot-info a { white-space: normal; } }

/* --------------------------------------------------------------------------
   Páginas de información pendientes de completar (solo para quien las edita)
   ----------------------------------------------------------------------- */
.tm-legal-pending {
	margin: 0 0 24px;
	padding: 14px 18px;
	background: #fff8d6;
	border-left: 4px solid var(--tm-wheat);
	border-radius: 0 10px 10px 0;
	color: #5a4a00;
	font-size: 15px;
}
mark.tm-todo { background: #fff3b0; color: #5a4a00; padding: 0 4px; border-radius: 3px; }

/* --------------------------------------------------------------------------
   Barra de contacto fija (solo móvil)
   ----------------------------------------------------------------------- */
.tm-mobile-bar { display: none; }
@media (max-width: 767px) {
	.tm-mobile-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		display: flex; background: #fff;
		border-top: 1px solid var(--tm-line);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.tm-mobile-bar a {
		flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
		padding: 8px 4px; font-size: 11px; font-weight: 700; color: var(--tm-ink); text-decoration: none;
	}
	.tm-mobile-bar a:first-child { color: var(--tm-red); }
	.tm-ico { font-size: 18px; line-height: 1; }
	body { padding-bottom: 64px; }
	#kt-scroll-up, #kt-scroll-up-reader { bottom: 76px !important; }
	/* El WhatsApp va en la barra: se oculta el botón flotante de Click to Chat para que no se solapen */
	.ht-ctc.ht-ctc-chat { display: none !important; }
}

:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --------------------------------------------------------------------------
   Quiénes somos (page-quienes-somos.php)
   ----------------------------------------------------------------------- */
.tm-qs-top { padding-bottom: 40px; }
.tm-qs .tm-taller h1 { font-size: clamp(40px, 5vw, 64px); margin: 8px 0 14px; }
.tm-qs-intro p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; }
.tm-qs-intro { margin-bottom: 24px; }
.tm-qs .tm-taller-img { min-height: 440px; }
.tm-qs-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tm-qs-cards article { background: #fff; border: 1px solid var(--tm-line); border-top: 4px solid var(--tm-field); border-radius: var(--tm-radius); padding: 22px; display: flex; flex-direction: column; }
.tm-qs-cards h3 { font-size: 24px; text-transform: uppercase; margin: 0 0 8px; }
.tm-qs-cards p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; flex: 1; }
.tm-qs-cards a, .tm-qs-visit a { color: var(--tm-red); font-weight: 700; text-decoration: none; }
.tm-qs-visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tm-qs-visit > div { background: #fff; border-left: 4px solid var(--tm-wheat); border-radius: 0 var(--tm-radius) var(--tm-radius) 0; padding: 20px 22px; }
.tm-qs-visit h3 { font-size: 22px; text-transform: uppercase; margin: 0 0 8px; }
.tm-qs-visit p { margin: 0 0 10px; line-height: 1.6; }
@media (max-width: 1000px) { .tm-qs-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) {
	.tm-qs .tm-taller-img { min-height: 220px; }
	.tm-qs-visit { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .tm-qs-cards { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Barra lateral de la tienda bajo los filtros: [trinidad_lateral]
   ----------------------------------------------------------------------- */
.tm-side { display: grid; gap: 14px; margin-top: 18px; }
.tm-side-promo {
	position: relative; display: flex; align-items: flex-end; min-height: 340px;
	border-radius: var(--tm-radius); overflow: hidden; color: #fff; text-decoration: none;
	background: var(--tm-field) var(--tm-side-img, none) center top / cover no-repeat;
	box-shadow: 0 6px 18px rgba(28, 38, 34, .12);
}
.tm-side-promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 38, 34, 0) 35%, rgba(28, 38, 34, .88) 100%); transition: background .2s; }
.tm-side-promo:hover::before { background: linear-gradient(180deg, rgba(28, 38, 34, .1) 20%, rgba(28, 38, 34, .92) 100%); }
.tm-side-promo-txt { position: relative; display: block; padding: 18px; }
.tm-side-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-wheat); margin-bottom: 4px; }
.tm-side-promo strong { display: block; font-family: var(--tm-display); font-size: 30px; font-weight: 800; line-height: 1; text-transform: uppercase; color: #fff; }
.tm-side-btn { display: inline-block; margin-top: 12px; background: var(--tm-red); color: #fff; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; }
.tm-side-promo:hover .tm-side-btn { background: var(--tm-red-dark); }
.tm-side-help { background: var(--tm-cream); border-left: 4px solid var(--tm-wheat); border-radius: 0 var(--tm-radius) var(--tm-radius) 0; padding: 16px; }
.tm-side-help strong { display: block; font-family: var(--tm-display); font-size: 21px; line-height: 1.05; text-transform: uppercase; color: var(--tm-ink); }
.tm-side-help p { margin: 6px 0 12px; font-size: 14px; line-height: 1.45; }
.tm-side-help a { display: block; text-align: center; font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 10px; border-radius: 999px; }
.tm-side-call { background: var(--tm-red); color: #fff; }
.tm-side-call:hover { background: var(--tm-red-dark); color: #fff; }
.tm-side-wa { margin-top: 8px; border: 2px solid var(--tm-field); color: var(--tm-field); }
.tm-side-wa:hover { background: var(--tm-field); color: #fff; }
/* La barra lateral de Kadence (.widget-area a) pinta los enlaces en oscuro: se fuerza el color de las tarjetas. */
.tm-side a.tm-side-promo, .tm-side a.tm-side-promo:hover { color: #fff; text-decoration: none; }
.tm-side a.tm-side-call, .tm-side a.tm-side-call:hover, .tm-side a.tm-side-call:focus { color: #fff; text-decoration: none; }
.tm-side a.tm-side-wa { color: var(--tm-field); text-decoration: none; }
.tm-side a.tm-side-wa:hover, .tm-side a.tm-side-wa:focus { color: #fff; text-decoration: none; }

/* Iconos SVG (trinidad_icon): toman el color del texto */
.tm-svg { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.17em; flex: none; }
.tm-ico .tm-svg { width: 20px; height: 20px; vertical-align: middle; }

/* Paginación centrada (tienda, categorías y búsquedas) */
.woocommerce nav.woocommerce-pagination, .woocommerce-pagination, .navigation.pagination { text-align: center; display: flex; justify-content: center; margin: 32px auto 8px; }
.woocommerce-pagination ul.page-numbers, .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; border: 0; margin: 0; padding: 0; }
.woocommerce-pagination ul.page-numbers li { border: 0; margin: 0; }
.woocommerce-pagination ul li .page-numbers, .navigation.pagination .page-numbers { margin: 0; min-width: 2.6em; line-height: 2.3em; border-radius: 999px; font-weight: 600; border: 2px solid var(--tm-line); background: #fff; color: var(--tm-ink); }
.woocommerce-pagination ul li a.page-numbers:hover, .navigation.pagination a.page-numbers:hover { border-color: var(--tm-field); color: var(--tm-field); }
.woocommerce-pagination ul li span.current, .navigation.pagination .page-numbers.current { background: var(--tm-field); border-color: var(--tm-field); color: #fff; }
.woocommerce-pagination ul li span.dots { border-color: transparent; background: none; }
/* Ubicación: chincheta de mapa en rojo, como la de Google Maps */
.tm-taller-img span .tm-svg { color: #ea4335; }
#colophon .tm-foot-list .tm-svg { color: #ea4335; }
#colophon .tm-foot-list a .tm-svg { color: inherit; }

/* --------------------------------------------------------------------------
   Contacto (page-contacto.php) y formularios de Contact Form 7
   ----------------------------------------------------------------------- */
.tm-contact .tm-section { padding-top: 40px; }
.tm-contact-head { margin-bottom: 26px; max-width: 640px; }
.tm-contact-head h1 { font-size: clamp(40px, 5vw, 60px); margin: 6px 0 8px; }
.tm-contact-head p:last-child { margin: 0; font-size: 17px; }
.tm-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 28px; align-items: start; }
.tm-contact-info { background: var(--tm-cream); border-radius: 16px; padding: 24px; }
.tm-contact-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tm-contact-info li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.tm-contact-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tm-field); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.tm-contact-ico .tm-svg { width: 19px; height: 19px; vertical-align: 0; }
.tm-contact-ico.is-pin { background: #fff; color: #ea4335; box-shadow: inset 0 0 0 2px #f2d3cf; }
.tm-contact-ico.is-pin .tm-svg { width: 22px; height: 22px; }
.tm-contact-info strong { display: block; font-family: var(--tm-display); font-size: 18px; text-transform: uppercase; letter-spacing: .03em; color: var(--tm-ink); line-height: 1.1; margin-bottom: 3px; }
.tm-contact-info span, .tm-contact-info a { font-size: 15px; line-height: 1.5; }
.tm-contact-info a { color: var(--tm-red); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.tm-contact-info a:hover { text-decoration: underline; }
.tm-contact-maps { display: inline-block; margin-top: 4px; font-size: 14px !important; }
.tm-contact-form { background: #fff; border: 1px solid var(--tm-line); border-radius: 16px; padding: 24px; }
.tm-contact-form h2 { font-size: 28px; text-transform: uppercase; margin: 0 0 16px; }
@media (max-width: 900px) { .tm-contact-grid { grid-template-columns: 1fr; } .tm-contact-form { order: -1; } }

/* Formulario CF7: campos en 2 columnas, mensaje y botón a lo ancho */
.wpcf7-form > p { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 0; }
.wpcf7-form > p > br { display: none; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; }
.wpcf7-form .wpcf7-form-control-wrap[data-name="your-message"] { grid-column: 1 / -1; }
.wpcf7-form input.wpcf7-form-control:not([type="submit"]), .wpcf7-form textarea.wpcf7-form-control {
	width: 100%; padding: 11px 14px; font-size: 15px; border: 1px solid var(--tm-line); border-radius: 10px; background: var(--tm-soft); color: var(--tm-ink); transition: border-color .15s, background .15s, box-shadow .15s;
}
.wpcf7-form textarea.wpcf7-form-control { height: 150px; min-height: 110px; resize: vertical; }
.wpcf7-form input.wpcf7-form-control:focus, .wpcf7-form textarea.wpcf7-form-control:focus { outline: none; border-color: var(--tm-field); background: #fff; box-shadow: 0 0 0 3px rgba(47, 93, 70, .15); }
.wpcf7-form input.wpcf7-submit { grid-column: 1 / -1; justify-self: start; padding: 11px 30px; border-radius: 999px; background: var(--tm-red); color: #fff; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; }
.wpcf7-form input.wpcf7-submit:hover { background: var(--tm-red-dark); }
.wpcf7-form .wpcf7-spinner { grid-column: 1 / -1; }
.wpcf7-form .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
.wpcf7-form .wpcf7-response-output { margin: 14px 0 0 !important; border-radius: 10px; font-size: 14px; }
@media (max-width: 560px) { .wpcf7-form > p { grid-template-columns: 1fr; } }
