/*
 * Depthcubing — compact, explicit mobile navigation.
 */

.dc-site-quicknav {
	display: none;
}

@media (max-width: 760px) {
	#masthead {
		background: #fffaf2;
		position: relative;
		z-index: 60;
	}

	#masthead #ast-mobile-header .ast-primary-header-bar {
		background: #fffaf2;
		border-bottom: 1px solid rgba(71, 56, 40, .1);
		box-shadow: none;
		min-height: 70px;
		padding: 0 14px;
	}

	#masthead #ast-mobile-header .ast-builder-grid-row {
		min-height: 70px;
	}

	#masthead #ast-mobile-header .site-branding,
	#masthead #ast-mobile-header .ast-site-identity {
		padding: 0;
	}

	#masthead #ast-mobile-header .site-logo-img,
	#masthead #ast-mobile-header .custom-logo-link {
		align-items: center;
		display: flex;
	}

	#masthead #ast-mobile-header .custom-logo {
		border-radius: 10px;
		height: 54px !important;
		object-fit: cover;
		width: 54px !important;
	}

	#masthead #ast-mobile-header .menu-toggle {
		align-items: center;
		background: transparent !important;
		border: 1px solid rgba(21, 62, 74, .14) !important;
		border-radius: 999px;
		box-shadow: none !important;
		color: #183c48 !important;
		display: inline-flex;
		min-height: 42px;
		padding: 7px 10px !important;
	}

	#masthead #ast-mobile-header .mobile-menu-toggle-icon {
		align-items: center;
		display: inline-flex;
		gap: 6px;
	}

	#masthead #ast-mobile-header .mobile-menu-toggle-icon::after {
		content: "Menú";
		font-family: "Manrope", sans-serif;
		font-size: 10px;
		font-weight: 800;
		letter-spacing: .08em;
		text-transform: uppercase;
	}

	#masthead #ast-mobile-header .ast-mobile-svg {
		height: 21px;
		width: 21px;
	}

	#masthead .ast-mobile-header-content {
		background: #fffaf2;
		border-bottom: 1px solid rgba(71, 56, 40, .12);
		box-shadow: 0 14px 28px rgba(49, 39, 28, .08);
	}

	#masthead .ast-mobile-header-content .menu-link {
		color: #183c48;
		font-family: "Manrope", sans-serif;
		font-size: 14px;
		font-weight: 700;
		padding: 13px 22px;
	}

	.dc-site-quicknav {
		background: rgba(255, 250, 242, .98);
		border-bottom: 1px solid rgba(71, 56, 40, .12);
		box-shadow: 0 8px 24px rgba(49, 39, 28, .06);
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		padding: 8px 9px 9px;
		position: relative;
		z-index: 61;
	}

	.dc-site-quicknav__language {
		align-items: center;
		background: #f4eadb;
		border: 1px solid rgba(142, 102, 58, .17);
		border-radius: 999px;
		display: flex;
		gap: 3px;
		height: 31px;
		justify-content: center;
		position: absolute;
		right: 120px;
		top: -51px;
		width: 58px;
	}

	.dc-site-quicknav__language a,
	.dc-site-quicknav__language span {
		color: #6d655d;
		font-family: "Manrope", sans-serif;
		font-size: 9px;
		font-weight: 800;
		letter-spacing: .06em;
		line-height: 1;
		text-decoration: none;
	}

	.dc-site-quicknav__language a.is-active {
		color: #a6533d;
	}

	.dc-site-quicknav__link {
		align-items: center;
		border-radius: 12px;
		color: #586970;
		display: flex;
		flex-direction: column;
		font-family: "Manrope", sans-serif;
		font-size: 9px;
		font-weight: 800;
		gap: 4px;
		justify-content: center;
		letter-spacing: .02em;
		line-height: 1.15;
		min-height: 51px;
		padding: 5px 2px;
		text-align: center;
		text-decoration: none;
		transition: background-color .2s ease, color .2s ease;
	}

	.dc-site-quicknav__link:hover,
	.dc-site-quicknav__link:focus,
	.dc-site-quicknav__link.is-active {
		background: #f2e6d4;
		color: #a6533d;
	}

	.dc-site-quicknav__icon {
		align-items: center;
		display: flex;
		height: 24px;
		justify-content: center;
		width: 28px;
	}

	.dc-site-quicknav__icon svg {
		fill: none;
		height: 24px;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 1.5;
		width: 28px;
	}

	.dc-site-quicknav__icon circle.is-filled {
		fill: currentColor;
		stroke: none;
	}

	.dc-site-quicknav__depthcube .cube-top {
		fill: #e8b944;
		stroke: #fffaf2;
		stroke-width: 1.25;
	}

	.dc-site-quicknav__depthcube .cube-left {
		fill: #247ab6;
		stroke: #fffaf2;
		stroke-width: 1.25;
	}

	.dc-site-quicknav__depthcube .cube-right {
		fill: #ca3f3e;
		stroke: #fffaf2;
		stroke-width: 1.25;
	}

	.dc-site-quicknav__depthcube .cube-grid {
		fill: none;
		stroke: rgba(255, 255, 255, .92);
		stroke-width: 1.05;
	}

	.dc-site-quicknav__depthcube .cube-heart {
		fill: #fffaf2;
		stroke: #c89428;
		stroke-width: 1;
	}

	body.admin-bar .dc-site-quicknav {
		z-index: 999;
	}
}

/*
 * Mobile refinement — one language selector and a sky/earth palette.
 */
@media (max-width: 760px) {
	body.page-id-12 .dc-project-language {
		display: none;
	}

	#masthead,
	#masthead #ast-mobile-header .ast-primary-header-bar {
		background: #f1e4cf;
	}

	#masthead #ast-mobile-header .ast-primary-header-bar,
	#masthead #ast-mobile-header .ast-builder-grid-row {
		min-height: 76px;
	}

	#masthead #ast-mobile-header .custom-logo {
		mix-blend-mode: multiply;
	}

	#masthead #ast-mobile-header .menu-toggle {
		border-color: rgba(17, 105, 145, .22) !important;
		color: #0879b2 !important;
	}

	#masthead .ast-mobile-header-content {
		background: #f6ecdc;
		border-bottom-color: rgba(17, 105, 145, .16);
	}

	.dc-site-quicknav {
		background: #f6ecdc;
		border-bottom-color: rgba(17, 105, 145, .16);
	}

	.dc-site-quicknav__language {
		background: #e5d4b8;
		border-color: rgba(17, 105, 145, .2);
		height: 42px;
		right: 132px;
		top: -59px;
		width: 86px;
	}

	.dc-site-quicknav__language a,
	.dc-site-quicknav__language span {
		color: #345c6c;
		font-size: 12px;
		letter-spacing: .08em;
	}

	.dc-site-quicknav__language a.is-active {
		color: #0879b2;
	}

	.dc-site-quicknav__link {
		color: #3d5d69;
	}

	.dc-site-quicknav__link:hover,
	.dc-site-quicknav__link:focus,
	.dc-site-quicknav__link.is-active {
		background: #e7d6ba;
		color: #086f9f;
	}
}

@media (max-width: 360px) {
	#masthead #ast-mobile-header .custom-logo {
		height: 50px !important;
		width: 50px !important;
	}

	.dc-site-quicknav__language {
		right: 128px;
		width: 80px;
	}

	.dc-site-quicknav__link {
		font-size: 8.5px;
	}
}
