/* ==========================================================
   LOGIN MODERNO - ESCUELA DE POSGRADO UNAS
   ========================================================== */
:root {
	--lg-emerald-950: #022c22;
	--lg-emerald-900: #064e3b;
	--lg-emerald-800: #065f46;
	--lg-emerald-700: #047857;
	--lg-emerald-600: #059669;
	--lg-emerald-500: #10b981;
	--lg-emerald-200: #a7f3d0;
	--lg-emerald-100: #d1fae5;
	--lg-emerald-50: #ecfdf5;
	--lg-gray-900: #111827;
	--lg-gray-700: #374151;
	--lg-gray-500: #6b7280;
	--lg-gray-300: #d1d5db;
	--lg-gray-200: #e5e7eb;
	--lg-gray-100: #f3f4f6;
	--lg-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body.lg-body {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body.lg-body {
	font-family: var(--lg-font);
	background-color: var(--lg-emerald-900);
	color: #fff;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.lg-body * {
	box-sizing: border-box;
}

/* ---------- Fondo ---------- */
.lg-bg {
	position: fixed;
	inset: 0;
	top: 0; right: 0; bottom: 0; left: 0;
	background: url("../img/campus-unas.webp") center center / cover no-repeat;
	z-index: 0;
	transform: scale(1.03);
	animation: lg-zoom 30s ease-in-out infinite alternate;
}

.lg-veil {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 1;
	background:
		radial-gradient(48rem 30rem at 100% 0%, rgba(14, 116, 144, .35), transparent 60%),
		linear-gradient(135deg, rgba(2, 44, 34, .92), rgba(6, 78, 59, .82) 45%, rgba(4, 120, 87, .62));
}

/* Partículas (entre el velo y el contenido) */
.lg-particles {
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

@keyframes lg-zoom {
	from { transform: scale(1.03); }
	to   { transform: scale(1.10); }
}

/* ---------- Layout ---------- */
.lg-wrapper {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.lg-main {
	flex: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}

/* ---------- Lado izquierdo (presentación) ---------- */
.lg-hero {
	flex: 1;
	max-width: 560px;
	animation: lg-fade-up .7s ease both;
}

.lg-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}

.lg-brand-logo {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: rgba(255, 255, 255, .95);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	animation: lg-float 5s ease-in-out infinite;
}

.lg-brand-logo img {
	width: 48px;
	height: auto;
}

.lg-brand-text small {
	display: block;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lg-emerald-200);
}

.lg-brand-text strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}

.lg-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	background: rgba(255, 255, 255, .10);
	border: 1px solid rgba(255, 255, 255, .20);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
}

.lg-chip i {
	color: var(--lg-emerald-200);
	font-size: 12px;
}

.lg-title {
	margin: 18px 0 12px;
	font-size: 46px;
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -.02em;
	color: #fff;
}

.lg-title span {
	background: linear-gradient(90deg, #6ee7b7, #a7f3d0 60%, #fde68a);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lg-subtitle {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(236, 253, 245, .82);
}

.lg-features {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lg-glass {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: transform .2s ease, background .2s ease;
}

.lg-glass:hover {
	transform: translateX(4px);
	background: rgba(255, 255, 255, .12);
}

.lg-glass-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .15);
	border: 1px solid rgba(255, 255, 255, .20);
}

.lg-glass-icon i {
	font-size: 17px;
	color: #fff;
}

.lg-glass strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
}

.lg-glass small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: rgba(236, 253, 245, .75);
}

.lg-tags {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---------- Tarjeta de login ---------- */
.lg-card-wrap {
	width: 100%;
	max-width: 440px;
	flex-shrink: 0;
	animation: lg-fade-up .7s .15s ease both;
}

.lg-card {
	background: #fff;
	color: var(--lg-gray-700);
	border-radius: 24px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .45);
	border: 1px solid rgba(0, 0, 0, .05);
	overflow: hidden;
}

