/* ==========================================================================
   Madeco Home Page
   ========================================================================== */

.madeco-home {
	overflow-x: hidden;
}

/* Hero */
.madeco-home__hero {
	position: relative;
	min-height: 520px;
	overflow: hidden;
	background: #000000;
	color: var(--madeco-white);
}

.madeco-home__hero--has-image {
	background: transparent;
}

/* Media full-bleed */
.madeco-home__hero-media {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 0;
	width: 100vw;
	height: 100%;
	margin-left: -50vw;
	overflow: hidden;
	pointer-events: none;
}

.madeco-home__hero-bg-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--madeco-hero-bg-pos-x, 50%) var(--madeco-hero-bg-pos-y, 50%);
}

.madeco-home__hero-media-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(
			90deg,
			rgba(0, 0, 0, 0.88) 0%,
			rgba(0, 0, 0, 0.62) 10%,
			rgba(0, 0, 0, 0.32) 20%,
			rgba(0, 0, 0, 0.1) 30%,
			transparent 42%
		),
		linear-gradient(
			270deg,
			rgba(0, 0, 0, 0.88) 0%,
			rgba(0, 0, 0, 0.62) 10%,
			rgba(0, 0, 0, 0.32) 20%,
			rgba(0, 0, 0, 0.1) 30%,
			transparent 42%
		);
	pointer-events: none;
}

.madeco-home__hero-container {
	position: relative;
	z-index: 1;
	min-height: 520px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.madeco-home__hero-layout {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	min-height: inherit;
}

.madeco-home__hero-main {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	padding-block: 2.5rem;
	padding-left: 0;
	min-height: 280px;
}

.madeco-home__hero-content {
	position: relative;
	z-index: 2;
	max-width: 640px;
	padding-left: 1rem;
}

.madeco-home__hero-title {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 1.25rem;
	color: var(--madeco-white);
}

.madeco-home__hero-title-highlight {
	color: var(--madeco-orange);
}

.madeco-home__hero-subtitle {
	font-size: clamp(0.9375rem, 2vw, 1.125rem);
	font-weight: 400;
	line-height: 1.6;
	margin: 0 0 2rem;
	max-width: 520px;
	color: rgba(255, 255, 255, 0.92);
}

.madeco-home__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.madeco-home__hero-btn {
	padding: 0.875rem 2rem;
	font-size: 1rem;
	border-radius: 6px;
}

.madeco-home__hero-btn--ghost {
	background: transparent;
	border: 2px solid var(--madeco-white);
	color: var(--madeco-white);
}

.madeco-home__hero-btn--ghost:hover {
	background: var(--madeco-white);
	color: var(--madeco-blue);
	border-color: var(--madeco-white);
}

/* Panel lateral de beneficios */
.madeco-home__hero-features {
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	background: rgba(20, 20, 20, 0.72);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2rem;
	border: none;
}

@media (min-width: 768px) {
	.madeco-home__hero-main {
		padding-right: clamp(240px, 28vw, 340px);
		padding-block: 3rem;
		min-height: inherit;
	}

	.madeco-home__hero-features {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 3;
		width: clamp(240px, 28vw, 340px);
		min-height: 100%;
		padding: 2.5rem 2rem;
		margin-inline: 0;
		max-width: none;
	}
}

.madeco-home__hero-feature {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.madeco-home__hero-feature-icon {
	--madeco-hero-feature-icon-size: 48px;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--madeco-hero-feature-icon-size);
	min-width: var(--madeco-hero-feature-icon-size);
	height: var(--madeco-hero-feature-icon-size);
	color: var(--madeco-white);
	opacity: 0.95;
}

.madeco-home__hero-feature-icon svg,
.madeco-home__hero-feature-icon img {
	display: block;
	width: auto;
	height: var(--madeco-hero-feature-icon-size);
	max-width: var(--madeco-hero-feature-icon-size);
	object-fit: contain;
	object-position: center;
}

.madeco-home__hero-feature-icon svg {
	fill: currentColor;
}

.madeco-home__hero-feature-text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.madeco-home__hero-feature-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--madeco-white);
	line-height: 1.3;
}

.madeco-home__hero-feature-desc {
	font-size: 0.875rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.4;
}

/* Categories */
.madeco-home-build {
	padding: 1.5rem 0 1rem;
	background: var(--madeco-white);
}

.madeco-home-build__header {
	text-align: center;
}

.madeco-home-build__title {
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.madeco-home-build__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.madeco-home-build__card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	border: 1px solid var(--madeco-gray-200);
	border-radius: var(--madeco-radius);
	overflow: hidden;
	background: var(--madeco-white);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
	text-decoration: none;
	color: inherit;
	transition: box-shadow var(--madeco-transition), border-color var(--madeco-transition), transform var(--madeco-transition);
}

