/* LeyREP Suite — formulario del newsletter y pantallas de confirmación o baja. */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.lrs-nl,
.lrs-nlp {
	--nl-ink: #1a1c1e;
	--nl-mut: #5f6b72;
	--nl-line: #e4e7eb;
	--nl-soft: #f5f6f8;
	--nl-blue: #3b6890;
	--nl-blue-d: #2f5677;
	--nl-navy: #16324b;
	--nl-green: #74b852;
	--nl-green-d: #3a6825;
	--nl-err: #b42318;
	--nl-font: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--nl-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ───────────── Formulario ───────────── */
.lrs-nl {
	container-type: inline-size;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	color: var(--nl-ink);
	font-family: var(--nl-font);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.lrs-nl *,
.lrs-nl *::before,
.lrs-nl *::after { box-sizing: border-box; }

.lrs-nl--light { margin: 48px 0 8px; border-radius: 16px; background: var(--nl-soft); }
.lrs-nl--light .lrs-nl__in { padding: 26px 22px; }
@container (min-width: 600px) {
	.lrs-nl--light .lrs-nl__in { padding: 32px 36px 30px; }
}

.lrs-nl__text { margin: 0 0 20px; }
.lrs-nl .lrs-nl__title {
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	color: var(--nl-ink);
	font-family: var(--nl-font);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.02em;
	text-transform: none;
}
.lrs-nl .lrs-nl__desc { max-width: 58ch; margin: 0; padding: 0; color: var(--nl-mut); font-family: var(--nl-font); font-size: 15px; line-height: 1.55; }

.lrs-nl .lrs-nl__form { margin: 0; padding: 0; }
.lrs-nl__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: end; }
@container (min-width: 560px) {
	.lrs-nl__row { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto; }
	.lrs-nl__row--solo { grid-template-columns: minmax(0, 1fr) auto; }
}
.lrs-nl__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.lrs-nl .lrs-nl__label { display: block; margin: 0; padding: 0; color: var(--nl-ink); font-family: var(--nl-font); font-size: 13px; font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.lrs-nl .lrs-nl__opt { color: var(--nl-mut); font-weight: 400; }

.lrs-nl .lrs-nl__field .lrs-nl__input {
	display: block;
	width: 100%;
	max-width: none;
	height: 46px;
	min-height: 0;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #d3d9df;
	border-radius: 12px;
	background: #fff;
	color: var(--nl-ink);
	font-family: var(--nl-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	box-shadow: none;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s var(--nl-ease), box-shadow .15s var(--nl-ease), background-color .15s var(--nl-ease);
}
.lrs-nl .lrs-nl__field .lrs-nl__input::placeholder { color: #8a949b; opacity: 1; }
.lrs-nl .lrs-nl__field .lrs-nl__input:hover { border-color: #b9c2ca; }
.lrs-nl .lrs-nl__field .lrs-nl__input:focus { border-color: var(--nl-blue); box-shadow: 0 0 0 4px rgba(59, 104, 144, .16); }
.lrs-nl .lrs-nl__field .lrs-nl__input[aria-invalid="true"] { border-color: var(--nl-err); box-shadow: 0 0 0 4px rgba(180, 35, 24, .1); }

.lrs-nl .lrs-nl__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 46px;
	min-height: 0;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 12px;
	background: var(--nl-blue);
	color: #fff;
	font-family: var(--nl-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.005em;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s var(--nl-ease), transform .15s var(--nl-ease), opacity .15s var(--nl-ease);
	-webkit-tap-highlight-color: transparent;
}
@container (min-width: 560px) {
	.lrs-nl .lrs-nl__btn { width: auto; }
}
.lrs-nl .lrs-nl__btn:hover { background: var(--nl-blue-d); color: #fff; }
.lrs-nl .lrs-nl__btn:active { transform: scale(.98); }
.lrs-nl .lrs-nl__btn:focus { outline: 0; }
.lrs-nl .lrs-nl__btn:focus-visible { box-shadow: 0 0 0 4px rgba(59, 104, 144, .3); }
.lrs-nl .lrs-nl__btn[disabled] { cursor: progress; opacity: .8; }

.lrs-nl__spin { display: none; flex: none; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lrs-nl-spin .7s linear infinite; }
.lrs-nl.is-busy .lrs-nl__spin { display: inline-block; }

.lrs-nl .lrs-nl__err { margin: 8px 0 0; padding: 0; color: var(--nl-err); font-size: 13px; line-height: 1.4; }
.lrs-nl .lrs-nl__err:empty { display: none; }
.lrs-nl .lrs-nl__consent { margin: 14px 0 0; padding: 0; color: var(--nl-mut); font-size: 12.5px; line-height: 1.5; }
.lrs-nl .lrs-nl__consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lrs-nl .lrs-nl__consent a:hover { color: var(--nl-ink); }
.lrs-nl .lrs-nl__hp { position: absolute !important; top: auto; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.lrs-nl .lrs-nl__msg { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; font-size: 15px; font-weight: 500; line-height: 1.5; animation: lrs-nl-in .25s var(--nl-ease) both; }
.lrs-nl .lrs-nl__msg:empty { display: none; }
.lrs-nl .lrs-nl__msg svg { flex: none; width: 22px; height: 22px; }
.lrs-nl .lrs-nl__msg.is-ok { color: var(--nl-ink); }
.lrs-nl .lrs-nl__msg.is-ok svg { color: var(--nl-green-d); }
.lrs-nl .lrs-nl__msg.is-err { color: var(--nl-err); }
.lrs-nl.is-done .lrs-nl__form { display: none; }
.lrs-nl.is-done .lrs-nl__msg { margin-top: 0; font-size: 16px; }

/* Variante oscura (pie azul marino) */
.lrs-nl--dark { background: transparent; color: #fff; }
.lrs-nl--dark .lrs-nl__text { margin-bottom: 16px; }
.lrs-nl--dark .lrs-nl__title { color: #fff; font-size: 18px; }
.lrs-nl--dark .lrs-nl__desc { color: rgba(255, 255, 255, .72); font-size: 14px; }
.lrs-nl--dark .lrs-nl__label { color: rgba(255, 255, 255, .85); }
.lrs-nl--dark .lrs-nl__opt { color: rgba(255, 255, 255, .55); }
.lrs-nl--dark .lrs-nl__field .lrs-nl__input { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; }
.lrs-nl--dark .lrs-nl__field .lrs-nl__input::placeholder { color: rgba(255, 255, 255, .5); }
.lrs-nl--dark .lrs-nl__field .lrs-nl__input:hover { border-color: rgba(255, 255, 255, .34); }
.lrs-nl--dark .lrs-nl__field .lrs-nl__input:focus { border-color: rgba(255, 255, 255, .72); background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 4px rgba(255, 255, 255, .14); }
.lrs-nl--dark .lrs-nl__field .lrs-nl__input[aria-invalid="true"] { border-color: #ffb4a8; box-shadow: 0 0 0 4px rgba(255, 180, 168, .16); }
.lrs-nl--dark .lrs-nl__field .lrs-nl__input:-webkit-autofill { -webkit-text-fill-color: #fff; caret-color: #fff; box-shadow: inset 0 0 0 100px #2b4762; }
.lrs-nl--dark .lrs-nl__btn { background: #fff; color: var(--nl-navy); }
.lrs-nl--dark .lrs-nl__btn:hover { background: #e7edf3; color: var(--nl-navy); }
.lrs-nl--dark .lrs-nl__btn:focus-visible { box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.lrs-nl--dark .lrs-nl__err,
.lrs-nl--dark .lrs-nl__msg.is-err { color: #ffb4a8; }
.lrs-nl--dark .lrs-nl__consent { color: rgba(255, 255, 255, .6); }
.lrs-nl--dark .lrs-nl__consent a:hover { color: #fff; }
.lrs-nl--dark .lrs-nl__msg.is-ok { color: #fff; }
.lrs-nl--dark .lrs-nl__msg.is-ok svg { color: var(--nl-green); }

/* ───────────── Pantalla de confirmación o baja ───────────── */
.lrs-nlp {
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	padding: clamp(40px, 8vw, 96px) 20px;
	color: var(--nl-ink);
	font-family: var(--nl-font);
	-webkit-font-smoothing: antialiased;
}
.lrs-nlp *,
.lrs-nlp *::before,
.lrs-nlp *::after { box-sizing: border-box; }
.lrs-nlp__card {
	width: 100%;
	max-width: 560px;
	padding: 40px 36px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .06);
	text-align: center;
	animation: lrs-nl-in .3s var(--nl-ease) both;
}
.lrs-nlp__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin: 0 0 18px; border-radius: 999px; background: #eaf1f7; color: var(--nl-blue); }
.lrs-nlp__icon--ok { background: #edf7e8; color: var(--nl-green-d); }
.lrs-nlp .lrs-nlp__title { margin: 0 0 10px; padding: 0; color: var(--nl-ink); font-family: var(--nl-font); font-size: clamp(24px, 4vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; text-transform: none; }
.lrs-nlp .lrs-nlp__text { max-width: 44ch; margin: 0 auto; padding: 0; color: var(--nl-mut); font-family: var(--nl-font); font-size: 16px; line-height: 1.6; }
.lrs-nlp__form { margin-top: 24px; text-align: left; }
.lrs-nlp__form .lrs-nl--light { margin: 0; background: none; }
.lrs-nlp__form .lrs-nl--light .lrs-nl__in { padding: 0; }
.lrs-nlp__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.lrs-nlp .lrs-nlp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background: var(--nl-blue);
	color: #fff;
	font-family: var(--nl-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s var(--nl-ease), transform .15s var(--nl-ease);
}
.lrs-nlp .lrs-nlp__btn:hover { background: var(--nl-blue-d); color: #fff; }
.lrs-nlp .lrs-nlp__btn:active { transform: scale(.98); }
.lrs-nlp .lrs-nlp__btn:focus { outline: 0; }
.lrs-nlp .lrs-nlp__btn:focus-visible { box-shadow: 0 0 0 4px rgba(59, 104, 144, .3); }
.lrs-nlp .lrs-nlp__btn--ghost { background: #fff; color: var(--nl-ink); box-shadow: inset 0 0 0 1px #d3d9df; }
.lrs-nlp .lrs-nlp__btn--ghost:hover { background: var(--nl-soft); color: var(--nl-ink); }
.lrs-nlp .lrs-nlp__btn--ghost:focus-visible { box-shadow: inset 0 0 0 1px #d3d9df, 0 0 0 4px rgba(59, 104, 144, .3); }
.lrs-nlp__note { margin: 22px 0 0; }
.lrs-nlp .lrs-nlp__note p { margin: 0; padding: 0; color: var(--nl-mut); font-size: 14px; line-height: 1.5; }
.lrs-nlp .lrs-nlp__link { display: inline; margin: 0; padding: 0; border: 0; background: none; color: var(--nl-blue); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; box-shadow: none; }
.lrs-nlp .lrs-nlp__link:hover { color: var(--nl-blue-d); background: none; }
.lrs-nlp .lrs-nlp__link:focus-visible { outline: 2px solid var(--nl-blue); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 520px) {
	.lrs-nlp__card { padding: 32px 22px; }
	.lrs-nlp__actions .lrs-nlp__btn { width: 100%; }
}

@keyframes lrs-nl-spin { to { transform: rotate(360deg); } }
@keyframes lrs-nl-in { from { opacity: 0; transform: translateY(4px); } }

@media (prefers-reduced-motion: reduce) {
	.lrs-nl,
	.lrs-nl *,
	.lrs-nlp,
	.lrs-nlp * { animation: none !important; transition: none !important; }
	.lrs-nl.is-busy .lrs-nl__spin { display: none; }
}

/* Pie de móvil: formulario dentro de la tarjeta institucional */
.rep-hero-nl { width: 100%; max-width: 420px; margin: 22px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: left; }
.rep-hero-nl__t { margin: 0 0 12px; color: #fff; font: 600 15px/1.35 Inter, system-ui, sans-serif; text-align: center; }
.lrs-nl--hero .lrs-nl__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lrs-nl--hero .lrs-nl__consent { text-align: center; }
.rep-hero-compact:has(> .rep-hero-nl) { flex-wrap: wrap; }
.rep-hero-compact > .rep-hero-nl { flex: 1 1 100%; max-width: none; }
.rep-hero-compact > .rep-hero-nl > * { max-width: 460px; margin-inline: auto; }
/* En escritorio el pie completo ya trae el formulario: la tarjeta queda como estaba. */
@media (min-width: 1025px) { .rep-hero-compact > .rep-hero-nl { display: none; } .rep-hero-compact:has(> .rep-hero-nl) { flex-wrap: nowrap; } }
