/*
Theme Name: Linux Hispano
Theme URI: https://www.linuxhispano.net/
Author: Linux Hispano
Description: Tema propio de Linux Hispano: una sola columna, centrado en la lectura de cada artículo, sin barra lateral.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linuxhispano
*/

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Montserrat";
	font-style: italic;
	font-weight: 400 800;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--lh-blue: #1c3fd0;
	--lh-blue-dark: #12298f;
	--lh-blue-soft: #eef1fd;
	--lh-orange: #f28400;
	--lh-orange-soft: #fff4e5;
	--lh-ink: #1b2130;
	--lh-text: #2b3242;
	--lh-muted: #5f6779;
	--lh-line: #e4e7ee;
	--lh-soft: #f5f6f9;
	--lh-code-bg: #161b26;
	--lh-code-text: #e6e9f0;
	--lh-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--lh-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
	--lh-wrap: 1040px;
	--lh-narrow: 720px;
	--lh-radius: 10px;
	--lh-header-h: 68px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--lh-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--lh-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--lh-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--lh-blue-dark);
}

:focus-visible {
	outline: 3px solid var(--lh-orange);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--lh-ink);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 0 0 0.6em;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.lh-skip {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	padding: 0.6rem 1rem;
	background: var(--lh-ink);
	color: #fff;
	border-radius: 6px;
}

.lh-skip:focus {
	top: 1rem;
	color: #fff;
}

.lh-wrap {
	width: 100%;
	max-width: var(--lh-wrap);
	margin-inline: auto;
	padding-inline: 20px;
}

.lh-narrow {
	width: 100%;
	max-width: calc(var(--lh-narrow) + 40px);
	margin-inline: auto;
	padding-inline: 20px;
}

.lh-icon {
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

/* Barra de progreso */

.lh-progress {
	position: fixed;
	inset: 0 0 auto;
	height: 3px;
	z-index: 120;
	pointer-events: none;
}

.lh-progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--lh-orange), #ffb44d);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.admin-bar .lh-progress {
	top: 32px;
}

/* Cabecera */

.lh-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-bar .lh-header {
	top: 32px;
}

.lh-header.is-scrolled {
	border-bottom-color: var(--lh-line);
	box-shadow: 0 4px 18px rgba(20, 30, 60, 0.05);
}

.lh-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--lh-header-h);
}

.lh-brand {
	flex: none;
	display: flex;
	align-items: center;
}

.lh-brand img {
	display: block;
	width: auto;
	height: 34px;
}

.lh-brand__text {
	font-weight: 800;
	font-size: 1.3rem;
	color: var(--lh-ink);
	text-decoration: none;
}

.lh-nav {
	margin-left: auto;
}

.lh-menu,
.lh-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lh-menu {
	display: flex;
	align-items: center;
	gap: 4px;
}

.lh-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.lh-menu a {
	display: block;
	padding: 8px 12px;
	font-size: 0.94rem;
	font-weight: 600;
	color: var(--lh-ink);
	text-decoration: none;
	border-radius: 8px;
}

.lh-menu a:hover,
.lh-menu .current-menu-item > a,
.lh-menu .current-menu-ancestor > a {
	color: var(--lh-blue);
	background: var(--lh-blue-soft);
}

.lh-submenu-toggle {
	width: 22px;
	height: 22px;
	margin-left: -8px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--lh-muted);
}

.lh-submenu-toggle::before {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	margin: 4px auto 0;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.lh-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--lh-line);
	border-radius: var(--lh-radius);
	box-shadow: 0 16px 40px rgba(20, 30, 60, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.lh-menu li:hover > .sub-menu,
.lh-menu li:focus-within > .sub-menu,
.lh-menu li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.lh-menu .sub-menu a {
	font-weight: 500;
	padding: 8px 10px;
}

.lh-header__actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.lh-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--lh-ink);
	cursor: pointer;
}

.lh-iconbtn:hover {
	background: var(--lh-soft);
	color: var(--lh-blue);
}

.lh-menu-toggle {
	display: none;
}

.lh-menu-toggle .lh-icon--close,
.lh-menu-toggle[aria-expanded="true"] .lh-icon--menu {
	display: none;
}

.lh-menu-toggle[aria-expanded="true"] .lh-icon--close {
	display: inline-block;
}

.lh-search {
	border-top: 1px solid var(--lh-line);
	padding: 18px 0;
	background: #fff;
}

