/*
 * PDS - Página de egresados (mu-plugins/pds-egresados.php).
 * Mismos colores y letra que el resto del campus (pds-cuenta-alumno, pds-curso).
 */

body.pds-egresados {
	--eg-noche: #0a1733;
	--eg-noche-2: #0d2552;
	--eg-acento: #227aff;
	--eg-acento-osc: #1a56c9;
	--eg-amarillo: #ffc83d;
	--eg-texto: #0d1b36;
	--eg-gris: #5d6b82;
	--eg-gris-claro: #8a97ab;
	--eg-borde: #e4e9f1;
	--eg-fondo: #f4f6fb;
	--eg-sombra: 0 1px 2px rgba(13, 27, 54, .04), 0 10px 28px -16px rgba(13, 27, 54, .18);
	background: var(--eg-fondo);
}

body.pds-egresados #wrapper {
	background: var(--eg-fondo);
}

.pds-eg,
.pds-eg * {
	box-sizing: border-box;
}

.pds-eg {
	font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--eg-texto);
	padding-bottom: 72px;
	-webkit-font-smoothing: antialiased;
}

.pds-eg h1,
.pds-eg h2,
.pds-eg p,
.pds-eg ul,
.pds-eg dl,
.pds-eg dd {
	margin: 0;
	padding: 0;
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
}

.pds-eg ul {
	list-style: none;
}

.pds-eg li {
	margin: 0;
}

.pds-eg svg {
	fill: currentColor;
	flex: none;
}

.pds-eg-wrap {
	position: relative;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Encabezado ---------- */

.pds-eg-hero {
	position: relative;
	overflow: hidden;
	padding: 64px 0 112px;
	background:
		radial-gradient(900px 380px at 88% -20%, rgba(34, 122, 255, .38), transparent 62%),
		radial-gradient(700px 300px at -5% 110%, rgba(255, 200, 61, .13), transparent 60%),
		linear-gradient(180deg, var(--eg-noche) 0%, var(--eg-noche-2) 100%);
	color: #fff;
}

.pds-eg-hero-deco {
	position: absolute;
	right: max(24px, calc(50% - 590px));
	top: 36px;
	width: 300px;
	height: 300px;
	opacity: .06;
	transform: rotate(-12deg);
	pointer-events: none;
}

.pds-eg-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px 6px 10px;
	border-radius: 999px;
	background: rgba(255, 200, 61, .14);
	color: var(--eg-amarillo);
	font-size: 13px;
	font-weight: 700;
}

.pds-eg-kicker svg {
	width: 18px;
	height: 18px;
}

.pds-eg .pds-eg-hero h1 {
	margin: 18px 0 14px;
	color: #fff;
	font-size: clamp(36px, 5.4vw, 58px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.025em;
}

.pds-eg .pds-eg-bajada {
	max-width: 600px;
	color: rgba(255, 255, 255, .78);
	font-size: 17px;
	line-height: 1.6;
}

.pds-eg-cifras {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 190px));
	gap: 12px;
	margin-top: 32px !important;
}

.pds-eg-cifras > div {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end; /* en column-reverse, flex-end = arriba: los números quedan alineados */
	gap: 2px;
	padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 14px;
	background: rgba(255, 255, 255, .06);
	backdrop-filter: blur(6px);
}

