/* Native Beneficios search shortcode — full-width pill bar + integrated blue submit (reference-aligned). */
.aero-hs-search-form {
	--aero-hs-search-submit-bg: #255dc4;
	--aero-hs-search-submit-hover: #1f53b3;
	--aero-hs-search-border: #e3e9f4;
	--aero-hs-search-bg: #ffffff;
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	background: var(--aero-hs-search-bg);
	border: 1px solid var(--aero-hs-search-border);
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgb(37 93 196 / 8%);
}

.aero-hs-search-form__input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0.7rem 0.75rem 0.7rem 1.15rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	font: inherit;
	font-size: 1rem;
	line-height: 1.25;
	color: #1a1a2e;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
}

.aero-hs-search-form__input::-webkit-search-decoration,
.aero-hs-search-form__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.aero-hs-search-form__input::placeholder {
	color: rgb(26 26 46 / 45%);
}

.aero-hs-search-form__input:focus {
	outline: none;
}

.aero-hs-search-form:focus-within {
	box-shadow:
		0 1px 2px rgb(37 93 196 / 10%),
		0 0 0 2px rgb(45 91 209 / 32%);
}

.aero-hs-search-form__submit {
	flex: 0 0 auto;
	margin: 0;
	padding: 0.65rem 1.35rem;
	border: 0;
	border-radius: 0;
	background: var(--aero-hs-search-submit-bg);
	color: #fff;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.055em;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 140ms ease;
}

.aero-hs-search-form__submit:hover {
	background: var(--aero-hs-search-submit-hover);
}

.aero-hs-search-form__submit:focus {
	outline: none;
}

.aero-hs-search-form__submit:focus-visible {
	box-shadow: inset 0 0 0 2px rgb(255 255 255 / 45%);
}

@media (max-width: 36rem) {
	.aero-hs-search-form__submit {
		padding: 0.65rem 1rem;
		font-size: 0.75rem;
	}
}

/* Active filters — compact removable chips (shortcode aero_beneficios_active_filters). */
.aero-hs-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	max-width: 100%;
	margin: 0.35rem 0 0.5rem;
}

.aero-hs-active-filters__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aero-hs-active-filters__item {
	margin: 0;
	padding: 0;
}

.aero-hs-active-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	max-width: min(100%, 22rem);
	padding: 0.3rem 0.55rem 0.3rem 0.65rem;
	border: 1px solid var(--aero-hs-rail-border, #e3e9f4);
	border-radius: 999px;
	background: var(--aero-hs-inactive-chip-bg, #eaf0ff);
	color: var(--aero-hs-chip-text, #2d5bd1);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 140ms ease, border-color 140ms ease;
	box-sizing: border-box;
}

.aero-hs-active-filters__chip:hover,
.aero-hs-active-filters__chip:focus {
	text-decoration: none;
	background: rgb(234 240 255 / 88%);
	border-color: rgb(214 222 239 / 90%);
}

.aero-hs-active-filters__chip:focus-visible {
	outline: 2px solid var(--aero-hs-chip-text, #2d5bd1);
	outline-offset: 2px;
}

.aero-hs-active-filters__chip-prefix {
	flex-shrink: 0;
	opacity: 0.92;
}

.aero-hs-active-filters__chip-value {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aero-hs-active-filters__chip-remove {
	flex-shrink: 0;
	margin-left: 0.1rem;
	font-size: 1.1rem;
	line-height: 1;
	opacity: 0.85;
}

.aero-hs-active-filters__clear {
	flex-shrink: 0;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--aero-hs-chip-text, #2d5bd1);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.aero-hs-active-filters__clear:hover,
.aero-hs-active-filters__clear:focus {
	text-decoration: underline;
}

.aero-hs-active-filters__clear:focus-visible {
	outline: 2px solid var(--aero-hs-chip-text, #2d5bd1);
	outline-offset: 2px;
	border-radius: 2px;
}

/*
 * When Beneficios text search (?q=) is active, hide Elementor Taxonomy Filter widgets so users cannot
 * mix plugin `q` with Elementor `e-filter-*` on the same view. Class is set in PHP (`body_class`)
 * and kept in sync by `aero-beneficios-live-filter.js` when using live search.
 */
body.aero-beneficios-q-active .elementor-element[data-widget_type^='taxonomy-filter'] {
	display: none !important;
}

/* Vigencia shortcode — [aero_beneficios_vigencia] */
.aero-beneficios-vigencia {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem 0.65rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.aero-beneficios-vigencia__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
}

.aero-beneficios-vigencia__icon-img {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	object-fit: contain;
}

.aero-beneficios-vigencia__text {
	flex: 1 1 auto;
	min-width: 0;
	font: inherit;
	line-height: 1.4;
}

/* Cards shortcode — [aero_beneficios_cards] */
.aero-beneficios-cards {
	display: grid;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	gap: 1rem 1.25rem;
	grid-template-columns: repeat(var(--aero-beneficios-cards-columns, 3), minmax(0, 1fr));
}

.aero-beneficios-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.aero-beneficios-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
}

.aero-beneficios-card__icon-img {
	display: block;
	width: 2rem;
	height: 2rem;
	object-fit: contain;
}

.aero-beneficios-card__title {
	margin: 0;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.aero-beneficios-card__description {
	margin: 0;
	font: inherit;
	font-size: 0.9375rem;
	line-height: 1.45;
}

@media (max-width: 64rem) {
	.aero-beneficios-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 36rem) {
	.aero-beneficios-cards {
		grid-template-columns: 1fr;
	}
}
