:root {
	--nhh-bg: #050505;
	--nhh-panel: rgba(14, 14, 14, 0.72);
	--nhh-border: rgba(255, 255, 255, 0.08);
	--nhh-text: #f4f1eb;
	--nhh-muted: rgba(244, 241, 235, 0.72);
	--nhh-accent: #f2cf1d;
	--nhh-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.nhh-reto {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-height: 100vh;
	padding: 20px;
	color: var(--nhh-text);
}

.nhh-reto__noise {
	position: absolute;
	inset: 0;
	opacity: 0.2;
	background:
		linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%),
		repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0 2px, transparent 2px 6px);
	pointer-events: none;
}

.nhh-reto__panel {
	position: relative;
	width: min(1040px, 100%);
	max-width: 1040px;
	padding: 34px 38px;
	border: 1px solid var(--nhh-border);
	border-radius: 28px;
	background: var(--nhh-panel);
	backdrop-filter: blur(10px);
	box-shadow: var(--nhh-shadow);
}

.nhh-reto__step {
	display: none;
}

.nhh-reto__step.is-active {
	display: flex;
	flex-direction: column;
	animation: nhhFadeUp 0.35s ease;
}

.nhh-reto__eyebrow {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nhh-accent);
}

.nhh-reto__eyebrow-meta {
	color: var(--nhh-muted);
	font-weight: 500;
	letter-spacing: 0.12em;
}

.nhh-reto__title,
.nhh-reto__section-title {
	margin: 0 0 14px;
	text-transform: uppercase;
}

.nhh-reto__title {
	font-size: clamp(38px, 5.4vw, 74px);
}

.nhh-reto__title span {
	color: var(--nhh-accent);
}

.nhh-reto__section-title {
	font-size: clamp(24px, 3.1vw, 42px);
}

.nhh-reto__step[data-step="success"] .nhh-reto__section-title {
	font-family: 'Wild Youth', Helvetica, Arial, Lucida, sans-serif;
	font-size: clamp(42px, 5vw, 72px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
}

.nhh-reto__challenge-subtitle {
	margin: -4px 0 20px;
	font-size: clamp(14px, 1.3vw, 18px);
	line-height: 1.35;
	color: var(--nhh-accent);
}

.nhh-reto__step-title {
	margin: 0 0 14px;
	font-size: clamp(20px, 2.2vw, 30px);
	line-height: 1.1;
	text-transform: uppercase;
}

.nhh-reto__lead {
	max-width: 760px;
	margin: 0 0 20px;
	font-size: clamp(15px, 1.45vw, 21px);
	line-height: 1.2;
	color: var(--nhh-muted);
}

.nhh-reto__form {
	display: grid;
	gap: 12px;
}

.nhh-reto__upload {
	display: grid;
	gap: 10px;
}

.nhh-reto__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.35;
	color: var(--nhh-text);
}

.nhh-reto__consent input {
	margin-top: 2px;
}

.nhh-reto__consent-copy {
	margin: -4px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--nhh-muted);
}

.nhh-reto__link {
	width: fit-content;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--nhh-accent);
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

.nhh-reto__modal[hidden] {
	display: none;
}

.nhh-reto__modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.nhh-reto__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.nhh-reto__modal-dialog {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: min(80vh, 760px);
	padding: 28px 24px 24px;
	border: 1px solid var(--nhh-border);
	border-radius: 24px;
	background: rgba(15, 15, 15, 0.96);
	box-shadow: var(--nhh-shadow);
	overflow: auto;
}

.nhh-reto__modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--nhh-text);
	font-size: 24px;
	cursor: pointer;
}

.nhh-reto__modal-title {
	margin: 0 0 16px;
	font-size: 24px;
	text-transform: uppercase;
}

.nhh-reto__modal-copy {
	display: grid;
	gap: 14px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--nhh-muted);
}

