/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/* Keep the catalog facets visually aligned with the sidebar headings. */
/* Center the desktop mega menu in the page, not against the offset nav column. */
@media (min-width: 1025px) {
	#header .cbp-hrmenu.cbp-hrsub-narrow > ul > li > .cbp-hrsub.cbp-notfit {
		left: calc((100% - 100vw) / 2 + 8px) !important;
		right: auto !important;
		top: 52px !important;
	}
	#header #cbp-hrmenu.cbp-hrsub-narrow > ul > li:hover > .cbp-hrsub.cbp-show {
		visibility: visible;
		opacity: 1;
		z-index: 100;
		pointer-events: auto;
	}
	#header #cbp-hrmenu.cbp-hrsub-narrow > ul > li > a:hover::after {
		content: '';
		position: absolute;
		z-index: 101;
		top: 100%;
		left: -8px;
		width: calc(100% + 16px);
		height: 22px;
		background: transparent;
		pointer-events: auto;
	}
	#header #cbp-hrmenu .cbp-hrsub.cbp-show {
		height: auto !important;
		min-height: 0;
	}
	#header #cbp-hrmenu .cbp-hrsub-inner {
		box-sizing: border-box;
		padding: 10px 20px !important;
		height: auto !important;
		min-height: 0;
		overflow: hidden;
	}
	#header #cbp-hrmenu .cbp-hrsub-inner > .container {
		padding-right: 15px;
		padding-left: 15px;
	}
	#header #cbp-hrmenu .cbp-hrsub-inner .cbp-banner-image {
		display: block;
		max-width: 100%;
		height: auto;
	}
}

/* Keep every desktop page's full navigation on one row at wide laptop sizes. */
@media (min-width: 1301px) and (max-width: 1500px) {
	#header .cbp-horizontal > ul > li > a,
	#header .cbp-horizontal > ul > li > a:not([href]):not([tabindex]),
	#header .cbp-horizontal > ul > li > .cbp-main-link {
		padding-left: .7143rem !important;
		padding-right: .7143rem !important;
	}
}

body.page-category #amazzing_filter {
	font-family: Onest, sans-serif;
	color: #172554;
	width: 280px;
	max-width: 100%;
}

/* Blog listing cards */
body[id*="module-ph_simpleblog"] .simpleblog__listing__post {
	display: flex;
	margin-bottom: 24px;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px;
	box-shadow: 0 5px 18px rgba(23, 37, 84, .06);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper:hover {
	transform: translateY(-3px);
	border-color: #d7dce5;
	box-shadow: 0 12px 28px rgba(23, 37, 84, .11);
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper > a:first-child {
	display: block;
	overflow: hidden;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper > a:first-child img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin: 0 !important;
	transition: transform .35s ease;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper:hover > a:first-child img {
	transform: scale(1.025);
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 20px 20px 16px;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__content__headline {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__content__headline a {
	color: #172554;
	text-decoration: none;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__content__headline a:hover {
	color: #d82b1e;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__content > p {
	margin: 0 0 14px;
	color: #5b6472;
	font-size: 14px;
	line-height: 1.6;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__content__readmore {
	align-self: flex-start;
	margin-top: auto;
	color: #172554 !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__content__readmore:hover {
	color: #d82b1e !important;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__footer {
	margin: 0 !important;
	padding: 12px 20px 16px !important;
	border-top: 1px solid #eef0f3;
	color: #737b88;
	font-size: 12px;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__footer__block {
	margin: 0 12px 4px 0;
}

body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__footer__block a {
	color: inherit;
}

@media (max-width: 767px) {
	body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__content {
		padding: 17px 16px 14px;
	}

	body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__content__headline {
		font-size: 17px;
	}

	body[id*="module-ph_simpleblog"] .simpleblog__listing__post__wrapper__footer {
		padding: 11px 16px 14px !important;
	}
}

body.page-category #amazzing_filter .title_block,
body.page-category #amazzing_filter .af_subtitle {
	font-family: Onest, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #172554;
	text-transform: uppercase;
}

body.page-category #amazzing_filter .title_block {
	margin: 0 0 12px;
	padding: 0 0 8px;
	border-bottom: 1px solid #e5e7eb;
}

body.page-category #amazzing_filter .af_filter {
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
}

body.page-category #amazzing_filter .af_subtitle {
	position: relative;
	margin: 0;
	padding: 10px 24px 10px 20px;
	font-family: Onest, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.25;
	color: #111;
	text-transform: uppercase;
	cursor: pointer;
}

body.page-category #amazzing_filter .af_subtitle.toggle-content:before {
	content: '+';
	top: 50%;
	right: 8px;
	margin: 0;
	border: 0;
	width: auto;
	height: auto;
	font-family: Arial, sans-serif;
	font-size: 21px;
	font-weight: 400;
	line-height: 1;
	color: #111;
	transform: translateY(-50%);
}

body.page-category #amazzing_filter .af_filter:not(.closed) > .af_subtitle.toggle-content:before {
	content: '\2212';
}

body.page-category #amazzing_filter .af_filter_content {
	padding: 0 10px 10px 20px;
}

body.page-category #amazzing_filter .af_filter_content,
body.page-category #amazzing_filter .af_filter_content label {
	font-family: Onest, sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #374151;
}

