/**
 * Home — sistema visual unificado, ancho completo y responsive.
 * Una sola página continua; las secciones se separan con ritmo, no con cajas flotantes.
 */

body.home .jursoc-dashboard {
	--home-bg: #ffffff;
	--home-surface: #ffffff;
	--home-surface-alt: #f8fafc;
	--home-border: #e2e8f0;
	--home-border-input: #cbd5e1;
	--home-primary: #003366;
	--home-accent: #c9a227;
	--home-text: #1e293b;
	--home-text-body: #334155;
	--home-text-muted: #475569;
	--home-text-subtle: #64748b;
	--home-radius: 10px;
	--home-radius-sm: 8px;
	--home-shadow: none;
	--home-shadow-card: 0 1px 4px rgba(0, 33, 71, 0.06);
	--home-shadow-hover: 0 6px 20px rgba(0, 33, 71, 0.1);
	--home-gutter: clamp(0.75rem, 1.5vw, 1.75rem);
	--home-section-pad: clamp(1.75rem, 3.5vw, 2.75rem);
	--home-label-size: 0.72rem;
	--home-label-spacing: 0.12em;
	--jursoc-shadow: var(--home-shadow-card);
	--jursoc-radius: var(--home-radius);
	--sidebar-width: min(260px, 22%);
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 0 2rem;
	color: var(--home-text);
	-webkit-font-smoothing: antialiased;
}

/* —— Base —— */
body.home {
	background: var(--home-bg);
	overflow-x: clip;
}

body.home .entry.content-bg,
body.home .content-bg,
body.home #inner-wrap,
body.home .site {
	background: var(--home-bg);
}
body.home .jursoc-home-section {
	padding: var(--home-section-pad) var(--home-gutter);
	border-top: 1px solid var(--home-border);
	margin: 0;
}

/* Ajuste: menos aire antes del módulo de Accesos rápidos */
body.home .jursoc-layout.jursoc-home-section {
	padding-bottom: clamp(0.75rem, 1.8vw, 1.1rem);
}

body.home .jursoc-home-section:first-child {
	border-top: none;
	padding-top: var(--home-gutter);
}

body.home .jursoc-home-section:nth-child(even) {
	background: var(--home-surface-alt);
}

body.home .jursoc-home-section__header {
	margin-bottom: 1.15rem;
	max-width: 72rem;
}

body.home .jursoc-home-section__lead {
	margin: 0.35rem 0 0;
	color: var(--home-text-subtle);
	font-size: clamp(0.9rem, 1.8vw, 0.95rem);
	line-height: 1.5;
}