.nhh-reto__input, input[type="text"], input[type="email"] {
	width: 100%;
	padding: 16px 18px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
		rgba(17, 17, 17, 0.92);
	color: var(--nhh-text);
	font-size: 16px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nhh-reto__input::placeholder {
	color: rgba(244, 241, 235, 0.9);
}

.nhh-reto__input:hover,
.nhh-reto__input:focus {
	border-color: rgba(242, 207, 29, 0.9);
	color: rgba(242, 207, 29, 0.9)!important;
	outline: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.04),
		0 0 0 1px rgba(242, 207, 29, 0.15);
}

.nhh-reto__input:hover::placeholder,
.nhh-reto__input:focus::placeholder {
	color: rgba(242, 207, 29, 0.9);
}

.nhh-reto__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 999px;
	background: transparent;
	color: var(--nhh-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.nhh-reto__button.is-loading::after {
	content: "";
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: nhhSpin 0.8s linear infinite;
}

.nhh-reto__actions .nhh-reto__button--ghost[href] {
	justify-content: center;
	text-align: center;
}

.nhh-reto__button--ghost {
	background: transparent;
	color: var(--nhh-text);
}

@media (min-width: 768px) {
	.nhh-reto__button--selfie {
		display: none;
	}
}

.nhh-reto__button[data-next],
.nhh-reto__button[data-next-challenge-step],
.nhh-reto__button[type="submit"] {
	background: var(--nhh-accent);
	border-color: var(--nhh-accent);
	color: #111;
	box-shadow: 0 10px 24px rgba(242, 207, 29, 0.22);
}

.nhh-reto__button:hover,
.nhh-reto__button:focus {
	border-color: rgba(242, 207, 29, 0.95);
	color: var(--nhh-accent);
	outline: none;
	box-shadow: 0 0 0 1px rgba(242, 207, 29, 0.12);
}

.nhh-reto__button[data-next]:hover,
.nhh-reto__button[data-next]:focus,
.nhh-reto__button[data-next-challenge-step]:hover,
.nhh-reto__button[data-next-challenge-step]:focus,
.nhh-reto__button[type="submit"]:hover,
.nhh-reto__button[type="submit"]:focus {
	background: #f6dc54;
	border-color: #f6dc54;
	color: #111;
	box-shadow: 0 12px 28px rgba(242, 207, 29, 0.28);
}

.nhh-reto__button:disabled,
.nhh-reto__button[aria-disabled="true"] {
	opacity: 0.38;
	cursor: not-allowed;
	border-color: rgba(255, 255, 255, 0.24);
	color: rgba(244, 241, 235, 0.45);
	box-shadow: none;
}

.nhh-reto__button[data-back] {
	min-height: 42px;
	padding: 0 18px;
	font-size: 11px;
	letter-spacing: 0.06em;
	opacity: 0.82;
}

.nhh-reto__button:disabled:hover,
.nhh-reto__button:disabled:focus,
.nhh-reto__button[aria-disabled="true"]:hover,
.nhh-reto__button[aria-disabled="true"]:focus {
	border-color: rgba(255, 255, 255, 0.24);
	color: rgba(244, 241, 235, 0.45);
	box-shadow: none;
}

.nhh-reto__message {
	min-height: 20px;
	margin: 0;
	font-size: 13px;
	color: var(--nhh-accent);
}

.nhh-reto__progress {
	width: 100%;
	height: 6px;
	margin: 0 0 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.nhh-reto__progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #f2cf1d 0%, #f4e98b 100%);
	transition: width 0.3s ease;
}

.nhh-reto__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.nhh-reto__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: end;
	min-height: 132px;
	padding: 16px;
	border-radius: 18px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
		radial-gradient(circle at top left, rgba(242, 207, 29, 0.18), transparent 50%);
	color: var(--nhh-text);
	text-align: left;
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nhh-reto__card span {
	position: relative;
	z-index: 1;
}

.nhh-reto__card--celebration {
	align-items: flex-start;
	text-align: left;
}

.nhh-reto__card--celebration i {
	position: relative;
	z-index: 1;
	font-size: 28px;
	color: var(--nhh-accent);
}

.nhh-reto__card--celebration span {
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 600;
	line-height: 1.05;
	text-wrap: balance;
}

.nhh-reto__grid--companion .nhh-reto__card {
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	min-height: 150px;
	border-radius: 18px;
	overflow: hidden;
}

.nhh-reto__grid--companion {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nhh-reto__card--image {
	position: relative;
	align-items: flex-end;
	background-color: #111;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.nhh-reto__card--image::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.04) 30%, rgba(0, 0, 0, 0.82) 72%, rgba(0, 0, 0, 0.98) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.92) 100%);
}

.nhh-reto__card--image span {
	display: block;
	width: 100%;
	margin-top: auto;
	align-self: stretch;
	text-align: left;
	font-size: clamp(14px, 1.15vw, 17px);
	font-weight: 500;
	line-height: 1.1;
	text-wrap: balance;
}

.nhh-reto__card--solo {
	background-image: url("../img/solo.webp");
}

.nhh-reto__card--pareja {
	background-image: url("../img/pareja.webp");
}

.nhh-reto__card--familia {
	background-image: url("../img/familia.webp");
}

.nhh-reto__card--amigos {
	background-image: url("../img/amigos.webp");
}

.nhh-reto__card--leveluppers {
	background-image: url("../img/leveluppers.webp");
}

.nhh-reto__card--comp-trabajo {
	background-image: url("../img/comp_trabajo.webp");
}

.nhh-reto__card--networking {
	background-image: url("../img/networking.webp");
}

.nhh-reto__card:hover,
.nhh-reto__card.is-selected {
	transform: translateY(-4px);
	border-color: rgba(242, 207, 29, 0.72);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.nhh-reto__card.is-disabled,
.nhh-reto__card:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	filter: grayscale(1);
	transform: none;
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: none;
}

.nhh-reto__card--image:hover,
.nhh-reto__card--image.is-selected {
	border-color: rgba(255, 224, 48, 0.9);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
}

.nhh-reto__card--image.is-disabled span,
.nhh-reto__card--image:disabled span {
	color: rgba(255, 255, 255, 0.72);
}

.nhh-reto__card.is-disabled:hover,
.nhh-reto__card:disabled:hover {
	transform: none;
	box-shadow: none;
}

.nhh-reto__card--image.is-selected span,
.nhh-reto__card--image:hover span {
	color: #ffe100;
}

.nhh-reto__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@keyframes nhhFadeUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes nhhSpin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 980px) {
	.nhh-reto {
		display: block;
		min-height: auto;
		padding: 24px 16px;
	}

	.nhh-reto__panel {
		padding: 28px;
		width: 100%;
		max-width: 100%;
	}

	.nhh-reto__step.is-active {
		display: block;
	}

	.nhh-reto__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nhh-reto__grid--companion .nhh-reto__card {
		min-height: 280px;
	}

	.nhh-reto__grid--companion {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.nhh-reto {
		padding: 24px 12px;
	}

	.nhh-reto__panel {
		padding: 22px;
		border-radius: 20px;
	}

	.nhh-reto__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.nhh-reto__card {
		min-height: 156px;
		padding: 20px 18px;
		font-size: 24px;
	}

	.nhh-reto__grid--companion .nhh-reto__card {
		min-height: 240px;
		padding: 20px 18px;
		border-radius: 22px;
	}

	.nhh-reto__grid--companion {
		grid-template-columns: 1fr;
	}

	.nhh-reto__card--image span {
		font-size: 28px;
		line-height: 1.08;
	}

	.nhh-reto__card--celebration span {
		font-size: 24px;
		line-height: 1.08;
	}

	.nhh-reto__card--celebration i {
		font-size: 34px;
	}

	.nhh-reto__step-title {
		font-size: 30px;
		line-height: 1.08;
	}

	.nhh-reto__lead {
		font-size: 20px;
		line-height: 1.28;
	}

	.nhh-reto__actions {
		flex-direction: column;
	}

	.nhh-reto__button[data-next],
	.nhh-reto__button[data-next-challenge-step],
	.nhh-reto__button[type="submit"] {
		order: 1;
		width: 100%;
	}

	.nhh-reto__button[data-back] {
		order: 2;
		align-self: flex-start;
		min-height: 36px;
		padding: 0 14px;
		font-size: 10px;
	}

	.nhh-reto__actions .nhh-reto__button--ghost[href] {
		order: 3;
		width: 100%;
	}
}
