/* Dashboard Jursoc – ancho completo + UX */
.jursoc-dashboard {
	--jursoc-primary: #003366;
	--jursoc-accent: #c9a227;
	--jursoc-radius: 14px;
	--jursoc-shadow: 0 8px 32px rgba(0, 33, 71, 0.08);
	--sidebar-width: min( 260px, 22% );
	--gap-layout: clamp( 1rem, 1.5vw, 1.5rem );
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 0 3rem;
	box-sizing: border-box;
}

/* Zona hero home: secretarías + rotador panorama */
.jursoc-home-hero-zone {
	width: 100%;
	margin: 0;
	padding: 0;
}

.jursoc-home-hero-zone .jursoc-panorama-band {
	margin-top: 0;
}

.jursoc-hero--split {
	margin-bottom: 0;
}

/* Hero: intro opcional + franja azul (70% noticias | 30% centro de información) */
.jursoc-hero {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 2rem;
	border-radius: calc(var(--jursoc-radius) + 8px);
	overflow: hidden;
	box-shadow:
		0 4px 6px rgba(0, 33, 71, 0.04),
		0 24px 60px rgba(0, 33, 71, 0.14);
	background: #fff;
	color: #0f172a;
}

.jursoc-hero__intro {
	text-align: center;
	padding: 1rem 1.15rem 0.75rem;
	color: var(--jursoc-primary);
}

.jursoc-hero__intro .jursoc-hero__eyebrow {
	color: #64748b;
	opacity: 1;
}

.jursoc-hero__intro .jursoc-hero__title {
	color: var(--jursoc-primary);
}

.jursoc-hero__intro .jursoc-hero__lead {
	color: #475569;
	opacity: 1;
	margin-left: auto;
	margin-right: auto;
}

/* —— Franja azul premium —— */
.jursoc-hero__band {
	position: relative;
	color: #fff;
	min-height: clamp(380px, 42vw, 440px);
	border-top: 3px solid var(--jursoc-accent);
	overflow: hidden;
}

.jursoc-hero__band-bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(125deg, #000d1f 0%, #003366 38%, #0a5a9e 72%, #062848 100%);
	z-index: 0;
}

.jursoc-hero__band-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 90% 80% at 15% 120%, rgba(201, 162, 39, 0.22) 0%, transparent 55%),
		radial-gradient(ellipse 60% 50% at 85% 0%, rgba(100, 180, 255, 0.15) 0%, transparent 50%),
		repeating-linear-gradient(
			-12deg,
			transparent,
			transparent 48px,
			rgba(255, 255, 255, 0.02) 48px,
			rgba(255, 255, 255, 0.02) 49px
		);
}

.jursoc-hero__band-shine {
	position: absolute;
	top: -50%;
	left: -20%;
	width: 60%;
	height: 200%;
	background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
	transform: rotate(-8deg);
	animation: jursoc-band-shine 8s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}

@keyframes jursoc-band-shine {
	0%, 100% { opacity: 0.4; transform: rotate(-8deg) translateX(-5%); }
	50% { opacity: 1; transform: rotate(-8deg) translateX(5%); }
}

.jursoc-hero__panels {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
	gap: clamp(0.65rem, 1.2vw, 1rem);
	align-items: stretch;
	padding: clamp(0.85rem, 1.5vw, 1.15rem);
	min-height: inherit;
}

.jursoc-hero__panel {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	min-height: 0;
	min-width: 0;
}

.jursoc-hero__panel-head {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	flex-shrink: 0;
}

.jursoc-hero__panel-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: rgba(201, 162, 39, 0.25);
	border: 1px solid rgba(201, 162, 39, 0.45);
	color: var(--jursoc-accent);
}

.jursoc-hero__panel-title {
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.9);
}

.jursoc-hero__panel--rotator {
	padding-right: 0.15rem;
}

.jursoc-hero__panel--hub {
	padding-left: 0.15rem;
}

.jursoc-hero__eyebrow {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	margin: 0 0 0.6rem;
	font-weight: 500;
}

.jursoc-hero__title {
	font-size: clamp(1.65rem, 3.2vw, 2.35rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 0.85rem;
	letter-spacing: -0.02em;
}

.jursoc-hero__lead {
	font-size: 1rem;
	margin: 0 0 1rem;
	line-height: 1.6;
	max-width: 48ch;
}

/* Rotador — estilo revista full-bleed */
.jursoc-news-rotator {
	--rotator-title-size: clamp(1rem, 0.82rem + 0.9vw, 1.34rem);
	--rotator-title-lh: 1.18;
	--rotator-title-max: min(34ch, 94%);
	--rotator-cat-size: 0.58rem;
	--rotator-cat-pad-y: 0.22rem;
	--rotator-cat-pad-x: 0.58rem;
	--rotator-excerpt-size: clamp(0.76rem, 0.7rem + 0.32vw, 0.86rem);
	--rotator-excerpt-lh: 1.4;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	min-height: 0;
	width: 100%;
}

.jursoc-news-rotator__track {
	position: relative;
	flex: 1;
	min-height: clamp(290px, 32vw, 360px);
	border-radius: 16px;
	overflow: hidden;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.12) inset,
		0 20px 50px rgba(0, 0, 0, 0.35);
}

.jursoc-news-rotator__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.jursoc-news-rotator__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.jursoc-news-rotator__slide.is-active .jursoc-news-rotator__img {
	transform: scale(1);
}

.jursoc-news-rotator__link,
.jursoc-news-rotator__link:hover,
.jursoc-news-rotator__link:focus,
.jursoc-news-rotator__link:visited {
	display: block;
	height: 100%;
	text-decoration: none;
	color: #fff;
}

.jursoc-news-rotator__link:hover .jursoc-news-rotator__cta {
	gap: 0.5rem;
	color: var(--jursoc-accent);
}

.jursoc-news-rotator__media {
	position: relative;
	height: 100%;
	min-height: inherit;
	overflow: hidden;
}

.jursoc-news-rotator__img,
.jursoc-news-rotator__default-img,
.jursoc-news-rotator__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 6s ease-out;
}

.jursoc-news-rotator__slide.is-active .jursoc-news-rotator__img {
	transform: scale(1.06);
}

.jursoc-news-rotator__default-img {
	background-color: var(--cat-color, #0d4a7a);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.jursoc-news-rotator__placeholder {
	background: linear-gradient(145deg, #0d4a7a, #1a5a8a 50%, #003366);
}

.jursoc-news-rotator__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, transparent 0%, transparent 28%, rgba(0, 10, 24, 0.65) 55%, rgba(0, 6, 16, 0.97) 100%),
		linear-gradient(90deg, rgba(0, 12, 30, 0.55) 0%, transparent 50%);
	pointer-events: none;
}

.jursoc-news-rotator__content {
	position: absolute;
	left: clamp(3.25rem, 8vw, 4.75rem);
	right: clamp(3.25rem, 8vw, 4.75rem);
	bottom: 0;
	z-index: 2;
	padding: clamp(0.95rem, 1.8vw, 1.25rem) 0 clamp(0.8rem, 1.4vw, 1rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.3rem;
	color: #fff;
}

.jursoc-news-rotator__cat {
	display: inline-flex;
	align-items: center;
	font-size: var(--rotator-cat-size);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: var(--rotator-cat-pad-y) var(--rotator-cat-pad-x);
	border-radius: 6px;
	background: var(--cat-color, #003366);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.jursoc-news-rotator__title {
	font-size: var(--rotator-title-size);
	font-weight: 800;
	line-height: var(--rotator-title-lh);
	margin: 0;
	letter-spacing: -0.02em;
	color: #fff;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.9),
		0 4px 24px rgba(0, 0, 0, 0.65);
	max-width: var(--rotator-title-max);
	width: 100%;
	text-align: center;
	text-wrap: balance;
	hyphens: auto;
}

/* Anula color de títulos/enlaces del tema Kadence sobre la imagen */
.jursoc-news-rotator .jursoc-news-rotator__link h3.jursoc-news-rotator__title,
.jursoc-news-rotator .jursoc-news-rotator__link .jursoc-news-rotator__excerpt,
.jursoc-news-rotator .jursoc-news-rotator__link .jursoc-news-rotator__date,
.jursoc-news-rotator .jursoc-news-rotator__link time {
	color: #fff;
}

.jursoc-news-rotator__excerpt {
	font-size: var(--rotator-excerpt-size);
	line-height: var(--rotator-excerpt-lh);
	margin: 0;
	color: rgba(255, 255, 255, 0.95);
	opacity: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 44ch;
	width: 100%;
}

.jursoc-news-rotator__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.65rem 1.25rem;
	width: 100%;
	max-width: 44ch;
	margin-top: 0.25rem;
	padding-top: 0.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.jursoc-news-rotator__date {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.88);
	opacity: 1;
	font-variant-numeric: tabular-nums;
}

.jursoc-news-rotator__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #fff;
	transition: gap 0.25s ease, color 0.25s ease;
}

