/* --- TOP APP BAR --- */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 1000;
	min-height: 64px;
	display: flex;
	align-items: center;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

@media (min-width: 600px) {
	header.wp-block-template-part {
		margin: 0 16px 8px;
		border-radius: 0 0 32px 32px;
		width: calc(100% - 32px) !important;
	}
}

/* Estado al hacer scroll */
header.wp-block-template-part.is-scrolled,
.wp-site-blocks > header.is-scrolled {
	background-color: var(--wp--preset--color--surface-container) !important;
	color: var(--wp--preset--color--on-surface) !important;
	box-shadow: 0 3px 10px rgba(32, 26, 24, 0.12);
}

header.is-scrolled .lar-icon-btn {
	color: var(--wp--preset--color--on-surface);
}

header.is-scrolled > .wp-block-group {
	background-color: transparent !important;
	transition: background-color 0.25s ease;
}

header.wp-block-template-part p.wp-block-site-title {
	font-family: var(--tipografia-secundaria), sans-serif;
	font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 0;
	font-weight: 400;
	font-size: 20px;
}

/* --- TOP DRAWER --- */
.lar-drawer-scrim {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.38);
	z-index: 1001;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lar-drawer-scrim.is-open {
	opacity: 1;
	visibility: visible;
}

.lar-top-drawer {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	max-height: 85vh;
	overflow-y: auto;
	background-color: var(--wp--preset--color--surface-container);
	color: var(--wp--preset--color--on-surface);
	z-index: 1002;
	border-radius: 0 0 24px 24px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	transform: translateY(-100%);
	transition: transform 0.32s cubic-bezier(0.2, 0, 0, 1);
}

.lar-top-drawer.is-open {
	transform: translateY(0);
}

.lar-top-drawer .lar-icon-btn {
	color: var(--wp--preset--color--on-surface);
}

.lar-drawer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 24px 32px;
}

.lar-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	margin-bottom: 16px;
	border-bottom: 1px solid rgba(121, 116, 126, 0.2);
}

.lar-drawer-title {
	font-size: 1.25rem;
	font-weight: 500;
}
