/*====================================================================================
= Variables generales ================================================================
====================================================================================*/
:root {
	color-scheme: light dark;
	--eb-bg: #fff;
	--eb-bg-soft: #f7f7f7;
	--eb-text: #27384d;
	--eb-heading: #172b43;
	--eb-link: #006fd6;
	--eb-link-hover: #004f9e;
	--eb-border: #888;
	--eb-header-bg: #fff;
	--eb-footer-bg: #fff;
	--eb-input-bg: #fff;
	--eb-input-text: #172b43;
	--eb-button-bg: #006fd6;
	--eb-button-text: #fff;
	--eb-focus: #005fcc;
	--eb-width: 1200px;
	--eb-sidebar-width: 300px;
	--eb-gap: 40px;
	--eb-logo-max-width: 452px;
	--eb-logo-max-height: 45px;
	--eb-font: Arial, Helvetica, sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--eb-bg: #111417;
		--eb-bg-soft: #191d21;
		--eb-text: #e2e6ea;
		--eb-heading: #f2f4f6;
		--eb-link: #65b5ff;
		--eb-link-hover: #9dd0ff;
		--eb-border: #687078;
		--eb-header-bg: #111417;
		--eb-footer-bg: #111417;
		--eb-input-bg: #20252a;
		--eb-input-text: #f2f4f6;
		--eb-button-bg: #1689e6;
		--eb-button-text: #fff;
		--eb-focus: #8bc9ff;
	}
}

/*====================================================================================
= Base ==============================================================================
====================================================================================*/
* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--eb-bg);
	color: var(--eb-text);
	font-family: var(--eb-font);
	font-size: 16px;
	line-height: 1.6;
}

a {
	color: var(--eb-link);
	text-decoration: none;
}

a:hover {
	color: var(--eb-link-hover);
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid var(--eb-focus);
	outline-offset: 3px;
}

img {
	max-width: 100%;
	height: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.eb-skip-link {
	position: absolute;
	top: -100px;
	left: 10px;
	z-index: 100000;
	padding: 8px 14px;
	background: var(--eb-bg);
	color: var(--eb-text);
}

.eb-skip-link:focus {
	top: 10px;
}

/*====================================================================================
= Cabecera ==========================================================================
====================================================================================*/
.eb-header {
	background: var(--eb-header-bg);
	border-bottom: 1px solid var(--eb-border);
}

.eb-header-inner {
	width: min(calc(100% - 40px), var(--eb-width));
	min-height: 90px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.eb-branding {
	flex: 0 1 auto;
}

.eb-branding .custom-logo-link {
	display: block;
	line-height: 0;
}

.eb-branding .custom-logo {
	display: block;
	width: auto;
	max-width: var(--eb-logo-max-width);
	max-height: var(--eb-logo-max-height);
}

.eb-site-title {
	color: var(--eb-heading);
	font-size: 28px;
	font-weight: 700;
}

.eb-navigation {
	margin-left: auto;
}

.eb-menu {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eb-menu a {
	font-size: 16px;
	font-weight: 600;
}

.eb-menu-toggle,
.eb-menu-button {
	display: none;
}

/*====================================================================================
= Estructura principal ===============================================================
====================================================================================*/
.eb-site-content {
	width: min(calc(100% - 40px), var(--eb-width));
	margin: 0 auto;
}

.eb-content-area {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--eb-sidebar-width);
	gap: var(--eb-gap);
	align-items: start;
	padding: 30px 0 45px;
}

.eb-main {
	min-width: 0;
}

.eb-post-title {
	line-height: 1.25;
}

/*====================================================================================
= Sidebar ===========================================================================
====================================================================================*/
.eb-sidebar {
	min-width: 0;
	position: sticky;
	top: 20px;
}

.eb-sidebar section,
.eb-sidebar .widget {
	margin-bottom: 30px;
}

.eb-widget-title {
	margin: 0 0 18px;
	color: var(--eb-text);
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
}

.eb-sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.eb-sidebar li {
	margin-bottom: 10px;
	line-height: 1.45;
}

.eb-sidebar hr {
	border: 0;
	border-top: 2px solid var(--eb-border);
	margin: 25px 0;
}

/*====================================================================================
= Buscador ==========================================================================
====================================================================================*/
.eb-google-search {
	display: flex;
	width: 100%;
}

.eb-google-search input[type="search"] {
	min-width: 0;
	flex: 1;
	height: 42px;
	padding: 8px 10px;
	border: 1px solid var(--eb-border);
	border-right: 0;
	border-radius: 4px 0 0 4px;
	background: var(--eb-input-bg);
	color: var(--eb-input-text);
	font: inherit;
}

.eb-google-search button {
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--eb-button-bg);
	border-radius: 0 4px 4px 0;
	background: var(--eb-button-bg);
	color: var(--eb-button-text);
	font: inherit;
	cursor: pointer;
}

.eb-google-search button:hover {
	filter: brightness(.9);
}

/*====================================================================================
= Footer ============================================================================
====================================================================================*/
.eb-footer {
	background: var(--eb-footer-bg);
	border-top: 1px solid var(--eb-border);
}

.eb-footer-inner {
	width: min(calc(100% - 40px), var(--eb-width));
	min-height: 90px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.eb-footer-copyright {
	white-space: nowrap;
}

.eb-footer-menu {
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/*====================================================================================
= Mobile ============================================================================
====================================================================================*/
@media (max-width: 767px) {
	.eb-header-inner,
	.eb-site-content,
	.eb-footer-inner {
		width: min(calc(100% - 30px), var(--eb-width));
	}

	.eb-header-inner {
		min-height: 75px;
		position: relative;
		gap: 15px;
	}

	.eb-branding {
		min-width: 0;
	}

	.eb-branding .custom-logo {
		max-width: 100%;
		max-height: var(--eb-logo-max-height);
	}

	.eb-navigation {
		flex: 0 0 auto;
	}

	.eb-menu-button {
		width: 42px;
		height: 42px;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}

	.eb-menu-icon,
	.eb-menu-icon::before,
	.eb-menu-icon::after {
		width: 26px;
		height: 2px;
		display: block;
		position: relative;
		background: var(--eb-text);
	}

	.eb-menu-icon::before,
	.eb-menu-icon::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.eb-menu-icon::before {
		top: -8px;
	}

	.eb-menu-icon::after {
		top: 8px;
	}

	.eb-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 1000;
		width: 100%;
		padding: 10px 0;
		background: var(--eb-bg);
		border: 1px solid var(--eb-border);
		box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
	}

	.eb-menu-toggle:checked ~ .eb-menu {
		display: block;
	}

	.eb-menu li {
		margin: 0;
	}

	.eb-menu a {
		display: block;
		padding: 10px 18px;
	}

	.eb-content-area {
		display: block;
		padding: 25px 0 35px;
	}

	.eb-sidebar {
		position: static;
		margin-top: 40px;
	}

	.eb-footer-inner {
		min-height: 0;
		padding: 55px 0;
		flex-direction: column;
		justify-content: flex-start;
		gap: 30px;
		text-align: center;
	}

	.eb-footer-copyright {
		white-space: normal;
	}

	.eb-footer-menu {
		flex-direction: column;
		gap: 22px;
	}

	.eb-footer-menu a {
		font-size: 18px;
	}
}