/* ==================================================
   COLORES DE TÍTULOS Y ENLACES
   ================================================== */

.entry-title a,
.entry-title a:visited,
.more-link,
.more-link:visited {
	color: #C8102E;
}

.entry-title a:hover,
.entry-title a:focus,
.more-link:hover,
.more-link:focus {
	color: #8A0B20;
}


/* ==================================================
   DATOS DE LAS PUBLICACIONES
   ================================================== */

/* Ocultar el autor */
.single-post .byline,
.single-post .author.vcard,
.single-post a[rel="author"] {
	display: none !important;
}

/* Ocultar «Deja un comentario» en los listados */
.entry-meta .comments-link {
	display: none !important;
}

/* Reducir el tamaño de las categorías */
.entry-meta .cat-links,
.entry-meta .cat-links a {
	font-size: 12px !important;
	line-height: 1.35;
}


/* ==================================================
   CABECERA DE LAS NOTICIAS EN ORDENADOR
   ================================================== */

@media screen and (min-width: 960px) {
	.single-post .entry-hero {
		display: flex;
		flex-direction: column;
		background: #ffffff;
	}

	.single-post .entry-header-wrapper {
		position: static;
		order: 1;
		padding: 36px 0 28px;
		background-image: none;
	}

	.single-post .entry-header-inner {
		width: 90%;
		max-width: 1260px;
	}

	.single-post .entry-hero .entry-title {
		max-width: 1100px;
		color: #111111;
		line-height: 1.15;
		text-shadow: none;
	}

	.single-post .entry-hero .entry-meta,
	.single-post .entry-hero .entry-meta a {
		color: #C8102E;
		text-shadow: none;
	}

	/* Limitar el tamaño y adaptar el contenedor */
	.single-post .entry-hero .post-thumbnail {
		order: 2;
		width: 90%;
		max-width: 1000px;
		height: auto !important;
		max-height: none !important;
		margin: 0 auto;
		overflow: visible !important;
		text-align: center;
		background: #ffffff;
	}

	/* Ajustar imágenes horizontales, cuadradas y verticales */
	.single-post .entry-hero .post-thumbnail img {
		display: block;
		width: auto !important;
		max-width: 100% !important;
		height: auto !important;
		max-height: 600px !important;
		margin: 0 auto;
		object-fit: contain !important;
		object-position: center;
	}
}


/* ==================================================
   NOTICIAS EN PANTALLAS GRANDES
   ================================================== */

@media screen and (min-width: 1380px) {
	.single-post .site-content-inner {
		width: calc(100% - 60px);
		max-width: 1500px;
	}

	.single-post .site-main {
		width: calc(100% - 330px);
	}

	.single-post .entry-content,
	.single-post .comments-area {
		width: calc(100% - 330px);
	}

	/* Evitar que las noticias relacionadas queden estrechas */
	.single-post div#jp-relatedposts {
		box-sizing: border-box;
		clear: both !important;
		float: none !important;
		width: 100% !important;
		max-width: none !important;
		margin-left: 0 !important;
		padding-left: 0 !important;
	}
}


/* ==================================================
   CABECERA: BANNER ARRIBA Y MENÚ OSCURO DEBAJO
   ================================================== */

#page {
	display: flex;
	flex-direction: column;
}

.header-image {
	order: 1;
	margin: 0 !important;
	background: #202020;
}

#masthead {
	order: 2;
}

#content {
	order: 3;
}

.footer-widget {
	order: 4;
}

.site-footer {
	order: 5;
}


/* ==================================================
   SUBMENÚS DESPLEGABLES EN ORDENADOR
   ================================================== */

@media screen and (min-width: 840px) {
	.main-navigation ul ul,
	.main-navigation .sub-menu {
		min-width: 220px;
		min-height: 0 !important;
		height: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #202020 !important;
		border: 1px solid #4A4A4A !important;
		box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25) !important;
	}

	.main-navigation ul ul li,
	.main-navigation .sub-menu li {
		display: block;
		float: none;
		width: 100%;
		margin: 0 !important;
		padding: 0 !important;
		background: #202020 !important;
		border: 0 !important;
		border-bottom: 1px solid #4A4A4A !important;
	}

	.main-navigation ul ul li:last-child,
	.main-navigation .sub-menu li:last-child {
		border-bottom: 0 !important;
	}

	.main-navigation ul ul a,
	.main-navigation .sub-menu a {
		display: block;
		box-sizing: border-box;
		width: 100%;
		padding: 13px 15px !important;
		background: #202020 !important;
		color: #ffffff !important;
		line-height: 1.3;
	}

	.main-navigation ul ul a:hover,
	.main-navigation ul ul a:focus,
	.main-navigation .sub-menu a:hover,
	.main-navigation .sub-menu a:focus,
	.main-navigation .sub-menu .current-menu-item > a {
		background: #2B2B2B !important;
		color: #E30613 !important;
	}
}


