/**
 * HappyJokersEspana — hero / main block (Figma banner).
 *
 * Height = paddings + content only (no height / min-height).
 * Desktop: padding-top 131px, content 328px centered, space to trust 235px.
 */

.hero {
	--hero-eyebrow: #bbbcd5;
	--hero-title: #ffffff;
	--hero-cta-bg: #faff03;
	--hero-cta-text: #030025;
	--hero-cta-radius: 50px;
	--hero-trust-text: #bbbcd5;
	--hero-font: "Open Sans", sans-serif;

	background: #030025;
	isolation: isolate;
	margin: 0 auto;
	max-width: 1470px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.hero.hero--banner-1 {
	container-name: hero-b1;
	container-type: inline-size;
	max-width: 100%;
}

.hero__media {
	bottom: 0;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 0;
}

.hero__media picture {
	display: block;
	height: 100%;
	width: 100%;
}

.hero__bg {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	width: 100%;
}

/* Design fade: transparent → #030025 (212px). Top stop must stay transparent or a hard edge appears. */
.hero__gradient {
	background: linear-gradient(
		180deg,
		rgba(3, 0, 37, 0) 0%,
		var(--hero-gradient-to, #030025) 100%
	);
	bottom: 0;
	height: 212px;
	left: 0;
	opacity: 0.9;
	pointer-events: none;
	position: absolute;
	right: 0;
	width: 100%;
	z-index: 1;
}

.hero__inner {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: 120px 20px 215px;
	position: relative;
	width: 100%;
	z-index: 2;
}

.hero__content {
	align-items: center;
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	max-width: 445px;
	text-align: center;
	width: 100%;
}

/* Keep text in the left dark zone: scales with banner width (≈22% at 1440). */
.hero--banner-1 .hero__content--desktop {
	margin-left: max(0px, calc((100cqi - 445px) * 0.32));
	margin-right: auto;
}

.hero--banner-1.hero--align-center .hero__content--desktop {
	margin-left: auto;
	margin-right: auto;
}

.hero__content--mobile {
	display: none;
}

.hero__content > * {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.hero__eyebrow {
	color: var(--hero-eyebrow);
	font-family: var(--hero-font);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 8px;
	line-height: 20px;
	margin: 0 0 16px;
	text-align: center;
	text-transform: uppercase;
}

.hero__title {
	color: var(--hero-title);
	font-family: var(--hero-font);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 32px;
	margin: 0 0 26px;
	text-align: center;
	text-transform: uppercase;
	white-space: pre-line;
	width: 100%;
}

.hero__cta {
	align-items: center;
	background-color: var(--hero-cta-bg);
	background-image: var(--hero-cta-bg-image, none);
	background-origin: border-box;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	border-radius: var(--hero-cta-radius);
	box-sizing: border-box;
	color: var(--hero-cta-text);
	display: inline-flex;
	font-family: var(--hero-font);
	font-size: 16px;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0;
	line-height: 20px;
	min-width: 290px;
	padding: 31px 32px;
	text-align: center;
	text-decoration: none;
	transition: filter 0.2s ease;
	width: auto;
}

.hero__cta:hover {
	color: var(--hero-cta-text);
	filter: brightness(1.08);
}

/* Button face image — stretch to fill the whole CTA */
.hero__cta.hero__cta--has-img {
	background-color: transparent;
	background-image: none;
	overflow: hidden;
	padding: 31px 32px;
	position: relative;
}

.hero__cta-img {
	display: block;
	height: 100%;
	inset: 0;
	object-fit: fill;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 0;
}

.hero__cta.hero__cta--has-img > .hero__cta-label {
	position: relative;
	z-index: 1;
}

.hero__trust {
	align-items: center;
	bottom: 8px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: nowrap;
	gap: 20px;
	height: 25px;
	justify-content: center;
	left: 50%;
	list-style: none;
	margin: 0;
	max-width: calc(100% - 40px);
	padding: 0;
	position: absolute;
	transform: translateX(-50%);
	width: 1153px;
	z-index: 3;
}

.hero__trust--trust-2 {
	opacity: 0.5;
}

.hero__trust-item {
	align-items: center;
	color: var(--hero-trust-text);
	display: inline-flex;
	flex: 0 0 auto;
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	gap: 8px;
	height: 25px;
	letter-spacing: 0;
	line-height: 16px;
	margin: 0;
	padding: 0;
}

.hero__trust-check {
	display: block;
	flex-shrink: 0;
	height: 8px;
	object-fit: contain;
	width: 11px;
}

.hero__trust-label {
	color: var(--hero-trust-text);
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 16px;
	white-space: nowrap;
}

.hero__trust-logo {
	display: block;
	flex-shrink: 0;
	height: 25px;
	object-fit: contain;
	width: auto;
}

.hero__trust-logo--guru {
	height: 25px;
	width: 55px;
}

.hero__trust-logo--trustpilot {
	height: 25px;
	width: 53px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 1100px) {
	.hero__inner {
		padding: 80px 16px 160px;
	}

	.hero__trust {
		bottom: 24px;
		flex-wrap: wrap;
		gap: 12px 20px;
		height: auto;
		justify-content: center;
		max-width: calc(100% - 32px);
		width: 100%;
	}

	.hero__trust-item {
		height: auto;
	}

	.hero__trust-label {
		white-space: normal;
	}
}

/* Mobile — Figma: padding 54 / 13 / 121, gap eyebrow→title 12px, no gradient, no trust */
@media (max-width: 768px) {
	.hero__gradient {
		display: none;
	}

	.hero__inner {
		align-items: flex-start;
		padding: 100px 13px 50px;
	}

	.hero__content--desktop {
		display: none;
	}

	.hero__content--mobile {
		align-items: flex-start;
		display: flex;
		margin: 0;
		max-width: 100%;
		text-align: left;
		width: 100%;
	}

	.hero__content--mobile > * {
		margin-left: 0;
		margin-right: 0;
		text-align: left;
	}

	.hero__content--mobile .hero__eyebrow {
		color: #ffffff;
		display: flex;
		align-items: center;
		font-family: "Open Sans", sans-serif;
		font-size: 17px;
		font-style: normal;
		font-weight: 400;
		letter-spacing: 0;
		line-height: 20px;
		margin: 0 0 12px;
		text-align: left;
		text-shadow:
			0 2px 4px rgba(0, 0, 0, 0.3),
			0 2px 4px rgba(0, 0, 0, 0.5),
			0 2px 4px rgba(0, 0, 0, 0.8),
			0 2px 4px #000000,
			0 0 23.9px rgba(0, 0, 0, 0.36),
			0 0 31.2px #000000;
		text-transform: uppercase;
		width: 71px;
	}

	.hero__content--mobile .hero__title {
		align-items: flex-start;
		color: #ffffff;
		display: flex;
		flex-direction: column;
		font-family: "Open Sans", sans-serif;
		font-style: normal;
		font-weight: 700;
		letter-spacing: 0;
		margin: 0 0 20px;
		text-align: left;
		text-shadow:
			0 2px 4px rgba(0, 0, 0, 0.3),
			0 2px 4px rgba(0, 0, 0, 0.5),
			0 2px 4px rgba(0, 0, 0, 0.8),
			0 2px 4px #000000,
			0 0 23.9px rgba(0, 0, 0, 0.36),
			0 0 31.2px #000000;
		text-transform: none;
		width: 280px;
	}

	.hero__content--mobile .hero__title-line {
		display: block;
		margin: 0;
		padding: 0;
	}

	/* Figma: "Estatus superior -" — 32/40, 280px */
	.hero__content--mobile .hero__title-line--lg {
		font-size: 32px;
		line-height: 40px;
		width: 280px;
	}

	/* Figma: "más recompensas" — 24/32, 218px */
	.hero__content--mobile .hero__title-line--sm {
		font-size: 24px;
		line-height: 32px;
		width: 218px;
	}

	.hero__content--mobile .hero__cta {
		background-color: var(--hero-cta-bg);
		background-image: var(--hero-cta-bg-image, none);
		background-position: center;
		background-repeat: no-repeat;
		background-size: 100% 100%;
		border: 1px solid var(--hero-cta-bg);
		border-radius: var(--hero-cta-radius);
		box-sizing: border-box;
		color: var(--hero-cta-text);
		font-size: 19px;
		font-weight: 700;
		height: auto;
		line-height: 16px;
		padding: 31px 24px;
		width: auto;
	}

	.hero__content--mobile .hero__cta:hover {
		color: var(--hero-cta-text);
	}

	.hero__trust {
		display: none;
	}
}

/* Variant 2 — Figma frame 1920×580; type scales with banner width */
.hero--banner-2 {
	--hero-cta-bg: #7c0e53;
	--hero-cta-text: #ffffff;
	--hero-desc: #ffffff;
	--hero-font: Rubik, Inter, sans-serif;
	--hero-title: #ffe100;
	aspect-ratio: 1920 / 580;
	background: transparent;
	container-name: hero-b2;
	container-type: inline-size;
	line-height: 1;
	max-width: 1920px;
	min-height: 0;
	width: 100%;
}

.hero--banner-2 .hero__bg {
	height: 100%;
	object-fit: cover;
	object-position: center center;
	width: 100%;
}

.hero--banner-2 .hero__inner {
	align-items: flex-start;
	bottom: 0;
	box-sizing: border-box;
	height: 100%;
	justify-content: center;
	left: 0;
	min-height: 0;
	padding: clamp(32px, 2.9167cqw, 56px) clamp(24px, 2.0833cqw, 40px) clamp(32px, 2.9167cqw, 56px) clamp(28px, 2.9167cqw, 56px);
	position: absolute;
	right: 0;
	top: 0;
	width: 100%;
}

.hero--banner-2 .hero__content {
	align-items: flex-start;
	margin: 0;
	margin-left: 16%;
	max-width: min(845px, 44.01cqw);
	text-align: left;
	width: 100%;
}

.hero--banner-2 .hero__content > * {
	margin-left: 0;
	margin-right: 0;
	text-align: left;
}

.hero--banner-2 .hero__eyebrow,
.hero--banner-2 .hero__desc,
.hero--banner-2 .hero__offer-amount,
.hero--banner-2 .hero__offer-extra,
.hero--banner-2 .hero__cta {
	line-height: 1;
}

.hero--banner-2 .hero__eyebrow {
	color: var(--hero-eyebrow);
	font-family: Rubik, var(--hero-font);
	font-size: clamp(28px, 3.125cqw, 60px);
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 clamp(16px, 1.5625cqw, 30px);
	text-align: left;
	text-transform: uppercase;
	width: 100%;
}

.hero--banner-2 .hero__desc {
	color: var(--hero-desc);
	font-family: Rubik, var(--hero-font);
	font-size: clamp(14px, 1.0417cqw, 20px);
	font-weight: 400;
	letter-spacing: 0;
	margin: 0 0 clamp(16px, 1.5cqw, 28px);
	max-width: 85%;
	text-transform: none;
}

.hero--banner-2 .hero__offer {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	width: auto;
}

.hero--banner-2 .hero__offer-amount,
.hero--banner-2 .hero__offer-extra {
	color: #ffe100;
	display: inline-block;
	font-family: Rubik, var(--hero-font);
	font-weight: 800;
	letter-spacing: 0;
	padding: 0;
	text-align: left;
	text-transform: none;
	width: auto;
}

.hero--banner-2 .hero__offer-amount {
	font-size: clamp(40px, 4.1667cqw, 80px);
	margin: 0 0 clamp(12px, 1.3021cqw, 25px);
}

.hero--banner-2 .hero__offer-extra {
	font-size: clamp(24px, 2.1354cqw, 41px);
	margin: 0 0 clamp(16px, 1.7188cqw, 33px);
}

.hero--banner-2 .hero__cta {
	background-color: var(--hero-cta-bg);
	background-image: var(--hero-cta-bg-image, none);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	border: none;
	border-radius: var(--hero-cta-radius);
	box-sizing: border-box;
	color: var(--hero-cta-text);
	font-family: Montserrat, sans-serif;
	font-size: clamp(14px, 1.3021cqw, 25px);
	font-weight: 700;
	height: auto;
	letter-spacing: 0;
	line-height: clamp(18px, 1.25cqw, 24px);
	margin-top: 0;
	padding: 31px clamp(16px, 1.1979cqw, 23px);
	white-space: nowrap;
	width: auto;
}

.hero--banner-2 .hero__trust {
	bottom: 8px;
}

@media (max-width: 1080px) {
	.hero--banner-2 .hero__inner {
		padding: 24px 20px 72px clamp(20px, 2.5cqw, 40px);
	}

	.hero--banner-2 .hero__content {
		margin-left: 8%;
		max-width: min(480px, 48cqw);
	}

	.hero--banner-2 .hero__eyebrow {
		font-size: clamp(22px, 2.4cqw, 32px);
		margin-bottom: 10px;
	}

	.hero--banner-2 .hero__desc {
		-webkit-box-orient: vertical;
		display: -webkit-box;
		font-size: 13px;
		-webkit-line-clamp: 2;
		line-height: 1.3;
		margin-bottom: 10px;
		overflow: hidden;
	}

	.hero--banner-2 .hero__offer-amount {
		font-size: clamp(32px, 3.4cqw, 44px);
		margin-bottom: 6px;
	}

	.hero--banner-2 .hero__offer-extra {
		font-size: clamp(18px, 2cqw, 26px);
		margin-bottom: 12px;
	}

	.hero--banner-2 .hero__cta {
		font-size: 14px;
		height: auto;
		line-height: 1;
		min-width: 0;
		padding: 31px 20px;
		width: auto;
	}

	.hero--banner-2 .hero__trust {
		bottom: 12px;
	}
}

@media (max-width: 1024px) {
	.hero--banner-2 {
		aspect-ratio: 1 / 1;
	}

	.hero--banner-2 .hero__bg {
		height: 100%;
		object-fit: cover;
		object-position: center center;
		width: 100%;
	}

	.hero--banner-2 .hero__inner {
		align-items: center;
		justify-content: center;
		padding: clamp(20px, 5cqw, 36px) clamp(14px, 4cqw, 24px) clamp(24px, 5.5cqw, 40px);
	}

	.hero--banner-2 .hero__content {
		align-items: center;
		margin-left: 0;
		max-width: min(420px, 100%);
		text-align: center;
		width: 100%;
	}

	.hero--banner-2 .hero__content > * {
		text-align: center;
	}

	.hero--banner-2 .hero__eyebrow {
		align-items: center;
		display: block;
		font-size: clamp(18px, 6.2cqw, 28px);
		margin-bottom: clamp(8px, 2.2cqw, 14px);
		text-align: center;
		text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
		width: 100%;
	}

	.hero--banner-2 .hero__desc {
		-webkit-box-orient: vertical;
		display: -webkit-box;
		font-size: clamp(11px, 3.4cqw, 14px);
		-webkit-line-clamp: 3;
		line-height: 1.35;
		margin-bottom: clamp(10px, 3cqw, 16px);
		max-width: 100%;
		overflow: hidden;
		text-align: center;
		text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
	}

	.hero--banner-2 .hero__offer {
		align-items: center;
		width: 100%;
	}

	.hero--banner-2 .hero__offer-amount {
		font-size: clamp(28px, 9cqw, 40px);
		margin-bottom: clamp(4px, 1.5cqw, 10px);
		text-align: center;
		text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
	}

	.hero--banner-2 .hero__offer-extra {
		font-size: clamp(18px, 5.5cqw, 24px);
		margin-bottom: clamp(12px, 3.5cqw, 20px);
		text-align: center;
		text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
	}

	.hero--banner-2 .hero__cta {
		border-radius: var(--hero-cta-radius);
		color: var(--hero-cta-text);
		font-size: clamp(12px, 3.6cqw, 14px);
		height: auto;
		line-height: 1;
		max-width: 100%;
		min-width: 0;
		padding: 31px clamp(16px, 5cqw, 22px);
		width: auto;
	}

	.hero--banner-2 .hero__cta:hover {
		color: var(--hero-cta-text);
	}
}
