:root {
	--white: #ffffff;
	--blue: #133A63;
	--orange: #F26A2E;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
	color: var(--blue);
	background: #f6f7fb;
	/* suave, sin efectos */
}

.page {
	min-height: 100%;
	display: grid;
	place-items: center;
	padding: 24px;
}

.card {
	width: min(520px, 100%);
	background: #fff;
	border-radius: 18px;
	padding: 22px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

/* Branding mínimo */
.brand-mini {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 16px;
}

.logo-badge {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--blue);
	color: #fff;
	font-weight: 800;
}

.brand-mini h1 {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
}

.brand-mini p {
	margin: 3px 0 0;
	font-size: 12px;
	color: #182C5Caa;
}

/* Tabs */
.tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #182C5C0d;
	padding: 6px;
	border-radius: 12px;
	margin-bottom: 16px;
}

.tab {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 10px 12px;
	border-radius: 10px;
	font-weight: 600;
	color: #182C5Caa;
	cursor: pointer;
}

.tab[aria-selected="true"] {
	background: #fff;
	color: var(--blue);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

/* Form */
.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

label {
	font-size: 13px;
	font-weight: 600;
}

input,
select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #182C5C33;
	border-radius: 12px;
	background: #fff;
	outline: none;
	color: var(--blue);
}

input::placeholder {
	color: #182C5C66;
}

input:focus,
select:focus {
	border-color: var(--orange);
	box-shadow: 0 0 0 4px #E94F1C22;
}

.row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

@media (min-width:720px) {
	.row.two {
		grid-template-columns: 1fr 1fr;
	}
}

.actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.link {
	color: var(--orange);
	text-decoration: none;
}

.link:hover {
	text-decoration: underline;
}

.btn {
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 0;
	background: var(--orange);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.btn:hover {
	filter: brightness(.98);
}

.muted {
	color: #182C5C99;
	font-size: 12px;
	text-align: center;
	margin-top: 12px;
}

.checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
}

.checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--orange);
}

.hidden {
	display: none !important;
}

.pw-toggle {
	background: none;
	border: 0;
	color: var(--orange);
	cursor: pointer;
	font-size: 12px;
	padding: 0;
}






:root {
	--white: #ffffff;
	--blue: #182C5C;
	--orange: #E94F1C;

	/* Ajustables */
	--bg-img: url("/img/fondo-login.jpeg");
	/* <-- TU IMAGEN */
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
	color: var(--blue);

	/* ✅ Fondo con imagen */
	background:
		linear-gradient(120deg, rgba(24, 44, 92, .72), rgba(233, 79, 28, .15)),
		var(--bg-img);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	/* se ve más pro en desktop */
	overflow-x: hidden;
}

/* ✅ Overlay extra + “ruido” muy suave (opcional) */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .14), transparent 55%),
		radial-gradient(circle at 80% 0%, rgba(233, 79, 28, .12), transparent 50%),
		radial-gradient(circle at 70% 90%, rgba(2, 132, 199, .10), transparent 55%),
		linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
	mix-blend-mode: normal;
}

/* Layout */
.page {
	min-height: 100%;
	display: grid;
	place-items: center;
	padding: 24px;
	position: relative;
	z-index: 1;
	/* por encima del overlay */
}

/* ✅ Card con look más moderno (glass suave) */
.card {
	width: min(520px, 100%);
	border-radius: 18px;
	padding: 22px;

	background: rgba(255, 255, 255, .92);
	border: 1px solid rgba(255, 255, 255, .40);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .22);

	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* (Opcional) borde inferior “marca” */
.card::after {
	content: "";
	display: block;
	height: 3px;
	margin-top: 14px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(233, 79, 28, .95), transparent);
	opacity: .9;
}

/* Tabs */
.tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: rgba(24, 44, 92, .08);
	padding: 6px;
	border-radius: 12px;
	margin-bottom: 16px;
}

.tab {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 10px 12px;
	border-radius: 10px;
	font-weight: 600;
	color: rgba(24, 44, 92, .65);
	cursor: pointer;
}

.tab[aria-selected="true"] {
	background: rgba(255, 255, 255, .96);
	color: var(--blue);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .10);
}

/* Form */
.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

label {
	font-size: 13px;
	font-weight: 600;
}

input,
select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(24, 44, 92, .22);
	border-radius: 12px;
	background: rgba(255, 255, 255, .96);
	outline: none;
	color: var(--blue);
}

