/* header */
.hero-header,
.min {
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 1s cubic-bezier(0.22, 1, 0.36, 1),
		transform 1s ease;
}

.is-visible {
	opacity: 1 !important;
	pointer-events: auto !important;
	transform: translate(0, 0) !important;
}

.hero-header {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100dvh;
	pointer-events: auto !important;
	cursor: pointer;
	background-image: linear-gradient(120deg, rgb(var(--c1)/1) 0%, #000 35%, #000 65%, rgb(var(--n)/1) 100%),
		url("/assets/img/bg.webp");
	background-repeat: repeat;
	background-size: auto;
	background-attachment: fixed;
	background-position: center;
	background-blend-mode: multiply;
	/* Transición suave general para el hero */
	transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-header > div {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 27%;
	margin: 0;
	padding: 0;
	color: rgb(var(--b) / 1);
	text-align: center;
	pointer-events: auto !important;
}

.hero-header-logo-media {
	position: relative;
	display: block;
	width: 100%;
	height: 10dvh;
	margin: 0 auto 1rem;
	overflow: visible;
}

.hero-header .brand-logo {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0;
	padding: 0;
	object-fit: contain !important;
	object-position: center !important;
	filter: invert(1);
}

.hero-header span.lead,
.hero-header span.caption {
	position: relative;
	z-index: 3;
	display: block;
	width: 100%;
	margin: 3rem 0 0 0;
	padding: 0;
	color: rgb(var(--c3) / 1);
	text-align: center;
}

.hero-header span.lead {
	font-size: 1.5rem;
	font-weight: 700;
	color: rgb(var(--b) / 1);
}

.hero-header span.caption {
	margin-top: 0.5rem;
	font-size: 1rem;
	font-weight: 200;
}

.hero-header-logo-edit {
	position: absolute !important;
	left: 50% !important;
	top: 50% !important;
	right: auto !important;
	bottom: auto !important;
	z-index: 20 !important;
	margin: 0 !important;
	transform: translate(-50%, -50%) !important;
}

.hero-header-iso-edit {
	position: relative;
	z-index: 20;
	margin-top: 1rem;
}

.hero-header-iso-media {
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
	height: 4rem;
	margin-top: 1rem;
	overflow: visible;
}

.hero-header-iso-preview {
	display: block;
	width: 4rem !important;
	height: 4rem !important;
	max-width: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
}

.min {
	position: fixed;
	top: 0;
	left: 9%;
	z-index: 300;
	display: flex;
	align-items: center;
	width: 6%;
	height: 10dvh;
	padding: 0 0 1rem;
	background: rgb(var(--n) / 0);
	border-radius: 0 0 1rem 1rem;
}

.min .header-iso {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100% !important;
	height: 80% !important;
	max-width: none !important;
	object-fit: contain !important;
	object-position: center !important;
}

.min .header-home {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

body.popup-open .hero-header,
body.popup-open .min {
	opacity: 0 !important;
	visibility: hidden;
	pointer-events: none !important;
}

/* Ocultamiento suave del hero al recibir la clase dismissed */
.hero-header.hero-dismissed {
	opacity: 0 !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

/* Bloquea el scroll de forma absoluta mientras el hero esté presente */
body.hero-locked {
	overflow: hidden !important;
	height: 100vh !important;
	height: 100dvh !important;
	position: fixed;
	width: 100%;
}

/* móvil */
@media (max-width: 767px) {
	.hero-header > div {
		width: 80%;
	}

	.hero-header-logo-media {
		height: 12dvh;
	}

	.hero-header span.lead {
		font-size: 1.25rem;
	}

	.hero-header span.caption {
		font-size: 1rem;
	}

	.min {
		left: 1%;
		width: 18%;
		height: 9dvh;
		color: rgb(var(--b-light) / 1);
		background: rgb(var(--n-dark) / 0.8);
		transform: translateY(-100%);
	}

	.min .header-iso {
		height: 60% !important;
	}
}