/* First-paint shell — prevents layout flash before app styles load */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: #f4f1ec;
}

html.js:not(.is-ready) body > *:not(.social-float):not(#header) {
	visibility: hidden;
}

body {
	margin: 0;
	padding-top: 4.5rem;
	background: #f4f1ec;
	color: #3d4659;
	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

#main-content {
	overflow-x: clip;
	max-width: 100%;
}

#header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 4.5rem;
	background: #0c1222;
	z-index: 10000;
}

.header-actions {
	display: none;
	align-items: center;
	gap: 0.4rem;
	flex-shrink: 0;
	margin-left: auto;
}

.header-social {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.header-social a,
.social-float a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	flex-shrink: 0;
	position: relative;
}

.header-social a::after,
.social-float a::after {
	content: "";
	width: 54%;
	height: 54%;
	background: #fff;
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}

.header-social .social-fb::after,
.social-float .social-fb::after {
	-webkit-mask-image: url("../images/icons/social/facebook.svg");
	mask-image: url("../images/icons/social/facebook.svg");
}

.header-social .social-x::after,
.social-float .social-x::after {
	-webkit-mask-image: url("../images/icons/social/x.svg");
	mask-image: url("../images/icons/social/x.svg");
}

.header-social .social-wa::after,
.social-float .social-wa::after {
	-webkit-mask-image: url("../images/icons/social/whatsapp.svg");
	mask-image: url("../images/icons/social/whatsapp.svg");
}

.header-social .social-ig::after,
.social-float .social-ig::after {
	-webkit-mask-image: url("../images/icons/social/instagram.svg");
	mask-image: url("../images/icons/social/instagram.svg");
}

.header-social .social-tt::after,
.social-float .social-tt::after {
	-webkit-mask-image: url("../images/icons/social/tiktok.svg");
	mask-image: url("../images/icons/social/tiktok.svg");
}

.header-social .social-fb,
.social-float .social-fb {
	background: #1877f2;
}

.header-social .social-x,
.social-float .social-x {
	background: #000;
}

.header-social .social-wa,
.social-float .social-wa {
	background: #25d366;
}

.header-social .social-ig,
.social-float .social-ig {
	background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.header-social .social-tt,
.social-float .social-tt {
	background: #010101;
}

.social-float {
	position: fixed;
	z-index: 10001;
	display: flex;
	align-items: center;
	bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
	right: max(1.5rem, env(safe-area-inset-right, 0px));
	background: #0c1222;
	border-radius: 999px;
	padding: 0.35em 0.45em;
	gap: 0.3em;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

@media (max-width: 980px) {
	.header-actions {
		display: flex;
	}

	.social-float {
		display: none !important;
	}
}

@media (max-width: 736px) {
	body {
		padding-top: 3.75rem;
	}

	#header {
		height: 3.75rem;
	}
}
