:root {
	--jm-orange: #ff4d06;
	--jm-ink: #232527;
	--jm-night: #1a2b3c;
	--jm-grey: #63676a;
	--jm-line: rgba(35, 37, 39, 0.14);
	--jm-line-dark: rgba(255, 255, 255, 0.14);
	--jm-paper: #eeefef;
	--jm-head: Montserrat, sans-serif;
	--jm-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--jm-radius: 24px;
	--jm-shadow: 0 30px 70px -30px rgba(20, 22, 24, 0.45);
}

html {
	scroll-behavior: smooth;
}

/* Cabecera */
.wp-site-blocks > header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0);
	z-index: 50;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--jm-line);
}

/* Páginas diseñadas: secciones pegadas */
:is(.home, .page-template-page-jm) .wp-site-blocks > *,
:is(.home, .page-template-page-jm) .wp-block-post-content > * {
	margin-block-start: 0;
}

:is(.home, .page-template-page-jm) .wp-site-blocks > footer > .wp-block-group {
	margin-top: 0 !important;
}

.jm-section {
	position: relative;
	padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 4rem);
}

.jm-section > * {
	max-width: 1320px;
	margin-inline: auto;
}

.jm-dark {
	background: var(--jm-night);
	color: #fff;
}

.jm-dark h2,
.jm-dark h3 {
	color: #fff;
}

.jm-dark a:not(.wp-element-button) {
	color: #fff;
}

.jm-paper {
	background: var(--jm-paper);
}

.jm-eyebrow {
	font-family: var(--jm-head);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--jm-orange);
	margin: 0 0 1.25rem;
}

.jm-lead {
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
	line-height: 1.55;
	max-width: 40rem;
}

.jm-accent {
	color: var(--jm-orange);
}

