body.single-recurso #main-container,
body.single-recurso #main {
	background: var(--theme-palette-color-7, #f6f3ee);
}

.selah-recurso {
	width: min(1120px, calc(100% - 2rem));
	margin: 2rem auto 4.5rem;
	color: var(--theme-palette-color-4, #1a2330);
}

.selah-recurso-cabecera {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: 2rem;
	align-items: center;
	padding: 1.1rem;
	background: var(--theme-palette-color-8, #ffffff);
	border-radius: 28px;
	box-shadow: 0 18px 50px color-mix(in srgb, var(--theme-palette-color-4, #1a2330) 8%, transparent);
}

.selah-recurso-cabecera.sin-imagen {
	grid-template-columns: 1fr;
	padding: 2rem 2.2rem;
}

.selah-recurso-imagen {
	margin: 0;
	overflow: hidden;
	border-radius: 20px;
	background: var(--theme-palette-color-5, #e4dcd0);
	aspect-ratio: 4 / 3;
}

.selah-recurso-imagen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.selah-recurso-presentacion {
	padding: 0.8rem 1.2rem 0.8rem 0.4rem;
}

.selah-recurso-categoria {
	margin: 0;
}

.selah-recurso-categoria a {
	color: var(--theme-palette-color-1, #0c6b73);
	font-family: "Segoe UI", system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
}

.selah-recurso-categoria a:hover,
.selah-recurso-categoria a:focus {
	text-decoration: underline;
}

.selah-recurso h1 {
	margin: 0.4rem 0 0.75rem;
	color: var(--theme-palette-color-4, #1a2330);
	font-family: Georgia, "Iowan Old Style", Palatino, serif;
	font-size: clamp(2.2rem, 4vw, 3.5rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.selah-recurso-resumen {
	margin: 0;
	max-width: 38rem;
	color: var(--theme-palette-color-3, #3a4654);
	font-family: Georgia, "Iowan Old Style", Palatino, serif;
	font-size: 1.22rem;
	line-height: 1.5;
}

.selah-recurso-datos {
	display: grid;
	gap: 0.7rem;
	margin: 1.4rem 0 0;
}

.selah-recurso-datos div {
	display: grid;
	grid-template-columns: 8.2rem minmax(0, 1fr);
	gap: 0.75rem;
	align-items: baseline;
}

.selah-recurso-datos dt {
	margin: 0;
	color: color-mix(in srgb, var(--theme-palette-color-3, #3a4654) 72%, var(--theme-palette-color-7, #f6f3ee));
	font-family: "Segoe UI", system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.selah-recurso-datos dd {
	margin: 0;
	font-family: "Segoe UI", system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.45;
}

.selah-recurso-datos a {
	color: var(--theme-palette-color-4, #1a2330);
	text-decoration: none;
}

.selah-recurso-datos a:hover,
.selah-recurso-datos a:focus {
	color: var(--theme-palette-color-1, #0c6b73);
	text-decoration: underline;
}

.selah-recurso-separador {
	margin: 0 0.35rem;
	color: var(--theme-palette-color-5, #e4dcd0);
}

.selah-recurso-cuerpo {
	width: 100%;
	margin: 1.6rem 0 0;
	padding: 2rem 2.1rem 2.2rem;
	background: var(--theme-palette-color-8, #ffffff);
	border-radius: 24px;
	box-shadow: 0 12px 36px color-mix(in srgb, var(--theme-palette-color-4, #1a2330) 6%, transparent);
	color: var(--theme-palette-color-3, #3a4654);
	font-family: Georgia, "Iowan Old Style", Palatino, serif;
	font-size: 1.22rem;
	line-height: 1.65;
}

.selah-recurso-cuerpo p {
	margin: 0.15rem 0;
}

.selah-recurso-cuerpo p:empty,
.selah-recurso-cuerpo p:has(> br:only-child) {
	height: 0.75rem;
	margin: 0;
}

.selah-recurso-cuerpo h1,
.selah-recurso-cuerpo h2,
.selah-recurso-cuerpo h3,
.selah-recurso-cuerpo h4 {
	margin: 1.15rem 0 0.35rem;
	color: var(--theme-palette-color-4, #1a2330);
	font-family: Georgia, "Iowan Old Style", Palatino, serif;
	font-weight: 600;
	line-height: 1.25;
}

.selah-recurso-cuerpo a {
	color: var(--theme-palette-color-1, #0c6b73);
}

.selah-recurso-cuerpo a:hover,
.selah-recurso-cuerpo a:focus {
	color: var(--theme-palette-color-2, #084e56);
}

.selah-recurso-cuerpo ul,
.selah-recurso-cuerpo ol {
	margin: 0.5rem 0 0.5rem 1.25rem;
}

.selah-recurso-cuerpo .has-text-align-right {
	text-align: right;
}

.selah-recurso-cuerpo .has-text-align-center {
	text-align: center;
}

.selah-recurso-cuerpo .wp-block-table {
	margin: 0.8rem 0;
	overflow-x: auto;
}

.selah-recurso-cuerpo table {
	width: 100%;
	border-collapse: collapse;
}

.selah-recurso-cuerpo td,
.selah-recurso-cuerpo th {
	padding: 0.35rem 0.5rem;
	border: 1px solid var(--theme-palette-color-5, #e4dcd0);
	vertical-align: top;
}

.selah-archivos {
	margin-top: 2rem;
}

.selah-archivos h2 {
	margin: 0 0 0.9rem;
	color: var(--theme-palette-color-4, #1a2330);
	font-family: Georgia, "Iowan Old Style", Palatino, serif;
	font-size: 1.7rem;
	font-weight: 600;
}

.selah-archivos-cuerpo {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.selah-archivo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55rem;
	min-width: 0;
	padding: 1.25rem 1.3rem 1.35rem;
	background: var(--theme-palette-color-8, #ffffff);
	border-radius: 20px;
	box-shadow: 0 12px 36px color-mix(in srgb, var(--theme-palette-color-4, #1a2330) 6%, transparent);
}

.selah-archivo-etiqueta {
	margin: 0;
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--theme-palette-color-1, #0c6b73) 14%, var(--theme-palette-color-8, #ffffff));
	color: var(--theme-palette-color-1, #0c6b73);
	font-family: "Segoe UI", system-ui, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.selah-archivo-audio .selah-archivo-etiqueta {
	background: var(--theme-palette-color-6, #efe8de);
	color: var(--theme-palette-color-4, #1a2330);
}

.selah-archivo h3 {
	margin: 0;
	color: var(--theme-palette-color-4, #1a2330);
	font-family: Georgia, "Iowan Old Style", Palatino, serif;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.25;
}

.selah-archivo-descripcion {
	color: var(--theme-palette-color-3, #3a4654);
	font-family: "Segoe UI", system-ui, sans-serif;
	font-size: 0.98rem;
	line-height: 1.45;
}

.selah-archivo-descripcion p {
	margin: 0;
}

.selah-archivo audio {
	width: 100%;
	margin-top: 0.35rem;
}

.selah-archivos a.selah-archivo-descarga {
	display: inline-block;
	margin-top: auto;
	padding: 0.62rem 1rem;
	border-radius: 999px;
	background: var(--theme-palette-color-1, #0c6b73);
	color: var(--theme-palette-color-8, #ffffff);
	font-family: "Segoe UI", system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
}

.selah-archivos a.selah-archivo-descarga:hover,
.selah-archivos a.selah-archivo-descarga:focus {
	background: var(--theme-palette-color-2, #084e56);
	color: var(--theme-palette-color-8, #ffffff);
}

.selah-recurso .ct-comments-container {
	margin-top: 2.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--theme-palette-color-5, #e4dcd0);
}

@media (max-width: 860px) {
	.selah-recurso {
		width: min(100% - 1.25rem, 1120px);
		margin-top: 1rem;
	}

	.selah-recurso-cabecera,
	.selah-archivos-cuerpo {
		grid-template-columns: 1fr;
	}

	.selah-recurso-presentacion,
	.selah-recurso-cabecera.sin-imagen {
		padding: 0.4rem 0.35rem 0.8rem;
	}

	.selah-recurso-datos div {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}

	.selah-recurso-cuerpo {
		padding: 1.4rem 1.15rem 1.6rem;
		font-size: 1.12rem;
	}
}