.madeco-home-build__card:hover {
	border-color: var(--madeco-blue);
	box-shadow: var(--madeco-shadow);
	transform: translateY(-2px);
}

.madeco-home-build__card-top {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: 1rem;
	flex: 1 1 auto;
	padding: 1.25rem 1.4rem;
	background: var(--madeco-gray-100);
	font-size: 1.0625rem;
}

.madeco-home-build__card-head {
	display: contents;
}

.madeco-home-build__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	border-radius: 0.375rem;
	background: var(--madeco-blue);
}

.madeco-home-build__icon img {
	width: 1.75rem;
	height: 1.75rem;
	object-fit: contain;
}

.madeco-home-build__icon svg {
	width: 1.75rem;
	height: 1.75rem;
	fill: var(--madeco-white);
}

.madeco-home-build__card-title {
	margin: 0;
	font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--madeco-blue);
}

.madeco-home-build__image {
	flex: 0 0 auto;
	aspect-ratio: 16 / 10;
	background: var(--madeco-gray-200);
	overflow: hidden;
}

.madeco-home-build__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.madeco-home-build__image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--madeco-gray-100), var(--madeco-gray-200));
}

@media (max-width: 767px) {
	.madeco-home-build__grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 0.75rem;
		padding-bottom: 0.25rem;
		scrollbar-width: none;
		scroll-padding-inline: 0;
	}

	.madeco-home-build__grid::-webkit-scrollbar {
		display: none;
	}

	.madeco-home-build__card {
		flex: 0 0 100%;
		scroll-snap-align: start;
		min-width: 0;
	}

	.madeco-home-build__card:hover {
		transform: none;
	}
}

.madeco-home__categories {
	padding: 1rem 0 1.5rem;
	background: var(--madeco-white);
}

.madeco-home__section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

.madeco-home__view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 1.5rem;
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--madeco-orange);
	text-decoration: none;
}

.madeco-home__view-all::after {
	content: "\2192";
	font-size: 1.25rem;
	line-height: 1;
	color: var(--madeco-orange);
}

.madeco-home__products-header .madeco-home__view-all {
	color: var(--madeco-blue);
}

.madeco-home__categories .madeco-home__view-all {
	color: var(--madeco-blue);
}

.madeco-home__categories-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.madeco-home__category-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--madeco-gray-200);
	border-radius: var(--madeco-radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--madeco-gray-900);
	transition: box-shadow var(--madeco-transition), border-color var(--madeco-transition);
}

.madeco-home__category-card:hover {
	box-shadow: var(--madeco-shadow);
	border-color: var(--madeco-blue);
}

.madeco-home__category-image {
	aspect-ratio: 4 / 3;
	background: #ffffff;
	overflow: hidden;
}

.madeco-home__category-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.madeco-home__category-rotator {
	position: relative;
	width: 100%;
	height: 100%;
}

.madeco-home__category-rotator-img {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.45s ease;
}

.madeco-home__category-rotator-img.is-active {
	opacity: 1;
}

.madeco-home__category-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--madeco-gray-100), var(--madeco-gray-200));
}

.madeco-home__category-body {
	padding: 1rem;
}

.madeco-home__category-name {
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0 0 0.25rem;
	color: var(--madeco-blue);
}

.madeco-home__category-count {
	font-size: 1rem;
	color: var(--madeco-gray-600);
	margin: 0;
}

/* Promos — 4 banners debajo de categorías */
.madeco-home__promos {
	background: var(--madeco-white);
}

.madeco-home__promos-grid {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 0.25rem 0.25rem 0.75rem;
	scrollbar-width: none;
}

.madeco-home__promos-grid::-webkit-scrollbar {
	display: none;
}

.madeco-home__promo {
	flex: 0 0 min(85%, 280px);
	scroll-snap-align: start;
	border-radius: var(--madeco-radius);
	overflow: hidden;
	position: relative;
	min-height: 168px;
	color: var(--madeco-white);
	background-color: var(--madeco-blue);
	box-shadow: 3px 6px 14px rgba(15, 23, 42, 0.16), 2px 3px 6px rgba(15, 23, 42, 0.08);
	text-decoration: none;
}

