/* =========================================================
   HEADER PRINCIPAL
   ========================================================= */

.app-header{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;

	/* Layout 3 columnas */
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px;

	padding: 14px 22px;

	background: rgba(10, 14, 28, 0.72);
	border-bottom: 1px solid rgba(255,255,255,0.10);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}


/* Izquierda: logo */
.app-header .brand{
	display: flex;
	align-items: center;
	min-width: 0;
}

.app-header .brand .logo{
	display: block;
	width: 42px;
	height: 42px;
	background-image: url("../images/logo.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	overflow: hidden;
}

/* Centro: botón Parcelas */
.app-header .nav-center{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

/* Derecha: botón Salir */
.app-header .nav-right{
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
}

/* Botones del header */
.hbtn{
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 14px;

	border: 1px solid rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.06);
	color: rgba(234,240,255,0.92);

	font-weight: 800;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	transition: 0.18s ease;
}

.hbtn:hover{
	transform: translateY(-1px);
	background: rgba(255,255,255,0.08);
	border-color: rgba(255,255,255,0.18);
}

.hbtn:active{
	transform: translateY(0px);
}

/* Botón principal */
.hbtn.primary{
	border-color: rgba(79,124,255,0.25);
	background: rgba(79,124,255,0.12);
}

.hbtn.primary:hover{
	border-color: rgba(79,124,255,0.38);
	background: rgba(79,124,255,0.16);
}

/* Botón logout */
.hbtn.danger{
	border-color: rgba(255,90,90,0.20);
	background: rgba(255,90,90,0.10);
}

.hbtn.danger:hover{
	border-color: rgba(255,90,90,0.30);
	background: rgba(255,90,90,0.14);
}

/* =========================================================
   RESPONSIVE HEADER
   ========================================================= */
/*
@media (max-width: 720px){
	.app-header{
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.app-header .brand{
		justify-content: center;
	}

	.app-header .nav-center,
	.app-header .nav-right{
		justify-content: center;
	}

	.hbtn{
		width: 100%;
		justify-content: center;
	}
}
*/