html,
body {
	margin: 0;
	padding: 0;
}

body.fm-page {
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
	background: #f7f7f7;
	color: #1f1f1f;
	line-height: 1.5;
}

.fm-landing * {
	box-sizing: border-box;
}

.fm-landing img {
	max-width: 100%;
	height: auto;
	display: block;
}

.fm-landing a {
	text-decoration: none;
}

.fm-container {
	width: min(1200px, 92%);
	margin: 0 auto;
}

/* =========================
   CONTENEDOR 1 + 2: HERO
   ========================= */

.fm-hero {
	position: relative;
}

.fm-hero__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 560px; /* altura de la imagen de fondo */
	background-image: url('../img/hero-fabremasa.jpg');
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 1;
}

.fm-hero__fade {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 560px; /* mismo valor que el fondo */
	background: linear-gradient(
		to bottom,
		rgba(244, 244, 244, 0.50) 0%,
		rgba(244, 244, 244, 0.50) 58%,
		rgba(244, 244, 244, 0.60) 74%,
		rgba(244, 244, 244, 0.82) 88%,
		#f4f4f4 100%
	);
	z-index: 2;
}

.fm-hero__content {
	position: relative;
	z-index: 3;
	padding-top: 36px;
	padding-bottom: 48px;
}

.fm-hero__grid {
	display: grid;
	grid-template-columns: 56% 44%;
	gap: 36px;
	align-items: start;
}

.fm-hero__left {
	padding-top: 8px;
}

.fm-hero__logo {
	max-width: 260px;
	margin-bottom: 22px;
}

.fm-hero__title {
	margin: 0 0 16px;
	font-size: 38px;
	line-height: 1.02;
	font-weight: 700;
	color: #000000;
	max-width: 760px;
    padding-top: 50px;
}

.fm-hero__subtitle {
	margin: 0 0 22px;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
	color: #1f1f1f;
	max-width: 780px;
}

.fm-hero__bullets {
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 760px;
}

.fm-hero__bullets li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 10px;
	font-size: 20px;
	line-height: 1.35;
	color: #1f1f1f;
}

.fm-hero__bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #F4BB21;
}

.fm-hero__right {
	display: flex;
	justify-content: flex-end;
	position: relative;
	z-index: 4;
    padding-top: 40px;
}

/* Caja formulario */
.fm-form-box {
	width: 100%;
	max-width: 500px;
	background: #F4BB21;
	padding: 18px 18px 14px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.fm-form-box__title {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 700;
	color: #1f1f1f;
}

.fm-form-box__text {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.4;
	color: #1f1f1f;
}

/* =========================
   FORMULARIO CF7
   ========================= */

.fm-form-box .wpcf7 {
	width: 100%;
}

.fm-form-box .wpcf7 form {
	margin: 0;
}

.fm-form-box .wpcf7 p {
	margin: 0 0 8px;
}

.fm-form-box .wpcf7 label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1f1f1f;
	margin-bottom: 3px;
}

.fm-form-box .wpcf7 input[type="text"],
.fm-form-box .wpcf7 input[type="email"],
.fm-form-box .wpcf7 input[type="tel"],
.fm-form-box .wpcf7 input[type="number"],
.fm-form-box .wpcf7 input[type="date"],
.fm-form-box .wpcf7 select,
.fm-form-box .wpcf7 textarea {
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #1f1f1f;
	font-size: 13px;
	line-height: 1.3;
	box-shadow: none;
}

.fm-form-box .wpcf7 textarea {
	min-height: 84px;
	resize: vertical;
}

.fm-form-box .wpcf7 input::placeholder,
.fm-form-box .wpcf7 textarea::placeholder {
	color: #666;
}

.fm-form-box .wpcf7 input[type="checkbox"] {
	margin-right: 8px;
	transform: translateY(1px);
}

.fm-form-box .wpcf7 input[type="submit"] {
	display: inline-block;
	width: auto;
	min-width: 120px;
	padding: 11px 20px;
	border: 0;
	border-radius: 0;
	background: #1f1f1f;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.fm-form-box .wpcf7 input[type="submit"]:hover {
	opacity: 0.9;
}

.fm-form-box .wpcf7-not-valid-tip {
	margin-top: 4px;
	color: #1f1f1f;
	font-size: 12px;
}

.fm-form-box .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 8px 10px;
	font-size: 13px;
	color: #1f1f1f;
	border-color: rgba(31, 31, 31, 0.35);
}

/* =========================
   CONTENEDORES GENERALES
   ========================= */

.fm-section {
	padding: 70px 0;
	background: #fff;
}

.fm-section:nth-of-type(even):not(.fm-hero) {
	background: #f7f7f7;
}

.fm-section__title {
	margin: 0 0 28px;
	font-size: 40px;
	line-height: 1.1;
	color: #1f1f1f;
}