.jm-head {
	margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.jm-head h2,
.jm-narrow h2 {
	margin: 0 0 1rem;
	max-width: 20ch;
	font-size: clamp(2.2rem, 5vw, 4.25rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.jm-section > .jm-narrow {
	width: 100%;
}

/* Botones */
.wp-block-button__link {
	border-radius: 999px !important;
	transition: transform 0.35s var(--jm-ease), background 0.25s, color 0.25s;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.jm-dark .is-style-outline .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
	background: transparent;
}

.jm-dark .is-style-outline .wp-block-button__link:hover {
	color: var(--jm-ink);
	background: #fff;
	border-color: #fff;
}

.jm-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: #fff;
	color: var(--jm-ink);
}

/* Hero */
.jm-hero {
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: min(92vh, 900px);
	background:
		radial-gradient(55% 70% at 78% 40%, rgba(255, 77, 6, 0.2), transparent 70%),
		linear-gradient(135deg, #22384e 0%, #1a2b3c 100%);
}

.jm-hero-small {
	min-height: min(70vh, 640px);
}

.jm-hero > .wp-block-group {
	position: relative;
	z-index: 2;
	width: 100%;
}

.jm-hero h1 {
	color: #fff;
	margin: 0 0 1.75rem;
	font-size: clamp(2.5rem, 5.8vw, 5.75rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.02;
}

.jm-hero h1 .jm-accent {
	display: block;
}

.jm-hero-small h1 {
	font-size: clamp(2.4rem, 5vw, 4.75rem);
}

.jm-hero .jm-lead {
	max-width: 34rem;
}

.jm-hero .wp-block-buttons {
	margin-top: 2.5rem;
}

.jm-canvas {
	position: absolute !important;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none !important;
	margin: 0 !important;
	-webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 66%);
	mask-image: linear-gradient(90deg, transparent 38%, #000 66%);
}

/* Portada con estructura que gira al hacer scroll */
.wp-block-group.jm-pin {
	position: relative;
	height: 480vh;
}

.jm-pin > .jm-hero {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 84px);
	box-sizing: border-box;
	height: calc(100vh - 84px - var(--wp-admin--admin-bar--height, 0px));
	min-height: 0;
	background: #111d29;
}

.jm-pin > .jm-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, #111d29 0%, #111d29 36%, rgba(17, 29, 41, 0) 50%);
	opacity: var(--jm-out, 1);
	pointer-events: none;
}

.jm-pin .jm-seq {
	-webkit-mask-image: linear-gradient(90deg, transparent 24%, #000 46%);
	mask-image: linear-gradient(90deg, transparent 24%, #000 46%);
}

.jm-hero3d,
.jm-seq {
	position: absolute !important;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none !important;
	margin: 0 !important;
}

/* Vigas que forman cada servicio al hacer scroll */
.jm-morph {
	position: relative;
	height: 520vh;
}

.jm-morph > .jm-section {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 84px);
	display: flex;
	align-items: center;
	box-sizing: border-box;
	height: calc(100vh - 84px - var(--wp-admin--admin-bar--height, 0px));
	padding-block: clamp(1.5rem, 4vh, 3rem);
	overflow: hidden;
	background: linear-gradient(150deg, #24394f 0%, #1a2b3c 100%);
}

.jm-morph-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
	width: 100%;
}

.jm-morph h2 {
	margin: 0 0 1.75rem;
	font-size: clamp(1.9rem, 3.6vw, 3.25rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.jm-lines {
	display: block;
	width: 100%;
	height: min(72vh, 680px);
}

.jm-morph .jm-rows {
	border-top: 1px solid var(--jm-line-dark);
}

.jm-morph .jm-row:not(.jm-row-plain) {
	display: block;
	overflow: visible;
	padding: 0.7rem 0;
	border-color: var(--jm-line-dark);
	border-radius: 0;
	transition: none;
}

.jm-morph .jm-row:not(.jm-row-plain)::before {
	display: none;
}

.jm-morph .jm-row:not(.jm-row-plain):hover {
	transform: none;
	box-shadow: none;
}

.jm-morph .jm-row h3 {
	font-size: clamp(1.05rem, 1.5vw, 1.35rem);
	font-weight: 600;
}

.jm-morph .jm-row h3 a {
	color: rgba(255, 255, 255, 0.45);
	transition: color 0.3s;
}

.jm-morph .jm-row h3 a::before {
	inset: 0;
}

.jm-morph .jm-row.is-active h3 a,
.jm-morph .jm-row:hover h3 a {
	color: var(--jm-orange);
}

.jm-morph .jm-row p {
	max-height: 0;
	overflow: hidden;
	color: #e3e4e5;
	font-size: 0.98rem;
	opacity: 0;
	transition: max-height 0.4s var(--jm-ease), opacity 0.4s;
}

.jm-morph .jm-row.is-active p {
	max-height: 3rem;
	margin-top: 0.2rem;
	opacity: 1;
}

/* Lo que fabricamos */
.jm-make {
	background: #1e3045;
	color: #fff;
}

.jm-make h2,
.jm-make h3 {
	color: #fff;
}

.jm-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.jm-tile {
	position: relative;
	overflow: hidden;
	border-radius: var(--jm-radius);
	background: #172638;
	box-shadow: var(--jm-shadow);
	transition: transform 0.5s var(--jm-ease);
}

.jm-tile:hover {
	transform: translateY(-8px);
}

.jm-tile .jm-seq {
	position: relative !important;
	inset: auto;
	aspect-ratio: 16 / 10;
	height: auto;
	-webkit-mask-image: none;
	mask-image: none;
	opacity: 1;
}

.jm-tile h3 {
	margin: 0;
	padding: 1.25rem 1.5rem 0.25rem;
	font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

.jm-tile h3 a {
	color: #fff;
	text-decoration: none;
}

.jm-tile h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.jm-tile p {
	margin: 0;
	padding: 0 1.5rem 1.5rem;
	font-size: 0.95rem;
	color: #c9cbcc;
}

.jm-note {
	margin: 1.25rem 0 0;
	font-size: 0.8rem;
	color: #a4a7a9;
}

.jm-pin-bar {
	position: absolute !important;
	left: 0;
	bottom: 0;
	z-index: 3;
	width: 100%;
	max-width: none !important;
	height: 3px;
	margin: 0 !important;
	background: var(--jm-orange);
	transform: scaleX(0);
	transform-origin: left;
}

/* Cifras */
.jm-proof {
	padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.jm-proof-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.jm-proof-item {
	padding: clamp(1.25rem, 2.2vw, 2rem);
	border-radius: var(--jm-radius);
	background: var(--jm-paper);
	transition: transform 0.5s var(--jm-ease), box-shadow 0.5s;
}

.jm-proof-item:hover {
	transform: translateY(-6px);
	box-shadow: var(--jm-shadow);
}

.jm-figure {
	font-family: var(--jm-head);
	font-size: clamp(1.7rem, 2.9vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin: 0 0 0.6rem;
}

.jm-proof-item p:not(.jm-figure) {
	color: var(--jm-grey);
	font-size: 0.98rem;
	line-height: 1.45;
	margin: 0;
}

/* Tarjetas apiladas */
.jm-stack {
	display: grid;
	gap: 1.5rem;
}

.jm-card {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 6.5rem);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	min-height: 66vh;
	padding: clamp(2rem, 5vw, 4.5rem);
	border-radius: 32px;
	background: var(--jm-paper);
	box-shadow: 0 -18px 50px -30px rgba(20, 22, 24, 0.4);
}

.jm-card:nth-child(2) {
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 7.75rem);
	background: var(--jm-night);
	color: #fff;
}

.jm-card:nth-child(2) h3 {
	color: #fff;
}

.jm-card:nth-child(3) {
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 9rem);
	background: #fff;
	border: 1px solid var(--jm-line);
}

.jm-num {
	font-family: var(--jm-head);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--jm-orange);
	margin: 0 0 1.25rem;
}

.jm-card h3 {
	margin: 0 0 1.25rem;
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.jm-card p:not(.jm-num) {
	margin: 0;
	font-size: clamp(1.05rem, 1.3vw, 1.2rem);
	line-height: 1.6;
}

/* Bloques enlazados */
.jm-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.jm-links li {
	margin: 0;
}

.jm-links a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.35rem 1.6rem;
	border-radius: 16px;
	background: var(--jm-paper);
	color: var(--jm-ink);
	font-family: var(--jm-head);
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.4s var(--jm-ease), background 0.25s, color 0.25s, box-shadow 0.4s;
}

.jm-links a::after {
	content: "\2192";
	color: var(--jm-orange);
	transition: transform 0.4s var(--jm-ease), color 0.25s;
}

.jm-links a:hover,
.jm-links a:focus-visible {
	background: var(--jm-orange);
	color: #fff;
	transform: scale(1.04);
	box-shadow: 0 24px 50px -18px rgba(255, 77, 6, 0.65);
}

.jm-links a:hover::after,
.jm-links a:focus-visible::after {
	color: #fff;
	transform: translateX(6px);
}

/* Imágenes */
.jm-media {
	margin: 0;
	overflow: hidden;
	border-radius: 20px;
	box-shadow: var(--jm-shadow);
}

.jm-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 460px;
	object-fit: cover;
	transition: transform 1.2s var(--jm-ease);
}

.jm-media:hover img {
	transform: scale(1.04);
}

/* Gráfico de fases */
.jm-phases {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	padding: 1.5rem;
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--jm-shadow);
}

.jm-p-label {
	font-family: var(--jm-head);
	font-size: 15px;
	font-weight: 500;
	fill: var(--jm-ink);
}

.jm-p-fab {
	fill: #55585b;
}

.jm-p-mon {
	fill: var(--jm-orange);
}

/* Mapa */
.jm-world {
	overflow: hidden;
	background: linear-gradient(160deg, #24394f 0%, #1a2b3c 100%);
}

.jm-world-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
}

.jm-world h2 {
	margin: 0 0 1.25rem;
	font-size: clamp(2.2rem, 4.4vw, 3.75rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.jm-world .wp-block-buttons {
	margin-top: 2rem;
}

.jm-map {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.jm-dots {
	fill: none;
	stroke: rgba(255, 255, 255, 0.3);
	stroke-width: 4.6;
	stroke-linecap: round;
}

.jm-arc {
	fill: none;
	stroke: var(--jm-orange);
	stroke-width: 1.3;
	stroke-linecap: round;
	opacity: 0.85;
}

.jm-pin {
	fill: var(--jm-orange);
}

.jm-base {
	fill: #fff;
	stroke: var(--jm-orange);
	stroke-width: 3;
}

.jm-js .jm-arc {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.jm-js .jm-map .jm-pin {
	opacity: 0;
}

.jm-js .is-in .jm-arc {
	animation: jm-draw 1.6s var(--jm-ease) var(--d, 0s) forwards;
}

.jm-js .is-in .jm-map .jm-pin,
.jm-js .jm-map.is-in .jm-pin {
	animation: jm-pop 0.5s var(--jm-ease) var(--d, 0s) forwards;
}

@keyframes jm-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes jm-pop {
	to {
		opacity: 1;
	}
}

/* Países en movimiento */
.jm-marquee {
	overflow: hidden;
	padding-block: 1.6rem;
	background: var(--jm-orange);
	color: #fff;
}

.jm-track {
	display: flex;
	width: max-content;
	gap: 3rem;
	font-family: var(--jm-head);
	font-size: clamp(1.3rem, 2.4vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
	animation: jm-slide 60s linear infinite;
}

@keyframes jm-slide {
	to {
		transform: translateX(-50%);
	}
}

/* Filas grandes */
.jm-rows {
	border-top: 1px solid var(--jm-line);
}

.jm-row {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: center;
	padding: clamp(1.25rem, 2.2vw, 1.9rem) clamp(0.5rem, 1.5vw, 1.5rem);
	border-bottom: 1px solid var(--jm-line);
}

.jm-row > * {
	position: relative;
	z-index: 1;
	transition: color 0.3s;
}

.jm-row h3 {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.jm-big .jm-row h3 {
	font-size: clamp(1.6rem, 3.4vw, 3rem);
	font-weight: 600;
	letter-spacing: -0.03em;
}

.jm-row h3 a {
	text-decoration: none;
}

.jm-row h3 a::before {
	content: "";
	position: absolute;
	inset: -40rem;
	z-index: 2;
}

.jm-row p {
	margin: 0;
	color: var(--jm-grey);
}

.jm-dark .jm-rows,
.jm-dark .jm-row {
	border-color: var(--jm-line-dark);
}

.jm-dark .jm-row p {
	color: #d4d6d7;
}

.jm-row:not(.jm-row-plain)::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--jm-orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.55s var(--jm-ease);
}

.jm-row:not(.jm-row-plain) {
	border-radius: 16px;
	transition: transform 0.4s var(--jm-ease), box-shadow 0.4s;
}

.jm-row:not(.jm-row-plain):hover {
	z-index: 2;
	transform: scale(1.02);
	box-shadow: 0 24px 50px -18px rgba(255, 77, 6, 0.65);
}

.jm-row:not(.jm-row-plain):hover::before {
	transform: scaleX(1);
}

.jm-row:not(.jm-row-plain):hover h3 a,
.jm-row:not(.jm-row-plain):hover p {
	color: #fff;
}

/* Fichas de proyecto */
.jm-work .wp-block-post-template {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0 0 2.5rem;
	padding: 0;
}

.jm-work .wp-block-post {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	margin: 0;
	border-radius: var(--jm-radius);
	box-shadow: var(--jm-shadow);
	transition: transform 0.5s var(--jm-ease);
}

.jm-work .wp-block-post:hover {
	transform: translateY(-8px);
}

.jm-work .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.jm-work .wp-block-post-featured-image a {
	display: block;
	height: 100%;
}

.jm-work .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--jm-ease);
}

.jm-work .wp-block-post:hover img {
	transform: scale(1.06);
}

.jm-work .wp-block-post-featured-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 33, 52, 0.92) 0%, rgba(20, 33, 52, 0.62) 30%, rgba(20, 33, 52, 0) 58%);
	pointer-events: none;
	transition: opacity 0.5s;
}

.jm-work .wp-block-post-featured-image a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(255, 77, 6, 0.92) 0%, rgba(255, 77, 6, 0.5) 100%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.45s ease;
}

.jm-work .wp-block-post:hover .wp-block-post-featured-image a::after {
	opacity: 1;
}

.jm-work .wp-block-post-title,
.jm-work .wp-block-post-excerpt {
	position: absolute;
	z-index: 2;
	left: 1.75rem;
	right: 1.75rem;
	margin: 0;
	color: #fff;
}

.jm-work .wp-block-post-title {
	bottom: 6.75rem;
	font-size: clamp(1.25rem, 1.7vw, 1.55rem);
	letter-spacing: -0.02em;
}

.jm-work .wp-block-post-title a {
	color: #fff;
	text-decoration: none;
}

.jm-work .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: -40rem;
}

.jm-work .wp-block-post-excerpt {
	bottom: 1.5rem;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.4;
}

.jm-work .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* Reseñas */
.jm-reviews-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.jm-reviews h2 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.25rem);
	letter-spacing: -0.03em;
	line-height: 1.08;
}

.jm-slider {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border-radius: var(--jm-radius);
	background: #fff;
	box-shadow: var(--jm-shadow);
}

.jm-slider::-webkit-scrollbar {
	display: none;
}

.jm-quote {
	flex: 0 0 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	min-height: 300px;
	margin: 0;
	padding: clamp(2rem, 4vw, 3.5rem);
	border: 0;
	scroll-snap-align: start;
}

.jm-quote p {
	font-family: var(--jm-head);
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
	font-weight: 500;
	line-height: 1.5;
	margin: 0 0 1.5rem;
}

.jm-quote cite {
	font-style: normal;
	font-size: 0.95rem;
	color: var(--jm-grey);
}

.jm-quote cite strong {
	display: block;
	color: var(--jm-ink);
}

.jm-slider-nav {
	grid-column: 2;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: -1.5rem;
}

.jm-slider-nav button {
	width: 48px;
	height: 48px;
	border: 1px solid var(--jm-line);
	border-radius: 50%;
	background: #fff;
	color: var(--jm-ink);
	font-size: 1.1rem;
	cursor: pointer;
	transition: background 0.25s, color 0.25s, transform 0.35s var(--jm-ease);
}

