/**
 * FERREMIN — Repuestos de Maquinaria Pesada.
 *
 * Todas las reglas cuelgan de .fmp-* o de body.fmp-seccion, que solo existen
 * dentro de la sección. El resto del sitio no se ve afectado.
 */

body.fmp-seccion {
	--fmp-negro: #111214;
	--fmp-negro-2: #1b1d21;
	--fmp-amarillo: #f5b301;
	--fmp-amarillo-2: #ffc61a;
	--fmp-verde: #23a455;
	--fmp-gris: #6b7280;
	--fmp-gris-cl: #f4f5f7;
	--fmp-borde: #e3e5e9;
	--fmp-radio: 8px;
}

/* ==========================================================================
   CONVIVENCIA CON EL TEMA
   La sección trae su propia cabecera y su propio pie, así que se ocultan los
   del tema y su sidebar. Fuera de .fmp-seccion el tema queda intacto.
   ========================================================================== */
body.fmp-seccion .top_panel,
body.fmp-seccion .menu_mobile,
body.fmp-seccion .footer_wrap,
body.fmp-seccion .sidebar.widget_area,
body.fmp-seccion .sc_layouts_row_delimiter {
	display: none !important;
}

body.fmp-seccion .content,
body.fmp-seccion .content_wrap,
body.fmp-seccion .page_content_wrap {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.fmp-seccion .page_content_wrap {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.fmp-wrap {
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 20px;
	box-sizing: border-box;
}

/* ==========================================================================
   CABECERA
   ========================================================================== */
.fmp-header {
	background: var(--fmp-negro);
	position: relative;
	z-index: 50;
}

.fmp-header-inner {
	max-width: 1240px;
	margin-inline: auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	gap: 24px;
	box-sizing: border-box;
}

.fmp-logo {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-decoration: none;
	flex: none;
}

.fmp-logo img {
	max-height: 38px;
	width: auto;
	display: block;
}

.fmp-logo-txt {
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: .5px;
	line-height: 1;
}

.fmp-logo-txt b {
	background: var(--fmp-amarillo);
	color: var(--fmp-negro);
	padding: 0 6px;
	border-radius: 3px;
}

.fmp-logo small {
	color: #9aa0a8;
	font-size: 8.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.fmp-nav {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-inline: auto;
}

.fmp-nav-link {
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .8px;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}

.fmp-nav-link:hover,
.fmp-nav-link.on {
	color: var(--fmp-amarillo);
	border-bottom-color: var(--fmp-amarillo);
}

.fmp-header-acciones {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
}

.fmp-buscar-btn {
	background: none;
	border: 0;
	cursor: pointer;
	padding: 6px;
	line-height: 0;
}

.fmp-buscar-btn svg {
	width: 20px;
	height: 20px;
	fill: #fff;
}

.fmp-btn-cotiza {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 4px;
	background: var(--fmp-amarillo);
	color: var(--fmp-negro);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .5px;
	text-decoration: none;
}

.fmp-btn-cotiza:hover {
	background: var(--fmp-amarillo-2);
	color: var(--fmp-negro);
}

.fmp-btn-cotiza svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.fmp-buscador-panel {
	background: var(--fmp-negro-2);
	padding: 14px 20px;
}

.fmp-buscador-panel form {
	max-width: 1200px;
	margin-inline: auto;
	display: flex;
	gap: 10px;
}

.fmp-buscador-panel input {
	flex: 1;
	padding: 11px 14px;
	border: 1px solid #33363c;
	border-radius: 4px;
	background: #26292e;
	color: #fff;
	font-size: 13.5px;
}

.fmp-buscador-panel button {
	padding: 11px 22px;
	border: 0;
	border-radius: 4px;
	background: var(--fmp-amarillo);
	color: var(--fmp-negro);
	font-weight: 800;
	font-size: 11.5px;
	letter-spacing: .5px;
	cursor: pointer;
}

/* ==========================================================================
   BANNER Y MIGAS
   ========================================================================== */
.fmp-banner {
	position: relative;
	min-height: 220px;
	display: flex;
	align-items: center;
	background: var(--fmp-negro) center/cover no-repeat;
}

.fmp-banner-ov {
	position: absolute;
	inset: 0;
	background: linear-gradient( 90deg, rgba( 10, 10, 12, .92 ) 0%, rgba( 10, 10, 12, .70 ) 45%, rgba( 10, 10, 12, .32 ) 100% );
}

.fmp-banner-inner {
	position: relative;
	max-width: 1240px;
	margin-inline: auto;
	padding: 44px 20px;
	width: 100%;
	box-sizing: border-box;
}

.fmp-banner-tit {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp( 30px, 5vw, 52px );
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: .5px;
}

.fmp-banner-tit::after {
	content: "";
	display: block;
	width: 62px;
	height: 4px;
	background: var(--fmp-amarillo);
	margin-top: 14px;
}

.fmp-banner-sub {
	margin: 0;
	color: #d8dade;
	font-size: 15px;
	max-width: 460px;
	line-height: 1.5;
}

.fmp-bc {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 14px 0;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .4px;
	border-bottom: 1px solid var(--fmp-borde);
	margin-bottom: 26px;
}

.fmp-bc a {
	color: var(--fmp-gris);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.fmp-bc a:hover { color: var(--fmp-negro); }
.fmp-bc-home svg { width: 15px; height: 15px; fill: var(--fmp-gris); }
.fmp-bc-sep { width: 12px; height: 12px; fill: none; stroke: #b9bcc3; stroke-width: 2.4; flex: none; }
.fmp-bc-on { color: var(--fmp-amarillo); }

/* ==========================================================================
   CATÁLOGO
   ========================================================================== */
.fmp-shop {
	display: grid;
	grid-template-columns: 250px minmax( 0, 1fr );
	gap: 30px;
	align-items: start;
	margin-bottom: 46px;
}

.fmp-shop-main { min-width: 0; }

/* --- Sidebar --- */
.fmp-side-grupo {
	border: 1px solid var(--fmp-borde);
	border-radius: var(--fmp-radio);
	margin-bottom: 12px;
	overflow: hidden;
	background: #fff;
}

.fmp-side-grupo-tit {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 15px;
	background: var(--fmp-gris-cl);
	border: 0;
	cursor: pointer;
	font-weight: 700;
	font-size: 11.5px;
	line-height: 1.3;
	letter-spacing: .5px;
	color: var(--fmp-negro);
	text-align: left;
}

.fmp-chev { width: 16px; height: 16px; fill: var(--fmp-gris); flex: none; transition: transform .18s ease; }
.fmp-side-grupo.abierto .fmp-chev { transform: rotate( 180deg ); }
.fmp-side-lista { list-style: none; margin: 0; padding: 0; display: none; }
.fmp-side-grupo.abierto .fmp-side-lista { display: block; }

.fmp-side-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 15px;
	font-weight: 700;
	font-size: 11.5px;
	line-height: 1.3;
	letter-spacing: .4px;
	color: #40444b;
	text-decoration: none;
	border-top: 1px solid var(--fmp-borde);
}

.fmp-side-cat:hover { background: #fbfbfc; color: var(--fmp-negro); }
.fmp-side-cat.on { background: var(--fmp-amarillo); color: var(--fmp-negro); }
.fmp-arrow { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; flex: none; opacity: .55; }

.fmp-side-asesor {
	margin-top: 18px;
	padding: 22px 18px;
	border-radius: var(--fmp-radio);
	background: var(--fmp-negro);
	color: #fff;
}

.fmp-side-asesor-ic svg { width: 34px; height: 34px; fill: var(--fmp-amarillo); }
.fmp-side-asesor h3 { margin: 12px 0 8px; color: var(--fmp-amarillo); font-size: 14px; font-weight: 800; line-height: 1.25; }
.fmp-side-asesor p { margin: 0 0 16px; font-size: 12.5px; color: #c8cbd1; line-height: 1.5; }

/* --- Encabezado y filtros --- */
.fmp-cat-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.fmp-cat-tit { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: var(--fmp-negro); letter-spacing: .3px; }
.fmp-cat-desc { margin: 0; max-width: 560px; font-size: 13.5px; color: var(--fmp-gris); line-height: 1.55; }

.fmp-guia { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.fmp-guia-lbl { font-size: 12.5px; color: var(--fmp-gris); }

.fmp-guia-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 15px;
	border-radius: 4px;
	background: var(--fmp-amarillo);
	color: var(--fmp-negro);
	font-weight: 700;
	font-size: 11.5px;
	line-height: 1;
	letter-spacing: .4px;
}

.fmp-guia-btn svg { width: 15px; height: 15px; fill: currentColor; }

/* Los cuatro controles en una sola fila, repartiendo el ancho disponible. */
.fmp-topbar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.fmp-topbar > .fmp-select,
.fmp-topbar > .fmp-buscar-box {
	/* min-width:0 es lo que permite que encojan: sin él, el ancho mínimo del
	   contenido los obliga a saltar de línea. */
	flex: 1 1 150px;
	min-width: 0;
}

/* Misma altura exacta en los cuatro: el buscador tiene otra tipografía y sin
   esto queda un píxel más bajo que los desplegables. */
.fmp-topbar > .fmp-select select,
.fmp-topbar > .fmp-buscar-box input {
	height: 40px;
	line-height: normal;
}

.fmp-select select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 32px 10px 12px;
	border: 1px solid var(--fmp-borde);
	border-radius: 4px;
	background-color: #fff;
	background-image: url( "data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7.4 8.6L12 13.2l4.6-4.6L18 10l-6 6-6-6z'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 15px;
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
	letter-spacing: .3px;
	color: var(--fmp-negro);
	cursor: pointer;
	text-overflow: ellipsis;
}

.fmp-buscar-box {
	position: relative;
	display: flex;
	align-items: center;
}

.fmp-buscar-box input {
	width: 100%;
	padding: 10px 34px 10px 12px;
	border: 1px solid var(--fmp-borde);
	border-radius: 4px;
	font-size: 12px;
	min-width: 0;
	box-sizing: border-box;
}

.fmp-buscar-box svg { position: absolute; right: 11px; width: 15px; height: 15px; fill: var(--fmp-gris); pointer-events: none; }

/* --- Grilla --- */
.fmp-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 178px, 1fr ) );
	gap: 16px;
	margin-bottom: 26px;
}

.fmp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 16px 14px 18px;
	border: 1px solid var(--fmp-borde);
	border-radius: var(--fmp-radio);
	background: #fff;
	transition: box-shadow .18s ease, border-color .18s ease;
}

.fmp-card:hover { border-color: #cdd0d6; box-shadow: 0 6px 20px rgba( 17, 18, 20, .09 ); }

.fmp-card-tag {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 8px;
	border-radius: 3px;
	background: var(--fmp-amarillo);
	color: var(--fmp-negro);
	font-weight: 700;
	font-size: 9px;
	line-height: 1;
	letter-spacing: .5px;
}

.fmp-card-img { display: block; width: 100%; margin-bottom: 12px; }
.fmp-card-img img { width: 100%; height: 120px; object-fit: contain; display: block; }

.fmp-sin-img {
	display: block;
	width: 100%;
	height: 120px;
	border-radius: 5px;
	background: var(--fmp-gris-cl);
}

.fmp-sin-img.grande { height: 320px; }

.fmp-card-nom { margin: 0 0 3px; font-size: 12.5px; font-weight: 800; line-height: 1.3; text-transform: uppercase; letter-spacing: .2px; }
.fmp-card-nom a { color: var(--fmp-negro); text-decoration: none; }
.fmp-card-cod { font-size: 12px; font-weight: 700; color: var(--fmp-negro); margin-bottom: 5px; }
.fmp-card-sub { font-size: 11.5px; color: var(--fmp-gris); line-height: 1.4; margin-bottom: 12px; }
.fmp-card .fmp-btn-ver { margin-top: auto; }

/* --- Paginación --- */
.fmp-paginacion { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

.fmp-paginacion .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid var(--fmp-borde);
	border-radius: 4px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--fmp-negro);
	text-decoration: none;
}

.fmp-paginacion .page-numbers.current { background: var(--fmp-amarillo); border-color: var(--fmp-amarillo); }

/* ==========================================================================
   BOTONES
   ========================================================================== */
.fmp-btn-amarillo,
.fmp-btn-ver {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 11.5px;
	line-height: 1;
	letter-spacing: .5px;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}

.fmp-btn-amarillo {
	background: var(--fmp-amarillo);
	color: var(--fmp-negro);
	width: 100%;
	justify-content: center;
	box-sizing: border-box;
}

.fmp-btn-amarillo:hover { background: var(--fmp-amarillo-2); color: var(--fmp-negro); }

.fmp-btn-ver { background: transparent; color: var(--fmp-negro); border: 1.5px solid var(--fmp-negro); padding: 9px 14px; }
.fmp-btn-ver:hover { background: var(--fmp-negro); color: #fff; }
.fmp-btn-ver em, .fmp-btn-amarillo em { font-style: normal; font-size: 14px; line-height: 1; }

.fmp-btn-wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	padding: 16px 22px;
	margin-top: 22px;
	border-radius: 5px;
	background: var(--fmp-verde);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	letter-spacing: .5px;
	text-decoration: none;
}

.fmp-btn-wa:hover { background: #1c8c47; color: #fff; }
.fmp-btn-wa svg { width: 21px; height: 21px; fill: currentColor; }

/* Descarga de la ficha técnica: secundario, para no competir con WhatsApp. */
.fmp-btn-pdf {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 22px;
	margin-top: 10px;
	border: 1.5px solid var(--fmp-negro);
	border-radius: 5px;
	background: #fff;
	color: var(--fmp-negro);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .4px;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}

.fmp-btn-pdf:hover { background: var(--fmp-negro); color: #fff; }
.fmp-btn-pdf svg { width: 19px; height: 19px; fill: currentColor; flex: none; }

.fmp-wa-nota { margin: 12px 0 0; font-size: 12.5px; color: var(--fmp-gris); }

/* ==========================================================================
   LANDING DE CATEGORÍAS
   ========================================================================== */
.fmp-cats { max-width: 1240px; margin: 0 auto 46px; padding-inline: 20px; box-sizing: border-box; }
.fmp-cats-head { text-align: center; margin-bottom: 26px; }
.fmp-cats-head h2 { margin: 0 0 8px; font-size: clamp( 22px, 3vw, 30px ); font-weight: 800; color: var(--fmp-negro); }
.fmp-cats-head p { margin: 0; font-size: 13.5px; color: var(--fmp-gris); }

.fmp-cats-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 300px, 1fr ) );
	gap: 20px;
	align-items: start;
}

.fmp-panel { border: 1px solid var(--fmp-borde); border-radius: var(--fmp-radio); overflow: hidden; background: #fff; }
.fmp-panel-ancho { grid-column: span 2; }

.fmp-panel-head {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 16px 20px;
	background: var(--fmp-negro);
	color: #fff;
}

.fmp-panel-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 50%;
	border: 2px solid var(--fmp-amarillo);
}

.fmp-panel-ic svg { width: 21px; height: 21px; fill: var(--fmp-amarillo); }
.fmp-panel-head h3 { margin: 0 0 2px; font-size: 14.5px; font-weight: 800; letter-spacing: .4px; color: var(--fmp-amarillo); }
.fmp-panel-desc { font-size: 12px; color: #b9bcc3; line-height: 1.4; }

.fmp-panel-body {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 200px, 1fr ) );
	gap: 16px;
	padding: 20px;
}

