:root {
	--ma-logo: #106060;
	--ma-primary: #106060;
	--ma-primary-deep: #0a4b4b;
	--ma-primary-mid: #195d61;
	--ma-primary-soft: #e8f1f0;
	--ma-primary-pale: #f3f8f7;
	--ma-ink: #173b3a;
	--ma-body: #4f5f5d;
	--ma-border: #d3e1df;
}

::selection {
	background: #cfe4e2;
	color: var(--ma-primary-deep);
}

/* Encabezado y navegación */
#masthead {
	border-bottom: 1px solid #e3ecea;
}

#masthead .main-header-menu > li > a {
	color: var(--ma-ink);
}

#masthead .main-header-menu > li > a:hover,
#masthead .main-header-menu > li > a:focus-visible,
#masthead .main-header-menu > .current-menu-item > a,
#masthead .main-header-menu > .current-menu-ancestor > a {
	color: var(--ma-primary);
}

#masthead .main-header-menu > .current-menu-item > a,
#masthead .main-header-menu > .current-menu-ancestor > a {
	font-weight: 700;
}

#masthead .ma-header-search-button,
#masthead .ma-header-cart-button,
#masthead #ast-desktop-header .ast-header-button-1 .ast-custom-button {
	background: #fff !important;
	border-color: var(--ma-border) !important;
	color: var(--ma-primary) !important;
}

#masthead .ma-header-search-button svg,
#masthead .ma-header-cart-button svg,
#masthead #ast-desktop-header .ast-header-button-1 .ast-custom-button svg {
	color: var(--ma-primary) !important;
	stroke: currentColor !important;
}

#masthead .ma-header-search-button:hover,
#masthead .ma-header-search-button:focus-visible,
#masthead .ma-header-cart-button:hover,
#masthead .ma-header-cart-button:focus-visible,
#masthead #ast-desktop-header .ast-header-button-1 .ast-custom-button-link:hover .ast-custom-button,
#masthead #ast-desktop-header .ast-header-button-1 .ast-custom-button-link:focus-visible .ast-custom-button {
	background: var(--ma-primary) !important;
	border-color: var(--ma-primary) !important;
	color: #fff !important;
}

#masthead .ma-header-search-button:hover svg,
#masthead .ma-header-search-button:focus-visible svg,
#masthead .ma-header-cart-button:hover svg,
#masthead .ma-header-cart-button:focus-visible svg,
#masthead #ast-desktop-header .ast-header-button-1 .ast-custom-button-link:hover .ast-custom-button svg,
#masthead #ast-desktop-header .ast-header-button-1 .ast-custom-button-link:focus-visible .ast-custom-button svg {
	color: #fff !important;
	stroke: currentColor !important;
}

#masthead .ma-header-search-button:focus-visible,
#masthead .ma-header-cart-button:focus-visible,
#masthead #ast-desktop-header .ast-header-button-1 .ast-custom-button-link:focus-visible {
	outline-color: rgba(16, 96, 96, 0.3) !important;
}

.ast-mobile-menu-trigger-outline,
.main-header-menu-toggle {
	border-color: var(--ma-border) !important;
	color: var(--ma-primary) !important;
}

.ast-mobile-menu-trigger-outline:hover,
.ast-mobile-menu-trigger-outline:focus-visible,
.main-header-menu-toggle:hover,
.main-header-menu-toggle:focus-visible {
	background: var(--ma-primary) !important;
	border-color: var(--ma-primary) !important;
	color: #fff !important;
}

/* Fondos principales de la portada */
.post-9 .elementor-element-eac06a4 {
	background-color: var(--ma-primary-pale) !important;
}

.post-9 .elementor-element-ae40ffb {
	background-color: var(--ma-primary) !important;
}

.post-9 .elementor-element-d45ba6c {
	background-color: #f5f7f6 !important;
}