.pds-eg-cifras dd {
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.pds-eg-cifras > div:last-child dd {
	color: var(--eg-amarillo);
}

.pds-eg-cifras dt {
	color: rgba(255, 255, 255, .66);
	font-size: 13px;
	font-weight: 500;
}

.pds-eg .pds-eg-nota {
	margin-top: 14px;
	color: rgba(255, 255, 255, .55);
	font-size: 13px;
	line-height: 1.5;
}

/* ---------- Buscador ---------- */

.pds-eg-cuerpo {
	margin-top: -60px;
}

.pds-eg-buscador {
	display: flex;
	gap: 8px;
	padding: 8px;
	border: 1px solid var(--eg-borde);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 44px -20px rgba(10, 23, 51, .35);
}

.pds-eg-campo {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
	margin: 0;
}

.pds-eg-campo svg {
	position: absolute;
	left: 16px;
	width: 22px;
	height: 22px;
	color: var(--eg-gris-claro);
	pointer-events: none;
}

.pds-eg .pds-eg-campo input,
.pds-eg .pds-eg-filtro select {
	width: 100%;
	height: 54px;
	margin: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	box-shadow: none;
	color: var(--eg-texto);
	font: 500 16px/1.2 Montserrat, system-ui, sans-serif;
	outline: none;
}

.pds-eg .pds-eg-campo input {
	padding: 0 16px 0 50px;
}

.pds-eg .pds-eg-campo input::placeholder {
	color: var(--eg-gris-claro);
	opacity: 1;
}

.pds-eg .pds-eg-campo input:focus,
.pds-eg .pds-eg-filtro select:focus {
	background: #f5f8fd;
}

.pds-eg-filtro {
	position: relative;
	flex: 0 0 300px;
	margin: 0;
	border-left: 1px solid var(--eg-borde);
	padding-left: 8px;
}

.pds-eg .pds-eg-filtro select {
	padding: 0 40px 0 14px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	text-overflow: ellipsis;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235d6b82'%3E%3Cpath d='m7 10 5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 22px;
}

.pds-eg-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 26px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(180deg, #3489ff 0%, var(--eg-acento) 100%);
	color: #fff !important;
	font: 700 15px/1 Montserrat, system-ui, sans-serif;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s;
	white-space: nowrap;
}

.pds-eg-boton:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -10px rgba(34, 122, 255, .7);
}

/* Con JS se busca al tipear: el botón sobra. */
.pds-eg--js .pds-eg-enviar {
	display: none;
}

/* ---------- Felicitación (alumno con sesión que ya está en la lista) ---------- */

.pds-eg-felicitacion {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-top: 20px;
	padding: 18px 22px;
	border: 1px solid #ffe2a1;
	border-radius: 16px;
	background: linear-gradient(90deg, #fff7e0 0%, #fffdf6 100%);
}

.pds-eg-felicitacion-icono {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--eg-amarillo);
	color: var(--eg-noche);
	flex: none;
}

.pds-eg-felicitacion-icono svg {
	width: 24px;
	height: 24px;
}

.pds-eg-felicitacion strong {
	display: block;
	font-size: 17px;
	font-weight: 800;
}

.pds-eg .pds-eg-felicitacion p {
	margin-top: 2px;
	color: #5c4a1a;
	font-size: 14px;
	line-height: 1.5;
}

/* ---------- Secciones ---------- */

.pds-eg-seccion {
	margin-top: 44px;
}

.pds-eg-titulo {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin-bottom: 16px;
}

.pds-eg .pds-eg-titulo h2 {
	color: var(--eg-texto);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.01em;
}

.pds-eg .pds-eg-titulo p {
	color: var(--eg-gris);
	font-size: 14px;
}

/* ---------- Avatar con iniciales ---------- */

.pds-eg-avatar {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
	flex: none;
}