.fmp-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 14px;
	border: 1px solid var(--fmp-borde);
	border-radius: 6px;
	background: #fff;
}

.fmp-cat-img { display: block; width: 100%; margin-bottom: 12px; }
.fmp-cat-img img { width: 100%; height: 128px; object-fit: contain; display: block; }

.fmp-cat-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-bottom: 9px;
	border-radius: 50%;
	background: var(--fmp-negro);
}

.fmp-cat-badge svg { width: 17px; height: 17px; fill: var(--fmp-amarillo); }
.fmp-cat-card h4 { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .3px; color: var(--fmp-negro); line-height: 1.3; }
.fmp-cat-desc { margin-bottom: 14px; font-size: 12px; color: var(--fmp-gris); line-height: 1.5; }
.fmp-cat-card .fmp-btn-ver { margin-top: auto; }

/* ==========================================================================
   FICHA
   ========================================================================== */
.fmp-single {
	display: grid;
	grid-template-columns: minmax( 0, 0.92fr ) minmax( 0, 1.08fr );
	gap: 40px;
	align-items: start;
	margin-bottom: 40px;
}

.fmp-galeria {
	padding: 16px;
	border: 1px solid var(--fmp-borde);
	border-radius: var(--fmp-radio);
	margin-bottom: 14px;
}