/* Botones principales */
.post-9 .elementor-element-1206274 .elementor-button,
.post-9 .elementor-element-fc9d9bb .elementor-button,
.post-9 .elementor-element-d95c48c .elementor-button,
.post-9 .elementor-element-0e5cf5c .elementor-button,
.post-9 .elementor-element-6e1837c .elementor-button {
	background-color: var(--ma-primary) !important;
	border-color: var(--ma-primary) !important;
	box-shadow: 0 8px 20px rgba(16, 96, 96, 0.18);
	color: #fff !important;
}

.post-9 .elementor-element-1206274 .elementor-button:hover,
.post-9 .elementor-element-1206274 .elementor-button:focus-visible,
.post-9 .elementor-element-fc9d9bb .elementor-button:hover,
.post-9 .elementor-element-fc9d9bb .elementor-button:focus-visible,
.post-9 .elementor-element-d95c48c .elementor-button:hover,
.post-9 .elementor-element-d95c48c .elementor-button:focus-visible,
.post-9 .elementor-element-0e5cf5c .elementor-button:hover,
.post-9 .elementor-element-0e5cf5c .elementor-button:focus-visible,
.post-9 .elementor-element-6e1837c .elementor-button:hover,
.post-9 .elementor-element-6e1837c .elementor-button:focus-visible {
	background-color: var(--ma-primary-deep) !important;
	border-color: var(--ma-primary-deep) !important;
	color: #fff !important;
}

.post-9 .elementor-element-eaaeee5 .elementor-button,
.post-9 .elementor-element-0d4e31a .elementor-button,
.post-9 .elementor-element-9f2916a .elementor-button {
	background-color: transparent !important;
	border-color: var(--ma-primary) !important;
	color: var(--ma-primary) !important;
}

.post-9 .elementor-element-eaaeee5 .elementor-button:hover,
.post-9 .elementor-element-eaaeee5 .elementor-button:focus-visible,
.post-9 .elementor-element-0d4e31a .elementor-button:hover,
.post-9 .elementor-element-0d4e31a .elementor-button:focus-visible,
.post-9 .elementor-element-9f2916a .elementor-button:hover,
.post-9 .elementor-element-9f2916a .elementor-button:focus-visible {
	background-color: var(--ma-primary) !important;
	border-color: var(--ma-primary) !important;
	color: #fff !important;
}

.post-9 .elementor-button:focus-visible,
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible {
	outline: 3px solid rgba(16, 96, 96, 0.28) !important;
	outline-offset: 3px;
}

/* Catálogo y productos */
.ma-home-catalog ul.products li.product {
	border-color: var(--ma-border) !important;
	box-shadow: 0 7px 22px rgba(16, 96, 96, 0.08) !important;
}

.ma-home-catalog .ast-woo-product-category {
	background: var(--ma-primary-soft);
	color: var(--ma-primary);
}

.ma-home-catalog .woocommerce-loop-product__title {
	color: var(--ma-ink);
}

.ma-home-catalog .price,
.ma-home-catalog .price .ma-wa-price,
.ma-wa-price {
	color: var(--ma-primary);
}

.ma-home-catalog a.button.product_type_simple,
.ma-home-catalog .button.product_type_simple,
.woocommerce ul.products li.product .button,
.woocommerce .single_add_to_cart_button,
.woocommerce-cart .coupon .button,
.woocommerce-mini-cart__buttons .button {
	background: var(--ma-primary) !important;
	border-color: var(--ma-primary) !important;
	color: #fff !important;
}

.ma-home-catalog a.button.product_type_simple:hover,
.ma-home-catalog a.button.product_type_simple:focus-visible,
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:focus-visible,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .single_add_to_cart_button:focus-visible,
.woocommerce-cart .coupon .button:hover,
.woocommerce-cart .coupon .button:focus-visible,
.woocommerce-mini-cart__buttons .button:hover,
.woocommerce-mini-cart__buttons .button:focus-visible {
	background: var(--ma-primary-deep) !important;
	border-color: var(--ma-primary-deep) !important;
	color: #fff !important;
}

.woocommerce-info,
.woocommerce-message {
	border-top-color: var(--ma-primary) !important;
}

