/* =====================================================================
   LGS · Capa de diseño sobre Lovecraft
   Javier López y García de la Serrana

   Este archivo se carga DESPUÉS de style.css y sustituye a todo el
   "CSS adicional" del Personalizador (que ya no hace falta).

   Colores del banner:
     azul marino LGS  #00307a
     azul HispaColex  #0067af
     gris LGS         #707078
   ===================================================================== */

:root {
	--lgs-navy: #00307a;
	--lgs-blue: #0067af;
	--lgs-blue-soft: #e8f0f8;
	--lgs-gray: #707078;
	--lgs-ink: #1d2433;
	--lgs-text: #3a4150;
	--lgs-muted: #6b7280;
	--lgs-line: #e4e6eb;
	--lgs-bg: #f4f5f7;
	--lgs-card: #ffffff;
	--lgs-radius: 10px;
	--lgs-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
	--lgs-shadow-hover: 0 4px 8px rgba(16, 24, 40, .06), 0 16px 32px rgba(16, 24, 40, .10);
	--lgs-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--lgs-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}


/* ---------------------------------------------------------------------
   1. Base
   --------------------------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; }

body {
	background: var(--lgs-bg);
	color: var(--lgs-text);
	font-family: var(--lgs-sans);
	font-size: 17px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}

body a,
body a:visited { color: var(--lgs-blue); }
body a:hover { color: var(--lgs-navy); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--lgs-blue);
	outline-offset: 2px;
}

::selection { background: var(--lgs-navy); color: #fff; }

.section-inner { width: 1180px; max-width: calc(100% - 48px); }

.wrapper.section { padding: 48px 0 72px; }


/* ---------------------------------------------------------------------
   2. Cabecera
   --------------------------------------------------------------------- */

.header-wrapper,
.header-wrapper .header { background: #fff; }

.header-wrapper .header { padding: 28px 0 22px; }

.header .blog-title {
	font-family: var(--lgs-serif);
	font-size: 2.35em;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-align: center;
}

.header .blog-title a,
.header .blog-title a:visited { color: var(--lgs-navy); }
.header .blog-title a:hover { color: var(--lgs-blue); }

.header .blog-tagline {
	margin-top: 8px;
	font-family: var(--lgs-serif);
	font-style: italic;
	font-size: 1.05em;
	color: var(--lgs-gray);
	text-align: center;
	line-height: 1.4;
}

.header .blog-tagline:before,
.header .blog-tagline:after { display: none; }

.blog-logo img { max-height: 90px; width: auto; margin: 0 auto; }


/* ---------------------------------------------------------------------
   3. Menú
   --------------------------------------------------------------------- */

.navigation.bg-white {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .97);
	border-top: 1px solid var(--lgs-line);
	border-bottom: 3px solid var(--lgs-blue);
}

.admin-bar .navigation.bg-white { top: 32px; }

.main-menu { text-align: center; padding: 0; }

.main-menu > li { padding: 0; }

.main-menu > li + li:before { display: none; }

.main-menu a,
.main-menu a:visited {
	display: block;
	padding: 16px 18px;
	font-family: var(--lgs-sans);
	font-size: .78em;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lgs-navy);
	position: relative;
}

.main-menu > li > a:after {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 10px;
	height: 2px;
	background: var(--lgs-blue);
	transform: scaleX(0);
	transition: transform .2s ease;
}

.main-menu > li:hover > a,
.main-menu > .current-menu-item > a,
.main-menu > .current_page_item > a,
.main-menu > .current-menu-parent > a { color: var(--lgs-blue); }

.main-menu > li:hover > a:after,
.main-menu > .current-menu-item > a:after,
.main-menu > .current_page_item > a:after,
.main-menu > .current-menu-parent > a:after { transform: scaleX(1); }

/* Submenús */
.main-menu ul {
	border-radius: 0 0 var(--lgs-radius) var(--lgs-radius);
	box-shadow: var(--lgs-shadow-hover);
}

.main-menu ul a,
.main-menu ul a:visited { text-transform: none; letter-spacing: 0; font-size: .85em; }