.lg-card-head {
	padding: 28px 32px 0;
	text-align: center;
}

.lg-card-icon {
	margin: 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lg-emerald-50);
	border: 1px solid var(--lg-emerald-100);
	color: var(--lg-emerald-700);
}

.lg-card-icon i {
	font-size: 22px;
}

.lg-card-head h1 {
	margin: 14px 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: var(--lg-gray-900);
}

.lg-card-head p {
	margin: 0;
	font-size: 13px;
	color: var(--lg-gray-500);
}

.lg-card-body {
	padding: 22px 32px 30px;
}

.lg-field {
	margin-bottom: 16px;
}

.lg-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--lg-gray-700);
}

.lg-input-group {
	position: relative;
}

.lg-input-group > i.lg-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	color: #9ca3af;
	pointer-events: none;
	transition: color .15s ease;
	z-index: 1;
}

.lg-input-group:focus-within > i.lg-input-icon {
	color: var(--lg-emerald-600);
}

/* Inputs de PrimeFaces dentro de la tarjeta */
body.lg-body .lg-card .lg-input-group .ui-inputfield,
body.lg-body .lg-card .lg-input-group input {
	width: 100% !important;
	height: 46px;
	padding: 0 44px 0 42px !important;
	font-family: var(--lg-font);
	font-size: 14px !important;
	color: var(--lg-gray-900) !important;
	background: #f9fafb !important;
	border: 1px solid var(--lg-gray-300) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

body.lg-body .lg-card .lg-input-group .ui-inputfield:hover {
	border-color: #9ca3af !important;
}

body.lg-body .lg-card .lg-input-group .ui-inputfield:focus,
body.lg-body .lg-card .lg-input-group .ui-inputfield.ui-state-focus {
	background: #fff !important;
	border-color: var(--lg-emerald-500) !important;
	box-shadow: 0 0 0 4px rgba(16, 185, 129, .15) !important;
}

body.lg-body .lg-card .lg-input-group .ui-inputfield.ui-state-error {
	border-color: #f87171 !important;
	box-shadow: 0 0 0 4px rgba(248, 113, 113, .12) !important;
}

body.lg-body .lg-card .lg-input-group input::placeholder {
	color: #9ca3af;
}

.lg-toggle-pass {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #9ca3af;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.lg-toggle-pass:hover {
	color: var(--lg-emerald-700);
	background: var(--lg-emerald-50);
}

/* Captcha */
.lg-captcha {
	position: relative;
	border-radius: 12px;
	border: 1px dashed var(--lg-emerald-200);
	background: rgba(236, 253, 245, .5);
	padding: 6px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.lg-captcha:hover {
	border-color: var(--lg-emerald-500);
	background: var(--lg-emerald-50);
}

.lg-captcha canvas {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	background: #fff;
}

.lg-captcha-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 6px 0 10px;
	font-size: 11px;
	color: var(--lg-gray-500);
}

.lg-captcha-hint i {
	font-size: 11px;
	color: var(--lg-emerald-600);
}

body.lg-body .lg-card .lg-input-group input.lg-captcha-input {
	text-align: center;
	letter-spacing: .3em;
	font-weight: 600;
}

/* Botón principal */
body.lg-body .lg-card a.lg-btn,
body.lg-body .lg-card a.lg-btn:visited {
	width: 100%;
	height: 48px;
	margin-top: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--lg-emerald-700), var(--lg-emerald-600));
	color: #fff;
	font-family: var(--lg-font);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 20px -6px rgba(6, 78, 59, .45);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
	position: relative;
	overflow: hidden;
}

/* brillo que recorre el botón */
body.lg-body .lg-card a.lg-btn::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
	transform: skewX(-20deg);
	animation: lg-shine 4.5s ease-in-out 1.2s infinite;
}

