/* ===== Custom search (replaces Ajax Search Lite) ===== */
.mtt-search {
	position: relative;
	width: min(520px, 92vw);
	margin: 0 auto;
	font-family: Montserrat, sans-serif;
	z-index: 1;
}

.mtt-search__field {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	background: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 14px 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.mtt-search__icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	color: #2f3741;
}

.mtt-search__input {
	flex: 1 1 auto;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	color: #2f3741 !important;
	font-size: 16px;
	line-height: 1.3;
	min-width: 0;
	padding: 0 !important;
	border-radius: 0 !important;
	-webkit-appearance: none;
	appearance: none;
}

.mtt-search__input:focus {
	outline: 0 !important;
	box-shadow: none !important;
}

.mtt-search__input::placeholder {
	color: #8b9198;
}

.mtt-search__input::-webkit-search-decoration,
.mtt-search__input::-webkit-search-cancel-button,
.mtt-search__input::-webkit-search-results-button,
.mtt-search__input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	display: none;
}

.mtt-search__results {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 10060;
	box-sizing: border-box;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
	max-height: min(50vh, 360px);
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #c5c8cb transparent;
}

.mtt-search__results::-webkit-scrollbar {
	width: 6px;
}

.mtt-search__results::-webkit-scrollbar-thumb {
	background: #c5c8cb;
	border-radius: 999px;
}

.mtt-search__results[hidden] {
	display: none !important;
}

.mtt-search__item {
	display: block;
	padding: 12px 16px;
	color: #2f3741;
	text-decoration: none;
	border-bottom: 1px solid #eef0f2;
}

.mtt-search__item:last-child {
	border-bottom: 0;
}

.mtt-search__item:hover,
.mtt-search__item:focus {
	background: #f5f6f7;
	color: #af172b;
}

.mtt-search__item-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.mtt-search__item-type {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: #878a8c;
	font-weight: 500;
}

.mtt-search__empty,
.mtt-search__error {
	padding: 14px 16px;
	font-size: 13px;
	color: #878a8c;
}

/* ===== Buscador popup: overlay full-screen, content centered ===== */
#elementor-popup-modal-65401,
.elementor-popup-modal[data-elementor-id="65401"],
.elementor-popup-modal[data-id="65401"] {
	width: 100vw !important;
	max-width: none !important;
	height: 100vh !important;
	left: 0 !important;
	right: 0 !important;
	top: 0 !important;
	transform: none !important;
	margin: 0 !important;
	background: rgba(20, 24, 28, 0.72) !important;
	display: flex !important;
	justify-content: center !important;
	align-items: flex-start !important;
	padding-top: 12vh !important;
	box-sizing: border-box !important;
}

#elementor-popup-modal-65401 .dialog-widget-content,
.elementor-popup-modal[data-elementor-id="65401"] .dialog-widget-content,
.elementor-popup-modal[data-id="65401"] .dialog-widget-content {
	position: relative !important;
	width: min(560px, 92vw) !important;
	max-width: 560px !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	transform: none !important;
	margin: 0 auto !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
}

#elementor-popup-modal-65401 .dialog-message,
#elementor-popup-modal-65401 .dialog-lightbox-message,
.elementor-popup-modal[data-id="65401"] .dialog-message {
	overflow: visible !important;
	background: transparent !important;
}

body .elementor-65401 {
	overflow: visible !important;
	background: transparent !important;
	box-shadow: none !important;
	height: auto !important;
	max-height: none !important;
	width: 100% !important;
}

.elementor-65401 .e-con,
.elementor-65401 .elementor-element,
.elementor-65401 .elementor-widget,
.elementor-65401 .elementor-widget-container,
.elementor-65401 .elementor-shortcode {
	overflow: visible !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.elementor-65401 .e-con {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	min-height: 0 !important;
	height: auto !important;
}

#elementor-popup-modal-65401 .dialog-close-button,
.elementor-popup-modal[data-id="65401"] .dialog-close-button {
	top: 18px !important;
	right: 18px !important;
	left: auto !important;
	color: #fff !important;
	opacity: 0.9;
}

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