/* ---------------------------------------------------------------------
   4. Banner de cabecera (a todo el ancho)
   --------------------------------------------------------------------- */

.header-image {
	max-width: none;
	width: 100%;
	height: auto;
	max-height: none;
	margin: 0;
	padding: 0;
	line-height: 0;
	/* Rellena los laterales en pantallas muy anchas con los colores del banner */
	background-image: linear-gradient(90deg, #bdbdbc 50%, #0067af 50%) !important;
}

.header-image img {
	visibility: visible;
	display: block;
	margin: 0 auto;
	width: 100%;
	max-width: 1600px;
	height: clamp(120px, 21vw, 380px);
	max-height: none;
	object-fit: cover;
	object-position: center 48%;
}


/* ---------------------------------------------------------------------
   5. Estructura contenido + lateral
   --------------------------------------------------------------------- */

.content { width: 68%; margin-top: 0; }
.sidebar { width: 29%; }


/* ---------------------------------------------------------------------
   6. Listado de noticias (portada, categorías, búsqueda)
   --------------------------------------------------------------------- */

.posts .post {
	display: -webkit-box;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	padding: 0;
	border: 0;
	border-radius: var(--lgs-radius);
	overflow: hidden;
	background: var(--lgs-card);
	box-shadow: var(--lgs-shadow);
	transition: box-shadow .25s ease, transform .25s ease;
}

.posts .post + .post { margin-top: 28px; }

.posts .post:hover {
	transform: translateY(-2px);
	box-shadow: var(--lgs-shadow-hover);
}

.posts .post-image {
	flex: 0 0 38%;
	margin: 0;
	overflow: hidden;
	background: var(--lgs-blue-soft);
}

.posts .post-image img {
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
	object-position: center 30%;
	transition: transform .6s ease;
}

.posts .post:hover .post-image img { transform: scale(1.04); }

.posts .post-inner {
	flex: 1;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 28px 32px 30px;
}

.posts .post-header { display: flex; flex-direction: column; }

.post-title,
.post-title a,
.post-title a:visited {
	font-family: var(--lgs-serif);
	color: var(--lgs-ink);
	text-align: left;
}

.posts .post-title {
	font-size: 1.32em;
	font-weight: 700;
	line-height: 1.3;
}

.posts .post-title a:hover { color: var(--lgs-blue); }

/* Fecha encima del título */
.post-meta { text-align: left; }

.posts .post-meta {
	order: -1;
	margin: 0 0 10px;
	padding: 0;
	border: 0;
}

.post-meta p {
	font-family: var(--lgs-sans);
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lgs-muted);
}

.post-meta p span,
p.post-author { display: none; }

.post-meta p + p:before { content: none; }

.post-meta a,
.post-meta a:visited { color: var(--lgs-blue); border: 0; padding: 0; }

/* Resumen */
.posts .post-header + .post-content { margin-top: 12px; }

.posts .post-content p {
	font-size: .95em;
	line-height: 1.7;
	text-align: left;
	color: var(--lgs-text);
}

/* Botón "Leer más" */
.posts .post-content a.read-more-link,
.posts .post-content a.more-link {
	display: table;
	margin-top: 18px;
	padding: 9px 18px;
	border: 1px solid var(--lgs-blue);
	border-radius: 999px;
	background: transparent;
	font-family: var(--lgs-sans);
	font-size: .74em;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lgs-blue);
	transition: background .2s, color .2s;
}

.posts .post-content a.read-more-link:after,
.posts .post-content a.more-link:after { content: " \2192"; }

.posts .post-content a.read-more-link:hover,
.posts .post-content a.more-link:hover { background: var(--lgs-blue); color: #fff; }

/* Primera noticia destacada */
.posts .post:first-child { flex-direction: column; }

.posts .post:first-child .post-image img {
	height: auto;
	min-height: 0;
	aspect-ratio: 16 / 9;
}

.posts .post:first-child .post-inner { padding: 32px 38px 36px; }
.posts .post:first-child .post-title { font-size: 1.8em; line-height: 1.22; }
.posts .post:first-child .post-content p { font-size: 1.02em; }

/* Título de archivo / categoría / búsqueda */
.page-title {
	margin-bottom: 28px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--lgs-line);
	font-family: var(--lgs-serif);
	color: var(--lgs-ink);
}