.lh-searchform {
	display: flex;
	max-width: 640px;
	margin-inline: auto;
	border: 2px solid var(--lh-line);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s;
}

.lh-searchform:focus-within {
	border-color: var(--lh-blue);
}

.lh-searchform__field {
	flex: 1;
	min-width: 0;
	padding: 12px 20px;
	border: 0;
	font: inherit;
	color: var(--lh-ink);
	background: transparent;
}

.lh-searchform__field:focus {
	outline: none;
}

.lh-searchform__btn {
	flex: none;
	width: 54px;
	border: 0;
	background: var(--lh-blue);
	color: #fff;
	cursor: pointer;
}

.lh-searchform__btn:hover {
	background: var(--lh-blue-dark);
}

/* Elementos comunes */

.lh-main {
	display: block;
	min-height: 60vh;
}

.lh-cat {
	display: inline-block;
	padding: 3px 10px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.6;
	color: #9a4f00;
	background: var(--lh-orange-soft);
	border-radius: 999px;
	text-decoration: none;
}

.lh-cat:hover {
	color: #fff;
	background: var(--lh-orange);
}

.lh-kicker {
	margin: 0 0 6px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lh-orange);
}

.lh-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 0.82rem;
	color: var(--lh-muted);
}

.lh-meta a {
	color: var(--lh-ink);
	font-weight: 600;
	text-decoration: none;
}

.lh-meta a:hover {
	color: var(--lh-blue);
}

.lh-avatar {
	border-radius: 50%;
	flex: none;
}

.lh-meta__sep {
	color: #b8bdc9;
}

.lh-button,
.lh-content .wp-block-button__link,
input[type="submit"] {
	display: inline-block;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--lh-blue);
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.lh-button:hover,
input[type="submit"]:hover {
	background: var(--lh-blue-dark);
	color: #fff;
}

/* Listado de artículos */

.lh-listing {
	padding-top: 40px;
	padding-bottom: 64px;
}

.lh-listing__header {
	padding-bottom: 28px;
	margin-bottom: 36px;
	border-bottom: 1px solid var(--lh-line);
}

.lh-listing__title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 800;
	margin: 0;
}

.lh-listing__desc {
	margin-top: 12px;
	max-width: 680px;
	color: var(--lh-muted);
}

.lh-listing__desc p {
	margin: 0;
}

.lh-listing__search {
	margin-top: 20px;
}

.lh-listing__search .lh-searchform {
	margin-inline: 0;
}

.lh-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-flow: row dense;
	column-gap: 32px;
}

.lh-cards > .code-block {
	width: 100%;
	padding: 20px 0;
	border-bottom: 1px solid var(--lh-line);
}

.lh-cards > * {
	grid-column: 1 / -1;
}

.lh-card {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 28px;
	align-items: start;
	padding: 28px 0;
	border-bottom: 1px solid var(--lh-line);
}

.lh-card:first-child {
	padding-top: 0;
}

.lh-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--lh-radius);
	background: var(--lh-soft);
}

.lh-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.lh-card:hover .lh-card__media img {
	transform: scale(1.04);
}

.lh-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 3rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, var(--lh-blue), var(--lh-blue-dark));
}

.lh-card__body {
	min-width: 0;
}

.lh-card__title {
	margin: 10px 0 8px;
	font-size: 1.32rem;
	line-height: 1.3;
}

.lh-card__title a {
	color: var(--lh-ink);
	text-decoration: none;
	background-image: linear-gradient(var(--lh-orange), var(--lh-orange));
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.25s;
}

.lh-card__title a:hover {
	background-size: 100% 2px;
}

.lh-card__excerpt {
	margin: 0 0 14px;
	font-size: 0.95rem;
	color: var(--lh-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lh-cards > .lh-card--featured {
	grid-column: auto;
	grid-template-columns: 1fr;
	align-content: start;
	gap: 18px;
	padding-top: 0;
	padding-bottom: 36px;
}

.lh-card--featured .lh-card__title {
	font-size: clamp(1.3rem, 2.4vw, 1.65rem);
	font-weight: 800;
	line-height: 1.22;
	margin-top: 12px;
}

.lh-card--featured .lh-card__excerpt {
	font-size: 1rem;
}

.lh-card--featured .lh-card__media {
	border-radius: 14px;
}

.lh-pagination {
	margin-top: 40px;
}

.lh-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.lh-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--lh-line);
	border-radius: 999px;
	font-weight: 600;
	color: var(--lh-ink);
	text-decoration: none;
}