body.page-category #amazzing_filter .af_filter_content li {
	padding: 4px 0;
}

body.page-category #amazzing_filter .af_filter_content .count {
	color: #6b7280;
}

/* Catalog choices follow the category tree above: one plain row per option. */
body.page-category #amazzing_filter .af_filter.single-choice .af_filter_content li {
	padding: 0;
	border-bottom: 1px solid #e5e7eb;
}

body.page-category #amazzing_filter .af_filter.single-choice .af_filter_content li:last-child {
	border-bottom: 0;
}

body.page-category #amazzing_filter .af_filter.single-choice .af_filter_content label {
	display: block;
	margin: 0;
	padding: 10px 0;
	font-size: 14px;
	line-height: 1.25;
	color: #111;
	text-transform: uppercase;
	cursor: pointer;
}

body.page-category #amazzing_filter .af_filter.single-choice .af_filter_content .name {
	padding-left: 0;
}

body.page-category #amazzing_filter .af_filter.single-choice .af_filter_content label:before,
body.page-category #amazzing_filter .af_filter.single-choice .af_filter_content label:after,
body.page-category #amazzing_filter .af_filter.single-choice .af_filter_content .count {
	display: none;
}

body.page-category #amazzing_filter .af_filter.single-choice .af_filter_content label:hover,
body.page-category #amazzing_filter .af_filter.single-choice .af_filter_content li.active label {
	color: #d82b1e;
}

body.page-category #amazzing_filter .af_filter_content li.active .name,
body.page-category #amazzing_filter .af_filter_content li.active .count {
	color: #d82b1e;
}

/* Color choices use swatches, labels and compact product counts. */
body.page-category #amazzing_filter .catalog-color-filter {
	position: relative;
}

body.page-category #amazzing_filter .catalog-color-filter > .af_subtitle {
	padding: 12px 75px 12px 0;
	border-bottom: 1px solid #eef0f2;
	font-weight: 600;
	color: #30364d;
}

body.page-category #amazzing_filter .catalog-color-filter > .af_subtitle.toggle-content:before {
	display: none;
}

body.page-category #amazzing_filter .catalog-color-clear {
	position: absolute;
	z-index: 1;
	top: 8px;
	right: 0;
	border: 0;
	background: transparent;
	font: 400 13px/1.4 Onest, sans-serif;
	color: #8b909a;
	cursor: pointer;
}

body.page-category #amazzing_filter .catalog-color-clear:hover,
body.page-category #amazzing_filter .catalog-color-clear:focus-visible {
	color: #d82b1e;
	text-decoration: underline;
}

body.page-category #amazzing_filter .catalog-color-filter > .af_filter_content {
	padding: 6px 10px 10px 20px;
	max-height: 900px;
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
	overflow: hidden;
	transition: max-height .38s cubic-bezier(.2, .75, .25, 1),
		padding .32s ease, margin .32s ease, opacity .22s ease,
		transform .32s ease, visibility 0s linear 0s;
}

body.page-category #amazzing_filter .catalog-color-filter.closed > .af_filter_content {
	display: block;
	max-height: 0;
	margin: 0;
	padding-top: 0;
	padding-bottom: 0;
	transform: translateY(-6px);
	opacity: 0;
	visibility: hidden;
	transition: max-height .32s cubic-bezier(.4, 0, .6, 1),
		padding .32s ease, margin .32s ease, opacity .2s ease,
		transform .32s ease, visibility 0s linear .32s;
}

@media (prefers-reduced-motion: reduce) {
	body.page-category #amazzing_filter .catalog-color-filter > .af_filter_content,
	body.page-category #amazzing_filter .catalog-color-filter.closed > .af_filter_content {
		transition: none;
	}
}

body.page-category #amazzing_filter .af_filter.single-choice.catalog-color-filter .af_filter_content li {
	border: 0;
}