/* —— Títulos de sección —— */
body.home .jursoc-section-title,
body.home .jursoc-accesos-band__title,
body.home .jursoc-calendar-widget__title {
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 700;
	color: var(--home-primary);
	margin: 0;
	padding: 0 0 0.5rem;
	border-bottom: 2px solid var(--home-primary);
	display: inline-block;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

body.home .jursoc-noticias__header {
	margin-bottom: 1rem;
}

body.home .jursoc-results-count {
	color: var(--home-text-muted);
	font-size: 0.9rem;
	margin: 0.35rem 0 0;
}

/* —— Etiquetas de panel —— */
body.home .jursoc-hero__panel-title,
body.home .jursoc-hero__eyebrow,
body.home .jursoc-hero-hub--panel .jursoc-hero-hub__label {
	font-size: var(--home-label-size);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: var(--home-label-spacing);
	color: var(--home-primary);
	opacity: 1;
}

body.home .jursoc-hero__panel-badge {
	background: rgba(0, 51, 102, 0.08);
	border: none;
	color: var(--home-primary);
	border-radius: var(--home-radius-sm);
}

/* —— Hero integrado (sin caja exterior) —— */
body.home .jursoc-hero {
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	margin: 0;
}

body.home .jursoc-hero--intro {
	padding-top: var(--home-section-pad);
}

body.home .jursoc-hero__intro {
	padding: 0 0 1.25rem;
	text-align: center;
	max-width: 52rem;
	margin: 0 auto;
}

body.home .jursoc-hero__intro .jursoc-hero__title {
	color: var(--home-primary);
	font-size: clamp(1.45rem, 3vw, 2rem);
}

body.home .jursoc-hero__intro .jursoc-hero__lead {
	color: var(--home-text-body);
	font-size: clamp(0.95rem, 2vw, 1.05rem);
	line-height: 1.65;
	max-width: 60ch;
	margin-left: auto;
	margin-right: auto;
}

/* Franja hero dentro del ancho de la sección */
body.home .jursoc-hero__band {
	position: relative;
	min-height: auto;
	border-top: 1px solid var(--home-border);
	border-bottom: 1px solid var(--home-border);
	background: var(--home-surface-alt);
	color: var(--home-text);
	width: auto;
	max-width: none;
	margin: 0 calc(-1 * var(--home-gutter));
	padding: clamp(1rem, 2.5vw, 1.5rem) var(--home-gutter);
	box-sizing: border-box;
}

body.home .jursoc-hero__band-bg {
	background: transparent;
	border: none;
}

body.home .jursoc-hero__band-bg::before {
	display: none;
}

body.home .jursoc-hero__band-shine {
	display: none;
}

body.home .jursoc-hero__panels {
	position: relative;
	z-index: 1;
	max-width: none;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	gap: clamp(0.85rem, 2vw, 1.25rem);
}

body.home .jursoc-hero-hub--panel .jursoc-hero-hub__panel {
	background: var(--home-surface);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius);
	box-shadow: var(--home-shadow-card);
	color: var(--home-text);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

body.home .jursoc-hero-hub--panel .jursoc-hero-hub__stat {
	background: var(--home-surface-alt);
	border-color: var(--home-border);
}

body.home .jursoc-hero-hub--panel .jursoc-hero-hub__stat-num {
	color: var(--home-primary);
	text-shadow: none;
}

body.home .jursoc-hero-hub--panel .jursoc-hero-hub__stat-label {
	color: var(--home-text-subtle);
}

body.home .jursoc-hero-hub--panel .jursoc-hero-hub__countdown {
	background: var(--home-surface-alt);
	border-color: var(--home-border);
	color: var(--home-text);
}

body.home .jursoc-hero-hub--panel .jursoc-hero-hub__countdown-timer {
	color: var(--home-primary);
}

body.home .jursoc-hero-hub--panel .jursoc-hero-hub__quick-link {
	background: var(--home-surface-alt);
	border: 1px solid var(--home-border);
	color: var(--home-primary);
	border-radius: var(--home-radius-sm);
}

body.home .jursoc-hero-hub--panel .jursoc-hero-hub__quick-link:hover {
	background: #e8f0fa;
	border-color: var(--home-primary);
}

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

/* —— Rotador (controles legibles sobre fondo claro) —— */
body.home .jursoc-news-rotator__track {
	background: var(--home-surface);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius);
	box-shadow: var(--home-shadow-card);
}

body.home .jursoc-news-rotator__title,
body.home .jursoc-news-rotator__excerpt,
body.home .jursoc-news-rotator__date {
	color: #fff;
}

/* Home: mantener proporción estable sin pisar tipografía base del plugin */
body.home .jursoc-news-rotator__track {
	min-height: clamp(300px, 31vw, 360px);
}

@media (max-width: 900px) {
	body.home .jursoc-news-rotator__track {
		min-height: clamp(270px, 52vw, 320px);
	}
}

body.home .jursoc-news-rotator__progress {
	background: var(--home-border);
}

body.home .jursoc-news-rotator__progress-fill {
	background: linear-gradient(90deg, var(--home-primary), var(--home-accent));
}

body.home .jursoc-news-rotator__dot {
	background: rgba(0, 51, 102, 0.2);
}

body.home .jursoc-news-rotator__counter {
	color: var(--home-text-subtle);
	opacity: 1;
}

body.home .jursoc-news-rotator__btn {
	background: var(--home-surface);
	color: var(--home-primary);
	border-color: var(--home-border-input);
}