.jursoc-news-rotator__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(0, 20, 45, 0.55);
	backdrop-filter: blur(10px);
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s, transform 0.25s, border-color 0.25s;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.jursoc-news-rotator__btn:hover {
	background: rgba(201, 162, 39, 0.85);
	border-color: var(--jursoc-accent);
	transform: translateY(-50%) scale(1.08);
}

.jursoc-news-rotator__btn--prev { left: 0.65rem; }
.jursoc-news-rotator__btn--next { right: 0.65rem; }

.jursoc-news-rotator__footer-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.jursoc-news-rotator__progress {
	flex: 1;
	height: 3px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	overflow: hidden;
}

.jursoc-news-rotator__progress-fill {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--jursoc-accent), #e8d48a);
	border-radius: inherit;
}

@keyframes jursoc-rotator-progress {
	from { width: 0; }
	to { width: 100%; }
}

.jursoc-news-rotator__dots {
	display: flex;
	gap: 0.4rem;
	flex-shrink: 0;
}

.jursoc-news-rotator__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition: transform 0.25s, background 0.25s, width 0.25s;
}

.jursoc-news-rotator__dot.is-active {
	background: var(--jursoc-accent);
	width: 22px;
	border-radius: 999px;
}

.jursoc-news-rotator__counter {
	font-size: 0.72rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	opacity: 0.75;
	flex-shrink: 0;
	min-width: 2.5rem;
	text-align: right;
}

.jursoc-news-rotator__counter-current {
	color: var(--jursoc-accent);
}

.jursoc-news-rotator--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex: 1;
	min-height: 260px;
	padding: 1.5rem;
	background: rgba(0, 0, 0, 0.25);
	border-radius: 16px;
	border: 1px dashed rgba(255, 255, 255, 0.28);
	backdrop-filter: blur(8px);
}

.jursoc-news-rotator__empty-msg {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	opacity: 0.9;
	max-width: 36ch;
	line-height: 1.5;
}

.jursoc-news-rotator__empty-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin: 0;
}

.jursoc-news-rotator__empty-actions a {
	color: var(--jursoc-accent);
	font-size: 0.85rem;
	font-weight: 600;
}

.jursoc-news-rotator__empty-actions .button {
	font-size: 0.85rem;
}

/* —— Secretarías —— */
.jursoc-secretarias__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.45rem;
	width: 100%;
}

/* —— Secretarías: hub moderno (menú home) —— */
.jursoc-secretarias--modern {
	--sec-color: #003366;
	margin: 0;
	padding: 0;
}

.jursoc-sec-hub {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.jursoc-sec-hub__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(0.75rem, 1.5vw, 1.15rem);
	align-items: stretch;
	padding: clamp(0.85rem, 1.5vw, 1.1rem);
	border-radius: calc(var(--jursoc-radius) + 4px);
	background: linear-gradient(145deg, #f8fafc 0%, #eef4fa 55%, #f1f5f9 100%);
	border: 1px solid rgba(0, 51, 102, 0.08);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 12px 40px rgba(0, 33, 71, 0.07);
}

/* Pills */
.jursoc-sec-hub__pills {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	align-content: start;
}

.jursoc-sec-pill {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 88px;
	padding: 0.65rem 0.5rem 0.55rem;
	border-radius: 14px;
	text-decoration: none;
	color: var(--jursoc-primary);
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 51, 102, 0.07);
	box-shadow: 0 2px 10px rgba(0, 33, 71, 0.05);
	transition:
		transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
		box-shadow 0.35s ease,
		background 0.35s ease,
		border-color 0.35s ease;
	animation: jursoc-sec-pill-in 0.5s ease backwards;
	animation-delay: var(--sec-delay, 0s);
	overflow: hidden;
}