.pds-eg-avatar[data-tono="0"] { background: #e6efff; color: #1a56c9; }
.pds-eg-avatar[data-tono="1"] { background: #fff2cf; color: #8a5a00; }
.pds-eg-avatar[data-tono="2"] { background: #dff5e9; color: #15703f; }
.pds-eg-avatar[data-tono="3"] { background: #efe8ff; color: #6236c4; }
.pds-eg-avatar[data-tono="4"] { background: #ffe6ef; color: #b0234f; }
.pds-eg-avatar[data-tono="5"] { background: #dcf3f5; color: #0d6772; }

/* ---------- Recién egresados ---------- */

.pds-eg-carrusel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(250px, 1fr);
	gap: 12px;
	overflow-x: auto;
	padding: 4px 2px 14px !important;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.pds-eg-mini {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
	border: 1px solid var(--eg-borde);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--eg-sombra);
	scroll-snap-align: start;
}

.pds-eg-nuevo {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--eg-amarillo);
	color: var(--eg-noche);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
}

/* ---------- Tarjetas ---------- */

.pds-eg-grilla {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
	transition: opacity .2s;
}

.pds-eg--cargando .pds-eg-grilla {
	opacity: .45;
}

.pds-eg-tarjeta {
	display: flex;
	gap: 14px;
	align-items: center;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid var(--eg-borde);
	border-radius: 14px;
	background: #fff;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.pds-eg-tarjeta:hover {
	border-color: #c8d6ee;
	box-shadow: var(--eg-sombra);
	transform: translateY(-1px);
}

.pds-eg-datos {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.pds-eg-nombre {
	color: var(--eg-texto);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.pds-eg-mini .pds-eg-nombre {
	padding-right: 56px;
	font-size: 16px;
}

.pds-eg-curso {
	display: -webkit-box;
	overflow: hidden;
	color: var(--eg-gris);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.pds-eg-fecha {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 2px;
	color: var(--eg-gris-claro);
	font-size: 12.5px;
	font-weight: 500;
}

.pds-eg-fecha svg {
	width: 14px;
	height: 14px;
}

/* ---------- Sin resultados y "Ver más" ---------- */

.pds-eg-vacio {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 48px 24px;
	border: 1px dashed #cdd7e6;
	border-radius: 16px;
	background: #fff;
	text-align: center;
}

.pds-eg-vacio[hidden],
.pds-eg-mas[hidden],
.pds-eg-recientes[hidden] {
	display: none;
}

.pds-eg-vacio svg {
	width: 40px;
	height: 40px;
	color: #b6c3d8;
}

.pds-eg-vacio strong {
	font-size: 17px;
	font-weight: 800;
}

.pds-eg .pds-eg-vacio p {
	max-width: 520px;
	color: var(--eg-gris);
	font-size: 14px;
	line-height: 1.6;
}

.pds-eg-mas {
	display: flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	height: 48px;
	margin: 24px auto 0;
	padding: 0 28px;
	border: 1px solid #cfdcf3;
	border-radius: 999px;
	background: #fff;
	color: var(--eg-acento-osc) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .15s, color .15s, border-color .15s;
}

.pds-eg-mas:hover {
	border-color: var(--eg-acento);
	background: var(--eg-acento);
	color: #fff !important;
}

/* ---------- Cierre ---------- */

.pds-eg-cta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-top: 56px;
	padding: 36px 40px;
	overflow: hidden;
	border-radius: 22px;
	background:
		radial-gradient(500px 220px at 100% 0%, rgba(34, 122, 255, .45), transparent 65%),
		var(--eg-noche);
	color: #fff;
}

.pds-eg .pds-eg-cta h2 {
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.015em;
}

.pds-eg .pds-eg-cta p {
	margin-top: 6px;
	color: rgba(255, 255, 255, .75);
	font-size: 15px;
}

.pds-eg-boton--amarillo {
	background: var(--eg-amarillo);
	color: var(--eg-noche) !important;
}

.pds-eg-boton--amarillo:hover {
	box-shadow: 0 10px 22px -10px rgba(255, 200, 61, .8);
}

/* ---------- Celular ---------- */

@media (max-width: 767px) {
	.pds-eg-wrap {
		padding: 0 16px;
	}

	.pds-eg-hero {
		padding: 40px 0 96px;
	}

	.pds-eg-hero-deco {
		width: 180px;
		height: 180px;
		top: 20px;
		right: -30px;
	}

	.pds-eg .pds-eg-bajada {
		font-size: 15.5px;
	}

	/* El histórico (+150.000) no entra en un tercio de pantalla: va arriba a todo el ancho y los otros dos abajo. */
	.pds-eg-cifras {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin-top: 24px !important;
	}

	.pds-eg-cifras > div:first-child {
		grid-column: 1 / -1;
	}

	.pds-eg-cifras > div {
		min-width: 0;
		padding: 10px 14px;
	}

	.pds-eg-cifras dd {
		font-size: 22px;
	}

	.pds-eg-cifras > div:first-child dd {
		font-size: 30px;
	}

	.pds-eg-cifras dt {
		font-size: 11.5px;
		line-height: 1.3;
	}

	.pds-eg-buscador {
		flex-direction: column;
		gap: 0;
		padding: 6px;
	}

	.pds-eg-filtro {
		flex: 1 1 auto;
		padding: 0;
		border-left: 0;
		border-top: 1px solid var(--eg-borde);
	}

	.pds-eg-enviar {
		margin-top: 6px;
	}

	.pds-eg-seccion {
		margin-top: 32px;
	}

	.pds-eg-carrusel {
		grid-auto-columns: 78%;
		margin: 0 -16px !important;
		padding: 4px 16px 14px !important;
		scroll-padding: 0 16px;
	}

	.pds-eg-grilla {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.pds-eg-cta {
		padding: 28px 22px;
	}

	.pds-eg-cta .pds-eg-boton {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pds-eg * {
		transition: none !important;
	}
}