/* ==================================================
   IMAGEN DEL BANNER
   ================================================== */

.header-image-inner {
	width: 100% !important;
	max-width: 1600px;
	margin: 0 auto !important;
}

.header-image img {
	display: block;
	width: 100%;
	height: auto;
}


/* ==================================================
   IDENTIDAD ORIGINAL DEL TEMA
   ================================================== */

/* Ocultar visualmente el logotipo y título duplicados,
   conservándolos para lectores de pantalla */
.site-branding {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}


/* ==================================================
   BARRA PRINCIPAL
   ================================================== */

.site-header,
.fixed .site-header,
.admin-bar.fixed .site-header {
	position: relative !important;
	top: auto !important;
	padding: 0 !important;
	background: #202020 !important;
	border: 0 !important;
	box-shadow: none !important;
}

.site-header-inner {
	min-height: 62px;
}


/* ==================================================
   MENÚ DE ESCRITORIO
   ================================================== */

@media screen and (min-width: 840px) {
	.main-navigation,
	body:not(.long-menu) .main-navigation,
	body.long-menu .main-navigation {
		clear: none !important;
		float: none !important;
		margin: 0 !important;
		padding: 15px 65px 15px 0 !important;
		border: 0 !important;
	}

	.main-navigation .nav-menu > li + li {
		border-left-color: #4A4A4A !important;
	}
}


/* Enlaces del menú */
.main-navigation a {
	color: #ffffff !important;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: #E30613 !important;
}


/* Separadores entre elementos */
.main-navigation li {
	border-color: #4A4A4A !important;
}


/* Eliminar la línea situada antes de Inicio */
body.long-menu .main-navigation > div::before {
	display: none !important;
	content: none !important;
}

body:not(.long-menu) .main-navigation {
	border-left: 0 !important;
}


/* ==================================================
   BOTÓN DE BÚSQUEDA
   ================================================== */

.search-toggle,
.search-toggle:hover,
.search-toggle:focus {
	color: #ffffff !important;
	background: #202020 !important;
	border-color: #4A4A4A !important;
}


/* ==================================================
   BOTÓN DEL MENÚ MÓVIL
   ================================================== */

.menu-toggle,
.menu-toggle:hover,
.menu-toggle:focus {
	color: #ffffff !important;
	background: #202020 !important;
	border-color: #4A4A4A !important;
}


/* ==================================================
   MENÚ MÓVIL DESPLEGADO
   ================================================== */

@media screen and (max-width: 839px) {
	#site-navigation.main-navigation.toggled {
		background: #202020 !important;
	}

	#site-navigation.main-navigation.toggled > div {
		margin-top: 0 !important;
		padding: 15px !important;
		background: #202020 !important;
		border: 0 !important;
		box-shadow: none !important;
	}

	#site-navigation.main-navigation.toggled ul {
		background: #202020 !important;
		border-color: #4A4A4A !important;
	}
}


/* ==================================================
   NAVEGACIÓN ENTRE NOTICIAS
   ================================================== */

/* Eliminar las imágenes recortadas de Anterior/Siguiente */
.post-navigation .nav-previous,
.post-navigation .nav-next {
	background-image: none !important;
}

.post-navigation a {
	background: #202020 !important;
}

.post-navigation a:hover,
.post-navigation a:focus {
	background: #C8102E !important;
}

.post-navigation .meta-nav,
.post-navigation .post-title {
	color: #ffffff !important;
	text-shadow: none !important;
}


/* ==================================================
   ALINEACIÓN DEL TITULAR Y LIMPIEZA DE LA BARRA LATERAL
   ================================================== */

@media screen and (min-width: 960px) {

	/* Alinear categorías y titular con la imagen destacada */
	.single-post .entry-header-inner {
		width: 90%;
		max-width: 1000px;
		margin-right: auto;
		margin-left: auto;
	}

	/* Eliminar la línea entre la noticia y la newsletter */
	.single-post .site-main {
		border-right: 0 !important;
	}

	.single-post .widget-area {
		border-left: 0 !important;
	}
}