.jm-slider-nav button:hover {
	background: var(--jm-orange);
	border-color: var(--jm-orange);
	color: #fff;
	transform: scale(1.08);
}

.jm-slider-count {
	margin-left: 0.5rem;
	font-family: var(--jm-head);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--jm-grey);
}

/* Documentos y listas */
.jm-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: center;
}

.jm-split h2 {
	color: inherit;
	margin: 0 0 1.25rem;
	font-size: clamp(2rem, 4vw, 3.25rem);
	letter-spacing: -0.03em;
}

.jm-docs {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--jm-line);
}

.jm-docs li {
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--jm-line);
	font-family: var(--jm-head);
	font-weight: 500;
}

/* Columnas */
.jm-split + .jm-cols {
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.jm-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.jm-cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jm-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Hero con foto real de obra o de fábrica */
.jm-hero.jm-hero-photo {
	background: #14212e;
}

.jm-hero-bg {
	position: absolute !important;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	animation: jm-hero-zoom 16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.jm-hero-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(20, 34, 49, 0.9) 0%, rgba(20, 34, 49, 0.66) 46%, rgba(20, 34, 49, 0.28) 100%),
		linear-gradient(0deg, rgba(20, 34, 49, 0.55) 0%, transparent 35%);
	pointer-events: none;
}

@keyframes jm-hero-zoom {
	from {
		transform: scale(1.08);
	}

	to {
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jm-hero-bg {
		animation: none;
	}
}

@media (max-width: 781px) {
	.jm-hero-photo::after {
		background: linear-gradient(180deg, rgba(20, 34, 49, 0.72) 0%, rgba(20, 34, 49, 0.82) 100%);
	}
}

/* Portada: bloque de cifras montado sobre el hero, como en la web actual */
.home .jm-hero-photo {
	padding-bottom: clamp(9rem, 16vw, 13rem);
}

.jm-section.jm-intro {
	padding-top: 0;
	padding-bottom: clamp(3.5rem, 7vw, 6rem);
	background: #f3f3f3;
}

.jm-section > .jm-intro-grid {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: 1.15fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	margin-top: clamp(-11rem, -12vw, -6rem);
	box-shadow: 0 30px 60px -30px rgba(20, 34, 49, 0.45);
}

.jm-intro-main {
	grid-row: 1 / 3;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	padding: clamp(2rem, 4vw, 3.5rem);
	background: var(--jm-orange);
	color: #fff;
}

.jm-intro-main .jm-intro-since {
	margin: 0;
	font-family: var(--jm-head);
	font-size: 1.1rem;
	font-weight: 600;
}

.jm-intro-main h2 {
	margin: 0;
	color: var(--jm-night);
	font-size: clamp(1.6rem, 2.6vw, 2.3rem);
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.jm-intro-main p {
	margin: 0;
}

.jm-intro-main a {
	align-self: flex-start;
	margin-top: 0.75rem;
	padding: 0.7rem 1.3rem;
	border: 2px solid var(--jm-night);
	border-radius: 999px;
	color: var(--jm-night);
	font-family: var(--jm-head);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.25s, color 0.25s;
}

.jm-intro-main a:hover {
	background: var(--jm-night);
	color: #fff;
}

.jm-intro-cell {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.6rem;
	padding: clamp(1.5rem, 3vw, 2.75rem);
	border: 1px solid #e3e3e3;
	background: #fff;
}

.jm-intro-cell b {
	color: var(--jm-night);
	font-family: var(--jm-head);
	font-size: clamp(2rem, 3.4vw, 2.9rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
}

.jm-intro-cell b i {
	color: var(--jm-orange);
	font-style: normal;
}

.jm-intro-cell span {
	color: var(--jm-grey);
	font-size: 0.98rem;
	line-height: 1.4;
}

.jm-section.jm-intro + .jm-logos {
	background: #f3f3f3;
	padding-top: 0;
}

@media (max-width: 900px) {
	.jm-section > .jm-intro-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
	}

	.jm-intro-main {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.jm-intro-cell {
		padding: 1.4rem 1.1rem;
	}

	.jm-intro-cell b {
		font-size: 1.85rem;
		white-space: nowrap;
	}

	.jm-intro-cell span {
		font-size: 0.9rem;
	}
}

/* Tarjetas con foto arriba */
.jm-col.jm-col-photo {
	overflow: hidden;
	padding-top: 0;
}

.jm-col-photo .jm-col-img {
	margin: 0 calc(-1 * clamp(1.5rem, 2.4vw, 2.25rem)) 1.4rem;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.jm-col-photo .jm-col-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--jm-ease);
}

.jm-col-photo:hover .jm-col-img img {
	transform: scale(1.05);
}

.page-template-page-jm .jm-col.jm-col-photo {
	border-top: 0;
	border-bottom: 3px solid var(--jm-orange);
}

/* Versiones con bloques nativos (patrones del editor) */
.jm-strip > * {
	margin: 0 !important;
}

.jm-strip > .wp-block-image {
	position: relative;
	overflow: hidden;
	height: clamp(15rem, 27vw, 28rem);
}

figure.jm-hero-bg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Franja de fotos reales a sangre */
.jm-strip {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 4px;
	margin: 0 !important;
	max-width: none !important;
	background: #fff;
}

.jm-strip figure {
	position: relative;
	overflow: hidden;
	height: clamp(15rem, 27vw, 28rem);
	margin: 0;
}

.jm-strip img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--jm-ease);
}

.jm-strip figure:hover img {
	transform: scale(1.05);
}

@media (max-width: 781px) {
	.jm-strip {
		grid-template-columns: 1fr 1fr;
	}

	.jm-strip figure {
		height: 13rem;
	}

	.jm-strip figure:first-child {
		grid-column: 1 / -1;
		height: 16rem;
	}
}

/* Menú de escritorio: los desplegables largos (8 opciones o más) van en dos columnas
   y ninguno puede ser más alto que la pantalla (23/11/2026). */
@media (min-width: 1180px) {
	header .wp-block-navigation .wp-block-navigation__submenu-container {
		max-height: calc(100vh - 110px - var(--wp-admin--admin-bar--height, 0px));
		overflow-y: auto;
	}

	header .wp-block-navigation .wp-block-navigation__submenu-container:has(> li:nth-child(8)) {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(13rem, max-content));
		column-gap: 1.5rem;
	}
}

/* Collage al lado del texto: una foto grande y dos pequeñas (bloques de imagen normales) */
.jm-collage {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 6px;
	height: clamp(20rem, 34vw, 28.75rem);
	overflow: hidden;
	border-radius: 20px;
	box-shadow: var(--jm-shadow);
}

.jm-collage > * {
	min-height: 0;
	margin: 0 !important;
	overflow: hidden;
}

.jm-collage > :first-child {
	grid-row: 1 / span 2;
}

.jm-collage img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--jm-ease);
}

.jm-collage figure:hover img {
	transform: scale(1.04);
}

@media (max-width: 781px) {
	.jm-collage {
		height: 17rem;
	}
}

/* Sectores con foto: limpia, el color aparece al pasar el ratón */
.jm-section.jm-sectors-sec {
	padding-bottom: 0;
}

.jm-section > .jm-sectors {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: none;
	margin: clamp(2.5rem, 5vw, 4rem) calc(-1 * clamp(1.25rem, 5vw, 4rem)) 0;
}

.jm-sector {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	max-height: 40rem;
	color: #fff;
	text-decoration: none;
}

.jm-sector img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--jm-ease);
}

.jm-sector::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(255, 77, 6, 0.92) 0%, rgba(255, 77, 6, 0.55) 100%);
	opacity: 0;
	transition: opacity 0.45s ease;
}

.jm-sector-txt {
	position: absolute;
	left: clamp(1.25rem, 2.6vw, 2.5rem);
	right: clamp(1.25rem, 2.6vw, 2.5rem);
	bottom: clamp(1.5rem, 3vw, 2.75rem);
	z-index: 1;
	display: grid;
	gap: 0.4rem;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.6);
	transition: transform 0.45s var(--jm-ease);
}

