/* ==========================================================================
   Portada — estética «keynote»
   Paleta: negros, blancos y grises oscuros. Amarillo solo como apunte.
   Tipografías del tema: Rubik (títulos) y Karla (texto).
   ========================================================================== */

.home {
	--x-black: #000;
	--x-ink: #0a0a0b;
	--x-graphite: #111113;
	--x-carbon: #1a1a1c;
	--x-slate: #2a2a2d;
	--x-steel: #48484c;
	--x-mute: #86868b;
	--x-silver: #c7c7cc;
	--x-paper: #f5f5f7;
	--x-yellow: #ffd60a;
	--x-ease: cubic-bezier(.22, 1, .36, 1);
	--x-max: 1280px;
	--x-pad: clamp(20px, 4vw, 48px);
	background: var(--x-black);
	color: var(--x-silver);
}
.home ::selection { background: var(--x-yellow); color: var(--x-black); }
.home .mf-content > * { margin-top: 0; margin-bottom: 0; }
.home .mf-page { margin: 0; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.mfx-line { padding-bottom: .04em; }

/* ---------- utilidades ---------- */
.mfx-eyebrow {
	display: flex; align-items: center; gap: 10px;
	margin: 0;
	font-family: var(--f-heading, Rubik), sans-serif;
	font-size: 13px; font-weight: 400; line-height: 1.2;
	letter-spacing: .18em; text-transform: uppercase;
	color: var(--x-mute);
}
.mfx-head--center .mfx-eyebrow, .mfx-statement .mfx-eyebrow { justify-content: center; }
.mfx-h2 {
	margin: 18px 0 0;
	font-size: clamp(40px, 6vw, 92px) !important;
	line-height: 1 !important;
	letter-spacing: -.05em;
	color: var(--x-paper) !important;
}
.mfx-lead { margin: 22px 0 0; max-width: 34em; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--x-mute); }
.mfx-head { width: 100%; max-width: var(--x-max); margin: 0 auto; padding: 0 var(--x-pad); }
.mfx-head--center { text-align: center; }
.mfx-head--center .mfx-lead { margin-inline: auto; }