@keyframes jursoc-sec-pill-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.jursoc-sec-pill__ring {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 2px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, var(--sec-color), color-mix(in srgb, var(--sec-color) 40%, #fff)) border-box;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.jursoc-sec-pill__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(
		145deg,
		var(--sec-color),
		color-mix(in srgb, var(--sec-color) 75%, #000)
	);
	color: #fff;
	box-shadow:
		0 4px 14px color-mix(in srgb, var(--sec-color) 45%, transparent),
		0 1px 0 rgba(255, 255, 255, 0.25) inset;
	transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.jursoc-sec-pill__icon svg {
	width: 22px;
	height: 22px;
	stroke: #fff;
}

.jursoc-sec-pill__label {
	font-size: clamp(0.7rem, 1vw, 0.82rem);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	letter-spacing: 0.01em;
	transition: color 0.25s ease;
}

.jursoc-sec-pill:hover,
.jursoc-sec-pill:focus-visible {
	transform: translateY(-3px) scale(1.02);
	border-color: color-mix(in srgb, var(--sec-color) 35%, transparent);
	box-shadow:
		0 14px 28px color-mix(in srgb, var(--sec-color) 22%, transparent),
		0 4px 12px rgba(0, 33, 71, 0.08);
	background: color-mix(in srgb, var(--sec-color) 8%, #fff);
	z-index: 2;
}

.jursoc-sec-pill.is-active {
	transform: translateY(-4px) scale(1.03);
	border-color: color-mix(in srgb, var(--sec-color) 50%, transparent);
	background: color-mix(in srgb, var(--sec-color) 14%, #fff);
	box-shadow:
		0 16px 32px color-mix(in srgb, var(--sec-color) 28%, transparent),
		0 0 0 1px color-mix(in srgb, var(--sec-color) 20%, transparent);
	z-index: 3;
}

.jursoc-sec-pill.is-active .jursoc-sec-pill__ring {
	opacity: 1;
}

.jursoc-sec-pill.is-active .jursoc-sec-pill__icon,
.jursoc-sec-pill:hover .jursoc-sec-pill__icon {
	transform: scale(1.08) rotate(-3deg);
}

.jursoc-sec-pill.is-active .jursoc-sec-pill__label {
	color: color-mix(in srgb, var(--sec-color) 85%, #001a33);
}

.jursoc-sec-pill:focus-visible {
	outline: 2px solid var(--sec-color);
	outline-offset: 3px;
}

/* Panel de vista previa */
.jursoc-sec-preview {
	--sec-color: #003366;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	min-height: 200px;
	border-radius: calc(var(--jursoc-radius) + 2px);
	overflow: hidden;
	background: var(--sec-color);
	color: #fff;
	box-shadow:
		0 20px 50px color-mix(in srgb, var(--sec-color) 35%, transparent),
		0 0 0 1px rgba(255, 255, 255, 0.12) inset;
	transition:
		background 0.45s ease,
		box-shadow 0.45s ease;
}

.jursoc-sec-preview.is-switching .jursoc-sec-preview__body {
	animation: jursoc-sec-preview-in 0.4s ease;
}

@keyframes jursoc-sec-preview-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.jursoc-sec-preview__visual {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 100%;
}

.jursoc-sec-preview__mesh {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 70% at 20% 80%, rgba(255, 255, 255, 0.22), transparent 55%),
		radial-gradient(ellipse 60% 50% at 90% 20%, rgba(0, 0, 0, 0.15), transparent 50%),
		linear-gradient(160deg, transparent 0%, rgba(0, 0, 0, 0.12) 100%);
}

.jursoc-sec-preview__orb {
	position: absolute;
	width: 140px;
	height: 140px;
	right: -30px;
	top: -30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	filter: blur(2px);
	animation: jursoc-sec-orb 6s ease-in-out infinite;
}

@keyframes jursoc-sec-orb {
	0%, 100% { transform: scale(1); opacity: 0.5; }
	50% { transform: scale(1.15); opacity: 0.75; }
}

.jursoc-sec-preview__icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.jursoc-sec-preview__icon svg {
	width: 36px;
	height: 36px;
	stroke: #fff;
}

.jursoc-sec-preview__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.65rem;
	padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.5rem);
}

.jursoc-sec-preview__title {
	margin: 0;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.jursoc-sec-preview__desc {
	margin: 0;
	font-size: clamp(0.82rem, 1.2vw, 0.92rem);
	line-height: 1.55;
	opacity: 0.92;
	max-width: 38ch;
}

a.jursoc-sec-preview__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	width: fit-content;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.95);
	margin-top: 0.15rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.28);
	transition: gap 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

a.jursoc-sec-preview__cta:hover,
a.jursoc-sec-preview__cta:focus-visible {
	gap: 0.55rem;
	background: rgba(255, 255, 255, 0.28);
	transform: translateX(3px);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 1100px) {
	.jursoc-sec-hub__layout {
		grid-template-columns: 1fr;
	}

	.jursoc-sec-hub__pills {
		grid-template-columns: repeat(6, minmax(108px, 1fr));
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 0.25rem;
		scrollbar-width: thin;
	}

	.jursoc-sec-pill {
		scroll-snap-align: center;
		min-width: 108px;
	}

	.jursoc-sec-preview {
		grid-template-columns: 120px 1fr;
		min-height: 160px;
	}
}

@media (max-width: 640px) {
	.jursoc-sec-hub__pills {
		grid-template-columns: repeat(6, minmax(96px, 1fr));
	}

	.jursoc-sec-pill {
		min-height: 78px;
		min-width: 96px;
	}

	.jursoc-sec-pill__icon {
		width: 36px;
		height: 36px;
	}

	.jursoc-sec-preview {
		grid-template-columns: 1fr;
	}

	.jursoc-sec-preview__visual {
		min-height: 100px;
	}

	.jursoc-sec-preview__icon {
		width: 56px;
		height: 56px;
	}

	.jursoc-sec-preview__icon svg {
		width: 28px;
		height: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jursoc-sec-pill,
	.jursoc-sec-preview,
	.jursoc-sec-preview__orb {
		animation: none;
		transition-duration: 0.01ms;
	}

	.jursoc-sec-pill:hover,
	.jursoc-sec-pill.is-active {
		transform: none;
	}
}

.jursoc-secretaria-card {
	position: relative;
	display: flex;
	align-items: stretch;
	height: 50px;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: #0f172a;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
	animation: jursoc-secretaria-in 0.45s ease backwards;
	animation-delay: var(--sec-delay, 0s);
}

@keyframes jursoc-secretaria-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.jursoc-secretaria-card:hover,
.jursoc-secretaria-card.is-hovered {
	border-color: var(--sec-color);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	transform: translateY(-2px);
	z-index: 2;
}

.jursoc-secretaria-card__media {
	position: relative;
	width: 52px;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--sec-color);
}

.jursoc-secretaria-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), filter 0.45s;
	filter: saturate(0.85) brightness(0.92);
}

.jursoc-secretaria-card:hover .jursoc-secretaria-card__img,
.jursoc-secretaria-card.is-hovered .jursoc-secretaria-card__img {
	transform: scale(1.18);
	filter: saturate(1.15) brightness(1.05);
}

.jursoc-secretaria-card__media-shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform 0.6s ease;
	pointer-events: none;
}

.jursoc-secretaria-card:hover .jursoc-secretaria-card__media-shine,
.jursoc-secretaria-card.is-hovered .jursoc-secretaria-card__media-shine {
	transform: translateX(100%);
}

.jursoc-secretaria-card__icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	opacity: 0.85;
	transition: opacity 0.3s, transform 0.3s;
}

.jursoc-secretaria-card__icon svg {
	width: 20px;
	height: 20px;
	stroke: #fff;
}

.jursoc-secretaria-card:hover .jursoc-secretaria-card__icon,
.jursoc-secretaria-card.is-hovered .jursoc-secretaria-card__icon {
	opacity: 0;
	transform: scale(0.6);
}

.jursoc-secretaria-card__face {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	padding: 0 0.65rem 0 0.5rem;
	min-width: 0;
	transition: opacity 0.25s;
}

.jursoc-secretaria-card__name {
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jursoc-secretaria-card__arrow {
	flex-shrink: 0;
	color: var(--sec-color);
	opacity: 0.55;
	transition: transform 0.25s, opacity 0.25s;
}

.jursoc-secretaria-card:hover .jursoc-secretaria-card__arrow {
	transform: translateX(2px);
	opacity: 1;
}

.jursoc-secretaria-card__reveal {
	position: absolute;
	inset: 0;
	left: 52px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.15rem;
	padding: 0.35rem 0.6rem;
	background: var(--sec-color);
	color: #fff;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.jursoc-secretaria-card:hover .jursoc-secretaria-card__reveal,
.jursoc-secretaria-card.is-hovered .jursoc-secretaria-card__reveal,
.jursoc-secretaria-card:focus-visible .jursoc-secretaria-card__reveal {
	opacity: 1;
	transform: translateX(0);
}

.jursoc-secretaria-card:focus-visible {
	outline: 2px solid var(--sec-color);
	outline-offset: 2px;
}

.jursoc-secretaria-card:focus-visible .jursoc-secretaria-card__face {
	opacity: 0;
}

.jursoc-secretaria-card:hover .jursoc-secretaria-card__face,
.jursoc-secretaria-card.is-hovered .jursoc-secretaria-card__face {
	opacity: 0;
}

.jursoc-secretaria-card__reveal-icon {
	display: none;
}

.jursoc-secretaria-card__desc {
	font-size: 0.62rem;
	line-height: 1.35;
	opacity: 0.95;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jursoc-secretaria-card__cta {
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.9);
}

/* —— Franja accesos (antes del footer) —— */
.jursoc-accesos-band {
	margin: 2.5rem calc(-1 * clamp(1rem, 2.5vw, 2.5rem)) 0;
	padding: 2.5rem clamp(1rem, 2.5vw, 2.5rem) 3rem;
	background: linear-gradient(135deg, #001a33 0%, #003366 40%, #0d4a7a 70%, #1a5a8a 100%);
	position: relative;
	overflow: hidden;
}

.jursoc-accesos-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 80% at 10% 50%, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
		radial-gradient(ellipse 50% 60% at 90% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
	pointer-events: none;
}

.jursoc-accesos-band__inner {
	position: relative;
	z-index: 1;
	max-width: none;
	width: 100%;
	margin: 0 auto;
	padding-left: clamp(0.75rem, 1.5vw, 1.75rem);
	padding-right: clamp(0.75rem, 1.5vw, 1.75rem);
	box-sizing: border-box;
}

.jursoc-accesos-band__header {
	text-align: center;
	margin-bottom: 1.75rem;
	color: #fff;
}

.jursoc-accesos-band__title {
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 700;
	margin: 0 0 0.35rem;
	letter-spacing: -0.02em;
}

.jursoc-accesos-band__lead {
	margin: 0;
	opacity: 0.8;
	font-size: 0.95rem;
}

.jursoc-accesos-band__track-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
}

.jursoc-accesos-band__track-wrap.is-centered .jursoc-accesos-band__track {
	justify-content: center;
	flex-wrap: wrap;
	overflow-x: visible;
}

.jursoc-accesos-band__track {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 0.5rem 0.25rem 1rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
	flex: 0 1 auto;
	max-width: 100%;
	margin-inline: auto;
}

.jursoc-accesos-band__track::-webkit-scrollbar {
	height: 6px;
}

.jursoc-accesos-band__track::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.35);
	border-radius: 3px;
}