body.home .jursoc-news-rotator__btn:hover {
	background: var(--home-primary);
	color: #fff;
	border-color: var(--home-primary);
}

body.home .jursoc-news-rotator__dot.is-active {
	background: var(--home-primary);
}

body.home .jursoc-news-rotator__counter-current {
	color: var(--home-primary);
}

/* —— Rotador cinematográfico (full-bleed, independiente del panel) —— */
body.home .jursoc-cinematic-band {
	--jcin-primary: var(--home-primary);
	--jcin-accent: var(--home-accent);
}

body.home .jursoc-cinematic__title,
body.home .jursoc-cinematic__title-link {
	color: #0f172a;
}

body.home .jursoc-cinematic__excerpt {
	color: #475569;
}

body.home .jursoc-cinematic__date {
	color: #64748b;
}

body.home .jursoc-cinematic__title-link:hover {
	color: var(--home-primary);
}

body.home .jursoc-cinematic__cta {
	color: var(--home-primary);
}

body.home .jursoc-cinematic__cta:hover {
	color: var(--home-accent);
}

/* Panorama: mantener fecha/CTA legibles sobre foto oscura */
body.home .jursoc-news-rotator--panorama .jursoc-cinematic__date {
	color: #fff !important;
	text-shadow: 0 2px 10px rgba(1, 12, 24, 0.75);
}

body.home .jursoc-news-rotator--panorama .jursoc-cinematic__cta,
body.home .jursoc-news-rotator--panorama .jursoc-cinematic__cta:visited,
body.home .jursoc-news-rotator--panorama .jursoc-cinematic__cta:hover,
body.home .jursoc-news-rotator--panorama .jursoc-cinematic__cta:focus-visible {
	color: #fff !important;
	text-shadow: 0 2px 10px rgba(1, 12, 24, 0.75);
}

body.home .jursoc-proximo-evento .jursoc-hero-hub__countdown {
	background: var(--home-surface);
	border: 1px solid var(--home-border);
	border-left: 4px solid var(--home-accent);
	color: var(--home-text);
}

body.home .jursoc-proximo-evento .jursoc-hero-hub__countdown-title {
	color: var(--home-primary);
}

body.home .jursoc-proximo-evento .jursoc-hero-hub__countdown-timer {
	color: var(--home-accent);
}

body.home .jursoc-proximo-evento .jursoc-hero-hub__countdown-label {
	color: var(--home-text-subtle);
}

body.home .jursoc-eventos-carousel__heading,
body.home .jursoc-eventos-carousel__counter {
	color: var(--home-text-subtle);
}

body.home .jursoc-eventos-carousel__counter-current {
	color: var(--home-primary);
}

body.home .jursoc-eventos-carousel__cta {
	color: var(--home-primary);
}

body.home .jursoc-eventos-carousel__btn {
	border-color: var(--home-border);
	color: var(--home-primary);
}

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

body.home .jursoc-eventos-carousel__dot.is-active {
	background: var(--home-accent);
}

body.home .jursoc-news-rotator--cinematic .jursoc-news-rotator__counter-current {
	color: var(--home-accent);
}

/* —— Hero destacadas: 70% rotador | 15% accesos | 15% ranking —— */
body.home .jursoc-home-destacadas-row--split {
	padding-left: var(--home-gutter);
	padding-right: var(--home-gutter);
}

body.home .jursoc-accesos-sidebar__title,
body.home .jursoc-home-ranking__title {
	color: var(--home-primary);
}

body.home .jursoc-home-ranking__item--top .jursoc-home-ranking__pos {
	background: var(--home-primary);
	border-color: var(--home-primary);
}

body.home .jursoc-accesos-sidebar__grid .jursoc-claustro-modal__shortcut-icon {
	color: var(--home-primary);
}

/* —— Accesos rápidos espectacular (legacy full-bleed, si se usa fuera del hero) —— */
body.home .jursoc-accesos-spectacular-band {
	--jacc-primary: var(--home-primary);
	--jacc-accent: var(--home-accent);
}

