/**
 * Home Hero Block Styles
 * This CSS file is automatically loaded only when the home-hero block is present on the page.
 * No manual enqueuing required - the per-block CSS system handles it automatically.
 */

.home-hero {
	padding: 80px 0;
	background-image: url('/wp-content/uploads/2026/01/Super_savings_bg@2x-scaled.png');
	background-size: cover;
	background-position: bottom;
}

.home-hero__wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 60px;
}

/* Left Column */
.home-hero__left {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.home-hero__title {
	font-family: var(--font-heading);
	color: var(--primary-black);
	margin: 0;
	font-size: 62px;
	max-width: 600px;
}

.home-hero__content {
	font-family: var(--font-content);
	font-size: 18px;
	font-weight: 400;
	color: var(--primary-black);
}

.home-hero__content p {
	margin: 0 0 12px;
}

.home-hero__content p:last-child {
	margin-bottom: 0;
}

/* Review Logos */
.home-hero__reviews {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
}

.home-hero__review-logo img {
	width: auto;
	object-fit: contain;
}

/* Desktop logo visible, mobile hidden */
.home-hero__review-logo .review-logo--desktop {
	display: block;
}

.home-hero__review-logo .review-logo--mobile {
	display: none;
}

/* CTA */
.home-hero__cta {
	margin-top: 8px;
}

/* Right Column */
.home-hero__right {
	flex: 1;
	max-width: 50%;
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
}

.home-hero__image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Badge/Viñeta */
.home-hero__badge {
	position: absolute;
	left: -80px;
	top: -40px;
	width: 287px;
	height: 227px;
	background-image: url('/wp-content/uploads/2026/01/Group-1000002107.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 30px 25px;
	z-index: 2;
}

.home-hero__badge-title {
	font-family: var(--font-heading);
	font-size: 32px;
	color: var(--primary-black);
	line-height: 1.1;
	margin-bottom: 8px;
}

.home-hero__badge-content {
	font-family: var(--font-content);
	font-size: 16px;
	font-weight: 700;
	color: var(--primary-black);
	line-height: 1.3;
}

.home-hero__badge-content p {
	margin: 0;
}

.home-hero__badge-content p:last-child {
	margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
	.home-hero {
		padding: 60px 0;
		background-image: none;
		background-color: var(--primary-blue);
	}

	.home-hero__wrapper {
		flex-direction: column;
		gap: 40px;
	}

	.home-hero__left {
		text-align: center;
		align-items: center;
	}

	.home-hero__title {
		color: #E4E5E5;
		-webkit-text-stroke: 4px var(--primary-red);
		text-stroke: 4px var(--primary-red);
		paint-order: stroke fill;
	}

	.home-hero__content,
	.home-hero__content p {
		color: #E4E5E5;
	}

	.home-hero__reviews {
		justify-content: center;
	}

	/* Mobile logo visible, desktop hidden */
	.home-hero__review-logo .review-logo--desktop {
		display: none;
	}

	.home-hero__review-logo .review-logo--mobile {
		display: block;
	}

	.home-hero__right {
		max-width: 100%;
		flex-direction: column;
		align-items: start;
	}

	.home-hero__badge {
		position: relative;
		left: auto;
		top: auto;
		margin: 0;
		z-index: 2;
	}

	.home-hero__badge-title {
		font-size: 32px;
	}

	.home-hero__badge-content {
		font-size: 14px;
	}

	.home-hero__image {
		display: flex;
		justify-content: flex-end;
		margin-top: -40px;
		z-index: 1;
	}

	.home-hero__image img {
		width: 60%;
		
	}

	/* CTA hover in mobile */
	.home-hero__cta a:hover {
		background-color: var(--primary-white);
		color: var(--primary-blue);
		box-shadow: 3px 5px 0 0 var(--primary-red);
	}
}

@media (max-width: 768px) {
	.home-hero {
		padding: 40px 0;
	}

	.home-hero__title {
		font-size: 42px;
	}
}