input::placeholder {
	color: rgba(24, 44, 92, .50);
}

input:focus,
select:focus {
	border-color: var(--orange);
	box-shadow: 0 0 0 4px rgba(233, 79, 28, .14);
}

.row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

@media (min-width:720px) {
	.row.two {
		grid-template-columns: 1fr 1fr;
	}
}

.actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.link {
	color: var(--orange);
	text-decoration: none;
}

.link:hover {
	text-decoration: underline;
}

.btn {
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 0;
	background: var(--orange);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(233, 79, 28, .18);
}

.btn:hover {
	filter: brightness(.98);
}

.muted {
	color: rgba(24, 44, 92, .60);
	font-size: 12px;
	text-align: center;
	margin-top: 12px;
}

.checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
}

.checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--orange);
}

.hidden {
	display: none !important;
}

.pw-toggle {
	background: none;
	border: 0;
	color: var(--orange);
	cursor: pointer;
	font-size: 12px;
	padding: 0;
}

/* ✅ Mejoras responsive + rendimiento */
@media (max-width:480px) {
	.page {
		padding: 16px;
	}

	.card {
		padding: 18px;
	}

	body {
		background-attachment: scroll;
	}

	/* mejor en móviles */
}

.panels {
	position: relative;
	overflow: hidden;
	transition: height 260ms ease;
	will-change: height;
}

.form {
	transition: opacity 220ms ease, transform 220ms ease;
	will-change: opacity, transform;
}

.form.is-active {
	opacity: 1;
	transform: translateY(0);
	position: relative;
}

.form.is-hidden {
	opacity: 0;
	transform: translateY(8px);
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* ── Header institucional ───────────────────────────────── */
.header-inst {
	text-align: center;
	margin-bottom: 20px;
	padding-bottom: 18px;
	border-bottom: 2px solid rgba(24, 44, 92, .10);
}

.header-inst .logo-badge {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--blue);
	color: #fff;
	font-weight: 800;
	font-size: 20px;
	display: inline-grid;
	place-items: center;
	margin-bottom: 10px;
}

.header-inst h1 {
	margin: 0 0 2px;
	font-size: 17px;
	font-weight: 700;
	color: var(--blue);
	letter-spacing: -.3px;
}

.header-inst p {
	margin: 0;
	font-size: 12px;
	color: rgba(24, 44, 92, .55);
	font-weight: 500;
}

/* ── Quitar barra naranja inferior ──────────────────────── */
.card::after {
	display: none !important;
}

/* ── Link crear cuenta ──────────────────────────────────── */
.link-crear-cuenta {
	display: block;
	text-align: center;
	font-size: 13px;
	color: rgba(24, 44, 92, .60);
	margin-top: 14px;
}

.link-crear-cuenta a {
	color: var(--orange);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.link-crear-cuenta a:hover {
	text-decoration: underline;
}

/* ── Volver al login ────────────────────────────────────── */
.link-volver {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(24, 44, 92, .55);
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	margin-bottom: 18px;
}

.link-volver:hover {
	color: var(--blue);
}

/* ── Título del formulario de registro ──────────────────── */
.register-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--blue);
	margin: 0 0 18px;
}

/* ── Política de privacidad ─────────────────────────────── */
.privacy-block {
	background: rgba(233, 79, 28, .04);
	border: 1px solid rgba(233, 79, 28, .18);
	border-radius: 14px;
	padding: 14px;
	margin-bottom: 14px;
}

.privacy-block .privacy-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--blue);
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 7px;
}

.privacy-block .privacy-title svg {
	flex-shrink: 0;
}

.privacy-scroll {
	max-height: 120px;
	overflow-y: auto;
	font-size: 12px;
	line-height: 1.6;
	color: rgba(24, 44, 92, .70);
	margin-bottom: 12px;
	padding-right: 4px;
}

.privacy-scroll::-webkit-scrollbar {
	width: 4px;
}

.privacy-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.privacy-scroll::-webkit-scrollbar-thumb {
	background: rgba(24, 44, 92, .2);
	border-radius: 99px;
}

.privacy-check-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.privacy-check-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin-top: 1px;
	accent-color: var(--orange);
	cursor: pointer;
}

.privacy-check-row label {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--blue);
	cursor: pointer;
	line-height: 1.5;
}

.privacy-check-row label a {
	color: var(--orange);
	text-decoration: underline;
}

