/**
 * Alta «Únete a la red» — Figma 55:1177.
 */

.rea-unete-page {
	padding-top: 0 !important;
	background: #0e4f8e;
}

.rea-unete-page .entry-title,
.rea-unete-page .page-header,
.rea-unete-page .elementor-page-title {
	display: none;
}

.rea-unete-screen {
	position: relative;
	isolation: isolate;
	background: #0e4f8e;
	padding: var(--rea-header-offset, 168px) 24px 96px;
	overflow: hidden;
	transition: padding-top 0.25s ease;
}

/* Fondo Figma 55:1186 — 1920×913 anclado arriba (no full-bleed). */
.rea-unete-screen::before,
.rea-unete-screen::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: min(913px, 100%);
	pointer-events: none;
}

.rea-unete-screen::before {
	background: var(--rea-unete-bg) center top / cover no-repeat;
	opacity: 0.5;
	z-index: -2;
}

.rea-unete-screen::after {
	background: linear-gradient(to top, #0e4f8e 4%, rgba(14, 79, 142, 0) 32%);
	z-index: -1;
}

.rea-unete-screen__inner {
	position: relative;
	z-index: 1;
	max-width: 1359px;
	margin: 0 auto;
}

/* .rea-unete-back / .rea-back: estilos globales en style.css */

.rea-unete__card {
	display: grid;
	grid-template-columns: minmax(280px, 548px) minmax(0, 1fr);
	min-height: 640px;
	border-radius: 32px;
	overflow: hidden;
}

.rea-unete__aside {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 72px 48px 48px 64px;
	background: #32699f;
	color: #fff;
}

.rea-unete__eyebrow {
	margin: 0;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 20px;
	font-weight: 300;
	line-height: 1;
}

.rea-unete__eyebrow span {
	color: #ffbc22;
}

.rea-unete__aside h1 {
	margin: 0;
	max-width: 425px;
	color: #fff;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 60px;
	font-weight: 700;
	line-height: 1.1;
}

.rea-unete__lead {
	margin: 0;
	max-width: 425px;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 20px;
	font-weight: 300;
	line-height: 1.2;
}

.rea-unete__steps {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	list-style: none;
}

.rea-unete__steps li {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 40px;
	color: #fff;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
}

.rea-unete__steps li.is-current {
	color: #ffbc22;
	font-weight: 700;
	padding-left: 15px;
}

.rea-unete__steps li.is-current::after {
	content: "";
	position: absolute;
	left: 0;
	top: 60%;
	width: 7px;
	height: 7px;
	background: url("../images/unete-step.svg") center / contain no-repeat;
	transform: translateY(-50%);
}

.rea-unete__steps li.is-done {
	font-weight: 500;
}

.rea-unete__main {
	background: #fff;
	padding: 72px 56px 48px;
}

.rea-unete__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rea-unete__form h2,
.rea-unete__ok h2 {
	margin: 0 0 24px;
	color: #0c0f12;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.15;
}

.rea-unete__perfiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
}

.rea-perfil {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-height: 230px;
	margin: 0;
	padding: 20px;
	border: 0.5px solid #0f1d07;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.rea-perfil input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.rea-perfil:has(input:checked) {
	box-shadow: 0 0 10px #ffbc22;
}

.rea-perfil:has(input:focus-visible) {
	outline: 2px solid #0d3d6b;
	outline-offset: 2px;
}

.rea-perfil__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 8px;
	background: #0d3d6b;
	color: #fff;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rea-perfil__title {
	color: #0f1d07;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.05;
}

.rea-perfil__text {
	color: #0f1d07;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.2;
}

.rea-unete__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 20px;
}

.rea-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-family: "Hanken Grotesk", sans-serif;
}

.rea-field--full,
.rea-check,
.rea-unete__hint,
.rea-unete__privacy,
.rea-unete__sino,
.rea-unete__review {
	grid-column: 1 / -1;
}

.rea-field span,
.rea-unete__sino legend {
	color: #262626;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

.rea-field__req {
	color: #c0392b;
	font-weight: 700;
	text-decoration: none !important;
}

.rea-field input,
.rea-field select,
.rea-field textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	border: 1px solid rgba(15, 29, 7, 0.25);
	border-radius: 8px;
	background: #fff;
	color: #0c0f12;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 16px;
	line-height: 1.4;
	box-sizing: border-box;
}