body.page-category #amazzing_filter .af_filter.single-choice.catalog-color-filter .af_filter_content label {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 43px;
	padding: 7px 2px;
	font-size: 13px;
	line-height: 1.35;
	color: #414650;
	text-transform: none;
}

body.page-category #amazzing_filter .af_filter.single-choice.catalog-color-filter .af_filter_content .name {
	flex: 1;
	min-width: 0;
}

body.page-category #amazzing_filter .af_filter.single-choice.catalog-color-filter .af_filter_content .count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	min-width: 22px;
	height: 22px;
	margin-left: auto;
	padding: 0 4px;
	border-radius: 50%;
	background: #f5f6f8;
	font-size: 11px;
	color: #a5aab2;
}

body.page-category #amazzing_filter .catalog-color-filter .count:before,
body.page-category #amazzing_filter .catalog-color-filter .count:after {
	content: none;
}

body.page-category #amazzing_filter .catalog-color-filter .catalog-color-swatch {
	display: block;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1px solid rgba(42, 47, 58, .14);
	border-radius: 50%;
	background: #d2d4d8;
	background-position: center;
	background-size: cover;
	box-shadow: 0 1px 2px rgba(25, 32, 45, .08);
	transition: box-shadow .15s ease, filter .15s ease, transform .15s ease;
}

body.page-category #amazzing_filter .af_filter.single-choice.catalog-color-filter .af_filter_content label:hover .catalog-color-swatch,
body.page-category #amazzing_filter .af_filter.single-choice.catalog-color-filter .af_filter_content label:focus-within .catalog-color-swatch {
	filter: saturate(1.3) brightness(.9);
	transform: scale(1.1);
	box-shadow: 0 0 0 3px rgba(216, 43, 30, .18);
}

body.page-category #amazzing_filter .af_filter.single-choice.catalog-color-filter .af_filter_content li.active .catalog-color-swatch {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d82b1e;
}

body.page-category #amazzing_filter .af_filter.single-choice.catalog-color-filter .af_filter_content li.active .count {
	color: #a5aab2;
}

body.page-category #amazzing_filter .af_filter_content select {
	min-height: 38px;
	padding: 7px 10px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background-color: #fff;
	font: 400 13px/1.4 Onest, sans-serif;
	color: #172554;
}

body.page-category #amazzing_filter .selectedFilters {
	margin: 0 0 12px;
	font: 400 12px/1.5 Onest, sans-serif;
	color: #172554;
}

body.page-category #amazzing_filter .selectedFilters {
	display: none !important;
}

body.page-category #amazzing_filter .selectedFilters .cf {
	margin: 4px 4px 0 0;
	padding: 4px 8px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	background: #f8fafc;
}

@media (max-width: 767px) {
	body.page-category #amazzing_filter {
		padding: 14px;
		width: 100%;
	}
}

/* Videos de la portada creados en Creative Elements. */
.elementor-element-8ad528a .elementor-widget-video {
	cursor: pointer;
	transition: transform .25s ease, filter .25s ease;
}

.elementor-element-8ad528a .elementor-widget-video:hover,
.elementor-element-8ad528a .elementor-widget-video.is-playing {
	transform: scale(1.045);
	filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25));
	z-index: 2;
}

.elementor-element-8ad528a .elementor-widget-video:focus-visible {
	outline: 3px solid #d82b1e;
	outline-offset: 4px;
}

.elementor-element-8ad528a .elementor-widget-video .elementor-video {
	pointer-events: none;
}

.elementor-element-8ad528a .elementor-widget-video .elementor-wrapper::after {
	content: '⛶  Ver video';
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 1;
	padding: 6px 10px;
	border-radius: 20px;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font: 600 12px/1.2 Onest, sans-serif;
	pointer-events: none;
}

.coposa-video-modal[hidden] { display: none !important; }
.coposa-video-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.coposa-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .88);
}
.coposa-video-modal__content {
	position: relative;
	z-index: 1;
	width: min(100%, 480px);
	max-height: calc(100vh - 48px);
}
.coposa-video-modal__content video {
	display: block;
	width: 100%;
	max-height: calc(100vh - 48px);
	background: #000;
}
.coposa-video-modal__close {
	position: absolute;
	top: -18px;
	right: -18px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 28px;
	line-height: 40px;
	cursor: pointer;
}
body.coposa-video-modal-open { overflow: hidden; }

@media (max-width: 767px) {
	.elementor-element-8ad528a .elementor-widget-video:hover { transform: none; }
	.coposa-video-modal { padding: 16px; }
	.coposa-video-modal__content,
	.coposa-video-modal__content video { max-height: calc(100vh - 32px); }
	.coposa-video-modal__close { top: 8px; right: 8px; }
}