.jursoc-accesos-band__nav {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, transform 0.2s;
}

.jursoc-accesos-band__nav:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: scale(1.05);
}

.jursoc-accesos-band__track-wrap.is-centered .jursoc-acceso-card {
	flex: 0 1 260px;
}

.jursoc-acceso-card {
	flex: 0 0 min(260px, 85vw);
	scroll-snap-align: center;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.35rem 1.25rem;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 16px;
	color: #fff;
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
	animation: jursoc-acceso-in 0.6s ease backwards;
	animation-delay: var(--card-delay, 0s);
}

@keyframes jursoc-acceso-in {
	from { opacity: 0; transform: translateY(20px) scale(0.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.jursoc-acceso-card__shine {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 20%, var(--card-accent, #003366) 0%, transparent 55%);
	opacity: 0.4;
	transition: opacity 0.3s;
	pointer-events: none;
}

.jursoc-acceso-card:hover {
	border-color: rgba(255, 255, 255, 0.5);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	color: #fff;
}

.jursoc-acceso-card:hover .jursoc-acceso-card__shine {
	opacity: 0.65;
}

.jursoc-acceso-card__icon {
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 14px;
}

.jursoc-acceso-card__icon svg {
	width: 32px;
	height: 32px;
}

.jursoc-acceso-card__subtitle {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.75;
}

.jursoc-acceso-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.jursoc-acceso-card__cta {
	margin-top: auto;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--jursoc-accent);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s, transform 0.25s;
}

.jursoc-acceso-card:hover .jursoc-acceso-card__cta {
	opacity: 1;
	transform: translateY(0);
}

/* Legacy spotlight (no usado en hero) */
.jursoc-spotlight {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	width: 100%;
	align-content: center;
}

.jursoc-spotlight-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1.1rem;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(16px) saturate(1.3);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 14px;
	color: #fff;
	text-decoration: none;
	overflow: hidden;
	transition: box-shadow 0.25s, border-color 0.25s;
	animation: jursoc-spotlight-in 0.55s ease backwards;
	animation-delay: var(--card-delay, 0s);
}

@keyframes jursoc-spotlight-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.jursoc-spotlight-card__glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 50%, var(--card-accent, #003366) 0%, transparent 65%);
	opacity: 0.35;
	pointer-events: none;
	transition: opacity 0.25s;
}

.jursoc-spotlight-card:hover {
	border-color: rgba(255, 255, 255, 0.45);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	color: #fff;
}

.jursoc-spotlight-card:hover .jursoc-spotlight-card__glow {
	opacity: 0.55;
}

.jursoc-spotlight-card__icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	color: #fff;
}

.jursoc-spotlight-card__icon svg {
	width: 28px;
	height: 28px;
	stroke: currentColor;
}

.jursoc-spotlight-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.jursoc-spotlight-card__subtitle {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.75;
}

.jursoc-spotlight-card__title {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
}

.jursoc-spotlight-card__arrow {
	flex-shrink: 0;
	opacity: 0.5;
	transition: transform 0.2s, opacity 0.2s;
}

.jursoc-spotlight-card:hover .jursoc-spotlight-card__arrow {
	opacity: 1;
	transform: translateX(3px);
}

/* —— Hero Hub interactivo —— */
.jursoc-hero-hub {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 380px;
	overflow: hidden;
	border-radius: 0;
}

.jursoc-hero-hub__bg {
	position: absolute;
	inset: -8%;
	background-image: var(--hub-bg);
	background-size: cover;
	background-position: center;
	transition: transform 0.15s ease-out;
	animation: jursoc-kenburns 24s ease-in-out infinite alternate;
	filter: saturate(1.05) contrast(1.02);
}

@keyframes jursoc-kenburns {
	from { transform: scale(1.05); }
	to { transform: scale(1.12); }
}

.jursoc-hero-hub__glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201, 162, 39, 0.15) 0%, transparent 55%),
		linear-gradient(180deg, rgba(0, 20, 40, 0.2) 0%, rgba(0, 20, 40, 0.75) 100%);
	pointer-events: none;
}

.jursoc-hero-hub__panel {
	position: relative;
	z-index: 2;
	margin: 1.5rem;
	padding: 1.35rem;
	max-width: 340px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(20px) saturate(1.4);
	-webkit-backdrop-filter: blur(20px) saturate(1.4);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
	color: #fff;
}

.jursoc-hero-hub__label {
	margin: 0 0 0.85rem;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	opacity: 0.75;
}

.jursoc-hero-hub__search {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 12px;
	margin-bottom: 1rem;
}

.jursoc-hero-hub__search input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 0.9rem;
	color: #0f172a;
	min-width: 0;
}

.jursoc-hero-hub__search input:focus {
	outline: none;
}

.jursoc-hero-hub__search button {
	border: none;
	background: var(--jursoc-primary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.45rem 0.85rem;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
}

.jursoc-hero-hub__search button:hover {
	background: #004080;
}

.jursoc-hero-hub__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.jursoc-hero-hub__stat {
	padding: 0.65rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.jursoc-hero-hub__stat-num {
	display: block;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--jursoc-accent);
}

.jursoc-hero-hub__stat-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.8;
}

.jursoc-hero-hub__countdown {
	display: block;
	padding: 0.85rem;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, rgba(201, 162, 39, 0.25), rgba(0, 51, 102, 0.4));
	border: 1px solid rgba(201, 162, 39, 0.4);
	border-radius: 12px;
	text-decoration: none;
	color: #fff;
	transition: transform 0.2s, box-shadow 0.2s;
}

.jursoc-hero-hub__countdown:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	color: #fff;
}

.jursoc-hero-hub__countdown-label {
	display: block;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	opacity: 0.8;
	margin-bottom: 0.25rem;
}

.jursoc-hero-hub__countdown-title {
	display: block;
	font-size: 0.85rem;
	line-height: 1.35;
	margin-bottom: 0.35rem;
}

.jursoc-hero-hub__countdown-timer {
	font-size: 1.25rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--jursoc-accent);
}

.jursoc-hero-hub__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.jursoc-hero-hub__quick-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.65rem;
	font-size: 0.72rem;
	font-weight: 500;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	color: #fff;
	text-decoration: none;
	transition: background 0.2s;
}

.jursoc-hero-hub__quick-link:hover {
	background: rgba(255, 255, 255, 0.28);
	color: #fff;
}

.jursoc-hero-hub__quick-icon svg {
	width: 16px;
	height: 16px;
	stroke: #fff;
}

.jursoc-hero-hub__explore {
	position: absolute;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.6rem 1.1rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: rgba(0, 51, 102, 0.85);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s, background 0.2s;
}

.jursoc-hero-hub__explore:hover {
	transform: translateY(-2px);
	background: var(--jursoc-primary);
}

/* Hub en panel derecho del hero (centro de información) */
.jursoc-hero-hub--panel {
	min-height: 0;
	flex: 1;
	width: 100%;
	display: flex;
	align-items: stretch;
	overflow: visible;
}

.jursoc-hero-hub--panel .jursoc-hero-hub__panel {
	margin: 0;
	max-width: none;
	width: 100%;
	height: 100%;
	flex: 1;
	padding: clamp(0.75rem, 1.2vw, 0.95rem);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0.55rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(24px) saturate(1.5);
	-webkit-backdrop-filter: blur(24px) saturate(1.5);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.06) inset,
		0 16px 48px rgba(0, 0, 0, 0.28);
}

.jursoc-hero-hub--panel .jursoc-hero-hub__search {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0;
	padding: 0.3rem 0.35rem 0.3rem 0.65rem;
	background: rgba(255, 255, 255, 0.97);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.jursoc-hero-hub--panel .jursoc-hero-hub__search-icon {
	display: flex;
	color: var(--jursoc-primary);
	opacity: 0.55;
	flex-shrink: 0;
}

.jursoc-hero-hub--panel .jursoc-hero-hub__search input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 0.8rem;
	color: #0f172a;
	min-width: 0;
}

