.machen-shell {
	width: min(calc(100% - (2 * var(--machen-gutter))), var(--machen-container-max));
	max-width: var(--machen-container-max);
	margin-inline: auto;
}

.machen-topbar {
	position: relative;
	z-index: 101;
	background: var(--machen-color-white);
	border-bottom: 1px solid #ececec;
	font-family: var(--machen-font-topbar);
	font-size: 0.78rem;
	font-weight: 500;
}

.machen-topbar__inner {
	display: flex;
	min-height: 40px;
	align-items: center;
	justify-content: space-between;
	gap: var(--machen-space-4);
}

.machen-topbar__contact,
.machen-topbar__social {
	display: flex;
	align-items: center;
	gap: var(--machen-space-3);
}

.machen-topbar__contact strong {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.machen-topbar__separator {
	color: #b7b7b7;
}

.machen-topbar a {
	display: inline-flex;
	min-height: 32px;
	align-items: center;
	gap: 0.48rem;
	color: var(--machen-color-dark);
	text-decoration: none;
	transition: color 180ms ease;
}

.machen-topbar svg {
	width: 1.05rem;
	height: 1.05rem;
	flex: 0 0 auto;
	fill: currentColor;
}

.machen-topbar__social a {
	min-width: 32px;
	justify-content: center;
}

.machen-topbar a:hover,
.machen-topbar a:focus-visible,
.machen-wordmark:hover,
.machen-wordmark:focus-visible,
.machen-nav a:not(.machen-nav__cta):hover,
.machen-nav a:not(.machen-nav__cta):focus-visible,
.machen-topics__toggle:hover,
.machen-topics__toggle:focus-visible {
	color: var(--machen-color-red);
}

.machen-topbar a:focus-visible,
.machen-wordmark:focus-visible,
.machen-nav a:focus-visible,
.machen-topics__toggle:focus-visible,
.machen-menu-toggle:focus-visible,
.machen-footer a:focus-visible {
	outline: 2px solid var(--machen-color-red);
	outline-offset: 3px;
}

.machen-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--machen-color-white);
	border-bottom: 1px solid #ececec;
}

.admin-bar .machen-header {
	top: 32px;
}

.machen-header__inner {
	display: flex;
	min-height: 72px;
	align-items: center;
	justify-content: space-between;
	gap: var(--machen-space-5);
}

