/**
 * Ferremaq – Home page styles
 */

:root {
	--fmq-blue: #144177;
	--fmq-yellow: #ffcf19;
	--fmq-white: #ffffff;
	--fmq-font: 'Montserrat', sans-serif;
}

/* ── Full width layout ─────────────────────────────────────── */
body.fmq-custom-home-active .site-content,
body.fmq-custom-home-active #primary,
body.fmq-custom-home-active .ast-container,
body.fmq-custom-home-active .entry-content {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.fmq-custom-home-active .entry-header,
body.fmq-custom-home-active .ast-single-entry-banner {
	display: none !important;
}

.fmq-home {
	width: 100%;
	font-family: var(--fmq-font);
	color: var(--fmq-blue);
	line-height: 1.5;
}

/* ── Hero carrusel ─────────────────────────────────────────── */
.fmq-home-hero {
	position: relative;
	width: 100%;
	background: var(--fmq-blue);
	overflow: hidden;
}

.fmq-home-hero__slides {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: min(56.25vw, 720px);
}

.fmq-home-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fmq-home-hero__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.fmq-home-hero__slide-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.fmq-home-hero__slide img,
.fmq-home-hero__slide video,
.fmq-home-hero__slide-link img,
.fmq-home-hero__slide-link video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* Móvil: altura dinámica según la imagen activa (clase vía JS) */
.fmq-home-hero--fit .fmq-home-hero__slides {
	aspect-ratio: unset;
	max-height: none;
	min-height: 160px;
	transition: height 0.35s ease;
}

.fmq-home-hero--fit .fmq-home-hero__slide img,
.fmq-home-hero--fit .fmq-home-hero__slide video,
.fmq-home-hero--fit .fmq-home-hero__slide-link {
	width: 100%;
	height: auto;
}

.fmq-home-hero--fit .fmq-home-hero__slide-link img,
.fmq-home-hero--fit .fmq-home-hero__slide-link video {
	width: 100%;
	height: auto;
	max-height: min(65vh, 480px);
	object-fit: contain;
}

.fmq-home-hero__slide-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #144177 0%, #1e5a9e 50%, #144177 100%);
}

.fmq-home-hero__ui {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
}

.fmq-home-hero__social {
	position: absolute;
	top: clamp(12px, 2vw, 24px);
	right: clamp(12px, 2vw, 32px);
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: clamp(6px, 1vw, 10px);
	pointer-events: auto;
}

.fmq-home-hero__social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--fmq-blue);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fmq-home-hero__social-btn:hover {
	transform: scale(1.08);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fmq-home-hero__social-btn img {
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.fmq-home-hero__social-btn i {
	font-size: 18px;
}

.fmq-home-hero__mute {
	position: absolute;
	left: clamp(12px, 2vw, 32px);
	bottom: clamp(12px, 2vw, 24px);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--fmq-blue);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	pointer-events: auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	z-index: 6;
}

.fmq-home-hero__mute:hover {
	transform: scale(1.08);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fmq-home-hero__mute-icon {
	font-size: 18px;
	line-height: 1;
}

.fmq-home-hero__mute-icon--unmuted {
	display: none;
}

.fmq-home-hero__mute.is-unmuted .fmq-home-hero__mute-icon--muted {
	display: none;
}

.fmq-home-hero__mute.is-unmuted .fmq-home-hero__mute-icon--unmuted {
	display: block;
}

.fmq-home-hero__dots {
	position: absolute;
	left: 50%;
	bottom: clamp(12px, 2vw, 20px);
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	pointer-events: auto;
}

.fmq-home-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 2px solid var(--fmq-white);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease;
}

.fmq-home-hero__dot.is-active,
.fmq-home-hero__dot:hover {
	background: var(--fmq-white);
}

/* ── Franja amarilla ───────────────────────────────────────── */
.fmq-home-tagline {
	width: 100%;
	background: var(--fmq-yellow);
	text-align: center;
	padding: clamp(10px, 1.5vw, 16px) 16px;
}

.fmq-home-tagline p {
	margin: 0;
	font-size: clamp(14px, 2.2vw, 22px);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fmq-blue);
}