body.lg-body .lg-card a.lg-btn:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 14px 24px -8px rgba(6, 78, 59, .55);
	color: #fff;
}

body.lg-body .lg-card a.lg-btn:active {
	transform: translateY(0);
}

body.lg-body .lg-card a.lg-btn:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(16, 185, 129, .3);
}

body.lg-body .lg-card a.lg-btn.is-busy {
	pointer-events: none;
	filter: saturate(.7) brightness(.95);
}

body.lg-body .lg-card a.lg-btn .lg-btn-spin {
	display: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	animation: lg-spin .7s linear infinite;
}

body.lg-body .lg-card a.lg-btn.is-busy .lg-btn-spin { display: inline-block; }
body.lg-body .lg-card a.lg-btn.is-busy .fa { display: none; }

@keyframes lg-shine {
	0%, 70% { left: -60%; }
	100%    { left: 130%; }
}

@keyframes lg-spin {
	to { transform: rotate(360deg); }
}

.lg-secure {
	margin-top: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px dashed var(--lg-emerald-200);
	background: rgba(236, 253, 245, .5);
	font-size: 12px;
	color: var(--lg-gray-500);
}

.lg-secure i {
	color: var(--lg-emerald-600);
}

/* Mensajes de validación */
body.lg-body .lg-card .ui-messages > div {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 13px;
}

body.lg-body .lg-card .ui-messages-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

body.lg-body .lg-card .ui-messages-warn {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

body.lg-body .lg-card .ui-messages-info {
	background: var(--lg-emerald-50);
	border: 1px solid var(--lg-emerald-200);
	color: var(--lg-emerald-900);
}

body.lg-body .lg-card .ui-messages ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Footer ---------- */
.lg-footer {
	position: relative;
	z-index: 2;
	border-top: 1px solid rgba(255, 255, 255, .10);
	background: rgba(2, 44, 34, .35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.lg-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 11px;
	color: rgba(209, 250, 229, .75);
}

.lg-footer-inner span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* ---------- Animaciones ---------- */
@keyframes lg-fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes lg-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
	.lg-bg, .lg-brand-logo, .lg-hero, .lg-card-wrap { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.lg-main {
		flex-direction: column;
		justify-content: center;
		gap: 32px;
		padding: 32px 18px;
	}
	.lg-hero {
		text-align: center;
		max-width: 520px;
	}
	.lg-brand, .lg-tags {
		justify-content: center;
	}
	.lg-title {
		font-size: 34px;
	}
	.lg-features {
		display: none;
	}
}

@media (max-width: 575px) {
	.lg-title { font-size: 28px; }
	.lg-subtitle { font-size: 14px; }
	.lg-tags { display: none; }
	.lg-card-head { padding: 24px 22px 0; }
	.lg-card-body { padding: 20px 22px 24px; }
	.lg-footer-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================
   EXTRAS EPG
   ========================================================== */
body.lg-body a { text-decoration: none; }

.lg-brand-logo.is-wide {
	width: auto;
	height: 64px;
	padding: 0 16px;
}

.lg-brand-logo.is-wide img {
	width: auto;
	height: 44px;
}

/* ---------- Selector de perfil (Alumno / Docente / ...) ---------- */
.lg-roles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	padding: 5px;
	border-radius: 14px;
	background: var(--lg-gray-100);
	border: 1px solid var(--lg-gray-200);
}

.lg-role {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 9px 4px 8px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--lg-gray-500);
	font-family: var(--lg-font);
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lg-role i {
	font-size: 16px;
}

.lg-role:hover {
	color: var(--lg-emerald-700);
	background: rgba(255, 255, 255, .7);
}

.lg-role.is-active {
	background: #fff;
	color: var(--lg-emerald-700);
	box-shadow: 0 4px 12px -4px rgba(6, 78, 59, .25), 0 0 0 1px var(--lg-emerald-100);
	transform: translateY(-1px);
}

/* Perfil elegido automáticamente según el código: pulso breve */.lg-role.is-auto { animation: lg-role-pulse .7s ease; }@keyframes lg-role-pulse {	0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }	100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0), 0 4px 12px -4px rgba(6, 78, 59, .25); }}
.lg-role:focus { outline: none; }
.lg-role:focus-visible { box-shadow: 0 0 0 3px rgba(16, 185, 129, .35); }