.page-title h4 {
	font-family: var(--lgs-sans);
	font-size: .78em;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lgs-muted);
}

/* Paginación */
.archive-navigation {
	margin-top: 36px;
	padding: 18px 24px;
	border: 0;
	border-radius: var(--lgs-radius);
	background: var(--lgs-card);
	box-shadow: var(--lgs-shadow);
}

.archive-navigation p,
.archive-navigation a {
	font-family: var(--lgs-sans);
	font-size: .75em;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lgs-muted);
}

.archive-navigation a,
.archive-navigation a:visited { color: var(--lgs-blue); }
.archive-navigation a:hover { color: var(--lgs-navy); }


/* ---------------------------------------------------------------------
   7. Entrada individual y páginas
   --------------------------------------------------------------------- */

/* Imagen destacada: dentro de un marco, no a sangre */
.post-singular {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 40px 0 0;
	text-align: center;
	background: linear-gradient(180deg, var(--lgs-navy) 0, var(--lgs-navy) 62%, var(--lgs-bg) 62%) !important;
	line-height: 0;
}

.post-singular img {
	display: block;
	width: auto;
	max-width: min(1000px, calc(100% - 48px));
	max-height: 520px;
	margin: 0 auto;
	object-fit: cover;
	border-radius: var(--lgs-radius);
	box-shadow: 0 20px 50px rgba(0, 20, 60, .25);
}

.single,
.page .post.single {
	padding: 0;
	border: 0;
	border-radius: var(--lgs-radius);
	background: var(--lgs-card);
	box-shadow: var(--lgs-shadow);
	overflow: hidden;
}

.single .post-inner {
	width: auto;
	max-width: 720px;
	padding: 52px 48px 56px;
}

.single .post-header { padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--lgs-line); }

.single .post-title {
	font-size: 2.1em;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.single .post-header { display: flex; flex-direction: column; }
.single .post-meta { order: -1; margin: 0 0 12px; padding: 0; border: 0; }

/* Texto del artículo */
.post-content {
	font-family: var(--lgs-sans);
	font-size: 1.04em;
	line-height: 1.8;
	color: var(--lgs-text);
}

.post-content p,
.post-content li { line-height: 1.8; }

.post-content p { text-align: left; margin-bottom: 1.25em; }

.post-content h2,
.post-content h3,
.post-content h4 {
	font-family: var(--lgs-serif);
	color: var(--lgs-ink);
	line-height: 1.3;
	margin: 1.8em 0 .6em;
}

.post-content a,
.post-content a:visited {
	color: var(--lgs-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.post-content a:hover { color: var(--lgs-navy); }

.post-content img { border-radius: 6px; }

.post-content a img { display: block; margin: 0 auto; }

.post-content blockquote {
	margin: 1.6em 0;
	padding: 18px 24px 18px 26px;
	border-left: 4px solid var(--lgs-blue);
	background: var(--lgs-blue-soft);
	border-radius: 0 var(--lgs-radius) var(--lgs-radius) 0;
	font-family: var(--lgs-serif);
	font-style: italic;
	color: var(--lgs-ink);
}

.post-content blockquote:after { display: none; }

/* Navegación anterior / siguiente */
.post-navigation { border-top: 1px solid var(--lgs-line); background: #fafbfc; }

.post-navigation p {
	font-family: var(--lgs-sans);
	font-size: .7em;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lgs-muted);
}

.post-navigation h4 a,
.post-navigation h4 a:visited {
	font-family: var(--lgs-serif);
	color: var(--lgs-ink);
	line-height: 1.35;
}

.post-navigation h4 a:hover { color: var(--lgs-blue); }

/* Botones de compartir (plugin) */
.heateor_sss_sharing_container { margin-top: 28px; }


/* ---------------------------------------------------------------------
   8. Formularios (Contact Form 7, comentarios, buscador)
   --------------------------------------------------------------------- */

.post-content input[type="text"],
.post-content input[type="email"],
.post-content input[type="tel"],
.post-content input[type="url"],
.post-content textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cfd4dc;
	border-radius: 6px;
	background: #fff;
	font-family: var(--lgs-sans);
	font-size: 1em;
	color: var(--lgs-ink);
	transition: border-color .15s, box-shadow .15s;
}

.post-content input[type="text"]:focus,
.post-content input[type="email"]:focus,
.post-content input[type="tel"]:focus,
.post-content input[type="url"]:focus,
.post-content textarea:focus,
.comment-respond input:focus,
.comment-respond textarea:focus {
	outline: none;
	border-color: var(--lgs-blue);
	box-shadow: 0 0 0 3px rgba(0, 103, 175, .15);
}

.post-content input[type="submit"],
.form-submit #submit {
	padding: 13px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--lgs-navy);
	font-family: var(--lgs-sans);
	font-size: .8em;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: background .2s;
}

