/**
 * Rotador Panorama: full-width, limpio, visible y responsive.
 */

.jursoc-panorama-band {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
	background:
		radial-gradient(circle at 12% 18%, rgba(148, 163, 184, 0.2), transparent 48%),
		radial-gradient(circle at 88% 84%, rgba(203, 213, 225, 0.3), transparent 44%),
		linear-gradient(135deg, #f8fafc 0%, #f1f5f9 52%, #e2e8f0 100%);
	border-bottom: 1px solid #dbe3ec;
}

.jursoc-news-rotator--panorama {
	--jpan-accent: #8a6a22;
	--jpan-accent-strong: #6f5318;
	--jpan-accent-soft: #b08a3a;
	min-height: clamp(470px, 80vh, 760px);
	color: #f8fafc;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__mesh,
.jursoc-news-rotator--panorama .jursoc-cinematic__glow {
	display: block;
	position: absolute;
	inset: -20%;
	pointer-events: none;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__mesh {
	background:
		repeating-linear-gradient(
			-28deg,
			rgba(255, 255, 255, 0.05),
			rgba(255, 255, 255, 0.05) 1px,
			transparent 1px,
			transparent 24px
		);
	opacity: 0.24;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__glow {
	background:
		radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.22), transparent 46%),
		radial-gradient(circle at 82% 74%, rgba(201, 162, 39, 0.28), transparent 40%);
	opacity: 0.65;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__layout {
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	gap: clamp(0.75rem, 2vw, 1.35rem);
	padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1rem, 2.4vw, 2.5rem) 0.75rem;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__stage {
	min-height: clamp(390px, 67vh, 620px);
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(2, 23, 46, 0.72);
	box-shadow:
		0 20px 70px rgba(1, 17, 35, 0.55),
		0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__bg {
	inset: 0;
	width: 100%;
	height: 100%;
	transform: scale(1);
	filter: saturate(1.1) contrast(1.04);
	z-index: 2;
	object-fit: cover;
	object-position: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: drop-shadow(0 10px 24px rgba(2, 12, 24, 0.35)) saturate(1.1) contrast(1.04);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__slide.is-active .jursoc-cinematic__bg {
	transform: scale(1.015);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__media::before {
	content: "";
	position: absolute;
	inset: -8%;
	z-index: 0;
	background-image: var(--jursoc-slide-image);
	background-size: cover;
	background-position: center;
	filter: blur(14px) saturate(1.1) brightness(0.68);
	transform: scale(1.06);
	opacity: 0.9;
	animation: jursoc-panorama-bg-zoom 14s ease-in-out infinite alternate;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(2, 12, 24, 0.06) 0%, rgba(2, 12, 24, 0.18) 100%);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__scrim {
	height: 100%;
	background:
		linear-gradient(100deg, rgba(2, 12, 24, 0.34) 0%, rgba(2, 16, 33, 0.2) 38%, rgba(2, 16, 33, 0.04) 68%, rgba(2, 16, 33, 0.18) 100%),
		linear-gradient(180deg, rgba(2, 12, 24, 0.04) 0%, rgba(2, 12, 24, 0.26) 100%);
	z-index: 3;
}

@keyframes jursoc-panorama-bg-zoom {
	from {
		transform: scale(1.04);
	}
	to {
		transform: scale(1.12);
	}
}

.jursoc-news-rotator--panorama .jursoc-cinematic__content {
	top: 0;
	bottom: 0;
	display: grid;
	justify-items: start;
	align-content: end;
	padding: clamp(1rem, 2vw, 2rem) clamp(1rem, 2.2vw, 2.2rem) clamp(3rem, 6vw, 3.9rem);
	text-align: left;
	max-width: min(58ch, 86%);
	gap: 0.35rem;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__cat {
	background: color-mix(in srgb, var(--cat-color, #0ea5e9) 75%, #0f172a);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	font-size: clamp(0.52rem, 0.48rem + 0.18vw, 0.62rem);
	padding: 0.2rem 0.5rem;
	letter-spacing: 0.1em;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__title {
	max-width: 100%;
	font-size: clamp(1.05rem, 0.9rem + 1.25vw, 1.85rem);
	line-height: 1.15;
	text-align: left;
	color: #f8fafc;
	text-shadow:
		0 2px 20px rgba(1, 15, 32, 0.78),
		0 0 2px rgba(0, 0, 0, 0.8);
	filter: none;
	text-wrap: balance;
	hyphens: auto;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__title-link:hover {
	color: #fde68a;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__excerpt {
	max-width: 52ch;
	color: rgba(241, 245, 249, 0.92);
	font-size: clamp(0.78rem, 0.72rem + 0.3vw, 0.9rem);
	line-height: 1.38;
	text-align: left;
	text-shadow: 0 2px 14px rgba(1, 12, 24, 0.8);
	-webkit-line-clamp: 2;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__meta {
	justify-content: flex-start;
	border-top-color: rgba(255, 255, 255, 0.28);
	max-width: none;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__date {
	color: #ffffff;
	text-shadow: 0 2px 10px rgba(1, 12, 24, 0.75);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__cta {
	color: #ffffff;
	font-size: 0.76rem;
	text-shadow: 0 2px 10px rgba(1, 12, 24, 0.75);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__cta:hover {
	color: #ffffff;
	opacity: 0.9;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__rail {
	display: flex;
	padding: 0;
	gap: 0.55rem;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__rail-title {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 0.22rem 0.52rem;
	border-radius: 999px;
	background: rgba(2, 20, 38, 0.58);
	border: 1px solid rgba(255, 255, 255, 0.26);
	color: rgba(248, 250, 252, 0.98);
	font-size: 0.6rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__thumbs {
	gap: 0.45rem;
	padding-right: 0.15rem;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__thumb {
	grid-template-columns: auto 64px minmax(0, 1fr);
	background: rgba(15, 23, 42, 0.54);
	border: 1px solid rgba(226, 232, 240, 0.24);
	color: #e2e8f0;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__thumb:hover {
	background: rgba(15, 23, 42, 0.74);
	border-color: color-mix(in srgb, var(--jpan-accent-soft) 64%, transparent);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__thumb.is-active {
	background: color-mix(in srgb, var(--jpan-accent) 20%, rgba(15, 23, 42, 0.9));
	border-color: color-mix(in srgb, var(--jpan-accent-soft) 82%, transparent);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--jpan-accent-soft) 42%, transparent) inset;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__thumb-media {
	width: 64px;
	height: 46px;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__thumb-title {
	color: rgba(248, 250, 252, 0.98);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__thumb-cat,
.jursoc-news-rotator--panorama .jursoc-cinematic__thumb-num {
	color: rgba(241, 245, 249, 0.92);
	text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__thumb.is-active .jursoc-cinematic__thumb-num {
	color: var(--jpan-accent-soft);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__nav {
	top: auto;
	bottom: clamp(1rem, 2.2vw, 1.4rem);
	transform: none;
	background: rgba(2, 20, 38, 0.78);
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__nav:hover {
	background: var(--jpan-accent);
	border-color: var(--jpan-accent);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__nav svg {
	opacity: 1;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.jursoc-news-rotator--panorama .jursoc-cinematic__nav > svg > path {
	fill: #fff !important;
	stroke: none !important;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__nav--prev {
	left: clamp(0.75rem, 2vw, 1.2rem);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__nav--next {
	right: clamp(0.75rem, 2vw, 1.2rem);
}

body.home .jursoc-news-rotator--panorama .jursoc-cinematic__title,
body.home .jursoc-news-rotator--panorama .jursoc-cinematic__title-link {
	color: #f8fafc !important;
}

body.home .jursoc-news-rotator--panorama .jursoc-cinematic__excerpt {
	color: rgba(241, 245, 249, 0.92) !important;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__footer {
	padding: 0.45rem clamp(1rem, 2.4vw, 2.5rem) clamp(1rem, 2.4vw, 1.4rem);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__counter {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	background: rgba(2, 20, 38, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.24);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__counter-total,
.jursoc-news-rotator--panorama .jursoc-cinematic__counter-sep {
	color: rgba(248, 250, 252, 0.96);
}

.jursoc-news-rotator--panorama .jursoc-news-rotator__counter-current {
	color: #fde68a;
	font-weight: 800;
}

.jursoc-news-rotator--panorama .jursoc-cinematic__progress {
	background: rgba(226, 232, 240, 0.22);
}

.jursoc-news-rotator--panorama .jursoc-news-rotator__progress-fill {
	background: linear-gradient(90deg, var(--jpan-accent-strong), var(--jpan-accent-soft));
}

.jursoc-news-rotator--panorama .jursoc-cinematic__dot {
	background: rgba(241, 245, 249, 0.45);
}

.jursoc-news-rotator--panorama .jursoc-cinematic__dot.is-active {
	background: var(--jpan-accent-soft);
}

@media (max-width: 960px) {
	.jursoc-news-rotator--panorama {
		min-height: clamp(420px, 82vh, 660px);
	}

	.jursoc-news-rotator--panorama .jursoc-cinematic__layout {
		grid-template-columns: 1fr;
	}

	.jursoc-news-rotator--panorama .jursoc-cinematic__stage {
		min-height: clamp(360px, 60vh, 520px);
	}

	.jursoc-news-rotator--panorama .jursoc-cinematic__content {
		max-width: 100%;
		padding: 1.05rem 1rem 1.35rem;
	}

	.jursoc-news-rotator--panorama .jursoc-cinematic__rail-title {
		display: none;
	}

	.jursoc-news-rotator--panorama .jursoc-cinematic__thumbs {
		flex-direction: row;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
	}

	.jursoc-news-rotator--panorama .jursoc-cinematic__thumb {
		flex: 0 0 min(245px, 78vw);
		scroll-snap-align: start;
	}
}

@media (max-width: 640px) {
	.jursoc-news-rotator--panorama .jursoc-cinematic__content {
		padding: 0.9rem 0.9rem 1.05rem;
	}

	.jursoc-news-rotator--panorama .jursoc-cinematic__title {
		font-size: clamp(0.92rem, 0.82rem + 1vw, 1.08rem);
		line-height: 1.18;
	}

	.jursoc-news-rotator--panorama .jursoc-cinematic__excerpt {
		display: none;
	}
}