.fm-card {
	background: #fff;
	padding: 28px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* =========================
   CONTENEDOR 3: POR QUÉ
   ========================= */

.fm-why__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.fm-why__item {
	border-left: 5px solid #F4BB21;
}

.fm-why__item h3 {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.2;
}

.fm-why__item p {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
}

/* =========================
   CONTENEDOR 4: MÁQUINAS
   ========================= */

.fm-accordion {
	display: grid;
	gap: 16px;
}

.fm-accordion__item {
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.fm-accordion__summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 24px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #1f1f1f;
	position: relative;
}

.fm-accordion__summary::-webkit-details-marker {
	display: none;
}

.fm-accordion__summary::after {
	content: "+";
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 28px;
	font-weight: 400;
	color: #F4BB21;
}

.fm-accordion__item[open] .fm-accordion__summary::after {
	content: "−";
}

.fm-accordion__content {
	padding: 0 24px 24px;
}

.fm-accordion__intro {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.65;
}

.fm-table {
	display: grid;
	gap: 0;
	border: 1px solid #ececec;
}

.fm-table__row {
	display: grid;
	grid-template-columns: 240px 1fr;
}

.fm-table__row > div {
	padding: 14px 16px;
	border-bottom: 1px solid #ececec;
}

.fm-table__row > div:first-child {
	border-right: 1px solid #ececec;
	font-weight: 700;
}

.fm-table__row--head {
	background: #fafafa;
	font-weight: 700;
}

.fm-machines__cta {
	margin-top: 28px;
}

/* =========================
   CONTENEDOR 5: CATÁLOGOS
   ========================= */

.fm-catalogs__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.fm-catalogs__item {
	border-top: 4px solid #F4BB21;
}

.fm-catalogs__item h3 {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.2;
}

.fm-catalogs__item p {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.65;
}

/* =========================
   CONTENEDOR 6: BENEFICIOS
   ========================= */

.fm-benefits__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 28px;
}

.fm-benefits__list li {
	position: relative;
	padding-left: 24px;
	font-size: 18px;
	line-height: 1.55;
}

.fm-benefits__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 11px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #F4BB21;
}

/* =========================
   CONTENEDOR 7: CONTACTO
   ========================= */

.fm-contact__inner {
	text-align: center;
	max-width: 860px;
}

.fm-contact__inner p {
	margin: 0 0 24px;
	font-size: 18px;
	line-height: 1.65;
}

/* =========================
   BOTONES
   ========================= */

.fm-btn {
	display: inline-block;
	padding: 14px 28px;
	font-weight: 700;
	transition: opacity 0.2s ease;
}

.fm-btn:hover {
	opacity: 0.9;
}

.fm-btn--primary {
	background: #000000;
	color: #ffffff;
}

.fm-btn--secondary {
	background: #1f1f1f;
	color: #fff;
}

/* =========================
   PIE FINAL
   ========================= */

footer.fm-footer {
	display: block;
	width: 100%;
	background: #e3e3e3;
	padding: 20px 0;
	margin: 0;
	border-top: 1px solid #cfcfcf;
}

footer.fm-footer .fm-footer__inner {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	text-align: center;
}

footer.fm-footer .fm-footer__copy {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: #1f1f1f;
}

footer.fm-footer .fm-footer__sep {
	color: #7f7f7f;
	font-size: 14px;
	line-height: 1;
}

footer.fm-footer .fm-footer__link,
footer.fm-footer .fm-footer__link:link,
footer.fm-footer .fm-footer__link:visited,
footer.fm-footer .fm-footer__link:hover,
footer.fm-footer .fm-footer__link:active,
footer.fm-footer .fm-footer__link:focus {
	color: #1f1f1f;
	text-decoration: underline;
}

.fm-contact {
	padding-bottom: 60px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
	.fm-hero__bg,
	.fm-hero__fade {
		height: 500px;
	}

	.fm-hero__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.fm-hero__title {
		font-size: 38px;
	}

	.fm-hero__subtitle {
		font-size: 22px;
		max-width: none;
	}

	.fm-hero__right {
		justify-content: flex-start;
	}

	.fm-form-box {
		max-width: 520px;
	}

	.fm-why__grid,
	.fm-catalogs__grid,
	.fm-benefits__list {
		grid-template-columns: 1fr;
	}

	.fm-table__row {
		grid-template-columns: 180px 1fr;
	}
}

.fm-cf7-legal-text {
	margin-top: 12px;
	font-size: 8px;
	line-height: 1.25;
	color: #1f1f1f;
}

.fm-cf7-legal-text p {
	margin: 0 0 6px;
	font-size: 8px;
	line-height: 1.25;
}

.fm-hero-links {
	margin-top: 56px;
}

.fm-hero-links__title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	color: #1f1f1f;
}

.fm-hero-links__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fm-hero-links__list li {
	margin-bottom: 8px;
}

.fm-hero-links__list a,
.fm-hero-links__list a:link,
.fm-hero-links__list a:visited {
	color: #808080;
	text-decoration: underline;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 600;
}

.fm-hero-links__list a:hover,
.fm-hero-links__list a:focus {
	opacity: 0.8;
}

@media (max-width: 767px) {
	.fm-hero__bg,
	.fm-hero__fade {
		height: 420px;
	}

	.fm-hero__content {
		padding-top: 26px;
		padding-bottom: 40px;
	}

	.fm-hero__logo {
		max-width: 200px;
		margin-bottom: 18px;
	}

	.fm-hero__title {
		font-size: 30px;
	}

	.fm-hero__subtitle {
		font-size: 20px;
		margin-bottom: 20px;
	}

	.fm-hero__bullets li {
		font-size: 17px;
		padding-left: 20px;
	}

	.fm-hero__bullets li::before {
		top: 9px;
		width: 7px;
		height: 7px;
	}

	.fm-form-box {
		max-width: 100%;
		padding: 16px 16px 12px;
	}

	.fm-section {
		padding: 48px 0;
	}

	.fm-section__title {
		font-size: 30px;
	}

	.fm-card,
	.fm-accordion__summary,
	.fm-accordion__content {
		padding-left: 18px;
		padding-right: 18px;
	}

	.fm-table {
		border: 0;
	}

	.fm-table__row {
		grid-template-columns: 1fr;
		margin-bottom: 12px;
		border: 1px solid #ececec;
	}

	.fm-table__row > div:first-child {
		border-right: 0;
		border-bottom: 1px solid #ececec;
		background: #fafafa;
	}

	.fm-table__row > div {
		border-bottom: 0;
	}

}