.jm-sector-txt strong {
	font-family: var(--wp--preset--font-family--heading, "Montserrat", sans-serif);
	font-size: clamp(1.35rem, 2vw, 1.9rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.jm-sector-txt small {
	font-size: 0.98rem;
	opacity: 0.92;
}

.jm-sector-txt em {
	max-height: 0;
	overflow: hidden;
	font-style: normal;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0;
	transition: max-height 0.45s ease, opacity 0.45s ease;
}

.jm-sector:hover img,
.jm-sector:focus-visible img {
	transform: scale(1.06);
}

.jm-sector:hover::after,
.jm-sector:focus-visible::after {
	opacity: 1;
}

.jm-sector:hover .jm-sector-txt,
.jm-sector:focus-visible .jm-sector-txt {
	transform: translateY(-0.4rem);
	text-shadow: none;
}

.jm-sector:hover .jm-sector-txt em,
.jm-sector:focus-visible .jm-sector-txt em {
	max-height: 2rem;
	opacity: 1;
}

.jm-sectors-sec .jm-sectors-more {
	display: flex;
	justify-content: center;
	padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

@media (hover: none) {
	.jm-sector .jm-sector-txt {
		padding-top: 4rem;
	}

	.jm-sector::before {
		content: "";
		position: absolute;
		inset: auto 0 0;
		z-index: 1;
		height: 45%;
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent);
	}
}

@media (max-width: 1000px) {
	.jm-section > .jm-sectors {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jm-sector {
		aspect-ratio: 4 / 5;
	}
}

.jm-col {
	padding: clamp(1.5rem, 2.4vw, 2.25rem);
	border-radius: var(--jm-radius);
	background: var(--jm-paper);
	transition: transform 0.5s var(--jm-ease), box-shadow 0.5s;
}

.jm-paper .jm-col {
	background: #fff;
}

.jm-col:hover {
	transform: translateY(-6px);
	box-shadow: var(--jm-shadow);
}

.jm-col h3 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.jm-col p {
	margin: 0;
	color: var(--jm-grey);
}

/* Preguntas */
.jm-faq {
	border-top: 1px solid var(--jm-line);
}

.jm-faq .wp-block-details {
	margin: 0;
	padding: 1.4rem 0;
	border-bottom: 1px solid var(--jm-line);
}

.jm-faq summary {
	cursor: pointer;
	font-family: var(--jm-head);
	font-size: 1.15rem;
	font-weight: 600;
}

.jm-faq p {
	margin: 0.9rem 0 0;
	max-width: 46rem;
}

/* Llamada final */
.jm-cta {
	text-align: center;
	background: var(--jm-orange);
	color: #fff;
}

.jm-cta h2 {
	color: #fff;
	margin: 0 auto 1.25rem;
	max-width: 16ch;
	font-size: clamp(2.6rem, 7vw, 6rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
}

.jm-cta .jm-lead {
	margin-inline: auto;
	font-weight: 600;
}

.jm-cta .wp-block-buttons {
	justify-content: center;
	margin-top: 2.25rem;
}

.jm-cta .wp-block-button__link {
	background: #fff;
	color: var(--jm-ink);
}

.jm-cta .wp-block-button__link:hover {
	background: var(--jm-ink);
	color: #fff;
}

/* Naranja en páginas interiores: detalles, y sombra solo en fotos sobre blanco */
.page-template-page-jm {
	--jm-shadow: 0 30px 60px -32px rgba(255, 77, 6, 0.24);
}

.page-template-page-jm .jm-paper .jm-media,
.page-template-page-jm .jm-card .jm-media {
	--jm-shadow: 0 30px 70px -30px rgba(20, 22, 24, 0.3);
}

.page-template-page-jm .jm-figure {
	color: var(--jm-orange);
}

.page-template-page-jm .jm-col {
	border-top: 3px solid var(--jm-orange);
}

.page-template-page-jm .jm-proof-item:hover,
.page-template-page-jm .jm-col:hover,
.page-template-page-jm .jm-slider {
	box-shadow: none;
}

/* Formulario de presupuesto */
.jm-form-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: start;
}

.jm-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	scroll-margin-top: 110px;
}

.jm-form p {
	margin: 0;
}

.jm-form-ancho,
.jm-form-aviso {
	grid-column: 1 / -1;
}

.jm-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-family: var(--jm-head);
	font-size: 0.9rem;
	font-weight: 600;
}

.jm-form input:not([type="checkbox"]),
.jm-form select,
.jm-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--jm-line);
	border-radius: 12px;
	background: #fff;
	color: var(--jm-ink);
	font: inherit;
	transition: border-color 0.25s, box-shadow 0.25s;
}

.jm-form input:focus,
.jm-form select:focus,
.jm-form textarea:focus {
	outline: none;
	border-color: var(--jm-orange);
	box-shadow: 0 0 0 3px rgba(255, 77, 6, 0.16);
}

.jm-form small {
	display: block;
	margin-top: 0.35rem;
	color: var(--jm-grey);
}

.jm-form-check label {
	font-family: inherit;
	font-weight: 400;
}

.jm-form button {
	border: 0;
	cursor: pointer;
}

.jm-form-trampa {
	position: absolute;
	left: -9999px;
}

.jm-form-aviso {
	padding: 1rem 1.25rem;
	border-radius: 12px;
	font-weight: 600;
}

.jm-form-ok {
	background: #e9f5ec;
	color: #1d5c31;
}

.jm-form-error {
	background: #fdeae2;
	color: #a13103;
}

.jm-form-info {
	padding: clamp(1.5rem, 2.5vw, 2.25rem);
	border-radius: var(--jm-radius);
	background: var(--jm-paper);
}

.jm-form-info h3 {
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
}

.jm-form-info ul {
	margin: 0 0 2rem;
	padding-left: 1.1rem;
}

@media (max-width: 900px) {
	.jm-form-grid,
	.jm-form {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Fundador */
.jm-founder .jm-media img {
	max-height: 640px;
	object-position: center top;
}

/* Logos de clientes */
.jm-logos-view {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.jm-logos-track {
	display: flex;
	align-items: center;
	gap: clamp(2.5rem, 5vw, 4.5rem);
	width: max-content;
	animation: jm-slide 50s linear infinite;
}

.jm-logos-track:hover {
	animation-play-state: paused;
}

.jm-logos-track img {
	display: block;
	width: auto;
	max-width: 170px;
	height: 64px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.7;
	transition: filter 0.3s, opacity 0.3s;
}

.jm-logos-track img:hover {
	filter: none;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.jm-logos-track {
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
		animation: none;
	}

	.jm-logos-track img[aria-hidden="true"] {
		display: none;
	}
}

/* Franja de logos en la portada */
.jm-logos-strip {
	padding-block: clamp(2.5rem, 4vw, 3.5rem) clamp(1rem, 2vw, 1.5rem);
}

.jm-logos-strip .jm-eyebrow {
	margin-bottom: 1.5rem;
	text-align: center;
}

@media (max-width: 900px) {
	.jm-logos-track img {
		max-width: 120px;
		height: 46px;
	}
}

/* Si la última ficha queda sola en su fila, ocupa todo el ancho */
.jm-work .wp-block-post:nth-child(3n + 1):last-child {
	grid-column: 1 / -1;
	aspect-ratio: 21 / 9;
}

/* Si quedan dos fichas en la última fila, la última ocupa el hueco */
.jm-work .wp-block-post:nth-child(3n + 2):last-child {
	grid-column: span 2;
	aspect-ratio: auto;
}

.jm-proj-head .jm-eyebrow {
	color: #fff;
}

@media (max-width: 900px) {
	.jm-work .wp-block-post:nth-child(3n + 1):last-child,
	.jm-work .wp-block-post:nth-child(3n + 2):last-child {
		grid-column: auto;
		aspect-ratio: 4 / 5;
	}
}

/* Lista de sectores */
.jm-links-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Ficha de proyecto */
.jm-proj-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(72vh, 680px);
	padding: clamp(2rem, 5vw, 4rem);
	overflow: hidden;
	background: var(--jm-night);
	color: #fff;
}

.jm-proj-img {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
}

.jm-proj-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jm-proj-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(17, 29, 41, 0.94) 0%, rgba(17, 29, 41, 0.62) 48%, rgba(17, 29, 41, 0.08) 100%);
}

.jm-proj-head {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
}