/* ---------- Convocatoria de admisión (en la presentación) ---------- */
#link_inscription { margin: 26px 0 6px; }

.lg-adm,
.lg-adm:visited {
	position: relative;
	display: block;
	overflow: hidden;
	padding: 18px 20px 20px;
	border-radius: 22px;
	border: 1.5px solid transparent;
	background:
		radial-gradient(26rem 10rem at 100% 0%, rgba(251, 191, 36, .28), transparent 60%) padding-box,
		radial-gradient(18rem 10rem at 0% 100%, rgba(52, 211, 153, .18), transparent 60%) padding-box,
		linear-gradient(140deg, rgba(4, 34, 26, .95), rgba(6, 70, 52, .92)) padding-box,
		linear-gradient(120deg, #fde68a, #f59e0b, #fff7d6, #34d399, #fde68a) border-box;
	background-size: 100% 100%, 100% 100%, 100% 100%, 300% 300%;
	color: #fff;
	text-decoration: none;
	animation: lg-fade-up .7s .25s ease both, lg-adm-border 6s linear infinite, lg-adm-glow 3s ease-in-out infinite;
	transition: transform .25s ease;
}

.lg-adm:hover,
.lg-adm:focus {
	color: #fff;
	transform: translateY(-3px) scale(1.01);
}

/* brillo que cruza la tarjeta */
.lg-adm::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	left: -40%;
	width: 30%;
	background: linear-gradient(100deg, transparent, rgba(255, 247, 214, .18), transparent);
	transform: skewX(-20deg);
	animation: lg-shine 5s ease-in-out 1.5s infinite;
	pointer-events: none;
}

/* Fila superior: etiqueta + cuenta regresiva */
.lg-adm-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.lg-adm-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 13px 5px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #fde68a, #f59e0b);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #3b1d03;
	box-shadow: 0 6px 16px -6px rgba(245, 158, 11, .8);
}

.lg-adm-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #b91c1c;
	animation: lg-ping-red 1.6s ease-out infinite;
}

.lg-adm-count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	font-size: 12px;
	font-weight: 600;
	color: #fef3c7;
}