body.home .jursoc-accesos-spec__title {
	color: var(--home-primary);
	font-size: clamp(1.15rem, 2.2vw, 1.55rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

body.home .jursoc-accesos-spec__card-name,
body.home .jursoc-accesos-spec__card,
body.home .jursoc-accesos-spec__card:hover,
body.home .jursoc-accesos-spec__card:focus-visible {
	color: #0f172a;
}

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

body.home .jursoc-home-hero-zone .jursoc-secretarias-nav {
	background: var(--home-bg);
	border-bottom: 1px solid var(--home-border);
	padding-left: var(--home-gutter);
	padding-right: var(--home-gutter);
}

body.home .jursoc-home-hero-zone .jursoc-panorama-band {
	border-top: none;
}

body.home .jursoc-secretarias-nav__link {
	color: var(--home-text-muted);
}

body.home .jursoc-secretarias-nav__link:hover,
body.home .jursoc-secretarias-nav__link:focus-visible {
	color: var(--sec-color, var(--home-primary));
}

/* —— Secretarías integradas (versión clásica) —— */
body.home .jursoc-sec-hub__layout {
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	gap: clamp(0.85rem, 2vw, 1.25rem);
}

body.home .jursoc-sec-pill {
	background: var(--home-surface);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius);
	box-shadow: var(--home-shadow-card);
}

body.home .jursoc-sec-preview {
	background: var(--home-surface);
	color: var(--home-text);
	border: 1px solid var(--home-border);
	border-left: 4px solid var(--sec-color, var(--home-primary));
	border-radius: var(--home-radius);
	box-shadow: var(--home-shadow-card);
}

body.home .jursoc-sec-preview__visual {
	background-color: var(--home-surface-alt);
}

body.home .jursoc-sec-preview__mesh,
body.home .jursoc-sec-preview__orb {
	display: none;
}

body.home .jursoc-sec-preview__icon {
	background: color-mix(in srgb, var(--sec-color, var(--home-primary)) 12%, #fff);
	border: 1px solid color-mix(in srgb, var(--sec-color, var(--home-primary)) 25%, transparent);
}

body.home .jursoc-sec-preview__icon svg {
	stroke: var(--sec-color, var(--home-primary));
}

body.home .jursoc-sec-preview__title {
	color: var(--home-primary);
}

body.home .jursoc-sec-preview__desc {
	color: var(--home-text-muted);
	opacity: 1;
}

body.home .jursoc-sec-preview__cta {
	background: var(--home-surface-alt);
	border: 1px solid var(--home-border);
	color: var(--home-primary);
}

body.home .jursoc-sec-preview__cta:hover {
	background: #e8f0fa;
	border-color: var(--home-primary);
}

body.home .jursoc-dashboard__secretarias {
	margin: 0;
}

/* —— Layout noticias + sidebar (misma altura de columna) —— */
body.home .jursoc-layout {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: clamp(1.25rem, 3vw, 2rem);
	width: 100%;
	max-width: none;
}

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

body.home .jursoc-layout__main {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	display: flex;
	flex-direction: column;
	align-self: stretch;
	min-height: 100%;
}

body.home .jursoc-noticias__header,
body.home .jursoc-filters {
	flex-shrink: 0;
}

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

body.home .jursoc-cards-grid {
	flex: 1 1 auto;
	height: 100%;
	min-height: min(100%, 28rem);
	grid-auto-rows: 1fr;
	align-content: stretch;
}

body.home .jursoc-card {
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

body.home .jursoc-card__link {
	flex: 1 1 auto;
	height: 100%;
	min-height: clamp(150px, 16vh, 210px);
	aspect-ratio: unset;
}

/* Widgets sidebar: integrados, sin caja pesada */
body.home .jursoc-calendar-widget,
body.home .jursoc-chat-mockup {
	background: var(--home-surface);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius);
	box-shadow: var(--home-shadow-card);
}

body.home .jursoc-chat-mockup__title {
	color: var(--home-primary);
}

body.home .jursoc-chat-mockup__msg--bot {
	color: var(--home-text-body);
}

body.home .jursoc-evento__title a {
	color: var(--home-primary);
}

/* —— Filtros —— */
body.home .jursoc-search__input {
	width: 100%;
	background: var(--home-surface);
	border: 1px solid var(--home-border-input);
	border-radius: var(--home-radius);
	font-size: clamp(0.95rem, 2vw, 1rem);
	line-height: 1.5;
}

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

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

body.home .jursoc-filter-pill {
	flex: 0 0 auto;
	border: 1px solid var(--home-border-input);
	border-radius: 999px;
	color: var(--home-text-body);
	font-size: clamp(0.72rem, 1.4vw, 0.82rem);
	background: var(--home-surface);
	white-space: nowrap;
	padding: 0.35rem 0.7rem;
}

body.home .jursoc-filter-pill:hover {
	background: var(--home-surface-alt);
	color: var(--pill-color, var(--home-primary));
	border-color: var(--pill-color, var(--home-primary));
}

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

/* —— Cards noticias (imagen full-bleed + overlay) —— */
body.home .jursoc-cards-grid {
	display: grid;
	gap: clamp(1rem, 2vw, 1.25rem);
}

body.home .jursoc-card {
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--home-radius);
	box-shadow: var(--home-shadow-card);
	min-width: 0;
}

body.home .jursoc-card:hover {
	box-shadow: var(--home-shadow-hover);
}

body.home .jursoc-card__title {
	color: #fff;
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
}

body.home .jursoc-card__date {
	color: rgba(248, 250, 252, 0.9);
}

body.home .jursoc-card__excerpt {
	color: rgba(241, 245, 249, 0.95);
}

body.home .jursoc-card__cta {
	color: #0f172a;
	background: #fff;
}

body.home .jursoc-card:hover .jursoc-card__cta,
body.home a.jursoc-card__link:hover .jursoc-card__cta,
body.home a.jursoc-card__link:focus-visible .jursoc-card__cta {
	color: #0f172a;
	background: #fff;
}

body.home a.jursoc-card__link,
body.home a.jursoc-card__link:hover,
body.home a.jursoc-card__link:focus,
body.home a.jursoc-card__link:visited,
body.home .entry-content a.jursoc-card__link,
body.home .entry-content a.jursoc-card__link:hover {
	color: #fff;
	text-decoration: none;
}

/* —— Accesos rápidos —— */
body.home .jursoc-accesos-band {
	margin: 0;
	background: inherit;
}

body.home .jursoc-accesos-band::before {
	display: none;
}

body.home .jursoc-accesos-band__inner {
	max-width: none;
	width: 100%;
}

body.home .jursoc-accesos-band__header {
	text-align: left;
	margin-bottom: 1rem;
	color: var(--home-text);
}

body.home .jursoc-accesos-band__title {
	font-size: clamp(1.1rem, 2vw, 1.45rem);
	line-height: 1.2;
	color: var(--home-primary);
}

body.home .jursoc-accesos-band__lead {
	color: var(--home-text-subtle);
	opacity: 1;
	font-size: clamp(0.9rem, 1.8vw, 0.95rem);
	margin: 0.35rem 0 0;
}

body.home .jursoc-accesos-band__track-wrap {
	width: 100%;
}

body.home .jursoc-accesos-band__track {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: clamp(0.75rem, 2vw, 1rem);
	overflow: visible;
	flex-wrap: wrap;
	padding: 0;
}

body.home .jursoc-accesos-band__track-wrap.is-centered .jursoc-accesos-band__track {
	justify-content: stretch;
}

body.home .jursoc-accesos-band__nav {
	display: none;
}

body.home .jursoc-acceso-card {
	flex: none;
	width: 100%;
	scroll-snap-align: unset;
	color: var(--home-text);
	text-decoration: none;
	padding: 1rem;
	background: var(--home-surface);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius);
	box-shadow: var(--home-shadow-card);
	transition: border-color 0.2s, box-shadow 0.2s;
}