.lh-pagination a.page-numbers:hover {
	border-color: var(--lh-blue);
	color: var(--lh-blue);
}

.lh-pagination .page-numbers.current {
	background: var(--lh-blue);
	border-color: var(--lh-blue);
	color: #fff;
}

.lh-pagination .page-numbers.dots {
	border-color: transparent;
}

.lh-empty {
	padding: 40px 0;
	text-align: center;
}

/* Artículo */

.lh-single {
	padding-top: 44px;
}

.lh-single__header {
	text-align: left;
}

.lh-single__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.lh-single__title {
	font-size: clamp(1.85rem, 4.6vw, 2.75rem);
	font-weight: 800;
	line-height: 1.16;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
}

.lh-single__lead {
	margin: 0 0 22px;
	font-size: 1.18rem;
	line-height: 1.55;
	color: var(--lh-muted);
}

.lh-byline {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid var(--lh-line);
	border-bottom: 1px solid var(--lh-line);
}

.lh-byline__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.lh-byline__author {
	font-size: 0.95rem;
	color: var(--lh-muted);
}

.lh-byline__author a {
	color: var(--lh-ink);
	font-weight: 700;
	text-decoration: none;
}

.lh-byline__author a:hover {
	color: var(--lh-blue);
}

.lh-byline__details {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	font-size: 0.82rem;
	color: var(--lh-muted);
}

.lh-byline__read,
.lh-byline__comments {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.lh-byline__comments {
	color: var(--lh-muted);
	text-decoration: none;
}

.lh-byline__comments:hover {
	color: var(--lh-blue);
}

.lh-byline .lh-icon {
	width: 15px;
	height: 15px;
}

.lh-single__media {
	max-width: 960px;
	margin: 32px auto 8px;
	padding-inline: 20px;
}

.lh-single__media img {
	display: block;
	width: 100%;
	max-height: 600px;
	object-fit: cover;
	border-radius: 14px;
}

.lh-single__media figcaption {
	margin-top: 8px;
	font-size: 0.82rem;
	color: var(--lh-muted);
	text-align: center;
}

/* Contenido del artículo */

.lh-content {
	padding-top: 28px;
	font-size: 1.12rem;
	line-height: 1.78;
	color: var(--lh-text);
	overflow-wrap: break-word;
}

.lh-content::after {
	content: "";
	display: table;
	clear: both;
}

.lh-content > * {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.lh-content [id] {
	scroll-margin-top: calc(var(--lh-header-h) + 24px);
}

.lh-content h2 {
	position: relative;
	margin-top: 2.1em;
	margin-bottom: 0.8em;
	padding-bottom: 0.45em;
	font-size: 1.62rem;
	border-bottom: 1px solid var(--lh-line);
}

.lh-content h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 56px;
	height: 3px;
	border-radius: 3px;
	background: var(--lh-orange);
}

.lh-content h3 {
	margin-top: 1.8em;
	margin-bottom: 0.6em;
	font-size: 1.3rem;
}

.lh-content h4 {
	margin-top: 1.6em;
	font-size: 1.1rem;
}

.lh-content strong {
	color: var(--lh-ink);
	font-weight: 700;
}

.lh-content ul,
.lh-content ol {
	padding-left: 1.4em;
}

.lh-content li {
	margin-bottom: 0.45em;
}

.lh-content li::marker {
	color: var(--lh-orange);
	font-weight: 700;
}

.lh-content blockquote,
.lh-content .wp-block-quote {
	margin-inline: 0;
	padding: 18px 24px;
	border-left: 4px solid var(--lh-blue);
	background: var(--lh-blue-soft);
	border-radius: 0 var(--lh-radius) var(--lh-radius) 0;
	font-size: 1.05rem;
	color: var(--lh-ink);
}

.lh-content blockquote p:last-child {
	margin-bottom: 0;
}

.lh-content blockquote cite {
	display: block;
	margin-top: 8px;
	font-size: 0.85rem;
	font-style: normal;
	color: var(--lh-muted);
}

.lh-content img {
	border-radius: 8px;
}

.lh-content figure {
	margin-inline: 0;
}

.lh-content figcaption,
.lh-content .wp-caption-text {
	margin-top: 8px;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--lh-muted);
	text-align: center;
}

.lh-content .wp-caption {
	max-width: 100%;
}

.lh-content .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.lh-content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.lh-content .aligncenter {
	display: block;
	margin-inline: auto;
}