.woocommerce-info::before,
.woocommerce-message::before {
	color: var(--ma-primary) !important;
}

/* Buscador, filtros y carrito lateral */
.ma-line-filter-inline__button {
	border-color: var(--ma-border);
	color: var(--ma-ink);
}

.ma-line-filter-inline__button:hover,
.ma-line-filter-inline__button:focus-visible,
.ma-line-filter-inline__button.is-active,
.ma-line-filter__button:hover,
.ma-line-filter__button:focus-visible,
.ma-line-filter__button.is-active,
.ma-line-filter__search {
	background: var(--ma-primary) !important;
	border-color: var(--ma-primary) !important;
	color: #fff !important;
}

.ma-line-filter-inline__button:focus-visible,
.ma-line-filter-open:focus-visible,
.ma-line-filter__button:focus-visible,
.ma-product-search__item:focus-visible {
	outline-color: rgba(16, 96, 96, 0.28);
}

.ma-line-filter-open {
	border-color: var(--ma-primary);
	color: var(--ma-ink);
}

.ma-line-filter-open:hover,
.ma-line-filter-open:focus-visible,
.ma-product-search__item:hover,
.ma-product-search__item:focus-visible {
	background: var(--ma-primary-soft);
}

.ma-line-filter-open strong,
.ma-line-filter__eyebrow,
.ma-product-search__eyebrow,
.ma-product-search__price,
.ma-product-search__all {
	color: var(--ma-primary);
}

.ma-line-filter__button.is-active small {
	background: var(--ma-primary) !important;
	color: #fff !important;
}

.ma-line-filter__all.is-active {
	border-color: var(--ma-primary) !important;
	color: var(--ma-primary) !important;
}

.ma-product-search__form input:focus {
	border-color: var(--ma-primary);
	box-shadow: 0 0 0 3px rgba(16, 96, 96, 0.14);
}

.ma-product-search__form button,
.ma-cart-drawer .widget_shopping_cart_content .woocommerce-mini-cart__buttons .button {
	background: var(--ma-primary) !important;
	color: #fff !important;
}

.ma-product-search__form button:hover,
.ma-product-search__form button:focus-visible,
.ma-cart-drawer .widget_shopping_cart_content .woocommerce-mini-cart__buttons .button:hover,
.ma-cart-drawer .widget_shopping_cart_content .woocommerce-mini-cart__buttons .button:focus-visible {
	background: var(--ma-primary-deep) !important;
}

.ma-cart-drawer__continue,
.ma-cart-drawer .widget_shopping_cart_content .woocommerce-mini-cart-item a:not(.remove) {
	color: var(--ma-primary);
}

/* Formulario de cotización. Las acciones de WhatsApp conservan su verde de marca. */
.ma-wa-order {
	background: linear-gradient(135deg, var(--ma-primary-pale) 0%, #eaf2f1 100%);
	border-color: var(--ma-border);
}

.ma-wa-order h3,
.ma-wa-order__field span {
	color: var(--ma-ink);
}

.ma-wa-order__field input:focus,
.ma-wa-order__field textarea:focus {
	border-color: var(--ma-primary);
	box-shadow: 0 0 0 3px rgba(16, 96, 96, 0.13);
}

/* Enlaces generales y pie de página */
.post-9 .elementor-widget-text-editor a,
#colophon a:not(.button):not(.mawf-button) {
	color: var(--ma-primary);
}

.post-9 .elementor-widget-text-editor a:hover,
.post-9 .elementor-widget-text-editor a:focus-visible,
#colophon a:not(.button):not(.mawf-button):hover,
#colophon a:not(.button):not(.mawf-button):focus-visible {
	color: var(--ma-primary-deep);
}

@media (prefers-reduced-motion: no-preference) {
	.post-9 .elementor-button,
	#masthead .ma-header-search-button,
	#masthead .ma-header-cart-button,
	.woocommerce ul.products li.product .button {
		transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
	}
}