.fmp-gal-principal img { width: 100%; height: auto; display: block; }
.fmp-gal-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.fmp-gal-thumb {
	width: 74px;
	padding: 5px;
	border: 1px solid var(--fmp-borde);
	border-radius: 5px;
	background: #fff;
	cursor: pointer;
	line-height: 0;
}

.fmp-gal-thumb.on { border-color: var(--fmp-amarillo); box-shadow: 0 0 0 1px var(--fmp-amarillo); }
.fmp-gal-thumb img { width: 100%; height: auto; display: block; }

.fmp-nota {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 13px 15px;
	border: 1px solid var(--fmp-borde);
	border-radius: 6px;
	background: var(--fmp-gris-cl);
	font-size: 12px;
	line-height: 1.5;
	color: var(--fmp-gris);
}

.fmp-nota strong { display: block; color: var(--fmp-negro); margin-bottom: 2px; }
.fmp-nota-ic svg, .fmp-aviso-ic svg { width: 16px; height: 16px; fill: var(--fmp-gris); flex: none; }

.fmp-single-tit { margin: 0 0 12px; font-size: clamp( 24px, 3.4vw, 34px ); font-weight: 800; color: var(--fmp-negro); line-height: 1.15; }
.fmp-single-resumen { font-size: 14px; line-height: 1.65; color: #4b5058; margin-bottom: 22px; }
.fmp-single-resumen p { margin: 0 0 10px; }

.fmp-single-cols {
	display: grid;
	grid-template-columns: minmax( 0, 1.35fr ) minmax( 0, 1fr );
	gap: 24px;
	align-items: start;
}

.fmp-specs-tit { margin: 0 0 14px; font-size: 15px; font-weight: 800; letter-spacing: .4px; color: var(--fmp-negro); }
.fmp-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }

