/*
Theme Name: efiQuality
Theme URI: https://efiquality.com/
Author: SOLVETHEX
Description: Tema del blog de efiQuality. Sustituye la maquetación de Elementor (cabecera, pie, archivo y ficha de artículo) por plantillas propias.
Version: 1.0.12
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: efiquality
*/

:root {
	--green: #58c469;
	--green-dark: #3dac4e;
	--blue: #3faceb;
	--ink: #353535;
	--navy: #191627;
	--muted: #777777;
	--meta: #adadad;
	--line: #d6d6d6;
	--soft: #999999;
	--shadow: 0 0 10px rgba(0, 0, 0, 0.15);
	--header-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
	--content: 1140px;
	--font: "Montserrat", sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	background: #fff;
	font-family: var(--font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--blue);
	text-decoration: none;
}

button,
input {
	font-family: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 10000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 8px 12px;
	background: #fff;
	color: var(--navy);
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: var(--header-shadow);
}

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

.header-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	max-width: var(--content);
	margin: 0 auto;
	padding: 16px 24px;
}

.logo {
	width: 300px;
}

.logo img {
	display: block;
	width: auto;
	height: 32px;
	place-self: center;
}

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu > li {
	position: relative;
}

.primary-nav .menu > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 13px 15px;
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

.primary-nav .menu > li > a:hover,
.primary-nav .menu > li:focus-within > a {
	color: var(--blue);
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .menu > li.is-current > a,
.primary-nav .menu > li.is-current > a:hover,
.primary-nav .menu > li.is-current:focus-within > a,
.primary-nav .sub-menu .is-current > a,
.primary-nav .sub-menu .is-current > a:hover {
	color: var(--green);
}

.primary-nav .menu-item-has-children > a::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}

.primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 260px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.primary-nav .sub-menu a {
	display: block;
	padding: 12px 16px;
	color: var(--navy);
	font-size: 16px;
	font-weight: 400;
	border-bottom: 1px solid #e6e6e6;
}

.primary-nav .sub-menu .menu-primary > a,
.primary-nav .sub-menu .menu-primary-bot > a {
	font-weight: 700;
}

.primary-nav .sub-menu .sub-menu-primary > a {
	padding-left: 2rem;
}