.jursoc-hero-hub--panel .jursoc-hero-hub__search input::placeholder {
	color: #94a3b8;
}

.jursoc-hero-hub--panel .jursoc-hero-hub__search button {
	border: none;
	background: var(--jursoc-primary);
	color: #fff;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.2s, transform 0.2s;
}

.jursoc-hero-hub--panel .jursoc-hero-hub__search button:hover {
	background: #004080;
	transform: scale(1.05);
}

.jursoc-hero-hub--panel .jursoc-hero-hub__stats {
	margin-bottom: 0;
	gap: 0.45rem;
}

.jursoc-hero-hub--panel .jursoc-hero-hub__stat {
	padding: 0.55rem 0.4rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	transition: background 0.2s, border-color 0.2s;
}

.jursoc-hero-hub--panel .jursoc-hero-hub__stat:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(201, 162, 39, 0.35);
}

.jursoc-hero-hub--panel .jursoc-hero-hub__stat-num {
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	text-shadow: 0 0 24px rgba(201, 162, 39, 0.35);
}

.jursoc-hero-hub--panel .jursoc-hero-hub__stat-label {
	font-size: 0.6rem;
	letter-spacing: 0.08em;
	opacity: 0.85;
}

.jursoc-hero-hub--panel .jursoc-hero-hub__countdown {
	margin-bottom: 0;
	padding: 0.6rem 0.65rem;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(201, 162, 39, 0.3), rgba(0, 51, 102, 0.35));
	border: 1px solid rgba(201, 162, 39, 0.45);
}

.jursoc-hero-hub--panel .jursoc-hero-hub__countdown:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.jursoc-hero-hub--panel .jursoc-hero-hub__countdown-title {
	font-size: 0.78rem;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.35;
}

.jursoc-hero-hub--panel .jursoc-hero-hub__countdown-timer {
	font-size: 1.05rem;
	letter-spacing: 0.04em;
}

.jursoc-hero-hub--panel .jursoc-hero-hub__quick {
	margin-top: auto;
	gap: 0.35rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.jursoc-hero-hub--panel .jursoc-hero-hub__quick-link {
	font-size: 0.68rem;
	padding: 0.45rem 0.5rem;
	width: 100%;
	justify-content: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-weight: 600;
}

.jursoc-hero-hub--panel .jursoc-hero-hub__quick-link:hover {
	background: rgba(201, 162, 39, 0.35);
	border-color: rgba(201, 162, 39, 0.5);
	transform: translateY(-1px);
}

/* Hub en sidebar (legacy) */
.jursoc-hero-hub--sidebar {
	min-height: 0;
	margin-bottom: 1.25rem;
	border-radius: var(--jursoc-radius);
	overflow: visible;
	box-shadow: var(--jursoc-shadow);
	background: #fff;
}

.jursoc-hero-hub--sidebar .jursoc-hero-hub__panel {
	margin: 0;
	max-width: none;
	padding: 1.15rem;
	background: #fff;
	backdrop-filter: none;
	border: 1px solid #e2e8f0;
	border-radius: var(--jursoc-radius);
	box-shadow: none;
	color: #0f172a;
}

.jursoc-hero-hub--sidebar .jursoc-hero-hub__label {
	color: var(--jursoc-primary);
	opacity: 1;
	font-weight: 600;
}

.jursoc-hero-hub--sidebar .jursoc-hero-hub__stat {
	background: #f1f5f9;
	border-color: #e2e8f0;
}

.jursoc-hero-hub--sidebar .jursoc-hero-hub__stat-num {
	color: var(--jursoc-primary);
}

.jursoc-hero-hub--sidebar .jursoc-hero-hub__stat-label {
	color: #64748b;
	opacity: 1;
}

.jursoc-hero-hub--sidebar .jursoc-hero-hub__countdown {
	background: linear-gradient(135deg, #f8fafc, #e8f0fa);
	border-color: rgba(0, 51, 102, 0.15);
	color: #0f172a;
}

.jursoc-hero-hub--sidebar .jursoc-hero-hub__countdown:hover {
	color: #0f172a;
}

.jursoc-hero-hub--sidebar .jursoc-hero-hub__countdown-timer {
	color: var(--jursoc-accent);
}

.jursoc-hero-hub--sidebar .jursoc-hero-hub__quick-link {
	background: #f1f5f9;
	color: var(--jursoc-primary);
}

.jursoc-hero-hub--sidebar .jursoc-hero-hub__quick-link:hover {
	background: #e2e8f0;
	color: var(--jursoc-primary);
}

.jursoc-hero-hub--sidebar .jursoc-hero-hub__quick-icon svg {
	stroke: var(--jursoc-primary);
}

@media (max-width: 900px) {
	.jursoc-news-rotator {
		--rotator-title-size: clamp(0.92rem, 0.8rem + 0.95vw, 1.12rem);
		--rotator-title-lh: 1.17;
		--rotator-title-max: 95%;
		--rotator-cat-size: 0.54rem;
		--rotator-excerpt-size: clamp(0.72rem, 0.68rem + 0.28vw, 0.8rem);
	}

	.jursoc-hero__band {
		min-height: auto;
	}

	.jursoc-hero__panels {
		grid-template-columns: 1fr;
		padding: 0.75rem;
	}

	.jursoc-hero__panel--rotator {
		padding-right: 0;
	}

	.jursoc-hero__panel--hub {
		padding-left: 0;
	}

	.jursoc-news-rotator__track {
		min-height: 280px;
	}

	.jursoc-news-rotator__content {
		left: clamp(2.75rem, 12vw, 3.5rem);
		right: clamp(2.75rem, 12vw, 3.5rem);
	}

	.jursoc-news-rotator__btn--prev,
	.jursoc-news-rotator__btn--next {
		width: 38px;
		height: 38px;
	}

	.jursoc-hero-hub--panel .jursoc-hero-hub__quick {
		grid-template-columns: repeat(3, 1fr);
	}

	.jursoc-sec-hub__layout {
		padding: 0.75rem;
	}

	.jursoc-acceso-card {
		flex: 0 0 min(260px, 88vw);
	}

	.jursoc-accesos-band {
		margin-left: 0;
		margin-right: 0;
	}
}

@media (max-width: 1200px) {
	.jursoc-news-rotator {
		--rotator-title-size: clamp(0.96rem, 0.84rem + 0.72vw, 1.2rem);
		--rotator-title-max: min(33ch, 95%);
	}
}

@media (max-width: 768px) {
	.jursoc-news-rotator {
		--rotator-title-size: clamp(0.9rem, 0.8rem + 0.8vw, 1.05rem);
		--rotator-title-lh: 1.18;
		--rotator-title-max: 96%;
		--rotator-cat-size: 0.52rem;
		--rotator-excerpt-size: 0.75rem;
	}

	.jursoc-news-rotator__content {
		left: clamp(1rem, 4vw, 1.5rem);
		right: clamp(1rem, 4vw, 1.5rem);
		padding: clamp(0.9rem, 3vw, 1.1rem) 0 clamp(0.8rem, 2.6vw, 1rem);
	}

	.jursoc-news-rotator__excerpt {
		-webkit-line-clamp: 2;
	}
}

@media (max-width: 480px) {
	.jursoc-news-rotator {
		--rotator-title-size: clamp(0.84rem, 0.76rem + 0.7vw, 0.96rem);
		--rotator-title-lh: 1.2;
		--rotator-title-max: 97%;
		--rotator-cat-size: 0.5rem;
	}

	.jursoc-news-rotator__track {
		min-height: clamp(240px, 68vw, 290px);
	}

	.jursoc-news-rotator__excerpt {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jursoc-hero__band-shine,
	.jursoc-news-rotator__img {
		animation: none;
		transition: none;
	}

	.jursoc-news-rotator__progress-fill {
		display: none;
	}
}

/* Botón accesibilidad en accesos rápidos */
button.jursoc-acceso-card {
	width: 100%;
	border: none;
	cursor: pointer;
	font: inherit;
	text-align: left;
	appearance: none;
}

button.jursoc-hero-hub__quick-link {
	border: none;
	cursor: pointer;
	font: inherit;
	appearance: none;
}

/* Layout 30 / 70 (noticias, debajo de secretarías) */
.jursoc-layout {
	display: flex;
	flex-direction: row;
	gap: var(--gap-layout);
	align-items: stretch;
	width: 100%;
	margin-top: 0;
}

.jursoc-layout__sidebar {
	flex: 0 0 var(--sidebar-width);
	max-width: var(--sidebar-width);
	min-width: 240px;
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Próximos eventos — carrusel (sidebar, arriba del calendario) */
.jursoc-proximo-evento {
	width: 100%;
}

.jursoc-proximo-evento__card {
	margin-bottom: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	text-decoration: none;
}

.jursoc-eventos-carousel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.jursoc-eventos-carousel__heading {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
}

.jursoc-eventos-carousel__counter {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--jursoc-primary);
	font-variant-numeric: tabular-nums;
}

.jursoc-eventos-carousel__viewport {
	position: relative;
	overflow: hidden;
}

.jursoc-eventos-carousel__track {
	position: relative;
	min-height: 7.5rem;
}

.jursoc-eventos-carousel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
	pointer-events: none;
}

.jursoc-eventos-carousel__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.jursoc-eventos-carousel__cta {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--jursoc-primary);
	opacity: 0.85;
	margin-top: 0.15rem;
}

.jursoc-proximo-evento__card:hover .jursoc-eventos-carousel__cta {
	opacity: 1;
}

.jursoc-eventos-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 0.65rem;
}