@media (max-width: 767px) {
	.madeco-home__promos-grid {
		flex-wrap: nowrap;
		padding-inline: 0;
		scroll-padding-inline: 0;
		gap: 0.75rem;
	}

	.madeco-home__promo {
		flex: 0 0 100%;
		scroll-snap-align: start;
	}

	.madeco-home__promo.madeco-home__promo--has-image {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.madeco-home__promo-image {
		width: 100%;
		height: auto;
		object-fit: contain;
		object-position: center;
	}
}

.madeco-home__promo--has-image {
	min-height: 0;
	padding: 0;
	background-color: transparent;
	display: block;
}

.madeco-home__promo-image {
	display: block;
	width: 100%;
	height: auto;
}

.madeco-home__promo-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 0.75rem;
	height: 100%;
	min-height: inherit;
	padding: 1rem 1.125rem;
}

.madeco-home__promo-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.35rem;
	min-width: 0;
	flex: 1;
}

.madeco-home__promo-eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: lowercase;
	letter-spacing: 0.02em;
}

.madeco-home__promo-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.15;
}

.madeco-home__promo-subtitle {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.35;
	opacity: 0.92;
}

.madeco-home__promo-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.35rem;
}

.madeco-home__promo-more {
	font-size: 0.75rem;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	opacity: 0.95;
}

.madeco-home__promo-more:hover {
	text-decoration: underline;
}

.madeco-home__promo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.85rem;
	border-radius: var(--madeco-radius-sm);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.madeco-home__promo--cashea {
	background-color: #f5d20a;
	color: var(--madeco-gray-900);
}

.madeco-home__promo--cashea .madeco-home__promo-eyebrow {
	font-size: 1.125rem;
	font-weight: 800;
	text-transform: none;
}

.madeco-home__promo--cashea .madeco-home__promo-title {
	font-size: 1.05rem;
}

.madeco-home__promo--cashea .madeco-home__promo-btn {
	background: var(--madeco-gray-900);
	color: var(--madeco-white);
}

.madeco-home__promo--cashea .madeco-home__promo-btn:hover {
	background: #1a1a1a;
	color: var(--madeco-white);
}

.madeco-home__promo--fideliza {
	background-color: #0b2f5b;
}

.madeco-home__promo--fideliza:not(.madeco-home__promo--has-image) {
	background-image: linear-gradient(135deg, #0b2f5b 0%, #13467f 100%);
}

.madeco-home__promo--fideliza .madeco-home__promo-btn {
	background: var(--madeco-white);
	color: #0b2f5b;
}

.madeco-home__promo--fideliza .madeco-home__promo-btn:hover {
	background: var(--madeco-gray-100);
	color: #0b2f5b;
}

.madeco-home__promo--mundial {
	background-color: #0a1628;
}

.madeco-home__promo--mundial:not(.madeco-home__promo--has-image) {
	background-image: linear-gradient(180deg, rgba(10, 22, 40, 0.35) 0%, rgba(10, 22, 40, 0.85) 100%), radial-gradient(ellipse at 50% 0%, #1e4a7a 0%, #0a1628 70%);
}

.madeco-home__promo--mundial .madeco-home__promo-eyebrow {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: none;
}

.madeco-home__promo--mundial .madeco-home__promo-title {
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.madeco-home__promo--fletes {
	background-color: #2d8fd5;
	color: var(--madeco-white);
}

.madeco-home__promo--fletes:not(.madeco-home__promo--has-image) {
	background-image: linear-gradient(135deg, #2d8fd5 0%, #4eb0f0 100%);
}

.madeco-home__promo--fletes .madeco-home__promo-title {
	font-size: 1.125rem;
}

/* Editable zone */
.madeco-home__editable {
	padding: 2rem 0;
}

/* Products carousel */
.madeco-home__products {
	padding: 1rem 0;
	background: var(--madeco-white);
}

.madeco-home__products-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

.madeco-home-products {
	position: relative;
}

.madeco-home-products__viewport {
	overflow: hidden;
	width: 100%;
	padding-block: 2px;
	box-sizing: border-box;
}

.madeco-home-products__track {
	display: flex;
	transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.madeco-home-products__slide {
	flex: 0 0 100%;
	padding: 2px 0.5rem;
	box-sizing: border-box;
}

.madeco-home-products__prev,
.madeco-home-products__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--madeco-orange);
	background: var(--madeco-white);
	color: var(--madeco-orange);
	font-size: 1.625rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	padding: 0;
	transition: background-color var(--madeco-transition), color var(--madeco-transition), opacity var(--madeco-transition);
}

.madeco-home-products__prev:hover,
.madeco-home-products__next:hover {
	background: var(--madeco-orange);
	color: var(--madeco-white);
}

.madeco-home-products__prev:disabled,
.madeco-home-products__next:disabled {
	opacity: 0.75;
	cursor: not-allowed;
}

.madeco-home-products__prev:disabled:hover,
.madeco-home-products__next:disabled:hover {
	background: var(--madeco-white);
	color: var(--madeco-orange);
}

.madeco-home-products__prev span,
.madeco-home-products__next span {
	display: block;
	line-height: 0.9;
	margin-top: -2px;
}

.madeco-home-products__prev {
	left: -0.875rem;
}

.madeco-home-products__next {
	right: -0.875rem;
}

.madeco-home__product-card {
	position: relative;
	border: 1px solid var(--madeco-gray-200);
	border-radius: var(--madeco-radius);
	padding: 1rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--madeco-white);
}

.madeco-home__product-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
	padding: 0.25rem 0.625rem;
	border-radius: 4px;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--madeco-white);
}