.primary-nav .sub-menu .menu-item-191 {
	border-top: 3px solid;
	border-image: linear-gradient(90deg, #58c469 0, #3faceb 100%) 1;
}

.primary-nav .sub-menu a:hover {
	color: var(--blue);
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.header-mail {
	display: flex;
	color: var(--blue);
}

.header-phone {
	color: var(--green);
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
}

.header-phone:hover {
	color: var(--green-dark);
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 40px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: #f3f3f3;
	cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: #4a4a4a;
	border-radius: 1px;
	transition: transform 0.2s ease, background 0.2s ease;
}

.menu-toggle-bars {
	position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
}

.menu-toggle-bars::before {
	transform: translateY(-6px);
}

.menu-toggle-bars::after {
	transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
	transform: rotate(-45deg);
}

/* Heroes */

.page-hero {
	position: relative;
}

.page-hero img {
	display: block;
	width: 100%;
	height: 300px;
	object-fit: cover;
}

.page-hero h1,
.single-hero h1 {
	margin: 0;
	color: #fff;
	font-weight: 700;
	text-align: center;
	text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

.page-hero h1 {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 80px;
	line-height: 1;
}

.page-hero .hero-sub {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 28px;
	margin: 0;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.single-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	padding: 40px 24px;
	background-color: #0a0a0a;
	background-position: center;
	background-size: cover;
}

.single-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.single-hero h1 {
	position: relative;
	z-index: 1;
	max-width: 900px;
	font-size: 2rem;
	line-height: 50px;
	text-transform: uppercase;
}

/* Layout */

.wrap {
	width: min(var(--content), calc(100% - 40px));
	margin: 30px auto;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 40px;
	align-items: start;
}

.layout > main,
.entry-content {
	min-width: 0;
	max-width: 100%;
}

.crumbs {
	margin: 32px auto;
	color: var(--ink);
	font-size: 15px;
}

.crumbs a {
	color: var(--blue);
}

.crumbs a:hover {
	color: var(--green);
}

/* Cards */

.posts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 35px 30px;
}

.posts-related {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 10px;
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: 3px;
	box-shadow: var(--shadow);
	transition: all .25s;
}

.card:hover {
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, .15);
}

.card-media {
	position: relative;
	display: block;
	aspect-ratio: 100 / 66;
	overflow: hidden;
	background: #eee;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--green);
	color: #fff;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.card-body {
	padding: 20px 30px 16px;
}

.card-body h3,
.card-body h4 {
	margin: 0 0 12px;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.2;
}

.card-body h3 a,
.card-body h4 a {
	color: var(--ink);
}

.card-body h3 a:hover,
.card-body h4 a:hover {
	color: var(--blue);
}

.card-excerpt {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

.card-more {
	color: var(--green);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.card-more:hover {
	color: var(--green-dark);
}

.card-meta {
	margin-top: auto;
	padding: 15px 30px;
	border-top: 1px solid #eaeaea;
	color: var(--meta);
	font-size: 12px;
}

/* Pagination */

.pagination {
	margin-top: 36px;
}

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

.pagination .page-numbers {
	color: #333;
	font-size: 16px;
}

.pagination .page-numbers.current {
	color: var(--green);
	font-weight: 700;
}

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

.empty {
	margin: 40px 0;
	color: var(--muted);
}

/* Sidebar */

.sidebar {
	position: sticky;
	top: 100px;
	align-self: start;
}

body.admin-bar .sidebar {
	top: 132px;
}

.sidebar-box {
	padding: 22px 20px 26px;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.39);
}

.search-form {
	position: relative;
	margin-bottom: 18px;
}

.search-form svg {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	color: var(--soft);
}

.search-form input[type="search"] {
	width: 100%;
	height: 50px;
	padding: 0 16px 0 42px;
	border: 1px solid #e3e3e3;
	border-radius: 3px;
	color: var(--ink);
	font-size: 15px;
}

.search-form input[type="search"]:focus {
	outline: 2px solid rgba(63, 172, 235, 0.35);
	border-color: var(--blue);
}

.widget-title {
	margin: 8px 0 16px;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	background: linear-gradient(90deg, #58c469 0, #3faceb 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.cat-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-list li {
	margin: 0 0 8px;
}

.cat-list a {
	color: var(--soft);
	font-size: 16px;
}

.cat-list a:hover {
	color: var(--green-dark);
}

.side-divider {
	height: 1px;
	margin: 16px 0;
	border: 0;
	background: var(--line);
}

.btn-contact {
	display: block;
	padding: 15px 20px;
	border-radius: 3px;
	background: var(--green);
	color: #fff;
	font-size: 15px;
	text-align: center;
	transition: all .3s;
}

.btn-contact:hover {
	background: var(--blue);
	color: #fff;
}

/* Single */

.toc {
	margin: 0 0 28px;
}

.toc-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0 0 1rem;
	border: 0;
	background: transparent;
	color: var(--blue);
	font-family: var(--font);
	font-size: 24px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	border-bottom: 1px solid #9da5ae;
	margin-bottom: 1.5rem;
}

.toc-toggle span {
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--blue);
	border-bottom: 2px solid var(--blue);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.toc.is-collapsed .toc-toggle span {
	transform: rotate(-45deg);
}

.toc-list,
.toc-list ol {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--green);
}

.toc-list {
	counter-reset: toc-section;
}

.toc-list > li {
	counter-increment: toc-section;
	counter-reset: toc-sub;
}

.toc-list > li::before {
	content: counter(toc-section) ". ";
}

.toc-list ol {
	padding-left: 1.4em;
}

.toc-list ol > li {
	counter-increment: toc-sub;
}

.toc-list ol > li::before {
	content: counter(toc-section) "." counter(toc-sub) " ";
}

.toc-list a {
	color: var(--green);
}

.toc-list a:hover {
	color: var(--green-dark);
}

.toc.is-collapsed .toc-list,
.toc.is-collapsed .toc-empty {
	display: none;
}

.toc-empty {
	margin: 0;
	color: var(--ink);
	font-size: 16px;
}

.entry-content {
	color: var(--ink);
	font-size: 16px;
	line-height: 1.75;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table,
.entry-content blockquote {
	margin: 0 0 1.1em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1.6em 0 0.6em;
	font-weight: 700;
	line-height: 1.3;
	background: linear-gradient(90deg, #58c469 0, #3faceb 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.entry-content h2 {
	font-size: 28px;
}

.entry-content h3 {
	font-size: 23px;
}

.entry-content h4 {
	font-size: 20px;
}

.entry-content a {
	color: var(--ink);
	text-decoration: underline;
}

.entry-content a:hover {
	color: var(--green);
	text-decoration: none;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.2em;
}

.entry-content li {
	margin: 0.35em 0;
}

.entry-content img {
	height: auto;
	border-radius: 3px;
}

.table-scroll {
	max-width: 100%;
	margin: 0 0 1.1em;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.table-scroll table {
	margin-bottom: 0;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid #e5e5e5;
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: #f7f8f8;
}

.entry-content iframe,
.entry-content video {
	max-width: 100%;
}

.share {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 28px;
}

.share-label {
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.share-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.share-list a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 4px;
	color: #fff;
}

.share-list a:hover {
	filter: brightness(1.08);
}

.share-list svg {
	width: 1.2em;
	height: 1.2em;
	fill: currentColor;
}

.share-facebook { background: #3b5998; }
.share-linkedin { background: #0077b5; }
.share-x { background: #000; }
.share-whatsapp { background: #25d366; }
.share-email { background: #ea4335; }
.share-threads { background: #000; }

.section-divider {
	height: 1px;
	margin: 28px 0;
	border: 0;
	background: var(--line);
}

.author-box {
	display: flex;
	align-items: center;
	gap: 16px;
}

.author-box img {
	width: 50px;
	height: 50px;
	border: 1px solid #b1b0b0;
	border-radius: 99px;
	box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.27);
	object-fit: cover;
}

.author-box h2 {
	margin: 0;
	color: var(--ink);
	font-size: 18px;
	font-weight: 600;
}

.author-box p {
	margin: 2px 0 0;
	color: var(--ink);
	font-size: 16px;
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 28px;
}

.post-nav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--ink);
}

.post-nav-next {
	text-align: right;
}

.post-nav-label {
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
}

.post-nav-title {
	color: var(--soft);
	font-size: 12px;
}

.post-nav a:hover .post-nav-label,
.post-nav a:hover .post-nav-title {
	color: var(--green);
}

.related {
	margin-top: 10px;
}

.page-content {
	width: min(760px, calc(100% - 40px));
	margin: 48px auto 72px;
}

.page-content h1 {
	margin-top: 0;
	font-size: 36px;
}

/* Footer */

.site-footer {
	margin-top: 20px;
	background: var(--navy);
	color: #fff;
}

.footer-logo {
	width: min(var(--content), calc(100% - 40px));
	margin: 0 auto;
	padding: 30px 0 0;
}

.footer-logo img {
	display: block;
	width: 170px;
	height: auto;
	place-self: center;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
	width: min(var(--content), calc(100% - 40px));
	margin: 0 auto;
	padding: 24px 0 40px;
}

.site-footer h2 {
	margin: 0 0 14px;
	color: var(--green);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

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

.site-footer li + li {
	margin-top: 10px;
}

.site-footer a {
	color: #fff;
}

.site-footer .footer-grid a:hover {
	color: var(--blue);
}

.social {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
}

.social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	border-radius: 10%;
	background: #fff;
	color: #000;
	transition: background-color 0.3s;
}

.site-footer .social a:hover {
	color: #000;
	background-color: #e4e4e4;
}

.social svg {
	width: 25px;
	height: 25px;
	fill: currentColor;
}

.konector {
	display: block;
	width: 70%;
	max-width: 180px;
	height: auto;
}

.footer-bar {
	background: var(--blue);
	color: #000;
	text-align: center;
	padding: 10px 16px;
}

.footer-bar p {
	margin: 0;
	font-size: 15px;
	line-height: 30px;
}

.footer-bar a {
	color: #000;
}

.footer-bar a:hover {
	text-decoration: underline;
}

.powered-by {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
}

.powered-by a {
	display: inline-flex;
	line-height: 0;
}

.powered-by svg {
	display: block;
}

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

	.header-tools {
		display: none;
	}

	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: 0;
		margin: 0;
		overflow: hidden;
		visibility: hidden;
		background: #fff;
		box-shadow: var(--header-shadow);
		transition: max-height 0.3s ease, visibility 0.3s ease;
	}

	.primary-nav.is-open {
		max-height: calc(100vh - 70px);
		overflow-y: auto;
		visibility: visible;
		transition: max-height 0.3s ease, visibility 0s;
	}

	.primary-nav .menu {
		flex-direction: column;
		align-items: stretch;
	}

	.primary-nav .menu > li > a {
		border-bottom: 1px solid #eee;
	}

	.primary-nav .sub-menu {
		display: none;
		position: static;
		min-width: 0;
		box-shadow: none;
		background: #fafafa;
	}

	.primary-nav .menu-item-has-children.is-open > .sub-menu {
		display: block;
	}

	.primary-nav .menu-item-has-children:hover > .sub-menu {
		display: none;
	}

	.primary-nav .menu-item-has-children.is-open > .sub-menu,
	.primary-nav .menu-item-has-children.is-open:hover > .sub-menu {
		display: block;
	}

	.layout {
		grid-template-columns: 1fr;
	}

	.posts-related {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.header-inner {
		padding: 12px 16px;
	}

	.logo img {
		height: 40px;
	}

	.page-hero img,
	.single-hero {
		height: 150px;
		min-height: 200px;
	}

	.page-hero img {
		height: 150px;
	}

	.page-hero h1 {
		font-size: 52px;
	}

	.single-hero {
		min-height: 200px;
		height: auto;
	}

	.single-hero h1 {
		font-size: 26px;
		line-height: 1.5;
	}

	.wrap {
		width: min(100% - 32px, var(--content));
	}

	.posts,
	.posts-related,
	.footer-grid,
	.post-nav {
		grid-template-columns: 1fr;
	}

	.post-nav-next {
		text-align: left;
	}

	.sidebar {
		display: none;
	}

	.card-body {
		padding: 18px 20px 14px;
	}

	.card-meta {
		padding: 14px 20px;
	}

	.share {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.footer-bar p {
		line-height: 1.5;
		padding: 10px 16px;
	}
}