.jursoc-eventos-carousel__btn {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border: 1px solid #dbe5f0;
	border-radius: 50%;
	background: #fff;
	color: var(--jursoc-primary);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.jursoc-eventos-carousel__btn:hover,
.jursoc-eventos-carousel__btn:focus-visible {
	background: var(--jursoc-primary);
	border-color: var(--jursoc-primary);
	color: #fff;
	outline: none;
}

.jursoc-eventos-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
	flex: 1;
}

.jursoc-eventos-carousel__dot {
	width: 0.45rem;
	height: 0.45rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #cbd5e1;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.jursoc-eventos-carousel__dot.is-active {
	background: var(--jursoc-accent);
	transform: scale(1.25);
}

.jursoc-eventos-carousel__dot:hover,
.jursoc-eventos-carousel__dot:focus-visible {
	background: var(--jursoc-primary);
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.jursoc-eventos-carousel__slide {
		transition: none;
		transform: none;
	}
}

.jursoc-layout__sidebar .jursoc-hero-hub__countdown {
	background: linear-gradient(135deg, rgba(0, 51, 102, 0.08), rgba(201, 162, 39, 0.12));
	border: 1px solid #dbe5f0;
	border-left: 4px solid var(--jursoc-accent);
	border-radius: var(--jursoc-radius);
	color: var(--jursoc-primary);
}

.jursoc-layout__sidebar .jursoc-hero-hub__countdown:hover {
	color: var(--jursoc-primary);
	box-shadow: var(--jursoc-shadow);
}

.jursoc-layout__sidebar .jursoc-hero-hub__countdown-label {
	color: #64748b;
	opacity: 1;
}

.jursoc-layout__sidebar .jursoc-hero-hub__countdown-title {
	color: var(--jursoc-primary);
	font-size: 0.92rem;
}

.jursoc-layout__sidebar .jursoc-hero-hub__countdown-timer {
	color: var(--jursoc-accent);
	font-size: 1.1rem;
}

/* Hero solo intro (sin franja azul) */
.jursoc-hero--intro {
	padding-bottom: 0;
}

.jursoc-hero--intro .jursoc-hero__intro {
	max-width: 52rem;
	margin: 0 auto;
	text-align: center;
}

/* Chat mockup (demo, sin funcionalidad) */
.jursoc-chat-mockup {
	background: linear-gradient(165deg, #f8fbff 0%, #fff 55%);
	border: 1px solid #dbe5f0;
	border-radius: var(--jursoc-radius);
	padding: 1rem 1rem 0.85rem;
	box-shadow: var(--jursoc-shadow);
	overflow: hidden;
}

.jursoc-chat-mockup__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #e8eef4;
}

.jursoc-chat-mockup__brand {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
}

.jursoc-chat-mockup__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 11px;
	background: linear-gradient(145deg, var(--jursoc-primary), #0a4a7a);
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 51, 102, 0.22);
}

.jursoc-chat-mockup__titles {
	min-width: 0;
}

.jursoc-chat-mockup__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--jursoc-primary);
	line-height: 1.2;
}

.jursoc-chat-mockup__status {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0.15rem 0 0;
	font-size: 0.68rem;
	color: #64748b;
}

.jursoc-chat-mockup__status-dot {
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
	animation: jursoc-chat-pulse 2s ease infinite;
}

@keyframes jursoc-chat-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

.jursoc-chat-mockup__badge {
	flex-shrink: 0;
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.2rem 0.45rem;
	border-radius: 6px;
	background: #eef3f9;
	color: #475569;
	border: 1px dashed #94a3b8;
}

.jursoc-chat-mockup__thread {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	max-height: 260px;
	overflow-y: auto;
	overflow-x: hidden;
	margin-bottom: 0.75rem;
	padding-right: 0.15rem;
	scroll-behavior: smooth;
}

.jursoc-chat-mockup__thread::-webkit-scrollbar {
	width: 5px;
}

.jursoc-chat-mockup__thread::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.jursoc-chat-mockup__msg {
	max-width: 92%;
	padding: 0.55rem 0.7rem;
	border-radius: 12px;
	font-size: 0.76rem;
	line-height: 1.45;
}

.jursoc-chat-mockup__msg p {
	margin: 0;
}

.jursoc-chat-mockup__msg--bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #334155;
	border-bottom-left-radius: 4px;
}

.jursoc-chat-mockup__msg--user {
	align-self: flex-end;
	background: linear-gradient(145deg, var(--jursoc-primary), #0a4a7a);
	color: #fff;
	border-bottom-right-radius: 4px;
	box-shadow: 0 3px 10px rgba(0, 51, 102, 0.18);
}

.jursoc-chat-mockup__cite {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.62rem;
	color: #64748b;
	font-style: italic;
}

.jursoc-chat-mockup__typing {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	align-self: flex-start;
	padding: 0.45rem 0.65rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	border-bottom-left-radius: 4px;
}

.jursoc-chat-mockup__typing span {
	width: 0.35rem;
	height: 0.35rem;
	border-radius: 50%;
	background: #94a3b8;
	animation: jursoc-chat-typing 1.2s ease infinite;
}

.jursoc-chat-mockup__typing span:nth-child(2) { animation-delay: 0.15s; }
.jursoc-chat-mockup__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes jursoc-chat-typing {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
	30% { transform: translateY(-3px); opacity: 1; }
}

.jursoc-chat-mockup__composer {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.jursoc-chat-mockup__input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	font-size: 0.78rem;
	color: #0f172a;
	padding: 0.35rem 0.45rem;
}

.jursoc-chat-mockup__input::placeholder {
	color: #94a3b8;
}

.jursoc-chat-mockup__input:focus {
	outline: none;
}

.jursoc-chat-mockup__composer:focus-within {
	border-color: var(--jursoc-primary);
	box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.12);
}

