/* Banda full-bleed: 4 columnas iguales, borde a borde (como imagen 2). */
.yantas-cat-banners {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	width: 100%;
	max-width: none;
	margin: 0;
	/* Rompe padding del contenedor Elementor si la sección es ancho completo */
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	width: 100vw;
	max-width: 100vw;
	box-sizing: border-box;
}

.yantas-cat-banners__item {
	position: relative;
	display: block;
	min-height: clamp(260px, 22vw, 340px);
	height: clamp(260px, 22vw, 340px);
	overflow: hidden;
	text-decoration: none !important;
	color: #fff !important;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	box-sizing: border-box;
}

.yantas-cat-banners__item:last-child {
	border-right: 0;
}

.yantas-cat-banners__item:hover,
.yantas-cat-banners__item:focus,
.yantas-cat-banners__item:focus-visible,
.yantas-cat-banners__item:visited {
	color: #fff !important;
	text-decoration: none !important;
}

.yantas-cat-banners__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1);
	transition: transform 0.55s ease;
	will-change: transform;
}

.yantas-cat-banners__item:hover .yantas-cat-banners__bg,
.yantas-cat-banners__item:focus-visible .yantas-cat-banners__bg {
	transform: scale(1.08);
}

.yantas-cat-banners__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.1) 0%,
		rgba(0, 0, 0, 0.35) 55%,
		rgba(0, 0, 0, 0.78) 100%
	);
	pointer-events: none;
	transition: background 0.35s ease;
}

.yantas-cat-banners__item:hover .yantas-cat-banners__overlay,
.yantas-cat-banners__item:focus-visible .yantas-cat-banners__overlay {
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.15) 0%,
		rgba(0, 0, 0, 0.45) 50%,
		rgba(0, 0, 0, 0.85) 100%
	);
}

.yantas-cat-banners__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 1.5rem 1rem 2rem;
	box-sizing: border-box;
}

.yantas-cat-banners__icon {
	width: clamp(52px, 4vw, 72px);
	height: clamp(52px, 4vw, 72px);
	object-fit: contain;
	margin-bottom: 0.75rem;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
	flex-shrink: 0;
}

.yantas-cat-banners__title {
	margin-top: auto;
	font-size: clamp(1.35rem, 2.2vw, 2rem);
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
	transform: translateY(0);
	transition: transform 0.35s ease;
	color: #fff !important;
	text-decoration: none !important;
}

.yantas-cat-banners__item:hover .yantas-cat-banners__title,
.yantas-cat-banners__item:focus-visible .yantas-cat-banners__title {
	transform: translateY(-12px);
	color: #fff !important;
}

.yantas-cat-banners__btn {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.65rem 1.5rem;
	border-radius: 999px;
	background: #e11d48;
	color: #fff !important;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
	box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
	text-decoration: none !important;
}

.yantas-cat-banners__item:hover .yantas-cat-banners__btn,
.yantas-cat-banners__item:focus-visible .yantas-cat-banners__btn {
	opacity: 1;
	transform: translateY(0);
}

.yantas-cat-banners__item:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

@media (max-width: 992px) {
	.yantas-cat-banners {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		max-width: 100%;
		left: auto;
		right: auto;
		margin-left: 0;
		margin-right: 0;
	}

	.yantas-cat-banners__item {
		min-height: 240px;
		height: 240px;
	}

	.yantas-cat-banners__item:nth-child(2n) {
		border-right: 0;
	}
}

@media (max-width: 560px) {
	.yantas-cat-banners {
		grid-template-columns: 1fr;
	}

	.yantas-cat-banners__item {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		min-height: 220px;
		height: 220px;
	}

	.yantas-cat-banners__item:last-child {
		border-bottom: 0;
	}
}