.jm-proj-head h1 {
	margin: 0 0 1rem;
	max-width: 22ch;
	color: #fff;
	font-size: clamp(2.2rem, 4.6vw, 4.25rem);
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.jm-proj-head .wp-block-post-excerpt__excerpt {
	max-width: 44rem;
	margin: 0;
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.jm-proj-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: start;
}

.jm-proj-data {
	padding: clamp(1.5rem, 2.5vw, 2.25rem);
	border-radius: var(--jm-radius);
	background: var(--jm-paper);
}

.jm-proj-data h2,
.jm-proj-data h3 {
	margin: 0 0 1.25rem;
	font-size: 1.2rem;
	line-height: 1.3;
}

.jm-proj-data .jansa-datos {
	grid-template-columns: minmax(0, 1fr);
	gap: 0.15rem;
}

.jm-proj-data dt {
	margin-top: 0.75rem;
	color: var(--jm-orange);
	font-family: var(--jm-head);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.jm-proj-data dd {
	margin: 0;
}

.jm-proj-body h2 {
	margin: 2.5rem 0 0.75rem;
	font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.jm-proj-body h2:first-child {
	margin-top: 0;
}

.jm-proj-body .wp-block-gallery {
	margin-top: 2.5rem;
}

.jm-proj-body .wp-block-gallery img {
	border-radius: 12px;
}

.jm-proj-body .wp-block-quote {
	margin: 2rem 0 0;
	padding-left: 1.5rem;
	border-left: 3px solid var(--jm-orange);
	font-family: var(--jm-head);
	font-weight: 500;
}

.jm-proj-body .wp-block-quote cite {
	display: block;
	margin-top: 0.75rem;
	color: var(--jm-grey);
	font-size: 0.9rem;
	font-style: normal;
}

@media (max-width: 900px) {
	.jm-links-3,
	.jm-proj-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Aparición suave */
.jm-js .jm-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 1s var(--jm-ease), transform 1s var(--jm-ease);
}

.jm-js .jm-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Fichas */
.jansa-datos {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.6rem 2rem;
	margin: 0;
}

@media (max-width: 900px) {
	.jm-hero {
		min-height: 88vh;
		align-items: flex-end;
	}

	.jm-hero-small {
		min-height: 78vh;
	}

	.wp-block-group.jm-pin {
		height: 380vh;
	}

	.jm-pin > .jm-hero {
		min-height: 0;
		padding-bottom: 2.5rem;
	}

	.jm-morph-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.5rem;
	}

	.jm-lines {
		order: -1;
		height: 34vh;
	}

	.jm-morph h2 {
		margin-bottom: 0.75rem;
		font-size: 1.6rem;
	}

	.jm-morph .jm-eyebrow {
		display: none;
	}

	.jm-morph .jm-row:not(.jm-row-plain) {
		padding: 0.4rem 0;
	}

	.jm-slider-nav {
		grid-column: 1;
		margin-top: 0;
	}

	.jm-pin > .jm-hero::after {
		background: none;
	}

	.jm-pin .jm-seq {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.jm-canvas {
		opacity: 0.55;
		-webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 72%);
		mask-image: linear-gradient(180deg, #000 40%, transparent 72%);
	}

	.jm-proof-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jm-card {
		position: static;
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.jm-work .wp-block-post-template,
	.jm-split,
	.jm-world-grid,
	.jm-tiles,
	.jm-reviews-grid,
	.jm-cols,
	.jm-cols-2,
	.jm-cols-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.jm-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.3rem;
	}

	.jm-p-label {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.jm-track {
		animation: none;
	}

	.jm-js .jm-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.jm-js .jm-arc {
		stroke-dashoffset: 0;
	}

	.jm-js .jm-map .jm-pin {
		opacity: 1;
	}

	.wp-block-group.jm-pin {
		height: auto;
	}
}

/* Tablas de datos, notas y mapa */
.jm-note {
	margin-top: 1rem;
	color: var(--jm-grey);
	font-size: 0.9rem;
}

.jm-map-embed {
	line-height: 0;
}

.jm-map-embed iframe {
	display: block;
	width: 100%;
	height: 460px;
	border: 0;
}

@media (max-width: 781px) {
	.jm-map-embed iframe {
		height: 340px;
	}
}

/* Etiqueta de render */
.jm-render {
	position: relative;
}

.jm-render::before {
	content: "Render";
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	z-index: 3;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: rgba(20, 34, 49, 0.82);
	color: #fff;
	font-family: var(--jm-head);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
}
/* Gráficos tecnológicos */
.jm-tech {
	overflow: hidden;
	background-color: #14212e;
	background-image:
		radial-gradient(60% 70% at 85% 0%, rgba(255, 77, 6, 0.2), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: auto, 44px 44px, 44px 44px;
}

.jm-tech .jm-note {
	color: rgba(255, 255, 255, 0.55);
}

.jm-glass {
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(8px);
	transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--jm-ease);
}

.jm-glass:hover {
	border-color: rgba(255, 77, 6, 0.65);
	box-shadow: 0 0 34px -8px rgba(255, 77, 6, 0.5);
	transform: translateY(-3px);
}

/* Cronograma */
.jm-gantt {
	display: grid;
	gap: 0.8rem;
	color: #fff;
}

.jm-gantt-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 0.6rem;
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--jm-head);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.jm-gantt-legend span::before {
	content: "";
	display: inline-block;
	width: 0.7rem;
	height: 0.7rem;
	margin-right: 0.5rem;
	border-radius: 3px;
	background: var(--c);
}

.jm-gantt-row {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 7.5rem;
	gap: 1.5rem;
	align-items: center;
	padding: 1.1rem 1.4rem;
}

.jm-gantt-name strong,
.jm-gantt-name small {
	display: block;
}

.jm-gantt-name strong {
	font-family: var(--jm-head);
	font-size: 1rem;
	line-height: 1.25;
}

.jm-gantt-name small,
.jm-gantt-total small {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.78rem;
}

.jm-gantt-bar {
	position: relative;
	display: flex;
	gap: 3px;
	overflow: hidden;
	height: 2.4rem;
	padding: 3px;
	border-radius: 10px;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 8.33%),
		rgba(0, 0, 0, 0.3);
}

.jm-gantt-bar::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 22%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
	transform: translateX(-120%);
	pointer-events: none;
}

.jm-js .jm-gantt.is-in .jm-gantt-bar::after {
	animation: jm-scan 3.6s ease-in-out calc(1.6s + var(--r) * 0.2s) infinite;
}

.jm-gantt-bar span {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: var(--w);
	border-radius: 7px;
	background: var(--c);
	color: #fff;
	font-family: var(--jm-head);
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
	transition: width 1.1s var(--jm-ease) calc(var(--r) * 0.12s + var(--s) * 0.28s);
}

.jm-js .jm-gantt:not(.is-in) .jm-gantt-bar span {
	width: 0;
}

.jm-gantt-bar .m {
	box-shadow: 0 0 22px rgba(255, 77, 6, 0.75);
}

.jm-gantt-total {
	text-align: right;
}

.jm-gantt-total b {
	display: block;
	color: var(--jm-orange);
	font-family: var(--jm-head);
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1.05;
	text-shadow: 0 0 22px rgba(255, 77, 6, 0.55);
}

@keyframes jm-scan {
	0% { transform: translateX(-120%); }
	55%, 100% { transform: translateX(520%); }
}

/* Mapa de calor */
.jm-heat {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
	gap: 0.6rem;
	color: #fff;
}

.jm-heat-h {
	padding: 0.4rem 0.2rem;
	color: rgba(255, 255, 255, 0.65);
	font-family: var(--jm-head);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-align: center;
}

.jm-heat-h:first-child {
	text-align: left;
}

.jm-heat-n {
	display: flex;
	align-items: center;
	padding: 0.5rem 0.2rem;
	font-family: var(--jm-head);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.25;
}

.jm-heat-c {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 4.6rem;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 14px;
	background: rgba(255, 77, 6, var(--h));
	box-shadow: 0 0 calc(var(--h) * 42px) rgba(255, 77, 6, calc(var(--h) * 0.8));
	font-family: var(--jm-head);
	font-size: 1.25rem;
	font-weight: 800;
	transition: opacity 0.6s ease calc(var(--i) * 0.07s), transform 0.7s var(--jm-ease) calc(var(--i) * 0.07s);
}

.jm-heat-c.is-none {
	background: rgba(255, 255, 255, 0.03);
	box-shadow: none;
	color: rgba(255, 255, 255, 0.3);
}

.jm-js .jm-heat:not(.is-in) .jm-heat-c {
	opacity: 0;
	transform: scale(0.8);
}

/* Niveles */
.jm-levels {
	display: grid;
	gap: 0.8rem;
	color: #fff;
}

.jm-level {
	position: relative;
	display: grid;
	grid-template-columns: 8rem minmax(0, 1fr) 11rem;
	gap: 1.5rem;
	align-items: center;
	padding: 1.3rem 1.6rem;
}

.jm-level b {
	font-family: var(--jm-head);
	font-size: 1.7rem;
	font-weight: 800;
}

.jm-level p {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.95rem;
}

.jm-level.is-on {
	border-color: var(--jm-orange);
	background: rgba(255, 77, 6, 0.14);
	box-shadow: 0 0 44px -6px rgba(255, 77, 6, 0.6);
}

.jm-level.is-on b {
	color: var(--jm-orange);
}

.jm-level.is-on p {
	color: #fff;
}

.jm-level-tag {
	display: inline-block;
	margin-left: 0.6rem;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: var(--jm-orange);
	color: #fff;
	font-family: var(--jm-head);
	font-size: 0.68rem;
	font-weight: 700;
	vertical-align: middle;
	white-space: nowrap;
}

.jm-meter {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 5px;
}

.jm-meter i {
	height: 0.65rem;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.12);
	transition: background 0.4s ease calc(var(--r) * 0.14s + var(--s) * 0.12s), box-shadow 0.4s ease calc(var(--r) * 0.14s + var(--s) * 0.12s);
}

.jm-levels.is-in .jm-meter i.on,
html:not(.jm-js) .jm-meter i.on {
	background: var(--jm-orange);
	box-shadow: 0 0 12px rgba(255, 77, 6, 0.8);
}

/* Escala de corrosividad */
.jm-scale {
	display: grid;
	gap: 0.8rem;
	color: #fff;
}

.jm-scale-head,
.jm-scale-row {
	display: grid;
	grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
	gap: 1.8rem;
	align-items: center;
}

.jm-scale-row {
	padding: 1.2rem 1.5rem;
}

.jm-scale-head {
	padding: 0 1.5rem;
}