/* ── Carrusel categorías ───────────────────────────────────── */
.fmq-home-cats {
	--fmq-cat-card-width: 200px;
	--fmq-cats-gap: clamp(8px, 1.2vw, 14px);
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(6px, 1vw, 12px);
	padding: clamp(20px, 3vw, 36px) clamp(12px, 2vw, 28px);
	background: var(--fmq-white);
}

.fmq-home-cats__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.fmq-home-cats__track {
	display: flex;
	gap: var(--fmq-cats-gap);
	transition: transform 0.4s ease;
	will-change: transform;
	align-items: stretch;
}

.fmq-home-cats__item {
	flex: 0 0 var(--fmq-cat-card-width);
	width: var(--fmq-cat-card-width);
	min-width: 0;
	aspect-ratio: 7 / 10;
	box-sizing: border-box;
	border: 1px solid #c8ced6;
	background: var(--fmq-white);
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--fmq-blue);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fmq-home-cats__item:hover {
	border-color: var(--fmq-blue);
	box-shadow: 0 2px 10px rgba(20, 65, 119, 0.12);
	color: var(--fmq-blue);
}

.fmq-home-cats__image-wrap {
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(10px, 1.4vw, 18px) clamp(8px, 1vw, 14px) clamp(6px, 0.8vw, 10px);
	background: var(--fmq-white);
}

.fmq-home-cats__image-wrap img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
	display: block;
	transition: transform 0.3s ease;
}

.fmq-home-cats__item:hover .fmq-home-cats__image-wrap img {
	transform: scale(1.03);
}

.fmq-home-cats__label {
	flex-shrink: 0;
	display: block;
	margin: 0;
	padding: 0 clamp(6px, 0.8vw, 10px) clamp(10px, 1.2vw, 14px);
	font-size: clamp(9px, 0.95vw, 12px);
	font-weight: 700;
	text-align: center;
	letter-spacing: 0.05em;
	line-height: 1.25;
	text-transform: uppercase;
}

.fmq-home-cats__arrow {
	flex-shrink: 0;
	align-self: center;
	width: clamp(22px, 2.5vw, 32px);
	height: clamp(48px, 6vw, 72px);
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--fmq-blue);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.fmq-home-cats__arrow svg {
	width: clamp(12px, 1.4vw, 18px);
	height: auto;
	display: block;
}

.fmq-home-cats__arrow:hover:not(:disabled) {
	color: #0d2f57;
}

.fmq-home-cats__arrow:disabled {
	opacity: 0.25;
	cursor: default;
}

/* ── Botón común ───────────────────────────────────────────── */
.fmq-home-btn {
	display: inline-block;
	padding: 10px 28px;
	background: var(--fmq-yellow);
	color: var(--fmq-blue);
	font-weight: 700;
	font-size: clamp(13px, 1.2vw, 15px);
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: capitalize;
	border-radius: 4px;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.fmq-home-btn:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	color: var(--fmq-blue);
}

/* ── Secciones con fondo ───────────────────────────────────── */
.fmq-home-section {
	width: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Quienes somos — fondo 30:8 a ancho completo */
.fmq-home-quienes {
	position: relative;
	width: 100%;
	aspect-ratio: 30 / 8;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: clamp(16px, 3vw, 40px) clamp(24px, 5vw, 60px);
	overflow: hidden;
	background-color: #8a8a8a;
}

.fmq-home-quienes__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	z-index: 0;
}