.lg-adm-count b { font-size: 14px; color: #fde68a; }
.lg-adm-count i { color: #fde68a; }

.lg-adm-count.is-urgent {
	background: rgba(220, 38, 38, .25);
	border-color: rgba(252, 165, 165, .5);
	color: #fff;
	animation: lg-blink 1.4s ease-in-out infinite;
}

/* Cuerpo */
.lg-adm-main {
	display: flex;
	align-items: center;
	gap: 18px;
}

.lg-adm-icon {
	position: relative;
	flex-shrink: 0;
	width: 62px;
	height: 62px;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #fde68a, #f59e0b);
	color: #422006;
	font-size: 28px;
	box-shadow: 0 12px 26px -8px rgba(245, 158, 11, .75);
	animation: lg-float 4s ease-in-out infinite;
}

/* órbita que gira alrededor del icono */
.lg-adm-icon::before {
	content: "";
	position: absolute;
	top: -7px; right: -7px; bottom: -7px; left: -7px;
	border-radius: 22px;
	border: 1.5px dashed rgba(253, 230, 138, .55);
	animation: lg-spin 14s linear infinite;
}

.lg-adm-text { flex: 1; min-width: 0; }

.lg-adm-text small {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lg-emerald-200);
}

.lg-adm-text strong {
	display: block;
	margin: 3px 0 5px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.1;
	background: linear-gradient(90deg, #ffffff, #fef3c7 50%, #fbbf24);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lg-adm-text em {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-style: normal;
	font-size: 13px;
	color: rgba(236, 253, 245, .88);
}

.lg-adm-text em i { color: #fde68a; }

/* Botón */
.lg-adm-cta {
	position: relative;
	margin-top: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 46px;
	border-radius: 14px;
	background: linear-gradient(135deg, #fde68a, #fbbf24 45%, #f59e0b);
	color: #3b1d03;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
	box-shadow: 0 14px 26px -12px rgba(245, 158, 11, .95), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.lg-adm-cta i { transition: transform .2s ease; }
.lg-adm:hover .lg-adm-cta i { transform: translateX(5px); }

@keyframes lg-adm-border {
	0%   { background-position: 0 0, 0 0, 0 0, 0% 50%; }
	100% { background-position: 0 0, 0 0, 0 0, 300% 50%; }
}

@keyframes lg-adm-glow {
	0%, 100% { box-shadow: 0 24px 46px -20px rgba(0, 0, 0, .7), 0 0 0 0 rgba(251, 191, 36, .0), 0 0 28px -6px rgba(251, 191, 36, .35); }
	50%      { box-shadow: 0 24px 46px -20px rgba(0, 0, 0, .7), 0 0 0 6px rgba(251, 191, 36, .10), 0 0 46px -4px rgba(251, 191, 36, .55); }
}

@keyframes lg-ping-red {
	0%   { box-shadow: 0 0 0 0 rgba(185, 28, 28, .6); }
	70%  { box-shadow: 0 0 0 8px rgba(185, 28, 28, 0); }
	100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0); }
}

@keyframes lg-blink {
	0%, 100% { opacity: 1; }
	50%      { opacity: .65; }
}

@media (prefers-reduced-motion: reduce) {
	.lg-adm, .lg-adm::after, .lg-adm-icon, .lg-adm-icon::before, .lg-adm-dot, .lg-adm-count { animation: none !important; }
}

@media (max-width: 991px) {
	.lg-adm { text-align: left; }
}

@media (max-width: 575px) {
	.lg-adm-text strong { font-size: 22px; }
	.lg-adm-icon { width: 52px; height: 52px; font-size: 23px; }
}

/* ---------- Botón de pagos (hero) ---------- */
.lg-pay-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
	padding: 10px 16px 10px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .25);
	background: rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	font-family: var(--lg-font);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.lg-pay-btn:hover {
	background: rgba(255, 255, 255, .2);
	transform: translateY(-1px);
}

.lg-pay-btn img {
	height: 26px;
	width: auto;
	padding: 3px 6px;
	border-radius: 999px;
	background: #fff;
}

/* ---------- Modal de pagos ---------- */
.lg-modal {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(2, 44, 34, .65);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}

.lg-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.lg-modal-dialog {
	width: 100%;
	max-width: 1000px;
	height: min(720px, calc(100vh - 40px));
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--lg-gray-700);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .55);
	transform: translateY(16px) scale(.98);
	transition: transform .25s ease;
}

.lg-modal.is-open .lg-modal-dialog {
	transform: translateY(0) scale(1);
}

.lg-modal-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--lg-gray-200);
}

.lg-modal-head img { height: 22px; }

.lg-modal-head strong {
	font-size: 15px;
	color: var(--lg-gray-900);
}

.lg-modal-close {
	margin-left: auto;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 10px;
	background: var(--lg-gray-100);
	color: var(--lg-gray-500);
	font-size: 16px;
	cursor: pointer;
}

.lg-modal-close:hover {
	background: var(--lg-emerald-50);
	color: var(--lg-emerald-700);
}

.lg-modal-body {
	flex: 1;
	background: var(--lg-gray-100);
}

.lg-modal-body iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 575px) {
	.lg-roles { grid-template-columns: repeat(2, 1fr); }
}