.post-content input[type="submit"]:hover,
.form-submit #submit:hover { background: var(--lgs-blue); }

.wpcf7 label { display: block; font-weight: 700; color: var(--lgs-ink); }

/* Buscador */
.wrapper .search-form,
.mobile-search .search-form { position: relative; }

.wrapper .search-field {
	width: 100%;
	padding: 12px 48px 12px 14px;
	border: 1px solid #cfd4dc;
	border-radius: 999px;
	background: #fafbfc;
	font-family: var(--lgs-sans);
	font-size: .9em;
}

.wrapper .search-field:focus { border-color: var(--lgs-blue); background: #fff; }

.wrapper .search-button {
	right: 6px;
	top: 50%;
	margin-top: -18px;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	background: transparent;
}


/* ---------------------------------------------------------------------
   9. Columna lateral
   --------------------------------------------------------------------- */

.section-inner .sidebar {
	display: flex;
	flex-direction: column;
	background: transparent;
	padding: 0;
}

.sidebar .widget {
	margin: 0 0 24px;
	padding: 22px 22px 24px;
	border: 0;
	background: var(--lgs-card);
	border-radius: var(--lgs-radius);
	box-shadow: var(--lgs-shadow);
}

.sidebar .widget + .widget { margin-top: 0; padding-top: 22px; border-top: 0; }

.sidebar .widget-title {
	display: block;
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--lgs-line);
	font-family: var(--lgs-sans);
	font-size: .74em;
	font-weight: 900;
	letter-spacing: .14em;
	color: var(--lgs-ink);
	position: relative;
}

.sidebar .widget-title:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 40px;
	height: 2px;
	background: var(--lgs-blue);
}

.sidebar .widget_search { order: -1; padding: 14px 16px; }

/* Redes sociales */
.sidebar .mks_social_widget_ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.sidebar .mks_social_widget_ul li { margin: 0; padding: 0; float: none; }

.sidebar .mks_social_widget_ul a {
	border-radius: 50%;
	width: 44px !important;
	height: 44px !important;
	transition: transform .2s ease, opacity .2s ease;
}

.sidebar .mks_social_widget_ul a:hover { transform: translateY(-3px); opacity: .9; }

/* Publicaciones (Posts in Sidebar) */
.sidebar .pis-ul { margin: 0; padding: 0; }

.sidebar .pis-li {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 12px;
	align-items: start;
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid #eef0f3;
}

.sidebar .pis-li:first-child { border-top: 0; padding-top: 0; }
.sidebar .pis-li:last-child { padding-bottom: 0; }

.sidebar .pis-excerpt { grid-column: 1; grid-row: 1; margin: 0; padding: 0; }

.sidebar .pis-thumbnail-link img {
	display: block;
	width: 84px !important;
	height: 64px;
	object-fit: cover;
	border-radius: 6px;
	margin: 0;
}

.sidebar .pis-title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	font-family: var(--lgs-sans);
	font-size: 13.5px !important;
	line-height: 1.45;
	text-align: left !important;
}

.sidebar .pis-title-link,
.sidebar .pis-title-link:visited {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	color: var(--lgs-ink);
}

