/* sp_automatizacion_home — patrón visual "sección imagen de fondo + overlay
   centrado" tomado del hero/bloques existentes de la home (Elementor). */

.sp-ah-hero,
.sp-ah-tienda {
	position: relative;
	height: 94vh;
	background-color: #9b9b9b; /* fallback si la imagen no carga */
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.sp-ah-tienda--rotativa,
.sp-ah-tienda--categoria {
	align-items: flex-end;
	padding-bottom: 7rem;
}



/* Imagen real como fondo: sin estilos inline, cubre el contenedor vía object-fit. */
.sp-ah-hero__bg,
.sp-ah-tienda__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	z-index: 0;
}
 

/* Máscara de opacidad sobre la imagen para dar contraste al texto. */
.sp-ah-hero::after,
.sp-ah-tienda::after {
	content: '';
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.45);
	z-index: 0;
}

.sp-ah-hero__overlay,
.sp-ah-tienda__overlay {
	position: relative;
	z-index: 1;
	text-align: center;
	color: #fff;
	padding: 24px;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}



.sp-ah-hero__title {
	font-size: 2rem;
	font-weight: 400;
	margin: 0 0 16px;
}

.sp-ah-tienda__overlay h1 {
	margin: 0;
	font-size: 4rem;
	font-weight: 400;
}

.sp-ah-tienda__link {
	text-decoration: none;
	color: inherit;
	display: flex;
	align-items: end;
	padding-bottom: 4rem;
	justify-content: center;
}

.sp-ah-eyebrow {
	margin: 0;
	opacity: 0.9;
	color: #fff;
}

.sp-ah-tienda__badge {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding: 10px 24px;
	border: 2px solid #fff;
	border-radius: 24px;
	color: #fff;
	background-color: transparent;
	opacity: 1;
	margin: 0;
}



.sp-ah-tienda__overlay h1,
.sp-ah-tienda__overlay h2 {
	margin: 0;
	margin-top: -1.4rem;
	opacity: 0.9;
	letter-spacing: 0.1px;
}

.sp-ah-tienda__overlay span {
	letter-spacing: 0.1px;
}

.sp-ah-tienda__top {
	order: -1;
	font-size: 4rem;
}

.sp-ah-productos-premium {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.sp-ah-producto-col {
	position: relative;
	height: 100vh;
	background-color: #9b9b9b;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	padding-bottom: 4rem;
}

.sp-ah-producto__link {
	text-decoration: none;
	color: inherit;
}

.sp-ah-producto__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	z-index: 0;
}

.sp-ah-producto__overlay {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #fff;
	padding: 24px;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.sp-ah-producto__overlay h2 {
	margin: 0;
	letter-spacing: 0.1px;
}

.sp-ah-producto-col::after {
	content: '';
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.45);
	z-index: 1;
	pointer-events: none;
}

@media (max-width: 768px) {
	.sp-ah-productos-premium {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

@media (max-width: 600px) {
	.sp-ah-hero,
	.sp-ah-tienda {
		min-height: 360px;
	}

	.sp-ah-hero__title,
	.sp-ah-tienda__title {
		font-size: 1.5rem;
	}

	.sp-ah-tienda--rotativa,
	.sp-ah-tienda--categoria {
		padding-bottom: 4vh;
	}

	.sp-ah-producto-col {
		padding-bottom: 4vh;
	}
}