.lh-content .alignwide {
	width: min(960px, calc(100vw - 40px));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.lh-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.lh-content hr {
	border: 0;
	height: 1px;
	background: var(--lh-line);
	margin: 2.5em 0;
}

.lh-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	display: block;
	overflow-x: auto;
}

.lh-content th,
.lh-content td {
	padding: 10px 12px;
	border: 1px solid var(--lh-line);
	text-align: left;
	vertical-align: top;
}

.lh-content th {
	background: var(--lh-soft);
	color: var(--lh-ink);
}

.lh-content code,
.lh-content kbd,
.lh-content samp {
	font-family: var(--lh-mono);
	font-size: 0.88em;
}

.lh-content :not(pre) > code,
.lh-content kbd {
	padding: 0.12em 0.4em;
	border-radius: 5px;
	background: #eef0f5;
	color: #b4235a;
}

.lh-content kbd {
	color: var(--lh-ink);
	border: 1px solid #d5d9e2;
	border-bottom-width: 2px;
}

.lh-content pre {
	margin: 0 0 1.5em;
	padding: 20px 22px;
	overflow-x: auto;
	border-radius: var(--lh-radius);
	background: var(--lh-code-bg);
	color: var(--lh-code-text);
	font-family: var(--lh-mono);
	font-size: 0.9rem;
	line-height: 1.65;
	tab-size: 4;
	white-space: pre;
}

.lh-content pre code {
	background: none;
	color: inherit;
	padding: 0;
	font-size: inherit;
}

.lh-code {
	position: relative;
	margin-bottom: 1.5em;
}

.lh-code pre {
	margin-bottom: 0;
	padding-top: 34px;
}

.lh-code__copy {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 3px 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
	color: #c9cfdb;
	font: 600 0.72rem var(--lh-font);
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.15s, background 0.15s;
}

.lh-code:hover .lh-code__copy,
.lh-code__copy:focus-visible {
	opacity: 1;
}

.lh-code__copy.is-done {
	background: #1f8a4c;
	border-color: #1f8a4c;
	color: #fff;
}

.lh-content iframe {
	display: block;
	margin-inline: auto;
}

.lh-content .code-block {
	text-align: center;
}

/* Índice del artículo */

.lh-toc {
	margin: 0 0 2em;
	padding: 0;
	border: 1px solid var(--lh-line);
	border-radius: var(--lh-radius);
	background: var(--lh-soft);
	font-size: 0.95rem;
	line-height: 1.5;
}

.lh-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	font-weight: 700;
	color: var(--lh-ink);
	cursor: pointer;
	list-style: none;
}

.lh-toc summary::-webkit-details-marker {
	display: none;
}

.lh-toc summary::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--lh-muted);
	border-bottom: 2px solid var(--lh-muted);
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.lh-toc[open] summary::after {
	transform: rotate(-135deg);
}

.lh-toc ol {
	margin: 0;
	padding: 0 20px 16px;
	list-style: none;
}

.lh-toc ol ol {
	margin-top: 6px;
	padding: 0 0 0 14px;
	border-left: 2px solid var(--lh-line);
}

.lh-toc li {
	margin: 0 0 6px;
}

.lh-toc a {
	color: var(--lh-text);
	text-decoration: none;
}

.lh-toc a:hover {
	color: var(--lh-blue);
	text-decoration: underline;
}

/* Pie del artículo */

.lh-single__footer {
	padding-top: 12px;
	padding-bottom: 20px;
}

.lh-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.lh-tags a {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--lh-line);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--lh-muted);
	text-decoration: none;
}

.lh-tags a:hover {
	border-color: var(--lh-blue);
	color: var(--lh-blue);
}

.lh-widgetarea--post {
	margin-bottom: 32px;
	text-align: center;
}

.lh-widgetarea--listing {
	margin-bottom: 32px;
}

.lh-widgetarea .widget + .widget {
	margin-top: 24px;
}

.lh-widgetarea .widget-title {
	font-size: 1rem;
}

.lh-author {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	margin-bottom: 24px;
	padding: 26px;
	border-radius: 14px;
	background: var(--lh-soft);
}

.lh-author__avatar {
	flex: none;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 4px 14px rgba(20, 30, 60, 0.1);
}

.lh-author__body {
	min-width: 0;
}

.lh-author__kicker {
	margin: 0 0 2px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lh-orange);
}

