/* Home: mosaico Pie 1:2, Tiras LED 2:1, resto 1:1. */

/* Home: grilla cuadrada, sin recortes forzados. */

html,
body.home {
	background: #111;
	color: #f4f4f4;
}

body.home #main-container {
	min-height: unset !important;
	height: auto !important;
	background: #111;
}
body.home #main-container .site-main,
body.home #main.site-main,
body.home article,
body.home .hero-section,
body.home #main .ct-container,
body.home .site-main .ct-container,
body.home .entry-content {
	background: #111;
}
body.home #main-container .site-main,
body.home #main.site-main {
	flex-grow: 0 !important;
	flex-shrink: 0 !important;
	min-height: 0 !important;
}
body.home [data-vertical-spacing*="top"] {
	padding-top: 0 !important;
}
body.home [data-vertical-spacing*="bottom"] {
	padding-bottom: 0 !important;
}
body.home .hero-section,
body.home .page-title,
body.home article .entry-header {
	display: none !important;
}

body.home .entry-content.is-layout-constrained {
	max-width: none;
	margin: 0;
	padding: 0;
	min-height: 0 !important;
}
body.home .entry-content.is-layout-constrained > .tdl-home-wrap,
body.home .entry-content > .tdl-home-wrap {
	max-width: none !important;
	width: 100%;
	margin: 0;
}

body.home #header {
	z-index: 40;
}

.tdl-home-wrap {
	padding-top: var(--header-height, 72px);
}

.tdl-home-mosaic {
	display: grid;
	gap: 0;
	width: 100%;
	background: #111;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"plafon colgantes"
		"mesa riel"
		"pie exterior"
		"pie hormigon"
		"lamparas catalogo"
		"tiras tiras";
}

.tdl-home-tile {
	position: relative;
	display: block;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	min-width: 0;
	min-height: 0;
	aspect-ratio: 1 / 1;
	background: #1a1a1a;
}

.tdl-area-plafon { grid-area: plafon; }
.tdl-area-colgantes { grid-area: colgantes; }
.tdl-area-pie { grid-area: pie; aspect-ratio: auto; }
.tdl-area-mesa { grid-area: mesa; }
.tdl-area-hormigon { grid-area: hormigon; }
.tdl-area-riel { grid-area: riel; }
.tdl-area-exterior { grid-area: exterior; }
.tdl-area-lamparas { grid-area: lamparas; }
.tdl-area-tiras { grid-area: tiras; aspect-ratio: 2 / 1; }
.tdl-area-catalogo { grid-area: catalogo; }

.tdl-home-tile img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: none;
	border: 0;
	outline: 0;
	transition: transform 0.5s ease;
}
.tdl-area-pie img {
	object-position: center 18%;
}
.tdl-area-tiras img {
	object-position: center 42%;
}

.tdl-home-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72) 100%);
	z-index: 1;
}

.tdl-home-tile--light::after {
	background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.8) 100%);
}

.tdl-home-tile--cta {
	background: #161616;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
}
.tdl-home-tile--cta::after {
	background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
}
.tdl-home-tile--cta .tdl-home-tile__label {
	color: #f59a57;
	text-shadow: none;
}

.tdl-home-tile__label {
	position: absolute;
	right: 14px;
	bottom: 12px;
	left: 14px;
	z-index: 2;
	margin: 0;
	font-size: 28px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.12;
	color: #fff;
	text-align: right;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.tdl-home-tile:hover img,
.tdl-home-tile:focus-visible img {
	transform: scale(1.04);
}

.tdl-home-tile:focus-visible {
	outline: 2px solid #f59a57;
	outline-offset: -2px;
	z-index: 3;
}

.tdl-home-all {
	display: none;
}

@media (max-width: 759.98px) {
	.tdl-home-tile__label {
		right: 12px;
		bottom: 10px;
		left: 12px;
		font-size: 26px;
	}
}

@media (min-width: 760px) {
	.tdl-home-mosaic {
		width: calc(100% - 80px);
		max-width: 1140px;
		margin-left: auto;
		margin-right: auto;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-areas:
			"plafon colgantes mesa pie"
			"riel exterior hormigon pie"
			"tiras tiras lamparas catalogo";
	}
	.tdl-area-tiras {
		aspect-ratio: auto;
	}
	.tdl-home-brands {
		width: 100%;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}
	.tdl-home-tile__label {
		right: 18px;
		bottom: 16px;
		left: 18px;
		font-size: 36px;
		letter-spacing: 0;
	}
}


@media (min-width: 1200px) {
	.tdl-home-tile__label {
		font-size: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tdl-home-tile img {
		transition: none;
	}
	.tdl-home-tile:hover img {
		transform: none;
	}
}

.tdl-home-brands {
	margin: 8px 0 0;
	padding: 14px 0 10px;
	border-top: 1px solid #1a1a1a;
	background: #000;
}
.tdl-home-brands__viewport {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.tdl-home-brands__track {
	display: flex;
	width: max-content;
	align-items: center;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
	animation: tdl-brands-scroll 48s linear infinite;
}
.tdl-home-brands__set {
	display: flex;
	align-items: center;
	gap: 36px;
	padding: 0 18px;
}
.tdl-home-brands__item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 148px;
	width: 148px;
	height: 56px;
}
.tdl-home-brands__item img {
	display: block;
	width: auto;
	height: auto;
	max-width: 140px;
	max-height: 42px;
	object-fit: contain;
	image-rendering: auto;
}
.tdl-home-brands:hover .tdl-home-brands__track {
	animation-play-state: paused;
}
@keyframes tdl-brands-scroll {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.tdl-home-brands__track {
		animation: none;
	}
	.tdl-home-brands__viewport {
		overflow-x: auto;
		mask-image: none;
	}
}
