/**
 * Sistema visual unificado — páginas de secretarías y claustros.
 * Alineado con tokens del home (tipografía, sombras, acentos).
 */

body.jursoc-page-secretaria,
body.jursoc-page-claustro {
	--page-gutter: clamp(0.85rem, 1.6vw, 1.85rem);
	--page-section-pad: clamp(2rem, 4vw, 3rem);
	--page-primary: var(--jursoc-primary, #003366);
	--page-accent: var(--jursoc-accent, #c9a227);
	--page-border: var(--jursoc-border, #e2e8f0);
	--page-surface: #fff;
	--page-surface-alt: var(--jursoc-surface, #f8fafc);
	--page-text: #1e293b;
	--page-text-muted: #475569;
	--page-radius: var(--jursoc-radius, 8px);
	--page-shadow-card: var(--jursoc-shadow-card);
	--page-shadow-hover: var(--jursoc-shadow-hover);
	background: var(--page-surface);
}

body.jursoc-page-secretaria .entry.content-bg,
body.jursoc-page-claustro .entry.content-bg {
	background: var(--page-surface);
}

/* —— Títulos de sección (patrón home) —— */
body.jursoc-page-secretaria .jursoc-sec-page__noticias-title,
body.jursoc-page-secretaria .jursoc-sec-page__extra-title,
body.jursoc-page-claustro .jursoc-docentes__section-title {
	font-family: var(--font-heading, "Bitter", serif);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--page-primary);
	position: relative;
	display: inline-block;
	padding-bottom: 0.6rem;
	margin-bottom: 0.35rem;
	border-bottom: none;
}

body.jursoc-page-secretaria .jursoc-sec-page__noticias-title::after,
body.jursoc-page-secretaria .jursoc-sec-page__extra-title::after,
body.jursoc-page-claustro .jursoc-docentes__section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 2.5rem;
	height: 3px;
	border-radius: 2px;
	background: var(--page-accent);
}

body.jursoc-page-secretaria .jursoc-sec-page__noticias-title::before,
body.jursoc-page-secretaria .jursoc-sec-page__extra-title::before,
body.jursoc-page-claustro .jursoc-docentes__section-title::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(100%, 9rem);
	height: 1px;
	background: color-mix(in srgb, var(--page-primary) 22%, transparent);
}

body.jursoc-page-secretaria .jursoc-sec-page__noticias-head {
	border-bottom: none;
	margin-bottom: 1.15rem;
	padding-bottom: 0;
}

body.jursoc-page-secretaria .jursoc-sec-page__noticias-lead,
body.jursoc-page-claustro .jursoc-docentes__section-lead,
body.jursoc-page-claustro .jursoc-claustro__intro {
	font-family: var(--font-body, system-ui, sans-serif);
	color: var(--page-text-muted);
	line-height: 1.6;
}

/* —— Secretaría: tokens y hero —— */
body.jursoc-page-secretaria .jursoc-sec-page {
	--sec-radius: var(--page-radius);
	--jursoc-radius: var(--page-radius);
	--jursoc-shadow: var(--page-shadow-card);
}

/* La franja de presentación se comporta como el rotador del home:
   a ras (sin redondeo) y sin sombra de tarjeta. */
body.jursoc-page-secretaria .jursoc-sec-page__hero {
	border-radius: 0;
	margin-bottom: var(--page-section-pad);
	box-shadow: none;
}

body.jursoc-page-secretaria .jursoc-sec-page__hero-photo {
	filter: saturate(0.88) contrast(1.04) brightness(0.95);
	opacity: 0.35;
}

body.jursoc-page-secretaria .jursoc-sec-page__title {
	font-family: var(--font-heading, "Bitter", serif);
}

body.jursoc-page-secretaria .jursoc-sec-page__eyebrow,
body.jursoc-page-secretaria .jursoc-sec-page__lead {
	font-family: var(--font-body, system-ui, sans-serif);
}

body.jursoc-page-secretaria .jursoc-sec-page__eyebrow {
	color: color-mix(in srgb, var(--page-accent) 75%, #fff);
	opacity: 1;
}

body.jursoc-page-secretaria .jursoc-sec-page__nav-link {
	border-radius: var(--page-radius);
	border-width: 1px;
	box-shadow: var(--page-shadow-card);
}

body.jursoc-page-secretaria .jursoc-sec-page__nav-link:hover,
body.jursoc-page-secretaria .jursoc-sec-page__nav-link:focus-visible {
	box-shadow: var(--page-shadow-hover);
	transform: translateY(-2px);
}

body.jursoc-page-secretaria .jursoc-sec-page__nav-icon {
	border-radius: var(--jursoc-radius-sm, 6px);
}

body.jursoc-page-secretaria .jursoc-sec-page__nav-label {
	font-family: var(--font-body, system-ui, sans-serif);
	font-weight: 600;
}

body.jursoc-page-secretaria .jursoc-sec-page__extra-inner {
	border-radius: var(--page-radius);
	box-shadow: var(--page-shadow-card);
	border-left-width: 3px;
	border-left-color: var(--page-accent);
}

body.jursoc-page-secretaria .jursoc-sec-page__extra-link {
	border-radius: var(--jursoc-radius-sm, 6px);
	font-family: var(--font-body, system-ui, sans-serif);
}

/* Cards noticias en secretaría */
body.jursoc-page-secretaria .jursoc-sec-page__noticias .jursoc-card--clean {
	border-radius: var(--page-radius);
	box-shadow: var(--page-shadow-card);
	border-color: var(--page-border);
}

body.jursoc-page-secretaria .jursoc-sec-page__noticias .jursoc-card--clean:hover,
body.jursoc-page-secretaria .jursoc-sec-page__noticias .jursoc-card--clean:focus-within {
	box-shadow: var(--page-shadow-hover);
}

body.jursoc-page-secretaria .jursoc-sec-page__noticias .jursoc-card--clean .jursoc-card__title {
	font-family: var(--font-heading, "Bitter", serif);
}

body.jursoc-page-secretaria .jursoc-sec-page__noticias .jursoc-card--clean .jursoc-card__excerpt {
	font-family: var(--font-body, system-ui, sans-serif);
}

/* —— Claustros: hero y layout —— */
body.jursoc-page-claustro .jursoc-claustro {
	padding-left: var(--page-gutter);
	padding-right: var(--page-gutter);
	margin-bottom: var(--page-section-pad);
}

body.jursoc-page-claustro .jursoc-claustro__hero {
	border-radius: var(--page-radius);
	box-shadow: var(--page-shadow-card);
}

body.jursoc-page-claustro .jursoc-claustro__hero-photo {
	filter: saturate(0.88) contrast(1.04) brightness(0.94);
	opacity: 0.5;
}

body.jursoc-page-claustro .jursoc-claustro__title {
	font-family: var(--font-heading, "Bitter", serif);
	font-size: clamp(1.45rem, 3vw, 1.85rem);
	letter-spacing: -0.015em;
}

body.jursoc-page-claustro .jursoc-claustro__eyebrow {
	font-family: var(--font-body, system-ui, sans-serif);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: color-mix(in srgb, var(--page-accent) 80%, #fff);
	opacity: 1;
}

body.jursoc-page-claustro .jursoc-claustro__lead {
	font-family: var(--font-body, system-ui, sans-serif);
}

body.jursoc-page-claustro .jursoc-claustro__quick-link {
	font-family: var(--font-body, system-ui, sans-serif);
	border-radius: var(--jursoc-radius-sm, 6px);
	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		color 0.18s ease;
}

body.jursoc-page-claustro .jursoc-claustro__quick-link:hover,
body.jursoc-page-claustro .jursoc-claustro__quick-link:focus-visible {
	box-shadow: 0 4px 14px rgba(15, 39, 68, 0.12);
}

/* Docentes hub */
body.jursoc-page-claustro .jursoc-docentes {
	--doc-radius: var(--page-radius);
}

body.jursoc-page-claustro .jursoc-docentes__jump {
	border-radius: 999px;
	background: var(--page-surface-alt);
	border-color: var(--page-border);
	box-shadow: var(--page-shadow-card);
}

body.jursoc-page-claustro .jursoc-docentes__jump-link {
	font-family: var(--font-body, system-ui, sans-serif);
}

body.jursoc-page-claustro .jursoc-doc-list {
	border-radius: var(--page-radius);
	border-color: var(--page-border);
	box-shadow: var(--page-shadow-card);
}

body.jursoc-page-claustro .jursoc-doc-item__link {
	font-family: var(--font-body, system-ui, sans-serif);
	transition: background 0.18s ease;
}

body.jursoc-page-claustro .jursoc-doc-item__label {
	font-family: var(--font-heading, "Bitter", serif);
	font-weight: 600;
}

body.jursoc-page-claustro .jursoc-doc-item__desc {
	font-family: var(--font-body, system-ui, sans-serif);
}

@media (max-width: 640px) {
	body.jursoc-page-secretaria .jursoc-sec-page__hero {
		border-radius: 0;
	}

	body.jursoc-page-claustro .jursoc-claustro__hero {
		border-radius: var(--jursoc-radius-sm, 6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.jursoc-page-secretaria .jursoc-sec-page__nav-link,
	body.jursoc-page-claustro .jursoc-claustro__quick-link,
	body.jursoc-page-claustro .jursoc-doc-item__link {
		transition: none;
	}
}