.fmp-spec {
	display: grid;
	grid-template-columns: 20px auto minmax( 0, 1fr );
	align-items: baseline;
	gap: 9px;
	font-size: 13px;
	line-height: 1.45;
}

.fmp-spec-ic svg { width: 15px; height: 15px; fill: var(--fmp-amarillo); transform: translateY( 2px ); }
.fmp-spec-lbl { font-weight: 700; color: var(--fmp-negro); white-space: nowrap; }
.fmp-spec-val { color: #4b5058; }

.fmp-ayuda-ficha { padding: 20px 18px; border-radius: var(--fmp-radio); background: #fff8e4; border: 1px solid #f4e2ab; }

.fmp-ayuda-ficha-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--fmp-amarillo);
	margin-bottom: 11px;
}

.fmp-ayuda-ficha-ic svg { width: 21px; height: 21px; fill: var(--fmp-negro); }
.fmp-ayuda-ficha h4 { margin: 0 0 7px; font-size: 13.5px; font-weight: 800; color: var(--fmp-negro); line-height: 1.35; }
.fmp-ayuda-ficha p { margin: 0; font-size: 12.5px; color: #6a6248; line-height: 1.55; }

.fmp-abajo {
	display: grid;
	grid-template-columns: minmax( 0, 0.92fr ) minmax( 0, 1.08fr );
	gap: 40px;
	align-items: start;
	margin-bottom: 40px;
}

.fmp-abajo-solo { grid-template-columns: 1fr; }
.fmp-compat-tit, .fmp-rel-tit { margin: 0 0 16px; font-size: 14px; font-weight: 800; letter-spacing: .5px; color: var(--fmp-negro); }

.fmp-compat-grid { display: grid; grid-template-columns: repeat( auto-fit, minmax( 110px, 1fr ) ); gap: 12px; }

.fmp-compat-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 14px;
	border: 1px solid var(--fmp-borde);
	border-radius: 6px;
	background: #fff;
	min-height: 86px;
}