.jursoc-chat-mockup__send {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: none;
	border-radius: 8px;
	background: linear-gradient(145deg, var(--jursoc-primary), #0a4a7a);
	color: #fff;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.jursoc-chat-mockup__send:hover:not(:disabled) {
	transform: scale(1.05);
}

.jursoc-chat-mockup__send:disabled {
	background: #cbd5e1;
	cursor: wait;
	opacity: 0.75;
}

.jursoc-chat-mockup.is-busy .jursoc-chat-mockup__status-dot {
	background: #f59e0b;
	box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.jursoc-chat-mockup__msg {
	animation: jursoc-chat-msg-in 0.28s ease;
}

@keyframes jursoc-chat-msg-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.jursoc-chat-mockup__disclaimer {
	margin: 0.55rem 0 0;
	font-size: 0.65rem;
	color: #94a3b8;
	text-align: center;
	line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
	.jursoc-chat-mockup__status-dot,
	.jursoc-chat-mockup__typing span,
	.jursoc-chat-mockup__msg {
		animation: none;
	}
}

.jursoc-layout__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.jursoc-layout__main .jursoc-cards-wrapper {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.jursoc-layout__main .jursoc-cards-grid {
	flex: 1 1 auto;
	grid-auto-rows: 1fr;
	align-content: stretch;
}

.jursoc-layout__main .jursoc-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.jursoc-layout__main .jursoc-card__link {
	flex: 1 1 auto;
	height: 100%;
	min-height: 150px;
	aspect-ratio: unset;
}

/* Calendario sidebar */
.jursoc-calendar-widget {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--jursoc-radius);
	padding: 1.25rem;
	box-shadow: var(--jursoc-shadow);
}

.jursoc-calendar-widget__header {
	margin-bottom: 1rem;
}

.jursoc-calendar-widget__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.15rem;
	color: var(--jursoc-primary);
	margin: 0 0 0.5rem;
}

.jursoc-calendar-widget__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.jursoc-calendar-widget__month {
	margin: 0;
	flex: 1;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 600;
	color: #334155;
	text-transform: capitalize;
}

.jursoc-calendar-nav {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--jursoc-primary);
	transition: background 0.2s, border-color 0.2s;
}

.jursoc-calendar-nav:hover {
	background: #e8f0fa;
	border-color: var(--jursoc-primary);
}

.jursoc-calendar-widget.is-loading .jursoc-calendar-widget__body {
	opacity: 0.5;
	pointer-events: none;
}

.jursoc-mini-cal__table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.jursoc-mini-cal__table th {
	font-size: 0.68rem;
	font-weight: 600;
	color: #94a3b8;
	padding: 0.35rem 0;
	text-align: center;
}

.jursoc-mini-cal__table td {
	padding: 2px;
	text-align: center;
	vertical-align: middle;
}

.jursoc-mini-cal__cell.is-empty {
	background: transparent;
}

.jursoc-mini-cal__day {
	width: 100%;
	aspect-ratio: 1;
	max-width: 40px;
	margin: 0 auto;
	border: none;
	background: transparent;
	border-radius: 8px;
	font-size: 0.8rem;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	color: #334155;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.jursoc-mini-cal__day:hover {
	background: #e8f0fa;
}

.jursoc-mini-cal__cell.is-today .jursoc-mini-cal__day {
	background: var(--jursoc-primary);
	color: #fff;
	font-weight: 700;
}

.jursoc-mini-cal__cell.has-event .jursoc-mini-cal__day {
	box-shadow: inset 0 0 0 2px var(--jursoc-accent);
	font-weight: 600;
}

.jursoc-mini-cal__day.is-selected {
	background: var(--jursoc-accent) !important;
	color: #fff !important;
}

.jursoc-calendar-events__hint {
	margin: 0.75rem 0 0;
	font-size: 0.8rem;
}

.jursoc-calendar-events__hint a {
	color: var(--jursoc-primary);
}

.jursoc-calendar-events {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e2e8f0;
}

.jursoc-calendar-events__title {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin: 0 0 0.75rem;
}

.jursoc-eventos-lista {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 320px;
	overflow-y: auto;
	scrollbar-width: thin;
}

.jursoc-evento {
	display: flex;
	gap: 0.75rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.2s, opacity 0.2s;
	border-radius: 8px;
}

.jursoc-evento.is-highlighted {
	background: #fffbeb;
	padding-left: 0.35rem;
	padding-right: 0.35rem;
}

.jursoc-evento__date {
	flex-shrink: 0;
	width: 44px;
	text-align: center;
	background: var(--jursoc-primary);
	color: #fff;
	border-radius: 8px;
	padding: 0.35rem 0.2rem;
	line-height: 1.05;
}

.jursoc-evento__day { display: block; font-size: 1.1rem; font-weight: 700; }
.jursoc-evento__month { display: block; font-size: 0.6rem; text-transform: uppercase; }
.jursoc-evento__title { margin: 0 0 0.15rem; font-size: 0.9rem; }
.jursoc-evento__title a { color: var(--jursoc-primary); text-decoration: none; }
.jursoc-evento__title a:hover { text-decoration: underline; }
.jursoc-evento__hora, .jursoc-evento__breve { margin: 0; font-size: 0.78rem; color: #64748b; }

/* Noticias – main */
.jursoc-section-title {
	font-size: 1.45rem;
	color: var(--jursoc-primary);
	margin: 0 0 1rem;
	font-weight: 700;
}

.jursoc-noticias__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.jursoc-results-count {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0;
}

.jursoc-filters {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin-bottom: 1.25rem;
}

.jursoc-search { position: relative; max-width: 100%; }

.jursoc-search__input {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	font-size: 0.95rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.jursoc-search__input:focus {
	outline: none;
	border-color: var(--jursoc-primary);
	box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.12);
}

.jursoc-filters__categories {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.35rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 0.15rem;
}

.jursoc-filters__categories::-webkit-scrollbar {
	height: 4px;
}

.jursoc-filter-pill {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 0.3rem;
	padding: 0.4rem 0.75rem;
	border: 2px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	color: #475569;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.jursoc-filter-pill:active { transform: scale(0.96); }
.jursoc-filter-pill:hover {
	border-color: var(--pill-color, var(--jursoc-primary));
	color: var(--pill-color, var(--jursoc-primary));
	background: #fff;
}
.jursoc-filter-pill.is-active,
.jursoc-filter-pill--all.is-active {
	background: var(--pill-color, var(--jursoc-primary)) !important;
	border-color: var(--pill-color, var(--jursoc-primary)) !important;
	color: #fff !important;
}

.jursoc-filter-pill.is-active .jursoc-filter-pill__icon,
.jursoc-filter-pill.is-active .jursoc-filter-pill__count {
	color: inherit;
	opacity: 0.92;
}
.jursoc-filter-pill__icon { display: flex; opacity: 0.85; }
.jursoc-filter-pill__count { font-size: 0.7rem; opacity: 0.75; }

/* Cards grid – 3 columnas en el 70% */
.jursoc-cards-wrapper { position: relative; min-height: 180px; }
.jursoc-cards-loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.75);
	z-index: 2;
	border-radius: var(--jursoc-radius);
}
.jursoc-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e2e8f0;
	border-top-color: var(--jursoc-primary);
	border-radius: 50%;
	animation: jursoc-spin 0.65s linear infinite;
}
@keyframes jursoc-spin { to { transform: rotate(360deg); } }

.jursoc-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	transition: opacity 0.25s ease;
}

@media (min-width: 1400px) {
	.jursoc-cards-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.jursoc-cards-grid.is-loading { opacity: 0.4; pointer-events: none; }

/* Card imagen full-bleed con overlay */
.jursoc-card {
	position: relative;
	border-radius: var(--jursoc-radius);
	overflow: hidden;
	box-shadow: var(--jursoc-shadow);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.32s ease;
	animation: jursoc-card-in 0.45s ease backwards;
}

@keyframes jursoc-card-in {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.jursoc-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 52px rgba(0, 33, 71, 0.22);
}

.jursoc-card__link {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	color: #fff;
	text-decoration: none;
	overflow: hidden;
	background: #0f172a;
}

a.jursoc-card__link,
a.jursoc-card__link:hover,
a.jursoc-card__link:focus,
a.jursoc-card__link:focus-visible,
a.jursoc-card__link:visited {
	color: #fff;
	text-decoration: none;
}

.jursoc-card__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #1e293b;
}

