/**
 * Refinamiento visual global — cards, imágenes y superficies.
 */

:where(
	.jursoc-card--clean,
	.jursoc-acceso-card,
	.jursoc-home-ranking__panel,
	.jursoc-sidebar-panel,
	.jursoc-hero-hub--panel .jursoc-hero-hub__panel
) {
	border: 1px solid var(--jursoc-border, #e2e8f0);
	box-shadow: var(--jursoc-shadow-card);
	transition:
		border-color var(--jursoc-transition, 0.18s ease),
		box-shadow var(--jursoc-transition, 0.18s ease),
		transform var(--jursoc-transition, 0.18s ease);
}

:where(
	.jursoc-card--clean:hover,
	.jursoc-card--clean:focus-within,
	.jursoc-acceso-card:hover,
	.jursoc-acceso-card:focus-visible
) {
	box-shadow: var(--jursoc-shadow-hover);
	border-color: color-mix(in srgb, var(--jursoc-primary, #003366) 18%, var(--jursoc-border, #e2e8f0));
}

/* Tratamiento fotográfico coherente */
:where(
	.jursoc-card__media img,
	.jursoc-card__default-img,
	.jursoc-cinematic__media img,
	.jursoc-news-rotator__img,
	.jursoc-sec-page__hero-photo,
	.jursoc-claustro__hero-photo
) {
	filter: var(--jursoc-photo-filter);
	transition: filter 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

:where(
	.jursoc-card:hover .jursoc-card__media img,
	.jursoc-accesos-tiles__tile:hover,
	.jursoc-cinematic__slide.is-active .jursoc-cinematic__media img
) {
	filter: var(--jursoc-photo-filter-hover);
}

.jursoc-accesos-tiles__tile[style*="--tile-image"] {
	background-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
	:where(
		.jursoc-card--clean,
		.jursoc-acceso-card,
		.jursoc-card__media img,
		.jursoc-accesos-tiles__tile
	) {
		transition: none;
	}
}