body.home .jursoc-acceso-card__shine {
	display: none;
}

body.home .jursoc-acceso-card__icon {
	background: var(--home-surface-alt);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius-sm);
	color: var(--card-accent, var(--home-primary));
}

body.home .jursoc-acceso-card__subtitle {
	color: var(--home-text-subtle);
	opacity: 1;
	font-size: var(--home-label-size);
	letter-spacing: var(--home-label-spacing);
}

body.home .jursoc-acceso-card__title {
	color: var(--home-primary);
	font-size: clamp(0.92rem, 2vw, 1rem);
	font-weight: 700;
}

body.home .jursoc-acceso-card__cta {
	opacity: 1;
	transform: none;
	color: var(--card-accent, var(--home-primary));
	font-size: 0.8rem;
	margin-top: auto;
}

body.home .jursoc-acceso-card:hover {
	border-color: var(--card-accent, var(--home-primary));
	box-shadow: var(--home-shadow-hover);
	color: var(--home-text);
	transform: none;
}

body.home button.jursoc-acceso-card {
	text-align: left;
	width: 100%;
}

body.home .jursoc-servicios {
	margin: 0;
	padding: 0;
	border: none;
}

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

/* Anular colores globales del tema sobre cards de noticias */
body.home .entry-content .jursoc-card__title,
body.home .jursoc-card__title {
	color: #fff;
}