.madeco-home__product-badge--oferta {
	background: var(--madeco-orange);
}

.madeco-home__product-badge--mas-vendido {
	background: #f5c518;
	color: var(--madeco-gray-900);
}

.madeco-home__product-badge--nuevo {
	background: #22c55e;
}

.madeco-home__product-image {
	display: block;
	aspect-ratio: 1;
	margin-bottom: 0.75rem;
}

.madeco-home__product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.madeco-home__product-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	line-height: 1.3;
}

.madeco-home__product-title a {
	color: var(--madeco-gray-900);
	text-decoration: none;
}

.madeco-home__product-rating {
	margin-bottom: 0.5rem;
	font-size: 0.8125rem;
}

.madeco-home__product-stars {
	color: #f5c518;
	letter-spacing: 0.05em;
}

.madeco-price {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--madeco-blue);
	margin-bottom: 0.75rem;
}

.madeco-home__product-cta {
	width: 100%;
	margin-top: auto;
	padding: 0.625rem 1rem;
	font-size: 0.875rem;
}

/* Featured brands */
.madeco-home__brands {
	padding: 0 0 1rem;
	background: var(--madeco-white);
}

.madeco-home__brands-title {
	margin-bottom: 0.875rem;
}

.madeco-home-brands {
	position: relative;
	touch-action: pan-y;
}

.madeco-home-brands__viewport {
	overflow: hidden;
	width: 100%;
}

.madeco-home-brands__track {
	display: flex;
	transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.madeco-home-brands__slide {
	flex: 0 0 calc(100% / 2);
	padding: 0 0.375rem;
	box-sizing: border-box;
}

.madeco-home-brands__card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 70px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--madeco-gray-400);
	border-radius: 4px;
	background: #ffffff;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 34, 91, 0.06);
}

.madeco-home-brands__card img {
	display: block;
	max-width: 100%;
	max-height: 42px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.madeco-home-brands__card span {
	color: var(--madeco-blue);
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
}

.madeco-home-brands__prev,
.madeco-home-brands__next {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 1px solid var(--madeco-orange);
	border-radius: 50%;
	background: var(--madeco-white);
	color: var(--madeco-orange);
	box-shadow: 0 2px 6px rgba(0, 34, 91, 0.14);
	cursor: pointer;
	font-size: 1.35rem;
	line-height: 1;
	transform: translateY(-50%);
	transition: background-color var(--madeco-transition), color var(--madeco-transition), opacity var(--madeco-transition);
}

.madeco-home-brands__prev:hover,
.madeco-home-brands__next:hover {
	background: var(--madeco-orange);
	color: var(--madeco-white);
}

.madeco-home-brands__prev:disabled,
.madeco-home-brands__next:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.madeco-home-brands__prev:disabled:hover,
.madeco-home-brands__next:disabled:hover {
	background: var(--madeco-white);
	color: var(--madeco-orange);
}

.madeco-home-brands__prev span,
.madeco-home-brands__next span {
	display: block;
	line-height: 0.85;
	margin-top: -2px;
}

.madeco-home-brands__prev {
	left: 0.125rem;
}

.madeco-home-brands__next {
	right: 0.125rem;
}

/* Project guides / blog */
.madeco-home__guides {
	padding: 0 0 1rem;
	background: var(--madeco-white);
}

.madeco-home__guides-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

.madeco-home__view-all--blue {
	color: var(--madeco-blue);
}

.madeco-home__view-all--blue::after {
	color: var(--madeco-orange);
}

.madeco-home-guides__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.madeco-home-guides__card {
	min-width: 0;
}

.madeco-home-guides__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--madeco-gray-400);
	border-radius: var(--madeco-radius);
	overflow: hidden;
	background: #f4f4f4;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 3px rgba(0, 34, 91, 0.06);
}

.madeco-home-guides__card-image {
	aspect-ratio: 2 / 1;
	background: var(--madeco-white);
	overflow: hidden;
}