/* Iconos SVG de trazo (máscara → heredan el color) */
.mfx-i::before {
	content: '';
	flex: none;
	display: inline-block;
	width: var(--isz, 1em); height: var(--isz, 1em);
	background: currentColor;
	-webkit-mask: var(--ico) center / contain no-repeat;
	mask: var(--ico) center / contain no-repeat;
}
.mfx-i--desk { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='11' rx='1.6'/%3E%3Cpath d='M1.5 19.5h21M9 15.5l-.5 4M15 15.5l.5 4'/%3E%3C/svg%3E"); --ico-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='11' rx='1.6'/%3E%3Cpath d='M1.5 19.5h21M9 15.5l-.5 4M15 15.5l.5 4'/%3E%3C/svg%3E"); }
.mfx-i--clap { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10h17v8.5a1.5 1.5 0 0 1-1.5 1.5H5a1.5 1.5 0 0 1-1.5-1.5z'/%3E%3Cpath d='M3.5 10 3 7.2a1.5 1.5 0 0 1 1.2-1.7l13.6-2.4a1.5 1.5 0 0 1 1.7 1.2l.5 2.7zM8.2 5l2.6 3.6M13.4 4.1 16 7.7'/%3E%3C/svg%3E"); --ico-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10h17v8.5a1.5 1.5 0 0 1-1.5 1.5H5a1.5 1.5 0 0 1-1.5-1.5z'/%3E%3Cpath d='M3.5 10 3 7.2a1.5 1.5 0 0 1 1.2-1.7l13.6-2.4a1.5 1.5 0 0 1 1.7 1.2l.5 2.7zM8.2 5l2.6 3.6M13.4 4.1 16 7.7'/%3E%3C/svg%3E"); }
.mfx-i--camera { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5A1.5 1.5 0 0 1 4.5 7h3l1.6-2.5h5.8L16.5 7h3A1.5 1.5 0 0 1 21 8.5v10a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3Ccircle cx='12' cy='13.2' r='3.8'/%3E%3C/svg%3E"); --ico-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5A1.5 1.5 0 0 1 4.5 7h3l1.6-2.5h5.8L16.5 7h3A1.5 1.5 0 0 1 21 8.5v10a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3Ccircle cx='12' cy='13.2' r='3.8'/%3E%3C/svg%3E"); }
.mfx-i--mic { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2.5' width='6' height='11.5' rx='3'/%3E%3Cpath d='M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5v4M8.5 21.5h7'/%3E%3C/svg%3E"); --ico-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2.5' width='6' height='11.5' rx='3'/%3E%3Cpath d='M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5v4M8.5 21.5h7'/%3E%3C/svg%3E"); }
.mfx-i--pen { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4.5L15.5 5a2.1 2.1 0 0 1 3 3L8 18.5z'/%3E%3Cpath d='M13.5 7l3 3M4 20h16'/%3E%3C/svg%3E"); --ico-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4.5L15.5 5a2.1 2.1 0 0 1 3 3L8 18.5z'/%3E%3Cpath d='M13.5 7l3 3M4 20h16'/%3E%3C/svg%3E"); }
.mfx-i--wave { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h1.5M7 8.5v7M10.5 5v14M14 8v8M17.5 10v4M21 12h0'/%3E%3C/svg%3E"); --ico-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h1.5M7 8.5v7M10.5 5v14M14 8v8M17.5 10v4M21 12h0'/%3E%3C/svg%3E"); }
.mfx-i--video { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='13.5' height='12' rx='2'/%3E%3Cpath d='m16 10.2 5.5-3.2v10l-5.5-3.2'/%3E%3C/svg%3E"); --ico-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='13.5' height='12' rx='2'/%3E%3Cpath d='m16 10.2 5.5-3.2v10l-5.5-3.2'/%3E%3C/svg%3E"); }
.mfx-i--bulb { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17.5h6M10 21h4M12 2.8a6.2 6.2 0 0 0-3.9 11c.6.5.9 1.2.9 2v1.7h6v-1.7c0-.8.3-1.5.9-2A6.2 6.2 0 0 0 12 2.8z'/%3E%3C/svg%3E"); --ico-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17.5h6M10 21h4M12 2.8a6.2 6.2 0 0 0-3.9 11c.6.5.9 1.2.9 2v1.7h6v-1.7c0-.8.3-1.5.9-2A6.2 6.2 0 0 0 12 2.8z'/%3E%3C/svg%3E"); }
.mfx-i--sound { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 9.5h3.5l5-4v13l-5-4H3.5z'/%3E%3Cpath d='M15.5 9a4.2 4.2 0 0 1 0 6M18.5 6.2a8.2 8.2 0 0 1 0 11.6'/%3E%3C/svg%3E"); --ico-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 9.5h3.5l5-4v13l-5-4H3.5z'/%3E%3Cpath d='M15.5 9a4.2 4.2 0 0 1 0 6M18.5 6.2a8.2 8.2 0 0 1 0 11.6'/%3E%3C/svg%3E"); }
.mfx-i--film { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3.5' width='18' height='17' rx='2'/%3E%3Cpath d='M7.5 3.5v17M16.5 3.5v17M3 8.5h4.5M3 15.5h4.5M16.5 8.5H21M16.5 15.5H21M7.5 12h9'/%3E%3C/svg%3E"); --ico-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3.5' width='18' height='17' rx='2'/%3E%3Cpath d='M7.5 3.5v17M16.5 3.5v17M3 8.5h4.5M3 15.5h4.5M16.5 8.5H21M16.5 15.5H21M7.5 12h9'/%3E%3C/svg%3E"); }
.mfx-i--cal { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); --ico-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.mfx-i--spark { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M5.6 18.4l2.8-2.8M15.6 8.4l2.8-2.8'/%3E%3C/svg%3E"); --ico-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c7cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M5.6 18.4l2.8-2.8M15.6 8.4l2.8-2.8'/%3E%3C/svg%3E"); }
.home { --ico-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }

/* ---------- botones ---------- */
.mfx-btn .wp-block-button__link {
	gap: 12px;
	padding: 16px 26px;
	border: 0;
	border-radius: 99px;
	box-shadow: inset 0 0 0 1px var(--x-steel);
	background: transparent;
	color: var(--x-paper);
	font-family: var(--f-heading, Rubik), sans-serif;
	font-size: 15px; font-weight: 400;
	letter-spacing: 0; text-transform: none;
	transition: background .4s var(--x-ease), color .4s var(--x-ease), box-shadow .4s var(--x-ease), transform .4s var(--x-ease);
}
.mfx-btn .wp-block-button__link .mf-icon { width: 13px; height: 13px; transition: transform .4s var(--x-ease); }
.mfx-btn .wp-block-button__link:hover { background: var(--x-paper); color: var(--x-ink); box-shadow: inset 0 0 0 1px var(--x-paper); }
.mfx-btn .wp-block-button__link:hover .mf-icon { transform: translateX(4px); }
.mfx-btn--solid .wp-block-button__link { background: var(--x-paper); color: var(--x-ink); box-shadow: none; }
.mfx-btn--solid .wp-block-button__link:hover { background: #fff; transform: scale(1.03); }
.mfx-btn--dark .wp-block-button__link { background: var(--x-ink); color: var(--x-paper); box-shadow: none; }
.mfx-btn--dark .wp-block-button__link:hover { background: var(--x-slate); color: var(--x-paper); box-shadow: none; }
.mfx-btn--accent .wp-block-button__link { background: var(--x-yellow); color: var(--x-black); box-shadow: none; }
.mfx-btn--accent .wp-block-button__link:hover { background: #ffe14d; color: var(--x-black); box-shadow: none; transform: scale(1.03); }
.mfx-btn--icon-first .wp-block-button__link { flex-direction: row-reverse; }
.mfx-btn--icon-first .wp-block-button__link:hover .mf-icon { transform: none; }

/* ---------- cabecera sobre negro ---------- */
.home .site-header__inner { min-height: 96px; }
.home .site-header .site-nav__menu a { font-family: var(--f-heading, Rubik), sans-serif; letter-spacing: .02em; }
.home .site-header.is-stuck .site-header__bar {
	background: rgba(10, 10, 11, .72);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.home .site-header.is-stuck .site-nav__menu .current-menu-item > a,
.home .site-header.is-stuck .site-nav__menu a:hover { color: var(--x-yellow); }

/* ==========================================================================
   1 · Hero: la foto crece desde un marco hasta llenar la pantalla
   ========================================================================== */
.mfx-hero.wp-block-cover {
	min-height: 100vh; min-height: 100svh;
	padding: 0;
	align-items: flex-start;
	background: var(--x-black);
	overflow: hidden;
}
.mfx-hero .wp-block-cover__inner-container {
	max-width: var(--x-max);
	padding: clamp(150px, 22vh, 210px) var(--x-pad) 0;
	text-align: center;
}
.mfx-hero .wp-block-cover__inner-container > * { margin-left: auto !important; margin-right: auto !important; max-width: 1100px; }
.mfx-hero .mfx-eyebrow { justify-content: center; padding: 0; color: var(--x-silver); }
.mfx-hero .mfx-hero__title {
	margin-top: 22px !important;
	font-size: clamp(44px, 6.6vw, 104px);
	line-height: .98 !important;
	letter-spacing: -.055em;
	color: var(--x-paper);
}
.mfx-hero .mfx-hero__text { max-width: 36em !important; padding: 0 !important; margin-top: 26px !important; font-size: clamp(16px, 1.4vw, 20px) !important; line-height: 1.55 !important; color: var(--x-silver); }
.mfx-hero .mfx-hero__btns { justify-content: center; gap: 12px; margin-top: 34px !important; }
.mfx-hero .wp-block-cover__image-background,
.mfx-hero .wp-block-cover__background { will-change: clip-path; }
.mfx-hero.wp-block-cover .wp-block-cover__background.has-background-dim { opacity: .55; }

/* estado inicial solo si el JS de la portada está activo */
.mfx-on .mfx-hero .wp-block-cover__image-background,
.mfx-on .mfx-hero .wp-block-cover__background { clip-path: inset(var(--hero-top, 68%) 4% 4% 4% round 28px); }
.mfx-on .mfx-hero.wp-block-cover .wp-block-cover__background.has-background-dim { opacity: 0; }

/* ==========================================================================
   2 · Manifiesto: las palabras se encienden con el scroll
   ========================================================================== */
.mfx-statement {
	padding: clamp(120px, 20vh, 220px) var(--x-pad);
	background: var(--x-black);
	text-align: center;
}
.mfx-statement__text {
	max-width: 15em;
	margin: 26px auto 0;
	font-family: var(--f-heading, Rubik), sans-serif;
	font-weight: 700;
	font-size: clamp(38px, 6.2vw, 96px);
	line-height: 1.04;
	letter-spacing: -.045em;
	color: var(--x-paper);
}
.mfx-statement__text .w { color: var(--x-slate); }
.mfx-statement__text .w.on { color: var(--x-paper); }
.mfx-i--spark::before { color: var(--x-yellow); }

/* ==========================================================================
   3 · El estudio: carril horizontal
   ========================================================================== */
.mfx-studio {
	position: relative;
	display: flex; flex-direction: column; justify-content: center;
	min-height: 100vh; min-height: 100svh;
	padding: clamp(80px, 11vh, 120px) 0 clamp(50px, 7vh, 80px);
	background: var(--x-ink);
	overflow: hidden;
}
.mfx-studio .mfx-h2 { max-width: 14em; font-size: clamp(36px, 4.4vw, 68px) !important; }
.mfx-progress { position: absolute; left: 50%; bottom: clamp(24px, 4vh, 40px); width: min(240px, 40vw); height: 2px; translate: -50% 0; border-radius: 2px; background: var(--x-slate); overflow: hidden; }
.mfx-progress i { position: absolute; inset: 0; background: var(--x-paper); transform-origin: 0 50%; transform: scaleX(0); }
.mfx-track {
	display: flex;
	gap: clamp(16px, 2vw, 28px);
	margin-top: clamp(40px, 6vh, 70px);
	padding: 0 var(--x-pad);
	padding-left: max(var(--x-pad), calc((100vw - var(--x-max)) / 2 + var(--x-pad)));
	width: max-content;
}
.mfx-panel {
	position: relative;
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	width: min(78vw, 1040px);
	height: clamp(360px, 56vh, 560px);
	border-radius: 28px;
	overflow: hidden;
	background: var(--x-carbon);
}
.mfx-panel > * { margin: 0 !important; }
.mfx-panel__img { height: 100%; overflow: hidden; }
.mfx-panel__img img { width: 100%; height: 100% !important; object-fit: cover; transform: scale(1.12); }
.mfx-panel__body {
	display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
	padding: clamp(28px, 3.4vw, 52px);
	color: var(--x-mute);
	font-size: 17px; line-height: 1.6;
}
.mfx-panel__body > * { margin: 0 !important; }
.mfx-panel__num { margin-bottom: auto !important; font-family: var(--f-heading, Rubik), sans-serif; font-size: 13px; letter-spacing: .14em; color: var(--x-steel); }
.mfx-panel__num::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 10px; border-radius: 50%; background: var(--x-yellow); vertical-align: 2px; }
.mfx-panel__title {
	display: flex; flex-direction: column; gap: 22px;
	font-size: clamp(30px, 3vw, 46px) !important;
	line-height: 1 !important;
	letter-spacing: -.04em;
	color: var(--x-paper) !important;
	--isz: 34px;
}
.mfx-panel__title::before { color: var(--x-silver); }
.mfx-panel .wp-block-buttons { margin-top: 10px !important; }

/* ==========================================================================
   4 · Talleres (sección clara)
   ========================================================================== */
.mfx-talleres.mf-home-talleres {
	display: block;
	padding: clamp(110px, 16vh, 180px) var(--x-pad);
	background: var(--x-paper);
	color: #3a3a3c;
}
.mfx-talleres.mf-home-talleres > * { max-width: var(--x-max) !important; margin-left: auto !important; margin-right: auto !important; }
.mfx-talleres__intro.mf-home-talleres__intro {
	display: grid !important;
	grid-template-columns: 1fr auto;
	grid-template-areas: 'eye eye' 'title btn' 'lead btn';
	align-items: end;
	column-gap: 40px;
	width: 100% !important;
	max-width: var(--x-max) !important;
	padding: 0 !important;
	text-align: left;
}
.mfx-talleres__intro.mf-home-talleres__intro > * { margin: 0; }
.mfx-talleres__intro .mfx-h2 { margin-top: 14px !important; }
.mfx-talleres__intro .mfx-eyebrow { grid-area: eye; color: #6e6e73; }
.mfx-talleres__intro .mfx-h2 { grid-area: title; color: var(--x-ink) !important; }
.mfx-talleres__intro .mfx-lead { grid-area: lead; color: #6e6e73; }
.mfx-talleres__intro .wp-block-buttons { grid-area: btn; align-self: end; }
.mfx-talleres .mf-talleres-grid--home {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: clamp(50px, 7vh, 80px) !important;
	padding: 0 !important;
}
.mfx-talleres .mf-taller-card--home {
	display: flex; flex-direction: column;
	padding: 0 0 28px;
	border-radius: 28px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	transition: transform .6s var(--x-ease), box-shadow .6s var(--x-ease);
}
.mfx-talleres .mf-taller-card--home:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .18); }
.mfx-talleres .mf-taller-card__img img { aspect-ratio: 4 / 3; transition: transform 1.2s var(--x-ease); }
.mfx-talleres .mf-taller-card--home:hover .mf-taller-card__img img { transform: scale(1.05); }
.mfx-talleres .mf-taller-card--home > :not(.mf-taller-card__img) { margin-inline: 28px; }
.mfx-talleres .mf-taller-card__date {
	align-self: flex-start;
	display: inline-flex; align-items: center; gap: 8px;
	margin-top: 22px !important;
	padding: 6px 12px;
	border-radius: 99px;
	background: var(--x-paper);
	font-size: 13px; letter-spacing: .04em; color: #3a3a3c;
}
.mfx-talleres .mf-taller-card__date::before {
	content: ''; width: 14px; height: 14px; background: currentColor;
	-webkit-mask: var(--ico-cal) center / contain no-repeat; mask: var(--ico-cal) center / contain no-repeat;
}
.mfx-talleres .mf-taller-card__title { margin-top: 14px !important; font-size: clamp(22px, 1.9vw, 28px) !important; line-height: 1.1 !important; letter-spacing: -.03em; color: var(--x-ink) !important; }
.mfx-talleres .mf-link-arrow { margin-top: auto !important; padding-top: 22px; font-family: var(--f-heading, Rubik), sans-serif; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--x-ink); }
.mfx-talleres .mf-link-arrow .mf-icon { transition: transform .4s var(--x-ease); }
.mfx-talleres .mf-taller-card--home:hover .mf-link-arrow .mf-icon { transform: translateX(4px); }

/* ==========================================================================
   5 · Servicios: rejilla negra con iconos y foco que sigue al ratón
   ========================================================================== */
.mfx-services { padding: clamp(110px, 16vh, 180px) var(--x-pad); background: var(--x-black); }
.mfx-bento {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	max-width: var(--x-max);
	margin: clamp(50px, 7vh, 80px) auto 0 !important;
}
.mfx-card {
	--mx: 50%; --my: 0%;
	position: relative;
	display: flex; flex-direction: column; gap: 14px;
	min-height: 360px;
	padding: 34px 32px 30px;
	border-radius: 28px;
	background: var(--x-graphite);
	color: var(--x-mute);
	font-size: 16px; line-height: 1.6;
	overflow: hidden;
	isolation: isolate;
	transition: background .5s var(--x-ease), transform .6s var(--x-ease);
}
.mfx-card::after {
	content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 60%);
	opacity: 0; transition: opacity .5s;
}
.mfx-card:hover::after { opacity: 1; }
.mfx-card:hover { background: var(--x-carbon); }
.mfx-card > * { margin: 0 !important; }
.mfx-card__num { position: absolute; top: 34px; right: 32px; font-family: var(--f-heading, Rubik), sans-serif; font-size: 13px; letter-spacing: .14em; color: var(--x-steel); }
.mfx-card__title {
	display: flex; flex-direction: column; gap: 28px;
	font-size: clamp(24px, 2.1vw, 32px) !important;
	line-height: 1.05 !important;
	letter-spacing: -.035em;
	color: var(--x-paper) !important;
	--isz: 26px;
}
/* icono dentro de una pastilla gris oscura */
.mfx-card__title::before { display: none; }
.mfx-card__title { position: relative; padding-top: 82px; }
.mfx-card__title::after {
	content: '';
	position: absolute; top: 0; left: 0;
	width: 54px; height: 54px;
	border-radius: 16px;
	background: var(--x-carbon) var(--ico-tile) center / 26px no-repeat;
	box-shadow: inset 0 0 0 1px var(--x-slate);
	transition: background-color .5s var(--x-ease);
}
.mfx-card:hover .mfx-card__title::after { background-color: var(--x-slate); }
.mfx-card .wp-block-buttons { margin-top: auto !important; padding-top: 10px; }
.mfx-circle .wp-block-button__link {
	width: 52px !important; height: 52px !important; padding: 0 !important;
	border: 0 !important; box-shadow: inset 0 0 0 1px var(--x-steel) !important;
	color: var(--x-paper) !important; background: transparent !important;
	transition: background .4s var(--x-ease), color .4s var(--x-ease), box-shadow .4s var(--x-ease);
}
.mfx-circle .wp-block-button__link .mf-icon { width: 14px; height: 14px; }
.mfx-card:hover .mfx-circle .wp-block-button__link { background: var(--x-yellow) !important; color: var(--x-black) !important; box-shadow: none !important; }
.mfx-services__more { justify-content: center; margin-top: 50px !important; }

/* ==========================================================================
   6 · Mosaico: el título ocupa la pantalla y se abre la galería
   ========================================================================== */
.mfx-mosaic.mf-home-gallery { padding: 0; background: var(--x-black); overflow: hidden; }
.mfx-mosaic__grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 12px;
	height: 100vh; height: 100svh;
	padding: 12px;
	transform-origin: 50% 50%;
}
.mfx-mosaic__grid > * { margin: 0 !important; }
.mfx-mosaic__title.wp-block-heading {
	grid-area: 2 / 2;
	display: grid; place-items: center;
	margin: 0;
	padding: 4%;
	border-radius: 18px;
	background: var(--x-ink);
	font-size: clamp(18px, 2.2vw, 36px) !important;
	line-height: 1.05 !important;
	letter-spacing: -.04em;
	color: var(--x-paper) !important;
}
.wp-block-gallery.mfx-mosaic__gallery { display: contents !important; }
.wp-block-gallery.mfx-mosaic__gallery .wp-block-image { width: auto !important; height: 100%; margin: 0 !important; border-radius: 18px; overflow: hidden; }
.wp-block-gallery.mfx-mosaic__gallery .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; }
.wp-block-gallery.mfx-mosaic__gallery .lightbox-trigger { display: none; }

/* ==========================================================================
   7 · Cierre
   ========================================================================== */
.mfx-cta {
	position: relative;
	padding: clamp(110px, 16vh, 170px) var(--x-pad) clamp(110px, 16vh, 170px);
	background: var(--x-ink);
	overflow: hidden;
	text-align: center;
}
.mfx-marquee {
	display: flex; width: max-content;
	margin: 0 0 clamp(50px, 8vh, 90px) !important;
	font-family: var(--f-heading, Rubik), sans-serif;
	font-weight: 700;
	font-size: clamp(64px, 10vw, 160px);
	line-height: 1;
	letter-spacing: -.05em;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px var(--x-steel);
}
.mfx-marquee span { padding-right: .3em; }
.mfx-cta__title { margin-inline: auto; }
.mfx-cta .mfx-lead { margin-inline: auto; }
.mfx-cta__btns { gap: 12px; margin-top: 40px !important; }

/* footer, en sintonía */
.home .site-footer { background: var(--x-black); border-top: 1px solid rgba(255, 255, 255, .08); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.mfx-bento { grid-template-columns: 1fr 1fr; }
	.mfx-talleres .mf-talleres-grid--home { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.mfx-track { flex-direction: column; width: auto; padding: 0 var(--x-pad); }
	.mfx-panel { grid-template-columns: 1fr; width: 100%; height: auto; }
	.mfx-panel__img { aspect-ratio: 4 / 3; }
	.mfx-panel__img img { transform: none; }
	.mfx-panel__num { margin-bottom: 0 !important; }
	.mfx-talleres__intro.mf-home-talleres__intro { grid-template-columns: 1fr; grid-template-areas: 'eye' 'title' 'lead' 'btn'; row-gap: 0; }
	.mfx-talleres__intro .wp-block-buttons { margin-top: 26px; }
	.mfx-mosaic__grid { gap: 6px; padding: 6px; }
	.mfx-mosaic__title.wp-block-heading { border-radius: 10px; font-size: clamp(13px, 3.6vw, 20px) !important; }
	.wp-block-gallery.mfx-mosaic__gallery .wp-block-image { border-radius: 10px; }
}
@media (max-width: 640px) {
	.mfx-bento, .mfx-talleres .mf-talleres-grid--home { grid-template-columns: 1fr; }
	.mfx-card { min-height: 0; }
	.mfx-hero .wp-block-cover__inner-container { padding-top: 130px; }
	.mfx-hero .mfx-hero__btns .wp-block-button { width: auto; }
	.mfx-btn .wp-block-button__link { padding: 14px 22px; }
	.mfx-cta__btns .wp-block-button { width: 100%; }
	.mfx-cta__btns .wp-block-button__link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.mfx-statement__text .w { color: var(--x-paper); }
}