body.home .entry-content .jursoc-card__excerpt,
body.home .jursoc-card__excerpt {
	color: rgba(241, 245, 249, 0.95);
}

body.home .entry-content .jursoc-card__date,
body.home .jursoc-card__date {
	color: rgba(248, 250, 252, 0.9);
}

body.home .entry-content .jursoc-card__cta,
body.home .jursoc-card__cta {
	color: #0f172a;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
	body.home .jursoc-layout {
		flex-direction: column;
		align-items: stretch;
	}

	body.home .jursoc-layout__sidebar {
		flex: none;
		max-width: 100%;
		min-width: 0;
		width: 100%;
		position: static;
		order: 2;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
		gap: 1rem;
		height: auto;
		max-height: none;
		overflow: visible;
	}

	body.home .jursoc-layout__main {
		order: 1;
		width: 100%;
		min-height: 0;
	}

	body.home .jursoc-cards-grid {
		min-height: 0;
		grid-auto-rows: auto;
	}

	body.home .jursoc-card__link {
		aspect-ratio: 16 / 9;
		min-height: 0;
		height: auto;
	}

	body.home .jursoc-sec-hub__layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	body.home .jursoc-hero__panels {
		grid-template-columns: 1fr;
	}

	body.home .jursoc-hero__panel--rotator,
	body.home .jursoc-hero__panel--hub {
		padding: 0;
	}

	body.home .jursoc-news-rotator__track {
		min-height: clamp(220px, 55vw, 300px);
	}

	body.home .jursoc-filter-pill {
		scroll-snap-align: start;
	}

	body.home .jursoc-filters__categories {
		scroll-snap-type: x mandatory;
	}
}

@media (max-width: 640px) {
	body.home .jursoc-home-section {
		padding: clamp(1.25rem, 5vw, 1.75rem) var(--home-gutter);
	}

	body.home .jursoc-hero__band {
		padding: clamp(0.75rem, 3vw, 1rem);
	}

	body.home .jursoc-sec-hub__pills {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body.home .jursoc-sec-pill {
		min-height: 76px;
	}

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

	body.home .jursoc-sec-preview__visual {
		min-height: 88px;
	}

	body.home .jursoc-layout__sidebar {
		grid-template-columns: 1fr;
	}

	body.home .jursoc-accesos-band__track {
		grid-template-columns: 1fr;
	}

	body.home .jursoc-section-title,
	body.home .jursoc-accesos-band__title {
		display: block;
		width: 100%;
	}
}

@media (min-width: 1600px) {
	body.home .jursoc-accesos-band__track {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	}
}

body.home .jursoc-dashboard {
	padding-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
	body.home .jursoc-card:hover,
	body.home .jursoc-acceso-card:hover {
		transform: none;
	}
}