/* Los logos van a color, como en el diseño del cliente. */
.fmp-compat-item img {
	max-width: 100%;
	max-height: 46px;
	object-fit: contain;
	display: block;
}

/* Sin logo cargado, se muestra el nombre de la marca. */
.fmp-compat-txt { font-size: 14px; font-weight: 800; letter-spacing: .5px; color: #4b5058; }

/* Flex y no grid: con `auto-fit` las columnas se reparten todo el ancho y el
   conjunto queda pegado a la izquierda. Así las tarjetas mantienen su tamaño y
   el bloque va centrado, haya una, dos o cinco. */
.fmp-rel-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.fmp-rel-card {
	display: flex;
	/* border-box: sin esto el padding y el borde se suman a los 190px de base
	   (226 reales) y las tres tarjetas ya no caben en una fila. */
	box-sizing: border-box;
	flex: 0 1 190px;
	max-width: 100%;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 16px 12px;
	border: 1px solid var(--fmp-borde);
	border-radius: 6px;
	background: #fff;
}

.fmp-rel-img { display: block; width: 100%; margin-bottom: 10px; }
.fmp-rel-img img { width: 100%; height: 88px; object-fit: contain; display: block; }
.fmp-rel-img .fmp-sin-img { height: 88px; }
.fmp-rel-nom { margin: 0 0 3px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.fmp-rel-nom a { color: var(--fmp-negro); text-decoration: none; }
.fmp-rel-cod { font-size: 12px; font-weight: 800; color: var(--fmp-negro); margin-bottom: 11px; }
.fmp-rel-card .fmp-btn-ver { margin-top: auto; font-size: 10px; padding: 8px 11px; }

.fmp-desc { margin-bottom: 40px; font-size: 14px; line-height: 1.7; color: #4b5058; }
.fmp-desc h3 { margin: 0 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .5px; color: var(--fmp-negro); }

/* ==========================================================================
   FRANJA DE AYUDA
   ========================================================================== */
.fmp-ayuda {
	max-width: 1200px;
	margin: 0 auto 34px;
	padding: 26px 28px;
	border-radius: var(--fmp-radio);
	background: var(--fmp-negro);
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1.5fr );
	gap: 26px;
	align-items: center;
	box-sizing: border-box;
}

.fmp-ayuda-txt h2 { margin: 0 0 8px; font-size: 19px; font-weight: 800; line-height: 1.25; color: #fff; }
.fmp-ayuda-txt h2 span { color: var(--fmp-amarillo); }
.fmp-ayuda-txt p { margin: 0; font-size: 12.5px; color: #b9bcc3; line-height: 1.55; }

.fmp-ayuda-btns { display: grid; grid-template-columns: repeat( auto-fit, minmax( 230px, 1fr ) ); gap: 14px; }

.fmp-ayuda-card {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 15px 17px;
	border: 1px solid rgba( 255, 255, 255, .16 );
	border-radius: 6px;
	background: var(--fmp-negro-2);
	cursor: pointer;
	text-align: left;
	transition: border-color .15s ease, background .15s ease;
}

.fmp-ayuda-card:hover { border-color: var(--fmp-amarillo); background: #23262b; }

.fmp-ayuda-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 50%;
}

.fmp-ic-wa { background: var(--fmp-verde); }
.fmp-ic-foto { background: var(--fmp-amarillo); }
.fmp-ayuda-ic svg { width: 22px; height: 22px; fill: #fff; }
.fmp-ic-foto svg { fill: var(--fmp-negro); }

.fmp-ayuda-lbl strong { display: block; font-size: 12.5px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.fmp-ayuda-lbl small { font-size: 11.5px; color: #b9bcc3; }
.fmp-ayuda-lbl em { font-style: normal; color: var(--fmp-amarillo); }

.fmp-ayuda-estado { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: #b9bcc3; }
.fmp-ayuda-estado.fmp-error { color: #ff8f8f; }

/* ==========================================================================
   PIE, AVISO, CONTACTO
   ========================================================================== */
.fmp-footer { background: var(--fmp-negro); color: #c8cbd1; padding: 46px 20px 0; }

.fmp-footer-inner {
	max-width: 1240px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax( 180px, .9fr ) minmax( 220px, 1.2fr ) minmax( 150px, .8fr ) minmax( 240px, 1.3fr );
	gap: 34px;
	align-items: start;
	padding-bottom: 40px;
}

.fmp-footer-marca img { max-width: 210px; height: auto; display: block; }
.fmp-footer-marca .fmp-logo-txt { font-size: 30px; }

.fmp-footer-col h4 {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 12px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .2px;
}

.fmp-footer-col h4 svg { width: 15px; height: 15px; fill: #fff; flex: none; }

.fmp-footer-col p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; }
.fmp-footer-col a { color: #c8cbd1; text-decoration: none; }
.fmp-footer-col a:hover { color: #fff; }

.fmp-footer-dir { padding-left: 22px; }

.fmp-footer-linea {
	display: flex;
	align-items: center;
	gap: 7px;
}

.fmp-footer-linea svg { width: 15px; height: 15px; fill: #c8cbd1; flex: none; }

.fmp-footer-wa a {
	font-size: 17px;
	font-weight: 800;
	color: #fff;
}

.fmp-footer-redes { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; }

/* --- Suscripción ---
   El formulario lo genera Contact Form 7 y el tema le impone sus propios
   estilos, así que aquí hace falta !important para recuperar el aspecto del
   pie. Todo va acotado a .fmp-footer-news: fuera de la sección, los
   formularios del sitio siguen intactos. */
body.fmp-seccion .fmp-footer-news p { margin: 0 0 10px; }

/* El tema da a su .columns_wrap un margen derecho de -20px para compensar
   canaletas; dentro de esta columna eso ensancha el campo y lo desborda. */
body.fmp-seccion .fmp-footer-news .columns_wrap {
	margin-right: 0 !important;
}

body.fmp-seccion .fmp-footer-news .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

body.fmp-seccion .fmp-footer-news input[type="email"],
body.fmp-seccion .fmp-footer-news input[type="text"] {
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box !important;
	padding: 12px 14px !important;
	border: 1px solid #33363c !important;
	border-radius: 4px !important;
	background: #26292e !important;
	color: #fff !important;
	font-size: 13.5px;
	margin: 0 0 10px;
	height: auto !important;
}

body.fmp-seccion .fmp-footer-news input::placeholder { color: #8b9099; }

/* El tema dibuja un sobre dentro del campo (::before en left:20px). Sin este
   hueco, el texto que escribe el visitante pasa por debajo del icono. */
body.fmp-seccion .fmp-footer-news .style-icon input[type="email"],
body.fmp-seccion .fmp-footer-news .style-icon input[type="text"] {
	padding-left: 46px !important;
}

body.fmp-seccion .fmp-footer-news .style-icon::before {
	color: #8b9099;
	z-index: 2;
	pointer-events: none;
}

body.fmp-seccion .fmp-footer-news input[type="submit"],
body.fmp-seccion .fmp-footer-news button[type="submit"],
body.fmp-seccion .fmp-footer-news .wpcf7-submit {
	display: inline-block;
	width: auto !important;
	padding: 13px 26px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: var(--fmp-amarillo) !important;
	color: var(--fmp-negro) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	height: auto !important;
	cursor: pointer;
	transition: background .15s ease;
}

body.fmp-seccion .fmp-footer-news input[type="submit"]:hover,
body.fmp-seccion .fmp-footer-news .wpcf7-submit:hover { background: var(--fmp-amarillo-2) !important; }

body.fmp-seccion .fmp-footer-news .wpcf7-acceptance .wpcf7-list-item { margin: 0; }

body.fmp-seccion .fmp-footer-news label {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	font-size: 12px;
	line-height: 1.5;
	color: #a7acb4;
	font-weight: 400;
}

/* Casilla propia: la nativa mide 13px y su marca apenas se distingue sobre el
   fondo oscuro del pie. Esta se ve marcada de un vistazo. */
body.fmp-seccion .fmp-footer-news input[type="checkbox"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	position: relative;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	margin: 1px 0 0 !important;
	flex: none;
	/* El tema fuerza el fondo del checkbox con !important: sin repetirlo aquí,
	   ni siquiera un estilo en línea consigue pintarlo al marcarlo. */
	border: 1.5px solid #6b7280 !important;
	border-radius: 3px !important;
	background: #fff !important;
	cursor: pointer;
	transition: background .12s ease, border-color .12s ease;
}

body.fmp-seccion .fmp-footer-news input[type="checkbox"]:hover { border-color: var(--fmp-amarillo) !important; }

/*
 * Al marcarla se rellena con `box-shadow: inset`, no con background-color:
 * algo del tema bloquea el fondo de los checkbox incluso frente a un estilo en
 * línea con !important. La sombra interior sí pasa y respeta el borde redondo.
 */
body.fmp-seccion .fmp-footer-news input[type="checkbox"]:checked {
	box-shadow: inset 0 0 0 20px var(--fmp-amarillo) !important;
	border-color: var(--fmp-amarillo) !important;
}

/* La marca de verificación. */
body.fmp-seccion .fmp-footer-news input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 4px;
	height: 9px;
	border: solid var(--fmp-negro);
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}

body.fmp-seccion .fmp-footer-news input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--fmp-amarillo);
	outline-offset: 2px;
}

body.fmp-seccion .fmp-footer-news a { text-decoration: underline; }

/* Avisos de CF7. Por defecto llevan borde negro sobre fondo negro y no se leen:
   se les da fondo y color según el resultado. */
body.fmp-seccion .fmp-footer-news .wpcf7-response-output {
	margin: 12px 0 0 !important;
	padding: 10px 12px !important;
	border: 1px solid rgba( 255, 255, 255, .25 ) !important;
	border-radius: 4px;
	box-shadow: inset 0 0 0 100px rgba( 255, 255, 255, .06 );
	font-size: 12.5px;
	line-height: 1.45;
	color: #fff !important;
}

/* Enviado correctamente. El relleno va por box-shadow inset, igual que en la
   casilla: el fondo directo lo bloquea el tema. */
body.fmp-seccion .fmp-footer-news form.sent .wpcf7-response-output {
	box-shadow: inset 0 0 0 100px rgba( 35, 164, 85, .16 ) !important;
	border-color: var(--fmp-verde) !important;
	color: #b9f2ce !important;
}

/* Falta algún dato o falló el envío. */
body.fmp-seccion .fmp-footer-news form.invalid .wpcf7-response-output,
body.fmp-seccion .fmp-footer-news form.unaccepted .wpcf7-response-output,
body.fmp-seccion .fmp-footer-news form.failed .wpcf7-response-output,
body.fmp-seccion .fmp-footer-news form.spam .wpcf7-response-output {
	box-shadow: inset 0 0 0 100px rgba( 214, 54, 56, .16 ) !important;
	border-color: #e06d6d !important;
	color: #ffc9c9 !important;
}

body.fmp-seccion .fmp-footer-news .wpcf7-not-valid-tip {
	font-size: 11.5px;
	color: #ff9c9c;
	margin-top: 4px;
}

/* Indicador de envío en curso. */
body.fmp-seccion .fmp-footer-news .wpcf7-spinner { background-color: #8b9099; }

.fmp-footer-base {
	max-width: 1240px;
	margin-inline: auto;
	padding: 18px 0 26px;
	border-top: 1px solid #2a2d33;
	font-size: 12.5px;
	color: #8b9099;
}

.fmp-aviso {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px;
	padding: 15px 20px;
	background: var(--fmp-gris-cl);
	border-top: 1px solid var(--fmp-borde);
	font-size: 12.5px;
	color: var(--fmp-gris);
	text-align: center;
}

.fmp-aviso strong { color: var(--fmp-negro); }

/* ==========================================================================
   CONTACTOS — "ESTAMOS PARA AYUDARTE"
   ========================================================================== */
.fmp-ayudarte { margin: 46px auto 50px; }

.fmp-ayudarte-head { text-align: center; margin-bottom: 32px; }

.fmp-ayudarte-head h2 {
	margin: 0 0 14px;
	line-height: 1.1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.fmp-ayudarte-sup {
	font-size: clamp( 15px, 2vw, 20px );
	font-weight: 600;
	letter-spacing: 2px;
	color: #4b5058;
}

.fmp-ayudarte-head h2 strong {
	font-size: clamp( 28px, 4.4vw, 46px );
	font-weight: 800;
	letter-spacing: 1px;
	color: var(--fmp-negro);
}

.fmp-ayudarte-head h2 strong::after {
	content: "";
	display: block;
	width: 74px;
	height: 4px;
	background: var(--fmp-amarillo);
	margin: 12px auto 0;
}

.fmp-ayudarte-head p {
	margin: 0 auto;
	max-width: 560px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--fmp-gris);
}

/* --- Las cinco tarjetas --- */
.fmp-vias {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 190px, 1fr ) );
	gap: 16px;
	margin-bottom: 30px;
	align-items: stretch;
}

.fmp-via {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px 20px;
	border: 1px solid var(--fmp-borde);
	border-radius: var(--fmp-radio);
	background: #fff;
	transition: box-shadow .18s ease, border-color .18s ease;
}

.fmp-via:hover { border-color: #cdd0d6; box-shadow: 0 6px 20px rgba( 17, 18, 20, .08 ); }

/* Icono y título en la misma línea, como en el diseño. */
.fmp-via-head {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 16px;
	width: 100%;
}

.fmp-via-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex: none;
}

.fmp-ic-amarillo { background: var(--fmp-amarillo); }
.fmp-ic-verde { background: var(--fmp-verde); }
.fmp-via-ic svg { width: 20px; height: 20px; fill: var(--fmp-negro); }
.fmp-ic-verde svg { fill: #fff; }

.fmp-via h3 {
	margin: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .4px;
	color: var(--fmp-negro);
	line-height: 1.25;
}

.fmp-via-txt {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-bottom: 18px;
	font-size: 13px;
	line-height: 1.5;
	color: #4b5058;
}

.fmp-via-lbl {
	color: var(--fmp-gris);
	font-size: 12.5px;
	margin-top: 6px;
}

.fmp-via-lbl:first-child { margin-top: 0; }

.fmp-via-txt a {
	color: #4b5058;
	text-decoration: none;
	word-break: break-word;
}

.fmp-via-txt a:hover { color: var(--fmp-negro); }

.fmp-via-dato {
	font-size: 16px;
	font-weight: 800;
	color: var(--fmp-negro);
	margin-top: 4px;
}

.fmp-via-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	margin-top: auto;
	padding: 11px 10px;
	border: 1.5px solid var(--fmp-negro);
	border-radius: 4px;
	background: #fff;
	color: var(--fmp-negro);
	font-weight: 700;
	font-size: 10.5px;
	line-height: 1;
	letter-spacing: .3px;
	text-decoration: none;
	/* El rótulo va siempre en una línea: partido queda desalineado con el resto. */
	white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}

.fmp-via-btn:hover { background: var(--fmp-negro); color: #fff; }
.fmp-via-btn svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

.fmp-via-btn-wa {
	background: var(--fmp-verde);
	border-color: var(--fmp-verde);
	color: #fff;
}

.fmp-via-btn-wa:hover { background: #1c8c47; border-color: #1c8c47; color: #fff; }

/* --- Franja de garantías --- */
.fmp-garantias {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 210px, 1fr ) );
	gap: 18px;
	padding-top: 24px;
	border-top: 1px solid var(--fmp-borde);
}

.fmp-garantia {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-left: 18px;
	border-left: 1px solid var(--fmp-borde);
}

.fmp-garantia:first-child { border-left: 0; padding-left: 0; }
.fmp-garantia svg { width: 30px; height: 30px; fill: var(--fmp-negro); flex: none; }

.fmp-garantia span {
	display: flex;
	flex-direction: column;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--fmp-gris);
}

.fmp-garantia b { color: var(--fmp-negro); font-weight: 700; }

.fmp-buscador { display: flex; gap: 10px; max-width: 640px; }
.fmp-buscador-box { position: relative; display: flex; align-items: center; flex: 1; }
.fmp-buscador-box svg { position: absolute; left: 13px; width: 17px; height: 17px; fill: var(--fmp-gris); pointer-events: none; }

.fmp-buscador-box input {
	width: 100%;
	padding: 13px 15px 13px 39px;
	border: 1px solid var(--fmp-borde);
	border-radius: 4px;
	font-size: 13.5px;
	box-sizing: border-box;
}

.fmp-buscador button {
	padding: 13px 25px;
	border: 0;
	border-radius: 4px;
	background: var(--fmp-amarillo);
	color: var(--fmp-negro);
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	letter-spacing: .5px;
	cursor: pointer;
}

.fmp-vacio { padding: 40px 0; color: var(--fmp-gris); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media ( max-width: 1024px ) {
	.fmp-shop { grid-template-columns: 1fr; }

	.fmp-footer-inner {
		grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	}
	.fmp-single, .fmp-abajo { grid-template-columns: 1fr; gap: 28px; }
	.fmp-panel-ancho { grid-column: auto; }
}

@media ( max-width: 860px ) {
	.fmp-header-inner { flex-wrap: wrap; gap: 12px; }
	.fmp-nav { order: 3; width: 100%; margin: 0; justify-content: center; border-top: 1px solid #2a2d33; padding-top: 10px; }
	.fmp-header-acciones { margin-left: auto; }
}

@media ( max-width: 768px ) {
	.fmp-single-cols { grid-template-columns: 1fr; }
	.fmp-ayuda { grid-template-columns: 1fr; }

	.fmp-garantia {
		border-left: 0;
		padding-left: 0;
	}
	.fmp-cat-head { flex-direction: column; align-items: stretch; }

	/* En móvil sí se apilan: cuatro controles en una fila serían ilegibles. */
	.fmp-topbar > .fmp-select,
	.fmp-topbar > .fmp-buscar-box { flex: 1 1 100%; }
	.fmp-grid { grid-template-columns: repeat( auto-fill, minmax( 148px, 1fr ) ); }
	.fmp-btn-cotiza span { display: none; }
}