.madeco-home-guides__card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.madeco-home-guides__card-body {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	padding: 0.75rem 0.85rem 0.85rem;
}

.madeco-home-guides__card-tag {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 0.45rem;
	padding: 0.3rem 0.7rem;
	border: 1px solid var(--madeco-gray-400);
	border-radius: 2px;
	background: var(--madeco-white);
	color: var(--madeco-blue);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
}

.madeco-home-guides__card-title {
	margin: 0;
	color: var(--madeco-blue);
	font-size: clamp(0.9rem, 1.2vw, 1.05rem);
	font-weight: 800;
	line-height: 1.2;
}

.madeco-home-guides__card-cta {
	margin-top: 0.55rem;
	color: var(--madeco-blue);
	font-size: 0.8125rem;
	font-weight: 700;
}

.madeco-home-guides__card-cta::after {
	content: "\2192";
	margin-left: 0.25rem;
	color: var(--madeco-orange);
}

.madeco-home-guides__banner {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	padding: clamp(0.85rem, 1.5vw, 1.1rem);
	border-radius: var(--madeco-radius);
	overflow: hidden;
	background: linear-gradient(135deg, #d9e7f4 0%, #e8f1f8 55%, #f2f7fb 100%);
}

.madeco-home-guides__banner-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 58%;
	padding-block: 0.15rem;
}

.madeco-home-guides__banner-title {
	margin: 0 0 0.35rem;
	color: var(--madeco-blue);
	font-size: clamp(0.95rem, 1.4vw, 1.15rem);
	font-weight: 800;
	line-height: 1.15;
}

.madeco-home-guides__banner-desc {
	margin: 0 0 0.65rem;
	color: var(--madeco-blue);
	font-size: clamp(0.74rem, 0.95vw, 0.85rem);
	line-height: 1.3;
}

.madeco-home-guides__banner-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	align-self: flex-start;
	padding: 0.55rem 0.8rem;
	border-radius: 4px;
	background: var(--madeco-blue);
	color: var(--madeco-white);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color var(--madeco-transition);
}

.madeco-home-guides__banner-btn:hover {
	background: #001a45;
	color: var(--madeco-white);
}

.madeco-home-guides__banner-media {
	position: absolute;
	right: 10px;
	bottom: 0;
	width: min(42%, 190px);
	max-height: 100%;
	pointer-events: none;
}

.madeco-home-guides__banner-media img {
	display: block;
	width: 100%;
	max-height: 100%;
	height: auto;
	object-fit: contain;
	object-position: right bottom;
}

.madeco-home-guides__banner--has-image .madeco-home-guides__banner-content {
	max-width: 56%;
}

/* Locations */
.madeco-home__locations {
	padding: 0 0 1rem;
	background: var(--madeco-white);
}

.madeco-home__locations-header {
	margin-bottom: 0.875rem;
}

.madeco-home__locations-header p {
	margin: 0.2rem 0 0;
	color: var(--madeco-blue);
	font-size: clamp(0.9rem, 1.2vw, 1rem);
	font-weight: 600;
	line-height: 1.35;
}

.madeco-home-locations__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.madeco-home-locations__card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(96px, 38%) 1fr;
	min-height: 104px;
	border: 1px solid var(--madeco-gray-400);
	border-radius: 6px;
	overflow: hidden;
	background: #f4f6f8;
	color: var(--madeco-blue);
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 34, 91, 0.06);
}

.madeco-home-locations__card:hover {
	color: var(--madeco-blue);
	box-shadow: 0 4px 12px rgba(0, 34, 91, 0.12);
}

.madeco-home-locations__media {
	min-height: 100%;
	background: var(--madeco-white);
	overflow: hidden;
}

.madeco-home-locations__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.madeco-home-locations__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	min-width: 0;
	padding: 0.6rem 0.75rem;
}

.madeco-home-locations__content h3 {
	margin: 0 0 0.1rem;
	color: inherit;
	font-size: clamp(0.88rem, 1.1vw, 1rem);
	font-weight: 800;
	line-height: 1.1;
}

.madeco-home-locations__link-text {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	margin-bottom: 0.3rem;
	color: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.15;
}

.madeco-home-locations__hours {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.12rem;
}

.madeco-home-locations__hours-row {
	margin: 0;
	color: inherit;
	font-size: clamp(0.64rem, 0.82vw, 0.75rem);
	line-height: 1.1;
}

.madeco-home-locations__hours-row span,
.madeco-home-locations__hours-row strong {
	display: block;
}

.madeco-home-locations__hours-row strong {
	font-weight: 800;
}

.madeco-home-locations__card--overlay {
	display: block;
	min-height: 104px;
	background: #30343a;
	color: var(--madeco-white);
}