/* ── Modal política ─────────────────────────────────────── */
.modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	backdrop-filter: blur(3px);
	z-index: 1000;
	place-items: center;
	padding: 20px;
}

.modal-overlay.open {
	display: grid;
}

.modal-box {
	background: #fff;
	border-radius: 18px;
	padding: 28px;
	max-width: 540px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.modal-box h2 {
	margin: 0 0 16px;
	font-size: 18px;
	color: var(--blue);
}

.modal-box p,
.modal-box li {
	font-size: 13px;
	line-height: 1.7;
	color: rgba(24, 44, 92, .75);
}

.modal-box ul {
	padding-left: 18px;
}

.modal-close {
	margin-top: 20px;
	width: 100%;
	padding: 11px;
	border-radius: 10px;
	border: 0;
	background: var(--blue);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* ── Panel recuperar contraseña ────────────────────────── */
.reset-step {
	display: none;
}

.reset-step.active {
	display: block;
}

.step-indicator {
	display: flex;
	gap: 6px;
	margin-bottom: 18px;
}

.step-dot {
	flex: 1;
	height: 3px;
	border-radius: 99px;
	background: rgba(24, 44, 92, .15);
	transition: background .3s;
}

.step-dot.done {
	background: var(--orange);
}

.reset-info {
	font-size: 12.5px;
	color: rgba(24, 44, 92, .60);
	margin: -10px 0 16px;
	line-height: 1.5;
}

.reset-success {
	text-align: center;
	padding: 10px 0;
}

.reset-success .icon-ok {
	font-size: 40px;
	margin-bottom: 10px;
}

.reset-success p {
	font-size: 13.5px;
	color: rgba(24, 44, 92, .70);
	line-height: 1.6;
}

.btn-outline {
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1.5px solid rgba(24, 44, 92, .25);
	background: transparent;
	color: var(--blue);
	font-weight: 600;
	cursor: pointer;
	margin-top: 8px;
	font-size: 13px;
}

.btn-outline:hover {
	border-color: var(--blue);
}

.codigo-input {
	text-align: center;
	font-size: 22px !important;
	font-weight: 700 !important;
	letter-spacing: 6px;
	text-transform: uppercase;
}

.reset-error {
	font-size: 12px;
	color: #dc2626;
	margin-top: 6px;
	display: none;
}

.reset-error.show {
	display: block;
}

/* error privacidad */
.privacy-error {
	font-size: 12px;
	color: #dc2626;
	margin-top: 8px;
	display: none;
}

.privacy-error.show {
	display: block;
}

/* ── Accesos destacados debajo del login ───────────────── */
.access-links-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.access-link-card {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	border-radius: 14px;
	padding: 13px 14px;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.access-link-card:hover {
	transform: translateY(-1px);
}

.access-link-card--primary {
	border: 1px solid rgba(242, 106, 46, .22);
	background: linear-gradient(135deg, rgba(242, 106, 46, .10), rgba(242, 106, 46, .16));
	box-shadow: 0 10px 24px rgba(242, 106, 46, .10);
}

.access-link-card--primary:hover {
	border-color: rgba(242, 106, 46, .36);
	box-shadow: 0 14px 28px rgba(242, 106, 46, .14);
}

.access-link-card--secondary {
	border: 1px solid rgba(19, 58, 99, .14);
	background: rgba(19, 58, 99, .05);
	box-shadow: 0 8px 20px rgba(19, 58, 99, .06);
}

.access-link-card--secondary:hover {
	border-color: rgba(19, 58, 99, .26);
	background: rgba(19, 58, 99, .07);
	box-shadow: 0 12px 24px rgba(19, 58, 99, .09);
}

.access-link-icon {
	width: 42px;
	height: 42px;
	min-width: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .03em;
}

.access-link-card--primary .access-link-icon {
	background: var(--orange);
	color: #fff;
	box-shadow: 0 8px 16px rgba(242, 106, 46, .22);
}

.access-link-card--secondary .access-link-icon {
	background: var(--blue);
	color: #fff;
	box-shadow: 0 8px 16px rgba(19, 58, 99, .16);
}

.access-link-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.access-link-content strong {
	font-size: 13.5px;
	line-height: 1.2;
	color: var(--blue);
	font-weight: 700;
}

.access-link-content small {
	font-size: 11.5px;
	line-height: 1.35;
	color: rgba(19, 58, 99, .68);
	font-weight: 500;
}