.sidebar .pis-title-link:hover { color: var(--lgs-blue); }
.sidebar .pis-arrow { display: none; }

/* Vídeo */
.sidebar .widget_youtube_responsive .widget-title:empty:before { content: "Vídeo destacado"; }

.sidebar .widget_youtube_responsive object,
.sidebar .widget_youtube_responsive iframe {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
}

.sidebar .widget_youtube_responsive img { border-radius: 6px; cursor: pointer; }

/* Bloques que ya no muestran nada (Twitter/X y la insignia de LinkedIn) */
.sidebar .widget-do-etfw,
.sidebar .widget_custom_html:has(.LI-profile-badge) { display: none; }


/* ---------------------------------------------------------------------
   10. Pie
   --------------------------------------------------------------------- */

.footer.section { background: #fff; border-top: 1px solid var(--lgs-line); }

.credits {
	padding: 28px 0;
	background-color: var(--lgs-navy);
	border-top: 3px solid var(--lgs-blue);
}

.credits p {
	font-family: var(--lgs-sans);
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-align: center;
	color: rgba(255, 255, 255, .85);
	line-height: 1.8;
}

.credits p a,
.credits p a:visited { color: #fff; }
.credits p a:hover { color: #b9c6dd; }
.credits .sep { color: rgba(255, 255, 255, .5); }


/* ---------------------------------------------------------------------
   11. Responsive
   --------------------------------------------------------------------- */

@media (max-width: 1000px) {

	.wrapper.section { padding: 32px 0 56px; }

	/* El contenido ocupa todo el ancho y el lateral pasa debajo
	   (antes se ocultaba y en móvil no se veían redes ni publicaciones). */
	.content,
	.sidebar { width: 100%; float: none; }

	.section-inner .sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
		margin-top: 40px;
	}

	.sidebar .widget { margin: 0; }
	.sidebar > .clear { display: none; }

	/* Barra de iconos del móvil */
	.toggles {
		background: #fff;
		border-top: 1px solid var(--lgs-line);
		border-bottom: 3px solid var(--lgs-blue);
		padding: 0 24px;
	}

	.navigation.bg-white { position: static; border: 0; }

	.toggles .nav-toggle .bar { background-color: var(--lgs-navy); }
	.toggles .search-toggle { color: var(--lgs-navy); }

	.mobile-menu { background: #fff; }

	.mobile-menu a,
	.mobile-menu a:visited {
		padding: 16px 24px;
		border-bottom: 1px solid var(--lgs-line);
		font-family: var(--lgs-sans);
		font-size: .85em;
		font-weight: 700;
		letter-spacing: .1em;
		text-transform: uppercase;
		color: var(--lgs-navy);
	}

	.mobile-menu a:hover { color: var(--lgs-blue); background: var(--lgs-blue-soft); }

	.mobile-search { padding: 16px 24px; background: #fff; }

	.post-singular { padding-top: 24px; }
	.post-singular img { max-height: 420px; }
}

@media (max-width: 700px) {

	body { font-size: 16px; }

	.section-inner { max-width: calc(100% - 32px); }

	.header-wrapper .header { padding: 20px 0 16px; }
	.header .blog-title { font-size: 1.7em; }
	.header .blog-tagline { font-size: .95em; }

	.posts .post { flex-direction: column; }
	.posts .post-image img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }

	.posts .post-inner,
	.posts .post:first-child .post-inner { padding: 22px 22px 26px; }

	.posts .post:first-child .post-title { font-size: 1.4em; }
	.posts .post-title { font-size: 1.2em; }
	.posts .post + .post { margin-top: 22px; }

	.single .post-inner { max-width: none; padding: 30px 22px 34px; }
	.single .post-title { font-size: 1.55em; }

	.post-content { font-size: 1em; }

	.post-singular img { max-width: calc(100% - 32px); max-height: 300px; }

	.section-inner .sidebar { grid-template-columns: minmax(0, 1fr); gap: 20px; }

	.archive-navigation { padding: 16px 18px; }

	.credits p { font-size: .66em; letter-spacing: .08em; }
}