.madeco-home-locations__card--overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(43, 45, 48, 0.92) 0%, rgba(84, 86, 90, 0.68) 42%, rgba(84, 86, 90, 0.08) 72%, rgba(84, 86, 90, 0) 100%);
	pointer-events: none;
}

.madeco-home-locations__card--overlay .madeco-home-locations__media {
	position: absolute;
	inset: 0;
}

.madeco-home-locations__card--overlay .madeco-home-locations__content {
	max-width: 56%;
	min-height: 104px;
	color: var(--madeco-white);
}

.madeco-home-locations__card--overlay:hover {
	color: var(--madeco-white);
}

.madeco-home-locations__card--overlay .madeco-home-locations__hours {
	gap: 0.3rem;
}

/* Service banners */
.madeco-home-service-banners {
	padding: 0 0 1rem;
	background: var(--madeco-white);
}

.madeco-home-service-banners__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.madeco-home-service-banners__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.madeco-home-service-banners__text-card,
.madeco-home-service-banners__image-card {
	border: 1px solid var(--madeco-gray-400);
	border-radius: var(--madeco-radius);
	overflow: hidden;
	background: #f4f4f4;
	box-shadow: 0 2px 6px rgba(0, 34, 91, 0.06);
}

.madeco-home-service-banners__text-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(0.95rem, 2vw, 1.35rem);
}

.madeco-home-service-banners__title {
	margin: 0 0 1rem;
	color: var(--madeco-blue);
	font-size: clamp(1.7rem, 2.9vw, 2.4rem);
	font-weight: 800;
	line-height: 1.05;
}

.madeco-home-service-banners__items {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.9rem;
}

.madeco-home-service-banners__item {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 0.7rem;
	align-items: start;
	min-width: 0;
}

.madeco-home-service-banners__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--madeco-blue);
}

.madeco-home-service-banners__icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.madeco-home-service-banners__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.madeco-home-service-banners__copy h3 {
	margin: 0 0 0.25rem;
	color: var(--madeco-blue);
	font-size: clamp(1.18rem, 1.62vw, 1.5rem);
	font-weight: 800;
	line-height: 1.05;
}

.madeco-home-service-banners__copy p {
	margin: 0;
	color: var(--madeco-blue);
	font-size: clamp(0.92rem, 1.08vw, 1.1rem);
	font-weight: 500;
	line-height: 1.2;
}

/* Beneficios Madeco — fondo azul, iconos arriba del título */
.madeco-home-service-banners__text-card--benefits {
	background: #011f62;
	border-color: #011f62;
	box-shadow: none;
}

.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__title,
.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__copy h3,
.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__copy p {
	color: var(--madeco-white);
}

.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	grid-template-columns: unset;
	gap: 0.6rem;
	min-width: 0;
	text-align: center;
}

.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__icon {
	width: clamp(44px, 4.2vw, 56px);
	height: clamp(44px, 4.2vw, 56px);
	color: var(--madeco-white);
}

.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__icon img {
	filter: brightness(0) invert(1);
}

.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__copy h3 {
	margin: 0;
	font-size: clamp(1rem, 1.42vw, 1.24rem);
	font-weight: 700;
	line-height: 1.25;
}

.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__copy p {
	opacity: 0.88;
	font-size: clamp(0.86rem, 1vw, 1.04rem);
	line-height: 1.25;
}

.madeco-home-service-banners__image-card {
	display: block;
	position: relative;
	min-height: 150px;
	height: 100%;
	color: var(--madeco-white);
	text-decoration: none;
}

.madeco-home-service-banners__row--top .madeco-home-service-banners__text-card {
	padding-block: calc(clamp(0.95rem, 2vw, 1.35rem) + 12px);
}

.madeco-home-service-banners__row--top .madeco-home-service-banners__image-card,
.madeco-home-service-banners__row--top .madeco-home-service-banners__image-fallback {
	min-height: 185px;
}

.madeco-home-service-banners__image-card img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
	object-position: center;
}

.madeco-home-service-banners__image-card--promo img {
	object-position: right center;
}

.madeco-home-service-banners__image-card--promo {
	box-shadow: 3px 6px 14px rgba(15, 23, 42, 0.16), 2px 3px 6px rgba(15, 23, 42, 0.08);
}