.fmq-home-quienes__bg--placeholder {
	background: linear-gradient(135deg, #6a6a6a 0%, #8a8a8a 50%, #6a6a6a 100%);
}

.fmq-home-quienes__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.fmq-home-quienes__box,
.fmq-home-clientes__box {
	background: rgba(245, 247, 249, 0.96);
	color: var(--fmq-blue);
	border-radius: 0;
	text-align: left;
	box-sizing: border-box;
}

.fmq-home-quienes__box {
	width: clamp(280px, 35%, 520px);
	max-width: 520px;
	padding: clamp(32px, 4vw, 56px) clamp(28px, 3.5vw, 48px);
	margin-left: clamp(32px, 6vw, 96px);
}

.fmq-home-clientes__box {
	width: 100%;
	max-width: 580px;
	max-height: 100%;
	padding: clamp(22px, 2.8vw, 40px) clamp(24px, 3vw, 44px);
	margin-left: clamp(28px, 5vw, 72px);
	margin-right: clamp(20px, 3.5vw, 48px);
	justify-self: center;
	align-self: center;
	overflow: hidden;
}

.fmq-home-quienes__box h2,
.fmq-home-clientes__box h2 {
	margin: 0 0 clamp(16px, 2vw, 24px);
	font-size: clamp(20px, 2.8vw, 30px);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fmq-blue);
	text-align: left;
}

.fmq-home-clientes__box h2 {
	margin-bottom: clamp(10px, 1.2vw, 18px);
	font-size: clamp(18px, 2vw, 26px);
}

.fmq-home-quienes__box p,
.fmq-home-clientes__box p {
	margin: 0 0 clamp(20px, 2.5vw, 32px);
	font-size: clamp(13px, 1.5vw, 16px);
	font-weight: 400;
	line-height: 1.65;
	color: var(--fmq-blue);
	text-align: left;
}

.fmq-home-clientes__box p {
	margin-bottom: clamp(14px, 1.6vw, 22px);
	font-size: clamp(12px, 1.3vw, 15px);
	line-height: 1.55;
}

.fmq-home-quienes__box .fmq-home-btn,
.fmq-home-clientes__box .fmq-home-btn {
	border-radius: 0;
	font-weight: 700;
	text-transform: none;
	padding: 12px 36px;
	letter-spacing: 0.03em;
}

.fmq-home-clientes__box .fmq-home-btn {
	padding: clamp(9px, 1vw, 12px) clamp(24px, 2.5vw, 32px);
	font-size: clamp(13px, 1.2vw, 15px);
}

/* Envíos */
.fmq-home-envios {
	width: 100%;
	background: var(--fmq-yellow);
	padding: clamp(14px, 2vw, 20px) 24px;
}

.fmq-home-envios__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	max-width: 900px;
	margin: 0 auto;
}

.fmq-home-envios__icon {
	width: 72px;
	height: auto;
	flex-shrink: 0;
}

.fmq-home-envios__icon-fa {
	font-size: 54px;
	color: var(--fmq-blue);
}

.fmq-home-envios__inner p {
	margin: 0;
	font-size: clamp(14px, 2vw, 18px);
	font-weight: 700;
	color: var(--fmq-blue);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Barra divisoria blanca entre secciones */
.fmq-home-divider {
	width: 100%;
	height: clamp(14px, 2vw, 24px);
	background: var(--fmq-white);
	flex-shrink: 0;
}

/* Clientes satisfechos — fondo 30:8 a ancho completo */
.fmq-home-clientes {
	position: relative;
	width: 100%;
	aspect-ratio: 30 / 8;
	overflow: hidden;
	background-color: #8a8a8a;
	padding: clamp(12px, 2vw, 28px) clamp(20px, 4vw, 48px);
	box-sizing: border-box;
}

.fmq-home-clientes__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	z-index: 0;
}

.fmq-home-clientes__bg--placeholder {
	background: linear-gradient(135deg, #6a6a6a 0%, #8a8a8a 50%, #6a6a6a 100%);
}

.fmq-home-clientes__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	min-height: 0;
	display: flex;
	align-items: center;
}