.lh-author__name {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.lh-author__name a {
	color: var(--lh-ink);
	text-decoration: none;
}

.lh-author__bio {
	margin: 0 0 10px;
	font-size: 0.95rem;
	color: var(--lh-text);
}

.lh-author__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
}

.lh-follow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 36px;
	padding: 20px 26px;
	border: 1px solid var(--lh-line);
	border-radius: 14px;
}

.lh-follow__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.92rem;
	color: var(--lh-muted);
}

.lh-follow__text strong {
	font-size: 1rem;
	color: var(--lh-ink);
}

.lh-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lh-social__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--lh-ink);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}

.lh-social__link .lh-icon {
	width: 16px;
	height: 16px;
}

.lh-social__link:hover {
	color: #fff;
	background: var(--lh-blue);
}

.lh-social__link--rss {
	background: var(--lh-orange);
}

.lh-social__link--rss:hover {
	background: #d16f00;
}

.lh-postnav .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.lh-postnav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--lh-line);
	border-radius: var(--lh-radius);
	text-decoration: none;
	transition: border-color 0.15s;
}

.lh-postnav a:hover {
	border-color: var(--lh-blue);
}

.lh-postnav .nav-next {
	grid-column: 2;
	text-align: right;
}

.lh-postnav .nav-next .lh-postnav__label {
	justify-content: flex-end;
}

.lh-postnav__label {
	display: flex;
	align-items: center;
	gap: 2px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lh-muted);
}

.lh-postnav__label .lh-icon {
	width: 16px;
	height: 16px;
}

.lh-postnav__title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--lh-ink);
}

/* Relacionados */

.lh-related {
	margin-top: 40px;
	padding: 48px 0 56px;
	background: var(--lh-soft);
}

.lh-related__title {
	margin: 0 0 24px;
	font-size: 1.45rem;
	font-weight: 800;
}

.lh-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.lh-mini__media {
	display: block;
	aspect-ratio: 16 / 9;
	margin-bottom: 14px;
	overflow: hidden;
	border-radius: var(--lh-radius);
	background: #e3e6ee;
}

.lh-mini__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.lh-mini:hover .lh-mini__media img {
	transform: scale(1.04);
}

.lh-mini__title {
	margin: 10px 0 6px;
	font-size: 1.05rem;
	line-height: 1.35;
}

.lh-mini__title a {
	color: var(--lh-ink);
	text-decoration: none;
}

.lh-mini__title a:hover {
	color: var(--lh-blue);
}

.lh-mini__meta {
	margin: 0;
	font-size: 0.8rem;
	color: var(--lh-muted);
}

/* Comentarios */

.lh-comments-wrap {
	padding-top: 48px;
	padding-bottom: 56px;
}

.lh-comments__title {
	font-size: 1.4rem;
	font-weight: 800;
}

.lh-comments__list,
.lh-comments__list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lh-comments__list .children {
	padding-left: 28px;
	border-left: 2px solid var(--lh-line);
}

.lh-comments__list .comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--lh-line);
}

.lh-comments__list .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--lh-ink);
}

.lh-comments__list .comment-author .avatar {
	border-radius: 50%;
}

.lh-comments__list .says {
	display: none;
}

.lh-comments__list .comment-metadata {
	margin: 4px 0 8px 58px;
	font-size: 0.8rem;
}

.lh-comments__list .comment-metadata a {
	color: var(--lh-muted);
	text-decoration: none;
}

.lh-comments__list .comment-content {
	margin-left: 58px;
	font-size: 0.98rem;
}

.lh-comments__list .reply {
	margin-left: 58px;
	font-size: 0.85rem;
	font-weight: 600;
}

.comment-form {
	display: grid;
	gap: 14px;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--lh-ink);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cfd4de;
	border-radius: 8px;
	font: inherit;
	color: var(--lh-ink);
	background: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--lh-blue);
	box-shadow: 0 0 0 3px var(--lh-blue-soft);
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.85rem;
}

.comment-form .comment-form-cookies-consent label {
	font-weight: 400;
}

/* Pie */

.lh-footer {
	margin-top: 0;
	padding: 48px 0 28px;
	background: #10141f;
	color: #aab1c2;
	font-size: 0.92rem;
}

.lh-is-post .lh-footer,
.single .lh-footer {
	margin-top: 0;
}

.lh-footer a {
	color: #dfe3ec;
	text-decoration: none;
}

.lh-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.lh-footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lh-footer__about {
	max-width: 460px;
}