.madeco-home-service-banners__image-fallback {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: absolute;
	inset: 0;
	min-height: 150px;
	padding: 1.25rem;
	background: linear-gradient(135deg, #08265f 0%, #0c4384 100%);
}

.madeco-home-service-banners__image-card--promo .madeco-home-service-banners__image-fallback {
	background: linear-gradient(135deg, var(--madeco-blue) 0%, #173d75 55%, var(--madeco-orange) 140%);
}

.madeco-home-service-banners__image-fallback h2 {
	max-width: 280px;
	margin: 0 0 0.45rem;
	color: var(--madeco-white);
	font-size: clamp(1.25rem, 1.9vw, 1.85rem);
	font-weight: 800;
	line-height: 1.05;
}

.madeco-home-service-banners__image-fallback p {
	max-width: 300px;
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.85rem;
	line-height: 1.35;
}

/* Responsive */
@media (min-width: 640px) {
	.madeco-home-products__slide {
		flex: 0 0 50%;
	}

	.madeco-home-brands__slide {
		flex: 0 0 calc(100% / 3);
	}

	.madeco-home-guides__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
	}

	.madeco-home-guides__card {
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.madeco-home-guides__card-link {
		flex: 1;
	}

	.madeco-home-guides__card-image {
		flex: 1 1 auto;
		min-height: 110px;
		aspect-ratio: auto;
	}

	.madeco-home-guides__banner {
		grid-column: 1 / -1;
		height: auto;
	}

	.madeco-home-locations__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.madeco-home-locations__card--overlay {
		grid-column: 1 / -1;
	}

	.madeco-home__categories-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.madeco-home-build__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.125rem;
	}
}

@media (min-width: 768px) {
	.madeco-home__promo--clone {
		display: none !important;
	}

	.madeco-home-build__card--clone {
		display: none !important;
	}

	.madeco-home-build__grid {
		display: grid;
		overflow: visible;
		scrollbar-width: auto;
	}

	.madeco-home__promos-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		overflow: visible;
		scrollbar-width: auto;
		padding-inline: 0;
		scroll-padding-inline: 0;
	}

	.madeco-home__promo:not(.madeco-home__promo--has-image) {
		flex: none;
		min-height: 180px;
	}

	.madeco-home__promo-inner {
		padding: 1.25rem 1.375rem;
	}

	.madeco-home__promo-title {
		font-size: 1.0625rem;
	}

	.madeco-home__promo--cashea .madeco-home__promo-title {
		font-size: 1.125rem;
	}

	.madeco-home__promo--mundial .madeco-home__promo-title {
		font-size: 1rem;
	}

	.madeco-home-service-banners__row--top {
		grid-template-columns: minmax(0, 1.85fr) minmax(240px, 1fr);
		align-items: stretch;
	}

	.madeco-home-service-banners__row--bottom {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
	}

	.madeco-home-service-banners__row--bottom .madeco-home-service-banners__image-card {
		min-height: 100%;
	}

	.madeco-home-service-banners__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(0.75rem, 1.8vw, 1.15rem);
	}

	.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__item:nth-child(even) {
		border-left: 1px solid rgba(255, 255, 255, 0.28);
		padding-left: clamp(0.75rem, 1.8vw, 1.15rem);
	}

	.madeco-home__hero-main {
		padding-block: 3rem;
	}

	.madeco-home-build__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.madeco-home__promos-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.madeco-home__promo:not(.madeco-home__promo--has-image) {
		min-height: 196px;
	}

	.madeco-home__hero {
		min-height: 560px;
	}

	.madeco-home__hero-container {
		min-height: 560px;
	}

	.madeco-home__hero-main {
		padding-right: clamp(260px, 26vw, 340px);
	}

	.madeco-home__hero-features {
		width: clamp(260px, 26vw, 340px);
		padding: 3rem 2.5rem;
		gap: 2.5rem;
	}

	.madeco-home-products__slide {
		flex: 0 0 20%;
	}

	.madeco-home-brands__slide {
		flex: 0 0 calc(100% / 6);
	}

	.madeco-home-brands__prev {
		left: -0.75rem;
	}

	.madeco-home-brands__next {
		right: -0.75rem;
	}

	.madeco-home-guides__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(260px, 0.9fr);
		align-items: stretch;
		grid-template-rows: 315px;
	}

	.madeco-home-guides__card,
	.madeco-home-guides__banner {
		height: 100%;
		min-height: 0;
		overflow: hidden;
	}

	.madeco-home-guides__card-image {
		flex: 1 1 auto;
		min-height: 0;
		aspect-ratio: auto;
	}

	.madeco-home-guides__banner {
		grid-column: auto;
	}

	.madeco-home-locations__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 1.15fr);
		align-items: stretch;
	}

	.madeco-home-locations__card {
		min-height: 104px;
	}

	.madeco-home-locations__card--overlay {
		grid-column: auto;
	}

	.madeco-home-service-banners__items {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: clamp(0.85rem, 2.2vw, 1.5rem);
	}

	.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__items {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0;
	}

	.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__item:nth-child(even) {
		border-left: none;
		padding-left: 0;
	}

	.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__item:not(:first-child) {
		border-left: 1px solid rgba(255, 255, 255, 0.28);
		padding-left: clamp(0.75rem, 1.4vw, 1.15rem);
	}

	.madeco-home-service-banners__item {
		grid-template-columns: 48px 1fr;
		gap: 0.7rem;
	}

	.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__item {
		grid-template-columns: unset;
	}

	.madeco-home-service-banners__text-card:not(.madeco-home-service-banners__text-card--benefits) .madeco-home-service-banners__title {
		font-size: clamp(1.45rem, 2vw, 1.85rem);
	}

	.madeco-home-service-banners__text-card:not(.madeco-home-service-banners__text-card--benefits) .madeco-home-service-banners__copy h3 {
		font-size: clamp(1.05rem, 1.25vw, 1.27rem);
	}

	.madeco-home-service-banners__text-card:not(.madeco-home-service-banners__text-card--benefits) .madeco-home-service-banners__copy p {
		font-size: clamp(0.85rem, 0.95vw, 0.95rem);
	}

	.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__title {
		font-size: clamp(1.45rem, 2vw, 1.85rem);
	}

	.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__copy h3 {
		font-size: clamp(0.9rem, 1.05vw, 1.05rem);
	}

	.madeco-home-service-banners__text-card--benefits .madeco-home-service-banners__copy p {
		font-size: clamp(0.78rem, 0.85vw, 0.9rem);
	}

	.madeco-home-service-banners__icon {
		width: 48px;
		height: 48px;
	}

	.madeco-home__categories-grid {
		grid-template-columns: repeat(6, 1fr);
	}

	.madeco-home-build__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: clamp(0.75rem, 1.1vw, 1rem);
	}

	.madeco-home__b2b-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.madeco-home__hero-bg-img {
		object-position: 68% var(--madeco-hero-bg-pos-y, 50%);
	}

	.madeco-home__hero-main {
		padding-right: 0;
		min-height: 360px;
	}

	.madeco-home__hero-content .madeco-home__hero-title {
		font-size: clamp(2.375rem, 9vw, 2.875rem);
	}

	.madeco-home__hero-content .madeco-home__hero-subtitle {
		font-size: 1.125rem;
	}

	.madeco-home__hero-features {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		width: 100vw;
		max-width: 100vw;
		margin-inline: calc(50% - 50vw);
		align-self: stretch;
		box-sizing: border-box;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.madeco-home-service-banners__text-card {
		padding: 1rem;
		align-items: center;
		text-align: center;
	}

	.madeco-home-service-banners__row--top .madeco-home-service-banners__text-card {
		padding-block: calc(1rem + 12px);
	}

	.madeco-home-service-banners__title {
		text-align: center;
	}

	.madeco-home-service-banners__items {
		justify-items: center;
		width: 100%;
	}

	.madeco-home-service-banners__item {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.madeco-home-service-banners__image-fallback {
		align-items: center;
		text-align: center;
		min-height: 185px;
	}

	.madeco-home-service-banners__image-fallback h2,
	.madeco-home-service-banners__image-fallback p {
		margin-inline: auto;
	}

	.madeco-home-service-banners__row--top .madeco-home-service-banners__image-fallback {
		min-height: 210px;
	}

	.madeco-home-service-banners__image-card {
		min-height: 0;
		height: auto;
	}

	.madeco-home-service-banners__row--top .madeco-home-service-banners__image-card {
		min-height: 0;
	}

	.madeco-home-service-banners__image-card img {
		position: static;
		width: 100%;
		height: auto;
		max-height: none;
		object-fit: contain;
		object-position: center;
	}

	.madeco-home-service-banners__image-card--promo img {
		object-position: center;
	}

	.madeco-home__section-header,
	.madeco-home__products-header,
	.madeco-home__guides-header {
		flex-wrap: nowrap;
		align-items: flex-end;
	}

	.madeco-home__section-header .madeco-section-title,
	.madeco-home__products-header .madeco-section-title,
	.madeco-home__guides-header .madeco-section-title {
		flex: 1 1 auto;
		min-width: 0;
	}

	.madeco-home__view-all {
		display: inline-block;
		flex-shrink: 0;
		white-space: nowrap;
		padding-block: 0;
		line-height: 1.5;
	}

	.madeco-home__view-all::after {
		display: inline-block;
		margin-left: 0.45rem;
		vertical-align: baseline;
	}
}

@media (min-width: 1280px) {
	.madeco-home-products__slide {
		flex: 0 0 20%;
	}
}