.jm-scale-axis,
.jm-scale-track {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
}

.jm-scale-axis span {
	color: rgba(255, 255, 255, 0.65);
	font-family: var(--jm-head);
	font-size: 0.8rem;
	font-weight: 700;
	text-align: center;
}

.jm-scale-row strong {
	display: block;
	font-family: var(--jm-head);
	font-size: 1.15rem;
}

.jm-scale-row small {
	display: block;
	margin-top: 0.2rem;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.82rem;
	line-height: 1.4;
}

.jm-scale-track {
	height: 2.4rem;
	padding: 3px;
	border-radius: 10px;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16.66%),
		rgba(0, 0, 0, 0.3);
}

.jm-scale-track span {
	grid-column: var(--a) / var(--b);
	border-radius: 7px;
	background: linear-gradient(90deg, #a83203, var(--jm-orange));
	box-shadow: 0 0 22px rgba(255, 77, 6, 0.65);
	transform-origin: left;
	transition: transform 1.1s var(--jm-ease) calc(var(--r) * 0.16s);
}

.jm-js .jm-scale:not(.is-in) .jm-scale-track span {
	transform: scaleX(0);
}

/* Tarjetas de sistemas */
.jm-sys {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	color: #fff;
}

.jm-sys-card {
	padding: 1.8rem;
	transition: opacity 0.7s ease calc(var(--r) * 0.14s), transform 0.7s var(--jm-ease) calc(var(--r) * 0.14s), border-color 0.35s ease, box-shadow 0.35s ease;
}

.jm-js .jm-sys:not(.is-in) .jm-sys-card {
	opacity: 0;
	transform: translateY(24px);
}

.jm-sys-card.is-on {
	border-color: var(--jm-orange);
	background: rgba(255, 77, 6, 0.14);
	box-shadow: 0 0 44px -6px rgba(255, 77, 6, 0.6);
}

.jm-sys-card em {
	color: var(--jm-orange);
	font-family: var(--jm-head);
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.jm-sys-card h3 {
	margin: 0.5rem 0 1.2rem;
	color: #fff;
	font-size: 1.3rem;
}

.jm-sys-card dl {
	margin: 0;
}

.jm-sys-card dt {
	margin-top: 0.9rem;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.jm-sys-card dd {
	margin: 0.15rem 0 0;
	font-size: 0.95rem;
}

@media (max-width: 781px) {
	.jm-gantt-row {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0.8rem;
		padding: 1rem;
	}

	.jm-gantt-bar {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.jm-gantt-bar span {
		font-size: 0.68rem;
	}

	.jm-heat {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.4rem;
	}

	.jm-heat-h:first-child {
		display: none;
	}

	.jm-heat-h {
		font-size: 0.66rem;
	}

	.jm-heat-n {
		grid-column: 1 / -1;
		margin-top: 0.6rem;
	}

	.jm-heat-c {
		min-height: 3.4rem;
		font-size: 0.95rem;
	}

	.jm-level {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.6rem;
		padding: 1.1rem;
	}

	.jm-scale-head {
		grid-template-columns: minmax(0, 1fr);
		padding: 0 1rem;
	}

	.jm-scale-head > span:first-child {
		display: none;
	}

	.jm-scale-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.8rem;
		padding: 1rem;
	}

	.jm-sys {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jm-gantt-bar span,
	.jm-heat-c,
	.jm-meter i,
	.jm-scale-track span,
	.jm-sys-card {
		transition: none;
	}

	.jm-js .jm-gantt.is-in .jm-gantt-bar::after {
		animation: none;
	}
}
.jm-section.jm-tech > .jm-note {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
}
/* Soluciones contra el fuego y niveles R */
.jm-sys.jm-sys-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jm-sys-2 .jm-sys-card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
}

.jm-sys-2 .jm-sys-card a {
	display: inline-block;
	margin-top: 1.1rem;
	color: #fff;
	font-family: var(--jm-head);
	font-size: 0.9rem;
	font-weight: 700;
}

.jm-section > .jm-rs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
	color: #fff;
}

.jm-r {
	padding: 1.4rem 1.5rem;
}

.jm-r b {
	display: block;
	color: var(--jm-orange);
	font-family: var(--jm-head);
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.1;
	text-shadow: 0 0 22px rgba(255, 77, 6, 0.5);
}

.jm-r small {
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.85rem;
}

.jm-r i {
	display: block;
	width: var(--p);
	height: 6px;
	margin-top: 0.9rem;
	border-radius: 3px;
	background: linear-gradient(90deg, #a83203, var(--jm-orange));
	box-shadow: 0 0 14px rgba(255, 77, 6, 0.7);
	transform-origin: left;
	transition: transform 1s var(--jm-ease) calc(var(--r) * 0.14s);
}

.jm-js .jm-rs:not(.is-in) .jm-r i {
	transform: scaleX(0);
}

@media (max-width: 781px) {
	.jm-sys.jm-sys-2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.jm-section > .jm-rs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* Selector de idioma */
.jm-lang {
	position: relative;
	font-family: var(--jm-head);
	font-size: 0.85rem;
	font-weight: 600;
}

.jm-lang summary {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	list-style: none;
}

.jm-lang summary::-webkit-details-marker {
	display: none;
}

.jm-lang svg {
	width: 1.15rem;
	height: 1.15rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	transition: stroke 0.25s ease, transform 0.6s var(--jm-ease);
}

.jm-lang summary:hover svg,
.jm-lang[open] svg {
	stroke: var(--jm-orange);
	transform: rotate(40deg);
}

.jm-lang ul {
	position: absolute;
	top: calc(100% + 0.8rem);
	right: 0;
	z-index: 50;
	min-width: 9rem;
	margin: 0;
	padding: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	background: #14212e;
	box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6);
	list-style: none;
}

.jm-lang li > * {
	display: block;
	padding: 0.45rem 0.7rem;
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
}

.jm-lang a[aria-current] {
	background: rgba(255, 77, 6, 0.18);
	color: #fff;
}

/* Pie de página */
.jm-footer {
	position: relative;
	overflow: hidden;
	padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4rem) 2rem;
	background-color: #14212e;
	background-image:
		radial-gradient(50% 60% at 12% 0%, rgba(255, 77, 6, 0.17), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: auto, 44px 44px, 44px 44px;
	color: #fff;
}

body:not(.home):not(.page-template-page-jm):not(.single-post):not(.single-proyecto) .jm-footer {
	margin-top: var(--wp--preset--spacing--70);
}

.jm-footer-in {
	max-width: 1320px;
	margin-inline: auto;
}

.jm-footer-top {
	display: grid;
	grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 6rem);
}

.jm-footer-logo img {
	display: block;
	width: 150px;
	height: auto;
	filter: brightness(0) invert(1);
}

.jm-footer-brand p {
	margin: 1.3rem 0 1.6rem;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.95rem;
	line-height: 1.6;
}

.jm-social {
	display: flex;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--jm-ease);
}

.jm-social a:hover,
.jm-social a:focus-visible {
	border-color: var(--jm-orange);
	background: var(--jm-orange);
	box-shadow: 0 0 26px -2px rgba(255, 77, 6, 0.7);
	transform: translateY(-3px);
}

.jm-social svg {
	width: 1.1rem;
	height: 1.1rem;
	fill: currentColor;
}

.jm-footer-nav {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
}

.jm-footer-nav h3 {
	margin: 0 0 1rem;
	color: var(--jm-orange);
	font-family: var(--jm-head);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.jm-footer-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-footer-nav li {
	margin-bottom: 0.55rem;
}

.jm-footer a {
	color: inherit;
	text-decoration: none;
}

.jm-footer-nav a {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9rem;
	transition: color 0.2s ease;
}

.jm-footer-nav a:hover,
.jm-footer-legal a:hover,
.jm-footer-contact a:hover {
	color: var(--jm-orange);
}

.jm-footer-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 2.5rem;
	margin-top: 3rem;
	padding-top: 1.6rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-family: var(--jm-head);
	font-size: 0.9rem;
	font-weight: 600;
}

.jm-footer-contact span {
	color: rgba(255, 255, 255, 0.6);
	font-weight: 500;
}

.jm-footer-mark {
	margin: 2.2rem 0 1.4rem;
	color: transparent;
	font-family: var(--jm-head);
	font-size: clamp(2.6rem, 12.4vw, 12rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	white-space: nowrap;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
	transition: -webkit-text-stroke-color 0.5s ease;
}

.jm-footer-mark:hover {
	-webkit-text-stroke-color: var(--jm-orange);
}

.jm-footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.6rem 2rem;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.82rem;
}

.jm-footer-legal p {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1.4rem;
	margin: 0;
}

/* Páginas legales */
.jm-legal-hero {
	padding-block: clamp(4rem, 8vw, 6.5rem);
}

.jm-section > .jm-legal {
	max-width: 50rem;
}

.jm-legal h2 {
	margin: 2.8rem 0 0.8rem;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.jm-legal h2:first-child {
	margin-top: 0;
}

.jm-legal p,
.jm-legal li {
	line-height: 1.7;
}

.jm-legal a {
	color: inherit;
	text-decoration-color: var(--jm-orange);
	text-underline-offset: 3px;
}

.jm-legal .jm-note {
	margin-top: 3rem;
}

.jm-ck {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
	margin-top: 1.4rem;
}

.jm-ck-i {
	padding: 1.2rem 1.3rem;
	border-top: 2px solid var(--jm-orange);
	border-radius: 14px;
	background: var(--jm-paper);
}

.jm-ck-i h3 {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	overflow-wrap: anywhere;
}

.jm-ck-i p {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.55;
}

/* Mapa bajo clic */
.jm-map-load {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
	padding: 2.5rem 1.25rem;
	background-color: #14212e;
	background-image:
		radial-gradient(40% 70% at 50% 50%, rgba(255, 77, 6, 0.22), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: auto, 44px 44px, 44px 44px;
	color: #fff;
	line-height: 1.5;
	text-align: center;
}

.jm-map-load strong,
.jm-map-load span,
.jm-map-load small {
	display: block;
}

.jm-map-load strong {
	font-family: var(--jm-head);
	font-size: 1.5rem;
}

.jm-map-load span {
	margin-bottom: 1.3rem;
	color: rgba(255, 255, 255, 0.72);
}

.jm-map-load button {
	border: 0;
	cursor: pointer;
}

.jm-map-load small {
	max-width: 30rem;
	margin: 1.1rem auto 0;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.8rem;
}

.jm-map-load a {
	color: inherit;
}

@media (max-width: 1000px) {
	.jm-footer-top {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 781px) {
	.jm-lang summary span {
		display: none;
	}

	.jm-footer-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jm-ck {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 480px) {
	.wp-site-blocks > header .wp-block-group {
		gap: 0.8rem !important;
	}

	.wp-site-blocks > header .wp-block-button__link {
		padding: 0.6rem 0.9rem;
		font-size: 0.78rem;
	}
}
/* Mapa interactivo */
.jm-section > .jm-wm {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
	gap: 1.2rem;
	align-items: stretch;
	color: #fff;
}

.jm-wm-map {
	padding: 1rem;
}

.jm-wm-map svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.jm-wm .jm-arc {
	stroke-width: 0.7;
	opacity: 0.4;
}

.jm-wp {
	fill: var(--jm-orange);
	transition: r 0.2s ease;
	pointer-events: none;
}

.jm-wh {
	fill: transparent;
	cursor: pointer;
	outline: none;
}

.jm-wr {
	fill: none;
	stroke: var(--jm-orange);
	stroke-width: 1.5;
	opacity: 0;
	pointer-events: none;
	transform-box: fill-box;
	transform-origin: center;
}

.jm-wr.is-on {
	opacity: 1;
	animation: jm-ping 1.8s ease-out infinite;
}

@keyframes jm-ping {
	0% { opacity: 1; transform: scale(0.6); }
	100% { opacity: 0; transform: scale(2.4); }
}

.jm-wm-panel {
	display: flex;
	flex-direction: column;
	padding: 1.7rem;
}

.jm-wm-panel em {
	color: var(--jm-orange);
	font-family: var(--jm-head);
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.jm-wm-panel h3 {
	margin: 0.4rem 0 1.2rem;
	color: #fff;
	font-size: 1.6rem;
	line-height: 1.15;
}

.jm-wm-num {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.8rem;
	margin-bottom: 1.2rem;
}

.jm-wm-num b {
	display: block;
	color: var(--jm-orange);
	font-family: var(--jm-head);
	font-size: 1.8rem;
	font-weight: 800;
	line-height: 1.1;
	text-shadow: 0 0 22px rgba(255, 77, 6, 0.5);
}

.jm-wm-num small,
.jm-wm-panel small {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.8rem;
}

.jm-wm-panel p {
	margin: 0 0 0.9rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.92rem;
	line-height: 1.5;
}

.jm-section > .jm-wm-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.4rem;
	margin-top: 2.5rem;
	color: #fff;
}

.jm-wm-list h3 {
	margin: 0 0 0.7rem;
	color: var(--jm-orange);
	font-family: var(--jm-head);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.jm-wm-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-wm-list button {
	display: flex;
	justify-content: space-between;
	gap: 0.6rem;
	width: 100%;
	padding: 0.42rem 0.55rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: rgba(255, 255, 255, 0.78);
	cursor: pointer;
	font: inherit;
	font-size: 0.86rem;
	text-align: left;
	transition: background 0.2s ease, color 0.2s ease;
}

.jm-wm-list button span {
	color: rgba(255, 255, 255, 0.45);
	white-space: nowrap;
}

.jm-wm-list button:hover,
.jm-wm-list button:focus-visible,
.jm-wm-list button.is-on {
	background: rgba(255, 77, 6, 0.2);
	color: #fff;
}

/* Abanico de certificados */
.jm-fan {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 20rem;
}

.jm-fan img {
	position: absolute;
	width: 9.6rem;
	height: auto;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 18px 34px -10px rgba(20, 22, 24, 0.5), 0 2px 6px rgba(20, 22, 24, 0.22);
	transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--a));
	transform-origin: 50% 110%;
	transition: transform 0.5s var(--jm-ease), box-shadow 0.3s ease;
}

.jm-fan:hover img {
	transform: translateX(calc(var(--x) * 1.28)) translateY(var(--y)) rotate(calc(var(--a) * 1.2));
}

.jm-fan img:hover {
	z-index: 5;
	box-shadow: 0 24px 44px -10px rgba(255, 77, 6, 0.45), 0 2px 6px rgba(20, 22, 24, 0.22);
}

@media (max-width: 1000px) {
	.jm-section > .jm-wm {
		grid-template-columns: minmax(0, 1fr);
	}

	.jm-section > .jm-wm-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.jm-wm-map {
		padding: 0.5rem;
	}

	.jm-fan {
		min-height: 15rem;
	}

	.jm-fan img {
		width: 6.6rem;
	}
}
@media (max-width: 781px) {
	.jm-fan img,
	.jm-fan:hover img {
		transform: translateX(calc(var(--x) * 0.55)) translateY(calc(var(--y) * 0.7)) rotate(calc(var(--a) * 0.8));
	}
}
.jm-footer-legal p:first-child {
	display: block;
}

.jm-section.jm-tech > .jm-lead {
	width: 100%;
	max-width: 1320px;
	margin-bottom: 1.6rem;
}
.jm-social svg.jm-ig {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.jm-social svg.jm-ig .d {
	fill: currentColor;
	stroke: none;
}

.jm-col .wp-block-buttons {
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}
/* Artículos del blog */
.single-post .wp-site-blocks > *,
.single-post main > *,
.single-post .wp-block-post-content > * {
	margin-block-start: 0;
}

.single-post .jm-article > * {
	margin-block-start: 1.1rem;
}

.jm-article-head h1 {
	max-width: 56rem;
	color: #fff;
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	line-height: 1.1;
}

.jm-article-head a {
	color: inherit;
	text-decoration: none;
}

.jm-article-head .wp-block-post-date {
	margin-top: 1rem;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
}

.jm-section > .jm-article-img {
	max-width: 58rem;
	margin-bottom: 2.6rem;
}

.jm-article-img img {
	display: block;
	width: 100%;
	max-height: 520px;
	border-radius: 20px;
	object-fit: cover;
	box-shadow: var(--jm-shadow);
}

.jm-section > .jm-article {
	max-width: 46rem;
	font-size: 1.05rem;
	line-height: 1.75;
}

.jm-article h2 {
	margin-top: 2.8rem;
	font-size: clamp(1.45rem, 2.6vw, 1.9rem);
	line-height: 1.2;
}

.jm-article h3 {
	margin-top: 2rem;
	font-size: 1.2rem;
}

.jm-article h4 {
	margin-top: 1.5rem;
	font-size: 1.02rem;
}

.jm-article a {
	color: inherit;
	text-decoration-color: var(--jm-orange);
	text-underline-offset: 3px;
}

.jm-article img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

.jm-article figure {
	margin-inline: 0;
}

.jm-article blockquote {
	margin-inline: 0;
	padding: 0.2rem 0 0.2rem 1.3rem;
	border-left: 3px solid var(--jm-orange);
	font-weight: 500;
}

.jm-tw {
	overflow-x: auto;
}

.jm-article table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
	line-height: 1.45;
}

.jm-article th {
	padding: 0.6rem 0.8rem;
	color: var(--jm-orange);
	font-family: var(--jm-head);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: left;
	text-transform: uppercase;
}

.jm-article td {
	padding: 0.7rem 0.8rem;
	background: var(--jm-paper);
	border-bottom: 3px solid #fff;
}

.jm-article td:first-child {
	border-radius: 10px 0 0 10px;
	font-weight: 600;
}

.jm-article td:last-child {
	border-radius: 0 10px 10px 0;
}
@media (max-width: 480px) {
	.wp-site-blocks > header .wp-block-button__link {
		padding: 0.55rem 0.8rem;
		font-size: 0.74rem;
		white-space: nowrap;
	}

	.wp-site-blocks > header .wp-block-image img {
		width: 112px !important;
	}
}
@media (min-width: 481px) and (max-width: 1180px) {
	.wp-site-blocks > header .wp-block-image img {
		width: 140px !important;
	}
}
/* El menu movil necesita una cabecera sin desenfoque: si no, queda encerrado en ella.
   El menú de hamburguesa se usa hasta 1179 px (tableta), porque el de escritorio no cabe. */
@media (max-width: 1179px) {
	.wp-site-blocks > header {
		background: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		padding: 1.25rem 1.5rem 2.5rem;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: flex-start;
		padding-top: 2.5rem;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		align-items: flex-start;
		text-align: left;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		gap: 1.1rem;
		width: 100%;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content {
		color: var(--jm-orange);
		font-family: var(--jm-head);
		font-weight: 700;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		gap: 0.5rem;
		padding: 0.6rem 0 0 0.8rem;
	}
}
@media (max-width: 1179px) {
	.wp-block-navigation__responsive-container.is-menu-open {
		--navigation-layout-justification-setting: flex-start;
		--navigation-layout-justify: flex-start;
		--navigation-layout-align: flex-start;
	}
}

/* Sección «¿Qué vas a construir?» de la home (20/11/2026).
   La cabecera mide 95 px: la sección fija empieza justo debajo, y en pantallas bajas
   el contenido se compacta y arranca arriba con margen en lugar de cortarse. */
@media (min-width: 901px) {
	body .jm-morph > .jm-section {
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 95px);
		height: calc(100vh - 95px - var(--wp-admin--admin-bar--height, 0px));
		align-items: safe center;
		padding-block: clamp(1.5rem, 4vh, 3rem);
	}
}

@media (min-width: 901px) and (max-height: 900px) {
	body .jm-morph h2 {
		margin-bottom: 1rem;
		font-size: clamp(1.6rem, 2.8vw, 2.5rem);
	}

	body .jm-morph .jm-eyebrow {
		margin-bottom: 0.4rem;
	}

	body .jm-morph .jm-row:not(.jm-row-plain) {
		padding: 0.35rem 0;
	}

	body .jm-morph .jm-row h3 {
		font-size: clamp(1rem, 1.3vw, 1.2rem);
	}

	body .jm-lines {
		height: min(60vh, 560px);
	}
}

/* Móvil: ninguna palabra larga ni animación puede ensanchar la página (auditoría del 20/11/2026).
   «clip» no crea zona de scroll, así que las secciones fijas (sticky) siguen funcionando. */
html,
body {
	overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
li,
dd,
td,
th,
figcaption,
blockquote {
	overflow-wrap: break-word;
}

@media (max-width: 600px) {
	h1,
	h2,
	h3 {
		hyphens: auto;
	}
}
/* Tableta (600-1179 px): hamburguesa en lugar del menú de escritorio, que no cabe. WordPress solo la usa por debajo de 600 px. */
@media (min-width: 600px) and (max-width: 1179px) {
	.wp-site-blocks > header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.wp-site-blocks > header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.wp-site-blocks > header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex;
	}
}

/* El botón de la cabecera nunca se parte en varias líneas. */
.wp-site-blocks > header .wp-block-button__link {
	white-space: nowrap;
	overflow-wrap: normal;
}
/* Menú abierto (móvil y tableta) alineado a la izquierda: la regla de WordPress para «justificado a la derecha» anulaba la nuestra. */
@media (max-width: 1179px) {
	.wp-site-blocks > header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
	.wp-site-blocks > header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
	.wp-site-blocks > header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		align-items: flex-start !important;
		text-align: left;
	}
}
/* ===== Mejoras de experiencia de usuario (revisión del 23/11/2026) ===== */

/* Cifras de las tarjetas: una palabra larga («Atornillada») no se parte a mitad sin guion. */
.jm-figure {
	overflow-wrap: normal;
	hyphens: auto;
}

@media (max-width: 600px) {
	.jm-proof-item .jm-figure {
		font-size: clamp(1.35rem, 6.4vw, 1.7rem);
	}
}

/* Barras de plazos: etiquetas legibles en el móvil (antes 10,9 px). */
@media (max-width: 781px) {
	.jm-gantt-bar span {
		font-size: 0.75rem;
	}
}

/* Formularios: casilla de privacidad más grande y botón de planos con el diseño de la web. */
.jm-form-check label {
	position: relative;
	display: block;
	padding-left: 2rem;
}

.jm-form input[type="checkbox"] {
	position: absolute;
	top: 0.1rem;
	left: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	accent-color: var(--jm-orange);
}

.jm-form input[type="file"] {
	padding: 0.6rem;
	border-style: dashed;
	background: var(--jm-paper);
	cursor: pointer;
}

.jm-form input[type="file"]::file-selector-button {
	margin-right: 0.85rem;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--jm-orange);
	border-radius: 999px;
	background: #fff;
	color: var(--jm-ink);
	font-family: var(--jm-head);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.25s, color 0.25s;
}

.jm-form input[type="file"]:hover::file-selector-button {
	background: var(--jm-orange);
	color: #fff;
}

/* Páginas con formulario (presupuesto y contacto): en el móvil la cabecera es baja
   para que el formulario se vea nada más entrar. */
@media (max-width: 900px) {
	.jm-hero-small:has(+ .jm-section .jm-form-grid) {
		min-height: 0;
		padding-top: 2.75rem;
		padding-bottom: 2.25rem;
	}

	.jm-hero-small:has(+ .jm-section .jm-form-grid) h1 {
		margin-bottom: 0.75rem;
	}

	.jm-hero-small:has(+ .jm-section .jm-form-grid) + .jm-section {
		padding-top: 2.5rem;
	}
}

/* Formulario dentro de una página de solución (naves): ancla con margen para la cabecera fija. */
.jm-form-section {
	scroll-margin-top: 95px;
}

/* Menú de escritorio: columnas algo más anchas para que las opciones largas quepan en una línea. */
@media (min-width: 1180px) {
	header .wp-block-navigation .wp-block-navigation__submenu-container:has(> li:nth-child(8)) {
		grid-template-columns: repeat(2, minmax(15.5rem, max-content));
	}
}

/* «Llamar» en el menú: solo en el menú de hamburguesa (móvil y tableta). */
@media (min-width: 1180px) {
	header .wp-block-navigation .jm-nav-tel {
		display: none !important;
	}
}

@media (max-width: 1179px) {
	header .wp-block-navigation__responsive-container.is-menu-open .jm-nav-tel {
		order: -1;
		margin-bottom: 0.75rem;
		padding-bottom: 1rem;
		border-bottom: 1px solid var(--jm-line);
	}

	header .wp-block-navigation__responsive-container.is-menu-open .jm-nav-tel .wp-block-navigation-item__content {
		color: var(--jm-orange);
		font-weight: 700;
	}

	header .wp-block-navigation .jm-nav-tel small {
		display: block;
		color: var(--jm-grey);
		font-size: 0.85rem;
		font-weight: 400;
	}
}

/* «¿Qué vas a construir?» en el móvil: lista normal (una pantalla) en lugar de la animación fija de 6 pantallas.
   En el ordenador se mantiene la animación, con menos recorrido. */
@media (min-width: 901px) {
	body .jm-morph {
		height: 340vh;
	}
}

@media (max-width: 781px) {
	body .jm-morph {
		height: auto;
	}

	body .jm-morph > .jm-section {
		position: relative;
		top: auto;
		display: block;
		height: auto;
		padding-block: 4rem;
	}

	body .jm-morph .jm-lines {
		display: none;
	}

	body .jm-morph .jm-eyebrow {
		display: block;
	}

	body .jm-morph .jm-row:not(.jm-row-plain) {
		padding: 0.85rem 0;
	}

	body .jm-morph .jm-row h3 a,
	body .jm-morph .jm-row.is-active h3 a {
		color: #fff;
	}

	body .jm-morph .jm-row p {
		max-height: none;
		margin-top: 0.2rem;
		opacity: 1;
	}
}

/* Texto solo para lectores de pantalla (selector de idioma). */
.jm-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Desplegables largos del menú: centrados bajo su opción, para que no se salgan por la izquierda
   con pantallas o zooms grandes (corrección del 23/11/2026). */
@media (min-width: 1180px) {
	header .wp-block-navigation .wp-block-navigation-submenu > .wp-block-navigation__submenu-container:has(> li:nth-child(8)) {
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
	}
}

/* Texto tecnico recuperado (24/11/2026): dos columnas en ordenador, una en movil. */
.jm-detalle-texto {
	columns: 2;
	column-gap: clamp(2rem, 5vw, 5rem);
}

.jm-detalle-item {
	margin: 0 0 1.75rem !important;
	break-inside: avoid;
}

.jm-detalle-item h3 {
	margin: 0 0 0.6rem;
	font-size: 1.2rem;
}

.jm-detalle-item p {
	margin: 0 0 0.8rem;
}

@media (max-width: 781px) {
	.jm-detalle-texto {
		columns: 1;
	}
}