.fmq-home-clientes__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(12px, 2vw, 24px);
	align-items: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
}

.fmq-home-clientes__video-wrap {
	height: 100%;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fmq-home-clientes__video {
	position: relative;
	height: 100%;
	max-height: 100%;
	width: auto;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	flex-shrink: 1;
	background: #000;
	border: 1px solid rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.fmq-home-clientes__embed {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.fmq-home-clientes__embed iframe,
.fmq-home-clientes__video-el {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.fmq-home-clientes__video-placeholder {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-color: var(--fmq-blue);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fmq-home-clientes__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--fmq-blue);
	text-decoration: none;
	font-size: 22px;
	padding-left: 4px;
}

.fmq-home-clientes__play--static {
	pointer-events: none;
}

/* Garantía y soporte / Promociones — fondo 30:8 a ancho completo */
.fmq-home-garantia,
.fmq-home-promociones {
	position: relative;
	width: 100%;
	aspect-ratio: 30 / 8;
	overflow: hidden;
	background-color: #8a8a8a;
	box-sizing: border-box;
}

.fmq-home-garantia__bg,
.fmq-home-promociones__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	z-index: 0;
}

.fmq-home-garantia__bg--placeholder,
.fmq-home-promociones__bg--placeholder {
	background: linear-gradient(135deg, #6a6a6a 0%, #8a8a8a 50%, #6a6a6a 100%);
}

.fmq-home-garantia__inner,
.fmq-home-promociones__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: stretch;
	padding: clamp(20px, 3vw, 40px) clamp(16px, 2.5vw, 32px) clamp(14px, 2.2vw, 28px);
	box-sizing: border-box;
}

.fmq-home-garantia__title,
.fmq-home-promociones__title {
	margin: 0;
	padding-top: clamp(4px, 1vw, 12px);
	text-align: center;
	font-size: clamp(22px, 3.2vw, 36px);
	font-weight: 700;
	color: var(--fmq-white);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.fmq-home-garantia__bar,
.fmq-home-promociones__bar {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 36px);
	background: var(--fmq-white);
	width: min(96%, 1480px);
	margin: 0 auto;
	padding: clamp(14px, 2vw, 22px) clamp(20px, 3vw, 40px);
	box-sizing: border-box;
}

.fmq-home-garantia__btn,
.fmq-home-promociones__btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: clamp(160px, 24vw, 300px);
	padding: clamp(12px, 1.5vw, 16px) clamp(40px, 6vw, 100px);
	background: var(--fmq-yellow);
	color: var(--fmq-blue);
	font-weight: 700;
	font-size: clamp(14px, 1.4vw, 16px);
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: none;
	border-radius: 0;
	white-space: nowrap;
	transition: filter 0.2s ease;
}

.fmq-home-garantia__btn:hover,
.fmq-home-promociones__btn:hover {
	filter: brightness(1.05);
	color: var(--fmq-blue);
}

.fmq-home-garantia__bar p,
.fmq-home-promociones__bar p {
	flex: 1;
	margin: 0;
	font-size: clamp(12px, 1.35vw, 15px);
	font-weight: 400;
	line-height: 1.55;
	color: var(--fmq-blue);
	text-align: left;
	min-width: 0;
}

@media (max-width: 1024px) {
	.fmq-home-hero__slides {
		max-height: min(65vh, 520px);
	}

	.fmq-home-hero__slide img,
	.fmq-home-hero__slide video {
		object-fit: contain;
	}
}

@media (max-width: 768px) {
	.fmq-home-hero__social {
		top: clamp(8px, 2vw, 14px);
		right: clamp(8px, 2vw, 12px);
		gap: 6px;
		max-width: calc(100% - 56px);
	}

	.fmq-home-hero__social-btn {
		width: 36px;
		height: 36px;
		flex-shrink: 0;
	}

	.fmq-home-hero__social-btn img {
		width: 18px;
		height: 18px;
	}

	.fmq-home-hero__social-btn i {
		font-size: 15px;
	}

	/* Quienes somos — móvil */
	.fmq-home-quienes {
		aspect-ratio: auto;
		display: block;
		padding: 0;
	}

	.fmq-home-quienes__bg {
		position: relative;
		width: 100%;
		height: auto;
		aspect-ratio: 30 / 8;
	}

	.fmq-home-quienes__inner {
		padding: 16px;
		height: auto;
	}

	.fmq-home-quienes__box {
		width: 100%;
		max-width: none;
		margin-left: 0;
		padding: clamp(22px, 5vw, 28px) clamp(18px, 4vw, 22px);
	}

	.fmq-home-quienes__box h2 {
		font-size: clamp(18px, 5vw, 22px);
		margin-bottom: 12px;
	}

	.fmq-home-quienes__box p {
		font-size: clamp(13px, 3.6vw, 15px);
		margin-bottom: 16px;
	}

	/* Clientes satisfechos — móvil */
	.fmq-home-clientes {
		aspect-ratio: auto;
		padding: 0;
		display: block;
	}

	.fmq-home-clientes__bg {
		position: relative;
		width: 100%;
		height: auto;
		aspect-ratio: 30 / 8;
	}

	.fmq-home-clientes__inner {
		padding: 16px;
		height: auto;
	}

	.fmq-home-clientes__grid {
		grid-template-columns: 1fr;
		height: auto;
		gap: 16px;
	}

	.fmq-home-clientes__video-wrap {
		height: auto;
	}

	.fmq-home-clientes__video {
		height: auto;
		width: 100%;
		max-height: none;
		aspect-ratio: 16 / 9;
	}

	.fmq-home-clientes__box {
		width: 100%;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
		justify-self: stretch;
		padding: clamp(22px, 5vw, 28px) clamp(18px, 4vw, 22px);
	}

	.fmq-home-clientes__box h2 {
		font-size: clamp(18px, 5vw, 22px);
		margin-bottom: 12px;
	}

	.fmq-home-clientes__box p {
		font-size: clamp(13px, 3.6vw, 15px);
		margin-bottom: 16px;
	}

	/* Garantía y soporte / Promociones — móvil */
	.fmq-home-garantia,
	.fmq-home-promociones {
		aspect-ratio: auto;
		display: block;
		padding: 0;
	}

	.fmq-home-garantia__bg,
	.fmq-home-promociones__bg {
		position: relative;
		width: 100%;
		height: auto;
		aspect-ratio: 30 / 8;
	}

	.fmq-home-garantia__inner,
	.fmq-home-promociones__inner {
		padding: 16px;
		height: auto;
		gap: 16px;
		justify-content: flex-start;
	}

	.fmq-home-garantia__title,
	.fmq-home-promociones__title {
		color: var(--fmq-blue);
		text-shadow: none;
		font-size: clamp(18px, 5vw, 24px);
		padding-top: 0;
	}

	.fmq-home-garantia__bar,
	.fmq-home-promociones__bar {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		text-align: center;
		padding: clamp(16px, 4vw, 20px);
	}

	.fmq-home-garantia__btn,
	.fmq-home-promociones__btn {
		width: 100%;
		min-width: 0;
		white-space: normal;
	}

	.fmq-home-garantia__bar p,
	.fmq-home-promociones__bar p {
		text-align: center;
		font-size: clamp(13px, 3.6vw, 15px);
	}
}

@media (max-width: 480px) {
	.fmq-home-hero__social-btn {
		width: 32px;
		height: 32px;
	}

	.fmq-home-hero__social-btn img {
		width: 16px;
		height: 16px;
	}

	.fmq-home-hero__social-btn i {
		font-size: 13px;
	}

	.fmq-home-hero__social {
		gap: 4px;
	}
}
