/*
Theme Name: Orbital AUX Child
Theme URI: https://auxlimpieza.com/
Description: Capa visual para AUX. Hereda íntegramente la estructura, funciones y optimizaciones SEO del tema Orbital.
Author: AUX
Template: orbital
Version: 1.0.0
Text Domain: orbital-aux-child
*/

/* ================================================================
   AUX visual system
   This stylesheet intentionally changes presentation only.
   ================================================================ */

:root {
	--aux-primary: #173ea5;
	--aux-primary-dark: #0d2a78;
	--aux-accent: #45bfe5;
	--aux-ink: #17213a;
	--aux-muted: #667085;
	--aux-surface: #ffffff;
	--aux-background: #ffffff;
	--aux-soft: #eaf0ff;
	--aux-border: #dfe5f1;
	--aux-shadow-sm: 0 3px 12px rgba(24, 45, 90, 0.06);
	--aux-shadow-md: 0 8px 24px rgba(24, 45, 90, 0.09);
	--aux-radius-sm: 6px;
	--aux-radius: 10px;
	--aux-container: 1360px;
}

html {
	scroll-behavior: smooth;
}

body {
	color: var(--aux-ink);
	background: var(--aux-background);
	font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

body,
p,
input,
button,
select,
textarea {
	font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.site-navbar {
	color: var(--aux-ink);
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: -0.025em;
}

a {
	color: var(--aux-primary);
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a:hover {
	color: var(--aux-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(69, 191, 229, 0.48);
	outline-offset: 3px;
}

.container {
	width: 100%;
	max-width: var(--aux-container);
	padding-right: 24px;
	padding-left: 24px;
}

/* Orbital prints the Customizer container width after theme styles.
   These declarations keep that visual preference from constraining the
   redesigned layout, without changing the saved option or page markup. */
body .container {
	width: 100% !important;
	max-width: var(--aux-container) !important;
}

.home .entry-content,
.blog .entry-content {
	max-width: 100% !important;
	flex-basis: 100% !important;
}

/* Header and navigation ------------------------------------------ */

.site-header {
	min-height: 68px;
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid var(--aux-border);
	box-shadow: 0 2px 16px rgba(24, 45, 90, 0.04);
}

.site-header .container {
	min-height: 68px;
}

.site-logo {
	margin-right: 32px;
	padding: 10px 0;
}

.site-logo img {
	width: auto;
	max-width: 124px;
	max-height: 54px;
}

.site-navbar ul li a {
	padding: 29px 15px;
	color: var(--aux-ink);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.site-navbar {
	font-family: inherit;
}

.site-navbar ul li a:hover,
.site-navbar ul li.current-menu-item > a,
.site-navbar ul li.current-menu-ancestor > a {
	color: var(--aux-primary);
}

@media (min-width: 1040px) {
	.site-navbar > ul > li:last-child > a {
		margin: 13px 0 13px 12px;
		padding: 10px 18px;
		color: #ffffff;
		background: var(--aux-primary);
		border-radius: 8px;
		box-shadow: 0 8px 18px rgba(23, 62, 165, 0.2);
	}

	.site-navbar > ul > li:last-child > a:hover {
		color: #ffffff;
		background: var(--aux-primary-dark);
		box-shadow: 0 10px 24px rgba(23, 62, 165, 0.28);
		transform: translateY(-1px);
	}

	.site-navbar > ul > li:last-child.menu-item-has-children::after {
		border-color: #ffffff;
		top: 38px;
		right: 11px;
	}

	.site-navbar .sub-menu {
		padding: 8px;
		background: var(--aux-surface);
		border: 1px solid var(--aux-border);
		border-radius: 8px;
		box-shadow: var(--aux-shadow-md);
	}

	.site-navbar .sub-menu li,
	.site-navbar .sub-menu li a {
		border-radius: 8px;
	}

	.site-navbar .sub-menu li:hover {
		background: var(--aux-soft);
	}

	.site-navbar .sub-menu li a {
		padding: 12px 14px;
		color: var(--aux-ink);
	}
}

/* Main listing and archives -------------------------------------- */

.site-main {
	padding-bottom: 40px;
}

#content-wrapper {
	padding-top: 28px;
	padding-bottom: 28px;
	background: transparent;
}

.home #content-wrapper,
.blog #content-wrapper {
	padding-top: 26px;
}

.home .entry-content > .flex.flex-fluid,
.blog .entry-content > .flex.flex-fluid,
.archive .entry-content > .flex.flex-fluid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px;
	margin-right: 0;
	margin-left: 0;
}

/* The first three posts keep Orbital's exact query and links, but
   receive a more editorial visual hierarchy. */
.home .featured-item,
.blog .featured-item,
.archive .featured-item {
	grid-column: span 4;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	border-radius: var(--aux-radius);
	overflow: hidden;
	box-shadow: var(--aux-shadow-md);
}

.home .featured-item:first-child,
.blog .featured-item:first-child,
.archive .featured-item:first-child {
	grid-column: span 8;
	grid-row: span 2;
}

.featured-item .featured-wrapper {
	min-height: 210px;
	background: var(--aux-primary-dark);
}

.home .featured-item:first-child .featured-wrapper,
.blog .featured-item:first-child .featured-wrapper,
.archive .featured-item:first-child .featured-wrapper {
	min-height: 440px;
}

.featured-item a::after {
	background: linear-gradient(to bottom, rgba(6, 21, 57, 0.02) 12%, rgba(6, 21, 57, 0.86) 100%);
}

.featured-item a:hover::after {
	background: linear-gradient(to bottom, rgba(23, 62, 165, 0.06) 5%, rgba(13, 42, 120, 0.92) 100%);
}

.featured-item img {
	object-position: 50% 35%;
	transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-item:hover img {
	transform: scale(1.025);
}

.featured-item .entry-title {
	padding: 17px;
	font-size: clamp(17px, 1.65vw, 22px);
	line-height: 1.18;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.home .featured-item:first-child .entry-title,
.blog .featured-item:first-child .entry-title,
.archive .featured-item:first-child .entry-title {
	max-width: 92%;
	padding: 26px;
	font-size: clamp(27px, 2.8vw, 38px);
	line-height: 1.08;
}

/* Regular post cards. */
.home .entry-item,
.blog .entry-item,
.archive .entry-item {
	grid-column: span 3;
	position: relative;
	width: auto;
	max-width: none;
	padding: 0 0 15px;
	background: var(--aux-surface);
	border: 1px solid rgba(223, 229, 241, 0.8);
	border-radius: var(--aux-radius);
	overflow: hidden;
	box-shadow: none;
	transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease, border-color 320ms ease;
	will-change: transform;
}

.home .entry-item:hover,
.blog .entry-item:hover,
.archive .entry-item:hover {
	border-color: #cbd5e5;
	box-shadow: var(--aux-shadow-sm);
	transform: translateY(-3px);
}

.home .entry-item .entry-header,
.blog .entry-item .entry-header,
.archive .entry-item .entry-header {
	display: block;
}

.home .entry-item .entry-header > a,
.blog .entry-item .entry-header > a,
.archive .entry-item .entry-header > a {
	display: block;
}

.home .entry-item img,
.blog .entry-item img,
.archive .entry-item img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border: 0;
	object-fit: contain;
	object-position: center;
	background: #ffffff;
	transition: none;
}

.home .entry-item:hover img,
.blog .entry-item:hover img,
.archive .entry-item:hover img {
	transform: none;
}

.home .entry-item .entry-title,
.blog .entry-item .entry-title,
.archive .entry-item .entry-title {
	margin: 0;
	padding: 14px 14px 6px;
	font-size: 16px;
	line-height: 1.28;
	letter-spacing: -0.025em;
}

.home .entry-item .entry-category,
.blog .entry-item .entry-category {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	float: none;
	max-width: calc(100% - 20px);
}

.home .entry-item .entry-category p,
.blog .entry-item .entry-category p {
	margin: 0;
}

.home .entry-item .entry-category a,
.blog .entry-item .entry-category a {
	display: inline-block;
	padding: 5px 7px;
	color: var(--aux-primary-dark);
	background: rgba(255, 255, 255, 0.94);
	border-radius: 5px;
	box-shadow: 0 4px 12px rgba(13, 42, 120, 0.12);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.045em;
}

.home .entry-item .entry-date,
.blog .entry-item .entry-date,
.archive .entry-item .entry-date {
	padding: 10px 14px 0;
	float: none;
}

.home .entry-item .entry-date p,
.blog .entry-item .entry-date p,
.archive .entry-item .entry-date p {
	color: var(--aux-muted);
	font-size: 12px;
}

.home .entry-item .entry-meta,
.blog .entry-item .entry-meta,
.archive .entry-item .entry-meta {
	padding: 0 14px;
}

.home .entry-item .entry-excerpt p,
.blog .entry-item .entry-excerpt p,
.archive .entry-item .entry-excerpt p {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--aux-muted);
	font-size: 14px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.entry-item .entry-author p {
	margin-bottom: 8px;
	color: var(--aux-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
}

/* Archive/page headings ------------------------------------------ */

.default-header {
	padding: 34px 0 12px;
	background: linear-gradient(180deg, #ffffff 0%, var(--aux-background) 100%);
}

.default-header .title {
	max-width: 900px;
	color: var(--aux-ink);
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.08;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.default-header .category a {
	display: inline-block;
	margin-bottom: 12px;
	padding: 7px 10px;
	color: var(--aux-primary);
	background: var(--aux-soft);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.default-header .meta,
.default-header .meta a,
.default-header .subtitle {
	color: var(--aux-muted);
}

/* A compact article heading keeps the first viewport focused on content. */
.single .default-header {
	padding-top: 22px;
	padding-bottom: 8px;
}

.single .default-header .title {
	max-width: 1120px;
	font-size: clamp(30px, 3.2vw, 46px);
	line-height: 1.1;
}

.single .default-header .category a {
	margin-bottom: 8px;
	padding: 5px 8px;
	font-size: 11px;
}

.archive-description,
.category-description {
	margin-bottom: 22px;
	padding: 18px 20px;
	background: var(--aux-surface);
	border: 1px solid var(--aux-border);
	border-radius: var(--aux-radius);
}

.archive-description p:last-child,
.category-description p:last-child {
	margin-bottom: 0;
}

/* Pagination ------------------------------------------------------ */

.pagination {
	display: flex;
	justify-content: center;
	margin: 32px 0 8px;
	font-family: inherit;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
}

.pagination ul li {
	display: block;
}

.pagination a,
.pagination span {
	min-width: 42px;
	min-height: 42px;
	margin: 0;
	padding: 11px 13px;
	color: var(--aux-ink);
	background: var(--aux-surface);
	border: 1px solid var(--aux-border);
	border-radius: 6px !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.pagination a:hover,
.pagination a:focus,
.pagination .current,
.pagination .current:hover,
.pagination .current:focus {
	color: #ffffff;
	background: var(--aux-primary);
	border-color: var(--aux-primary);
}

/* Single articles and regular pages ------------------------------ */

.single #content-wrapper,
.page #content-wrapper {
	align-items: flex-start;
	padding-top: 34px;
}

.single #content-wrapper > .entry-content,
.page #content-wrapper > .entry-content {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.single .entry-content,
.page .entry-content {
	color: #303a50;
}

.single .entry-content p,
.single .entry-content li,
.page .entry-content p,
.page .entry-content li {
	font-size: 18px;
	line-height: 1.78;
}

.single .entry-content h2,
.page .entry-content h2 {
	margin-top: 2.2em;
	font-size: clamp(27px, 3vw, 36px);
}

.single .entry-content h3,
.page .entry-content h3 {
	margin-top: 1.8em;
	font-size: clamp(22px, 2.4vw, 28px);
}

.single .entry-content img,
.page .entry-content img {
	border-radius: 12px;
}

.single .entry-content blockquote,
.page .entry-content blockquote {
	padding: 22px 24px;
	background: var(--aux-soft);
	border: 0;
	border-left: 4px solid var(--aux-primary);
	border-radius: 0 12px 12px 0;
}

.single .entry-content a:not(.btn),
.page .entry-content a:not(.btn) {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Recent-post and related-post images ----------------------------- */

.single .widget-recent-posts .widget-recent-posts-item {
	margin-bottom: 18px;
}

.single .widget-recent-posts .widget-recent-posts-item:last-child {
	margin-bottom: 0;
}

.single .widget-recent-posts img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 9px;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	object-position: center;
	background: #f4f6fa;
	border-radius: 6px;
}

.single .widget-recent-posts p {
	margin: 0;
	color: var(--aux-ink);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.single .site-main .widget-area .widget {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.single .entry-related {
	margin-top: 38px;
	padding-top: 30px;
	border-top: 1px solid var(--aux-border);
}

.single .entry-related > h3 {
	margin: 0 0 18px;
	font-size: 24px;
	line-height: 1.2;
}

.single .entry-related .flex.flex-fluid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
}

.single .entry-related .entry-item {
	width: auto;
	max-width: none;
	padding: 0;
}

.single .entry-related .entry-item > a {
	display: block;
	color: var(--aux-ink);
	text-decoration: none;
}

.single .entry-related img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	object-position: center;
	background: #f4f6fa;
	border-radius: 6px;
}

.single .entry-related .entry-title {
	margin: 10px 0 0;
	color: var(--aux-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

/* Widgets --------------------------------------------------------- */

.site-main div.widget-area,
.widget-area {
	background: transparent;
}

.widget-area .widget {
	padding: 18px;
	background: var(--aux-surface);
	border: 1px solid var(--aux-border);
	border-radius: 10px;
	box-shadow: none;
}

.widget-area .widget-title {
	color: var(--aux-ink);
	font-size: 14px;
	letter-spacing: 0.055em;
}

.site-main h4.widget-title.n-m-t {
	color: var(--aux-ink);
	font-size: 14px;
}

/* Footer ---------------------------------------------------------- */

.site-footer {
	padding: 34px 0 20px;
	color: rgba(255, 255, 255, 0.78);
	background: #151d31;
	border-top: 0;
	letter-spacing: 0;
}

.site-footer .widget-area-footer {
	gap: 28px;
	margin: 0;
}

.site-footer .widget-area {
	color: rgba(255, 255, 255, 0.76);
	background: transparent;
}

.site-footer .widget-area .widget {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.site-footer .widget-area .widget-title {
	color: #ffffff;
	font-size: 13px;
	letter-spacing: 0.08em;
}

.site-footer .widget-area p,
.site-footer .widget-area ul li a,
.site-footer .widget-area a,
.site-footer .credits,
.site-footer .credits a,
.site-footer .credits p {
	color: rgba(255, 255, 255, 0.7);
}

.site-footer .widget-area a:hover,
.site-footer .credits a:hover {
	color: #ffffff;
}

.site-footer .credits {
	margin-top: 26px;
	padding: 20px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	text-align: center;
}

.site-footer .credits p {
	margin: 0;
	font-size: 13px;
}

.site-footer div.credits.row p {
	margin-top: 0;
	color: rgba(255, 255, 255, 0.7);
}

/* Responsive ------------------------------------------------------ */

@media (max-width: 1180px) {
	.home .entry-item,
	.blog .entry-item,
	.archive .entry-item {
		grid-column: span 4;
	}
}

@media (max-width: 1039px) {
	.site-header,
	.site-header .container {
		min-height: 68px;
	}

	.site-logo {
		padding: 7px 0;
	}

	.site-navbar {
		border: 1px solid var(--aux-border);
		box-shadow: var(--aux-shadow-md);
	}

	.site-navbar > ul > li > a {
		padding: 13px 16px;
		background: var(--aux-surface);
		font-size: 14px;
	}

	.site-header.with-header .site-trigger {
		background: var(--aux-primary);
		box-shadow: 0 10px 25px rgba(23, 62, 165, 0.3);
	}

	.site-header.with-header .site-nav-trigger span,
	.site-header.with-header .site-nav-trigger span::before,
	.site-header.with-header .site-nav-trigger span::after {
		background: #ffffff;
	}
}

@media (max-width: 860px) {
	.home .entry-content > .flex.flex-fluid,
	.blog .entry-content > .flex.flex-fluid,
	.archive .entry-content > .flex.flex-fluid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 20px;
	}

	.home .featured-item,
	.blog .featured-item,
	.archive .featured-item,
	.home .entry-item,
	.blog .entry-item,
	.archive .entry-item {
		grid-column: span 6;
	}

	.home .featured-item:first-child,
	.blog .featured-item:first-child,
	.archive .featured-item:first-child {
		grid-column: span 12;
		grid-row: auto;
	}

	.home .featured-item:first-child .featured-wrapper,
	.blog .featured-item:first-child .featured-wrapper,
	.archive .featured-item:first-child .featured-wrapper {
		min-height: 360px;
	}
}

@media (max-width: 767px) {
	.container {
		padding-right: 18px;
		padding-left: 18px;
	}

	.site-main {
		padding-bottom: 32px;
	}

	#content-wrapper,
	.home #content-wrapper,
	.blog #content-wrapper {
		padding-top: 24px;
		padding-bottom: 24px;
	}

	.default-header {
		padding: 32px 0 10px;
	}

	.single #content-wrapper > .entry-content,
	.page #content-wrapper > .entry-content {
		padding: 0;
		border-radius: 0;
	}

	.single .entry-content p,
	.single .entry-content li,
	.page .entry-content p,
	.page .entry-content li {
		font-size: 17px;
	}

	.widget-area {
		padding: 0;
	}

	.single .entry-related .flex.flex-fluid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 560px) {
	.home .entry-content > .flex.flex-fluid,
	.blog .entry-content > .flex.flex-fluid,
	.archive .entry-content > .flex.flex-fluid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.home .featured-item:first-child,
	.blog .featured-item:first-child,
	.archive .featured-item:first-child,
	.home .featured-item,
	.blog .featured-item,
	.archive .featured-item,
	.home .entry-item,
	.blog .entry-item,
	.archive .entry-item {
		grid-column: auto;
	}

	.featured-item .featured-wrapper,
	.home .featured-item:first-child .featured-wrapper,
	.blog .featured-item:first-child .featured-wrapper,
	.archive .featured-item:first-child .featured-wrapper {
		min-height: 260px;
		max-height: none;
	}

	.home .featured-item:first-child .entry-title,
	.blog .featured-item:first-child .entry-title,
	.archive .featured-item:first-child .entry-title,
	.featured-item .entry-title {
		max-width: 100%;
		padding: 22px;
		font-size: 25px;
	}

	.home .entry-item img,
	.blog .entry-item img,
	.archive .entry-item img {
		height: auto;
		min-height: 0;
		max-height: none;
	}

	.pagination a,
	.pagination span {
		min-width: 40px;
		min-height: 40px;
		padding: 10px 11px;
	}

	.site-footer {
		padding-top: 34px;
	}

	.single .default-header .title {
		font-size: 30px;
	}

	.single .entry-related .flex.flex-fluid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