.lh-footer__name {
	font-size: 1.3rem;
	font-weight: 800;
	color: #fff;
}

.lh-footer__about p {
	margin: 8px 0 0;
}

.lh-footer__follow {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lh-footer__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7d859a;
}

.lh-footer .lh-social__link {
	background: rgba(255, 255, 255, 0.08);
}

.lh-footer .lh-social__link:hover {
	background: var(--lh-blue);
	text-decoration: none;
}

.lh-footer .lh-social__link--rss {
	background: var(--lh-orange);
}

.lh-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	padding: 32px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lh-footer .widget-title {
	margin-bottom: 12px;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
}

.lh-footer .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lh-footer .widget li {
	margin-bottom: 6px;
}

.lh-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	padding-top: 22px;
	font-size: 0.82rem;
}

.lh-footer__bottom p {
	margin: 0;
}

.lh-footer__menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lh-totop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--lh-ink);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.lh-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.lh-totop:hover {
	background: var(--lh-blue);
	color: #fff;
}

/* Responsive */

@media (max-width: 960px) {
	.lh-menu-toggle {
		display: inline-flex;
	}

	.lh-nav {
		position: fixed;
		inset: var(--lh-header-h) 0 0;
		z-index: 99;
		margin: 0;
		padding: 16px 20px 40px;
		overflow-y: auto;
		background: #fff;
		border-top: 1px solid var(--lh-line);
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.15s, visibility 0.15s;
	}

	.admin-bar .lh-nav {
		top: calc(var(--lh-header-h) + 46px);
	}

	.lh-menu-open .lh-nav {
		visibility: visible;
		opacity: 1;
	}

	.lh-menu-open {
		overflow: hidden;
	}

	.lh-header__actions {
		margin-left: auto;
	}

	.lh-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.lh-menu > li {
		flex-wrap: wrap;
		border-bottom: 1px solid var(--lh-line);
	}

	.lh-menu > li > a {
		flex: 1;
		padding: 14px 4px;
		font-size: 1.05rem;
	}

	.lh-menu a:hover {
		background: transparent;
	}

	.lh-submenu-toggle {
		width: 44px;
		height: 44px;
		margin: 0;
	}

	.lh-menu .sub-menu {
		position: static;
		flex-basis: 100%;
		display: none;
		min-width: 0;
		margin: 0 0 10px;
		padding: 0 0 0 12px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.lh-menu li.is-open > .sub-menu {
		display: block;
	}
}

@media (max-width: 782px) {
	.admin-bar .lh-header,
	.admin-bar .lh-progress {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .lh-header {
		top: 0;
	}

	.admin-bar .lh-progress {
		top: 0;
	}
}

@media (max-width: 700px) {
	body {
		font-size: 16px;
	}

	.lh-brand img {
		height: 26px;
	}

	.lh-cards {
		grid-template-columns: 1fr;
	}

	.lh-cards > .lh-card--featured {
		grid-column: 1 / -1;
	}

	.lh-card,
	.lh-cards > .lh-card--featured {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 24px 0;
	}

	.lh-cards > .lh-card:first-child {
		padding-top: 0;
	}

	.lh-card__title {
		font-size: 1.2rem;
	}

	.lh-content {
		font-size: 1.04rem;
		line-height: 1.72;
	}

	.lh-content h2 {
		font-size: 1.4rem;
	}

	.lh-content h3 {
		font-size: 1.18rem;
	}

	.lh-content pre {
		margin-inline: -20px;
		border-radius: 0;
	}

	.lh-code {
		margin-inline: -20px;
	}

	.lh-code pre {
		margin-inline: 0;
	}

	.lh-single {
		padding-top: 28px;
	}

	.lh-single__media {
		padding-inline: 0;
		margin-top: 24px;
	}

	.lh-single__media img {
		border-radius: 0;
	}

	.lh-author {
		flex-direction: column;
		gap: 14px;
		padding: 22px;
	}

	.lh-author__avatar {
		width: 72px;
		height: 72px;
	}

	.lh-related__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.lh-postnav .nav-links {
		grid-template-columns: 1fr;
	}

	.lh-postnav .nav-next {
		grid-column: auto;
	}

	.lh-footer__top {
		flex-direction: column;
	}
}

@media (min-width: 701px) and (max-width: 900px) {
	.lh-card {
		grid-template-columns: 240px 1fr;
		gap: 22px;
	}

	.lh-related__grid {
		gap: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms;
		animation-duration: 0.01ms;
	}
}