.machen-wordmark {
	flex: 0 0 auto;
	color: var(--machen-color-dark);
	font-size: clamp(1.45rem, 2.1vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1;
	text-decoration: none;
	transition: color 180ms ease;
}

.machen-nav > ul,
.machen-topics__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.machen-nav > ul {
	display: flex;
	align-items: center;
	gap: clamp(1.1rem, 2vw, 2rem);
}

.machen-nav a,
.machen-topics__toggle {
	color: var(--machen-color-dark);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	transition: color 180ms ease, background-color 180ms ease;
}

.machen-topics {
	position: relative;
}

.machen-topics__toggle {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 0.4rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.machen-topics__toggle:hover,
.machen-topics__toggle:focus-visible {
	background: transparent;
}

.machen-topics__toggle svg {
	width: 0.72rem;
	height: 0.48rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	transition: transform 180ms ease;
}

.machen-topics.is-open .machen-topics__toggle svg {
	transform: rotate(180deg);
}

.machen-topics__menu {
	position: absolute;
	top: calc(100% + 0.65rem);
	left: 50%;
	width: min(22rem, calc(100vw - (2 * var(--machen-gutter))));
	padding: 0.55rem;
	transform: translateX(-50%) translateY(-0.4rem);
	visibility: hidden;
	opacity: 0;
	background: var(--machen-color-white);
	border: 1px solid #e4e4e4;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgb(21 21 21 / 10%);
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.machen-topics__menu::before {
	position: absolute;
	top: -0.7rem;
	left: 0;
	width: 100%;
	height: 0.7rem;
	content: "";
}

.machen-topics:hover .machen-topics__menu,
.machen-topics:focus-within .machen-topics__menu,
.machen-topics.is-open .machen-topics__menu {
	transform: translateX(-50%) translateY(0);
	visibility: visible;
	opacity: 1;
}

.machen-topics__menu a {
	display: block;
	padding: 0.78rem 0.9rem;
	border-radius: 8px;
}

.machen-topics__menu a:hover,
.machen-topics__menu a:focus-visible {
	background: #f5f5f5;
}

.machen-nav .machen-nav__cta {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.15rem;
	border-radius: var(--machen-radius-button);
	background: var(--machen-color-action);
	color: var(--machen-color-white);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.machen-nav .machen-nav__cta:hover,
.machen-nav .machen-nav__cta:focus-visible {
	background: var(--machen-color-action-hover);
	color: var(--machen-color-white);
}

.machen-menu-toggle {
	display: none;
	min-height: 44px;
	align-items: center;
	gap: 0.55rem;
	padding: 0.6rem 0.8rem;
	border: 1px solid #dedede;
	border-radius: var(--machen-radius-button);
	background: var(--machen-color-white);
	color: var(--machen-color-dark);
	font-weight: 800;
	cursor: pointer;
}

.machen-menu-toggle svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.machen-footer {
	color: var(--machen-color-white);
}

.machen-footer__main {
	padding-block: clamp(4.5rem, 8vw, 8rem);
	background: var(--machen-color-dark);
}

.machen-footer__grid {
	display: block;
}

.machen-footer__claim {
	max-width: none;
	margin: 0;
	font-size: clamp(2.5rem, 4.1vw, 3.42rem);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 1.02;
}

.machen-footer__nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--machen-space-5);
	width: min(100%, 1024px);
	margin: clamp(4rem, 7vw, 5rem) auto 0;
}

.machen-footer__nav div {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.72rem;
}

.machen-footer__nav h2 {
	margin: 0 0 0.45rem;
	color: var(--machen-color-white);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.machen-footer a {
	color: var(--machen-color-white);
	text-decoration: none;
	transition: color 180ms ease;
}

.machen-footer a:hover,
.machen-footer a:focus-visible {
	color: #e6e6e6;
}

.machen-footer__meta {
	background: var(--machen-color-white);
	color: var(--machen-color-dark);
}

.machen-footer__meta-inner {
	display: flex;
	min-height: 86px;
	align-items: center;
	justify-content: space-between;
	gap: var(--machen-space-4);
	font-size: 0.84rem;
}

.machen-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
}

.machen-footer__meta a {
	color: var(--machen-color-dark);
}

.machen-footer__meta a:hover,
.machen-footer__meta a:focus-visible {
	color: var(--machen-color-red);
}

.machen-footer__meta p {
	margin: 0;
	font-weight: 700;
	text-align: right;
}

@media (max-width: 899px) {
	.machen-menu-toggle {
		display: inline-flex;
	}

	.machen-header__inner {
		position: relative;
		min-height: 64px;
	}

	.machen-nav {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		max-height: calc(100vh - 110px);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		background: var(--machen-color-white);
		border: 1px solid #e4e4e4;
		border-radius: 0 0 12px 12px;
		transform: translateY(-0.3rem);
		transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
	}

	.machen-nav.is-open {
		transform: translateY(0);
		visibility: visible;
		opacity: 1;
	}

	.machen-nav > ul {
		display: block;
		padding: 0.65rem;
	}

	.machen-nav > ul > li > a,
	.machen-topics__toggle {
		display: flex;
		width: 100%;
		min-height: 48px;
		align-items: center;
		padding: 0.7rem 0.8rem;
	}

	.machen-topics__toggle {
		justify-content: space-between;
	}

	.machen-topics__menu {
		position: static;
		width: auto;
		max-height: 0;
		padding: 0 0 0 0.75rem;
		transform: none;
		overflow: hidden;
		visibility: visible;
		opacity: 1;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		transition: max-height 180ms ease;
	}

	.machen-topics:hover .machen-topics__menu,
	.machen-topics:focus-within .machen-topics__menu {
		transform: none;
	}

	.machen-topics:not(.is-open) .machen-topics__menu {
		max-height: 0;
	}

	.machen-topics.is-open .machen-topics__menu {
		max-height: 13rem;
	}

	.machen-nav .machen-nav__cta {
		margin-top: 0.4rem;
	}

	.machen-footer__meta-inner {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		padding-block: 1.4rem;
	}

	.machen-footer__meta p {
		text-align: left;
	}
}

@media (max-width: 782px) {
	.admin-bar .machen-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .machen-header {
		top: 0;
	}

	.machen-topbar__inner {
		min-height: 38px;
	}

	.machen-topbar__contact {
		gap: 0.35rem;
	}

	.machen-topbar__contact a {
		min-width: 32px;
		justify-content: center;
	}

	.machen-topbar__contact span {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.machen-topbar__contact,
	.machen-topbar__social {
		gap: 0.2rem;
	}

	.machen-footer__nav {
		grid-template-columns: 1fr;
		gap: var(--machen-space-6);
	}

	.machen-footer__legal {
		font-size: 0.78rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.machen-topbar a,
	.machen-wordmark,
	.machen-nav a,
	.machen-topics__toggle,
	.machen-topics__menu,
	.machen-nav,
	.machen-footer a {
		transition-duration: 0.01ms;
	}
}

/* Footer design reference: Variante 2. */
.machen-footer--v2 .machen-footer__main {
	padding-block: clamp(4.5rem, 7vw, 6.5rem) clamp(2.2rem, 4vw, 3.5rem);
}

.machen-footer-v2__primary {
	display: grid;
	grid-template-columns: minmax(17rem, 1.45fr) repeat(4, minmax(9.5rem, 1fr));
	gap: clamp(1.4rem, 2.4vw, 2.8rem);
	align-items: start;
}

.machen-footer-v2__claim {
	margin: 0;
	color: var(--machen-color-white);
	font-size: clamp(2.2rem, 3vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1.08;
}

.machen-footer-v2__claim span {
	color: var(--machen-color-red);
}

.machen-footer-v2__contact {
	min-width: 0;
}

.machen-footer-v2__label {
	display: flex;
	min-height: 1.65rem;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.65rem;
	color: var(--machen-color-red);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.035em;
}

.machen-footer-v2__label svg {
	width: 1.55rem;
	height: 1.55rem;
	flex: 0 0 auto;
	fill: var(--machen-color-white);
}

.machen-footer-v2__value {
	display: block;
	color: var(--machen-color-white);
	font-size: clamp(1rem, 1.3vw, 1.28rem);
	font-weight: 500;
	line-height: 1.25;
	white-space: nowrap;
}

.machen-footer-v2__contact--whatsapp .machen-footer-v2__value {
	cursor: default;
}

.machen-footer-v2__detail {
	display: block;
	width: 2.8rem;
	margin-top: 0.8rem;
	border-top: 1px solid rgb(255 255 255 / 55%);
}

.machen-footer-v2__secondary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--machen-space-5);
	margin-top: clamp(2rem, 4vw, 3.25rem);
	padding-top: clamp(1.5rem, 3vw, 2.25rem);
	border-top: 1px solid rgb(255 255 255 / 18%);
}

.machen-footer-v2__location {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.96rem;
}

.machen-footer-v2__location svg {
	width: 1.5rem;
	height: 1.5rem;
	margin-right: 0.25rem;
	fill: var(--machen-color-white);
}

.machen-footer-v2__social {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.machen-footer-v2__social a {
	display: inline-flex;
	width: 2.45rem;
	height: 2.45rem;
	align-items: center;
	justify-content: center;
	color: var(--machen-color-white);
}

.machen-footer-v2__social svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}

@media (max-width: 1120px) {
	.machen-footer-v2__primary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.machen-footer-v2__claim {
		grid-column: 1 / -1;
		margin-bottom: 1.25rem;
	}
}

@media (max-width: 700px) {
	.machen-footer-v2__primary {
		grid-template-columns: 1fr;
		gap: 2.25rem;
	}

	.machen-footer-v2__claim {
		grid-column: auto;
		margin-bottom: 0.5rem;
	}

	.machen-footer-v2__value {
		white-space: normal;
	}

	.machen-footer-v2__secondary {
		align-items: flex-start;
		flex-direction: column;
	}

	.machen-footer-v2__location {
		align-items: flex-start;
		flex-direction: column;
	}

	.machen-footer-v2__location span[aria-hidden="true"] {
		display: none;
	}
}

/* Detail corrections: preserve the approved header/footer composition. */
@media (min-width: 900px) {
	.machen-wordmark {
		font-size: clamp(1.62rem, 2.2vw, 2rem);
		font-weight: 800;
	}
}

@media (min-width: 1121px) {
	.machen-footer-v2__primary {
		grid-template-columns: minmax(20rem, 1.5fr) repeat(4, minmax(0, 1fr));
		column-gap: clamp(0.9rem, 1.35vw, 1.45rem);
	}

	.machen-footer-v2__claim {
		font-size: clamp(2.15rem, 2.55vw, 2.65rem);
		white-space: nowrap;
	}
}

.machen-footer-v2__secondary {
	margin-top: clamp(2.5rem, 4.5vw, 3.75rem);
	padding-block: clamp(1.8rem, 3vw, 2.4rem) 0.25rem;
}

.machen-footer-v2__location {
	gap: 0.65rem;
	font-size: clamp(1rem, 1.15vw, 1.12rem);
	font-weight: 600;
	line-height: 1.35;
}

.machen-footer-v2__location svg {
	width: 1.7rem;
	height: 1.7rem;
	margin-right: 0.35rem;
}

.machen-footer-v2__location a {
	font-weight: 800;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.28em;
}

.machen-footer-v2__social {
	flex: 0 0 auto;
	align-self: center;
}


/* Polishing: crisp inline SVG system and grouped footer contacts. */
.machen-icon {
	display: block;
	flex: 0 0 auto;
	overflow: visible;
	shape-rendering: geometricPrecision;
}

.machen-icon--utility {
	fill: none !important;
	stroke: currentColor;
	stroke-width: 2.25;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.machen-icon--brand {
	fill: currentColor;
	stroke: none;
}

.machen-footer-v2__detail { display: none; }

@media (min-width: 1121px) {
	.machen-footer-v2__primary {
		grid-template-columns: minmax(20rem, 0.9fr) minmax(0, 2.1fr);
		column-gap: clamp(2rem, 3.5vw, 4.5rem);
	}

	.machen-footer-v2__contacts {
		display: grid;
		grid-template-columns: repeat(4, max-content);
		justify-content: center;
		gap: clamp(1.5rem, 2vw, 2.4rem);
		min-width: 0;
	}
}

@media (min-width: 701px) and (max-width: 1120px) {
	.machen-footer-v2__contacts {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem;
		grid-column: 1 / -1;
	}
}

@media (max-width: 700px) {
	.machen-footer-v2__contacts {
		display: grid;
		grid-template-columns: 1fr;
		gap: 2.25rem;
	}
}

/* Final footer interaction and alignment corrections. */
.machen-footer-v2__label .machen-icon {
	color: #FFFFFF;
}

.machen-footer-v2__pending-link {
	width: fit-content;
	cursor: default;
}

.machen-footer-v2__location .machen-text-link,
.machen-footer-v2__location .machen-text-link:hover,
.machen-footer-v2__location .machen-text-link:focus-visible {
	color: #FFFFFF;
}

.machen-footer-v2__value.machen-contact-link,
.machen-footer-v2__value.machen-contact-link:hover,
.machen-footer-v2__value.machen-contact-link:focus-visible {
	color: #FFFFFF;
}

.machen-footer-v2__social .machen-icon-link {
	color: #FFFFFF;
	text-decoration: none;
}

.machen-footer-v2__social .machen-icon-link:hover,
.machen-footer-v2__social .machen-icon-link:focus-visible {
	color: var(--machen-color-red);
	text-decoration: none;
}

@media (min-width: 1121px) {
	.machen-footer-v2__primary {
		align-items: center;
	}
}
