/*
 * Noticias: listado del blog ([tlx_noticias]) y plantilla de entrada individual.
 * Reproduce el diseño que daban el widget "Posts" (skin cards) y la plantilla
 * "Single Noticias" de Elementor Pro. Valores tomados del diseño original.
 */

/* ------------------------------------------------------------------ */
/* Listado                                                            */
/* ------------------------------------------------------------------ */
.tlx-noticias {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 0 30px;
}

.tlx-noticias__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 35px 30px;
	align-items: stretch;
}

.tlx-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	background: #fff;
	border-radius: 3px;
	box-shadow: 0 0 10px rgba(0, 0, 0, .15);
	overflow: hidden;
	font-family: Raleway, sans-serif;
	letter-spacing: 2px;
}

.tlx-card__thumb {
	display: block;
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #fff;
	border: 0;
}

/* Sin imagen destacada: degradado gris como en el diseño original. */
.tlx-card__thumb--empty {
	background: linear-gradient(#fff, #d4d4d4);
}

.tlx-card__img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.tlx-card__badge {
	position: absolute;
	top: 0;
	right: 0;
	margin: 20px;
	padding: 7.2px 14.4px;
	border-radius: 999px;
	background: #05c3de;
	color: #fff;
	font: 300 12px/12px Raleway, sans-serif;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.tlx-card__text {
	margin-top: 20px;
	padding: 0 30px;
}

.tlx-card .tlx-card__title {
	margin: 0 0 25px;
	padding: 0;
	font: 300 21px/1.25 Raleway, sans-serif;
	letter-spacing: 2px;
	text-transform: none;
	color: #54595f;
}

.tlx-card .tlx-card__title a,
.tlx-card .tlx-card__more {
	border: 0;
	box-shadow: none;
	text-decoration: none;
}

.tlx-card .tlx-card__title a {
	color: #54595f;
	font-weight: 300;
}

.tlx-card__excerpt {
	margin-bottom: 28px;
}

.tlx-card__excerpt p {
	margin: 0;
	font: 300 14px/1.5 Raleway, sans-serif;
	letter-spacing: 2px;
	color: #777;
}

.tlx-card .tlx-card__more {
	display: inline-block;
	margin: 0 0 20px;
	font: 700 12px/48px Raleway, sans-serif;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #05c3de;
}

.tlx-card__meta {
	margin-top: auto;
	padding: 15px 30px;
	border-top: 1px solid #6ec1e4;
	font: 300 12px/1.3 Raleway, sans-serif;
	letter-spacing: 2px;
	color: #adadad;
}

.tlx-noticias__nav {
	margin-top: 35px;
	text-align: center;
	font: 400 20px/48px "Roboto Slab", serif;
	letter-spacing: 2px;
	color: #252422;
}

.tlx-noticias__nav .page-numbers {
	margin: 0 5px;
	border: 0;
	text-decoration: none;
	color: #87189d;
}

.tlx-noticias__nav .page-numbers.current {
	color: #252422;
}

.tlx-noticias__nav .page-numbers.prev,
.tlx-noticias__nav .page-numbers.next {
	font-size: 14px;
	text-transform: uppercase;
}

@media (max-width: 1150px) {
	.tlx-noticias {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (max-width: 1024px) {
	.tlx-noticias__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.tlx-noticias__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ */
/* Entrada individual                                                 */
/* ------------------------------------------------------------------ */
body.tlx-noticia {
	background-color: #fcfcfc;
}

/* Cabecera fija y blanca; el globo del menú no se muestra en las noticias. */
body.tlx-noticia .site-header {
	position: fixed;
	border-bottom: none;
	background-color: #fff !important;
}

body.tlx-noticia .entry-title a,
body.tlx-noticia .genesis-nav-menu a,
body.tlx-noticia .genesis-nav-menu .current-menu-item > a {
	color: #b2409d !important;
}

body.tlx-noticia .globo {
	display: none;
}

/* Columna de 880px, blanca y con sombra; deja sitio a la cabecera fija. */
body.tlx-noticia .site-inner {
	padding-top: 160px;
	padding-bottom: 50px;
}

/* #genesis-content (style.css) fija padding/max-width con un ID; hay que igualarlo. */
body.tlx-noticia #genesis-content {
	float: none;
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
	padding: 10px;
	background: #fff;
	box-shadow: 0 0 34px rgba(0, 0, 0, .11);
}

body.tlx-noticia .tlx-noticia__hero {
	margin: 0;
	line-height: 0;
}

body.tlx-noticia .tlx-noticia__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1140 / 500;
	object-fit: cover;
}

/* Fecha y categoría */
body.tlx-noticia .entry-header .entry-meta {
	margin: 0;
	text-align: center;
	text-transform: none;
	font: 300 13px/48px Roboto, sans-serif;
	letter-spacing: 2px;
	color: #54595f;
}

body.tlx-noticia .entry-header .entry-meta a {
	color: #54595f;
	border: 0;
}

/* Título */
body.tlx-noticia .entry-header .entry-title {
	margin: 10px 0 0;
	text-align: left;
	text-transform: none;
	font: 600 1.4em Roboto, sans-serif;
	color: #000;
}

/* Contenido */
body.tlx-noticia .entry-content {
	text-align: justify;
	font-family: Roboto, sans-serif;
	font-weight: 400;
	line-height: 2.1em;
	color: #7a7a7a;
}

body.tlx-noticia .entry-content p {
	margin: 0 0 24px;
}

body.tlx-noticia .entry-content h2,
body.tlx-noticia .entry-content h3 {
	margin: 0 0 10px;
	font-size: 28px;
	line-height: 35px;
	font-weight: 400;
	text-align: justify;
	color: #333;
}

body.tlx-noticia .entry-content img {
	max-width: 100%;
	height: auto;
}

body.tlx-noticia .entry-footer {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Franja "Comparte esta noticia" */
.tlx-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 30px 0 0;
	padding: 16px 10px 16px 10px;
	background: #f4f4f4;
}

.tlx-share .tlx-share__title {
	margin: 0;
	padding: 0;
	font: 600 22px/22px Roboto, sans-serif;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #000;
}

.tlx-share__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.tlx-share .tlx-share__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	box-shadow: none;
	text-decoration: none;
	color: #fff;
	font-size: 18px;
	line-height: 1;
}

.tlx-share__btn .fa {
	color: #fff;
}

.tlx-share__btn--facebook  { background: #3b5998; }
.tlx-share__btn--twitter   { background: #1da1f2; }
.tlx-share__btn--linkedin  { background: #0077b5; }
.tlx-share__btn--pinterest { background: #bd081c; }
.tlx-share__btn--print     { background: #a7a7a7; }
.tlx-share__btn--email     { background: #ea4335; }

@media (max-width: 1023px) {
	body.tlx-noticia .site-inner {
		padding-top: 120px;
	}
}

@media (max-width: 767px) {
	body.tlx-noticia .site-inner {
		padding-top: 100px;
	}

	body.tlx-noticia .entry-content {
		line-height: 1.8em;
	}

	.tlx-share {
		flex-direction: column;
		align-items: flex-start;
	}

	.tlx-share__links {
		justify-content: flex-start;
	}
}
