/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ==========================================================================
   IMEXSU · Rediseño 2026
   Especificación: bóveda → 10-Proyectos Web/Clientes/imexsu/rediseno-home-y-tienda.md
   Maqueta aprobada: artefacto «IMEXSU — Rediseño»
   F1 · tokens y tipografía    F2 · marco (topbar, cabecera, navegación, pie)
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------
   Los dos colores de marca salen del PNG del logotipo, medidos sobre sus
   píxeles: #010463 (dominante) y #FFF100 (contorno). El amarillo no estaba
   en el sistema anterior y es lo que hace que la página se reconozca.
   El amarillo NUNCA lleva texto blanco (1,2:1); siempre texto azul (14,54:1).
   ----------------------------------------------------------------------- */
:root{
	--imx-brand:        #050A62;
	--imx-brand-700:    #0A1240;
	--imx-brand-900:    #03063F;

	--imx-accent:       #FFF100;
	--imx-accent-ink:   #050A62;

	--imx-action:       #1668C4;
	--imx-action-hover: #0F4F9E;
	--imx-action-soft:  #E8F1FB;

	--imx-ink:          #0E1420;
	--imx-ink-soft:     #1B2430;
	--imx-text:         #1F2937;
	--imx-text-muted:   #5B6472;
	--imx-on-ink:       #D7DCE3;
	--imx-on-ink-soft:  #B8C0CC;
	--imx-line:         #E3E8EF;
	--imx-line-strong:  #C9D2DE;
	--imx-surface:      #FFFFFF;
	--imx-surface-alt:  #F5F7FA;

	/* El verde de la maqueta, #1E874B, daba 4,54:1 sobre blanco y 4,28:1
	   sobre la banda gris: por debajo de AA en los dos sitios, y «En
	   existencia» es texto de 13 px que decide una compra. Oscurecido lo
	   justo para pasar sin cambiar el tono: 5,37:1 y 5,06:1.
	   El punto sí conserva el verde vivo: es un gráfico de 7 px, le basta
	   con 3:1 y da 3,19:1. */
	--imx-success:      #1A7A43;
	--imx-success-dot:  #22A45D;

	--imx-r-sm: 4px;
	--imx-r-md: 6px;
	--imx-r-lg: 8px;
	--imx-r-pill: 999px;
	--imx-sh-card:  0 1px 2px rgba(16,24,40,.04);
	--imx-sh-hover: 0 8px 24px rgba(16,24,40,.10);
	--imx-container: 1240px;

	/* El cuerpo lo sirve Woodmart desde sus opciones; declararlo aquí no
	   serviría porque esta hoja carga antes que base.min.css. */
	--imx-display: "Lemon Milk", "Archivo", system-ui, sans-serif;
	--imx-body: var(--wd-text-font, "IBM Plex Sans", system-ui, sans-serif);

	--imx-hero-home:   linear-gradient(120deg, #03063F 0%, #050A62 52%, #0A1240 100%);
	--imx-hero-tienda: linear-gradient(120deg, #03063F 0%, #050A62 100%);
	--imx-hero-marca:  linear-gradient(120deg, #03063F 0%, #0E1420 60%, #050A62 100%);
	--imx-map-img:     radial-gradient(120% 100% at 30% 20%, #E8F1FB 0%, #F5F7FA 62%);
}

/* --- 2. Tipografía ------------------------------------------------------ */
h1, h2,
.wd-el-title,
.woodmart-title-container .title{
	font-family: var(--imx-display);
	letter-spacing: -0.01em;
}

.wd-entities-title{ font-family: var(--imx-body); }

.price,
.amount,
.wd-product-sku,
.woocommerce-result-count{ font-variant-numeric: tabular-nums; }

/* --- 3. Contraste heredado (§8.8) --------------------------------------- */
.wd-product .wd-product-sku,
.wd-product .wd-product-detail{ color: var(--imx-text-muted); } /* 5,98:1 */

.wd-product .wd-product-cats,
.wd-product .wd-product-cats a{ color: var(--imx-action); }     /* 5,49:1 */

.wd-product .wd-product-cats a:hover{ color: var(--imx-action-hover); }

/* --- 4. C1 · Topbar -----------------------------------------------------
   El esquema «light» de la fila NO alcanza al contenido de un bloque HTML
   (§10.9): dentro del bloque el texto se quedaría en el gris del tema, que
   sobre este fondo da 3,2:1. Por eso los colores van explícitos.
   #D7DCE3 sobre #0E1420 = 13,37:1
   ----------------------------------------------------------------------- */
.imx-topbar{
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--imx-on-ink);
}

.imx-topbar span,
.imx-topbar a{
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--imx-on-ink);
	white-space: nowrap;
}

.imx-topbar a:hover{ color: #fff; }

.imx-topbar .imx-ico{
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	color: var(--imx-accent);
}

.imx-topbar--contacto{ gap: 22px; }
.imx-topbar__tel{ color: #fff; font-weight: 600; }

/* --- 5. C3 · Navegación -------------------------------------------------
   La pastilla se dibuja sobre .nav-link-text y no sobre el <a>: el enlace
   ocupa toda la altura de la fila, así que pintarle el fondo daría una
   pestaña de borde a borde en vez de la pastilla de la maqueta.
   ----------------------------------------------------------------------- */
.whb-header-bottom .wd-nav-main > li > a .nav-link-text{
	display: inline-block;
	padding: 7px 14px;
	border-radius: 0; /* cuadrado, como los botones (§17) */
	transition: background-color .15s ease, color .15s ease;
}

.whb-header-bottom .wd-nav-main > li.current-menu-item > a .nav-link-text,
.whb-header-bottom .wd-nav-main > li.current_page_item > a .nav-link-text,
.whb-header-bottom .wd-nav-main > li.current-menu-ancestor > a .nav-link-text{
	background-color: #FFF101;
	color: var(--imx-accent-ink); /* 14,54:1 — el amarillo nunca con texto blanco */
}

.whb-header-bottom .wd-header-cats .menu-opener{
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* --- 6. C4/C5 · Pie -----------------------------------------------------
   Desde el 21/09/2026 el pie (bloque HTML 4216) está rehecho con widgets
   nativos de Elementor: llamada mayorista, cuatro columnas (marca,
   catálogo, empresa y contacto) y barra legal, con colores y tipografías
   puestos en el propio panel. Las reglas que forzaban aquí los colores con
   !important sobre los contenedores del pie antiguo (d5e6ea9, 6f51876,
   e7bbc40 y 0c65820) se han retirado porque esos elementos ya no existen.
   La barra de copyright de Woodmart está apagada: el copyright va en la
   barra legal del propio bloque.
   ----------------------------------------------------------------------- */

/* --- 7. C13 · Tarjeta de producto ---------------------------------------
   La tarjeta ya traía categoría, título, SKU y precio con su unidad; el
   sufijo lo pinta woocommerce_get_price_html con el metadato _imexsu_unidad,
   así que aquí NO se maqueta ningún «c/u»: se le reserva sitio y se deja
   que el mu-plugin escriba «el ciento», «el millar», «la libra» o «el juego».
   ----------------------------------------------------------------------- */
.wd-product.product-grid-item{
	border-radius: var(--imx-r-md);
	transition: box-shadow .18s ease, border-color .18s ease;
}

.wd-product.product-grid-item:hover{
	box-shadow: var(--imx-sh-hover);
	border-color: var(--imx-action);
}

/* Línea de existencia. El marcado lo pone imx_existencia_en_bucle(): va como
   texto de verdad y no como ::after, para que se pueda leer y traducir. */
.imx-stock{
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--imx-success); /* 5,37:1 sobre blanco · 5,06:1 sobre el gris */
	line-height: 1.4;
}

.imx-stock__dot{
	width: 7px;
	height: 7px;
	border-radius: var(--imx-r-pill);
	background: var(--imx-success-dot);
	flex-shrink: 0;
}

/* El botón ocupa el ancho de la tarjeta, como en la maqueta. */
.wd-product .wd-add-btn > a,
.wd-product .add-to-cart-loop{
	width: 100%;
	justify-content: center;
}

/* El precio manda sobre el resto de la tarjeta, pero en la fuente de
   cuerpo: Lemon Milk solo tiene registrados los pesos 200, 400 y 500, así
   que un 700 saldría falseado, y sus cifras no son tabulares. */
.wd-product .price{
	font-family: var(--imx-body);
	font-weight: 700;
	font-size: 17px;
	color: var(--imx-ink);
}

.wd-product .price ins{ text-decoration: none; }
/* Orden de la tarjeta.
   La plantilla fw-button de Woodmart deja el SKU DESPUÉS del botón, y el SKU
   es el dato con el que llega el comprador de IMEXSU (§8.4): tiene que ir
   arriba. .product-element-bottom ya es una columna flex, así que basta
   reordenar; no hace falta sobrescribir la plantilla del tema. */
.product-element-bottom{
	display: flex;
	flex-direction: column;
}

.product-element-bottom .wd-product-cats{ order: 1; }
.product-element-bottom .wd-entities-title{ order: 2; }
.product-element-bottom .wd-product-sku{ order: 3; margin-top: 4px; }
.product-element-bottom .wrap-price{ order: 4; margin-top: 8px; }
.product-element-bottom .wd-add-btn{ order: 5; margin-top: 12px; }
.product-element-bottom .wd-product-card-hover{ order: 6; }
/* --- 8. C15 · Tiles de categoría de la tienda ---------------------------
   Banda propia entre el héroe y la fila de filtros, a todo el ancho, como
   en la maqueta.

   Las pinta header.php —no el shortcode del contenido de la página— por lo
   mismo que el héroe: desde el contenido caían dentro de la columna de
   contenido, al lado de la barra de filtros, con la mitad de ancho. Y como
   nacen dentro de main.wd-content-layout, que es la rejilla de dos
   columnas, llevan el mismo par grid-column + 100vw que el héroe. La nota
   larga está en la sección 14.

   Las cifras y el buscador que antes vivían aquí se mudaron al héroe.
   ----------------------------------------------------------------------- */
.imx-tienda-cabecera{
	grid-column: 1 / -1;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: var(--imx-surface);
	border-bottom: 1px solid var(--imx-line);
	margin-bottom: 32px;
}

.imx-tienda-cabecera__inner{
	width: min(1240px, calc(100% - 64px));
	margin: 0 auto;
	padding: 28px 0;
	box-sizing: border-box;
}

/* Buscador: el comprador de IMEXSU llega con el código en la mano (§8.4). */
.imx-buscador{
	display: flex;
	height: 46px;
	width: 100%;
	max-width: 400px;
}

.imx-buscador input[type="search"]{
	flex-grow: 1;
	height: 46px;
	box-sizing: border-box;
	border: 1px solid var(--imx-line-strong);
	border-right: 0;
	border-radius: var(--imx-r-sm) 0 0 var(--imx-r-sm);
	padding: 0 14px;
	font-size: 14px;
	font-family: inherit;
	color: var(--imx-text);
	background: var(--imx-surface);
}

.imx-buscador button{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: 0 var(--imx-r-sm) var(--imx-r-sm) 0;
	background: var(--imx-brand);
	color: #fff;              /* 17,13:1 */
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.imx-buscador button:hover{ background: var(--imx-brand-700); }

/* Tiles de categoría: siete, el último «Ver todas». */
.imx-tiles{
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 16px;
}

.imx-tile{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 9px;
	padding: 14px 8px;
	border: 1px solid var(--imx-line);
	border-radius: var(--imx-r-md);
	background: var(--imx-surface);
	text-align: center;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.imx-tile:hover{
	border-color: var(--imx-action);
	box-shadow: var(--imx-sh-hover);
}

.imx-tile img{
	width: 68px;
	height: 68px;
	object-fit: contain;
	display: block;
}

.imx-tile__n{
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--imx-ink);
}

.imx-tile__c{
	font-size: 11.5px;
	color: var(--imx-text-muted);
	font-variant-numeric: tabular-nums;
}

.imx-tile--todas{
	justify-content: center;
	background: var(--imx-brand);
	border-color: var(--imx-brand);
	color: var(--imx-accent);
}

.imx-tile--todas .imx-tile__n{ color: #fff; }           /* 17,13:1 */
.imx-tile--todas .imx-tile__c{ color: var(--imx-on-ink-soft); } /* 10,05:1 */
.imx-tile--todas:hover{ background: var(--imx-brand-700); border-color: var(--imx-brand-700); }

@media (max-width: 1024px){
	.imx-tiles{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px){
	.imx-tiles{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.imx-buscador{ max-width: none; }
	.imx-tienda-cabecera__inner{ padding: 20px 0; }
}
/* --- 9. C16/C17 · Barra de herramientas y barra de filtros --------------
   Los filtros son los widgets nativos montados el 19/09: diámetro, longitud,
   marca y categoría, con buscador dentro de la faceta y orden numérico.
   Esto es revestir, no montar (§2). No se toca su marcado.
   ----------------------------------------------------------------------- */
.shop-loop-head{
	padding-bottom: 16px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--imx-line);
}

.wd-breadcrumbs{
	font-size: 12.5px;
	color: var(--imx-text-muted);
}

.wd-breadcrumbs a{ color: var(--imx-text-muted); }
.wd-breadcrumbs a:hover{ color: var(--imx-action); }

.woocommerce-result-count{
	color: var(--imx-text-muted);
	font-size: 13.5px;
}

/* La línea del listado la monta woocommerce/loop/result-count.php, que es
   una plantilla propia: WooCommerce solo dice «Mostrando 1–12 de 225» y la
   maqueta pide además la página y el aviso de la unidad de venta. */
.imx-resultados{
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0;
	line-height: 1.5;
}

.imx-resultados__sep{ margin: 0 8px; color: var(--imx-line-strong); }
.imx-resultados__unidad{ color: var(--imx-text-muted); }

/* La barra lateral es una sola tarjeta, con los grupos dentro. */
.wd-sidebar .widget-area{
	border: 1px solid var(--imx-line);
	border-radius: var(--imx-r-md);
	background: var(--imx-surface);
	padding: 20px;
}

.wd-sidebar .sidebar-widget{
	border: 0;
	padding: 0;
	margin-bottom: 26px;
}

.wd-sidebar .sidebar-widget:last-child{ margin-bottom: 0; }

/* El título del widget es un H2 desde el filtro dynamic_sidebar_params: el
   tema lo registraba como H5 y el listado saltaba de H1 a H5. Por eso aquí
   hay que reponer la familia y anular el margen superior del H2, que la
   regla del H5 no traía. El tamaño no cambia: sigue siendo la etiqueta
   pequeña en versalitas de la maqueta. */
.wd-sidebar .widget-title{
	font-family: var(--imx-body);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--imx-ink);
	margin-top: 0;
	margin-bottom: 12px;
}

/* Los conteos de cada faceta, en el gris que sí pasa AA. */
.wd-sidebar .widget_layered_nav li .count,
.wd-sidebar .wd-widget li .count{
	color: var(--imx-text-muted); /* 5,98:1 */
	font-variant-numeric: tabular-nums;
}

/* El buscador interno de diámetro y longitud. */
.wd-sidebar .wd-search-field input,
.wd-sidebar input[type="search"],
.wd-sidebar input[type="text"]{
	border: 1px solid var(--imx-line);
	border-radius: var(--imx-r-sm);
	background: var(--imx-surface-alt);
	font-size: 13px;
}

/* Chips de filtro activo. Woodmart ya los pinta y ya sabe quitarlos; esto
   solo los viste. Hace falta el ancestro .wd-active-filters para ganarle
   por especificidad a la regla del tema. */
.wd-active-filters{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.wd-active-filters .widget_layered_nav_filters{
	margin: 0;
	padding: 0;
	border: 0;
}

.wd-active-filters .widget_layered_nav_filters ul{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wd-active-filters .widget_layered_nav_filters li.chosen{
	margin: 0;
	padding: 0;
}

.wd-active-filters .widget_layered_nav_filters li.chosen > a{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: var(--imx-r-pill);
	background: var(--imx-action-soft);
	color: var(--imx-action-hover); /* 6,40:1 sobre #E8F1FB */
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	padding: 8px 14px;
	font-variant-numeric: tabular-nums;
}

.wd-active-filters .widget_layered_nav_filters li.chosen > a:hover{
	background: #D7E6F8;
}

.wd-active-filters .wd-clear-filters .wd-action-text{
	font-size: 13px;
	font-weight: 600;
	color: var(--imx-text-muted); /* 5,98:1 */
	text-decoration: underline;
}

/* --- 10. Banner mayorista intercalado -----------------------------------
   Es hermano de las tarjetas dentro de la rejilla, así que ocupa todas las
   columnas con grid-column.
   ----------------------------------------------------------------------- */
.imx-banner-mayorista{
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 36px;
	flex-wrap: wrap;
	padding: 28px 32px;
	margin: 8px 0;
	border-radius: var(--imx-r-md);
	background: linear-gradient(115deg, var(--imx-ink) 0%, var(--imx-brand) 100%);
	box-sizing: border-box;
}

.imx-banner-mayorista__texto{ flex-grow: 1; min-width: 300px; }

.imx-banner-mayorista__eyebrow{
	margin: 0 0 10px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--imx-accent); /* 14,54:1 sobre el azul */
}

.imx-banner-mayorista__titulo{
	margin: 0 0 10px;
	font-family: var(--imx-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	color: #fff;              /* 17,13:1 */
}

.imx-banner-mayorista__entradilla{
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--imx-on-ink); /* 13,37:1 */
	max-width: 420px;
}

.imx-banner-mayorista__cta{
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 44px;
	padding: 0 22px;
	border-radius: var(--imx-r-sm);
	background: var(--imx-accent);
	color: var(--imx-accent-ink); /* 14,54:1 — el amarillo nunca con texto blanco */
	font-size: 13.5px;
	font-weight: 700;
}

.imx-banner-mayorista__cta:hover{ background: #E6D900; color: var(--imx-accent-ink); }

.imx-banner-mayorista__publicos{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-shrink: 0;
}

.imx-banner-mayorista__publicos li{
	position: relative;
	padding-left: 18px;
	font-size: 13px;
	color: #fff;
}

.imx-banner-mayorista__publicos li::before{
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -3.5px;
	border-radius: var(--imx-r-pill);
	background: var(--imx-accent);
}

@media (max-width: 768px){
	.imx-banner-mayorista{ padding: 24px; }
	.imx-banner-mayorista__publicos{ grid-template-columns: 1fr; }
}
/* --- 11. C6 · Héroe de portada y C7 · Categorías ------------------------ */
.imx-trama{
	position: absolute;
	inset: 0;
	opacity: .085;
	pointer-events: none;
}

/* A sangre, aunque el contenedor de la página venga limitado. */
.imx-hero,
.imx-seccion--sangre{
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.imx-hero{
	position: relative;
	min-height: 660px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	background-color: var(--imx-brand-900);
	background-image: var(--imx-hero-home);
	background-size: cover;
	background-position: center center;
}

/* Velo. Mucho más denso en la izquierda, que es donde va el texto: sobre
   foto el contraste NO se mide contra un fondo nominal (§20). */
.imx-hero::before{
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg,
		rgba(3, 6, 63, .95) 0%,
		rgba(3, 6, 63, .92) 38%,
		rgba(5, 10, 98, .82) 68%,
		rgba(5, 10, 98, .68) 100%);
}

.imx-hero__inner{
	position: relative;
	width: min(1240px, calc(100% - 64px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 72px;
	padding: 88px 0 116px;
	box-sizing: border-box;
}

.imx-hero__texto{ flex-grow: 1; }

.imx-hero__eyebrow{
	margin: 0 0 20px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--imx-accent);
}

.imx-hero__titulo{
	margin: 0;
	font-family: var(--imx-display);
	font-size: clamp(34px, 4.6vw, 66px);
	font-weight: 700;
	line-height: 1.02;
	text-transform: uppercase;
	color: #fff;
	letter-spacing: -0.01em;
}

.imx-hero__regla{
	display: block;
	width: 92px;
	height: 6px;
	background: var(--imx-accent);
	margin: 24px 0;
}

.imx-hero__regla--corta{ width: 48px; height: 4px; margin: 16px 0 24px; }

.imx-hero__entradilla{
	margin: 0 0 32px;
	font-size: 17px;
	line-height: 1.62;
	color: var(--imx-on-ink);
	max-width: 540px;
}

.imx-hero__ctas{ display: flex; flex-wrap: wrap; gap: 14px; }

.imx-btn{
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 28px;
	border-radius: var(--imx-r-sm);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1;
	box-sizing: border-box;
}

.imx-btn--acento{
	background: var(--imx-accent);
	color: var(--imx-accent-ink);   /* 14,54:1 */
}

.imx-btn--acento:hover{ background: #E6D900; color: var(--imx-accent-ink); }

.imx-btn--contorno{
	border: 1.5px solid rgba(255, 255, 255, .55);
	color: #fff;
	font-weight: 600;
}

.imx-btn--contorno:hover{ border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* Botón sólido de marca, sobre fondo claro. Blanco sobre #050A62 = 17,13:1 */
.imx-btn--solido{
	height: 48px;
	padding: 0 24px;
	background: var(--imx-brand);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.imx-btn--solido:hover{ background: var(--imx-brand-700); color: #fff; }

.imx-hero__panel{
	flex-shrink: 0;
	width: 320px;
	border-left: 1px solid rgba(255, 255, 255, .18);
	padding-left: 32px;
}

.imx-hero__claim{
	margin: 0;
	font-family: var(--imx-display);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--imx-on-ink);
}

.imx-hero__claim strong{ color: #fff; font-weight: 700; }

.imx-cifras{ margin: 0; display: flex; flex-direction: column; gap: 18px; }
.imx-cifras > div{ padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.imx-cifras > div:last-child{ border-bottom: 0; padding-bottom: 0; }

.imx-cifras dt{
	font-family: var(--imx-display);
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.imx-cifras dd{ margin: 5px 0 0; font-size: 13.5px; color: var(--imx-on-ink-soft); }

.imx-hero__sellos{
	position: relative;
	width: min(1240px, calc(100% - 64px));
	margin: 0 auto;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.imx-hero__sellos li{
	flex: 1 1 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 24px 0 24px 36px;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	border-left: 1px solid rgba(255, 255, 255, .14);
}

.imx-hero__sellos li:first-child{ padding-left: 0; border-left: 0; }
.imx-hero__sellos svg{ width: 22px; height: 22px; flex-shrink: 0; color: var(--imx-accent); }

/* Secciones genéricas de portada */
.imx-seccion{ padding: 84px 0; }
.imx-seccion__cabeza{
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.imx-eyebrow{
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--imx-action);
}

.imx-h2{
	margin: 0;
	font-family: var(--imx-display);
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 700;
	line-height: 1.08;
	text-transform: uppercase;
	color: var(--imx-ink);
	letter-spacing: -0.01em;
}

.imx-enlace{
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 14px;
	font-weight: 600;
	color: var(--imx-action);
}

.imx-enlace:hover{ color: var(--imx-action-hover); }

.imx-cats{
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 24px;
}

.imx-cat{
	display: flex;
	flex-direction: column;
	border: 1px solid var(--imx-line);
	border-radius: var(--imx-r-md);
	overflow: hidden;
	background: var(--imx-surface);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.imx-cat:hover{ border-color: var(--imx-action); box-shadow: var(--imx-sh-hover); }

.imx-cat__img{
	display: flex;
	align-items: center;
	justify-content: center;
	height: 176px;
	background: var(--imx-surface-alt);
}

.imx-cat__img img{ max-width: 88%; max-height: 88%; width: auto; height: auto; }

.imx-cat__cuerpo{ padding: 14px; border-top: 1px solid var(--imx-line); }

.imx-cat__n{
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.32;
	min-height: 36px;
	color: var(--imx-ink);
}

.imx-cat__c{
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--imx-text-muted);
	font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px){
	.imx-hero__inner{ flex-direction: column; align-items: flex-start; gap: 40px; padding: 56px 0 96px; }
	.imx-hero__panel{ width: 100%; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding: 24px 0 0; }
	.imx-cifras{ flex-direction: row; gap: 24px; }
	.imx-cifras > div{ flex: 1; border-bottom: 0; padding-bottom: 0; }
	.imx-cats{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.imx-hero__sellos{ flex-wrap: wrap; }
	.imx-hero__sellos li{ flex-basis: 100%; padding: 14px 0; border-left: 0; }
}

@media (max-width: 768px){
	.imx-seccion{ padding: 56px 0; }
	.imx-cats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.imx-cifras{ flex-direction: column; }
}
/* Los widgets de Elementor no ocupan el ancho de su contenedor por defecto:
   salían a 720 px, y con eso el cálculo a sangre del héroe lo desplazaba.
   La clase se pone desde _css_classes del widget (§15). */
.elementor-element.imx-ancho-total,
.elementor-element.imx-ancho-total > .elementor-widget-container,
.elementor-element.imx-ancho-total .elementor-shortcode{
	width: 100%;
	max-width: 100%;
}
/* --- 12. C8/C9/C10/C11 · Resto de la portada ---------------------------- */
.imx-seccion__inner,
.imx-banda__inner{
	width: min(1240px, calc(100% - 64px));
	margin: 0 auto;
}

.imx-seccion--alt{ background: var(--imx-surface-alt); }
.imx-seccion--cobertura{ background: var(--imx-surface); }

/* Bandas oscuras */
.imx-banda{
	position: relative;
	padding: 72px 0;
	overflow: hidden;
}

.imx-banda--azul{ background: linear-gradient(115deg, var(--imx-brand) 0%, var(--imx-brand-700) 100%); }
.imx-banda--tinta{ background: linear-gradient(115deg, var(--imx-ink) 0%, var(--imx-brand) 100%); }

.imx-eyebrow--claro{ color: var(--imx-accent); }      /* 14,54:1 */
.imx-h2--claro{ color: #fff; }                        /* 17,13:1 */
.imx-parrafo-claro{
	margin: 0 0 26px;
	font-size: 16px;
	line-height: 1.62;
	color: var(--imx-on-ink);                         /* 13,37:1 */
	max-width: 470px;
}

.imx-parrafo{
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.62;
	color: var(--imx-text-muted);
	max-width: 520px;
}

/* C8 · seis cifras */
.imx-rejilla6{
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--imx-r-md);
	overflow: hidden;
}

.imx-rejilla6 li{
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 24px 16px;
	background: var(--imx-brand);
}

.imx-rejilla6 svg{ width: 24px; height: 24px; color: var(--imx-accent); margin-bottom: 6px; }
.imx-rejilla6 strong{ font-size: 15px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.imx-rejilla6 span{ font-size: 12.5px; color: var(--imx-on-ink-soft); }  /* 10,05:1 */

/* C10 · mayorista */
.imx-banda__inner--dos{
	display: flex;
	align-items: center;
	gap: 64px;
	flex-wrap: wrap;
}

.imx-banda__inner--dos > div:first-child{ flex: 1 1 420px; }

.imx-publicos{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	max-width: 520px;
}

.imx-publicos li{
	font-size: 13px;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: var(--imx-r-pill);
	padding: 8px 15px;
}

.imx-tarjeta-oscura{
	flex: 0 1 400px;
	background: var(--imx-ink-soft);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: var(--imx-r-lg);
	padding: 32px;
	box-sizing: border-box;
}

.imx-tarjeta-oscura dl{ margin: 20px 0 0; display: flex; flex-direction: column; gap: 20px; }
.imx-tarjeta-oscura dl > div{ display: grid; grid-template-columns: 22px 1fr; gap: 4px 14px; }
.imx-tarjeta-oscura svg{ width: 21px; height: 21px; color: var(--imx-accent); grid-row: span 2; margin-top: 2px; }
.imx-tarjeta-oscura dt{ font-size: 14.5px; font-weight: 600; color: #fff; }
.imx-tarjeta-oscura dd{ margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--imx-on-ink-soft); }

/* C11 · cobertura */
.imx-cobertura{ display: flex; align-items: center; gap: 64px; flex-wrap: wrap; }
.imx-cobertura__texto{ flex: 1 1 420px; }
.imx-cobertura__mapa{ flex: 1 1 480px; position: relative; }

.imx-ranura{
	height: 360px;
	border: 1px dashed var(--imx-line-strong);
	border-radius: var(--imx-r-lg);
	background: var(--imx-map-img);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--imx-text-muted);
	text-align: center;
}

.imx-ranura svg{ color: #9AA6B5; }
.imx-ranura p{ margin: 0; font-size: 13px; line-height: 1.5; }

.imx-cobertura__tarjeta{
	position: absolute;
	right: -14px;
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--imx-surface);
	border: 1px solid var(--imx-line);
	border-radius: var(--imx-r-md);
	padding: 14px 18px;
	box-shadow: var(--imx-sh-hover);
}

.imx-cobertura__tarjeta svg{ color: var(--imx-action); flex-shrink: 0; }
.imx-cobertura__tarjeta strong{ display: block; font-size: 14px; color: var(--imx-ink); }
.imx-cobertura__tarjeta span{ display: block; font-size: 12.5px; color: var(--imx-text-muted); margin-top: 2px; }

.imx-btn--marco{
	border: 1.5px solid var(--imx-brand);
	color: var(--imx-brand);
	font-weight: 600;
}

.imx-btn--marco:hover{ background: var(--imx-brand); color: #fff; }

@media (max-width: 1024px){
	.imx-rejilla6{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.imx-cobertura__tarjeta{ right: 0; }
}

@media (max-width: 768px){
	.imx-banda{ padding: 56px 0; }
	.imx-rejilla6{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.imx-ranura{ height: 260px; }
}
/* La tarjeta lleva fondo propio: sobre una sección gris, «En existencia»
   se quedaba en 4,23:1 por heredar el fondo de la banda. */
.wd-product.product-grid-item{
	background: var(--imx-surface);
}

/* --- 13. C18 · H2 del listado de tienda ---------------------------------
   El nivel que faltaba entre el H1 de la página y los H3 de las tarjetas.
   El marcado lo pone imx_titulo_listado().

   26 px fijos, como la maqueta, y no el clamp de .imx-h2: ese llega a 40 px
   en escritorio y ahí competiría con el H1 del héroe, que está justo encima
   a 46 px. El peso se deja en el 700 heredado en vez del 800 de la maqueta:
   Lemon Milk no tiene registrado el 800 y saldría falseado, igual que pasa
   con el precio de la tarjeta.
   #0E1420 sobre blanco = 18,43:1
   ----------------------------------------------------------------------- */
.imx-h2--listado{
	font-size: 26px;
	margin-bottom: 18px;
}

/* --- 14. C14 · Héroe de la tienda ---------------------------------------
   Sustituye a la banda de título del tema, que era la genérica con foto y
   título centrado. Aquí el fondo es el degradado plano de la maqueta, que
   ya estaba declarado como token desde F1 y hasta ahora no lo usaba nadie.

   Dónde acaba en el DOM, y por qué hacen falta estas dos líneas raras:
   header.php lo llama justo detrás de woodmart_page_top_part(), y esa
   función deja abierto main.wd-content-layout, que es la rejilla de dos
   columnas. O sea que el héroe, quiera o no, nace como PRIMER ítem de esa
   rejilla: sin ayuda sale en una columna de 90 px entre los filtros y el
   listado. grid-column lo estira a toda la fila y el 100vw lo saca del
   contenedor de 1240. Es el mismo par de trucos que ya usan el banner
   mayorista, la banda de tiles y .imx-seccion--sangre.

   Se resuelve con rejilla y NO con order: -1 a propósito. order cambiaría
   solo el orden visual, y el H1 se seguiría leyendo detrás de los H5 de
   los filtros, que es justo la jerarquía que este trabajo arregla.

   Contrastes sobre el degradado, medidos contra su parada más clara
   (#050A62): blanco 17,13:1 · #D7DCE3 12,42:1 · #B8C0CC 9,34:1.
   El separador «/» y los puntos medios van en #6B7482, que NO pasaría,
   pero son aria-hidden y puramente decorativos.
   ----------------------------------------------------------------------- */
.imx-hero-tienda{
	grid-column: 1 / -1;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	position: relative;
	display: flex;
	align-items: center;
	min-height: 280px;
	background: var(--imx-hero-tienda);
}

.imx-hero-tienda__inner{
	width: min(1240px, calc(100% - 64px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 48px;
	padding: 40px 0;
	box-sizing: border-box;
}

.imx-hero-tienda__texto{ flex-grow: 1; }

/* Miga de pan. La del tema iba dentro de la banda que hemos apagado, y
   además sigue saliendo en la fila de herramientas, así que allí se apaga
   con el filtro woocommerce_get_breadcrumb: si no, la ruta se dice dos
   veces y un lector de pantalla la oye dos veces. */
.imx-miga{
	margin-bottom: 14px;
	font-size: 12.5px;
	color: var(--imx-on-ink-soft);
}

.imx-miga a{ color: var(--imx-on-ink-soft); }
.imx-miga a:hover{ color: #fff; }
.imx-miga__sep{ margin: 0 8px; color: #6B7482; }
.imx-miga__actual{ color: #fff; }

.imx-hero-tienda__titulo{
	margin: 0;
	font-family: var(--imx-display);
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
	letter-spacing: -0.01em;
}

.imx-hero-tienda__regla{
	display: block;
	width: 68px;
	height: 5px;
	background: var(--imx-accent);
	margin: 18px 0;
}

.imx-hero-tienda__regla--corta{ width: 48px; height: 4px; margin: 14px 0 0; }

.imx-hero-tienda__cifras{
	margin: 0;
	font-size: 15.5px;
	color: var(--imx-on-ink);
	font-variant-numeric: tabular-nums;
}

.imx-hero-tienda__cifras strong{ font-weight: 700; }
.imx-hero-tienda__cifras span{ margin: 0 6px; color: #6B7482; }

.imx-hero-tienda__claim{
	flex-shrink: 0;
	width: 190px;
	margin: 0;
	padding-left: 24px;
	border-left: 1px solid rgba(255, 255, 255, .18);
	font-family: var(--imx-display);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--imx-on-ink-soft);
}

.imx-hero-tienda__claim strong{ color: #fff; font-weight: 700; }

/* El buscador del héroe: mismo componente, botón de acento. Sobre el azul
   el borde gris del campo sobra, así que se hace transparente. */
.imx-buscador--hero{
	flex-shrink: 0;
	width: 380px;
	max-width: 380px;
	height: 52px;
}

.imx-buscador--hero input[type="search"]{
	height: 52px;
	border-color: transparent;
}

.imx-buscador--hero button{
	width: 118px;
	height: 52px;
	justify-content: center;
	background: var(--imx-accent);
	color: var(--imx-accent-ink);   /* 14,54:1 */
	font-size: 14px;
	font-weight: 700;
}

.imx-buscador--hero button:hover{ background: #E6D900; }

@media (max-width: 1024px){
	.imx-hero-tienda__inner{ flex-wrap: wrap; gap: 24px; padding: 32px 0; }
	.imx-hero-tienda__claim{
		width: 100%;
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, .18);
		padding-top: 18px;
	}
	.imx-buscador--hero{ width: 100%; max-width: none; }
}

/* --- 15. Relleno superior del contenido --------------------------------
   Woodmart mete padding-top: 40px en main.wd-content-layout para separar el
   contenido de la cabecera. En Inicio, en la Tienda y en el archivo de
   marca eso no vale: las tres arrancan con un héroe a sangre pegado arriba,
   así que ese relleno se ve como una franja blanca de 40 px entre la
   navegación y el degradado.

   Acotado por clase de body. En el resto de páginas el relleno hace falta
   y se queda.
   ----------------------------------------------------------------------- */
.home main.wd-content-layout,
.woocommerce-shop main.wd-content-layout,
.tax-product_brand main.wd-content-layout{
	padding-top: 0;
}

/* --- 16. C19 · Marca Hurakan -------------------------------------------
   Viste el archivo de la taxonomía product_brand. El listado, los filtros
   y la paginación son los de WooCommerce: aquí solo se añaden el héroe, la
   presentación y la banda de cierre.

   Las tres piezas nacen dentro de main.wd-content-layout, igual que el
   héroe de la tienda y por el mismo motivo, así que llevan el mismo par
   grid-column + 100vw. Ver la nota larga de la sección 14.

   Contrastes sobre el degradado, contra su parada más clara (#050A62):
   blanco 17,13:1 · #B8C0CC 9,34:1. El triángulo rojo #D92B2B es la marca
   gráfica, va aria-hidden y no cuenta: el nombre está en el texto.
   ----------------------------------------------------------------------- */
.imx-hero-marca,
.imx-marca-intro,
.imx-marca-cierre{
	grid-column: 1 / -1;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.imx-hero-marca{
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	min-height: 420px;
	background: var(--imx-hero-marca);
}

.imx-hero-marca__inner{
	position: relative;
	width: min(1240px, calc(100% - 64px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 64px;
	padding: 48px 0;
	box-sizing: border-box;
}

.imx-hero-marca__texto{ flex-grow: 1; }

.imx-hero-marca__rotulo{
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.imx-hero-marca__nombre{
	margin: 0;
	font-family: var(--imx-display);
	font-size: clamp(38px, 4.3vw, 62px);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .01em;
	color: #fff;              /* 17,13:1 */
}

.imx-hero-marca__lema{
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 500;
	color: #fff;
}

.imx-hero-marca__pie{
	margin: 0 0 26px;
	font-size: 15px;
	color: var(--imx-on-ink-soft);   /* 9,34:1 */
}

.imx-hero-marca__pie span{ margin: 0 4px; }

.imx-hero-marca__ejes{
	flex-shrink: 0;
	width: 240px;
	margin: 0;
	padding-left: 26px;
	border-left: 1px solid rgba(255, 255, 255, .16);
	font-family: var(--imx-display);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--imx-on-ink-soft);
}

.imx-hero-marca__ejes strong{ color: #fff; font-weight: 700; }

.imx-hero-marca__regla{
	display: block;
	width: 52px;
	height: 4px;
	margin-top: 16px;
	background: var(--imx-accent);
}

.imx-hero-marca__sellos{
	position: relative;
	width: min(1240px, calc(100% - 64px));
	margin: 0 auto;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, .16);
}

.imx-hero-marca__sellos li{
	flex: 1 1 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 22px 0 22px 34px;
	font-size: 13.5px;
	font-weight: 500;
	color: #fff;
	border-left: 1px solid rgba(255, 255, 255, .16);
}

.imx-hero-marca__sellos li:first-child{ padding-left: 0; border-left: 0; }
.imx-hero-marca__sellos svg{ width: 20px; height: 20px; flex-shrink: 0; color: var(--imx-accent); }

/* Presentación de la marca, sobre blanco. */
.imx-marca-intro{ background: var(--imx-surface); }

.imx-marca-intro__inner{
	width: min(1240px, calc(100% - 64px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 56px;
	padding: 64px 0;
	box-sizing: border-box;
}

.imx-marca-intro__texto{ flex: 0 0 400px; max-width: 400px; }
.imx-marca-intro__texto .imx-h2{ margin-bottom: 16px; }
.imx-marca-intro__texto .imx-parrafo{ max-width: none; }

.imx-marca-intro__cats{
	flex-grow: 1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 20px;
}

/* Banda de cierre. Sale después del listado, por
   woocommerce_after_main_content. */
.imx-marca-cierre__inner{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	flex-wrap: wrap;
}

.imx-marca-cierre .imx-parrafo-claro{ margin-bottom: 0; max-width: 560px; }

/* El ancla de «Explorar productos». Sin este margen, la cabecera pegajosa
   del tema tapa el primer producto al saltar. */
.imx-ancla{
	display: block;
	height: 0;
	scroll-margin-top: 140px;
}

@media (max-width: 1024px){
	.imx-hero-marca__inner{ flex-wrap: wrap; gap: 28px; padding: 36px 0; }
	.imx-hero-marca__ejes{
		width: 100%;
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, .16);
		padding-top: 18px;
	}
	.imx-hero-marca__sellos{ flex-wrap: wrap; }
	.imx-hero-marca__sellos li{ flex-basis: 100%; padding: 12px 0; border-left: 0; }
	.imx-marca-intro__inner{ flex-direction: column; align-items: flex-start; gap: 32px; padding: 48px 0; }
	.imx-marca-intro__texto{ flex-basis: auto; max-width: none; }
	.imx-marca-intro__cats{ width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px){
	.imx-marca-intro__cats{ grid-template-columns: 1fr; }
}

/* --- 17. Botones cuadrados ----------------------------------------------
   Decisión del cliente (21/09/2026): todos los botones de la web van en
   ángulo recto, sin redondeo. Los del tema (btn-accent, «Añadir al
   carrito», acceso…) se cuadran desde Woodmart → Estilos de botón; esto
   cubre los propios del rediseño y el envío de Contact Form 7.
   El prefijo body es para ganar a paginas.css, faq.css y producto.css,
   que cargan después de esta hoja con la misma especificidad.
   Los tokens --imx-r-* NO se tocan: siguen redondeando tarjetas y campos.
   ----------------------------------------------------------------------- */
body .imx-btn,
body .imx-banner-mayorista__cta,
body .imx-buscador button,
body .imx-buscador input[type="search"],
body .imx-form input[type="submit"],
body input.wpcf7-submit{
	border-radius: 0;
}
/* --- 18. Portada construida en Elementor --------------------------------
   Desde el 21/09/2026 la portada ya no la pintan los shortcodes
   [imx_*_home]: son contenedores y widgets nativos de Elementor, con
   colores, tipografías y espaciados puestos en el propio panel. Aquí solo
   queda lo que Elementor no sabe hacer desde su interfaz. Las clases se
   ponen en Avanzado → Clases CSS del elemento.
   ----------------------------------------------------------------------- */

/* Trama hexagonal (la cabeza del perno) sobre el fondo de una sección. */
.imx-e-trama{ position: relative; overflow: hidden; }
.imx-e-trama::after{
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: .085;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='66'%3E%3Cpath d='M29 3 L53 17 L53 45 L29 59 L5 45 L5 17 Z' fill='none' stroke='%23FFF100' stroke-width='1.4'/%3E%3C/svg%3E");
	background-repeat: repeat;
}
.imx-e-trama > .e-con-inner,
.imx-e-trama > .e-con,
.imx-e-trama > .elementor-element{ position: relative; z-index: 1; }

/* Públicos del bloque mayorista: la lista de iconos en línea, en pastilla. */
.imx-e-chips .elementor-icon-list-items{ gap: 10px; }
.imx-e-chips .elementor-icon-list-item{
	margin: 0 !important;
	padding: 8px 15px !important;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: var(--imx-r-pill);
}
.imx-e-chips .elementor-icon-list-item::after{ display: none !important; }

/* Cifras de los textos: la cifra grande va en <strong> dentro del editor. */
.imx-e-cifra p{ margin: 0; }
.imx-e-cifra strong{ display: block; }
/* Variantes de cifra: el número va en <strong> y la etiqueta detrás. */
.imx-e-cifra--hero strong{
	margin-bottom: 5px;
	font-family: var(--imx-display);
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.imx-e-cifra--banda strong{
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.imx-e-cifra--beneficio strong{
	margin-bottom: 4px;
	font-size: 14.5px;
	font-weight: 600;
	color: #fff;
}
/* Cifras de la tarjeta de la página de marca, junto al vídeo. */
.imx-e-cifra--marca strong{
	margin-bottom: 2px;
	font-family: var(--imx-display);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: var(--imx-ink);
	font-variant-numeric: tabular-nums;
}
.imx-e-cifra--tarjeta strong{
	margin-bottom: 2px;
	font-size: 14px;
	color: var(--imx-ink);
}
@media (max-width: 1024px){
	.imx-e-cifra--hero strong{ font-size: 32px; }
}
/* Secciones a sangre hechas con contenedores: Elementor les pone
   max-width: min(100%, var(--width)), que las recorta al ancho de la
   columna y deja una franja blanca a la derecha. */
.e-con.imx-seccion--sangre{
	--width: 100vw;
	width: 100vw;
	max-width: none;
}
/* Bloques de la página de marca (Elementor): a lo ancho dentro de la rejilla. */
.imx-marca-bloque{
	grid-column: 1 / -1;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}
.imx-marca-bloque--hurakan-cierre{ margin-top: 48px; }

/* Refuerzo: en páginas donde la hoja de Elementor carga DESPUÉS de esta
   (p. ej. la de marca, que pinta bloques en el cuerpo), su regla
   `[data-elementor-id] > .e-con` ganaba por orden y recortaba las franjas
   a sangre. Con el atributo delante gana por especificidad, cargue como
   cargue. Elementor pone el margen con variables lógicas, así que se
   corrige la variable además de la propiedad. */
[data-elementor-id] > .e-con.imx-seccion--sangre,
.e-con.e-con.imx-seccion--sangre{
	--width: 100vw;
	--margin-left: calc(50% - 50vw);
	--margin-right: 0px;
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
}

/* Cifras de la banda «Un aliado» de Nosotros (Elementor). */
.imx-e-cifra--nos strong{
	margin-bottom: 8px;
	font-family: var(--imx-display);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

/* Misión y visión (Nosotros, Elementor): Elementor no deja dar un color
   distinto a cada lado del borde, y el izquierdo lleva el color de marca. */
.e-con.imx-e-mv--mision{ border-left-color: var(--imx-brand) !important; }
.e-con.imx-e-mv--vision{ border-left-color: var(--imx-accent) !important; }

/* Pastillas sobre fondo claro (manifiesto de la portada, fondo amarillo). */
.imx-e-chips--oscuro .elementor-icon-list-item{
	border-color: rgba(5, 10, 98, .35);
	background: rgba(255, 255, 255, .35);
}
.imx-e-chips--centro .elementor-icon-list-items{ justify-content: center; }

/* Cita de «Más allá de un tornillo». */
.imx-e-cita p{ margin: 0; }

/* --- 19. Ajustes de móvil (revisión del 22/09/2026) --------------------- */
@media (max-width: 768px){
	/* Precios en las tarjetas: los rangos largos («L699.83 - L725.25»)
	   se salían de la tarjeta a dos columnas. */
	.wd-product .price{
		font-size: 14.5px;
		white-space: normal;
		overflow-wrap: anywhere;
	}
	.wd-product .wrap-price{ overflow: visible; }

	/* Tienda: las siete categorías ocupaban una pantalla entera antes del
	   primer producto. En móvil pasan a una fila deslizable. */
	.imx-tiles{
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
		margin-right: -20px;
		padding-right: 20px;
		-webkit-overflow-scrolling: touch;
	}
	.imx-tile{
		flex: 0 0 124px;
		scroll-snap-align: start;
	}
	.imx-tile img{ width: 56px; height: 56px; }

	/* El lema del héroe de la tienda sobra en móvil: el héroe ya es alto. */
	.imx-hero-tienda__claim{ display: none; }

	/* Ficha: medida y botón a todo el ancho, que es donde está el pulgar. */
	.single-product .variations select{ width: 100%; max-width: none; }
	.single-product .variations td.value{ width: 100%; }
	.single-product .single_add_to_cart_button{
		width: 100%;
		min-height: 50px;
		margin-top: 10px;
	}
	.single-product .imx-fp__consultar{ margin-top: 10px; }
}
/* Rejillas de Elementor cuyas filas deben medir lo que su contenido y no
   repartirse la altura a partes iguales (canales de Contacto en móvil). */
.e-con.imx-e-filas-auto,
.e-con.imx-e-filas-auto > .e-con-inner{
	grid-template-rows: none !important;
	grid-auto-rows: auto;
}

/* Nombre completo en la tarjeta de producto ------------------------------- */
/* Woodmart recorta el título a dos líneas (max-height: 2,8 em). Con precios
   eso daba igual; en un catálogo sin precios el nombre es lo único que
   identifica el producto, y en móvil «PERNO C/ HEXAGONAL UNC PLAIN ROSCA» se
   quedaba en «PERNO C/ HEXAGONAL UNC». Se deja que ocupe lo que necesite. */
/* El selector lleva body porque la regla de Woodmart es
   [class*="title-line-"] .wd-product .wd-entities-title y se carga después. */
body [class*="title-line-"] .wd-product .wd-entities-title,
body .wd-product .wd-entities-title,
body .wd-product .wd-entities-title a{
	max-height: none;
	overflow: visible;
	-webkit-line-clamp: none;
}