.jursoc-card__media img,
.jursoc-card__default-img,
.jursoc-card__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.jursoc-card:hover .jursoc-card__media img,
.jursoc-card:hover .jursoc-card__default-img {
	transform: scale(1.07);
}

.jursoc-card__default-img {
	background-color: var(--cat-color, #1e4d8c);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.jursoc-card__placeholder {
	background: linear-gradient(145deg, var(--cat-color, #334155), #0f172a);
	opacity: 0.85;
}

.jursoc-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: clamp(0.85rem, 2vw, 1.15rem);
	padding-bottom: 0;
	background:
		linear-gradient(180deg, rgba(2, 12, 28, 0.82) 0%, rgba(2, 12, 28, 0.28) 42%, rgba(2, 12, 28, 0.08) 58%, rgba(2, 12, 28, 0.45) 100%);
	transition: background 0.35s ease;
	overflow: hidden;
}

.jursoc-card:hover .jursoc-card__overlay {
	background:
		linear-gradient(180deg, rgba(2, 12, 28, 0.9) 0%, rgba(2, 12, 28, 0.4) 36%, rgba(2, 12, 28, 0.12) 52%, rgba(2, 12, 28, 0.55) 100%);
}

.jursoc-card__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	min-width: 0;
	max-width: 100%;
	flex: 0 1 auto;
	padding-bottom: 0.35rem;
}

.jursoc-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.62rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.28rem 0.6rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--cat-color, var(--jursoc-primary)) 88%, #0f172a);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.jursoc-card__badge-icon { display: flex; }

.jursoc-card__title {
	margin: 0;
	font-size: clamp(0.95rem, 0.86rem + 0.45vw, 1.12rem);
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -0.02em;
	color: #fff;
	text-wrap: balance;
	text-shadow:
		0 2px 16px rgba(0, 0, 0, 0.55),
		0 1px 2px rgba(0, 0, 0, 0.65);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: -webkit-line-clamp 0.25s ease;
}

.jursoc-card__date {
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(248, 250, 252, 0.88);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
	font-variant-numeric: tabular-nums;
	max-height: 2rem;
	opacity: 1;
	overflow: hidden;
	transition: max-height 0.28s ease, opacity 0.22s ease, margin 0.28s ease;
}

/* Panel inferior: excerpt + CTA (nunca se recorta el botón) */
.jursoc-card__reveal {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.85rem clamp(0.85rem, 2vw, 1.15rem) clamp(0.85rem, 2vw, 1rem);
	background:
		linear-gradient(180deg, rgba(2, 12, 28, 0) 0%, rgba(2, 12, 28, 0.92) 22%, rgba(2, 12, 28, 0.98) 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	transform: translateY(100%);
	opacity: 0;
	pointer-events: none;
}

.jursoc-card__excerpt {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: rgba(241, 245, 249, 0.94);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 0 1 auto;
	min-height: 0;
	width: 100%;
}

.jursoc-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #0f172a;
	padding: 0.5rem 0.95rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
	flex: 0 0 auto;
	align-self: flex-start;
}

.jursoc-card__cta svg {
	flex-shrink: 0;
	fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
	.jursoc-card__reveal {
		transition:
			transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
			opacity 0.28s ease;
	}

	.jursoc-card:hover .jursoc-card__reveal,
	.jursoc-card:focus-within .jursoc-card__reveal {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.jursoc-card:hover .jursoc-card__title,
	.jursoc-card:focus-within .jursoc-card__title {
		-webkit-line-clamp: 1;
	}

	.jursoc-card:hover .jursoc-card__date,
	.jursoc-card:focus-within .jursoc-card__date {
		max-height: 0;
		opacity: 0;
		margin-top: -0.2rem;
	}
}

/* Sin hover: panel inferior siempre visible */
@media (hover: none), (max-width: 767px) {
	.jursoc-card__reveal {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.jursoc-card__overlay {
		padding-bottom: clamp(5.5rem, 34%, 7.5rem);
	}
}

a.jursoc-card__link:hover .jursoc-card__cta,
a.jursoc-card__link:focus .jursoc-card__cta,
a.jursoc-card__link:focus-visible .jursoc-card__cta {
	color: #0f172a;
}

.jursoc-card__link:focus-visible {
	outline: 3px solid var(--jursoc-accent, #c9a227);
	outline-offset: 3px;
}

/* Acentos por categoría */
.jursoc-card--investigacion .jursoc-card__badge { border-radius: 999px; }

.jursoc-card--institucional {
	box-shadow: 0 10px 28px rgba(0, 51, 102, 0.14);
}

/* Touch y móvil: más alto, overlay legible */
@media (max-width: 767px) {
	.jursoc-card__link {
		aspect-ratio: 4 / 3;
		min-height: 240px;
	}

	.jursoc-card__overlay {
		padding: 0.85rem 0.9rem 0;
		padding-bottom: clamp(5.75rem, 36%, 8rem);
		background:
			linear-gradient(180deg, rgba(2, 12, 28, 0.86) 0%, rgba(2, 12, 28, 0.35) 34%, rgba(2, 12, 28, 0.08) 58%, rgba(2, 12, 28, 0.55) 100%);
	}

	.jursoc-card__reveal {
		padding: 0.75rem 0.9rem 0.9rem;
	}

	.jursoc-card__title {
		font-size: clamp(0.92rem, 4.2vw, 1.05rem);
		-webkit-line-clamp: 2;
	}

	.jursoc-card__excerpt {
		font-size: 0.8rem;
		-webkit-line-clamp: 2;
	}

	.jursoc-card__cta {
		font-size: 0.72rem;
		padding: 0.48rem 0.85rem;
		min-height: 36px;
	}

	.jursoc-card:hover {
		transform: none;
	}
}

@media (hover: none) {
	.jursoc-card__overlay {
		background:
			linear-gradient(180deg, rgba(2, 12, 28, 0.86) 0%, rgba(2, 12, 28, 0.35) 34%, rgba(2, 12, 28, 0.08) 58%, rgba(2, 12, 28, 0.55) 100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jursoc-card,
	.jursoc-card__media img,
	.jursoc-card__default-img,
	.jursoc-card__overlay,
	.jursoc-card__reveal,
	.jursoc-card__cta {
		transition: none;
	}

	.jursoc-card:hover .jursoc-card__media img,
	.jursoc-card:hover .jursoc-card__default-img {
		transform: none;
	}
}

/* Servicios */
.jursoc-servicios {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 2px solid #e8ecf1;
}

.jursoc-servicios-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.jursoc-servicio {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	background: #fff;
	border: 2px solid #e8ecf1;
	border-radius: var(--jursoc-radius);
	text-decoration: none;
	color: var(--jursoc-primary);
	font-weight: 600;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.jursoc-servicio:hover {
	border-color: var(--jursoc-primary);
	background: var(--jursoc-primary);
	color: #fff;
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 51, 102, 0.2);
}

.jursoc-servicio__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #e8f0fa;
	flex-shrink: 0;
	transition: background 0.2s;
}

.jursoc-servicio:hover .jursoc-servicio__icon {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.jursoc-servicio__title { flex: 1; }
.jursoc-servicio__arrow { opacity: 0.4; transition: transform 0.2s, opacity 0.2s; }
.jursoc-servicio:hover .jursoc-servicio__arrow {
	opacity: 1;
	transform: translateX(4px);
	color: #fff;
}

.jursoc-empty { text-align: center; padding: 2rem; color: #64748b; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }

/* Responsive */
@media (max-width: 1100px) {
	.jursoc-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.jursoc-layout {
		flex-direction: column;
	}
	.jursoc-layout__sidebar {
		flex: none;
		max-width: 100%;
		width: 100%;
		position: static;
	}
	.jursoc-layout__main { width: 100%; }
}

@media (max-width: 560px) {
	.jursoc-cards-grid { grid-template-columns: 1fr; }
	.jursoc-hero__inner { padding: 1.75rem 1.25rem 2.5rem; }
}