.rea-field textarea {
	min-height: 120px;
	resize: vertical;
}

.rea-field input:focus,
.rea-field select:focus,
.rea-field textarea:focus {
	border-color: #0d3d6b;
	outline: 2px solid rgba(13, 61, 107, 0.25);
	outline-offset: 1px;
}

.rea-unete__hint {
	margin: 0 0 12px;
	color: #3d4a42;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.3;
}

.rea-unete__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}

.rea-chip {
	display: inline-flex;
	margin: 0;
	cursor: pointer;
}

.rea-chip input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.rea-chip span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid rgba(15, 29, 7, 0.3);
	border-radius: 999px;
	color: #0f1d07;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
}

.rea-chip:has(input:checked) span {
	border-color: #0d3d6b;
	background: #0d3d6b;
	color: #fff;
}

.rea-chip:has(input:focus-visible) span {
	outline: 2px solid #ffbc22;
	outline-offset: 2px;
}

.rea-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 18px 0 0;
	color: #0f1d07;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
	cursor: pointer;
}

.rea-check input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	flex: 0 0 auto;
	accent-color: #0d3d6b;
}

.rea-check a {
	color: #0d3d6b;
}

.rea-unete__sino {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin: 8px 0 0;
	padding: 0;
	border: 0;
}

.rea-unete__sino legend {
	width: 100%;
	margin-bottom: 4px;
	padding: 0;
}

.rea-unete__sino label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 16px;
}

.rea-unete__review {
	display: grid;
	gap: 12px;
	margin: 0 0 20px;
}

.rea-unete__review div {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: baseline;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(15, 29, 7, 0.12);
}

.rea-unete__review dt {
	margin: 0;
	color: #5c675f;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 14px;
	font-weight: 500;
}

.rea-unete__review dd {
	margin: 0;
	color: #0f1d07;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 16px;
}

.rea-unete__review button {
	padding: 0;
	border: 0;
	background: none;
	color: #0d3d6b;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.rea-unete__privacy {
	margin-top: 16px;
	color: #3d4a42;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 14px;
	line-height: 1.45;
}

.rea-unete__privacy summary {
	cursor: pointer;
	font-weight: 600;
	color: #0d3d6b;
}

.rea-unete__error {
	margin: 16px 0 0;
	color: #9d1c1c;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 15px;
	font-weight: 500;
}

.rea-unete__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 28px;
}

.rea-unete__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 70px;
	padding: 12px 40px;
	border: 0;
	border-radius: 60px;
	background: #0d3d6b;
	color: #fff;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.rea-unete__btn[hidden] {
	display: none;
}

.rea-unete__btn[data-next] {
	margin-left: auto;
}

.rea-unete__btn img {
	width: 16px;
	height: 16px;
	transform: rotate(90deg);
}

.rea-unete__btn--back img {
	transform: rotate(-90deg);
}

.rea-unete__btn:hover,
.rea-unete__btn:focus-visible {
	background: #082844;
	color: #fff;
}

.rea-unete__ok-kicker {
	margin: 0 0 8px;
	color: #0d3d6b;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.rea-unete__ok .rea-unete__btn {
	margin-top: 28px;
	margin-left: 0;
}

.rea-unete__card.is-sent .rea-unete__form {
	display: none;
}

@media (max-width: 1100px) {
	.rea-unete__aside h1 {
		font-size: 44px;
	}

	.rea-unete__form h2,
	.rea-unete__ok h2 {
		font-size: 32px;
	}

	.rea-unete__perfiles {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 860px) {
	.rea-unete-screen {
		padding: 132px 16px 64px;
	}

	.rea-unete__card {
		grid-template-columns: 1fr;
		border-radius: 24px;
	}

	.rea-unete__aside,
	.rea-unete__main {
		padding: 32px 22px;
	}

	.rea-unete__aside h1 {
		font-size: 36px;
	}

	.rea-unete__steps {
		margin-top: 12px;
	}

	.rea-unete__perfiles,
	.rea-unete__grid,
	.rea-unete__review div {
		grid-template-columns: 1fr;
	}

	.rea-perfil {
		min-height: 0;
	}

	.rea-unete__btn {
		width: 100%;
	}

	.rea-unete__btn[data-next] {
		margin-left: 0;
	}

	.rea-unete__actions {
		flex-direction: column-reverse;
	}
}
